• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#! /bin/sh
2# From configure.ac Revision: 1.3 .
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.68 for libcap-ng 0.7.
5#
6#
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
9# Foundation, Inc.
10#
11#
12# This configure script is free software; the Free Software Foundation
13# gives unlimited permission to copy, distribute and modify it.
14## -------------------- ##
15## M4sh Initialization. ##
16## -------------------- ##
17
18# Be more Bourne compatible
19DUALCASE=1; export DUALCASE # for MKS sh
20if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21  emulate sh
22  NULLCMD=:
23  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24  # is contrary to our usage.  Disable this feature.
25  alias -g '${1+"$@"}'='"$@"'
26  setopt NO_GLOB_SUBST
27else
28  case `(set -o) 2>/dev/null` in #(
29  *posix*) :
30    set -o posix ;; #(
31  *) :
32     ;;
33esac
34fi
35
36
37as_nl='
38'
39export as_nl
40# Printing a long string crashes Solaris 7 /usr/bin/printf.
41as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
44# Prefer a ksh shell builtin over an external printf program on Solaris,
45# but without wasting forks for bash or zsh.
46if test -z "$BASH_VERSION$ZSH_VERSION" \
47    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48  as_echo='print -r --'
49  as_echo_n='print -rn --'
50elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51  as_echo='printf %s\n'
52  as_echo_n='printf %s'
53else
54  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
55    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
56    as_echo_n='/usr/ucb/echo -n'
57  else
58    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
59    as_echo_n_body='eval
60      arg=$1;
61      case $arg in #(
62      *"$as_nl"*)
63	expr "X$arg" : "X\\(.*\\)$as_nl";
64	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65      esac;
66      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67    '
68    export as_echo_n_body
69    as_echo_n='sh -c $as_echo_n_body as_echo'
70  fi
71  export as_echo_body
72  as_echo='sh -c $as_echo_body as_echo'
73fi
74
75# The user is always right.
76if test "${PATH_SEPARATOR+set}" != set; then
77  PATH_SEPARATOR=:
78  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80      PATH_SEPARATOR=';'
81  }
82fi
83
84
85# IFS
86# We need space, tab and new line, in precisely that order.  Quoting is
87# there to prevent editors from complaining about space-tab.
88# (If _AS_PATH_WALK were called with IFS unset, it would disable word
89# splitting by setting IFS to empty value.)
90IFS=" ""	$as_nl"
91
92# Find who we are.  Look in the path if we contain no directory separator.
93as_myself=
94case $0 in #((
95  *[\\/]* ) as_myself=$0 ;;
96  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97for as_dir in $PATH
98do
99  IFS=$as_save_IFS
100  test -z "$as_dir" && as_dir=.
101    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102  done
103IFS=$as_save_IFS
104
105     ;;
106esac
107# We did not find ourselves, most probably we were run as `sh COMMAND'
108# in which case we are not to be found in the path.
109if test "x$as_myself" = x; then
110  as_myself=$0
111fi
112if test ! -f "$as_myself"; then
113  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114  exit 1
115fi
116
117# Unset variables that we do not need and which cause bugs (e.g. in
118# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
119# suppresses any "Segmentation fault" message there.  '((' could
120# trigger a bug in pdksh 5.2.14.
121for as_var in BASH_ENV ENV MAIL MAILPATH
122do eval test x\${$as_var+set} = xset \
123  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124done
125PS1='$ '
126PS2='> '
127PS4='+ '
128
129# NLS nuisances.
130LC_ALL=C
131export LC_ALL
132LANGUAGE=C
133export LANGUAGE
134
135# CDPATH.
136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138if test "x$CONFIG_SHELL" = x; then
139  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140  emulate sh
141  NULLCMD=:
142  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143  # is contrary to our usage.  Disable this feature.
144  alias -g '\${1+\"\$@\"}'='\"\$@\"'
145  setopt NO_GLOB_SUBST
146else
147  case \`(set -o) 2>/dev/null\` in #(
148  *posix*) :
149    set -o posix ;; #(
150  *) :
151     ;;
152esac
153fi
154"
155  as_required="as_fn_return () { (exit \$1); }
156as_fn_success () { as_fn_return 0; }
157as_fn_failure () { as_fn_return 1; }
158as_fn_ret_success () { return 0; }
159as_fn_ret_failure () { return 1; }
160
161exitcode=0
162as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168else
169  exitcode=1; echo positional parameters were not saved.
170fi
171test x\$exitcode = x0 || exit 1"
172  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176
177  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
178    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
179    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181    PATH=/empty FPATH=/empty; export PATH FPATH
182    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
183      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
184test \$(( 1 + 1 )) = 2 || exit 1"
185  if (eval "$as_required") 2>/dev/null; then :
186  as_have_required=yes
187else
188  as_have_required=no
189fi
190  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
191
192else
193  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
194as_found=false
195for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
196do
197  IFS=$as_save_IFS
198  test -z "$as_dir" && as_dir=.
199  as_found=:
200  case $as_dir in #(
201	 /*)
202	   for as_base in sh bash ksh sh5; do
203	     # Try only shells that exist, to save several forks.
204	     as_shell=$as_dir/$as_base
205	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
206		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
207  CONFIG_SHELL=$as_shell as_have_required=yes
208		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
209  break 2
210fi
211fi
212	   done;;
213       esac
214  as_found=false
215done
216$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
217	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
218  CONFIG_SHELL=$SHELL as_have_required=yes
219fi; }
220IFS=$as_save_IFS
221
222
223      if test "x$CONFIG_SHELL" != x; then :
224  # We cannot yet assume a decent shell, so we have to provide a
225	# neutralization value for shells without unset; and this also
226	# works around shells that cannot unset nonexistent variables.
227	# Preserve -v and -x to the replacement shell.
228	BASH_ENV=/dev/null
229	ENV=/dev/null
230	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
231	export CONFIG_SHELL
232	case $- in # ((((
233	  *v*x* | *x*v* ) as_opts=-vx ;;
234	  *v* ) as_opts=-v ;;
235	  *x* ) as_opts=-x ;;
236	  * ) as_opts= ;;
237	esac
238	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
239fi
240
241    if test x$as_have_required = xno; then :
242  $as_echo "$0: This script requires a shell more modern than all"
243  $as_echo "$0: the shells that I found on your system."
244  if test x${ZSH_VERSION+set} = xset ; then
245    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
246    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
247  else
248    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
249$0: including any error possibly output before this
250$0: message. Then install a modern shell, or manually run
251$0: the script under such a shell if you do have one."
252  fi
253  exit 1
254fi
255fi
256fi
257SHELL=${CONFIG_SHELL-/bin/sh}
258export SHELL
259# Unset more variables known to interfere with behavior of common tools.
260CLICOLOR_FORCE= GREP_OPTIONS=
261unset CLICOLOR_FORCE GREP_OPTIONS
262
263## --------------------- ##
264## M4sh Shell Functions. ##
265## --------------------- ##
266# as_fn_unset VAR
267# ---------------
268# Portably unset VAR.
269as_fn_unset ()
270{
271  { eval $1=; unset $1;}
272}
273as_unset=as_fn_unset
274
275# as_fn_set_status STATUS
276# -----------------------
277# Set $? to STATUS, without forking.
278as_fn_set_status ()
279{
280  return $1
281} # as_fn_set_status
282
283# as_fn_exit STATUS
284# -----------------
285# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
286as_fn_exit ()
287{
288  set +e
289  as_fn_set_status $1
290  exit $1
291} # as_fn_exit
292
293# as_fn_mkdir_p
294# -------------
295# Create "$as_dir" as a directory, including parents if necessary.
296as_fn_mkdir_p ()
297{
298
299  case $as_dir in #(
300  -*) as_dir=./$as_dir;;
301  esac
302  test -d "$as_dir" || eval $as_mkdir_p || {
303    as_dirs=
304    while :; do
305      case $as_dir in #(
306      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
307      *) as_qdir=$as_dir;;
308      esac
309      as_dirs="'$as_qdir' $as_dirs"
310      as_dir=`$as_dirname -- "$as_dir" ||
311$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
312	 X"$as_dir" : 'X\(//\)[^/]' \| \
313	 X"$as_dir" : 'X\(//\)$' \| \
314	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
315$as_echo X"$as_dir" |
316    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
317	    s//\1/
318	    q
319	  }
320	  /^X\(\/\/\)[^/].*/{
321	    s//\1/
322	    q
323	  }
324	  /^X\(\/\/\)$/{
325	    s//\1/
326	    q
327	  }
328	  /^X\(\/\).*/{
329	    s//\1/
330	    q
331	  }
332	  s/.*/./; q'`
333      test -d "$as_dir" && break
334    done
335    test -z "$as_dirs" || eval "mkdir $as_dirs"
336  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
337
338
339} # as_fn_mkdir_p
340# as_fn_append VAR VALUE
341# ----------------------
342# Append the text in VALUE to the end of the definition contained in VAR. Take
343# advantage of any shell optimizations that allow amortized linear growth over
344# repeated appends, instead of the typical quadratic growth present in naive
345# implementations.
346if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
347  eval 'as_fn_append ()
348  {
349    eval $1+=\$2
350  }'
351else
352  as_fn_append ()
353  {
354    eval $1=\$$1\$2
355  }
356fi # as_fn_append
357
358# as_fn_arith ARG...
359# ------------------
360# Perform arithmetic evaluation on the ARGs, and store the result in the
361# global $as_val. Take advantage of shells that can avoid forks. The arguments
362# must be portable across $(()) and expr.
363if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
364  eval 'as_fn_arith ()
365  {
366    as_val=$(( $* ))
367  }'
368else
369  as_fn_arith ()
370  {
371    as_val=`expr "$@" || test $? -eq 1`
372  }
373fi # as_fn_arith
374
375
376# as_fn_error STATUS ERROR [LINENO LOG_FD]
377# ----------------------------------------
378# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
379# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
380# script with STATUS, using 1 if that was 0.
381as_fn_error ()
382{
383  as_status=$1; test $as_status -eq 0 && as_status=1
384  if test "$4"; then
385    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
386    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
387  fi
388  $as_echo "$as_me: error: $2" >&2
389  as_fn_exit $as_status
390} # as_fn_error
391
392if expr a : '\(a\)' >/dev/null 2>&1 &&
393   test "X`expr 00001 : '.*\(...\)'`" = X001; then
394  as_expr=expr
395else
396  as_expr=false
397fi
398
399if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
400  as_basename=basename
401else
402  as_basename=false
403fi
404
405if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
406  as_dirname=dirname
407else
408  as_dirname=false
409fi
410
411as_me=`$as_basename -- "$0" ||
412$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
413	 X"$0" : 'X\(//\)$' \| \
414	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
415$as_echo X/"$0" |
416    sed '/^.*\/\([^/][^/]*\)\/*$/{
417	    s//\1/
418	    q
419	  }
420	  /^X\/\(\/\/\)$/{
421	    s//\1/
422	    q
423	  }
424	  /^X\/\(\/\).*/{
425	    s//\1/
426	    q
427	  }
428	  s/.*/./; q'`
429
430# Avoid depending upon Character Ranges.
431as_cr_letters='abcdefghijklmnopqrstuvwxyz'
432as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
433as_cr_Letters=$as_cr_letters$as_cr_LETTERS
434as_cr_digits='0123456789'
435as_cr_alnum=$as_cr_Letters$as_cr_digits
436
437
438  as_lineno_1=$LINENO as_lineno_1a=$LINENO
439  as_lineno_2=$LINENO as_lineno_2a=$LINENO
440  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
441  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
442  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
443  sed -n '
444    p
445    /[$]LINENO/=
446  ' <$as_myself |
447    sed '
448      s/[$]LINENO.*/&-/
449      t lineno
450      b
451      :lineno
452      N
453      :loop
454      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
455      t loop
456      s/-\n.*//
457    ' >$as_me.lineno &&
458  chmod +x "$as_me.lineno" ||
459    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
460
461  # Don't try to exec as it changes $[0], causing all sort of problems
462  # (the dirname of $[0] is not the place where we might find the
463  # original and so on.  Autoconf is especially sensitive to this).
464  . "./$as_me.lineno"
465  # Exit status is that of the last command.
466  exit
467}
468
469ECHO_C= ECHO_N= ECHO_T=
470case `echo -n x` in #(((((
471-n*)
472  case `echo 'xy\c'` in
473  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
474  xy)  ECHO_C='\c';;
475  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
476       ECHO_T='	';;
477  esac;;
478*)
479  ECHO_N='-n';;
480esac
481
482rm -f conf$$ conf$$.exe conf$$.file
483if test -d conf$$.dir; then
484  rm -f conf$$.dir/conf$$.file
485else
486  rm -f conf$$.dir
487  mkdir conf$$.dir 2>/dev/null
488fi
489if (echo >conf$$.file) 2>/dev/null; then
490  if ln -s conf$$.file conf$$ 2>/dev/null; then
491    as_ln_s='ln -s'
492    # ... but there are two gotchas:
493    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
494    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
495    # In both cases, we have to default to `cp -p'.
496    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
497      as_ln_s='cp -p'
498  elif ln conf$$.file conf$$ 2>/dev/null; then
499    as_ln_s=ln
500  else
501    as_ln_s='cp -p'
502  fi
503else
504  as_ln_s='cp -p'
505fi
506rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
507rmdir conf$$.dir 2>/dev/null
508
509if mkdir -p . 2>/dev/null; then
510  as_mkdir_p='mkdir -p "$as_dir"'
511else
512  test -d ./-p && rmdir ./-p
513  as_mkdir_p=false
514fi
515
516if test -x / >/dev/null 2>&1; then
517  as_test_x='test -x'
518else
519  if ls -dL / >/dev/null 2>&1; then
520    as_ls_L_option=L
521  else
522    as_ls_L_option=
523  fi
524  as_test_x='
525    eval sh -c '\''
526      if test -d "$1"; then
527	test -d "$1/.";
528      else
529	case $1 in #(
530	-*)set "./$1";;
531	esac;
532	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
533	???[sx]*):;;*)false;;esac;fi
534    '\'' sh
535  '
536fi
537as_executable_p=$as_test_x
538
539# Sed expression to map a string onto a valid CPP name.
540as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
541
542# Sed expression to map a string onto a valid variable name.
543as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
544
545SHELL=${CONFIG_SHELL-/bin/sh}
546
547
548test -n "$DJDIR" || exec 7<&0 </dev/null
549exec 6>&1
550
551# Name of the host.
552# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
553# so uname gets run too.
554ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
555
556#
557# Initializations.
558#
559ac_default_prefix=/usr/local
560ac_clean_files=
561ac_config_libobj_dir=.
562LIBOBJS=
563cross_compiling=no
564subdirs=
565MFLAGS=
566MAKEFLAGS=
567
568# Identity of this package.
569PACKAGE_NAME='libcap-ng'
570PACKAGE_TARNAME='libcap-ng'
571PACKAGE_VERSION='0.7'
572PACKAGE_STRING='libcap-ng 0.7'
573PACKAGE_BUGREPORT=''
574PACKAGE_URL=''
575
576# Factoring default headers for most tests.
577ac_includes_default="\
578#include <stdio.h>
579#ifdef HAVE_SYS_TYPES_H
580# include <sys/types.h>
581#endif
582#ifdef HAVE_SYS_STAT_H
583# include <sys/stat.h>
584#endif
585#ifdef STDC_HEADERS
586# include <stdlib.h>
587# include <stddef.h>
588#else
589# ifdef HAVE_STDLIB_H
590#  include <stdlib.h>
591# endif
592#endif
593#ifdef HAVE_STRING_H
594# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
595#  include <memory.h>
596# endif
597# include <string.h>
598#endif
599#ifdef HAVE_STRINGS_H
600# include <strings.h>
601#endif
602#ifdef HAVE_INTTYPES_H
603# include <inttypes.h>
604#endif
605#ifdef HAVE_STDINT_H
606# include <stdint.h>
607#endif
608#ifdef HAVE_UNISTD_H
609# include <unistd.h>
610#endif"
611
612ac_subst_vars='am__EXEEXT_FALSE
613am__EXEEXT_TRUE
614LTLIBOBJS
615LIBOBJS
616HAVE_PYTHON_FALSE
617HAVE_PYTHON_TRUE
618pkgpyexecdir
619pyexecdir
620pkgpythondir
621pythondir
622PYTHON_PLATFORM
623PYTHON_EXEC_PREFIX
624PYTHON_PREFIX
625PYTHON_VERSION
626PYTHON
627HAVE_SWIG_FALSE
628HAVE_SWIG_TRUE
629swig_found
630DEBUG
631DEBUG_FALSE
632DEBUG_TRUE
633LIBTOOL_DEPS
634CPP
635OTOOL64
636OTOOL
637LIPO
638NMEDIT
639DSYMUTIL
640MANIFEST_TOOL
641RANLIB
642ac_ct_AR
643AR
644DLLTOOL
645OBJDUMP
646LN_S
647NM
648ac_ct_DUMPBIN
649DUMPBIN
650LD
651FGREP
652EGREP
653GREP
654SED
655am__fastdepCC_FALSE
656am__fastdepCC_TRUE
657CCDEPMODE
658am__nodep
659AMDEPBACKSLASH
660AMDEP_FALSE
661AMDEP_TRUE
662am__quote
663am__include
664DEPDIR
665OBJEXT
666EXEEXT
667ac_ct_CC
668CPPFLAGS
669LDFLAGS
670CFLAGS
671CC
672LIBTOOL
673am__untar
674am__tar
675AMTAR
676am__leading_dot
677SET_MAKE
678AWK
679mkdir_p
680MKDIR_P
681INSTALL_STRIP_PROGRAM
682STRIP
683install_sh
684MAKEINFO
685AUTOHEADER
686AUTOMAKE
687AUTOCONF
688ACLOCAL
689VERSION
690PACKAGE
691CYGPATH_W
692am__isrc
693INSTALL_DATA
694INSTALL_SCRIPT
695INSTALL_PROGRAM
696target_os
697target_vendor
698target_cpu
699target
700host_os
701host_vendor
702host_cpu
703host
704build_os
705build_vendor
706build_cpu
707build
708target_alias
709host_alias
710build_alias
711LIBS
712ECHO_T
713ECHO_N
714ECHO_C
715DEFS
716mandir
717localedir
718libdir
719psdir
720pdfdir
721dvidir
722htmldir
723infodir
724docdir
725oldincludedir
726includedir
727localstatedir
728sharedstatedir
729sysconfdir
730datadir
731datarootdir
732libexecdir
733sbindir
734bindir
735program_transform_name
736prefix
737exec_prefix
738PACKAGE_URL
739PACKAGE_BUGREPORT
740PACKAGE_STRING
741PACKAGE_VERSION
742PACKAGE_TARNAME
743PACKAGE_NAME
744PATH_SEPARATOR
745SHELL'
746ac_subst_files=''
747ac_user_opts='
748enable_option_checking
749enable_shared
750enable_static
751with_pic
752enable_fast_install
753enable_dependency_tracking
754with_gnu_ld
755with_sysroot
756enable_libtool_lock
757with_debug
758with_warn
759with_python
760'
761      ac_precious_vars='build_alias
762host_alias
763target_alias
764CC
765CFLAGS
766LDFLAGS
767LIBS
768CPPFLAGS
769CPP
770PYTHON'
771
772
773# Initialize some variables set by options.
774ac_init_help=
775ac_init_version=false
776ac_unrecognized_opts=
777ac_unrecognized_sep=
778# The variables have the same names as the options, with
779# dashes changed to underlines.
780cache_file=/dev/null
781exec_prefix=NONE
782no_create=
783no_recursion=
784prefix=NONE
785program_prefix=NONE
786program_suffix=NONE
787program_transform_name=s,x,x,
788silent=
789site=
790srcdir=
791verbose=
792x_includes=NONE
793x_libraries=NONE
794
795# Installation directory options.
796# These are left unexpanded so users can "make install exec_prefix=/foo"
797# and all the variables that are supposed to be based on exec_prefix
798# by default will actually change.
799# Use braces instead of parens because sh, perl, etc. also accept them.
800# (The list follows the same order as the GNU Coding Standards.)
801bindir='${exec_prefix}/bin'
802sbindir='${exec_prefix}/sbin'
803libexecdir='${exec_prefix}/libexec'
804datarootdir='${prefix}/share'
805datadir='${datarootdir}'
806sysconfdir='${prefix}/etc'
807sharedstatedir='${prefix}/com'
808localstatedir='${prefix}/var'
809includedir='${prefix}/include'
810oldincludedir='/usr/include'
811docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
812infodir='${datarootdir}/info'
813htmldir='${docdir}'
814dvidir='${docdir}'
815pdfdir='${docdir}'
816psdir='${docdir}'
817libdir='${exec_prefix}/lib'
818localedir='${datarootdir}/locale'
819mandir='${datarootdir}/man'
820
821ac_prev=
822ac_dashdash=
823for ac_option
824do
825  # If the previous option needs an argument, assign it.
826  if test -n "$ac_prev"; then
827    eval $ac_prev=\$ac_option
828    ac_prev=
829    continue
830  fi
831
832  case $ac_option in
833  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
834  *=)   ac_optarg= ;;
835  *)    ac_optarg=yes ;;
836  esac
837
838  # Accept the important Cygnus configure options, so we can diagnose typos.
839
840  case $ac_dashdash$ac_option in
841  --)
842    ac_dashdash=yes ;;
843
844  -bindir | --bindir | --bindi | --bind | --bin | --bi)
845    ac_prev=bindir ;;
846  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
847    bindir=$ac_optarg ;;
848
849  -build | --build | --buil | --bui | --bu)
850    ac_prev=build_alias ;;
851  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
852    build_alias=$ac_optarg ;;
853
854  -cache-file | --cache-file | --cache-fil | --cache-fi \
855  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
856    ac_prev=cache_file ;;
857  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
858  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
859    cache_file=$ac_optarg ;;
860
861  --config-cache | -C)
862    cache_file=config.cache ;;
863
864  -datadir | --datadir | --datadi | --datad)
865    ac_prev=datadir ;;
866  -datadir=* | --datadir=* | --datadi=* | --datad=*)
867    datadir=$ac_optarg ;;
868
869  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
870  | --dataroo | --dataro | --datar)
871    ac_prev=datarootdir ;;
872  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
873  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
874    datarootdir=$ac_optarg ;;
875
876  -disable-* | --disable-*)
877    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
878    # Reject names that are not valid shell variable names.
879    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
880      as_fn_error $? "invalid feature name: $ac_useropt"
881    ac_useropt_orig=$ac_useropt
882    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
883    case $ac_user_opts in
884      *"
885"enable_$ac_useropt"
886"*) ;;
887      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
888	 ac_unrecognized_sep=', ';;
889    esac
890    eval enable_$ac_useropt=no ;;
891
892  -docdir | --docdir | --docdi | --doc | --do)
893    ac_prev=docdir ;;
894  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
895    docdir=$ac_optarg ;;
896
897  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
898    ac_prev=dvidir ;;
899  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
900    dvidir=$ac_optarg ;;
901
902  -enable-* | --enable-*)
903    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
904    # Reject names that are not valid shell variable names.
905    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
906      as_fn_error $? "invalid feature name: $ac_useropt"
907    ac_useropt_orig=$ac_useropt
908    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
909    case $ac_user_opts in
910      *"
911"enable_$ac_useropt"
912"*) ;;
913      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
914	 ac_unrecognized_sep=', ';;
915    esac
916    eval enable_$ac_useropt=\$ac_optarg ;;
917
918  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
919  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
920  | --exec | --exe | --ex)
921    ac_prev=exec_prefix ;;
922  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
923  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
924  | --exec=* | --exe=* | --ex=*)
925    exec_prefix=$ac_optarg ;;
926
927  -gas | --gas | --ga | --g)
928    # Obsolete; use --with-gas.
929    with_gas=yes ;;
930
931  -help | --help | --hel | --he | -h)
932    ac_init_help=long ;;
933  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
934    ac_init_help=recursive ;;
935  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
936    ac_init_help=short ;;
937
938  -host | --host | --hos | --ho)
939    ac_prev=host_alias ;;
940  -host=* | --host=* | --hos=* | --ho=*)
941    host_alias=$ac_optarg ;;
942
943  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
944    ac_prev=htmldir ;;
945  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
946  | --ht=*)
947    htmldir=$ac_optarg ;;
948
949  -includedir | --includedir | --includedi | --included | --include \
950  | --includ | --inclu | --incl | --inc)
951    ac_prev=includedir ;;
952  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
953  | --includ=* | --inclu=* | --incl=* | --inc=*)
954    includedir=$ac_optarg ;;
955
956  -infodir | --infodir | --infodi | --infod | --info | --inf)
957    ac_prev=infodir ;;
958  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
959    infodir=$ac_optarg ;;
960
961  -libdir | --libdir | --libdi | --libd)
962    ac_prev=libdir ;;
963  -libdir=* | --libdir=* | --libdi=* | --libd=*)
964    libdir=$ac_optarg ;;
965
966  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
967  | --libexe | --libex | --libe)
968    ac_prev=libexecdir ;;
969  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
970  | --libexe=* | --libex=* | --libe=*)
971    libexecdir=$ac_optarg ;;
972
973  -localedir | --localedir | --localedi | --localed | --locale)
974    ac_prev=localedir ;;
975  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
976    localedir=$ac_optarg ;;
977
978  -localstatedir | --localstatedir | --localstatedi | --localstated \
979  | --localstate | --localstat | --localsta | --localst | --locals)
980    ac_prev=localstatedir ;;
981  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
982  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
983    localstatedir=$ac_optarg ;;
984
985  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
986    ac_prev=mandir ;;
987  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
988    mandir=$ac_optarg ;;
989
990  -nfp | --nfp | --nf)
991    # Obsolete; use --without-fp.
992    with_fp=no ;;
993
994  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
995  | --no-cr | --no-c | -n)
996    no_create=yes ;;
997
998  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
999  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1000    no_recursion=yes ;;
1001
1002  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1003  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1004  | --oldin | --oldi | --old | --ol | --o)
1005    ac_prev=oldincludedir ;;
1006  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1007  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1008  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1009    oldincludedir=$ac_optarg ;;
1010
1011  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1012    ac_prev=prefix ;;
1013  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1014    prefix=$ac_optarg ;;
1015
1016  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1017  | --program-pre | --program-pr | --program-p)
1018    ac_prev=program_prefix ;;
1019  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1020  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1021    program_prefix=$ac_optarg ;;
1022
1023  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1024  | --program-suf | --program-su | --program-s)
1025    ac_prev=program_suffix ;;
1026  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1027  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1028    program_suffix=$ac_optarg ;;
1029
1030  -program-transform-name | --program-transform-name \
1031  | --program-transform-nam | --program-transform-na \
1032  | --program-transform-n | --program-transform- \
1033  | --program-transform | --program-transfor \
1034  | --program-transfo | --program-transf \
1035  | --program-trans | --program-tran \
1036  | --progr-tra | --program-tr | --program-t)
1037    ac_prev=program_transform_name ;;
1038  -program-transform-name=* | --program-transform-name=* \
1039  | --program-transform-nam=* | --program-transform-na=* \
1040  | --program-transform-n=* | --program-transform-=* \
1041  | --program-transform=* | --program-transfor=* \
1042  | --program-transfo=* | --program-transf=* \
1043  | --program-trans=* | --program-tran=* \
1044  | --progr-tra=* | --program-tr=* | --program-t=*)
1045    program_transform_name=$ac_optarg ;;
1046
1047  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1048    ac_prev=pdfdir ;;
1049  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1050    pdfdir=$ac_optarg ;;
1051
1052  -psdir | --psdir | --psdi | --psd | --ps)
1053    ac_prev=psdir ;;
1054  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1055    psdir=$ac_optarg ;;
1056
1057  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1058  | -silent | --silent | --silen | --sile | --sil)
1059    silent=yes ;;
1060
1061  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1062    ac_prev=sbindir ;;
1063  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1064  | --sbi=* | --sb=*)
1065    sbindir=$ac_optarg ;;
1066
1067  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1068  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1069  | --sharedst | --shareds | --shared | --share | --shar \
1070  | --sha | --sh)
1071    ac_prev=sharedstatedir ;;
1072  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1073  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1074  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1075  | --sha=* | --sh=*)
1076    sharedstatedir=$ac_optarg ;;
1077
1078  -site | --site | --sit)
1079    ac_prev=site ;;
1080  -site=* | --site=* | --sit=*)
1081    site=$ac_optarg ;;
1082
1083  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1084    ac_prev=srcdir ;;
1085  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1086    srcdir=$ac_optarg ;;
1087
1088  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1089  | --syscon | --sysco | --sysc | --sys | --sy)
1090    ac_prev=sysconfdir ;;
1091  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1092  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1093    sysconfdir=$ac_optarg ;;
1094
1095  -target | --target | --targe | --targ | --tar | --ta | --t)
1096    ac_prev=target_alias ;;
1097  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1098    target_alias=$ac_optarg ;;
1099
1100  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1101    verbose=yes ;;
1102
1103  -version | --version | --versio | --versi | --vers | -V)
1104    ac_init_version=: ;;
1105
1106  -with-* | --with-*)
1107    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1108    # Reject names that are not valid shell variable names.
1109    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1110      as_fn_error $? "invalid package name: $ac_useropt"
1111    ac_useropt_orig=$ac_useropt
1112    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1113    case $ac_user_opts in
1114      *"
1115"with_$ac_useropt"
1116"*) ;;
1117      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1118	 ac_unrecognized_sep=', ';;
1119    esac
1120    eval with_$ac_useropt=\$ac_optarg ;;
1121
1122  -without-* | --without-*)
1123    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1124    # Reject names that are not valid shell variable names.
1125    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1126      as_fn_error $? "invalid package name: $ac_useropt"
1127    ac_useropt_orig=$ac_useropt
1128    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1129    case $ac_user_opts in
1130      *"
1131"with_$ac_useropt"
1132"*) ;;
1133      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1134	 ac_unrecognized_sep=', ';;
1135    esac
1136    eval with_$ac_useropt=no ;;
1137
1138  --x)
1139    # Obsolete; use --with-x.
1140    with_x=yes ;;
1141
1142  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1143  | --x-incl | --x-inc | --x-in | --x-i)
1144    ac_prev=x_includes ;;
1145  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1146  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1147    x_includes=$ac_optarg ;;
1148
1149  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1150  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1151    ac_prev=x_libraries ;;
1152  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1153  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1154    x_libraries=$ac_optarg ;;
1155
1156  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1157Try \`$0 --help' for more information"
1158    ;;
1159
1160  *=*)
1161    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1162    # Reject names that are not valid shell variable names.
1163    case $ac_envvar in #(
1164      '' | [0-9]* | *[!_$as_cr_alnum]* )
1165      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1166    esac
1167    eval $ac_envvar=\$ac_optarg
1168    export $ac_envvar ;;
1169
1170  *)
1171    # FIXME: should be removed in autoconf 3.0.
1172    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1173    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1174      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1175    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1176    ;;
1177
1178  esac
1179done
1180
1181if test -n "$ac_prev"; then
1182  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1183  as_fn_error $? "missing argument to $ac_option"
1184fi
1185
1186if test -n "$ac_unrecognized_opts"; then
1187  case $enable_option_checking in
1188    no) ;;
1189    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1190    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1191  esac
1192fi
1193
1194# Check all directory arguments for consistency.
1195for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1196		datadir sysconfdir sharedstatedir localstatedir includedir \
1197		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1198		libdir localedir mandir
1199do
1200  eval ac_val=\$$ac_var
1201  # Remove trailing slashes.
1202  case $ac_val in
1203    */ )
1204      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1205      eval $ac_var=\$ac_val;;
1206  esac
1207  # Be sure to have absolute directory names.
1208  case $ac_val in
1209    [\\/$]* | ?:[\\/]* )  continue;;
1210    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1211  esac
1212  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1213done
1214
1215# There might be people who depend on the old broken behavior: `$host'
1216# used to hold the argument of --host etc.
1217# FIXME: To remove some day.
1218build=$build_alias
1219host=$host_alias
1220target=$target_alias
1221
1222# FIXME: To remove some day.
1223if test "x$host_alias" != x; then
1224  if test "x$build_alias" = x; then
1225    cross_compiling=maybe
1226    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1227    If a cross compiler is detected then cross compile mode will be used" >&2
1228  elif test "x$build_alias" != "x$host_alias"; then
1229    cross_compiling=yes
1230  fi
1231fi
1232
1233ac_tool_prefix=
1234test -n "$host_alias" && ac_tool_prefix=$host_alias-
1235
1236test "$silent" = yes && exec 6>/dev/null
1237
1238
1239ac_pwd=`pwd` && test -n "$ac_pwd" &&
1240ac_ls_di=`ls -di .` &&
1241ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1242  as_fn_error $? "working directory cannot be determined"
1243test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1244  as_fn_error $? "pwd does not report name of working directory"
1245
1246
1247# Find the source files, if location was not specified.
1248if test -z "$srcdir"; then
1249  ac_srcdir_defaulted=yes
1250  # Try the directory containing this script, then the parent directory.
1251  ac_confdir=`$as_dirname -- "$as_myself" ||
1252$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1253	 X"$as_myself" : 'X\(//\)[^/]' \| \
1254	 X"$as_myself" : 'X\(//\)$' \| \
1255	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1256$as_echo X"$as_myself" |
1257    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1258	    s//\1/
1259	    q
1260	  }
1261	  /^X\(\/\/\)[^/].*/{
1262	    s//\1/
1263	    q
1264	  }
1265	  /^X\(\/\/\)$/{
1266	    s//\1/
1267	    q
1268	  }
1269	  /^X\(\/\).*/{
1270	    s//\1/
1271	    q
1272	  }
1273	  s/.*/./; q'`
1274  srcdir=$ac_confdir
1275  if test ! -r "$srcdir/$ac_unique_file"; then
1276    srcdir=..
1277  fi
1278else
1279  ac_srcdir_defaulted=no
1280fi
1281if test ! -r "$srcdir/$ac_unique_file"; then
1282  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1283  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1284fi
1285ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1286ac_abs_confdir=`(
1287	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1288	pwd)`
1289# When building in place, set srcdir=.
1290if test "$ac_abs_confdir" = "$ac_pwd"; then
1291  srcdir=.
1292fi
1293# Remove unnecessary trailing slashes from srcdir.
1294# Double slashes in file names in object file debugging info
1295# mess up M-x gdb in Emacs.
1296case $srcdir in
1297*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1298esac
1299for ac_var in $ac_precious_vars; do
1300  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1301  eval ac_env_${ac_var}_value=\$${ac_var}
1302  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1303  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1304done
1305
1306#
1307# Report the --help message.
1308#
1309if test "$ac_init_help" = "long"; then
1310  # Omit some internal or obsolete options to make the list less imposing.
1311  # This message is too long to be a string in the A/UX 3.1 sh.
1312  cat <<_ACEOF
1313\`configure' configures libcap-ng 0.7 to adapt to many kinds of systems.
1314
1315Usage: $0 [OPTION]... [VAR=VALUE]...
1316
1317To assign environment variables (e.g., CC, CFLAGS...), specify them as
1318VAR=VALUE.  See below for descriptions of some of the useful variables.
1319
1320Defaults for the options are specified in brackets.
1321
1322Configuration:
1323  -h, --help              display this help and exit
1324      --help=short        display options specific to this package
1325      --help=recursive    display the short help of all the included packages
1326  -V, --version           display version information and exit
1327  -q, --quiet, --silent   do not print \`checking ...' messages
1328      --cache-file=FILE   cache test results in FILE [disabled]
1329  -C, --config-cache      alias for \`--cache-file=config.cache'
1330  -n, --no-create         do not create output files
1331      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1332
1333Installation directories:
1334  --prefix=PREFIX         install architecture-independent files in PREFIX
1335                          [$ac_default_prefix]
1336  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1337                          [PREFIX]
1338
1339By default, \`make install' will install all the files in
1340\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1341an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1342for instance \`--prefix=\$HOME'.
1343
1344For better control, use the options below.
1345
1346Fine tuning of the installation directories:
1347  --bindir=DIR            user executables [EPREFIX/bin]
1348  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1349  --libexecdir=DIR        program executables [EPREFIX/libexec]
1350  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1351  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1352  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1353  --libdir=DIR            object code libraries [EPREFIX/lib]
1354  --includedir=DIR        C header files [PREFIX/include]
1355  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1356  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1357  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1358  --infodir=DIR           info documentation [DATAROOTDIR/info]
1359  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1360  --mandir=DIR            man documentation [DATAROOTDIR/man]
1361  --docdir=DIR            documentation root [DATAROOTDIR/doc/libcap-ng]
1362  --htmldir=DIR           html documentation [DOCDIR]
1363  --dvidir=DIR            dvi documentation [DOCDIR]
1364  --pdfdir=DIR            pdf documentation [DOCDIR]
1365  --psdir=DIR             ps documentation [DOCDIR]
1366_ACEOF
1367
1368  cat <<\_ACEOF
1369
1370Program names:
1371  --program-prefix=PREFIX            prepend PREFIX to installed program names
1372  --program-suffix=SUFFIX            append SUFFIX to installed program names
1373  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1374
1375System types:
1376  --build=BUILD     configure for building on BUILD [guessed]
1377  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1378  --target=TARGET   configure for building compilers for TARGET [HOST]
1379_ACEOF
1380fi
1381
1382if test -n "$ac_init_help"; then
1383  case $ac_init_help in
1384     short | recursive ) echo "Configuration of libcap-ng 0.7:";;
1385   esac
1386  cat <<\_ACEOF
1387
1388Optional Features:
1389  --disable-option-checking  ignore unrecognized --enable/--with options
1390  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1391  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1392  --enable-shared[=PKGS]  build shared libraries [default=yes]
1393  --enable-static[=PKGS]  build static libraries [default=yes]
1394  --enable-fast-install[=PKGS]
1395                          optimize for fast installation [default=yes]
1396  --disable-dependency-tracking  speeds up one-time build
1397  --enable-dependency-tracking   do not reject slow dependency extractors
1398  --disable-libtool-lock  avoid locking (might break parallel builds)
1399
1400Optional Packages:
1401  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1402  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1403  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1404                          both]
1405  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1406  --with-sysroot=DIR Search for dependent libraries within DIR
1407                        (or the compiler's sysroot if not specified).
1408  --with-debug            turn on debugging [default=no]
1409  --with-warn             turn on warnings [default=yes]
1410  --with-python           enable building python bindings
1411
1412Some influential environment variables:
1413  CC          C compiler command
1414  CFLAGS      C compiler flags
1415  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1416              nonstandard directory <lib dir>
1417  LIBS        libraries to pass to the linker, e.g. -l<library>
1418  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1419              you have headers in a nonstandard directory <include dir>
1420  CPP         C preprocessor
1421  PYTHON      the Python interpreter
1422
1423Use these variables to override the choices made by `configure' or to help
1424it to find libraries and programs with nonstandard names/locations.
1425
1426Report bugs to the package provider.
1427_ACEOF
1428ac_status=$?
1429fi
1430
1431if test "$ac_init_help" = "recursive"; then
1432  # If there are subdirs, report their specific --help.
1433  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1434    test -d "$ac_dir" ||
1435      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1436      continue
1437    ac_builddir=.
1438
1439case "$ac_dir" in
1440.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1441*)
1442  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1443  # A ".." for each directory in $ac_dir_suffix.
1444  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1445  case $ac_top_builddir_sub in
1446  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1447  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1448  esac ;;
1449esac
1450ac_abs_top_builddir=$ac_pwd
1451ac_abs_builddir=$ac_pwd$ac_dir_suffix
1452# for backward compatibility:
1453ac_top_builddir=$ac_top_build_prefix
1454
1455case $srcdir in
1456  .)  # We are building in place.
1457    ac_srcdir=.
1458    ac_top_srcdir=$ac_top_builddir_sub
1459    ac_abs_top_srcdir=$ac_pwd ;;
1460  [\\/]* | ?:[\\/]* )  # Absolute name.
1461    ac_srcdir=$srcdir$ac_dir_suffix;
1462    ac_top_srcdir=$srcdir
1463    ac_abs_top_srcdir=$srcdir ;;
1464  *) # Relative name.
1465    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1466    ac_top_srcdir=$ac_top_build_prefix$srcdir
1467    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1468esac
1469ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1470
1471    cd "$ac_dir" || { ac_status=$?; continue; }
1472    # Check for guested configure.
1473    if test -f "$ac_srcdir/configure.gnu"; then
1474      echo &&
1475      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1476    elif test -f "$ac_srcdir/configure"; then
1477      echo &&
1478      $SHELL "$ac_srcdir/configure" --help=recursive
1479    else
1480      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1481    fi || ac_status=$?
1482    cd "$ac_pwd" || { ac_status=$?; break; }
1483  done
1484fi
1485
1486test -n "$ac_init_help" && exit $ac_status
1487if $ac_init_version; then
1488  cat <<\_ACEOF
1489libcap-ng configure 0.7
1490generated by GNU Autoconf 2.68
1491
1492Copyright (C) 2010 Free Software Foundation, Inc.
1493This configure script is free software; the Free Software Foundation
1494gives unlimited permission to copy, distribute and modify it.
1495_ACEOF
1496  exit
1497fi
1498
1499## ------------------------ ##
1500## Autoconf initialization. ##
1501## ------------------------ ##
1502
1503# ac_fn_c_try_compile LINENO
1504# --------------------------
1505# Try to compile conftest.$ac_ext, and return whether this succeeded.
1506ac_fn_c_try_compile ()
1507{
1508  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1509  rm -f conftest.$ac_objext
1510  if { { ac_try="$ac_compile"
1511case "(($ac_try" in
1512  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1513  *) ac_try_echo=$ac_try;;
1514esac
1515eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1516$as_echo "$ac_try_echo"; } >&5
1517  (eval "$ac_compile") 2>conftest.err
1518  ac_status=$?
1519  if test -s conftest.err; then
1520    grep -v '^ *+' conftest.err >conftest.er1
1521    cat conftest.er1 >&5
1522    mv -f conftest.er1 conftest.err
1523  fi
1524  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1525  test $ac_status = 0; } && {
1526	 test -z "$ac_c_werror_flag" ||
1527	 test ! -s conftest.err
1528       } && test -s conftest.$ac_objext; then :
1529  ac_retval=0
1530else
1531  $as_echo "$as_me: failed program was:" >&5
1532sed 's/^/| /' conftest.$ac_ext >&5
1533
1534	ac_retval=1
1535fi
1536  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1537  as_fn_set_status $ac_retval
1538
1539} # ac_fn_c_try_compile
1540
1541# ac_fn_c_try_link LINENO
1542# -----------------------
1543# Try to link conftest.$ac_ext, and return whether this succeeded.
1544ac_fn_c_try_link ()
1545{
1546  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1547  rm -f conftest.$ac_objext conftest$ac_exeext
1548  if { { ac_try="$ac_link"
1549case "(($ac_try" in
1550  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1551  *) ac_try_echo=$ac_try;;
1552esac
1553eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1554$as_echo "$ac_try_echo"; } >&5
1555  (eval "$ac_link") 2>conftest.err
1556  ac_status=$?
1557  if test -s conftest.err; then
1558    grep -v '^ *+' conftest.err >conftest.er1
1559    cat conftest.er1 >&5
1560    mv -f conftest.er1 conftest.err
1561  fi
1562  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1563  test $ac_status = 0; } && {
1564	 test -z "$ac_c_werror_flag" ||
1565	 test ! -s conftest.err
1566       } && test -s conftest$ac_exeext && {
1567	 test "$cross_compiling" = yes ||
1568	 $as_test_x conftest$ac_exeext
1569       }; then :
1570  ac_retval=0
1571else
1572  $as_echo "$as_me: failed program was:" >&5
1573sed 's/^/| /' conftest.$ac_ext >&5
1574
1575	ac_retval=1
1576fi
1577  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1578  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1579  # interfere with the next link command; also delete a directory that is
1580  # left behind by Apple's compiler.  We do this before executing the actions.
1581  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1582  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1583  as_fn_set_status $ac_retval
1584
1585} # ac_fn_c_try_link
1586
1587# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1588# -------------------------------------------------------
1589# Tests whether HEADER exists and can be compiled using the include files in
1590# INCLUDES, setting the cache variable VAR accordingly.
1591ac_fn_c_check_header_compile ()
1592{
1593  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1594  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1595$as_echo_n "checking for $2... " >&6; }
1596if eval \${$3+:} false; then :
1597  $as_echo_n "(cached) " >&6
1598else
1599  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1600/* end confdefs.h.  */
1601$4
1602#include <$2>
1603_ACEOF
1604if ac_fn_c_try_compile "$LINENO"; then :
1605  eval "$3=yes"
1606else
1607  eval "$3=no"
1608fi
1609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1610fi
1611eval ac_res=\$$3
1612	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1613$as_echo "$ac_res" >&6; }
1614  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1615
1616} # ac_fn_c_check_header_compile
1617
1618# ac_fn_c_try_cpp LINENO
1619# ----------------------
1620# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1621ac_fn_c_try_cpp ()
1622{
1623  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1624  if { { ac_try="$ac_cpp conftest.$ac_ext"
1625case "(($ac_try" in
1626  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1627  *) ac_try_echo=$ac_try;;
1628esac
1629eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1630$as_echo "$ac_try_echo"; } >&5
1631  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1632  ac_status=$?
1633  if test -s conftest.err; then
1634    grep -v '^ *+' conftest.err >conftest.er1
1635    cat conftest.er1 >&5
1636    mv -f conftest.er1 conftest.err
1637  fi
1638  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1639  test $ac_status = 0; } > conftest.i && {
1640	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1641	 test ! -s conftest.err
1642       }; then :
1643  ac_retval=0
1644else
1645  $as_echo "$as_me: failed program was:" >&5
1646sed 's/^/| /' conftest.$ac_ext >&5
1647
1648    ac_retval=1
1649fi
1650  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1651  as_fn_set_status $ac_retval
1652
1653} # ac_fn_c_try_cpp
1654
1655# ac_fn_c_try_run LINENO
1656# ----------------------
1657# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1658# that executables *can* be run.
1659ac_fn_c_try_run ()
1660{
1661  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1662  if { { ac_try="$ac_link"
1663case "(($ac_try" in
1664  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1665  *) ac_try_echo=$ac_try;;
1666esac
1667eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1668$as_echo "$ac_try_echo"; } >&5
1669  (eval "$ac_link") 2>&5
1670  ac_status=$?
1671  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1672  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1673  { { case "(($ac_try" in
1674  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1675  *) ac_try_echo=$ac_try;;
1676esac
1677eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1678$as_echo "$ac_try_echo"; } >&5
1679  (eval "$ac_try") 2>&5
1680  ac_status=$?
1681  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1682  test $ac_status = 0; }; }; then :
1683  ac_retval=0
1684else
1685  $as_echo "$as_me: program exited with status $ac_status" >&5
1686       $as_echo "$as_me: failed program was:" >&5
1687sed 's/^/| /' conftest.$ac_ext >&5
1688
1689       ac_retval=$ac_status
1690fi
1691  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1692  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1693  as_fn_set_status $ac_retval
1694
1695} # ac_fn_c_try_run
1696
1697# ac_fn_c_check_func LINENO FUNC VAR
1698# ----------------------------------
1699# Tests whether FUNC exists, setting the cache variable VAR accordingly
1700ac_fn_c_check_func ()
1701{
1702  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1703  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1704$as_echo_n "checking for $2... " >&6; }
1705if eval \${$3+:} false; then :
1706  $as_echo_n "(cached) " >&6
1707else
1708  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1709/* end confdefs.h.  */
1710/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1711   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1712#define $2 innocuous_$2
1713
1714/* System header to define __stub macros and hopefully few prototypes,
1715    which can conflict with char $2 (); below.
1716    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1717    <limits.h> exists even on freestanding compilers.  */
1718
1719#ifdef __STDC__
1720# include <limits.h>
1721#else
1722# include <assert.h>
1723#endif
1724
1725#undef $2
1726
1727/* Override any GCC internal prototype to avoid an error.
1728   Use char because int might match the return type of a GCC
1729   builtin and then its argument prototype would still apply.  */
1730#ifdef __cplusplus
1731extern "C"
1732#endif
1733char $2 ();
1734/* The GNU C library defines this for functions which it implements
1735    to always fail with ENOSYS.  Some functions are actually named
1736    something starting with __ and the normal name is an alias.  */
1737#if defined __stub_$2 || defined __stub___$2
1738choke me
1739#endif
1740
1741int
1742main ()
1743{
1744return $2 ();
1745  ;
1746  return 0;
1747}
1748_ACEOF
1749if ac_fn_c_try_link "$LINENO"; then :
1750  eval "$3=yes"
1751else
1752  eval "$3=no"
1753fi
1754rm -f core conftest.err conftest.$ac_objext \
1755    conftest$ac_exeext conftest.$ac_ext
1756fi
1757eval ac_res=\$$3
1758	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1759$as_echo "$ac_res" >&6; }
1760  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1761
1762} # ac_fn_c_check_func
1763
1764# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1765# -------------------------------------------------------
1766# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1767# the include files in INCLUDES and setting the cache variable VAR
1768# accordingly.
1769ac_fn_c_check_header_mongrel ()
1770{
1771  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1772  if eval \${$3+:} false; then :
1773  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1774$as_echo_n "checking for $2... " >&6; }
1775if eval \${$3+:} false; then :
1776  $as_echo_n "(cached) " >&6
1777fi
1778eval ac_res=\$$3
1779	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1780$as_echo "$ac_res" >&6; }
1781else
1782  # Is the header compilable?
1783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1784$as_echo_n "checking $2 usability... " >&6; }
1785cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1786/* end confdefs.h.  */
1787$4
1788#include <$2>
1789_ACEOF
1790if ac_fn_c_try_compile "$LINENO"; then :
1791  ac_header_compiler=yes
1792else
1793  ac_header_compiler=no
1794fi
1795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1797$as_echo "$ac_header_compiler" >&6; }
1798
1799# Is the header present?
1800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1801$as_echo_n "checking $2 presence... " >&6; }
1802cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1803/* end confdefs.h.  */
1804#include <$2>
1805_ACEOF
1806if ac_fn_c_try_cpp "$LINENO"; then :
1807  ac_header_preproc=yes
1808else
1809  ac_header_preproc=no
1810fi
1811rm -f conftest.err conftest.i conftest.$ac_ext
1812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1813$as_echo "$ac_header_preproc" >&6; }
1814
1815# So?  What about this header?
1816case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1817  yes:no: )
1818    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1819$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1820    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1821$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1822    ;;
1823  no:yes:* )
1824    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1825$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1826    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1827$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1828    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1829$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1830    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1831$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1832    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1833$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1834    ;;
1835esac
1836  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1837$as_echo_n "checking for $2... " >&6; }
1838if eval \${$3+:} false; then :
1839  $as_echo_n "(cached) " >&6
1840else
1841  eval "$3=\$ac_header_compiler"
1842fi
1843eval ac_res=\$$3
1844	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1845$as_echo "$ac_res" >&6; }
1846fi
1847  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1848
1849} # ac_fn_c_check_header_mongrel
1850cat >config.log <<_ACEOF
1851This file contains any messages produced by compilers while
1852running configure, to aid debugging if configure makes a mistake.
1853
1854It was created by libcap-ng $as_me 0.7, which was
1855generated by GNU Autoconf 2.68.  Invocation command line was
1856
1857  $ $0 $@
1858
1859_ACEOF
1860exec 5>>config.log
1861{
1862cat <<_ASUNAME
1863## --------- ##
1864## Platform. ##
1865## --------- ##
1866
1867hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1868uname -m = `(uname -m) 2>/dev/null || echo unknown`
1869uname -r = `(uname -r) 2>/dev/null || echo unknown`
1870uname -s = `(uname -s) 2>/dev/null || echo unknown`
1871uname -v = `(uname -v) 2>/dev/null || echo unknown`
1872
1873/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1874/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1875
1876/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1877/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1878/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1879/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1880/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1881/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1882/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1883
1884_ASUNAME
1885
1886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1887for as_dir in $PATH
1888do
1889  IFS=$as_save_IFS
1890  test -z "$as_dir" && as_dir=.
1891    $as_echo "PATH: $as_dir"
1892  done
1893IFS=$as_save_IFS
1894
1895} >&5
1896
1897cat >&5 <<_ACEOF
1898
1899
1900## ----------- ##
1901## Core tests. ##
1902## ----------- ##
1903
1904_ACEOF
1905
1906
1907# Keep a trace of the command line.
1908# Strip out --no-create and --no-recursion so they do not pile up.
1909# Strip out --silent because we don't want to record it for future runs.
1910# Also quote any args containing shell meta-characters.
1911# Make two passes to allow for proper duplicate-argument suppression.
1912ac_configure_args=
1913ac_configure_args0=
1914ac_configure_args1=
1915ac_must_keep_next=false
1916for ac_pass in 1 2
1917do
1918  for ac_arg
1919  do
1920    case $ac_arg in
1921    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1922    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1923    | -silent | --silent | --silen | --sile | --sil)
1924      continue ;;
1925    *\'*)
1926      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1927    esac
1928    case $ac_pass in
1929    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1930    2)
1931      as_fn_append ac_configure_args1 " '$ac_arg'"
1932      if test $ac_must_keep_next = true; then
1933	ac_must_keep_next=false # Got value, back to normal.
1934      else
1935	case $ac_arg in
1936	  *=* | --config-cache | -C | -disable-* | --disable-* \
1937	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1938	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1939	  | -with-* | --with-* | -without-* | --without-* | --x)
1940	    case "$ac_configure_args0 " in
1941	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1942	    esac
1943	    ;;
1944	  -* ) ac_must_keep_next=true ;;
1945	esac
1946      fi
1947      as_fn_append ac_configure_args " '$ac_arg'"
1948      ;;
1949    esac
1950  done
1951done
1952{ ac_configure_args0=; unset ac_configure_args0;}
1953{ ac_configure_args1=; unset ac_configure_args1;}
1954
1955# When interrupted or exit'd, cleanup temporary files, and complete
1956# config.log.  We remove comments because anyway the quotes in there
1957# would cause problems or look ugly.
1958# WARNING: Use '\'' to represent an apostrophe within the trap.
1959# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1960trap 'exit_status=$?
1961  # Save into config.log some information that might help in debugging.
1962  {
1963    echo
1964
1965    $as_echo "## ---------------- ##
1966## Cache variables. ##
1967## ---------------- ##"
1968    echo
1969    # The following way of writing the cache mishandles newlines in values,
1970(
1971  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1972    eval ac_val=\$$ac_var
1973    case $ac_val in #(
1974    *${as_nl}*)
1975      case $ac_var in #(
1976      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1977$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1978      esac
1979      case $ac_var in #(
1980      _ | IFS | as_nl) ;; #(
1981      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1982      *) { eval $ac_var=; unset $ac_var;} ;;
1983      esac ;;
1984    esac
1985  done
1986  (set) 2>&1 |
1987    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1988    *${as_nl}ac_space=\ *)
1989      sed -n \
1990	"s/'\''/'\''\\\\'\'''\''/g;
1991	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1992      ;; #(
1993    *)
1994      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1995      ;;
1996    esac |
1997    sort
1998)
1999    echo
2000
2001    $as_echo "## ----------------- ##
2002## Output variables. ##
2003## ----------------- ##"
2004    echo
2005    for ac_var in $ac_subst_vars
2006    do
2007      eval ac_val=\$$ac_var
2008      case $ac_val in
2009      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2010      esac
2011      $as_echo "$ac_var='\''$ac_val'\''"
2012    done | sort
2013    echo
2014
2015    if test -n "$ac_subst_files"; then
2016      $as_echo "## ------------------- ##
2017## File substitutions. ##
2018## ------------------- ##"
2019      echo
2020      for ac_var in $ac_subst_files
2021      do
2022	eval ac_val=\$$ac_var
2023	case $ac_val in
2024	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2025	esac
2026	$as_echo "$ac_var='\''$ac_val'\''"
2027      done | sort
2028      echo
2029    fi
2030
2031    if test -s confdefs.h; then
2032      $as_echo "## ----------- ##
2033## confdefs.h. ##
2034## ----------- ##"
2035      echo
2036      cat confdefs.h
2037      echo
2038    fi
2039    test "$ac_signal" != 0 &&
2040      $as_echo "$as_me: caught signal $ac_signal"
2041    $as_echo "$as_me: exit $exit_status"
2042  } >&5
2043  rm -f core *.core core.conftest.* &&
2044    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2045    exit $exit_status
2046' 0
2047for ac_signal in 1 2 13 15; do
2048  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2049done
2050ac_signal=0
2051
2052# confdefs.h avoids OS command line length limits that DEFS can exceed.
2053rm -f -r conftest* confdefs.h
2054
2055$as_echo "/* confdefs.h */" > confdefs.h
2056
2057# Predefined preprocessor variables.
2058
2059cat >>confdefs.h <<_ACEOF
2060#define PACKAGE_NAME "$PACKAGE_NAME"
2061_ACEOF
2062
2063cat >>confdefs.h <<_ACEOF
2064#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2065_ACEOF
2066
2067cat >>confdefs.h <<_ACEOF
2068#define PACKAGE_VERSION "$PACKAGE_VERSION"
2069_ACEOF
2070
2071cat >>confdefs.h <<_ACEOF
2072#define PACKAGE_STRING "$PACKAGE_STRING"
2073_ACEOF
2074
2075cat >>confdefs.h <<_ACEOF
2076#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2077_ACEOF
2078
2079cat >>confdefs.h <<_ACEOF
2080#define PACKAGE_URL "$PACKAGE_URL"
2081_ACEOF
2082
2083
2084# Let the site file select an alternate cache file if it wants to.
2085# Prefer an explicitly selected file to automatically selected ones.
2086ac_site_file1=NONE
2087ac_site_file2=NONE
2088if test -n "$CONFIG_SITE"; then
2089  # We do not want a PATH search for config.site.
2090  case $CONFIG_SITE in #((
2091    -*)  ac_site_file1=./$CONFIG_SITE;;
2092    */*) ac_site_file1=$CONFIG_SITE;;
2093    *)   ac_site_file1=./$CONFIG_SITE;;
2094  esac
2095elif test "x$prefix" != xNONE; then
2096  ac_site_file1=$prefix/share/config.site
2097  ac_site_file2=$prefix/etc/config.site
2098else
2099  ac_site_file1=$ac_default_prefix/share/config.site
2100  ac_site_file2=$ac_default_prefix/etc/config.site
2101fi
2102for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2103do
2104  test "x$ac_site_file" = xNONE && continue
2105  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2106    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2107$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2108    sed 's/^/| /' "$ac_site_file" >&5
2109    . "$ac_site_file" \
2110      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2111$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2112as_fn_error $? "failed to load site script $ac_site_file
2113See \`config.log' for more details" "$LINENO" 5; }
2114  fi
2115done
2116
2117if test -r "$cache_file"; then
2118  # Some versions of bash will fail to source /dev/null (special files
2119  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2120  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2121    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2122$as_echo "$as_me: loading cache $cache_file" >&6;}
2123    case $cache_file in
2124      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2125      *)                      . "./$cache_file";;
2126    esac
2127  fi
2128else
2129  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2130$as_echo "$as_me: creating cache $cache_file" >&6;}
2131  >$cache_file
2132fi
2133
2134# Check that the precious variables saved in the cache have kept the same
2135# value.
2136ac_cache_corrupted=false
2137for ac_var in $ac_precious_vars; do
2138  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2139  eval ac_new_set=\$ac_env_${ac_var}_set
2140  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2141  eval ac_new_val=\$ac_env_${ac_var}_value
2142  case $ac_old_set,$ac_new_set in
2143    set,)
2144      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2145$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2146      ac_cache_corrupted=: ;;
2147    ,set)
2148      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2149$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2150      ac_cache_corrupted=: ;;
2151    ,);;
2152    *)
2153      if test "x$ac_old_val" != "x$ac_new_val"; then
2154	# differences in whitespace do not lead to failure.
2155	ac_old_val_w=`echo x $ac_old_val`
2156	ac_new_val_w=`echo x $ac_new_val`
2157	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2158	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2159$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2160	  ac_cache_corrupted=:
2161	else
2162	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2163$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2164	  eval $ac_var=\$ac_old_val
2165	fi
2166	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2167$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2168	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2169$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2170      fi;;
2171  esac
2172  # Pass precious variables to config.status.
2173  if test "$ac_new_set" = set; then
2174    case $ac_new_val in
2175    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2176    *) ac_arg=$ac_var=$ac_new_val ;;
2177    esac
2178    case " $ac_configure_args " in
2179      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2180      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2181    esac
2182  fi
2183done
2184if $ac_cache_corrupted; then
2185  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2186$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2187  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2188$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2189  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2190fi
2191## -------------------- ##
2192## Main body of script. ##
2193## -------------------- ##
2194
2195ac_ext=c
2196ac_cpp='$CPP $CPPFLAGS'
2197ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2198ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2199ac_compiler_gnu=$ac_cv_c_compiler_gnu
2200
2201
2202ac_config_headers="$ac_config_headers config.h"
2203
2204
2205
2206echo Configuring libcap-ng $VERSION
2207
2208ac_aux_dir=
2209for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2210  if test -f "$ac_dir/install-sh"; then
2211    ac_aux_dir=$ac_dir
2212    ac_install_sh="$ac_aux_dir/install-sh -c"
2213    break
2214  elif test -f "$ac_dir/install.sh"; then
2215    ac_aux_dir=$ac_dir
2216    ac_install_sh="$ac_aux_dir/install.sh -c"
2217    break
2218  elif test -f "$ac_dir/shtool"; then
2219    ac_aux_dir=$ac_dir
2220    ac_install_sh="$ac_aux_dir/shtool install -c"
2221    break
2222  fi
2223done
2224if test -z "$ac_aux_dir"; then
2225  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2226fi
2227
2228# These three variables are undocumented and unsupported,
2229# and are intended to be withdrawn in a future Autoconf release.
2230# They can cause serious problems if a builder's source tree is in a directory
2231# whose full name contains unusual characters.
2232ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2233ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2234ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2235
2236
2237# Make sure we can run config.sub.
2238$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2239  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2240
2241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2242$as_echo_n "checking build system type... " >&6; }
2243if ${ac_cv_build+:} false; then :
2244  $as_echo_n "(cached) " >&6
2245else
2246  ac_build_alias=$build_alias
2247test "x$ac_build_alias" = x &&
2248  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2249test "x$ac_build_alias" = x &&
2250  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2251ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2252  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2253
2254fi
2255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2256$as_echo "$ac_cv_build" >&6; }
2257case $ac_cv_build in
2258*-*-*) ;;
2259*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2260esac
2261build=$ac_cv_build
2262ac_save_IFS=$IFS; IFS='-'
2263set x $ac_cv_build
2264shift
2265build_cpu=$1
2266build_vendor=$2
2267shift; shift
2268# Remember, the first character of IFS is used to create $*,
2269# except with old shells:
2270build_os=$*
2271IFS=$ac_save_IFS
2272case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2273
2274
2275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2276$as_echo_n "checking host system type... " >&6; }
2277if ${ac_cv_host+:} false; then :
2278  $as_echo_n "(cached) " >&6
2279else
2280  if test "x$host_alias" = x; then
2281  ac_cv_host=$ac_cv_build
2282else
2283  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2284    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2285fi
2286
2287fi
2288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2289$as_echo "$ac_cv_host" >&6; }
2290case $ac_cv_host in
2291*-*-*) ;;
2292*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2293esac
2294host=$ac_cv_host
2295ac_save_IFS=$IFS; IFS='-'
2296set x $ac_cv_host
2297shift
2298host_cpu=$1
2299host_vendor=$2
2300shift; shift
2301# Remember, the first character of IFS is used to create $*,
2302# except with old shells:
2303host_os=$*
2304IFS=$ac_save_IFS
2305case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2306
2307
2308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2309$as_echo_n "checking target system type... " >&6; }
2310if ${ac_cv_target+:} false; then :
2311  $as_echo_n "(cached) " >&6
2312else
2313  if test "x$target_alias" = x; then
2314  ac_cv_target=$ac_cv_host
2315else
2316  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2317    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2318fi
2319
2320fi
2321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2322$as_echo "$ac_cv_target" >&6; }
2323case $ac_cv_target in
2324*-*-*) ;;
2325*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2326esac
2327target=$ac_cv_target
2328ac_save_IFS=$IFS; IFS='-'
2329set x $ac_cv_target
2330shift
2331target_cpu=$1
2332target_vendor=$2
2333shift; shift
2334# Remember, the first character of IFS is used to create $*,
2335# except with old shells:
2336target_os=$*
2337IFS=$ac_save_IFS
2338case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2339
2340
2341# The aliases save the names the user supplied, while $host etc.
2342# will get canonicalized.
2343test -n "$target_alias" &&
2344  test "$program_prefix$program_suffix$program_transform_name" = \
2345    NONENONEs,x,x, &&
2346  program_prefix=${target_alias}-
2347am__api_version='1.11'
2348
2349# Find a good install program.  We prefer a C program (faster),
2350# so one script is as good as another.  But avoid the broken or
2351# incompatible versions:
2352# SysV /etc/install, /usr/sbin/install
2353# SunOS /usr/etc/install
2354# IRIX /sbin/install
2355# AIX /bin/install
2356# AmigaOS /C/install, which installs bootblocks on floppy discs
2357# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2358# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2359# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2360# OS/2's system install, which has a completely different semantic
2361# ./install, which can be erroneously created by make from ./install.sh.
2362# Reject install programs that cannot install multiple files.
2363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2364$as_echo_n "checking for a BSD-compatible install... " >&6; }
2365if test -z "$INSTALL"; then
2366if ${ac_cv_path_install+:} false; then :
2367  $as_echo_n "(cached) " >&6
2368else
2369  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2370for as_dir in $PATH
2371do
2372  IFS=$as_save_IFS
2373  test -z "$as_dir" && as_dir=.
2374    # Account for people who put trailing slashes in PATH elements.
2375case $as_dir/ in #((
2376  ./ | .// | /[cC]/* | \
2377  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2378  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2379  /usr/ucb/* ) ;;
2380  *)
2381    # OSF1 and SCO ODT 3.0 have their own names for install.
2382    # Don't use installbsd from OSF since it installs stuff as root
2383    # by default.
2384    for ac_prog in ginstall scoinst install; do
2385      for ac_exec_ext in '' $ac_executable_extensions; do
2386	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2387	  if test $ac_prog = install &&
2388	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2389	    # AIX install.  It has an incompatible calling convention.
2390	    :
2391	  elif test $ac_prog = install &&
2392	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2393	    # program-specific install script used by HP pwplus--don't use.
2394	    :
2395	  else
2396	    rm -rf conftest.one conftest.two conftest.dir
2397	    echo one > conftest.one
2398	    echo two > conftest.two
2399	    mkdir conftest.dir
2400	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2401	      test -s conftest.one && test -s conftest.two &&
2402	      test -s conftest.dir/conftest.one &&
2403	      test -s conftest.dir/conftest.two
2404	    then
2405	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2406	      break 3
2407	    fi
2408	  fi
2409	fi
2410      done
2411    done
2412    ;;
2413esac
2414
2415  done
2416IFS=$as_save_IFS
2417
2418rm -rf conftest.one conftest.two conftest.dir
2419
2420fi
2421  if test "${ac_cv_path_install+set}" = set; then
2422    INSTALL=$ac_cv_path_install
2423  else
2424    # As a last resort, use the slow shell script.  Don't cache a
2425    # value for INSTALL within a source directory, because that will
2426    # break other packages using the cache if that directory is
2427    # removed, or if the value is a relative name.
2428    INSTALL=$ac_install_sh
2429  fi
2430fi
2431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2432$as_echo "$INSTALL" >&6; }
2433
2434# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2435# It thinks the first close brace ends the variable substitution.
2436test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2437
2438test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2439
2440test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2441
2442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2443$as_echo_n "checking whether build environment is sane... " >&6; }
2444# Just in case
2445sleep 1
2446echo timestamp > conftest.file
2447# Reject unsafe characters in $srcdir or the absolute working directory
2448# name.  Accept space and tab only in the latter.
2449am_lf='
2450'
2451case `pwd` in
2452  *[\\\"\#\$\&\'\`$am_lf]*)
2453    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2454esac
2455case $srcdir in
2456  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2457    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2458esac
2459
2460# Do `set' in a subshell so we don't clobber the current shell's
2461# arguments.  Must try -L first in case configure is actually a
2462# symlink; some systems play weird games with the mod time of symlinks
2463# (eg FreeBSD returns the mod time of the symlink's containing
2464# directory).
2465if (
2466   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2467   if test "$*" = "X"; then
2468      # -L didn't work.
2469      set X `ls -t "$srcdir/configure" conftest.file`
2470   fi
2471   rm -f conftest.file
2472   if test "$*" != "X $srcdir/configure conftest.file" \
2473      && test "$*" != "X conftest.file $srcdir/configure"; then
2474
2475      # If neither matched, then we have a broken ls.  This can happen
2476      # if, for instance, CONFIG_SHELL is bash and it inherits a
2477      # broken ls alias from the environment.  This has actually
2478      # happened.  Such a system could not be considered "sane".
2479      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2480alias in your environment" "$LINENO" 5
2481   fi
2482
2483   test "$2" = conftest.file
2484   )
2485then
2486   # Ok.
2487   :
2488else
2489   as_fn_error $? "newly created file is older than distributed files!
2490Check your system clock" "$LINENO" 5
2491fi
2492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2493$as_echo "yes" >&6; }
2494test "$program_prefix" != NONE &&
2495  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2496# Use a double $ so make ignores it.
2497test "$program_suffix" != NONE &&
2498  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2499# Double any \ or $.
2500# By default was `s,x,x', remove it if useless.
2501ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2502program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2503
2504# expand $ac_aux_dir to an absolute path
2505am_aux_dir=`cd $ac_aux_dir && pwd`
2506
2507if test x"${MISSING+set}" != xset; then
2508  case $am_aux_dir in
2509  *\ * | *\	*)
2510    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2511  *)
2512    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2513  esac
2514fi
2515# Use eval to expand $SHELL
2516if eval "$MISSING --run true"; then
2517  am_missing_run="$MISSING --run "
2518else
2519  am_missing_run=
2520  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2521$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2522fi
2523
2524if test x"${install_sh}" != xset; then
2525  case $am_aux_dir in
2526  *\ * | *\	*)
2527    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2528  *)
2529    install_sh="\${SHELL} $am_aux_dir/install-sh"
2530  esac
2531fi
2532
2533# Installed binaries are usually stripped using `strip' when the user
2534# run `make install-strip'.  However `strip' might not be the right
2535# tool to use in cross-compilation environments, therefore Automake
2536# will honor the `STRIP' environment variable to overrule this program.
2537if test "$cross_compiling" != no; then
2538  if test -n "$ac_tool_prefix"; then
2539  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2540set dummy ${ac_tool_prefix}strip; ac_word=$2
2541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2542$as_echo_n "checking for $ac_word... " >&6; }
2543if ${ac_cv_prog_STRIP+:} false; then :
2544  $as_echo_n "(cached) " >&6
2545else
2546  if test -n "$STRIP"; then
2547  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2548else
2549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2550for as_dir in $PATH
2551do
2552  IFS=$as_save_IFS
2553  test -z "$as_dir" && as_dir=.
2554    for ac_exec_ext in '' $ac_executable_extensions; do
2555  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2556    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2557    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2558    break 2
2559  fi
2560done
2561  done
2562IFS=$as_save_IFS
2563
2564fi
2565fi
2566STRIP=$ac_cv_prog_STRIP
2567if test -n "$STRIP"; then
2568  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2569$as_echo "$STRIP" >&6; }
2570else
2571  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2572$as_echo "no" >&6; }
2573fi
2574
2575
2576fi
2577if test -z "$ac_cv_prog_STRIP"; then
2578  ac_ct_STRIP=$STRIP
2579  # Extract the first word of "strip", so it can be a program name with args.
2580set dummy strip; ac_word=$2
2581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2582$as_echo_n "checking for $ac_word... " >&6; }
2583if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2584  $as_echo_n "(cached) " >&6
2585else
2586  if test -n "$ac_ct_STRIP"; then
2587  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2588else
2589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2590for as_dir in $PATH
2591do
2592  IFS=$as_save_IFS
2593  test -z "$as_dir" && as_dir=.
2594    for ac_exec_ext in '' $ac_executable_extensions; do
2595  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2596    ac_cv_prog_ac_ct_STRIP="strip"
2597    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2598    break 2
2599  fi
2600done
2601  done
2602IFS=$as_save_IFS
2603
2604fi
2605fi
2606ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2607if test -n "$ac_ct_STRIP"; then
2608  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2609$as_echo "$ac_ct_STRIP" >&6; }
2610else
2611  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2612$as_echo "no" >&6; }
2613fi
2614
2615  if test "x$ac_ct_STRIP" = x; then
2616    STRIP=":"
2617  else
2618    case $cross_compiling:$ac_tool_warned in
2619yes:)
2620{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2621$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2622ac_tool_warned=yes ;;
2623esac
2624    STRIP=$ac_ct_STRIP
2625  fi
2626else
2627  STRIP="$ac_cv_prog_STRIP"
2628fi
2629
2630fi
2631INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2632
2633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2634$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2635if test -z "$MKDIR_P"; then
2636  if ${ac_cv_path_mkdir+:} false; then :
2637  $as_echo_n "(cached) " >&6
2638else
2639  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2640for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2641do
2642  IFS=$as_save_IFS
2643  test -z "$as_dir" && as_dir=.
2644    for ac_prog in mkdir gmkdir; do
2645	 for ac_exec_ext in '' $ac_executable_extensions; do
2646	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2647	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2648	     'mkdir (GNU coreutils) '* | \
2649	     'mkdir (coreutils) '* | \
2650	     'mkdir (fileutils) '4.1*)
2651	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2652	       break 3;;
2653	   esac
2654	 done
2655       done
2656  done
2657IFS=$as_save_IFS
2658
2659fi
2660
2661  test -d ./--version && rmdir ./--version
2662  if test "${ac_cv_path_mkdir+set}" = set; then
2663    MKDIR_P="$ac_cv_path_mkdir -p"
2664  else
2665    # As a last resort, use the slow shell script.  Don't cache a
2666    # value for MKDIR_P within a source directory, because that will
2667    # break other packages using the cache if that directory is
2668    # removed, or if the value is a relative name.
2669    MKDIR_P="$ac_install_sh -d"
2670  fi
2671fi
2672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2673$as_echo "$MKDIR_P" >&6; }
2674
2675mkdir_p="$MKDIR_P"
2676case $mkdir_p in
2677  [\\/$]* | ?:[\\/]*) ;;
2678  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2679esac
2680
2681for ac_prog in gawk mawk nawk awk
2682do
2683  # Extract the first word of "$ac_prog", so it can be a program name with args.
2684set dummy $ac_prog; ac_word=$2
2685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2686$as_echo_n "checking for $ac_word... " >&6; }
2687if ${ac_cv_prog_AWK+:} false; then :
2688  $as_echo_n "(cached) " >&6
2689else
2690  if test -n "$AWK"; then
2691  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2692else
2693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2694for as_dir in $PATH
2695do
2696  IFS=$as_save_IFS
2697  test -z "$as_dir" && as_dir=.
2698    for ac_exec_ext in '' $ac_executable_extensions; do
2699  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2700    ac_cv_prog_AWK="$ac_prog"
2701    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2702    break 2
2703  fi
2704done
2705  done
2706IFS=$as_save_IFS
2707
2708fi
2709fi
2710AWK=$ac_cv_prog_AWK
2711if test -n "$AWK"; then
2712  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2713$as_echo "$AWK" >&6; }
2714else
2715  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2716$as_echo "no" >&6; }
2717fi
2718
2719
2720  test -n "$AWK" && break
2721done
2722
2723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2724$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2725set x ${MAKE-make}
2726ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2727if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2728  $as_echo_n "(cached) " >&6
2729else
2730  cat >conftest.make <<\_ACEOF
2731SHELL = /bin/sh
2732all:
2733	@echo '@@@%%%=$(MAKE)=@@@%%%'
2734_ACEOF
2735# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2736case `${MAKE-make} -f conftest.make 2>/dev/null` in
2737  *@@@%%%=?*=@@@%%%*)
2738    eval ac_cv_prog_make_${ac_make}_set=yes;;
2739  *)
2740    eval ac_cv_prog_make_${ac_make}_set=no;;
2741esac
2742rm -f conftest.make
2743fi
2744if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2745  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2746$as_echo "yes" >&6; }
2747  SET_MAKE=
2748else
2749  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2750$as_echo "no" >&6; }
2751  SET_MAKE="MAKE=${MAKE-make}"
2752fi
2753
2754rm -rf .tst 2>/dev/null
2755mkdir .tst 2>/dev/null
2756if test -d .tst; then
2757  am__leading_dot=.
2758else
2759  am__leading_dot=_
2760fi
2761rmdir .tst 2>/dev/null
2762
2763if test "`cd $srcdir && pwd`" != "`pwd`"; then
2764  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2765  # is not polluted with repeated "-I."
2766  am__isrc=' -I$(srcdir)'
2767  # test to see if srcdir already configured
2768  if test -f $srcdir/config.status; then
2769    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2770  fi
2771fi
2772
2773# test whether we have cygpath
2774if test -z "$CYGPATH_W"; then
2775  if (cygpath --version) >/dev/null 2>/dev/null; then
2776    CYGPATH_W='cygpath -w'
2777  else
2778    CYGPATH_W=echo
2779  fi
2780fi
2781
2782
2783# Define the identity of the package.
2784 PACKAGE='libcap-ng'
2785 VERSION='0.7'
2786
2787
2788cat >>confdefs.h <<_ACEOF
2789#define PACKAGE "$PACKAGE"
2790_ACEOF
2791
2792
2793cat >>confdefs.h <<_ACEOF
2794#define VERSION "$VERSION"
2795_ACEOF
2796
2797# Some tools Automake needs.
2798
2799ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2800
2801
2802AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2803
2804
2805AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2806
2807
2808AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2809
2810
2811MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2812
2813# We need awk for the "check" target.  The system "awk" is bad on
2814# some platforms.
2815# Always define AMTAR for backward compatibility.  Yes, it's still used
2816# in the wild :-(  We should find a proper way to deprecate it ...
2817AMTAR='$${TAR-tar}'
2818
2819am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2820
2821
2822
2823
2824
2825case `pwd` in
2826  *\ * | *\	*)
2827    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2828$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2829esac
2830
2831
2832
2833macro_version='2.4.2'
2834macro_revision='1.3337'
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848ltmain="$ac_aux_dir/ltmain.sh"
2849
2850# Backslashify metacharacters that are still active within
2851# double-quoted strings.
2852sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2853
2854# Same as above, but do not quote variable references.
2855double_quote_subst='s/\(["`\\]\)/\\\1/g'
2856
2857# Sed substitution to delay expansion of an escaped shell variable in a
2858# double_quote_subst'ed string.
2859delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2860
2861# Sed substitution to delay expansion of an escaped single quote.
2862delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2863
2864# Sed substitution to avoid accidental globbing in evaled expressions
2865no_glob_subst='s/\*/\\\*/g'
2866
2867ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2868ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2869ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2870
2871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2872$as_echo_n "checking how to print strings... " >&6; }
2873# Test print first, because it will be a builtin if present.
2874if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2875   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2876  ECHO='print -r --'
2877elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2878  ECHO='printf %s\n'
2879else
2880  # Use this function as a fallback that always works.
2881  func_fallback_echo ()
2882  {
2883    eval 'cat <<_LTECHO_EOF
2884$1
2885_LTECHO_EOF'
2886  }
2887  ECHO='func_fallback_echo'
2888fi
2889
2890# func_echo_all arg...
2891# Invoke $ECHO with all args, space-separated.
2892func_echo_all ()
2893{
2894    $ECHO ""
2895}
2896
2897case "$ECHO" in
2898  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2899$as_echo "printf" >&6; } ;;
2900  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2901$as_echo "print -r" >&6; } ;;
2902  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2903$as_echo "cat" >&6; } ;;
2904esac
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919DEPDIR="${am__leading_dot}deps"
2920
2921ac_config_commands="$ac_config_commands depfiles"
2922
2923
2924am_make=${MAKE-make}
2925cat > confinc << 'END'
2926am__doit:
2927	@echo this is the am__doit target
2928.PHONY: am__doit
2929END
2930# If we don't find an include directive, just comment out the code.
2931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2932$as_echo_n "checking for style of include used by $am_make... " >&6; }
2933am__include="#"
2934am__quote=
2935_am_result=none
2936# First try GNU make style include.
2937echo "include confinc" > confmf
2938# Ignore all kinds of additional output from `make'.
2939case `$am_make -s -f confmf 2> /dev/null` in #(
2940*the\ am__doit\ target*)
2941  am__include=include
2942  am__quote=
2943  _am_result=GNU
2944  ;;
2945esac
2946# Now try BSD make style include.
2947if test "$am__include" = "#"; then
2948   echo '.include "confinc"' > confmf
2949   case `$am_make -s -f confmf 2> /dev/null` in #(
2950   *the\ am__doit\ target*)
2951     am__include=.include
2952     am__quote="\""
2953     _am_result=BSD
2954     ;;
2955   esac
2956fi
2957
2958
2959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2960$as_echo "$_am_result" >&6; }
2961rm -f confinc confmf
2962
2963# Check whether --enable-dependency-tracking was given.
2964if test "${enable_dependency_tracking+set}" = set; then :
2965  enableval=$enable_dependency_tracking;
2966fi
2967
2968if test "x$enable_dependency_tracking" != xno; then
2969  am_depcomp="$ac_aux_dir/depcomp"
2970  AMDEPBACKSLASH='\'
2971  am__nodep='_no'
2972fi
2973 if test "x$enable_dependency_tracking" != xno; then
2974  AMDEP_TRUE=
2975  AMDEP_FALSE='#'
2976else
2977  AMDEP_TRUE='#'
2978  AMDEP_FALSE=
2979fi
2980
2981
2982ac_ext=c
2983ac_cpp='$CPP $CPPFLAGS'
2984ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2985ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2986ac_compiler_gnu=$ac_cv_c_compiler_gnu
2987if test -n "$ac_tool_prefix"; then
2988  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2989set dummy ${ac_tool_prefix}gcc; ac_word=$2
2990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2991$as_echo_n "checking for $ac_word... " >&6; }
2992if ${ac_cv_prog_CC+:} false; then :
2993  $as_echo_n "(cached) " >&6
2994else
2995  if test -n "$CC"; then
2996  ac_cv_prog_CC="$CC" # Let the user override the test.
2997else
2998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2999for as_dir in $PATH
3000do
3001  IFS=$as_save_IFS
3002  test -z "$as_dir" && as_dir=.
3003    for ac_exec_ext in '' $ac_executable_extensions; do
3004  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3005    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3006    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3007    break 2
3008  fi
3009done
3010  done
3011IFS=$as_save_IFS
3012
3013fi
3014fi
3015CC=$ac_cv_prog_CC
3016if test -n "$CC"; then
3017  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3018$as_echo "$CC" >&6; }
3019else
3020  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3021$as_echo "no" >&6; }
3022fi
3023
3024
3025fi
3026if test -z "$ac_cv_prog_CC"; then
3027  ac_ct_CC=$CC
3028  # Extract the first word of "gcc", so it can be a program name with args.
3029set dummy gcc; ac_word=$2
3030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3031$as_echo_n "checking for $ac_word... " >&6; }
3032if ${ac_cv_prog_ac_ct_CC+:} false; then :
3033  $as_echo_n "(cached) " >&6
3034else
3035  if test -n "$ac_ct_CC"; then
3036  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3037else
3038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3039for as_dir in $PATH
3040do
3041  IFS=$as_save_IFS
3042  test -z "$as_dir" && as_dir=.
3043    for ac_exec_ext in '' $ac_executable_extensions; do
3044  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3045    ac_cv_prog_ac_ct_CC="gcc"
3046    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3047    break 2
3048  fi
3049done
3050  done
3051IFS=$as_save_IFS
3052
3053fi
3054fi
3055ac_ct_CC=$ac_cv_prog_ac_ct_CC
3056if test -n "$ac_ct_CC"; then
3057  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3058$as_echo "$ac_ct_CC" >&6; }
3059else
3060  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3061$as_echo "no" >&6; }
3062fi
3063
3064  if test "x$ac_ct_CC" = x; then
3065    CC=""
3066  else
3067    case $cross_compiling:$ac_tool_warned in
3068yes:)
3069{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3070$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3071ac_tool_warned=yes ;;
3072esac
3073    CC=$ac_ct_CC
3074  fi
3075else
3076  CC="$ac_cv_prog_CC"
3077fi
3078
3079if test -z "$CC"; then
3080          if test -n "$ac_tool_prefix"; then
3081    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3082set dummy ${ac_tool_prefix}cc; ac_word=$2
3083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3084$as_echo_n "checking for $ac_word... " >&6; }
3085if ${ac_cv_prog_CC+:} false; then :
3086  $as_echo_n "(cached) " >&6
3087else
3088  if test -n "$CC"; then
3089  ac_cv_prog_CC="$CC" # Let the user override the test.
3090else
3091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3092for as_dir in $PATH
3093do
3094  IFS=$as_save_IFS
3095  test -z "$as_dir" && as_dir=.
3096    for ac_exec_ext in '' $ac_executable_extensions; do
3097  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3098    ac_cv_prog_CC="${ac_tool_prefix}cc"
3099    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3100    break 2
3101  fi
3102done
3103  done
3104IFS=$as_save_IFS
3105
3106fi
3107fi
3108CC=$ac_cv_prog_CC
3109if test -n "$CC"; then
3110  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3111$as_echo "$CC" >&6; }
3112else
3113  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3114$as_echo "no" >&6; }
3115fi
3116
3117
3118  fi
3119fi
3120if test -z "$CC"; then
3121  # Extract the first word of "cc", so it can be a program name with args.
3122set dummy cc; ac_word=$2
3123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3124$as_echo_n "checking for $ac_word... " >&6; }
3125if ${ac_cv_prog_CC+:} false; then :
3126  $as_echo_n "(cached) " >&6
3127else
3128  if test -n "$CC"; then
3129  ac_cv_prog_CC="$CC" # Let the user override the test.
3130else
3131  ac_prog_rejected=no
3132as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3133for as_dir in $PATH
3134do
3135  IFS=$as_save_IFS
3136  test -z "$as_dir" && as_dir=.
3137    for ac_exec_ext in '' $ac_executable_extensions; do
3138  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3139    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3140       ac_prog_rejected=yes
3141       continue
3142     fi
3143    ac_cv_prog_CC="cc"
3144    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3145    break 2
3146  fi
3147done
3148  done
3149IFS=$as_save_IFS
3150
3151if test $ac_prog_rejected = yes; then
3152  # We found a bogon in the path, so make sure we never use it.
3153  set dummy $ac_cv_prog_CC
3154  shift
3155  if test $# != 0; then
3156    # We chose a different compiler from the bogus one.
3157    # However, it has the same basename, so the bogon will be chosen
3158    # first if we set CC to just the basename; use the full file name.
3159    shift
3160    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3161  fi
3162fi
3163fi
3164fi
3165CC=$ac_cv_prog_CC
3166if test -n "$CC"; then
3167  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3168$as_echo "$CC" >&6; }
3169else
3170  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3171$as_echo "no" >&6; }
3172fi
3173
3174
3175fi
3176if test -z "$CC"; then
3177  if test -n "$ac_tool_prefix"; then
3178  for ac_prog in cl.exe
3179  do
3180    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3181set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3183$as_echo_n "checking for $ac_word... " >&6; }
3184if ${ac_cv_prog_CC+:} false; then :
3185  $as_echo_n "(cached) " >&6
3186else
3187  if test -n "$CC"; then
3188  ac_cv_prog_CC="$CC" # Let the user override the test.
3189else
3190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3191for as_dir in $PATH
3192do
3193  IFS=$as_save_IFS
3194  test -z "$as_dir" && as_dir=.
3195    for ac_exec_ext in '' $ac_executable_extensions; do
3196  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3197    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3198    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3199    break 2
3200  fi
3201done
3202  done
3203IFS=$as_save_IFS
3204
3205fi
3206fi
3207CC=$ac_cv_prog_CC
3208if test -n "$CC"; then
3209  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3210$as_echo "$CC" >&6; }
3211else
3212  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3213$as_echo "no" >&6; }
3214fi
3215
3216
3217    test -n "$CC" && break
3218  done
3219fi
3220if test -z "$CC"; then
3221  ac_ct_CC=$CC
3222  for ac_prog in cl.exe
3223do
3224  # Extract the first word of "$ac_prog", so it can be a program name with args.
3225set dummy $ac_prog; ac_word=$2
3226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3227$as_echo_n "checking for $ac_word... " >&6; }
3228if ${ac_cv_prog_ac_ct_CC+:} false; then :
3229  $as_echo_n "(cached) " >&6
3230else
3231  if test -n "$ac_ct_CC"; then
3232  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3233else
3234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3235for as_dir in $PATH
3236do
3237  IFS=$as_save_IFS
3238  test -z "$as_dir" && as_dir=.
3239    for ac_exec_ext in '' $ac_executable_extensions; do
3240  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3241    ac_cv_prog_ac_ct_CC="$ac_prog"
3242    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3243    break 2
3244  fi
3245done
3246  done
3247IFS=$as_save_IFS
3248
3249fi
3250fi
3251ac_ct_CC=$ac_cv_prog_ac_ct_CC
3252if test -n "$ac_ct_CC"; then
3253  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3254$as_echo "$ac_ct_CC" >&6; }
3255else
3256  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3257$as_echo "no" >&6; }
3258fi
3259
3260
3261  test -n "$ac_ct_CC" && break
3262done
3263
3264  if test "x$ac_ct_CC" = x; then
3265    CC=""
3266  else
3267    case $cross_compiling:$ac_tool_warned in
3268yes:)
3269{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3270$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3271ac_tool_warned=yes ;;
3272esac
3273    CC=$ac_ct_CC
3274  fi
3275fi
3276
3277fi
3278
3279
3280test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3281$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3282as_fn_error $? "no acceptable C compiler found in \$PATH
3283See \`config.log' for more details" "$LINENO" 5; }
3284
3285# Provide some information about the compiler.
3286$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3287set X $ac_compile
3288ac_compiler=$2
3289for ac_option in --version -v -V -qversion; do
3290  { { ac_try="$ac_compiler $ac_option >&5"
3291case "(($ac_try" in
3292  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3293  *) ac_try_echo=$ac_try;;
3294esac
3295eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3296$as_echo "$ac_try_echo"; } >&5
3297  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3298  ac_status=$?
3299  if test -s conftest.err; then
3300    sed '10a\
3301... rest of stderr output deleted ...
3302         10q' conftest.err >conftest.er1
3303    cat conftest.er1 >&5
3304  fi
3305  rm -f conftest.er1 conftest.err
3306  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3307  test $ac_status = 0; }
3308done
3309
3310cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3311/* end confdefs.h.  */
3312
3313int
3314main ()
3315{
3316
3317  ;
3318  return 0;
3319}
3320_ACEOF
3321ac_clean_files_save=$ac_clean_files
3322ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3323# Try to create an executable without -o first, disregard a.out.
3324# It will help us diagnose broken compilers, and finding out an intuition
3325# of exeext.
3326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3327$as_echo_n "checking whether the C compiler works... " >&6; }
3328ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3329
3330# The possible output files:
3331ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3332
3333ac_rmfiles=
3334for ac_file in $ac_files
3335do
3336  case $ac_file in
3337    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3338    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3339  esac
3340done
3341rm -f $ac_rmfiles
3342
3343if { { ac_try="$ac_link_default"
3344case "(($ac_try" in
3345  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3346  *) ac_try_echo=$ac_try;;
3347esac
3348eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3349$as_echo "$ac_try_echo"; } >&5
3350  (eval "$ac_link_default") 2>&5
3351  ac_status=$?
3352  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3353  test $ac_status = 0; }; then :
3354  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3355# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3356# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3357# so that the user can short-circuit this test for compilers unknown to
3358# Autoconf.
3359for ac_file in $ac_files ''
3360do
3361  test -f "$ac_file" || continue
3362  case $ac_file in
3363    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3364	;;
3365    [ab].out )
3366	# We found the default executable, but exeext='' is most
3367	# certainly right.
3368	break;;
3369    *.* )
3370	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3371	then :; else
3372	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3373	fi
3374	# We set ac_cv_exeext here because the later test for it is not
3375	# safe: cross compilers may not add the suffix if given an `-o'
3376	# argument, so we may need to know it at that point already.
3377	# Even if this section looks crufty: it has the advantage of
3378	# actually working.
3379	break;;
3380    * )
3381	break;;
3382  esac
3383done
3384test "$ac_cv_exeext" = no && ac_cv_exeext=
3385
3386else
3387  ac_file=''
3388fi
3389if test -z "$ac_file"; then :
3390  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3391$as_echo "no" >&6; }
3392$as_echo "$as_me: failed program was:" >&5
3393sed 's/^/| /' conftest.$ac_ext >&5
3394
3395{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3396$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3397as_fn_error 77 "C compiler cannot create executables
3398See \`config.log' for more details" "$LINENO" 5; }
3399else
3400  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3401$as_echo "yes" >&6; }
3402fi
3403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3404$as_echo_n "checking for C compiler default output file name... " >&6; }
3405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3406$as_echo "$ac_file" >&6; }
3407ac_exeext=$ac_cv_exeext
3408
3409rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3410ac_clean_files=$ac_clean_files_save
3411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3412$as_echo_n "checking for suffix of executables... " >&6; }
3413if { { ac_try="$ac_link"
3414case "(($ac_try" in
3415  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3416  *) ac_try_echo=$ac_try;;
3417esac
3418eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3419$as_echo "$ac_try_echo"; } >&5
3420  (eval "$ac_link") 2>&5
3421  ac_status=$?
3422  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3423  test $ac_status = 0; }; then :
3424  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3425# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3426# work properly (i.e., refer to `conftest.exe'), while it won't with
3427# `rm'.
3428for ac_file in conftest.exe conftest conftest.*; do
3429  test -f "$ac_file" || continue
3430  case $ac_file in
3431    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3432    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3433	  break;;
3434    * ) break;;
3435  esac
3436done
3437else
3438  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3439$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3440as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3441See \`config.log' for more details" "$LINENO" 5; }
3442fi
3443rm -f conftest conftest$ac_cv_exeext
3444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3445$as_echo "$ac_cv_exeext" >&6; }
3446
3447rm -f conftest.$ac_ext
3448EXEEXT=$ac_cv_exeext
3449ac_exeext=$EXEEXT
3450cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3451/* end confdefs.h.  */
3452#include <stdio.h>
3453int
3454main ()
3455{
3456FILE *f = fopen ("conftest.out", "w");
3457 return ferror (f) || fclose (f) != 0;
3458
3459  ;
3460  return 0;
3461}
3462_ACEOF
3463ac_clean_files="$ac_clean_files conftest.out"
3464# Check that the compiler produces executables we can run.  If not, either
3465# the compiler is broken, or we cross compile.
3466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3467$as_echo_n "checking whether we are cross compiling... " >&6; }
3468if test "$cross_compiling" != yes; then
3469  { { ac_try="$ac_link"
3470case "(($ac_try" in
3471  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3472  *) ac_try_echo=$ac_try;;
3473esac
3474eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3475$as_echo "$ac_try_echo"; } >&5
3476  (eval "$ac_link") 2>&5
3477  ac_status=$?
3478  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3479  test $ac_status = 0; }
3480  if { ac_try='./conftest$ac_cv_exeext'
3481  { { case "(($ac_try" in
3482  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3483  *) ac_try_echo=$ac_try;;
3484esac
3485eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3486$as_echo "$ac_try_echo"; } >&5
3487  (eval "$ac_try") 2>&5
3488  ac_status=$?
3489  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3490  test $ac_status = 0; }; }; then
3491    cross_compiling=no
3492  else
3493    if test "$cross_compiling" = maybe; then
3494	cross_compiling=yes
3495    else
3496	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3497$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3498as_fn_error $? "cannot run C compiled programs.
3499If you meant to cross compile, use \`--host'.
3500See \`config.log' for more details" "$LINENO" 5; }
3501    fi
3502  fi
3503fi
3504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3505$as_echo "$cross_compiling" >&6; }
3506
3507rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3508ac_clean_files=$ac_clean_files_save
3509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3510$as_echo_n "checking for suffix of object files... " >&6; }
3511if ${ac_cv_objext+:} false; then :
3512  $as_echo_n "(cached) " >&6
3513else
3514  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3515/* end confdefs.h.  */
3516
3517int
3518main ()
3519{
3520
3521  ;
3522  return 0;
3523}
3524_ACEOF
3525rm -f conftest.o conftest.obj
3526if { { ac_try="$ac_compile"
3527case "(($ac_try" in
3528  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3529  *) ac_try_echo=$ac_try;;
3530esac
3531eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3532$as_echo "$ac_try_echo"; } >&5
3533  (eval "$ac_compile") 2>&5
3534  ac_status=$?
3535  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3536  test $ac_status = 0; }; then :
3537  for ac_file in conftest.o conftest.obj conftest.*; do
3538  test -f "$ac_file" || continue;
3539  case $ac_file in
3540    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3541    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3542       break;;
3543  esac
3544done
3545else
3546  $as_echo "$as_me: failed program was:" >&5
3547sed 's/^/| /' conftest.$ac_ext >&5
3548
3549{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3550$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3551as_fn_error $? "cannot compute suffix of object files: cannot compile
3552See \`config.log' for more details" "$LINENO" 5; }
3553fi
3554rm -f conftest.$ac_cv_objext conftest.$ac_ext
3555fi
3556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3557$as_echo "$ac_cv_objext" >&6; }
3558OBJEXT=$ac_cv_objext
3559ac_objext=$OBJEXT
3560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3561$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3562if ${ac_cv_c_compiler_gnu+:} false; then :
3563  $as_echo_n "(cached) " >&6
3564else
3565  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3566/* end confdefs.h.  */
3567
3568int
3569main ()
3570{
3571#ifndef __GNUC__
3572       choke me
3573#endif
3574
3575  ;
3576  return 0;
3577}
3578_ACEOF
3579if ac_fn_c_try_compile "$LINENO"; then :
3580  ac_compiler_gnu=yes
3581else
3582  ac_compiler_gnu=no
3583fi
3584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3585ac_cv_c_compiler_gnu=$ac_compiler_gnu
3586
3587fi
3588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3589$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3590if test $ac_compiler_gnu = yes; then
3591  GCC=yes
3592else
3593  GCC=
3594fi
3595ac_test_CFLAGS=${CFLAGS+set}
3596ac_save_CFLAGS=$CFLAGS
3597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3598$as_echo_n "checking whether $CC accepts -g... " >&6; }
3599if ${ac_cv_prog_cc_g+:} false; then :
3600  $as_echo_n "(cached) " >&6
3601else
3602  ac_save_c_werror_flag=$ac_c_werror_flag
3603   ac_c_werror_flag=yes
3604   ac_cv_prog_cc_g=no
3605   CFLAGS="-g"
3606   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3607/* end confdefs.h.  */
3608
3609int
3610main ()
3611{
3612
3613  ;
3614  return 0;
3615}
3616_ACEOF
3617if ac_fn_c_try_compile "$LINENO"; then :
3618  ac_cv_prog_cc_g=yes
3619else
3620  CFLAGS=""
3621      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3622/* end confdefs.h.  */
3623
3624int
3625main ()
3626{
3627
3628  ;
3629  return 0;
3630}
3631_ACEOF
3632if ac_fn_c_try_compile "$LINENO"; then :
3633
3634else
3635  ac_c_werror_flag=$ac_save_c_werror_flag
3636	 CFLAGS="-g"
3637	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3638/* end confdefs.h.  */
3639
3640int
3641main ()
3642{
3643
3644  ;
3645  return 0;
3646}
3647_ACEOF
3648if ac_fn_c_try_compile "$LINENO"; then :
3649  ac_cv_prog_cc_g=yes
3650fi
3651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3652fi
3653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3654fi
3655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3656   ac_c_werror_flag=$ac_save_c_werror_flag
3657fi
3658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3659$as_echo "$ac_cv_prog_cc_g" >&6; }
3660if test "$ac_test_CFLAGS" = set; then
3661  CFLAGS=$ac_save_CFLAGS
3662elif test $ac_cv_prog_cc_g = yes; then
3663  if test "$GCC" = yes; then
3664    CFLAGS="-g -O2"
3665  else
3666    CFLAGS="-g"
3667  fi
3668else
3669  if test "$GCC" = yes; then
3670    CFLAGS="-O2"
3671  else
3672    CFLAGS=
3673  fi
3674fi
3675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3676$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3677if ${ac_cv_prog_cc_c89+:} false; then :
3678  $as_echo_n "(cached) " >&6
3679else
3680  ac_cv_prog_cc_c89=no
3681ac_save_CC=$CC
3682cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3683/* end confdefs.h.  */
3684#include <stdarg.h>
3685#include <stdio.h>
3686#include <sys/types.h>
3687#include <sys/stat.h>
3688/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3689struct buf { int x; };
3690FILE * (*rcsopen) (struct buf *, struct stat *, int);
3691static char *e (p, i)
3692     char **p;
3693     int i;
3694{
3695  return p[i];
3696}
3697static char *f (char * (*g) (char **, int), char **p, ...)
3698{
3699  char *s;
3700  va_list v;
3701  va_start (v,p);
3702  s = g (p, va_arg (v,int));
3703  va_end (v);
3704  return s;
3705}
3706
3707/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3708   function prototypes and stuff, but not '\xHH' hex character constants.
3709   These don't provoke an error unfortunately, instead are silently treated
3710   as 'x'.  The following induces an error, until -std is added to get
3711   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3712   array size at least.  It's necessary to write '\x00'==0 to get something
3713   that's true only with -std.  */
3714int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3715
3716/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3717   inside strings and character constants.  */
3718#define FOO(x) 'x'
3719int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3720
3721int test (int i, double x);
3722struct s1 {int (*f) (int a);};
3723struct s2 {int (*f) (double a);};
3724int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3725int argc;
3726char **argv;
3727int
3728main ()
3729{
3730return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3731  ;
3732  return 0;
3733}
3734_ACEOF
3735for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3736	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3737do
3738  CC="$ac_save_CC $ac_arg"
3739  if ac_fn_c_try_compile "$LINENO"; then :
3740  ac_cv_prog_cc_c89=$ac_arg
3741fi
3742rm -f core conftest.err conftest.$ac_objext
3743  test "x$ac_cv_prog_cc_c89" != "xno" && break
3744done
3745rm -f conftest.$ac_ext
3746CC=$ac_save_CC
3747
3748fi
3749# AC_CACHE_VAL
3750case "x$ac_cv_prog_cc_c89" in
3751  x)
3752    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3753$as_echo "none needed" >&6; } ;;
3754  xno)
3755    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3756$as_echo "unsupported" >&6; } ;;
3757  *)
3758    CC="$CC $ac_cv_prog_cc_c89"
3759    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3760$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3761esac
3762if test "x$ac_cv_prog_cc_c89" != xno; then :
3763
3764fi
3765
3766ac_ext=c
3767ac_cpp='$CPP $CPPFLAGS'
3768ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3769ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3770ac_compiler_gnu=$ac_cv_c_compiler_gnu
3771
3772depcc="$CC"   am_compiler_list=
3773
3774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3775$as_echo_n "checking dependency style of $depcc... " >&6; }
3776if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3777  $as_echo_n "(cached) " >&6
3778else
3779  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3780  # We make a subdir and do the tests there.  Otherwise we can end up
3781  # making bogus files that we don't know about and never remove.  For
3782  # instance it was reported that on HP-UX the gcc test will end up
3783  # making a dummy file named `D' -- because `-MD' means `put the output
3784  # in D'.
3785  rm -rf conftest.dir
3786  mkdir conftest.dir
3787  # Copy depcomp to subdir because otherwise we won't find it if we're
3788  # using a relative directory.
3789  cp "$am_depcomp" conftest.dir
3790  cd conftest.dir
3791  # We will build objects and dependencies in a subdirectory because
3792  # it helps to detect inapplicable dependency modes.  For instance
3793  # both Tru64's cc and ICC support -MD to output dependencies as a
3794  # side effect of compilation, but ICC will put the dependencies in
3795  # the current directory while Tru64 will put them in the object
3796  # directory.
3797  mkdir sub
3798
3799  am_cv_CC_dependencies_compiler_type=none
3800  if test "$am_compiler_list" = ""; then
3801     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3802  fi
3803  am__universal=false
3804  case " $depcc " in #(
3805     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3806     esac
3807
3808  for depmode in $am_compiler_list; do
3809    # Setup a source with many dependencies, because some compilers
3810    # like to wrap large dependency lists on column 80 (with \), and
3811    # we should not choose a depcomp mode which is confused by this.
3812    #
3813    # We need to recreate these files for each test, as the compiler may
3814    # overwrite some of them when testing with obscure command lines.
3815    # This happens at least with the AIX C compiler.
3816    : > sub/conftest.c
3817    for i in 1 2 3 4 5 6; do
3818      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3819      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3820      # Solaris 8's {/usr,}/bin/sh.
3821      touch sub/conftst$i.h
3822    done
3823    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3824
3825    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3826    # mode.  It turns out that the SunPro C++ compiler does not properly
3827    # handle `-M -o', and we need to detect this.  Also, some Intel
3828    # versions had trouble with output in subdirs
3829    am__obj=sub/conftest.${OBJEXT-o}
3830    am__minus_obj="-o $am__obj"
3831    case $depmode in
3832    gcc)
3833      # This depmode causes a compiler race in universal mode.
3834      test "$am__universal" = false || continue
3835      ;;
3836    nosideeffect)
3837      # after this tag, mechanisms are not by side-effect, so they'll
3838      # only be used when explicitly requested
3839      if test "x$enable_dependency_tracking" = xyes; then
3840	continue
3841      else
3842	break
3843      fi
3844      ;;
3845    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3846      # This compiler won't grok `-c -o', but also, the minuso test has
3847      # not run yet.  These depmodes are late enough in the game, and
3848      # so weak that their functioning should not be impacted.
3849      am__obj=conftest.${OBJEXT-o}
3850      am__minus_obj=
3851      ;;
3852    none) break ;;
3853    esac
3854    if depmode=$depmode \
3855       source=sub/conftest.c object=$am__obj \
3856       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3857       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3858         >/dev/null 2>conftest.err &&
3859       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3860       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3861       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3862       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3863      # icc doesn't choke on unknown options, it will just issue warnings
3864      # or remarks (even with -Werror).  So we grep stderr for any message
3865      # that says an option was ignored or not supported.
3866      # When given -MP, icc 7.0 and 7.1 complain thusly:
3867      #   icc: Command line warning: ignoring option '-M'; no argument required
3868      # The diagnosis changed in icc 8.0:
3869      #   icc: Command line remark: option '-MP' not supported
3870      if (grep 'ignoring option' conftest.err ||
3871          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3872        am_cv_CC_dependencies_compiler_type=$depmode
3873        break
3874      fi
3875    fi
3876  done
3877
3878  cd ..
3879  rm -rf conftest.dir
3880else
3881  am_cv_CC_dependencies_compiler_type=none
3882fi
3883
3884fi
3885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3886$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3887CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3888
3889 if
3890  test "x$enable_dependency_tracking" != xno \
3891  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3892  am__fastdepCC_TRUE=
3893  am__fastdepCC_FALSE='#'
3894else
3895  am__fastdepCC_TRUE='#'
3896  am__fastdepCC_FALSE=
3897fi
3898
3899
3900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3901$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3902if ${ac_cv_path_SED+:} false; then :
3903  $as_echo_n "(cached) " >&6
3904else
3905            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3906     for ac_i in 1 2 3 4 5 6 7; do
3907       ac_script="$ac_script$as_nl$ac_script"
3908     done
3909     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3910     { ac_script=; unset ac_script;}
3911     if test -z "$SED"; then
3912  ac_path_SED_found=false
3913  # Loop through the user's path and test for each of PROGNAME-LIST
3914  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3915for as_dir in $PATH
3916do
3917  IFS=$as_save_IFS
3918  test -z "$as_dir" && as_dir=.
3919    for ac_prog in sed gsed; do
3920    for ac_exec_ext in '' $ac_executable_extensions; do
3921      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3922      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3923# Check for GNU ac_path_SED and select it if it is found.
3924  # Check for GNU $ac_path_SED
3925case `"$ac_path_SED" --version 2>&1` in
3926*GNU*)
3927  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3928*)
3929  ac_count=0
3930  $as_echo_n 0123456789 >"conftest.in"
3931  while :
3932  do
3933    cat "conftest.in" "conftest.in" >"conftest.tmp"
3934    mv "conftest.tmp" "conftest.in"
3935    cp "conftest.in" "conftest.nl"
3936    $as_echo '' >> "conftest.nl"
3937    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3938    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3939    as_fn_arith $ac_count + 1 && ac_count=$as_val
3940    if test $ac_count -gt ${ac_path_SED_max-0}; then
3941      # Best one so far, save it but keep looking for a better one
3942      ac_cv_path_SED="$ac_path_SED"
3943      ac_path_SED_max=$ac_count
3944    fi
3945    # 10*(2^10) chars as input seems more than enough
3946    test $ac_count -gt 10 && break
3947  done
3948  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3949esac
3950
3951      $ac_path_SED_found && break 3
3952    done
3953  done
3954  done
3955IFS=$as_save_IFS
3956  if test -z "$ac_cv_path_SED"; then
3957    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3958  fi
3959else
3960  ac_cv_path_SED=$SED
3961fi
3962
3963fi
3964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3965$as_echo "$ac_cv_path_SED" >&6; }
3966 SED="$ac_cv_path_SED"
3967  rm -f conftest.sed
3968
3969test -z "$SED" && SED=sed
3970Xsed="$SED -e 1s/^X//"
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3983$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3984if ${ac_cv_path_GREP+:} false; then :
3985  $as_echo_n "(cached) " >&6
3986else
3987  if test -z "$GREP"; then
3988  ac_path_GREP_found=false
3989  # Loop through the user's path and test for each of PROGNAME-LIST
3990  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3991for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3992do
3993  IFS=$as_save_IFS
3994  test -z "$as_dir" && as_dir=.
3995    for ac_prog in grep ggrep; do
3996    for ac_exec_ext in '' $ac_executable_extensions; do
3997      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3998      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3999# Check for GNU ac_path_GREP and select it if it is found.
4000  # Check for GNU $ac_path_GREP
4001case `"$ac_path_GREP" --version 2>&1` in
4002*GNU*)
4003  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4004*)
4005  ac_count=0
4006  $as_echo_n 0123456789 >"conftest.in"
4007  while :
4008  do
4009    cat "conftest.in" "conftest.in" >"conftest.tmp"
4010    mv "conftest.tmp" "conftest.in"
4011    cp "conftest.in" "conftest.nl"
4012    $as_echo 'GREP' >> "conftest.nl"
4013    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4014    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4015    as_fn_arith $ac_count + 1 && ac_count=$as_val
4016    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4017      # Best one so far, save it but keep looking for a better one
4018      ac_cv_path_GREP="$ac_path_GREP"
4019      ac_path_GREP_max=$ac_count
4020    fi
4021    # 10*(2^10) chars as input seems more than enough
4022    test $ac_count -gt 10 && break
4023  done
4024  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4025esac
4026
4027      $ac_path_GREP_found && break 3
4028    done
4029  done
4030  done
4031IFS=$as_save_IFS
4032  if test -z "$ac_cv_path_GREP"; then
4033    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4034  fi
4035else
4036  ac_cv_path_GREP=$GREP
4037fi
4038
4039fi
4040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4041$as_echo "$ac_cv_path_GREP" >&6; }
4042 GREP="$ac_cv_path_GREP"
4043
4044
4045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4046$as_echo_n "checking for egrep... " >&6; }
4047if ${ac_cv_path_EGREP+:} false; then :
4048  $as_echo_n "(cached) " >&6
4049else
4050  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4051   then ac_cv_path_EGREP="$GREP -E"
4052   else
4053     if test -z "$EGREP"; then
4054  ac_path_EGREP_found=false
4055  # Loop through the user's path and test for each of PROGNAME-LIST
4056  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4057for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4058do
4059  IFS=$as_save_IFS
4060  test -z "$as_dir" && as_dir=.
4061    for ac_prog in egrep; do
4062    for ac_exec_ext in '' $ac_executable_extensions; do
4063      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4064      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4065# Check for GNU ac_path_EGREP and select it if it is found.
4066  # Check for GNU $ac_path_EGREP
4067case `"$ac_path_EGREP" --version 2>&1` in
4068*GNU*)
4069  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4070*)
4071  ac_count=0
4072  $as_echo_n 0123456789 >"conftest.in"
4073  while :
4074  do
4075    cat "conftest.in" "conftest.in" >"conftest.tmp"
4076    mv "conftest.tmp" "conftest.in"
4077    cp "conftest.in" "conftest.nl"
4078    $as_echo 'EGREP' >> "conftest.nl"
4079    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4080    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4081    as_fn_arith $ac_count + 1 && ac_count=$as_val
4082    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4083      # Best one so far, save it but keep looking for a better one
4084      ac_cv_path_EGREP="$ac_path_EGREP"
4085      ac_path_EGREP_max=$ac_count
4086    fi
4087    # 10*(2^10) chars as input seems more than enough
4088    test $ac_count -gt 10 && break
4089  done
4090  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4091esac
4092
4093      $ac_path_EGREP_found && break 3
4094    done
4095  done
4096  done
4097IFS=$as_save_IFS
4098  if test -z "$ac_cv_path_EGREP"; then
4099    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4100  fi
4101else
4102  ac_cv_path_EGREP=$EGREP
4103fi
4104
4105   fi
4106fi
4107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4108$as_echo "$ac_cv_path_EGREP" >&6; }
4109 EGREP="$ac_cv_path_EGREP"
4110
4111
4112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4113$as_echo_n "checking for fgrep... " >&6; }
4114if ${ac_cv_path_FGREP+:} false; then :
4115  $as_echo_n "(cached) " >&6
4116else
4117  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4118   then ac_cv_path_FGREP="$GREP -F"
4119   else
4120     if test -z "$FGREP"; then
4121  ac_path_FGREP_found=false
4122  # Loop through the user's path and test for each of PROGNAME-LIST
4123  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4124for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4125do
4126  IFS=$as_save_IFS
4127  test -z "$as_dir" && as_dir=.
4128    for ac_prog in fgrep; do
4129    for ac_exec_ext in '' $ac_executable_extensions; do
4130      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4131      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4132# Check for GNU ac_path_FGREP and select it if it is found.
4133  # Check for GNU $ac_path_FGREP
4134case `"$ac_path_FGREP" --version 2>&1` in
4135*GNU*)
4136  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4137*)
4138  ac_count=0
4139  $as_echo_n 0123456789 >"conftest.in"
4140  while :
4141  do
4142    cat "conftest.in" "conftest.in" >"conftest.tmp"
4143    mv "conftest.tmp" "conftest.in"
4144    cp "conftest.in" "conftest.nl"
4145    $as_echo 'FGREP' >> "conftest.nl"
4146    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4147    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4148    as_fn_arith $ac_count + 1 && ac_count=$as_val
4149    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4150      # Best one so far, save it but keep looking for a better one
4151      ac_cv_path_FGREP="$ac_path_FGREP"
4152      ac_path_FGREP_max=$ac_count
4153    fi
4154    # 10*(2^10) chars as input seems more than enough
4155    test $ac_count -gt 10 && break
4156  done
4157  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4158esac
4159
4160      $ac_path_FGREP_found && break 3
4161    done
4162  done
4163  done
4164IFS=$as_save_IFS
4165  if test -z "$ac_cv_path_FGREP"; then
4166    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4167  fi
4168else
4169  ac_cv_path_FGREP=$FGREP
4170fi
4171
4172   fi
4173fi
4174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4175$as_echo "$ac_cv_path_FGREP" >&6; }
4176 FGREP="$ac_cv_path_FGREP"
4177
4178
4179test -z "$GREP" && GREP=grep
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199# Check whether --with-gnu-ld was given.
4200if test "${with_gnu_ld+set}" = set; then :
4201  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4202else
4203  with_gnu_ld=no
4204fi
4205
4206ac_prog=ld
4207if test "$GCC" = yes; then
4208  # Check if gcc -print-prog-name=ld gives a path.
4209  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4210$as_echo_n "checking for ld used by $CC... " >&6; }
4211  case $host in
4212  *-*-mingw*)
4213    # gcc leaves a trailing carriage return which upsets mingw
4214    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4215  *)
4216    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4217  esac
4218  case $ac_prog in
4219    # Accept absolute paths.
4220    [\\/]* | ?:[\\/]*)
4221      re_direlt='/[^/][^/]*/\.\./'
4222      # Canonicalize the pathname of ld
4223      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4224      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4225	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4226      done
4227      test -z "$LD" && LD="$ac_prog"
4228      ;;
4229  "")
4230    # If it fails, then pretend we aren't using GCC.
4231    ac_prog=ld
4232    ;;
4233  *)
4234    # If it is relative, then search for the first ld in PATH.
4235    with_gnu_ld=unknown
4236    ;;
4237  esac
4238elif test "$with_gnu_ld" = yes; then
4239  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4240$as_echo_n "checking for GNU ld... " >&6; }
4241else
4242  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4243$as_echo_n "checking for non-GNU ld... " >&6; }
4244fi
4245if ${lt_cv_path_LD+:} false; then :
4246  $as_echo_n "(cached) " >&6
4247else
4248  if test -z "$LD"; then
4249  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4250  for ac_dir in $PATH; do
4251    IFS="$lt_save_ifs"
4252    test -z "$ac_dir" && ac_dir=.
4253    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4254      lt_cv_path_LD="$ac_dir/$ac_prog"
4255      # Check to see if the program is GNU ld.  I'd rather use --version,
4256      # but apparently some variants of GNU ld only accept -v.
4257      # Break only if it was the GNU/non-GNU ld that we prefer.
4258      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4259      *GNU* | *'with BFD'*)
4260	test "$with_gnu_ld" != no && break
4261	;;
4262      *)
4263	test "$with_gnu_ld" != yes && break
4264	;;
4265      esac
4266    fi
4267  done
4268  IFS="$lt_save_ifs"
4269else
4270  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4271fi
4272fi
4273
4274LD="$lt_cv_path_LD"
4275if test -n "$LD"; then
4276  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4277$as_echo "$LD" >&6; }
4278else
4279  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4280$as_echo "no" >&6; }
4281fi
4282test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4284$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4285if ${lt_cv_prog_gnu_ld+:} false; then :
4286  $as_echo_n "(cached) " >&6
4287else
4288  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4289case `$LD -v 2>&1 </dev/null` in
4290*GNU* | *'with BFD'*)
4291  lt_cv_prog_gnu_ld=yes
4292  ;;
4293*)
4294  lt_cv_prog_gnu_ld=no
4295  ;;
4296esac
4297fi
4298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4299$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4300with_gnu_ld=$lt_cv_prog_gnu_ld
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4311$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4312if ${lt_cv_path_NM+:} false; then :
4313  $as_echo_n "(cached) " >&6
4314else
4315  if test -n "$NM"; then
4316  # Let the user override the test.
4317  lt_cv_path_NM="$NM"
4318else
4319  lt_nm_to_check="${ac_tool_prefix}nm"
4320  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4321    lt_nm_to_check="$lt_nm_to_check nm"
4322  fi
4323  for lt_tmp_nm in $lt_nm_to_check; do
4324    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4325    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4326      IFS="$lt_save_ifs"
4327      test -z "$ac_dir" && ac_dir=.
4328      tmp_nm="$ac_dir/$lt_tmp_nm"
4329      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4330	# Check to see if the nm accepts a BSD-compat flag.
4331	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4332	#   nm: unknown option "B" ignored
4333	# Tru64's nm complains that /dev/null is an invalid object file
4334	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4335	*/dev/null* | *'Invalid file or object type'*)
4336	  lt_cv_path_NM="$tmp_nm -B"
4337	  break
4338	  ;;
4339	*)
4340	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4341	  */dev/null*)
4342	    lt_cv_path_NM="$tmp_nm -p"
4343	    break
4344	    ;;
4345	  *)
4346	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4347	    continue # so that we can try to find one that supports BSD flags
4348	    ;;
4349	  esac
4350	  ;;
4351	esac
4352      fi
4353    done
4354    IFS="$lt_save_ifs"
4355  done
4356  : ${lt_cv_path_NM=no}
4357fi
4358fi
4359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4360$as_echo "$lt_cv_path_NM" >&6; }
4361if test "$lt_cv_path_NM" != "no"; then
4362  NM="$lt_cv_path_NM"
4363else
4364  # Didn't find any BSD compatible name lister, look for dumpbin.
4365  if test -n "$DUMPBIN"; then :
4366    # Let the user override the test.
4367  else
4368    if test -n "$ac_tool_prefix"; then
4369  for ac_prog in dumpbin "link -dump"
4370  do
4371    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4372set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4374$as_echo_n "checking for $ac_word... " >&6; }
4375if ${ac_cv_prog_DUMPBIN+:} false; then :
4376  $as_echo_n "(cached) " >&6
4377else
4378  if test -n "$DUMPBIN"; then
4379  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4380else
4381as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4382for as_dir in $PATH
4383do
4384  IFS=$as_save_IFS
4385  test -z "$as_dir" && as_dir=.
4386    for ac_exec_ext in '' $ac_executable_extensions; do
4387  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4388    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4389    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4390    break 2
4391  fi
4392done
4393  done
4394IFS=$as_save_IFS
4395
4396fi
4397fi
4398DUMPBIN=$ac_cv_prog_DUMPBIN
4399if test -n "$DUMPBIN"; then
4400  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4401$as_echo "$DUMPBIN" >&6; }
4402else
4403  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4404$as_echo "no" >&6; }
4405fi
4406
4407
4408    test -n "$DUMPBIN" && break
4409  done
4410fi
4411if test -z "$DUMPBIN"; then
4412  ac_ct_DUMPBIN=$DUMPBIN
4413  for ac_prog in dumpbin "link -dump"
4414do
4415  # Extract the first word of "$ac_prog", so it can be a program name with args.
4416set dummy $ac_prog; ac_word=$2
4417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4418$as_echo_n "checking for $ac_word... " >&6; }
4419if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4420  $as_echo_n "(cached) " >&6
4421else
4422  if test -n "$ac_ct_DUMPBIN"; then
4423  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4424else
4425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4426for as_dir in $PATH
4427do
4428  IFS=$as_save_IFS
4429  test -z "$as_dir" && as_dir=.
4430    for ac_exec_ext in '' $ac_executable_extensions; do
4431  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4432    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4433    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4434    break 2
4435  fi
4436done
4437  done
4438IFS=$as_save_IFS
4439
4440fi
4441fi
4442ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4443if test -n "$ac_ct_DUMPBIN"; then
4444  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4445$as_echo "$ac_ct_DUMPBIN" >&6; }
4446else
4447  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4448$as_echo "no" >&6; }
4449fi
4450
4451
4452  test -n "$ac_ct_DUMPBIN" && break
4453done
4454
4455  if test "x$ac_ct_DUMPBIN" = x; then
4456    DUMPBIN=":"
4457  else
4458    case $cross_compiling:$ac_tool_warned in
4459yes:)
4460{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4461$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4462ac_tool_warned=yes ;;
4463esac
4464    DUMPBIN=$ac_ct_DUMPBIN
4465  fi
4466fi
4467
4468    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4469    *COFF*)
4470      DUMPBIN="$DUMPBIN -symbols"
4471      ;;
4472    *)
4473      DUMPBIN=:
4474      ;;
4475    esac
4476  fi
4477
4478  if test "$DUMPBIN" != ":"; then
4479    NM="$DUMPBIN"
4480  fi
4481fi
4482test -z "$NM" && NM=nm
4483
4484
4485
4486
4487
4488
4489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4490$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4491if ${lt_cv_nm_interface+:} false; then :
4492  $as_echo_n "(cached) " >&6
4493else
4494  lt_cv_nm_interface="BSD nm"
4495  echo "int some_variable = 0;" > conftest.$ac_ext
4496  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4497  (eval "$ac_compile" 2>conftest.err)
4498  cat conftest.err >&5
4499  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4500  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4501  cat conftest.err >&5
4502  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4503  cat conftest.out >&5
4504  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4505    lt_cv_nm_interface="MS dumpbin"
4506  fi
4507  rm -f conftest*
4508fi
4509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4510$as_echo "$lt_cv_nm_interface" >&6; }
4511
4512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4513$as_echo_n "checking whether ln -s works... " >&6; }
4514LN_S=$as_ln_s
4515if test "$LN_S" = "ln -s"; then
4516  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4517$as_echo "yes" >&6; }
4518else
4519  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4520$as_echo "no, using $LN_S" >&6; }
4521fi
4522
4523# find the maximum length of command line arguments
4524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4525$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4526if ${lt_cv_sys_max_cmd_len+:} false; then :
4527  $as_echo_n "(cached) " >&6
4528else
4529    i=0
4530  teststring="ABCD"
4531
4532  case $build_os in
4533  msdosdjgpp*)
4534    # On DJGPP, this test can blow up pretty badly due to problems in libc
4535    # (any single argument exceeding 2000 bytes causes a buffer overrun
4536    # during glob expansion).  Even if it were fixed, the result of this
4537    # check would be larger than it should be.
4538    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4539    ;;
4540
4541  gnu*)
4542    # Under GNU Hurd, this test is not required because there is
4543    # no limit to the length of command line arguments.
4544    # Libtool will interpret -1 as no limit whatsoever
4545    lt_cv_sys_max_cmd_len=-1;
4546    ;;
4547
4548  cygwin* | mingw* | cegcc*)
4549    # On Win9x/ME, this test blows up -- it succeeds, but takes
4550    # about 5 minutes as the teststring grows exponentially.
4551    # Worse, since 9x/ME are not pre-emptively multitasking,
4552    # you end up with a "frozen" computer, even though with patience
4553    # the test eventually succeeds (with a max line length of 256k).
4554    # Instead, let's just punt: use the minimum linelength reported by
4555    # all of the supported platforms: 8192 (on NT/2K/XP).
4556    lt_cv_sys_max_cmd_len=8192;
4557    ;;
4558
4559  mint*)
4560    # On MiNT this can take a long time and run out of memory.
4561    lt_cv_sys_max_cmd_len=8192;
4562    ;;
4563
4564  amigaos*)
4565    # On AmigaOS with pdksh, this test takes hours, literally.
4566    # So we just punt and use a minimum line length of 8192.
4567    lt_cv_sys_max_cmd_len=8192;
4568    ;;
4569
4570  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4571    # This has been around since 386BSD, at least.  Likely further.
4572    if test -x /sbin/sysctl; then
4573      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4574    elif test -x /usr/sbin/sysctl; then
4575      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4576    else
4577      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4578    fi
4579    # And add a safety zone
4580    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4581    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4582    ;;
4583
4584  interix*)
4585    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4586    lt_cv_sys_max_cmd_len=196608
4587    ;;
4588
4589  os2*)
4590    # The test takes a long time on OS/2.
4591    lt_cv_sys_max_cmd_len=8192
4592    ;;
4593
4594  osf*)
4595    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4596    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4597    # nice to cause kernel panics so lets avoid the loop below.
4598    # First set a reasonable default.
4599    lt_cv_sys_max_cmd_len=16384
4600    #
4601    if test -x /sbin/sysconfig; then
4602      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4603        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4604      esac
4605    fi
4606    ;;
4607  sco3.2v5*)
4608    lt_cv_sys_max_cmd_len=102400
4609    ;;
4610  sysv5* | sco5v6* | sysv4.2uw2*)
4611    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4612    if test -n "$kargmax"; then
4613      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4614    else
4615      lt_cv_sys_max_cmd_len=32768
4616    fi
4617    ;;
4618  *)
4619    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4620    if test -n "$lt_cv_sys_max_cmd_len"; then
4621      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4622      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4623    else
4624      # Make teststring a little bigger before we do anything with it.
4625      # a 1K string should be a reasonable start.
4626      for i in 1 2 3 4 5 6 7 8 ; do
4627        teststring=$teststring$teststring
4628      done
4629      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4630      # If test is not a shell built-in, we'll probably end up computing a
4631      # maximum length that is only half of the actual maximum length, but
4632      # we can't tell.
4633      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4634	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4635	      test $i != 17 # 1/2 MB should be enough
4636      do
4637        i=`expr $i + 1`
4638        teststring=$teststring$teststring
4639      done
4640      # Only check the string length outside the loop.
4641      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4642      teststring=
4643      # Add a significant safety factor because C++ compilers can tack on
4644      # massive amounts of additional arguments before passing them to the
4645      # linker.  It appears as though 1/2 is a usable value.
4646      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4647    fi
4648    ;;
4649  esac
4650
4651fi
4652
4653if test -n $lt_cv_sys_max_cmd_len ; then
4654  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4655$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4656else
4657  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4658$as_echo "none" >&6; }
4659fi
4660max_cmd_len=$lt_cv_sys_max_cmd_len
4661
4662
4663
4664
4665
4666
4667: ${CP="cp -f"}
4668: ${MV="mv -f"}
4669: ${RM="rm -f"}
4670
4671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4672$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4673# Try some XSI features
4674xsi_shell=no
4675( _lt_dummy="a/b/c"
4676  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4677      = c,a/b,b/c, \
4678    && eval 'test $(( 1 + 1 )) -eq 2 \
4679    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4680  && xsi_shell=yes
4681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4682$as_echo "$xsi_shell" >&6; }
4683
4684
4685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4686$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4687lt_shell_append=no
4688( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4689    >/dev/null 2>&1 \
4690  && lt_shell_append=yes
4691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4692$as_echo "$lt_shell_append" >&6; }
4693
4694
4695if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4696  lt_unset=unset
4697else
4698  lt_unset=false
4699fi
4700
4701
4702
4703
4704
4705# test EBCDIC or ASCII
4706case `echo X|tr X '\101'` in
4707 A) # ASCII based system
4708    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4709  lt_SP2NL='tr \040 \012'
4710  lt_NL2SP='tr \015\012 \040\040'
4711  ;;
4712 *) # EBCDIC based system
4713  lt_SP2NL='tr \100 \n'
4714  lt_NL2SP='tr \r\n \100\100'
4715  ;;
4716esac
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4727$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4728if ${lt_cv_to_host_file_cmd+:} false; then :
4729  $as_echo_n "(cached) " >&6
4730else
4731  case $host in
4732  *-*-mingw* )
4733    case $build in
4734      *-*-mingw* ) # actually msys
4735        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4736        ;;
4737      *-*-cygwin* )
4738        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4739        ;;
4740      * ) # otherwise, assume *nix
4741        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4742        ;;
4743    esac
4744    ;;
4745  *-*-cygwin* )
4746    case $build in
4747      *-*-mingw* ) # actually msys
4748        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4749        ;;
4750      *-*-cygwin* )
4751        lt_cv_to_host_file_cmd=func_convert_file_noop
4752        ;;
4753      * ) # otherwise, assume *nix
4754        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4755        ;;
4756    esac
4757    ;;
4758  * ) # unhandled hosts (and "normal" native builds)
4759    lt_cv_to_host_file_cmd=func_convert_file_noop
4760    ;;
4761esac
4762
4763fi
4764
4765to_host_file_cmd=$lt_cv_to_host_file_cmd
4766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4767$as_echo "$lt_cv_to_host_file_cmd" >&6; }
4768
4769
4770
4771
4772
4773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4774$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4775if ${lt_cv_to_tool_file_cmd+:} false; then :
4776  $as_echo_n "(cached) " >&6
4777else
4778  #assume ordinary cross tools, or native build.
4779lt_cv_to_tool_file_cmd=func_convert_file_noop
4780case $host in
4781  *-*-mingw* )
4782    case $build in
4783      *-*-mingw* ) # actually msys
4784        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4785        ;;
4786    esac
4787    ;;
4788esac
4789
4790fi
4791
4792to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4794$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4795
4796
4797
4798
4799
4800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4801$as_echo_n "checking for $LD option to reload object files... " >&6; }
4802if ${lt_cv_ld_reload_flag+:} false; then :
4803  $as_echo_n "(cached) " >&6
4804else
4805  lt_cv_ld_reload_flag='-r'
4806fi
4807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4808$as_echo "$lt_cv_ld_reload_flag" >&6; }
4809reload_flag=$lt_cv_ld_reload_flag
4810case $reload_flag in
4811"" | " "*) ;;
4812*) reload_flag=" $reload_flag" ;;
4813esac
4814reload_cmds='$LD$reload_flag -o $output$reload_objs'
4815case $host_os in
4816  cygwin* | mingw* | pw32* | cegcc*)
4817    if test "$GCC" != yes; then
4818      reload_cmds=false
4819    fi
4820    ;;
4821  darwin*)
4822    if test "$GCC" = yes; then
4823      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4824    else
4825      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4826    fi
4827    ;;
4828esac
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838if test -n "$ac_tool_prefix"; then
4839  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4840set dummy ${ac_tool_prefix}objdump; ac_word=$2
4841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4842$as_echo_n "checking for $ac_word... " >&6; }
4843if ${ac_cv_prog_OBJDUMP+:} false; then :
4844  $as_echo_n "(cached) " >&6
4845else
4846  if test -n "$OBJDUMP"; then
4847  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4848else
4849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4850for as_dir in $PATH
4851do
4852  IFS=$as_save_IFS
4853  test -z "$as_dir" && as_dir=.
4854    for ac_exec_ext in '' $ac_executable_extensions; do
4855  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4856    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4857    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4858    break 2
4859  fi
4860done
4861  done
4862IFS=$as_save_IFS
4863
4864fi
4865fi
4866OBJDUMP=$ac_cv_prog_OBJDUMP
4867if test -n "$OBJDUMP"; then
4868  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4869$as_echo "$OBJDUMP" >&6; }
4870else
4871  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4872$as_echo "no" >&6; }
4873fi
4874
4875
4876fi
4877if test -z "$ac_cv_prog_OBJDUMP"; then
4878  ac_ct_OBJDUMP=$OBJDUMP
4879  # Extract the first word of "objdump", so it can be a program name with args.
4880set dummy objdump; ac_word=$2
4881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4882$as_echo_n "checking for $ac_word... " >&6; }
4883if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4884  $as_echo_n "(cached) " >&6
4885else
4886  if test -n "$ac_ct_OBJDUMP"; then
4887  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4888else
4889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4890for as_dir in $PATH
4891do
4892  IFS=$as_save_IFS
4893  test -z "$as_dir" && as_dir=.
4894    for ac_exec_ext in '' $ac_executable_extensions; do
4895  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4896    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4897    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4898    break 2
4899  fi
4900done
4901  done
4902IFS=$as_save_IFS
4903
4904fi
4905fi
4906ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4907if test -n "$ac_ct_OBJDUMP"; then
4908  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4909$as_echo "$ac_ct_OBJDUMP" >&6; }
4910else
4911  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4912$as_echo "no" >&6; }
4913fi
4914
4915  if test "x$ac_ct_OBJDUMP" = x; then
4916    OBJDUMP="false"
4917  else
4918    case $cross_compiling:$ac_tool_warned in
4919yes:)
4920{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4921$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4922ac_tool_warned=yes ;;
4923esac
4924    OBJDUMP=$ac_ct_OBJDUMP
4925  fi
4926else
4927  OBJDUMP="$ac_cv_prog_OBJDUMP"
4928fi
4929
4930test -z "$OBJDUMP" && OBJDUMP=objdump
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4941$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4942if ${lt_cv_deplibs_check_method+:} false; then :
4943  $as_echo_n "(cached) " >&6
4944else
4945  lt_cv_file_magic_cmd='$MAGIC_CMD'
4946lt_cv_file_magic_test_file=
4947lt_cv_deplibs_check_method='unknown'
4948# Need to set the preceding variable on all platforms that support
4949# interlibrary dependencies.
4950# 'none' -- dependencies not supported.
4951# `unknown' -- same as none, but documents that we really don't know.
4952# 'pass_all' -- all dependencies passed with no checks.
4953# 'test_compile' -- check by making test program.
4954# 'file_magic [[regex]]' -- check by looking for files in library path
4955# which responds to the $file_magic_cmd with a given extended regex.
4956# If you have `file' or equivalent on your system and you're not sure
4957# whether `pass_all' will *always* work, you probably want this one.
4958
4959case $host_os in
4960aix[4-9]*)
4961  lt_cv_deplibs_check_method=pass_all
4962  ;;
4963
4964beos*)
4965  lt_cv_deplibs_check_method=pass_all
4966  ;;
4967
4968bsdi[45]*)
4969  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4970  lt_cv_file_magic_cmd='/usr/bin/file -L'
4971  lt_cv_file_magic_test_file=/shlib/libc.so
4972  ;;
4973
4974cygwin*)
4975  # func_win32_libid is a shell function defined in ltmain.sh
4976  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4977  lt_cv_file_magic_cmd='func_win32_libid'
4978  ;;
4979
4980mingw* | pw32*)
4981  # Base MSYS/MinGW do not provide the 'file' command needed by
4982  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4983  # unless we find 'file', for example because we are cross-compiling.
4984  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4985  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4986    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4987    lt_cv_file_magic_cmd='func_win32_libid'
4988  else
4989    # Keep this pattern in sync with the one in func_win32_libid.
4990    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4991    lt_cv_file_magic_cmd='$OBJDUMP -f'
4992  fi
4993  ;;
4994
4995cegcc*)
4996  # use the weaker test based on 'objdump'. See mingw*.
4997  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4998  lt_cv_file_magic_cmd='$OBJDUMP -f'
4999  ;;
5000
5001darwin* | rhapsody*)
5002  lt_cv_deplibs_check_method=pass_all
5003  ;;
5004
5005freebsd* | dragonfly*)
5006  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5007    case $host_cpu in
5008    i*86 )
5009      # Not sure whether the presence of OpenBSD here was a mistake.
5010      # Let's accept both of them until this is cleared up.
5011      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5012      lt_cv_file_magic_cmd=/usr/bin/file
5013      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5014      ;;
5015    esac
5016  else
5017    lt_cv_deplibs_check_method=pass_all
5018  fi
5019  ;;
5020
5021gnu*)
5022  lt_cv_deplibs_check_method=pass_all
5023  ;;
5024
5025haiku*)
5026  lt_cv_deplibs_check_method=pass_all
5027  ;;
5028
5029hpux10.20* | hpux11*)
5030  lt_cv_file_magic_cmd=/usr/bin/file
5031  case $host_cpu in
5032  ia64*)
5033    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5034    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5035    ;;
5036  hppa*64*)
5037    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5038    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5039    ;;
5040  *)
5041    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5042    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5043    ;;
5044  esac
5045  ;;
5046
5047interix[3-9]*)
5048  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5049  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5050  ;;
5051
5052irix5* | irix6* | nonstopux*)
5053  case $LD in
5054  *-32|*"-32 ") libmagic=32-bit;;
5055  *-n32|*"-n32 ") libmagic=N32;;
5056  *-64|*"-64 ") libmagic=64-bit;;
5057  *) libmagic=never-match;;
5058  esac
5059  lt_cv_deplibs_check_method=pass_all
5060  ;;
5061
5062# This must be glibc/ELF.
5063linux* | k*bsd*-gnu | kopensolaris*-gnu)
5064  lt_cv_deplibs_check_method=pass_all
5065  ;;
5066
5067netbsd*)
5068  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5069    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5070  else
5071    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5072  fi
5073  ;;
5074
5075newos6*)
5076  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5077  lt_cv_file_magic_cmd=/usr/bin/file
5078  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5079  ;;
5080
5081*nto* | *qnx*)
5082  lt_cv_deplibs_check_method=pass_all
5083  ;;
5084
5085openbsd*)
5086  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5087    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5088  else
5089    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5090  fi
5091  ;;
5092
5093osf3* | osf4* | osf5*)
5094  lt_cv_deplibs_check_method=pass_all
5095  ;;
5096
5097rdos*)
5098  lt_cv_deplibs_check_method=pass_all
5099  ;;
5100
5101solaris*)
5102  lt_cv_deplibs_check_method=pass_all
5103  ;;
5104
5105sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5106  lt_cv_deplibs_check_method=pass_all
5107  ;;
5108
5109sysv4 | sysv4.3*)
5110  case $host_vendor in
5111  motorola)
5112    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
5113    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5114    ;;
5115  ncr)
5116    lt_cv_deplibs_check_method=pass_all
5117    ;;
5118  sequent)
5119    lt_cv_file_magic_cmd='/bin/file'
5120    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5121    ;;
5122  sni)
5123    lt_cv_file_magic_cmd='/bin/file'
5124    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5125    lt_cv_file_magic_test_file=/lib/libc.so
5126    ;;
5127  siemens)
5128    lt_cv_deplibs_check_method=pass_all
5129    ;;
5130  pc)
5131    lt_cv_deplibs_check_method=pass_all
5132    ;;
5133  esac
5134  ;;
5135
5136tpf*)
5137  lt_cv_deplibs_check_method=pass_all
5138  ;;
5139esac
5140
5141fi
5142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5143$as_echo "$lt_cv_deplibs_check_method" >&6; }
5144
5145file_magic_glob=
5146want_nocaseglob=no
5147if test "$build" = "$host"; then
5148  case $host_os in
5149  mingw* | pw32*)
5150    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5151      want_nocaseglob=yes
5152    else
5153      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5154    fi
5155    ;;
5156  esac
5157fi
5158
5159file_magic_cmd=$lt_cv_file_magic_cmd
5160deplibs_check_method=$lt_cv_deplibs_check_method
5161test -z "$deplibs_check_method" && deplibs_check_method=unknown
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184if test -n "$ac_tool_prefix"; then
5185  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5186set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5188$as_echo_n "checking for $ac_word... " >&6; }
5189if ${ac_cv_prog_DLLTOOL+:} false; then :
5190  $as_echo_n "(cached) " >&6
5191else
5192  if test -n "$DLLTOOL"; then
5193  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5194else
5195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5196for as_dir in $PATH
5197do
5198  IFS=$as_save_IFS
5199  test -z "$as_dir" && as_dir=.
5200    for ac_exec_ext in '' $ac_executable_extensions; do
5201  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5202    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5203    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5204    break 2
5205  fi
5206done
5207  done
5208IFS=$as_save_IFS
5209
5210fi
5211fi
5212DLLTOOL=$ac_cv_prog_DLLTOOL
5213if test -n "$DLLTOOL"; then
5214  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5215$as_echo "$DLLTOOL" >&6; }
5216else
5217  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5218$as_echo "no" >&6; }
5219fi
5220
5221
5222fi
5223if test -z "$ac_cv_prog_DLLTOOL"; then
5224  ac_ct_DLLTOOL=$DLLTOOL
5225  # Extract the first word of "dlltool", so it can be a program name with args.
5226set dummy dlltool; ac_word=$2
5227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5228$as_echo_n "checking for $ac_word... " >&6; }
5229if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5230  $as_echo_n "(cached) " >&6
5231else
5232  if test -n "$ac_ct_DLLTOOL"; then
5233  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5234else
5235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5236for as_dir in $PATH
5237do
5238  IFS=$as_save_IFS
5239  test -z "$as_dir" && as_dir=.
5240    for ac_exec_ext in '' $ac_executable_extensions; do
5241  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5242    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5243    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5244    break 2
5245  fi
5246done
5247  done
5248IFS=$as_save_IFS
5249
5250fi
5251fi
5252ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5253if test -n "$ac_ct_DLLTOOL"; then
5254  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5255$as_echo "$ac_ct_DLLTOOL" >&6; }
5256else
5257  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5258$as_echo "no" >&6; }
5259fi
5260
5261  if test "x$ac_ct_DLLTOOL" = x; then
5262    DLLTOOL="false"
5263  else
5264    case $cross_compiling:$ac_tool_warned in
5265yes:)
5266{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5267$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5268ac_tool_warned=yes ;;
5269esac
5270    DLLTOOL=$ac_ct_DLLTOOL
5271  fi
5272else
5273  DLLTOOL="$ac_cv_prog_DLLTOOL"
5274fi
5275
5276test -z "$DLLTOOL" && DLLTOOL=dlltool
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5288$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5289if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5290  $as_echo_n "(cached) " >&6
5291else
5292  lt_cv_sharedlib_from_linklib_cmd='unknown'
5293
5294case $host_os in
5295cygwin* | mingw* | pw32* | cegcc*)
5296  # two different shell functions defined in ltmain.sh
5297  # decide which to use based on capabilities of $DLLTOOL
5298  case `$DLLTOOL --help 2>&1` in
5299  *--identify-strict*)
5300    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5301    ;;
5302  *)
5303    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5304    ;;
5305  esac
5306  ;;
5307*)
5308  # fallback: assume linklib IS sharedlib
5309  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5310  ;;
5311esac
5312
5313fi
5314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5315$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5316sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5317test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5318
5319
5320
5321
5322
5323
5324
5325
5326if test -n "$ac_tool_prefix"; then
5327  for ac_prog in ar
5328  do
5329    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5330set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5332$as_echo_n "checking for $ac_word... " >&6; }
5333if ${ac_cv_prog_AR+:} false; then :
5334  $as_echo_n "(cached) " >&6
5335else
5336  if test -n "$AR"; then
5337  ac_cv_prog_AR="$AR" # Let the user override the test.
5338else
5339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5340for as_dir in $PATH
5341do
5342  IFS=$as_save_IFS
5343  test -z "$as_dir" && as_dir=.
5344    for ac_exec_ext in '' $ac_executable_extensions; do
5345  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5346    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5347    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5348    break 2
5349  fi
5350done
5351  done
5352IFS=$as_save_IFS
5353
5354fi
5355fi
5356AR=$ac_cv_prog_AR
5357if test -n "$AR"; then
5358  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5359$as_echo "$AR" >&6; }
5360else
5361  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5362$as_echo "no" >&6; }
5363fi
5364
5365
5366    test -n "$AR" && break
5367  done
5368fi
5369if test -z "$AR"; then
5370  ac_ct_AR=$AR
5371  for ac_prog in ar
5372do
5373  # Extract the first word of "$ac_prog", so it can be a program name with args.
5374set dummy $ac_prog; ac_word=$2
5375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5376$as_echo_n "checking for $ac_word... " >&6; }
5377if ${ac_cv_prog_ac_ct_AR+:} false; then :
5378  $as_echo_n "(cached) " >&6
5379else
5380  if test -n "$ac_ct_AR"; then
5381  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5382else
5383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5384for as_dir in $PATH
5385do
5386  IFS=$as_save_IFS
5387  test -z "$as_dir" && as_dir=.
5388    for ac_exec_ext in '' $ac_executable_extensions; do
5389  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5390    ac_cv_prog_ac_ct_AR="$ac_prog"
5391    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5392    break 2
5393  fi
5394done
5395  done
5396IFS=$as_save_IFS
5397
5398fi
5399fi
5400ac_ct_AR=$ac_cv_prog_ac_ct_AR
5401if test -n "$ac_ct_AR"; then
5402  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5403$as_echo "$ac_ct_AR" >&6; }
5404else
5405  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5406$as_echo "no" >&6; }
5407fi
5408
5409
5410  test -n "$ac_ct_AR" && break
5411done
5412
5413  if test "x$ac_ct_AR" = x; then
5414    AR="false"
5415  else
5416    case $cross_compiling:$ac_tool_warned in
5417yes:)
5418{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5419$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5420ac_tool_warned=yes ;;
5421esac
5422    AR=$ac_ct_AR
5423  fi
5424fi
5425
5426: ${AR=ar}
5427: ${AR_FLAGS=cru}
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5440$as_echo_n "checking for archiver @FILE support... " >&6; }
5441if ${lt_cv_ar_at_file+:} false; then :
5442  $as_echo_n "(cached) " >&6
5443else
5444  lt_cv_ar_at_file=no
5445   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5446/* end confdefs.h.  */
5447
5448int
5449main ()
5450{
5451
5452  ;
5453  return 0;
5454}
5455_ACEOF
5456if ac_fn_c_try_compile "$LINENO"; then :
5457  echo conftest.$ac_objext > conftest.lst
5458      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5459      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5460  (eval $lt_ar_try) 2>&5
5461  ac_status=$?
5462  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5463  test $ac_status = 0; }
5464      if test "$ac_status" -eq 0; then
5465	# Ensure the archiver fails upon bogus file names.
5466	rm -f conftest.$ac_objext libconftest.a
5467	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5468  (eval $lt_ar_try) 2>&5
5469  ac_status=$?
5470  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5471  test $ac_status = 0; }
5472	if test "$ac_status" -ne 0; then
5473          lt_cv_ar_at_file=@
5474        fi
5475      fi
5476      rm -f conftest.* libconftest.a
5477
5478fi
5479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5480
5481fi
5482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5483$as_echo "$lt_cv_ar_at_file" >&6; }
5484
5485if test "x$lt_cv_ar_at_file" = xno; then
5486  archiver_list_spec=
5487else
5488  archiver_list_spec=$lt_cv_ar_at_file
5489fi
5490
5491
5492
5493
5494
5495
5496
5497if test -n "$ac_tool_prefix"; then
5498  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5499set dummy ${ac_tool_prefix}strip; ac_word=$2
5500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5501$as_echo_n "checking for $ac_word... " >&6; }
5502if ${ac_cv_prog_STRIP+:} false; then :
5503  $as_echo_n "(cached) " >&6
5504else
5505  if test -n "$STRIP"; then
5506  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5507else
5508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5509for as_dir in $PATH
5510do
5511  IFS=$as_save_IFS
5512  test -z "$as_dir" && as_dir=.
5513    for ac_exec_ext in '' $ac_executable_extensions; do
5514  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5515    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5516    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5517    break 2
5518  fi
5519done
5520  done
5521IFS=$as_save_IFS
5522
5523fi
5524fi
5525STRIP=$ac_cv_prog_STRIP
5526if test -n "$STRIP"; then
5527  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5528$as_echo "$STRIP" >&6; }
5529else
5530  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5531$as_echo "no" >&6; }
5532fi
5533
5534
5535fi
5536if test -z "$ac_cv_prog_STRIP"; then
5537  ac_ct_STRIP=$STRIP
5538  # Extract the first word of "strip", so it can be a program name with args.
5539set dummy strip; ac_word=$2
5540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5541$as_echo_n "checking for $ac_word... " >&6; }
5542if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5543  $as_echo_n "(cached) " >&6
5544else
5545  if test -n "$ac_ct_STRIP"; then
5546  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5547else
5548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5549for as_dir in $PATH
5550do
5551  IFS=$as_save_IFS
5552  test -z "$as_dir" && as_dir=.
5553    for ac_exec_ext in '' $ac_executable_extensions; do
5554  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5555    ac_cv_prog_ac_ct_STRIP="strip"
5556    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5557    break 2
5558  fi
5559done
5560  done
5561IFS=$as_save_IFS
5562
5563fi
5564fi
5565ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5566if test -n "$ac_ct_STRIP"; then
5567  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5568$as_echo "$ac_ct_STRIP" >&6; }
5569else
5570  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5571$as_echo "no" >&6; }
5572fi
5573
5574  if test "x$ac_ct_STRIP" = x; then
5575    STRIP=":"
5576  else
5577    case $cross_compiling:$ac_tool_warned in
5578yes:)
5579{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5580$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5581ac_tool_warned=yes ;;
5582esac
5583    STRIP=$ac_ct_STRIP
5584  fi
5585else
5586  STRIP="$ac_cv_prog_STRIP"
5587fi
5588
5589test -z "$STRIP" && STRIP=:
5590
5591
5592
5593
5594
5595
5596if test -n "$ac_tool_prefix"; then
5597  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5598set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5600$as_echo_n "checking for $ac_word... " >&6; }
5601if ${ac_cv_prog_RANLIB+:} false; then :
5602  $as_echo_n "(cached) " >&6
5603else
5604  if test -n "$RANLIB"; then
5605  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5606else
5607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5608for as_dir in $PATH
5609do
5610  IFS=$as_save_IFS
5611  test -z "$as_dir" && as_dir=.
5612    for ac_exec_ext in '' $ac_executable_extensions; do
5613  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5614    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5615    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5616    break 2
5617  fi
5618done
5619  done
5620IFS=$as_save_IFS
5621
5622fi
5623fi
5624RANLIB=$ac_cv_prog_RANLIB
5625if test -n "$RANLIB"; then
5626  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5627$as_echo "$RANLIB" >&6; }
5628else
5629  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5630$as_echo "no" >&6; }
5631fi
5632
5633
5634fi
5635if test -z "$ac_cv_prog_RANLIB"; then
5636  ac_ct_RANLIB=$RANLIB
5637  # Extract the first word of "ranlib", so it can be a program name with args.
5638set dummy ranlib; ac_word=$2
5639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5640$as_echo_n "checking for $ac_word... " >&6; }
5641if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5642  $as_echo_n "(cached) " >&6
5643else
5644  if test -n "$ac_ct_RANLIB"; then
5645  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5646else
5647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5648for as_dir in $PATH
5649do
5650  IFS=$as_save_IFS
5651  test -z "$as_dir" && as_dir=.
5652    for ac_exec_ext in '' $ac_executable_extensions; do
5653  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5654    ac_cv_prog_ac_ct_RANLIB="ranlib"
5655    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5656    break 2
5657  fi
5658done
5659  done
5660IFS=$as_save_IFS
5661
5662fi
5663fi
5664ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5665if test -n "$ac_ct_RANLIB"; then
5666  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5667$as_echo "$ac_ct_RANLIB" >&6; }
5668else
5669  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5670$as_echo "no" >&6; }
5671fi
5672
5673  if test "x$ac_ct_RANLIB" = x; then
5674    RANLIB=":"
5675  else
5676    case $cross_compiling:$ac_tool_warned in
5677yes:)
5678{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5679$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5680ac_tool_warned=yes ;;
5681esac
5682    RANLIB=$ac_ct_RANLIB
5683  fi
5684else
5685  RANLIB="$ac_cv_prog_RANLIB"
5686fi
5687
5688test -z "$RANLIB" && RANLIB=:
5689
5690
5691
5692
5693
5694
5695# Determine commands to create old-style static archives.
5696old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5697old_postinstall_cmds='chmod 644 $oldlib'
5698old_postuninstall_cmds=
5699
5700if test -n "$RANLIB"; then
5701  case $host_os in
5702  openbsd*)
5703    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5704    ;;
5705  *)
5706    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5707    ;;
5708  esac
5709  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5710fi
5711
5712case $host_os in
5713  darwin*)
5714    lock_old_archive_extraction=yes ;;
5715  *)
5716    lock_old_archive_extraction=no ;;
5717esac
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757# If no C compiler was specified, use CC.
5758LTCC=${LTCC-"$CC"}
5759
5760# If no C compiler flags were specified, use CFLAGS.
5761LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5762
5763# Allow CC to be a program name with arguments.
5764compiler=$CC
5765
5766
5767# Check for command to grab the raw symbol name followed by C symbol from nm.
5768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5769$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5770if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5771  $as_echo_n "(cached) " >&6
5772else
5773
5774# These are sane defaults that work on at least a few old systems.
5775# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5776
5777# Character class describing NM global symbol codes.
5778symcode='[BCDEGRST]'
5779
5780# Regexp to match symbols that can be accessed directly from C.
5781sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5782
5783# Define system-specific variables.
5784case $host_os in
5785aix*)
5786  symcode='[BCDT]'
5787  ;;
5788cygwin* | mingw* | pw32* | cegcc*)
5789  symcode='[ABCDGISTW]'
5790  ;;
5791hpux*)
5792  if test "$host_cpu" = ia64; then
5793    symcode='[ABCDEGRST]'
5794  fi
5795  ;;
5796irix* | nonstopux*)
5797  symcode='[BCDEGRST]'
5798  ;;
5799osf*)
5800  symcode='[BCDEGQRST]'
5801  ;;
5802solaris*)
5803  symcode='[BDRT]'
5804  ;;
5805sco3.2v5*)
5806  symcode='[DT]'
5807  ;;
5808sysv4.2uw2*)
5809  symcode='[DT]'
5810  ;;
5811sysv5* | sco5v6* | unixware* | OpenUNIX*)
5812  symcode='[ABDT]'
5813  ;;
5814sysv4)
5815  symcode='[DFNSTU]'
5816  ;;
5817esac
5818
5819# If we're using GNU nm, then use its standard symbol codes.
5820case `$NM -V 2>&1` in
5821*GNU* | *'with BFD'*)
5822  symcode='[ABCDGIRSTW]' ;;
5823esac
5824
5825# Transform an extracted symbol line into a proper C declaration.
5826# Some systems (esp. on ia64) link data and code symbols differently,
5827# so use this general approach.
5828lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5829
5830# Transform an extracted symbol line into symbol name and symbol address
5831lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5832lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
5833
5834# Handle CRLF in mingw tool chain
5835opt_cr=
5836case $build_os in
5837mingw*)
5838  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5839  ;;
5840esac
5841
5842# Try without a prefix underscore, then with it.
5843for ac_symprfx in "" "_"; do
5844
5845  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5846  symxfrm="\\1 $ac_symprfx\\2 \\2"
5847
5848  # Write the raw and C identifiers.
5849  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5850    # Fake it for dumpbin and say T for any non-static function
5851    # and D for any global variable.
5852    # Also find C++ and __fastcall symbols from MSVC++,
5853    # which start with @ or ?.
5854    lt_cv_sys_global_symbol_pipe="$AWK '"\
5855"     {last_section=section; section=\$ 3};"\
5856"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5857"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5858"     \$ 0!~/External *\|/{next};"\
5859"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5860"     {if(hide[section]) next};"\
5861"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5862"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5863"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5864"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5865"     ' prfx=^$ac_symprfx"
5866  else
5867    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5868  fi
5869  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5870
5871  # Check to see that the pipe works correctly.
5872  pipe_works=no
5873
5874  rm -f conftest*
5875  cat > conftest.$ac_ext <<_LT_EOF
5876#ifdef __cplusplus
5877extern "C" {
5878#endif
5879char nm_test_var;
5880void nm_test_func(void);
5881void nm_test_func(void){}
5882#ifdef __cplusplus
5883}
5884#endif
5885int main(){nm_test_var='a';nm_test_func();return(0);}
5886_LT_EOF
5887
5888  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5889  (eval $ac_compile) 2>&5
5890  ac_status=$?
5891  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5892  test $ac_status = 0; }; then
5893    # Now try to grab the symbols.
5894    nlist=conftest.nm
5895    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5896  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5897  ac_status=$?
5898  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5899  test $ac_status = 0; } && test -s "$nlist"; then
5900      # Try sorting and uniquifying the output.
5901      if sort "$nlist" | uniq > "$nlist"T; then
5902	mv -f "$nlist"T "$nlist"
5903      else
5904	rm -f "$nlist"T
5905      fi
5906
5907      # Make sure that we snagged all the symbols we need.
5908      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5909	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5910	  cat <<_LT_EOF > conftest.$ac_ext
5911/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
5912#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5913/* DATA imports from DLLs on WIN32 con't be const, because runtime
5914   relocations are performed -- see ld's documentation on pseudo-relocs.  */
5915# define LT_DLSYM_CONST
5916#elif defined(__osf__)
5917/* This system does not cope well with relocations in const data.  */
5918# define LT_DLSYM_CONST
5919#else
5920# define LT_DLSYM_CONST const
5921#endif
5922
5923#ifdef __cplusplus
5924extern "C" {
5925#endif
5926
5927_LT_EOF
5928	  # Now generate the symbol file.
5929	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5930
5931	  cat <<_LT_EOF >> conftest.$ac_ext
5932
5933/* The mapping between symbol names and symbols.  */
5934LT_DLSYM_CONST struct {
5935  const char *name;
5936  void       *address;
5937}
5938lt__PROGRAM__LTX_preloaded_symbols[] =
5939{
5940  { "@PROGRAM@", (void *) 0 },
5941_LT_EOF
5942	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5943	  cat <<\_LT_EOF >> conftest.$ac_ext
5944  {0, (void *) 0}
5945};
5946
5947/* This works around a problem in FreeBSD linker */
5948#ifdef FREEBSD_WORKAROUND
5949static const void *lt_preloaded_setup() {
5950  return lt__PROGRAM__LTX_preloaded_symbols;
5951}
5952#endif
5953
5954#ifdef __cplusplus
5955}
5956#endif
5957_LT_EOF
5958	  # Now try linking the two files.
5959	  mv conftest.$ac_objext conftstm.$ac_objext
5960	  lt_globsym_save_LIBS=$LIBS
5961	  lt_globsym_save_CFLAGS=$CFLAGS
5962	  LIBS="conftstm.$ac_objext"
5963	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5964	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5965  (eval $ac_link) 2>&5
5966  ac_status=$?
5967  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5968  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5969	    pipe_works=yes
5970	  fi
5971	  LIBS=$lt_globsym_save_LIBS
5972	  CFLAGS=$lt_globsym_save_CFLAGS
5973	else
5974	  echo "cannot find nm_test_func in $nlist" >&5
5975	fi
5976      else
5977	echo "cannot find nm_test_var in $nlist" >&5
5978      fi
5979    else
5980      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5981    fi
5982  else
5983    echo "$progname: failed program was:" >&5
5984    cat conftest.$ac_ext >&5
5985  fi
5986  rm -rf conftest* conftst*
5987
5988  # Do not use the global_symbol_pipe unless it works.
5989  if test "$pipe_works" = yes; then
5990    break
5991  else
5992    lt_cv_sys_global_symbol_pipe=
5993  fi
5994done
5995
5996fi
5997
5998if test -z "$lt_cv_sys_global_symbol_pipe"; then
5999  lt_cv_sys_global_symbol_to_cdecl=
6000fi
6001if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6002  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6003$as_echo "failed" >&6; }
6004else
6005  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6006$as_echo "ok" >&6; }
6007fi
6008
6009# Response file support.
6010if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6011  nm_file_list_spec='@'
6012elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6013  nm_file_list_spec='@'
6014fi
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6043$as_echo_n "checking for sysroot... " >&6; }
6044
6045# Check whether --with-sysroot was given.
6046if test "${with_sysroot+set}" = set; then :
6047  withval=$with_sysroot;
6048else
6049  with_sysroot=no
6050fi
6051
6052
6053lt_sysroot=
6054case ${with_sysroot} in #(
6055 yes)
6056   if test "$GCC" = yes; then
6057     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6058   fi
6059   ;; #(
6060 /*)
6061   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6062   ;; #(
6063 no|'')
6064   ;; #(
6065 *)
6066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6067$as_echo "${with_sysroot}" >&6; }
6068   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6069   ;;
6070esac
6071
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6073$as_echo "${lt_sysroot:-no}" >&6; }
6074
6075
6076
6077
6078
6079# Check whether --enable-libtool-lock was given.
6080if test "${enable_libtool_lock+set}" = set; then :
6081  enableval=$enable_libtool_lock;
6082fi
6083
6084test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6085
6086# Some flags need to be propagated to the compiler or linker for good
6087# libtool support.
6088case $host in
6089ia64-*-hpux*)
6090  # Find out which ABI we are using.
6091  echo 'int i;' > conftest.$ac_ext
6092  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6093  (eval $ac_compile) 2>&5
6094  ac_status=$?
6095  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6096  test $ac_status = 0; }; then
6097    case `/usr/bin/file conftest.$ac_objext` in
6098      *ELF-32*)
6099	HPUX_IA64_MODE="32"
6100	;;
6101      *ELF-64*)
6102	HPUX_IA64_MODE="64"
6103	;;
6104    esac
6105  fi
6106  rm -rf conftest*
6107  ;;
6108*-*-irix6*)
6109  # Find out which ABI we are using.
6110  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6111  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6112  (eval $ac_compile) 2>&5
6113  ac_status=$?
6114  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6115  test $ac_status = 0; }; then
6116    if test "$lt_cv_prog_gnu_ld" = yes; then
6117      case `/usr/bin/file conftest.$ac_objext` in
6118	*32-bit*)
6119	  LD="${LD-ld} -melf32bsmip"
6120	  ;;
6121	*N32*)
6122	  LD="${LD-ld} -melf32bmipn32"
6123	  ;;
6124	*64-bit*)
6125	  LD="${LD-ld} -melf64bmip"
6126	;;
6127      esac
6128    else
6129      case `/usr/bin/file conftest.$ac_objext` in
6130	*32-bit*)
6131	  LD="${LD-ld} -32"
6132	  ;;
6133	*N32*)
6134	  LD="${LD-ld} -n32"
6135	  ;;
6136	*64-bit*)
6137	  LD="${LD-ld} -64"
6138	  ;;
6139      esac
6140    fi
6141  fi
6142  rm -rf conftest*
6143  ;;
6144
6145x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6146s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6147  # Find out which ABI we are using.
6148  echo 'int i;' > conftest.$ac_ext
6149  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6150  (eval $ac_compile) 2>&5
6151  ac_status=$?
6152  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6153  test $ac_status = 0; }; then
6154    case `/usr/bin/file conftest.o` in
6155      *32-bit*)
6156	case $host in
6157	  x86_64-*kfreebsd*-gnu)
6158	    LD="${LD-ld} -m elf_i386_fbsd"
6159	    ;;
6160	  x86_64-*linux*)
6161	    LD="${LD-ld} -m elf_i386"
6162	    ;;
6163	  ppc64-*linux*|powerpc64-*linux*)
6164	    LD="${LD-ld} -m elf32ppclinux"
6165	    ;;
6166	  s390x-*linux*)
6167	    LD="${LD-ld} -m elf_s390"
6168	    ;;
6169	  sparc64-*linux*)
6170	    LD="${LD-ld} -m elf32_sparc"
6171	    ;;
6172	esac
6173	;;
6174      *64-bit*)
6175	case $host in
6176	  x86_64-*kfreebsd*-gnu)
6177	    LD="${LD-ld} -m elf_x86_64_fbsd"
6178	    ;;
6179	  x86_64-*linux*)
6180	    LD="${LD-ld} -m elf_x86_64"
6181	    ;;
6182	  ppc*-*linux*|powerpc*-*linux*)
6183	    LD="${LD-ld} -m elf64ppc"
6184	    ;;
6185	  s390*-*linux*|s390*-*tpf*)
6186	    LD="${LD-ld} -m elf64_s390"
6187	    ;;
6188	  sparc*-*linux*)
6189	    LD="${LD-ld} -m elf64_sparc"
6190	    ;;
6191	esac
6192	;;
6193    esac
6194  fi
6195  rm -rf conftest*
6196  ;;
6197
6198*-*-sco3.2v5*)
6199  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6200  SAVE_CFLAGS="$CFLAGS"
6201  CFLAGS="$CFLAGS -belf"
6202  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6203$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6204if ${lt_cv_cc_needs_belf+:} false; then :
6205  $as_echo_n "(cached) " >&6
6206else
6207  ac_ext=c
6208ac_cpp='$CPP $CPPFLAGS'
6209ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6210ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6211ac_compiler_gnu=$ac_cv_c_compiler_gnu
6212
6213     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6214/* end confdefs.h.  */
6215
6216int
6217main ()
6218{
6219
6220  ;
6221  return 0;
6222}
6223_ACEOF
6224if ac_fn_c_try_link "$LINENO"; then :
6225  lt_cv_cc_needs_belf=yes
6226else
6227  lt_cv_cc_needs_belf=no
6228fi
6229rm -f core conftest.err conftest.$ac_objext \
6230    conftest$ac_exeext conftest.$ac_ext
6231     ac_ext=c
6232ac_cpp='$CPP $CPPFLAGS'
6233ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6234ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6235ac_compiler_gnu=$ac_cv_c_compiler_gnu
6236
6237fi
6238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6239$as_echo "$lt_cv_cc_needs_belf" >&6; }
6240  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6241    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6242    CFLAGS="$SAVE_CFLAGS"
6243  fi
6244  ;;
6245*-*solaris*)
6246  # Find out which ABI we are using.
6247  echo 'int i;' > conftest.$ac_ext
6248  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6249  (eval $ac_compile) 2>&5
6250  ac_status=$?
6251  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6252  test $ac_status = 0; }; then
6253    case `/usr/bin/file conftest.o` in
6254    *64-bit*)
6255      case $lt_cv_prog_gnu_ld in
6256      yes*)
6257        case $host in
6258        i?86-*-solaris*)
6259          LD="${LD-ld} -m elf_x86_64"
6260          ;;
6261        sparc*-*-solaris*)
6262          LD="${LD-ld} -m elf64_sparc"
6263          ;;
6264        esac
6265        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6266        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6267          LD="${LD-ld}_sol2"
6268        fi
6269        ;;
6270      *)
6271	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6272	  LD="${LD-ld} -64"
6273	fi
6274	;;
6275      esac
6276      ;;
6277    esac
6278  fi
6279  rm -rf conftest*
6280  ;;
6281esac
6282
6283need_locks="$enable_libtool_lock"
6284
6285if test -n "$ac_tool_prefix"; then
6286  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6287set dummy ${ac_tool_prefix}mt; ac_word=$2
6288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6289$as_echo_n "checking for $ac_word... " >&6; }
6290if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6291  $as_echo_n "(cached) " >&6
6292else
6293  if test -n "$MANIFEST_TOOL"; then
6294  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6295else
6296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6297for as_dir in $PATH
6298do
6299  IFS=$as_save_IFS
6300  test -z "$as_dir" && as_dir=.
6301    for ac_exec_ext in '' $ac_executable_extensions; do
6302  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6303    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6304    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6305    break 2
6306  fi
6307done
6308  done
6309IFS=$as_save_IFS
6310
6311fi
6312fi
6313MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6314if test -n "$MANIFEST_TOOL"; then
6315  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6316$as_echo "$MANIFEST_TOOL" >&6; }
6317else
6318  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6319$as_echo "no" >&6; }
6320fi
6321
6322
6323fi
6324if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6325  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6326  # Extract the first word of "mt", so it can be a program name with args.
6327set dummy mt; ac_word=$2
6328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6329$as_echo_n "checking for $ac_word... " >&6; }
6330if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6331  $as_echo_n "(cached) " >&6
6332else
6333  if test -n "$ac_ct_MANIFEST_TOOL"; then
6334  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6335else
6336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6337for as_dir in $PATH
6338do
6339  IFS=$as_save_IFS
6340  test -z "$as_dir" && as_dir=.
6341    for ac_exec_ext in '' $ac_executable_extensions; do
6342  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6343    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6344    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6345    break 2
6346  fi
6347done
6348  done
6349IFS=$as_save_IFS
6350
6351fi
6352fi
6353ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6354if test -n "$ac_ct_MANIFEST_TOOL"; then
6355  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6356$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6357else
6358  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6359$as_echo "no" >&6; }
6360fi
6361
6362  if test "x$ac_ct_MANIFEST_TOOL" = x; then
6363    MANIFEST_TOOL=":"
6364  else
6365    case $cross_compiling:$ac_tool_warned in
6366yes:)
6367{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6368$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6369ac_tool_warned=yes ;;
6370esac
6371    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6372  fi
6373else
6374  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6375fi
6376
6377test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6379$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6380if ${lt_cv_path_mainfest_tool+:} false; then :
6381  $as_echo_n "(cached) " >&6
6382else
6383  lt_cv_path_mainfest_tool=no
6384  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6385  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6386  cat conftest.err >&5
6387  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6388    lt_cv_path_mainfest_tool=yes
6389  fi
6390  rm -f conftest*
6391fi
6392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6393$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6394if test "x$lt_cv_path_mainfest_tool" != xyes; then
6395  MANIFEST_TOOL=:
6396fi
6397
6398
6399
6400
6401
6402
6403  case $host_os in
6404    rhapsody* | darwin*)
6405    if test -n "$ac_tool_prefix"; then
6406  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6407set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6409$as_echo_n "checking for $ac_word... " >&6; }
6410if ${ac_cv_prog_DSYMUTIL+:} false; then :
6411  $as_echo_n "(cached) " >&6
6412else
6413  if test -n "$DSYMUTIL"; then
6414  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6415else
6416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6417for as_dir in $PATH
6418do
6419  IFS=$as_save_IFS
6420  test -z "$as_dir" && as_dir=.
6421    for ac_exec_ext in '' $ac_executable_extensions; do
6422  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6423    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6424    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6425    break 2
6426  fi
6427done
6428  done
6429IFS=$as_save_IFS
6430
6431fi
6432fi
6433DSYMUTIL=$ac_cv_prog_DSYMUTIL
6434if test -n "$DSYMUTIL"; then
6435  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6436$as_echo "$DSYMUTIL" >&6; }
6437else
6438  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6439$as_echo "no" >&6; }
6440fi
6441
6442
6443fi
6444if test -z "$ac_cv_prog_DSYMUTIL"; then
6445  ac_ct_DSYMUTIL=$DSYMUTIL
6446  # Extract the first word of "dsymutil", so it can be a program name with args.
6447set dummy dsymutil; ac_word=$2
6448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6449$as_echo_n "checking for $ac_word... " >&6; }
6450if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6451  $as_echo_n "(cached) " >&6
6452else
6453  if test -n "$ac_ct_DSYMUTIL"; then
6454  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6455else
6456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6457for as_dir in $PATH
6458do
6459  IFS=$as_save_IFS
6460  test -z "$as_dir" && as_dir=.
6461    for ac_exec_ext in '' $ac_executable_extensions; do
6462  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6463    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6464    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6465    break 2
6466  fi
6467done
6468  done
6469IFS=$as_save_IFS
6470
6471fi
6472fi
6473ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6474if test -n "$ac_ct_DSYMUTIL"; then
6475  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6476$as_echo "$ac_ct_DSYMUTIL" >&6; }
6477else
6478  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6479$as_echo "no" >&6; }
6480fi
6481
6482  if test "x$ac_ct_DSYMUTIL" = x; then
6483    DSYMUTIL=":"
6484  else
6485    case $cross_compiling:$ac_tool_warned in
6486yes:)
6487{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6488$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6489ac_tool_warned=yes ;;
6490esac
6491    DSYMUTIL=$ac_ct_DSYMUTIL
6492  fi
6493else
6494  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6495fi
6496
6497    if test -n "$ac_tool_prefix"; then
6498  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6499set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6501$as_echo_n "checking for $ac_word... " >&6; }
6502if ${ac_cv_prog_NMEDIT+:} false; then :
6503  $as_echo_n "(cached) " >&6
6504else
6505  if test -n "$NMEDIT"; then
6506  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6507else
6508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6509for as_dir in $PATH
6510do
6511  IFS=$as_save_IFS
6512  test -z "$as_dir" && as_dir=.
6513    for ac_exec_ext in '' $ac_executable_extensions; do
6514  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6515    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6516    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6517    break 2
6518  fi
6519done
6520  done
6521IFS=$as_save_IFS
6522
6523fi
6524fi
6525NMEDIT=$ac_cv_prog_NMEDIT
6526if test -n "$NMEDIT"; then
6527  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6528$as_echo "$NMEDIT" >&6; }
6529else
6530  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6531$as_echo "no" >&6; }
6532fi
6533
6534
6535fi
6536if test -z "$ac_cv_prog_NMEDIT"; then
6537  ac_ct_NMEDIT=$NMEDIT
6538  # Extract the first word of "nmedit", so it can be a program name with args.
6539set dummy nmedit; ac_word=$2
6540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6541$as_echo_n "checking for $ac_word... " >&6; }
6542if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6543  $as_echo_n "(cached) " >&6
6544else
6545  if test -n "$ac_ct_NMEDIT"; then
6546  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6547else
6548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6549for as_dir in $PATH
6550do
6551  IFS=$as_save_IFS
6552  test -z "$as_dir" && as_dir=.
6553    for ac_exec_ext in '' $ac_executable_extensions; do
6554  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6555    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6556    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6557    break 2
6558  fi
6559done
6560  done
6561IFS=$as_save_IFS
6562
6563fi
6564fi
6565ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6566if test -n "$ac_ct_NMEDIT"; then
6567  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6568$as_echo "$ac_ct_NMEDIT" >&6; }
6569else
6570  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6571$as_echo "no" >&6; }
6572fi
6573
6574  if test "x$ac_ct_NMEDIT" = x; then
6575    NMEDIT=":"
6576  else
6577    case $cross_compiling:$ac_tool_warned in
6578yes:)
6579{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6580$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6581ac_tool_warned=yes ;;
6582esac
6583    NMEDIT=$ac_ct_NMEDIT
6584  fi
6585else
6586  NMEDIT="$ac_cv_prog_NMEDIT"
6587fi
6588
6589    if test -n "$ac_tool_prefix"; then
6590  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6591set dummy ${ac_tool_prefix}lipo; ac_word=$2
6592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6593$as_echo_n "checking for $ac_word... " >&6; }
6594if ${ac_cv_prog_LIPO+:} false; then :
6595  $as_echo_n "(cached) " >&6
6596else
6597  if test -n "$LIPO"; then
6598  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6599else
6600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6601for as_dir in $PATH
6602do
6603  IFS=$as_save_IFS
6604  test -z "$as_dir" && as_dir=.
6605    for ac_exec_ext in '' $ac_executable_extensions; do
6606  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6607    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6608    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6609    break 2
6610  fi
6611done
6612  done
6613IFS=$as_save_IFS
6614
6615fi
6616fi
6617LIPO=$ac_cv_prog_LIPO
6618if test -n "$LIPO"; then
6619  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6620$as_echo "$LIPO" >&6; }
6621else
6622  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6623$as_echo "no" >&6; }
6624fi
6625
6626
6627fi
6628if test -z "$ac_cv_prog_LIPO"; then
6629  ac_ct_LIPO=$LIPO
6630  # Extract the first word of "lipo", so it can be a program name with args.
6631set dummy lipo; ac_word=$2
6632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6633$as_echo_n "checking for $ac_word... " >&6; }
6634if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6635  $as_echo_n "(cached) " >&6
6636else
6637  if test -n "$ac_ct_LIPO"; then
6638  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6639else
6640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6641for as_dir in $PATH
6642do
6643  IFS=$as_save_IFS
6644  test -z "$as_dir" && as_dir=.
6645    for ac_exec_ext in '' $ac_executable_extensions; do
6646  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6647    ac_cv_prog_ac_ct_LIPO="lipo"
6648    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6649    break 2
6650  fi
6651done
6652  done
6653IFS=$as_save_IFS
6654
6655fi
6656fi
6657ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6658if test -n "$ac_ct_LIPO"; then
6659  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6660$as_echo "$ac_ct_LIPO" >&6; }
6661else
6662  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6663$as_echo "no" >&6; }
6664fi
6665
6666  if test "x$ac_ct_LIPO" = x; then
6667    LIPO=":"
6668  else
6669    case $cross_compiling:$ac_tool_warned in
6670yes:)
6671{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6672$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6673ac_tool_warned=yes ;;
6674esac
6675    LIPO=$ac_ct_LIPO
6676  fi
6677else
6678  LIPO="$ac_cv_prog_LIPO"
6679fi
6680
6681    if test -n "$ac_tool_prefix"; then
6682  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6683set dummy ${ac_tool_prefix}otool; ac_word=$2
6684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6685$as_echo_n "checking for $ac_word... " >&6; }
6686if ${ac_cv_prog_OTOOL+:} false; then :
6687  $as_echo_n "(cached) " >&6
6688else
6689  if test -n "$OTOOL"; then
6690  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6691else
6692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6693for as_dir in $PATH
6694do
6695  IFS=$as_save_IFS
6696  test -z "$as_dir" && as_dir=.
6697    for ac_exec_ext in '' $ac_executable_extensions; do
6698  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6699    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6700    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6701    break 2
6702  fi
6703done
6704  done
6705IFS=$as_save_IFS
6706
6707fi
6708fi
6709OTOOL=$ac_cv_prog_OTOOL
6710if test -n "$OTOOL"; then
6711  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6712$as_echo "$OTOOL" >&6; }
6713else
6714  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6715$as_echo "no" >&6; }
6716fi
6717
6718
6719fi
6720if test -z "$ac_cv_prog_OTOOL"; then
6721  ac_ct_OTOOL=$OTOOL
6722  # Extract the first word of "otool", so it can be a program name with args.
6723set dummy otool; ac_word=$2
6724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6725$as_echo_n "checking for $ac_word... " >&6; }
6726if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6727  $as_echo_n "(cached) " >&6
6728else
6729  if test -n "$ac_ct_OTOOL"; then
6730  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6731else
6732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6733for as_dir in $PATH
6734do
6735  IFS=$as_save_IFS
6736  test -z "$as_dir" && as_dir=.
6737    for ac_exec_ext in '' $ac_executable_extensions; do
6738  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6739    ac_cv_prog_ac_ct_OTOOL="otool"
6740    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6741    break 2
6742  fi
6743done
6744  done
6745IFS=$as_save_IFS
6746
6747fi
6748fi
6749ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6750if test -n "$ac_ct_OTOOL"; then
6751  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6752$as_echo "$ac_ct_OTOOL" >&6; }
6753else
6754  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6755$as_echo "no" >&6; }
6756fi
6757
6758  if test "x$ac_ct_OTOOL" = x; then
6759    OTOOL=":"
6760  else
6761    case $cross_compiling:$ac_tool_warned in
6762yes:)
6763{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6764$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6765ac_tool_warned=yes ;;
6766esac
6767    OTOOL=$ac_ct_OTOOL
6768  fi
6769else
6770  OTOOL="$ac_cv_prog_OTOOL"
6771fi
6772
6773    if test -n "$ac_tool_prefix"; then
6774  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6775set dummy ${ac_tool_prefix}otool64; ac_word=$2
6776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6777$as_echo_n "checking for $ac_word... " >&6; }
6778if ${ac_cv_prog_OTOOL64+:} false; then :
6779  $as_echo_n "(cached) " >&6
6780else
6781  if test -n "$OTOOL64"; then
6782  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6783else
6784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6785for as_dir in $PATH
6786do
6787  IFS=$as_save_IFS
6788  test -z "$as_dir" && as_dir=.
6789    for ac_exec_ext in '' $ac_executable_extensions; do
6790  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6791    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6792    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6793    break 2
6794  fi
6795done
6796  done
6797IFS=$as_save_IFS
6798
6799fi
6800fi
6801OTOOL64=$ac_cv_prog_OTOOL64
6802if test -n "$OTOOL64"; then
6803  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6804$as_echo "$OTOOL64" >&6; }
6805else
6806  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6807$as_echo "no" >&6; }
6808fi
6809
6810
6811fi
6812if test -z "$ac_cv_prog_OTOOL64"; then
6813  ac_ct_OTOOL64=$OTOOL64
6814  # Extract the first word of "otool64", so it can be a program name with args.
6815set dummy otool64; ac_word=$2
6816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6817$as_echo_n "checking for $ac_word... " >&6; }
6818if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6819  $as_echo_n "(cached) " >&6
6820else
6821  if test -n "$ac_ct_OTOOL64"; then
6822  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6823else
6824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6825for as_dir in $PATH
6826do
6827  IFS=$as_save_IFS
6828  test -z "$as_dir" && as_dir=.
6829    for ac_exec_ext in '' $ac_executable_extensions; do
6830  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6831    ac_cv_prog_ac_ct_OTOOL64="otool64"
6832    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6833    break 2
6834  fi
6835done
6836  done
6837IFS=$as_save_IFS
6838
6839fi
6840fi
6841ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6842if test -n "$ac_ct_OTOOL64"; then
6843  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6844$as_echo "$ac_ct_OTOOL64" >&6; }
6845else
6846  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6847$as_echo "no" >&6; }
6848fi
6849
6850  if test "x$ac_ct_OTOOL64" = x; then
6851    OTOOL64=":"
6852  else
6853    case $cross_compiling:$ac_tool_warned in
6854yes:)
6855{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6856$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6857ac_tool_warned=yes ;;
6858esac
6859    OTOOL64=$ac_ct_OTOOL64
6860  fi
6861else
6862  OTOOL64="$ac_cv_prog_OTOOL64"
6863fi
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6892$as_echo_n "checking for -single_module linker flag... " >&6; }
6893if ${lt_cv_apple_cc_single_mod+:} false; then :
6894  $as_echo_n "(cached) " >&6
6895else
6896  lt_cv_apple_cc_single_mod=no
6897      if test -z "${LT_MULTI_MODULE}"; then
6898	# By default we will add the -single_module flag. You can override
6899	# by either setting the environment variable LT_MULTI_MODULE
6900	# non-empty at configure time, or by adding -multi_module to the
6901	# link flags.
6902	rm -rf libconftest.dylib*
6903	echo "int foo(void){return 1;}" > conftest.c
6904	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6905-dynamiclib -Wl,-single_module conftest.c" >&5
6906	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6907	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6908        _lt_result=$?
6909	# If there is a non-empty error log, and "single_module"
6910	# appears in it, assume the flag caused a linker warning
6911        if test -s conftest.err && $GREP single_module conftest.err; then
6912	  cat conftest.err >&5
6913	# Otherwise, if the output was created with a 0 exit code from
6914	# the compiler, it worked.
6915	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
6916	  lt_cv_apple_cc_single_mod=yes
6917	else
6918	  cat conftest.err >&5
6919	fi
6920	rm -rf libconftest.dylib*
6921	rm -f conftest.*
6922      fi
6923fi
6924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6925$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6926
6927    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6928$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6929if ${lt_cv_ld_exported_symbols_list+:} false; then :
6930  $as_echo_n "(cached) " >&6
6931else
6932  lt_cv_ld_exported_symbols_list=no
6933      save_LDFLAGS=$LDFLAGS
6934      echo "_main" > conftest.sym
6935      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6936      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6937/* end confdefs.h.  */
6938
6939int
6940main ()
6941{
6942
6943  ;
6944  return 0;
6945}
6946_ACEOF
6947if ac_fn_c_try_link "$LINENO"; then :
6948  lt_cv_ld_exported_symbols_list=yes
6949else
6950  lt_cv_ld_exported_symbols_list=no
6951fi
6952rm -f core conftest.err conftest.$ac_objext \
6953    conftest$ac_exeext conftest.$ac_ext
6954	LDFLAGS="$save_LDFLAGS"
6955
6956fi
6957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6958$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6959
6960    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6961$as_echo_n "checking for -force_load linker flag... " >&6; }
6962if ${lt_cv_ld_force_load+:} false; then :
6963  $as_echo_n "(cached) " >&6
6964else
6965  lt_cv_ld_force_load=no
6966      cat > conftest.c << _LT_EOF
6967int forced_loaded() { return 2;}
6968_LT_EOF
6969      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6970      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6971      echo "$AR cru libconftest.a conftest.o" >&5
6972      $AR cru libconftest.a conftest.o 2>&5
6973      echo "$RANLIB libconftest.a" >&5
6974      $RANLIB libconftest.a 2>&5
6975      cat > conftest.c << _LT_EOF
6976int main() { return 0;}
6977_LT_EOF
6978      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6979      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6980      _lt_result=$?
6981      if test -s conftest.err && $GREP force_load conftest.err; then
6982	cat conftest.err >&5
6983      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
6984	lt_cv_ld_force_load=yes
6985      else
6986	cat conftest.err >&5
6987      fi
6988        rm -f conftest.err libconftest.a conftest conftest.c
6989        rm -rf conftest.dSYM
6990
6991fi
6992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6993$as_echo "$lt_cv_ld_force_load" >&6; }
6994    case $host_os in
6995    rhapsody* | darwin1.[012])
6996      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6997    darwin1.*)
6998      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6999    darwin*) # darwin 5.x on
7000      # if running on 10.5 or later, the deployment target defaults
7001      # to the OS version, if on x86, and 10.4, the deployment
7002      # target defaults to 10.4. Don't you love it?
7003      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7004	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7005	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7006	10.[012]*)
7007	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7008	10.*)
7009	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7010      esac
7011    ;;
7012  esac
7013    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7014      _lt_dar_single_mod='$single_module'
7015    fi
7016    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7017      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7018    else
7019      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7020    fi
7021    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7022      _lt_dsymutil='~$DSYMUTIL $lib || :'
7023    else
7024      _lt_dsymutil=
7025    fi
7026    ;;
7027  esac
7028
7029ac_ext=c
7030ac_cpp='$CPP $CPPFLAGS'
7031ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7032ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7033ac_compiler_gnu=$ac_cv_c_compiler_gnu
7034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7035$as_echo_n "checking how to run the C preprocessor... " >&6; }
7036# On Suns, sometimes $CPP names a directory.
7037if test -n "$CPP" && test -d "$CPP"; then
7038  CPP=
7039fi
7040if test -z "$CPP"; then
7041  if ${ac_cv_prog_CPP+:} false; then :
7042  $as_echo_n "(cached) " >&6
7043else
7044      # Double quotes because CPP needs to be expanded
7045    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7046    do
7047      ac_preproc_ok=false
7048for ac_c_preproc_warn_flag in '' yes
7049do
7050  # Use a header file that comes with gcc, so configuring glibc
7051  # with a fresh cross-compiler works.
7052  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7053  # <limits.h> exists even on freestanding compilers.
7054  # On the NeXT, cc -E runs the code through the compiler's parser,
7055  # not just through cpp. "Syntax error" is here to catch this case.
7056  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7057/* end confdefs.h.  */
7058#ifdef __STDC__
7059# include <limits.h>
7060#else
7061# include <assert.h>
7062#endif
7063		     Syntax error
7064_ACEOF
7065if ac_fn_c_try_cpp "$LINENO"; then :
7066
7067else
7068  # Broken: fails on valid input.
7069continue
7070fi
7071rm -f conftest.err conftest.i conftest.$ac_ext
7072
7073  # OK, works on sane cases.  Now check whether nonexistent headers
7074  # can be detected and how.
7075  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7076/* end confdefs.h.  */
7077#include <ac_nonexistent.h>
7078_ACEOF
7079if ac_fn_c_try_cpp "$LINENO"; then :
7080  # Broken: success on invalid input.
7081continue
7082else
7083  # Passes both tests.
7084ac_preproc_ok=:
7085break
7086fi
7087rm -f conftest.err conftest.i conftest.$ac_ext
7088
7089done
7090# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7091rm -f conftest.i conftest.err conftest.$ac_ext
7092if $ac_preproc_ok; then :
7093  break
7094fi
7095
7096    done
7097    ac_cv_prog_CPP=$CPP
7098
7099fi
7100  CPP=$ac_cv_prog_CPP
7101else
7102  ac_cv_prog_CPP=$CPP
7103fi
7104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7105$as_echo "$CPP" >&6; }
7106ac_preproc_ok=false
7107for ac_c_preproc_warn_flag in '' yes
7108do
7109  # Use a header file that comes with gcc, so configuring glibc
7110  # with a fresh cross-compiler works.
7111  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7112  # <limits.h> exists even on freestanding compilers.
7113  # On the NeXT, cc -E runs the code through the compiler's parser,
7114  # not just through cpp. "Syntax error" is here to catch this case.
7115  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7116/* end confdefs.h.  */
7117#ifdef __STDC__
7118# include <limits.h>
7119#else
7120# include <assert.h>
7121#endif
7122		     Syntax error
7123_ACEOF
7124if ac_fn_c_try_cpp "$LINENO"; then :
7125
7126else
7127  # Broken: fails on valid input.
7128continue
7129fi
7130rm -f conftest.err conftest.i conftest.$ac_ext
7131
7132  # OK, works on sane cases.  Now check whether nonexistent headers
7133  # can be detected and how.
7134  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7135/* end confdefs.h.  */
7136#include <ac_nonexistent.h>
7137_ACEOF
7138if ac_fn_c_try_cpp "$LINENO"; then :
7139  # Broken: success on invalid input.
7140continue
7141else
7142  # Passes both tests.
7143ac_preproc_ok=:
7144break
7145fi
7146rm -f conftest.err conftest.i conftest.$ac_ext
7147
7148done
7149# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7150rm -f conftest.i conftest.err conftest.$ac_ext
7151if $ac_preproc_ok; then :
7152
7153else
7154  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7155$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7156as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7157See \`config.log' for more details" "$LINENO" 5; }
7158fi
7159
7160ac_ext=c
7161ac_cpp='$CPP $CPPFLAGS'
7162ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7163ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7164ac_compiler_gnu=$ac_cv_c_compiler_gnu
7165
7166
7167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7168$as_echo_n "checking for ANSI C header files... " >&6; }
7169if ${ac_cv_header_stdc+:} false; then :
7170  $as_echo_n "(cached) " >&6
7171else
7172  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7173/* end confdefs.h.  */
7174#include <stdlib.h>
7175#include <stdarg.h>
7176#include <string.h>
7177#include <float.h>
7178
7179int
7180main ()
7181{
7182
7183  ;
7184  return 0;
7185}
7186_ACEOF
7187if ac_fn_c_try_compile "$LINENO"; then :
7188  ac_cv_header_stdc=yes
7189else
7190  ac_cv_header_stdc=no
7191fi
7192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7193
7194if test $ac_cv_header_stdc = yes; then
7195  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7196  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7197/* end confdefs.h.  */
7198#include <string.h>
7199
7200_ACEOF
7201if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7202  $EGREP "memchr" >/dev/null 2>&1; then :
7203
7204else
7205  ac_cv_header_stdc=no
7206fi
7207rm -f conftest*
7208
7209fi
7210
7211if test $ac_cv_header_stdc = yes; then
7212  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7213  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7214/* end confdefs.h.  */
7215#include <stdlib.h>
7216
7217_ACEOF
7218if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7219  $EGREP "free" >/dev/null 2>&1; then :
7220
7221else
7222  ac_cv_header_stdc=no
7223fi
7224rm -f conftest*
7225
7226fi
7227
7228if test $ac_cv_header_stdc = yes; then
7229  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7230  if test "$cross_compiling" = yes; then :
7231  :
7232else
7233  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7234/* end confdefs.h.  */
7235#include <ctype.h>
7236#include <stdlib.h>
7237#if ((' ' & 0x0FF) == 0x020)
7238# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7239# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7240#else
7241# define ISLOWER(c) \
7242		   (('a' <= (c) && (c) <= 'i') \
7243		     || ('j' <= (c) && (c) <= 'r') \
7244		     || ('s' <= (c) && (c) <= 'z'))
7245# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7246#endif
7247
7248#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7249int
7250main ()
7251{
7252  int i;
7253  for (i = 0; i < 256; i++)
7254    if (XOR (islower (i), ISLOWER (i))
7255	|| toupper (i) != TOUPPER (i))
7256      return 2;
7257  return 0;
7258}
7259_ACEOF
7260if ac_fn_c_try_run "$LINENO"; then :
7261
7262else
7263  ac_cv_header_stdc=no
7264fi
7265rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7266  conftest.$ac_objext conftest.beam conftest.$ac_ext
7267fi
7268
7269fi
7270fi
7271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7272$as_echo "$ac_cv_header_stdc" >&6; }
7273if test $ac_cv_header_stdc = yes; then
7274
7275$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7276
7277fi
7278
7279# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7280for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7281		  inttypes.h stdint.h unistd.h
7282do :
7283  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7284ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7285"
7286if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7287  cat >>confdefs.h <<_ACEOF
7288#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7289_ACEOF
7290
7291fi
7292
7293done
7294
7295
7296for ac_header in dlfcn.h
7297do :
7298  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7299"
7300if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7301  cat >>confdefs.h <<_ACEOF
7302#define HAVE_DLFCN_H 1
7303_ACEOF
7304
7305fi
7306
7307done
7308
7309
7310
7311
7312
7313# Set options
7314
7315
7316
7317        enable_dlopen=no
7318
7319
7320  enable_win32_dll=no
7321
7322
7323            # Check whether --enable-shared was given.
7324if test "${enable_shared+set}" = set; then :
7325  enableval=$enable_shared; p=${PACKAGE-default}
7326    case $enableval in
7327    yes) enable_shared=yes ;;
7328    no) enable_shared=no ;;
7329    *)
7330      enable_shared=no
7331      # Look at the argument we got.  We use all the common list separators.
7332      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7333      for pkg in $enableval; do
7334	IFS="$lt_save_ifs"
7335	if test "X$pkg" = "X$p"; then
7336	  enable_shared=yes
7337	fi
7338      done
7339      IFS="$lt_save_ifs"
7340      ;;
7341    esac
7342else
7343  enable_shared=yes
7344fi
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354  # Check whether --enable-static was given.
7355if test "${enable_static+set}" = set; then :
7356  enableval=$enable_static; p=${PACKAGE-default}
7357    case $enableval in
7358    yes) enable_static=yes ;;
7359    no) enable_static=no ;;
7360    *)
7361     enable_static=no
7362      # Look at the argument we got.  We use all the common list separators.
7363      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7364      for pkg in $enableval; do
7365	IFS="$lt_save_ifs"
7366	if test "X$pkg" = "X$p"; then
7367	  enable_static=yes
7368	fi
7369      done
7370      IFS="$lt_save_ifs"
7371      ;;
7372    esac
7373else
7374  enable_static=yes
7375fi
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386# Check whether --with-pic was given.
7387if test "${with_pic+set}" = set; then :
7388  withval=$with_pic; lt_p=${PACKAGE-default}
7389    case $withval in
7390    yes|no) pic_mode=$withval ;;
7391    *)
7392      pic_mode=default
7393      # Look at the argument we got.  We use all the common list separators.
7394      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7395      for lt_pkg in $withval; do
7396	IFS="$lt_save_ifs"
7397	if test "X$lt_pkg" = "X$lt_p"; then
7398	  pic_mode=yes
7399	fi
7400      done
7401      IFS="$lt_save_ifs"
7402      ;;
7403    esac
7404else
7405  pic_mode=default
7406fi
7407
7408
7409test -z "$pic_mode" && pic_mode=default
7410
7411
7412
7413
7414
7415
7416
7417  # Check whether --enable-fast-install was given.
7418if test "${enable_fast_install+set}" = set; then :
7419  enableval=$enable_fast_install; p=${PACKAGE-default}
7420    case $enableval in
7421    yes) enable_fast_install=yes ;;
7422    no) enable_fast_install=no ;;
7423    *)
7424      enable_fast_install=no
7425      # Look at the argument we got.  We use all the common list separators.
7426      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7427      for pkg in $enableval; do
7428	IFS="$lt_save_ifs"
7429	if test "X$pkg" = "X$p"; then
7430	  enable_fast_install=yes
7431	fi
7432      done
7433      IFS="$lt_save_ifs"
7434      ;;
7435    esac
7436else
7437  enable_fast_install=yes
7438fi
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450# This can be used to rebuild libtool when needed
7451LIBTOOL_DEPS="$ltmain"
7452
7453# Always use our own libtool.
7454LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485test -z "$LN_S" && LN_S="ln -s"
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500if test -n "${ZSH_VERSION+set}" ; then
7501   setopt NO_GLOB_SUBST
7502fi
7503
7504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7505$as_echo_n "checking for objdir... " >&6; }
7506if ${lt_cv_objdir+:} false; then :
7507  $as_echo_n "(cached) " >&6
7508else
7509  rm -f .libs 2>/dev/null
7510mkdir .libs 2>/dev/null
7511if test -d .libs; then
7512  lt_cv_objdir=.libs
7513else
7514  # MS-DOS does not allow filenames that begin with a dot.
7515  lt_cv_objdir=_libs
7516fi
7517rmdir .libs 2>/dev/null
7518fi
7519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7520$as_echo "$lt_cv_objdir" >&6; }
7521objdir=$lt_cv_objdir
7522
7523
7524
7525
7526
7527cat >>confdefs.h <<_ACEOF
7528#define LT_OBJDIR "$lt_cv_objdir/"
7529_ACEOF
7530
7531
7532
7533
7534case $host_os in
7535aix3*)
7536  # AIX sometimes has problems with the GCC collect2 program.  For some
7537  # reason, if we set the COLLECT_NAMES environment variable, the problems
7538  # vanish in a puff of smoke.
7539  if test "X${COLLECT_NAMES+set}" != Xset; then
7540    COLLECT_NAMES=
7541    export COLLECT_NAMES
7542  fi
7543  ;;
7544esac
7545
7546# Global variables:
7547ofile=libtool
7548can_build_shared=yes
7549
7550# All known linkers require a `.a' archive for static linking (except MSVC,
7551# which needs '.lib').
7552libext=a
7553
7554with_gnu_ld="$lt_cv_prog_gnu_ld"
7555
7556old_CC="$CC"
7557old_CFLAGS="$CFLAGS"
7558
7559# Set sane defaults for various variables
7560test -z "$CC" && CC=cc
7561test -z "$LTCC" && LTCC=$CC
7562test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7563test -z "$LD" && LD=ld
7564test -z "$ac_objext" && ac_objext=o
7565
7566for cc_temp in $compiler""; do
7567  case $cc_temp in
7568    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7569    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7570    \-*) ;;
7571    *) break;;
7572  esac
7573done
7574cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7575
7576
7577# Only perform the check for file, if the check method requires it
7578test -z "$MAGIC_CMD" && MAGIC_CMD=file
7579case $deplibs_check_method in
7580file_magic*)
7581  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7582    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7583$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7584if ${lt_cv_path_MAGIC_CMD+:} false; then :
7585  $as_echo_n "(cached) " >&6
7586else
7587  case $MAGIC_CMD in
7588[\\/*] |  ?:[\\/]*)
7589  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7590  ;;
7591*)
7592  lt_save_MAGIC_CMD="$MAGIC_CMD"
7593  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7594  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7595  for ac_dir in $ac_dummy; do
7596    IFS="$lt_save_ifs"
7597    test -z "$ac_dir" && ac_dir=.
7598    if test -f $ac_dir/${ac_tool_prefix}file; then
7599      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7600      if test -n "$file_magic_test_file"; then
7601	case $deplibs_check_method in
7602	"file_magic "*)
7603	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7604	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7605	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7606	    $EGREP "$file_magic_regex" > /dev/null; then
7607	    :
7608	  else
7609	    cat <<_LT_EOF 1>&2
7610
7611*** Warning: the command libtool uses to detect shared libraries,
7612*** $file_magic_cmd, produces output that libtool cannot recognize.
7613*** The result is that libtool may fail to recognize shared libraries
7614*** as such.  This will affect the creation of libtool libraries that
7615*** depend on shared libraries, but programs linked with such libtool
7616*** libraries will work regardless of this problem.  Nevertheless, you
7617*** may want to report the problem to your system manager and/or to
7618*** bug-libtool@gnu.org
7619
7620_LT_EOF
7621	  fi ;;
7622	esac
7623      fi
7624      break
7625    fi
7626  done
7627  IFS="$lt_save_ifs"
7628  MAGIC_CMD="$lt_save_MAGIC_CMD"
7629  ;;
7630esac
7631fi
7632
7633MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7634if test -n "$MAGIC_CMD"; then
7635  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7636$as_echo "$MAGIC_CMD" >&6; }
7637else
7638  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7639$as_echo "no" >&6; }
7640fi
7641
7642
7643
7644
7645
7646if test -z "$lt_cv_path_MAGIC_CMD"; then
7647  if test -n "$ac_tool_prefix"; then
7648    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7649$as_echo_n "checking for file... " >&6; }
7650if ${lt_cv_path_MAGIC_CMD+:} false; then :
7651  $as_echo_n "(cached) " >&6
7652else
7653  case $MAGIC_CMD in
7654[\\/*] |  ?:[\\/]*)
7655  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7656  ;;
7657*)
7658  lt_save_MAGIC_CMD="$MAGIC_CMD"
7659  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7660  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7661  for ac_dir in $ac_dummy; do
7662    IFS="$lt_save_ifs"
7663    test -z "$ac_dir" && ac_dir=.
7664    if test -f $ac_dir/file; then
7665      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7666      if test -n "$file_magic_test_file"; then
7667	case $deplibs_check_method in
7668	"file_magic "*)
7669	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7670	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7671	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7672	    $EGREP "$file_magic_regex" > /dev/null; then
7673	    :
7674	  else
7675	    cat <<_LT_EOF 1>&2
7676
7677*** Warning: the command libtool uses to detect shared libraries,
7678*** $file_magic_cmd, produces output that libtool cannot recognize.
7679*** The result is that libtool may fail to recognize shared libraries
7680*** as such.  This will affect the creation of libtool libraries that
7681*** depend on shared libraries, but programs linked with such libtool
7682*** libraries will work regardless of this problem.  Nevertheless, you
7683*** may want to report the problem to your system manager and/or to
7684*** bug-libtool@gnu.org
7685
7686_LT_EOF
7687	  fi ;;
7688	esac
7689      fi
7690      break
7691    fi
7692  done
7693  IFS="$lt_save_ifs"
7694  MAGIC_CMD="$lt_save_MAGIC_CMD"
7695  ;;
7696esac
7697fi
7698
7699MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7700if test -n "$MAGIC_CMD"; then
7701  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7702$as_echo "$MAGIC_CMD" >&6; }
7703else
7704  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7705$as_echo "no" >&6; }
7706fi
7707
7708
7709  else
7710    MAGIC_CMD=:
7711  fi
7712fi
7713
7714  fi
7715  ;;
7716esac
7717
7718# Use C for the default configuration in the libtool script
7719
7720lt_save_CC="$CC"
7721ac_ext=c
7722ac_cpp='$CPP $CPPFLAGS'
7723ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7724ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7725ac_compiler_gnu=$ac_cv_c_compiler_gnu
7726
7727
7728# Source file extension for C test sources.
7729ac_ext=c
7730
7731# Object file extension for compiled C test sources.
7732objext=o
7733objext=$objext
7734
7735# Code to be used in simple compile tests
7736lt_simple_compile_test_code="int some_variable = 0;"
7737
7738# Code to be used in simple link tests
7739lt_simple_link_test_code='int main(){return(0);}'
7740
7741
7742
7743
7744
7745
7746
7747# If no C compiler was specified, use CC.
7748LTCC=${LTCC-"$CC"}
7749
7750# If no C compiler flags were specified, use CFLAGS.
7751LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7752
7753# Allow CC to be a program name with arguments.
7754compiler=$CC
7755
7756# Save the default compiler, since it gets overwritten when the other
7757# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7758compiler_DEFAULT=$CC
7759
7760# save warnings/boilerplate of simple test code
7761ac_outfile=conftest.$ac_objext
7762echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7763eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7764_lt_compiler_boilerplate=`cat conftest.err`
7765$RM conftest*
7766
7767ac_outfile=conftest.$ac_objext
7768echo "$lt_simple_link_test_code" >conftest.$ac_ext
7769eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7770_lt_linker_boilerplate=`cat conftest.err`
7771$RM -r conftest*
7772
7773
7774## CAVEAT EMPTOR:
7775## There is no encapsulation within the following macros, do not change
7776## the running order or otherwise move them around unless you know exactly
7777## what you are doing...
7778if test -n "$compiler"; then
7779
7780lt_prog_compiler_no_builtin_flag=
7781
7782if test "$GCC" = yes; then
7783  case $cc_basename in
7784  nvcc*)
7785    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7786  *)
7787    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7788  esac
7789
7790  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7791$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7792if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7793  $as_echo_n "(cached) " >&6
7794else
7795  lt_cv_prog_compiler_rtti_exceptions=no
7796   ac_outfile=conftest.$ac_objext
7797   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7798   lt_compiler_flag="-fno-rtti -fno-exceptions"
7799   # Insert the option either (1) after the last *FLAGS variable, or
7800   # (2) before a word containing "conftest.", or (3) at the end.
7801   # Note that $ac_compile itself does not contain backslashes and begins
7802   # with a dollar sign (not a hyphen), so the echo should work correctly.
7803   # The option is referenced via a variable to avoid confusing sed.
7804   lt_compile=`echo "$ac_compile" | $SED \
7805   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7806   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7807   -e 's:$: $lt_compiler_flag:'`
7808   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7809   (eval "$lt_compile" 2>conftest.err)
7810   ac_status=$?
7811   cat conftest.err >&5
7812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7813   if (exit $ac_status) && test -s "$ac_outfile"; then
7814     # The compiler can only warn and ignore the option if not recognized
7815     # So say no if there are warnings other than the usual output.
7816     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7817     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7818     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7819       lt_cv_prog_compiler_rtti_exceptions=yes
7820     fi
7821   fi
7822   $RM conftest*
7823
7824fi
7825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7826$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7827
7828if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7829    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7830else
7831    :
7832fi
7833
7834fi
7835
7836
7837
7838
7839
7840
7841  lt_prog_compiler_wl=
7842lt_prog_compiler_pic=
7843lt_prog_compiler_static=
7844
7845
7846  if test "$GCC" = yes; then
7847    lt_prog_compiler_wl='-Wl,'
7848    lt_prog_compiler_static='-static'
7849
7850    case $host_os in
7851      aix*)
7852      # All AIX code is PIC.
7853      if test "$host_cpu" = ia64; then
7854	# AIX 5 now supports IA64 processor
7855	lt_prog_compiler_static='-Bstatic'
7856      fi
7857      ;;
7858
7859    amigaos*)
7860      case $host_cpu in
7861      powerpc)
7862            # see comment about AmigaOS4 .so support
7863            lt_prog_compiler_pic='-fPIC'
7864        ;;
7865      m68k)
7866            # FIXME: we need at least 68020 code to build shared libraries, but
7867            # adding the `-m68020' flag to GCC prevents building anything better,
7868            # like `-m68040'.
7869            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7870        ;;
7871      esac
7872      ;;
7873
7874    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7875      # PIC is the default for these OSes.
7876      ;;
7877
7878    mingw* | cygwin* | pw32* | os2* | cegcc*)
7879      # This hack is so that the source file can tell whether it is being
7880      # built for inclusion in a dll (and should export symbols for example).
7881      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7882      # (--disable-auto-import) libraries
7883      lt_prog_compiler_pic='-DDLL_EXPORT'
7884      ;;
7885
7886    darwin* | rhapsody*)
7887      # PIC is the default on this platform
7888      # Common symbols not allowed in MH_DYLIB files
7889      lt_prog_compiler_pic='-fno-common'
7890      ;;
7891
7892    haiku*)
7893      # PIC is the default for Haiku.
7894      # The "-static" flag exists, but is broken.
7895      lt_prog_compiler_static=
7896      ;;
7897
7898    hpux*)
7899      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7900      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7901      # sets the default TLS model and affects inlining.
7902      case $host_cpu in
7903      hppa*64*)
7904	# +Z the default
7905	;;
7906      *)
7907	lt_prog_compiler_pic='-fPIC'
7908	;;
7909      esac
7910      ;;
7911
7912    interix[3-9]*)
7913      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7914      # Instead, we relocate shared libraries at runtime.
7915      ;;
7916
7917    msdosdjgpp*)
7918      # Just because we use GCC doesn't mean we suddenly get shared libraries
7919      # on systems that don't support them.
7920      lt_prog_compiler_can_build_shared=no
7921      enable_shared=no
7922      ;;
7923
7924    *nto* | *qnx*)
7925      # QNX uses GNU C++, but need to define -shared option too, otherwise
7926      # it will coredump.
7927      lt_prog_compiler_pic='-fPIC -shared'
7928      ;;
7929
7930    sysv4*MP*)
7931      if test -d /usr/nec; then
7932	lt_prog_compiler_pic=-Kconform_pic
7933      fi
7934      ;;
7935
7936    *)
7937      lt_prog_compiler_pic='-fPIC'
7938      ;;
7939    esac
7940
7941    case $cc_basename in
7942    nvcc*) # Cuda Compiler Driver 2.2
7943      lt_prog_compiler_wl='-Xlinker '
7944      if test -n "$lt_prog_compiler_pic"; then
7945        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
7946      fi
7947      ;;
7948    esac
7949  else
7950    # PORTME Check for flag to pass linker flags through the system compiler.
7951    case $host_os in
7952    aix*)
7953      lt_prog_compiler_wl='-Wl,'
7954      if test "$host_cpu" = ia64; then
7955	# AIX 5 now supports IA64 processor
7956	lt_prog_compiler_static='-Bstatic'
7957      else
7958	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7959      fi
7960      ;;
7961
7962    mingw* | cygwin* | pw32* | os2* | cegcc*)
7963      # This hack is so that the source file can tell whether it is being
7964      # built for inclusion in a dll (and should export symbols for example).
7965      lt_prog_compiler_pic='-DDLL_EXPORT'
7966      ;;
7967
7968    hpux9* | hpux10* | hpux11*)
7969      lt_prog_compiler_wl='-Wl,'
7970      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7971      # not for PA HP-UX.
7972      case $host_cpu in
7973      hppa*64*|ia64*)
7974	# +Z the default
7975	;;
7976      *)
7977	lt_prog_compiler_pic='+Z'
7978	;;
7979      esac
7980      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7981      lt_prog_compiler_static='${wl}-a ${wl}archive'
7982      ;;
7983
7984    irix5* | irix6* | nonstopux*)
7985      lt_prog_compiler_wl='-Wl,'
7986      # PIC (with -KPIC) is the default.
7987      lt_prog_compiler_static='-non_shared'
7988      ;;
7989
7990    linux* | k*bsd*-gnu | kopensolaris*-gnu)
7991      case $cc_basename in
7992      # old Intel for x86_64 which still supported -KPIC.
7993      ecc*)
7994	lt_prog_compiler_wl='-Wl,'
7995	lt_prog_compiler_pic='-KPIC'
7996	lt_prog_compiler_static='-static'
7997        ;;
7998      # icc used to be incompatible with GCC.
7999      # ICC 10 doesn't accept -KPIC any more.
8000      icc* | ifort*)
8001	lt_prog_compiler_wl='-Wl,'
8002	lt_prog_compiler_pic='-fPIC'
8003	lt_prog_compiler_static='-static'
8004        ;;
8005      # Lahey Fortran 8.1.
8006      lf95*)
8007	lt_prog_compiler_wl='-Wl,'
8008	lt_prog_compiler_pic='--shared'
8009	lt_prog_compiler_static='--static'
8010	;;
8011      nagfor*)
8012	# NAG Fortran compiler
8013	lt_prog_compiler_wl='-Wl,-Wl,,'
8014	lt_prog_compiler_pic='-PIC'
8015	lt_prog_compiler_static='-Bstatic'
8016	;;
8017      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8018        # Portland Group compilers (*not* the Pentium gcc compiler,
8019	# which looks to be a dead project)
8020	lt_prog_compiler_wl='-Wl,'
8021	lt_prog_compiler_pic='-fpic'
8022	lt_prog_compiler_static='-Bstatic'
8023        ;;
8024      ccc*)
8025        lt_prog_compiler_wl='-Wl,'
8026        # All Alpha code is PIC.
8027        lt_prog_compiler_static='-non_shared'
8028        ;;
8029      xl* | bgxl* | bgf* | mpixl*)
8030	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8031	lt_prog_compiler_wl='-Wl,'
8032	lt_prog_compiler_pic='-qpic'
8033	lt_prog_compiler_static='-qstaticlink'
8034	;;
8035      *)
8036	case `$CC -V 2>&1 | sed 5q` in
8037	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8038	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8039	  lt_prog_compiler_pic='-KPIC'
8040	  lt_prog_compiler_static='-Bstatic'
8041	  lt_prog_compiler_wl=''
8042	  ;;
8043	*Sun\ F* | *Sun*Fortran*)
8044	  lt_prog_compiler_pic='-KPIC'
8045	  lt_prog_compiler_static='-Bstatic'
8046	  lt_prog_compiler_wl='-Qoption ld '
8047	  ;;
8048	*Sun\ C*)
8049	  # Sun C 5.9
8050	  lt_prog_compiler_pic='-KPIC'
8051	  lt_prog_compiler_static='-Bstatic'
8052	  lt_prog_compiler_wl='-Wl,'
8053	  ;;
8054        *Intel*\ [CF]*Compiler*)
8055	  lt_prog_compiler_wl='-Wl,'
8056	  lt_prog_compiler_pic='-fPIC'
8057	  lt_prog_compiler_static='-static'
8058	  ;;
8059	*Portland\ Group*)
8060	  lt_prog_compiler_wl='-Wl,'
8061	  lt_prog_compiler_pic='-fpic'
8062	  lt_prog_compiler_static='-Bstatic'
8063	  ;;
8064	esac
8065	;;
8066      esac
8067      ;;
8068
8069    newsos6)
8070      lt_prog_compiler_pic='-KPIC'
8071      lt_prog_compiler_static='-Bstatic'
8072      ;;
8073
8074    *nto* | *qnx*)
8075      # QNX uses GNU C++, but need to define -shared option too, otherwise
8076      # it will coredump.
8077      lt_prog_compiler_pic='-fPIC -shared'
8078      ;;
8079
8080    osf3* | osf4* | osf5*)
8081      lt_prog_compiler_wl='-Wl,'
8082      # All OSF/1 code is PIC.
8083      lt_prog_compiler_static='-non_shared'
8084      ;;
8085
8086    rdos*)
8087      lt_prog_compiler_static='-non_shared'
8088      ;;
8089
8090    solaris*)
8091      lt_prog_compiler_pic='-KPIC'
8092      lt_prog_compiler_static='-Bstatic'
8093      case $cc_basename in
8094      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8095	lt_prog_compiler_wl='-Qoption ld ';;
8096      *)
8097	lt_prog_compiler_wl='-Wl,';;
8098      esac
8099      ;;
8100
8101    sunos4*)
8102      lt_prog_compiler_wl='-Qoption ld '
8103      lt_prog_compiler_pic='-PIC'
8104      lt_prog_compiler_static='-Bstatic'
8105      ;;
8106
8107    sysv4 | sysv4.2uw2* | sysv4.3*)
8108      lt_prog_compiler_wl='-Wl,'
8109      lt_prog_compiler_pic='-KPIC'
8110      lt_prog_compiler_static='-Bstatic'
8111      ;;
8112
8113    sysv4*MP*)
8114      if test -d /usr/nec ;then
8115	lt_prog_compiler_pic='-Kconform_pic'
8116	lt_prog_compiler_static='-Bstatic'
8117      fi
8118      ;;
8119
8120    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8121      lt_prog_compiler_wl='-Wl,'
8122      lt_prog_compiler_pic='-KPIC'
8123      lt_prog_compiler_static='-Bstatic'
8124      ;;
8125
8126    unicos*)
8127      lt_prog_compiler_wl='-Wl,'
8128      lt_prog_compiler_can_build_shared=no
8129      ;;
8130
8131    uts4*)
8132      lt_prog_compiler_pic='-pic'
8133      lt_prog_compiler_static='-Bstatic'
8134      ;;
8135
8136    *)
8137      lt_prog_compiler_can_build_shared=no
8138      ;;
8139    esac
8140  fi
8141
8142case $host_os in
8143  # For platforms which do not support PIC, -DPIC is meaningless:
8144  *djgpp*)
8145    lt_prog_compiler_pic=
8146    ;;
8147  *)
8148    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8149    ;;
8150esac
8151
8152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8153$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8154if ${lt_cv_prog_compiler_pic+:} false; then :
8155  $as_echo_n "(cached) " >&6
8156else
8157  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8158fi
8159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8160$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8161lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8162
8163#
8164# Check to make sure the PIC flag actually works.
8165#
8166if test -n "$lt_prog_compiler_pic"; then
8167  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8168$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8169if ${lt_cv_prog_compiler_pic_works+:} false; then :
8170  $as_echo_n "(cached) " >&6
8171else
8172  lt_cv_prog_compiler_pic_works=no
8173   ac_outfile=conftest.$ac_objext
8174   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8175   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8176   # Insert the option either (1) after the last *FLAGS variable, or
8177   # (2) before a word containing "conftest.", or (3) at the end.
8178   # Note that $ac_compile itself does not contain backslashes and begins
8179   # with a dollar sign (not a hyphen), so the echo should work correctly.
8180   # The option is referenced via a variable to avoid confusing sed.
8181   lt_compile=`echo "$ac_compile" | $SED \
8182   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8183   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8184   -e 's:$: $lt_compiler_flag:'`
8185   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8186   (eval "$lt_compile" 2>conftest.err)
8187   ac_status=$?
8188   cat conftest.err >&5
8189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8190   if (exit $ac_status) && test -s "$ac_outfile"; then
8191     # The compiler can only warn and ignore the option if not recognized
8192     # So say no if there are warnings other than the usual output.
8193     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8194     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8195     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8196       lt_cv_prog_compiler_pic_works=yes
8197     fi
8198   fi
8199   $RM conftest*
8200
8201fi
8202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8203$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8204
8205if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8206    case $lt_prog_compiler_pic in
8207     "" | " "*) ;;
8208     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8209     esac
8210else
8211    lt_prog_compiler_pic=
8212     lt_prog_compiler_can_build_shared=no
8213fi
8214
8215fi
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227#
8228# Check to make sure the static flag actually works.
8229#
8230wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8232$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8233if ${lt_cv_prog_compiler_static_works+:} false; then :
8234  $as_echo_n "(cached) " >&6
8235else
8236  lt_cv_prog_compiler_static_works=no
8237   save_LDFLAGS="$LDFLAGS"
8238   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8239   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8240   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8241     # The linker can only warn and ignore the option if not recognized
8242     # So say no if there are warnings
8243     if test -s conftest.err; then
8244       # Append any errors to the config.log.
8245       cat conftest.err 1>&5
8246       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8247       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8248       if diff conftest.exp conftest.er2 >/dev/null; then
8249         lt_cv_prog_compiler_static_works=yes
8250       fi
8251     else
8252       lt_cv_prog_compiler_static_works=yes
8253     fi
8254   fi
8255   $RM -r conftest*
8256   LDFLAGS="$save_LDFLAGS"
8257
8258fi
8259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8260$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8261
8262if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8263    :
8264else
8265    lt_prog_compiler_static=
8266fi
8267
8268
8269
8270
8271
8272
8273
8274  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8275$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8276if ${lt_cv_prog_compiler_c_o+:} false; then :
8277  $as_echo_n "(cached) " >&6
8278else
8279  lt_cv_prog_compiler_c_o=no
8280   $RM -r conftest 2>/dev/null
8281   mkdir conftest
8282   cd conftest
8283   mkdir out
8284   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8285
8286   lt_compiler_flag="-o out/conftest2.$ac_objext"
8287   # Insert the option either (1) after the last *FLAGS variable, or
8288   # (2) before a word containing "conftest.", or (3) at the end.
8289   # Note that $ac_compile itself does not contain backslashes and begins
8290   # with a dollar sign (not a hyphen), so the echo should work correctly.
8291   lt_compile=`echo "$ac_compile" | $SED \
8292   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8293   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8294   -e 's:$: $lt_compiler_flag:'`
8295   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8296   (eval "$lt_compile" 2>out/conftest.err)
8297   ac_status=$?
8298   cat out/conftest.err >&5
8299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8300   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8301   then
8302     # The compiler can only warn and ignore the option if not recognized
8303     # So say no if there are warnings
8304     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8305     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8306     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8307       lt_cv_prog_compiler_c_o=yes
8308     fi
8309   fi
8310   chmod u+w . 2>&5
8311   $RM conftest*
8312   # SGI C++ compiler will create directory out/ii_files/ for
8313   # template instantiation
8314   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8315   $RM out/* && rmdir out
8316   cd ..
8317   $RM -r conftest
8318   $RM conftest*
8319
8320fi
8321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8322$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8323
8324
8325
8326
8327
8328
8329  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8330$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8331if ${lt_cv_prog_compiler_c_o+:} false; then :
8332  $as_echo_n "(cached) " >&6
8333else
8334  lt_cv_prog_compiler_c_o=no
8335   $RM -r conftest 2>/dev/null
8336   mkdir conftest
8337   cd conftest
8338   mkdir out
8339   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8340
8341   lt_compiler_flag="-o out/conftest2.$ac_objext"
8342   # Insert the option either (1) after the last *FLAGS variable, or
8343   # (2) before a word containing "conftest.", or (3) at the end.
8344   # Note that $ac_compile itself does not contain backslashes and begins
8345   # with a dollar sign (not a hyphen), so the echo should work correctly.
8346   lt_compile=`echo "$ac_compile" | $SED \
8347   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8348   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8349   -e 's:$: $lt_compiler_flag:'`
8350   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8351   (eval "$lt_compile" 2>out/conftest.err)
8352   ac_status=$?
8353   cat out/conftest.err >&5
8354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8355   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8356   then
8357     # The compiler can only warn and ignore the option if not recognized
8358     # So say no if there are warnings
8359     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8360     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8361     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8362       lt_cv_prog_compiler_c_o=yes
8363     fi
8364   fi
8365   chmod u+w . 2>&5
8366   $RM conftest*
8367   # SGI C++ compiler will create directory out/ii_files/ for
8368   # template instantiation
8369   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8370   $RM out/* && rmdir out
8371   cd ..
8372   $RM -r conftest
8373   $RM conftest*
8374
8375fi
8376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8377$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8378
8379
8380
8381
8382hard_links="nottested"
8383if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8384  # do not overwrite the value of need_locks provided by the user
8385  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8386$as_echo_n "checking if we can lock with hard links... " >&6; }
8387  hard_links=yes
8388  $RM conftest*
8389  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8390  touch conftest.a
8391  ln conftest.a conftest.b 2>&5 || hard_links=no
8392  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8393  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8394$as_echo "$hard_links" >&6; }
8395  if test "$hard_links" = no; then
8396    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8397$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8398    need_locks=warn
8399  fi
8400else
8401  need_locks=no
8402fi
8403
8404
8405
8406
8407
8408
8409  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8410$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8411
8412  runpath_var=
8413  allow_undefined_flag=
8414  always_export_symbols=no
8415  archive_cmds=
8416  archive_expsym_cmds=
8417  compiler_needs_object=no
8418  enable_shared_with_static_runtimes=no
8419  export_dynamic_flag_spec=
8420  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8421  hardcode_automatic=no
8422  hardcode_direct=no
8423  hardcode_direct_absolute=no
8424  hardcode_libdir_flag_spec=
8425  hardcode_libdir_separator=
8426  hardcode_minus_L=no
8427  hardcode_shlibpath_var=unsupported
8428  inherit_rpath=no
8429  link_all_deplibs=unknown
8430  module_cmds=
8431  module_expsym_cmds=
8432  old_archive_from_new_cmds=
8433  old_archive_from_expsyms_cmds=
8434  thread_safe_flag_spec=
8435  whole_archive_flag_spec=
8436  # include_expsyms should be a list of space-separated symbols to be *always*
8437  # included in the symbol list
8438  include_expsyms=
8439  # exclude_expsyms can be an extended regexp of symbols to exclude
8440  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8441  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8442  # as well as any symbol that contains `d'.
8443  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8444  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8445  # platforms (ab)use it in PIC code, but their linkers get confused if
8446  # the symbol is explicitly referenced.  Since portable code cannot
8447  # rely on this symbol name, it's probably fine to never include it in
8448  # preloaded symbol tables.
8449  # Exclude shared library initialization/finalization symbols.
8450  extract_expsyms_cmds=
8451
8452  case $host_os in
8453  cygwin* | mingw* | pw32* | cegcc*)
8454    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8455    # When not using gcc, we currently assume that we are using
8456    # Microsoft Visual C++.
8457    if test "$GCC" != yes; then
8458      with_gnu_ld=no
8459    fi
8460    ;;
8461  interix*)
8462    # we just hope/assume this is gcc and not c89 (= MSVC++)
8463    with_gnu_ld=yes
8464    ;;
8465  openbsd*)
8466    with_gnu_ld=no
8467    ;;
8468  esac
8469
8470  ld_shlibs=yes
8471
8472  # On some targets, GNU ld is compatible enough with the native linker
8473  # that we're better off using the native interface for both.
8474  lt_use_gnu_ld_interface=no
8475  if test "$with_gnu_ld" = yes; then
8476    case $host_os in
8477      aix*)
8478	# The AIX port of GNU ld has always aspired to compatibility
8479	# with the native linker.  However, as the warning in the GNU ld
8480	# block says, versions before 2.19.5* couldn't really create working
8481	# shared libraries, regardless of the interface used.
8482	case `$LD -v 2>&1` in
8483	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8484	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8485	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8486	  *)
8487	    lt_use_gnu_ld_interface=yes
8488	    ;;
8489	esac
8490	;;
8491      *)
8492	lt_use_gnu_ld_interface=yes
8493	;;
8494    esac
8495  fi
8496
8497  if test "$lt_use_gnu_ld_interface" = yes; then
8498    # If archive_cmds runs LD, not CC, wlarc should be empty
8499    wlarc='${wl}'
8500
8501    # Set some defaults for GNU ld with shared library support. These
8502    # are reset later if shared libraries are not supported. Putting them
8503    # here allows them to be overridden if necessary.
8504    runpath_var=LD_RUN_PATH
8505    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8506    export_dynamic_flag_spec='${wl}--export-dynamic'
8507    # ancient GNU ld didn't support --whole-archive et. al.
8508    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8509      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8510    else
8511      whole_archive_flag_spec=
8512    fi
8513    supports_anon_versioning=no
8514    case `$LD -v 2>&1` in
8515      *GNU\ gold*) supports_anon_versioning=yes ;;
8516      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8517      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8518      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8519      *\ 2.11.*) ;; # other 2.11 versions
8520      *) supports_anon_versioning=yes ;;
8521    esac
8522
8523    # See if GNU ld supports shared libraries.
8524    case $host_os in
8525    aix[3-9]*)
8526      # On AIX/PPC, the GNU linker is very broken
8527      if test "$host_cpu" != ia64; then
8528	ld_shlibs=no
8529	cat <<_LT_EOF 1>&2
8530
8531*** Warning: the GNU linker, at least up to release 2.19, is reported
8532*** to be unable to reliably create shared libraries on AIX.
8533*** Therefore, libtool is disabling shared libraries support.  If you
8534*** really care for shared libraries, you may want to install binutils
8535*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8536*** You will then need to restart the configuration process.
8537
8538_LT_EOF
8539      fi
8540      ;;
8541
8542    amigaos*)
8543      case $host_cpu in
8544      powerpc)
8545            # see comment about AmigaOS4 .so support
8546            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8547            archive_expsym_cmds=''
8548        ;;
8549      m68k)
8550            archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8551            hardcode_libdir_flag_spec='-L$libdir'
8552            hardcode_minus_L=yes
8553        ;;
8554      esac
8555      ;;
8556
8557    beos*)
8558      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8559	allow_undefined_flag=unsupported
8560	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8561	# support --undefined.  This deserves some investigation.  FIXME
8562	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8563      else
8564	ld_shlibs=no
8565      fi
8566      ;;
8567
8568    cygwin* | mingw* | pw32* | cegcc*)
8569      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8570      # as there is no search path for DLLs.
8571      hardcode_libdir_flag_spec='-L$libdir'
8572      export_dynamic_flag_spec='${wl}--export-all-symbols'
8573      allow_undefined_flag=unsupported
8574      always_export_symbols=no
8575      enable_shared_with_static_runtimes=yes
8576      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
8577      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8578
8579      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8580        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8581	# If the export-symbols file already is a .def file (1st line
8582	# is EXPORTS), use it as is; otherwise, prepend...
8583	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8584	  cp $export_symbols $output_objdir/$soname.def;
8585	else
8586	  echo EXPORTS > $output_objdir/$soname.def;
8587	  cat $export_symbols >> $output_objdir/$soname.def;
8588	fi~
8589	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8590      else
8591	ld_shlibs=no
8592      fi
8593      ;;
8594
8595    haiku*)
8596      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8597      link_all_deplibs=yes
8598      ;;
8599
8600    interix[3-9]*)
8601      hardcode_direct=no
8602      hardcode_shlibpath_var=no
8603      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8604      export_dynamic_flag_spec='${wl}-E'
8605      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8606      # Instead, shared libraries are loaded at an image base (0x10000000 by
8607      # default) and relocated if they conflict, which is a slow very memory
8608      # consuming and fragmenting process.  To avoid this, we pick a random,
8609      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8610      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8611      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8612      archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8613      ;;
8614
8615    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8616      tmp_diet=no
8617      if test "$host_os" = linux-dietlibc; then
8618	case $cc_basename in
8619	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8620	esac
8621      fi
8622      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8623	 && test "$tmp_diet" = no
8624      then
8625	tmp_addflag=' $pic_flag'
8626	tmp_sharedflag='-shared'
8627	case $cc_basename,$host_cpu in
8628        pgcc*)				# Portland Group C compiler
8629	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8630	  tmp_addflag=' $pic_flag'
8631	  ;;
8632	pgf77* | pgf90* | pgf95* | pgfortran*)
8633					# Portland Group f77 and f90 compilers
8634	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8635	  tmp_addflag=' $pic_flag -Mnomain' ;;
8636	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8637	  tmp_addflag=' -i_dynamic' ;;
8638	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8639	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8640	ifc* | ifort*)			# Intel Fortran compiler
8641	  tmp_addflag=' -nofor_main' ;;
8642	lf95*)				# Lahey Fortran 8.1
8643	  whole_archive_flag_spec=
8644	  tmp_sharedflag='--shared' ;;
8645	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8646	  tmp_sharedflag='-qmkshrobj'
8647	  tmp_addflag= ;;
8648	nvcc*)	# Cuda Compiler Driver 2.2
8649	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8650	  compiler_needs_object=yes
8651	  ;;
8652	esac
8653	case `$CC -V 2>&1 | sed 5q` in
8654	*Sun\ C*)			# Sun C 5.9
8655	  whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8656	  compiler_needs_object=yes
8657	  tmp_sharedflag='-G' ;;
8658	*Sun\ F*)			# Sun Fortran 8.3
8659	  tmp_sharedflag='-G' ;;
8660	esac
8661	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8662
8663        if test "x$supports_anon_versioning" = xyes; then
8664          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8665	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8666	    echo "local: *; };" >> $output_objdir/$libname.ver~
8667	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8668        fi
8669
8670	case $cc_basename in
8671	xlf* | bgf* | bgxlf* | mpixlf*)
8672	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8673	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8674	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8675	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8676	  if test "x$supports_anon_versioning" = xyes; then
8677	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8678	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8679	      echo "local: *; };" >> $output_objdir/$libname.ver~
8680	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8681	  fi
8682	  ;;
8683	esac
8684      else
8685        ld_shlibs=no
8686      fi
8687      ;;
8688
8689    netbsd*)
8690      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8691	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8692	wlarc=
8693      else
8694	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8695	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8696      fi
8697      ;;
8698
8699    solaris*)
8700      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8701	ld_shlibs=no
8702	cat <<_LT_EOF 1>&2
8703
8704*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8705*** create shared libraries on Solaris systems.  Therefore, libtool
8706*** is disabling shared libraries support.  We urge you to upgrade GNU
8707*** binutils to release 2.9.1 or newer.  Another option is to modify
8708*** your PATH or compiler configuration so that the native linker is
8709*** used, and then restart.
8710
8711_LT_EOF
8712      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8713	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8714	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8715      else
8716	ld_shlibs=no
8717      fi
8718      ;;
8719
8720    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8721      case `$LD -v 2>&1` in
8722        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8723	ld_shlibs=no
8724	cat <<_LT_EOF 1>&2
8725
8726*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8727*** reliably create shared libraries on SCO systems.  Therefore, libtool
8728*** is disabling shared libraries support.  We urge you to upgrade GNU
8729*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8730*** your PATH or compiler configuration so that the native linker is
8731*** used, and then restart.
8732
8733_LT_EOF
8734	;;
8735	*)
8736	  # For security reasons, it is highly recommended that you always
8737	  # use absolute paths for naming shared libraries, and exclude the
8738	  # DT_RUNPATH tag from executables and libraries.  But doing so
8739	  # requires that you compile everything twice, which is a pain.
8740	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8741	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8742	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8743	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8744	  else
8745	    ld_shlibs=no
8746	  fi
8747	;;
8748      esac
8749      ;;
8750
8751    sunos4*)
8752      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8753      wlarc=
8754      hardcode_direct=yes
8755      hardcode_shlibpath_var=no
8756      ;;
8757
8758    *)
8759      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8760	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8761	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8762      else
8763	ld_shlibs=no
8764      fi
8765      ;;
8766    esac
8767
8768    if test "$ld_shlibs" = no; then
8769      runpath_var=
8770      hardcode_libdir_flag_spec=
8771      export_dynamic_flag_spec=
8772      whole_archive_flag_spec=
8773    fi
8774  else
8775    # PORTME fill in a description of your system's linker (not GNU ld)
8776    case $host_os in
8777    aix3*)
8778      allow_undefined_flag=unsupported
8779      always_export_symbols=yes
8780      archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
8781      # Note: this linker hardcodes the directories in LIBPATH if there
8782      # are no directories specified by -L.
8783      hardcode_minus_L=yes
8784      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8785	# Neither direct hardcoding nor static linking is supported with a
8786	# broken collect2.
8787	hardcode_direct=unsupported
8788      fi
8789      ;;
8790
8791    aix[4-9]*)
8792      if test "$host_cpu" = ia64; then
8793	# On IA64, the linker does run time linking by default, so we don't
8794	# have to do anything special.
8795	aix_use_runtimelinking=no
8796	exp_sym_flag='-Bexport'
8797	no_entry_flag=""
8798      else
8799	# If we're using GNU nm, then we don't want the "-C" option.
8800	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8801	# Also, AIX nm treats weak defined symbols like other global
8802	# defined symbols, whereas GNU nm marks them as "W".
8803	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8804	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8805	else
8806	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8807	fi
8808	aix_use_runtimelinking=no
8809
8810	# Test if we are trying to use run time linking or normal
8811	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8812	# need to do runtime linking.
8813	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8814	  for ld_flag in $LDFLAGS; do
8815	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8816	    aix_use_runtimelinking=yes
8817	    break
8818	  fi
8819	  done
8820	  ;;
8821	esac
8822
8823	exp_sym_flag='-bexport'
8824	no_entry_flag='-bnoentry'
8825      fi
8826
8827      # When large executables or shared objects are built, AIX ld can
8828      # have problems creating the table of contents.  If linking a library
8829      # or program results in "error TOC overflow" add -mminimal-toc to
8830      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8831      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8832
8833      archive_cmds=''
8834      hardcode_direct=yes
8835      hardcode_direct_absolute=yes
8836      hardcode_libdir_separator=':'
8837      link_all_deplibs=yes
8838      file_list_spec='${wl}-f,'
8839
8840      if test "$GCC" = yes; then
8841	case $host_os in aix4.[012]|aix4.[012].*)
8842	# We only want to do this on AIX 4.2 and lower, the check
8843	# below for broken collect2 doesn't work under 4.3+
8844	  collect2name=`${CC} -print-prog-name=collect2`
8845	  if test -f "$collect2name" &&
8846	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8847	  then
8848	  # We have reworked collect2
8849	  :
8850	  else
8851	  # We have old collect2
8852	  hardcode_direct=unsupported
8853	  # It fails to find uninstalled libraries when the uninstalled
8854	  # path is not listed in the libpath.  Setting hardcode_minus_L
8855	  # to unsupported forces relinking
8856	  hardcode_minus_L=yes
8857	  hardcode_libdir_flag_spec='-L$libdir'
8858	  hardcode_libdir_separator=
8859	  fi
8860	  ;;
8861	esac
8862	shared_flag='-shared'
8863	if test "$aix_use_runtimelinking" = yes; then
8864	  shared_flag="$shared_flag "'${wl}-G'
8865	fi
8866      else
8867	# not using gcc
8868	if test "$host_cpu" = ia64; then
8869	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8870	# chokes on -Wl,-G. The following line is correct:
8871	  shared_flag='-G'
8872	else
8873	  if test "$aix_use_runtimelinking" = yes; then
8874	    shared_flag='${wl}-G'
8875	  else
8876	    shared_flag='${wl}-bM:SRE'
8877	  fi
8878	fi
8879      fi
8880
8881      export_dynamic_flag_spec='${wl}-bexpall'
8882      # It seems that -bexpall does not export symbols beginning with
8883      # underscore (_), so it is better to generate a list of symbols to export.
8884      always_export_symbols=yes
8885      if test "$aix_use_runtimelinking" = yes; then
8886	# Warning - without using the other runtime loading flags (-brtl),
8887	# -berok will link without error, but may produce a broken library.
8888	allow_undefined_flag='-berok'
8889        # Determine the default libpath from the value encoded in an
8890        # empty executable.
8891        if test "${lt_cv_aix_libpath+set}" = set; then
8892  aix_libpath=$lt_cv_aix_libpath
8893else
8894  if ${lt_cv_aix_libpath_+:} false; then :
8895  $as_echo_n "(cached) " >&6
8896else
8897  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8898/* end confdefs.h.  */
8899
8900int
8901main ()
8902{
8903
8904  ;
8905  return 0;
8906}
8907_ACEOF
8908if ac_fn_c_try_link "$LINENO"; then :
8909
8910  lt_aix_libpath_sed='
8911      /Import File Strings/,/^$/ {
8912	  /^0/ {
8913	      s/^0  *\([^ ]*\) *$/\1/
8914	      p
8915	  }
8916      }'
8917  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8918  # Check for a 64-bit object if we didn't find anything.
8919  if test -z "$lt_cv_aix_libpath_"; then
8920    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8921  fi
8922fi
8923rm -f core conftest.err conftest.$ac_objext \
8924    conftest$ac_exeext conftest.$ac_ext
8925  if test -z "$lt_cv_aix_libpath_"; then
8926    lt_cv_aix_libpath_="/usr/lib:/lib"
8927  fi
8928
8929fi
8930
8931  aix_libpath=$lt_cv_aix_libpath_
8932fi
8933
8934        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8935        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8936      else
8937	if test "$host_cpu" = ia64; then
8938	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8939	  allow_undefined_flag="-z nodefs"
8940	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
8941	else
8942	 # Determine the default libpath from the value encoded in an
8943	 # empty executable.
8944	 if test "${lt_cv_aix_libpath+set}" = set; then
8945  aix_libpath=$lt_cv_aix_libpath
8946else
8947  if ${lt_cv_aix_libpath_+:} false; then :
8948  $as_echo_n "(cached) " >&6
8949else
8950  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8951/* end confdefs.h.  */
8952
8953int
8954main ()
8955{
8956
8957  ;
8958  return 0;
8959}
8960_ACEOF
8961if ac_fn_c_try_link "$LINENO"; then :
8962
8963  lt_aix_libpath_sed='
8964      /Import File Strings/,/^$/ {
8965	  /^0/ {
8966	      s/^0  *\([^ ]*\) *$/\1/
8967	      p
8968	  }
8969      }'
8970  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8971  # Check for a 64-bit object if we didn't find anything.
8972  if test -z "$lt_cv_aix_libpath_"; then
8973    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8974  fi
8975fi
8976rm -f core conftest.err conftest.$ac_objext \
8977    conftest$ac_exeext conftest.$ac_ext
8978  if test -z "$lt_cv_aix_libpath_"; then
8979    lt_cv_aix_libpath_="/usr/lib:/lib"
8980  fi
8981
8982fi
8983
8984  aix_libpath=$lt_cv_aix_libpath_
8985fi
8986
8987	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8988	  # Warning - without using the other run time loading flags,
8989	  # -berok will link without error, but may produce a broken library.
8990	  no_undefined_flag=' ${wl}-bernotok'
8991	  allow_undefined_flag=' ${wl}-berok'
8992	  if test "$with_gnu_ld" = yes; then
8993	    # We only use this code for GNU lds that support --whole-archive.
8994	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8995	  else
8996	    # Exported symbols can be pulled into shared objects from archives
8997	    whole_archive_flag_spec='$convenience'
8998	  fi
8999	  archive_cmds_need_lc=yes
9000	  # This is similar to how AIX traditionally builds its shared libraries.
9001	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9002	fi
9003      fi
9004      ;;
9005
9006    amigaos*)
9007      case $host_cpu in
9008      powerpc)
9009            # see comment about AmigaOS4 .so support
9010            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9011            archive_expsym_cmds=''
9012        ;;
9013      m68k)
9014            archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9015            hardcode_libdir_flag_spec='-L$libdir'
9016            hardcode_minus_L=yes
9017        ;;
9018      esac
9019      ;;
9020
9021    bsdi[45]*)
9022      export_dynamic_flag_spec=-rdynamic
9023      ;;
9024
9025    cygwin* | mingw* | pw32* | cegcc*)
9026      # When not using gcc, we currently assume that we are using
9027      # Microsoft Visual C++.
9028      # hardcode_libdir_flag_spec is actually meaningless, as there is
9029      # no search path for DLLs.
9030      case $cc_basename in
9031      cl*)
9032	# Native MSVC
9033	hardcode_libdir_flag_spec=' '
9034	allow_undefined_flag=unsupported
9035	always_export_symbols=yes
9036	file_list_spec='@'
9037	# Tell ltmain to make .lib files, not .a files.
9038	libext=lib
9039	# Tell ltmain to make .dll files, not .so files.
9040	shrext_cmds=".dll"
9041	# FIXME: Setting linknames here is a bad hack.
9042	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9043	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9044	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9045	  else
9046	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9047	  fi~
9048	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9049	  linknames='
9050	# The linker will not automatically build a static lib if we build a DLL.
9051	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9052	enable_shared_with_static_runtimes=yes
9053	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9054	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9055	# Don't use ranlib
9056	old_postinstall_cmds='chmod 644 $oldlib'
9057	postlink_cmds='lt_outputfile="@OUTPUT@"~
9058	  lt_tool_outputfile="@TOOL_OUTPUT@"~
9059	  case $lt_outputfile in
9060	    *.exe|*.EXE) ;;
9061	    *)
9062	      lt_outputfile="$lt_outputfile.exe"
9063	      lt_tool_outputfile="$lt_tool_outputfile.exe"
9064	      ;;
9065	  esac~
9066	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9067	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9068	    $RM "$lt_outputfile.manifest";
9069	  fi'
9070	;;
9071      *)
9072	# Assume MSVC wrapper
9073	hardcode_libdir_flag_spec=' '
9074	allow_undefined_flag=unsupported
9075	# Tell ltmain to make .lib files, not .a files.
9076	libext=lib
9077	# Tell ltmain to make .dll files, not .so files.
9078	shrext_cmds=".dll"
9079	# FIXME: Setting linknames here is a bad hack.
9080	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9081	# The linker will automatically build a .lib file if we build a DLL.
9082	old_archive_from_new_cmds='true'
9083	# FIXME: Should let the user specify the lib program.
9084	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9085	enable_shared_with_static_runtimes=yes
9086	;;
9087      esac
9088      ;;
9089
9090    darwin* | rhapsody*)
9091
9092
9093  archive_cmds_need_lc=no
9094  hardcode_direct=no
9095  hardcode_automatic=yes
9096  hardcode_shlibpath_var=unsupported
9097  if test "$lt_cv_ld_force_load" = "yes"; then
9098    whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9099
9100  else
9101    whole_archive_flag_spec=''
9102  fi
9103  link_all_deplibs=yes
9104  allow_undefined_flag="$_lt_dar_allow_undefined"
9105  case $cc_basename in
9106     ifort*) _lt_dar_can_shared=yes ;;
9107     *) _lt_dar_can_shared=$GCC ;;
9108  esac
9109  if test "$_lt_dar_can_shared" = "yes"; then
9110    output_verbose_link_cmd=func_echo_all
9111    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9112    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9113    archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9114    module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9115
9116  else
9117  ld_shlibs=no
9118  fi
9119
9120      ;;
9121
9122    dgux*)
9123      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9124      hardcode_libdir_flag_spec='-L$libdir'
9125      hardcode_shlibpath_var=no
9126      ;;
9127
9128    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9129    # support.  Future versions do this automatically, but an explicit c++rt0.o
9130    # does not break anything, and helps significantly (at the cost of a little
9131    # extra space).
9132    freebsd2.2*)
9133      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9134      hardcode_libdir_flag_spec='-R$libdir'
9135      hardcode_direct=yes
9136      hardcode_shlibpath_var=no
9137      ;;
9138
9139    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9140    freebsd2.*)
9141      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9142      hardcode_direct=yes
9143      hardcode_minus_L=yes
9144      hardcode_shlibpath_var=no
9145      ;;
9146
9147    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9148    freebsd* | dragonfly*)
9149      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9150      hardcode_libdir_flag_spec='-R$libdir'
9151      hardcode_direct=yes
9152      hardcode_shlibpath_var=no
9153      ;;
9154
9155    hpux9*)
9156      if test "$GCC" = yes; then
9157	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9158      else
9159	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9160      fi
9161      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9162      hardcode_libdir_separator=:
9163      hardcode_direct=yes
9164
9165      # hardcode_minus_L: Not really in the search PATH,
9166      # but as the default location of the library.
9167      hardcode_minus_L=yes
9168      export_dynamic_flag_spec='${wl}-E'
9169      ;;
9170
9171    hpux10*)
9172      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9173	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9174      else
9175	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9176      fi
9177      if test "$with_gnu_ld" = no; then
9178	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9179	hardcode_libdir_separator=:
9180	hardcode_direct=yes
9181	hardcode_direct_absolute=yes
9182	export_dynamic_flag_spec='${wl}-E'
9183	# hardcode_minus_L: Not really in the search PATH,
9184	# but as the default location of the library.
9185	hardcode_minus_L=yes
9186      fi
9187      ;;
9188
9189    hpux11*)
9190      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9191	case $host_cpu in
9192	hppa*64*)
9193	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9194	  ;;
9195	ia64*)
9196	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9197	  ;;
9198	*)
9199	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9200	  ;;
9201	esac
9202      else
9203	case $host_cpu in
9204	hppa*64*)
9205	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9206	  ;;
9207	ia64*)
9208	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9209	  ;;
9210	*)
9211
9212	  # Older versions of the 11.00 compiler do not understand -b yet
9213	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9214	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9215$as_echo_n "checking if $CC understands -b... " >&6; }
9216if ${lt_cv_prog_compiler__b+:} false; then :
9217  $as_echo_n "(cached) " >&6
9218else
9219  lt_cv_prog_compiler__b=no
9220   save_LDFLAGS="$LDFLAGS"
9221   LDFLAGS="$LDFLAGS -b"
9222   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9223   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9224     # The linker can only warn and ignore the option if not recognized
9225     # So say no if there are warnings
9226     if test -s conftest.err; then
9227       # Append any errors to the config.log.
9228       cat conftest.err 1>&5
9229       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9230       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9231       if diff conftest.exp conftest.er2 >/dev/null; then
9232         lt_cv_prog_compiler__b=yes
9233       fi
9234     else
9235       lt_cv_prog_compiler__b=yes
9236     fi
9237   fi
9238   $RM -r conftest*
9239   LDFLAGS="$save_LDFLAGS"
9240
9241fi
9242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9243$as_echo "$lt_cv_prog_compiler__b" >&6; }
9244
9245if test x"$lt_cv_prog_compiler__b" = xyes; then
9246    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9247else
9248    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9249fi
9250
9251	  ;;
9252	esac
9253      fi
9254      if test "$with_gnu_ld" = no; then
9255	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9256	hardcode_libdir_separator=:
9257
9258	case $host_cpu in
9259	hppa*64*|ia64*)
9260	  hardcode_direct=no
9261	  hardcode_shlibpath_var=no
9262	  ;;
9263	*)
9264	  hardcode_direct=yes
9265	  hardcode_direct_absolute=yes
9266	  export_dynamic_flag_spec='${wl}-E'
9267
9268	  # hardcode_minus_L: Not really in the search PATH,
9269	  # but as the default location of the library.
9270	  hardcode_minus_L=yes
9271	  ;;
9272	esac
9273      fi
9274      ;;
9275
9276    irix5* | irix6* | nonstopux*)
9277      if test "$GCC" = yes; then
9278	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9279	# Try to use the -exported_symbol ld option, if it does not
9280	# work, assume that -exports_file does not work either and
9281	# implicitly export all symbols.
9282	# This should be the same for all languages, so no per-tag cache variable.
9283	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9284$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9285if ${lt_cv_irix_exported_symbol+:} false; then :
9286  $as_echo_n "(cached) " >&6
9287else
9288  save_LDFLAGS="$LDFLAGS"
9289	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9290	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9291/* end confdefs.h.  */
9292int foo (void) { return 0; }
9293_ACEOF
9294if ac_fn_c_try_link "$LINENO"; then :
9295  lt_cv_irix_exported_symbol=yes
9296else
9297  lt_cv_irix_exported_symbol=no
9298fi
9299rm -f core conftest.err conftest.$ac_objext \
9300    conftest$ac_exeext conftest.$ac_ext
9301           LDFLAGS="$save_LDFLAGS"
9302fi
9303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9304$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9305	if test "$lt_cv_irix_exported_symbol" = yes; then
9306          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9307	fi
9308      else
9309	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9310	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9311      fi
9312      archive_cmds_need_lc='no'
9313      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9314      hardcode_libdir_separator=:
9315      inherit_rpath=yes
9316      link_all_deplibs=yes
9317      ;;
9318
9319    netbsd*)
9320      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9321	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9322      else
9323	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9324      fi
9325      hardcode_libdir_flag_spec='-R$libdir'
9326      hardcode_direct=yes
9327      hardcode_shlibpath_var=no
9328      ;;
9329
9330    newsos6)
9331      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9332      hardcode_direct=yes
9333      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9334      hardcode_libdir_separator=:
9335      hardcode_shlibpath_var=no
9336      ;;
9337
9338    *nto* | *qnx*)
9339      ;;
9340
9341    openbsd*)
9342      if test -f /usr/libexec/ld.so; then
9343	hardcode_direct=yes
9344	hardcode_shlibpath_var=no
9345	hardcode_direct_absolute=yes
9346	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9347	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9348	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9349	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9350	  export_dynamic_flag_spec='${wl}-E'
9351	else
9352	  case $host_os in
9353	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9354	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9355	     hardcode_libdir_flag_spec='-R$libdir'
9356	     ;;
9357	   *)
9358	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9359	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9360	     ;;
9361	  esac
9362	fi
9363      else
9364	ld_shlibs=no
9365      fi
9366      ;;
9367
9368    os2*)
9369      hardcode_libdir_flag_spec='-L$libdir'
9370      hardcode_minus_L=yes
9371      allow_undefined_flag=unsupported
9372      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9373      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9374      ;;
9375
9376    osf3*)
9377      if test "$GCC" = yes; then
9378	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9379	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9380      else
9381	allow_undefined_flag=' -expect_unresolved \*'
9382	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9383      fi
9384      archive_cmds_need_lc='no'
9385      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9386      hardcode_libdir_separator=:
9387      ;;
9388
9389    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9390      if test "$GCC" = yes; then
9391	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9392	archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9393	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9394      else
9395	allow_undefined_flag=' -expect_unresolved \*'
9396	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9397	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
9398	$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9399
9400	# Both c and cxx compiler support -rpath directly
9401	hardcode_libdir_flag_spec='-rpath $libdir'
9402      fi
9403      archive_cmds_need_lc='no'
9404      hardcode_libdir_separator=:
9405      ;;
9406
9407    solaris*)
9408      no_undefined_flag=' -z defs'
9409      if test "$GCC" = yes; then
9410	wlarc='${wl}'
9411	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9412	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9413	  $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9414      else
9415	case `$CC -V 2>&1` in
9416	*"Compilers 5.0"*)
9417	  wlarc=''
9418	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9419	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9420	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9421	  ;;
9422	*)
9423	  wlarc='${wl}'
9424	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9425	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9426	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9427	  ;;
9428	esac
9429      fi
9430      hardcode_libdir_flag_spec='-R$libdir'
9431      hardcode_shlibpath_var=no
9432      case $host_os in
9433      solaris2.[0-5] | solaris2.[0-5].*) ;;
9434      *)
9435	# The compiler driver will combine and reorder linker options,
9436	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9437	# but is careful enough not to reorder.
9438	# Supported since Solaris 2.6 (maybe 2.5.1?)
9439	if test "$GCC" = yes; then
9440	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9441	else
9442	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9443	fi
9444	;;
9445      esac
9446      link_all_deplibs=yes
9447      ;;
9448
9449    sunos4*)
9450      if test "x$host_vendor" = xsequent; then
9451	# Use $CC to link under sequent, because it throws in some extra .o
9452	# files that make .init and .fini sections work.
9453	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9454      else
9455	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9456      fi
9457      hardcode_libdir_flag_spec='-L$libdir'
9458      hardcode_direct=yes
9459      hardcode_minus_L=yes
9460      hardcode_shlibpath_var=no
9461      ;;
9462
9463    sysv4)
9464      case $host_vendor in
9465	sni)
9466	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9467	  hardcode_direct=yes # is this really true???
9468	;;
9469	siemens)
9470	  ## LD is ld it makes a PLAMLIB
9471	  ## CC just makes a GrossModule.
9472	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9473	  reload_cmds='$CC -r -o $output$reload_objs'
9474	  hardcode_direct=no
9475        ;;
9476	motorola)
9477	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9478	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9479	;;
9480      esac
9481      runpath_var='LD_RUN_PATH'
9482      hardcode_shlibpath_var=no
9483      ;;
9484
9485    sysv4.3*)
9486      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9487      hardcode_shlibpath_var=no
9488      export_dynamic_flag_spec='-Bexport'
9489      ;;
9490
9491    sysv4*MP*)
9492      if test -d /usr/nec; then
9493	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9494	hardcode_shlibpath_var=no
9495	runpath_var=LD_RUN_PATH
9496	hardcode_runpath_var=yes
9497	ld_shlibs=yes
9498      fi
9499      ;;
9500
9501    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9502      no_undefined_flag='${wl}-z,text'
9503      archive_cmds_need_lc=no
9504      hardcode_shlibpath_var=no
9505      runpath_var='LD_RUN_PATH'
9506
9507      if test "$GCC" = yes; then
9508	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9509	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9510      else
9511	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9512	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9513      fi
9514      ;;
9515
9516    sysv5* | sco3.2v5* | sco5v6*)
9517      # Note: We can NOT use -z defs as we might desire, because we do not
9518      # link with -lc, and that would cause any symbols used from libc to
9519      # always be unresolved, which means just about no library would
9520      # ever link correctly.  If we're not using GNU ld we use -z text
9521      # though, which does catch some bad symbols but isn't as heavy-handed
9522      # as -z defs.
9523      no_undefined_flag='${wl}-z,text'
9524      allow_undefined_flag='${wl}-z,nodefs'
9525      archive_cmds_need_lc=no
9526      hardcode_shlibpath_var=no
9527      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9528      hardcode_libdir_separator=':'
9529      link_all_deplibs=yes
9530      export_dynamic_flag_spec='${wl}-Bexport'
9531      runpath_var='LD_RUN_PATH'
9532
9533      if test "$GCC" = yes; then
9534	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9535	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9536      else
9537	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9538	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9539      fi
9540      ;;
9541
9542    uts4*)
9543      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9544      hardcode_libdir_flag_spec='-L$libdir'
9545      hardcode_shlibpath_var=no
9546      ;;
9547
9548    *)
9549      ld_shlibs=no
9550      ;;
9551    esac
9552
9553    if test x$host_vendor = xsni; then
9554      case $host in
9555      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9556	export_dynamic_flag_spec='${wl}-Blargedynsym'
9557	;;
9558      esac
9559    fi
9560  fi
9561
9562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9563$as_echo "$ld_shlibs" >&6; }
9564test "$ld_shlibs" = no && can_build_shared=no
9565
9566with_gnu_ld=$with_gnu_ld
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582#
9583# Do we need to explicitly link libc?
9584#
9585case "x$archive_cmds_need_lc" in
9586x|xyes)
9587  # Assume -lc should be added
9588  archive_cmds_need_lc=yes
9589
9590  if test "$enable_shared" = yes && test "$GCC" = yes; then
9591    case $archive_cmds in
9592    *'~'*)
9593      # FIXME: we may have to deal with multi-command sequences.
9594      ;;
9595    '$CC '*)
9596      # Test whether the compiler implicitly links with -lc since on some
9597      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9598      # to ld, don't add -lc before -lgcc.
9599      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9600$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9601if ${lt_cv_archive_cmds_need_lc+:} false; then :
9602  $as_echo_n "(cached) " >&6
9603else
9604  $RM conftest*
9605	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9606
9607	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9608  (eval $ac_compile) 2>&5
9609  ac_status=$?
9610  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9611  test $ac_status = 0; } 2>conftest.err; then
9612	  soname=conftest
9613	  lib=conftest
9614	  libobjs=conftest.$ac_objext
9615	  deplibs=
9616	  wl=$lt_prog_compiler_wl
9617	  pic_flag=$lt_prog_compiler_pic
9618	  compiler_flags=-v
9619	  linker_flags=-v
9620	  verstring=
9621	  output_objdir=.
9622	  libname=conftest
9623	  lt_save_allow_undefined_flag=$allow_undefined_flag
9624	  allow_undefined_flag=
9625	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9626  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9627  ac_status=$?
9628  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9629  test $ac_status = 0; }
9630	  then
9631	    lt_cv_archive_cmds_need_lc=no
9632	  else
9633	    lt_cv_archive_cmds_need_lc=yes
9634	  fi
9635	  allow_undefined_flag=$lt_save_allow_undefined_flag
9636	else
9637	  cat conftest.err 1>&5
9638	fi
9639	$RM conftest*
9640
9641fi
9642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9643$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9644      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9645      ;;
9646    esac
9647  fi
9648  ;;
9649esac
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9803$as_echo_n "checking dynamic linker characteristics... " >&6; }
9804
9805if test "$GCC" = yes; then
9806  case $host_os in
9807    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9808    *) lt_awk_arg="/^libraries:/" ;;
9809  esac
9810  case $host_os in
9811    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9812    *) lt_sed_strip_eq="s,=/,/,g" ;;
9813  esac
9814  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9815  case $lt_search_path_spec in
9816  *\;*)
9817    # if the path contains ";" then we assume it to be the separator
9818    # otherwise default to the standard path separator (i.e. ":") - it is
9819    # assumed that no part of a normal pathname contains ";" but that should
9820    # okay in the real world where ";" in dirpaths is itself problematic.
9821    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9822    ;;
9823  *)
9824    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9825    ;;
9826  esac
9827  # Ok, now we have the path, separated by spaces, we can step through it
9828  # and add multilib dir if necessary.
9829  lt_tmp_lt_search_path_spec=
9830  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9831  for lt_sys_path in $lt_search_path_spec; do
9832    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9833      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9834    else
9835      test -d "$lt_sys_path" && \
9836	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9837    fi
9838  done
9839  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9840BEGIN {RS=" "; FS="/|\n";} {
9841  lt_foo="";
9842  lt_count=0;
9843  for (lt_i = NF; lt_i > 0; lt_i--) {
9844    if ($lt_i != "" && $lt_i != ".") {
9845      if ($lt_i == "..") {
9846        lt_count++;
9847      } else {
9848        if (lt_count == 0) {
9849          lt_foo="/" $lt_i lt_foo;
9850        } else {
9851          lt_count--;
9852        }
9853      }
9854    }
9855  }
9856  if (lt_foo != "") { lt_freq[lt_foo]++; }
9857  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9858}'`
9859  # AWK program above erroneously prepends '/' to C:/dos/paths
9860  # for these hosts.
9861  case $host_os in
9862    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9863      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9864  esac
9865  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9866else
9867  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9868fi
9869library_names_spec=
9870libname_spec='lib$name'
9871soname_spec=
9872shrext_cmds=".so"
9873postinstall_cmds=
9874postuninstall_cmds=
9875finish_cmds=
9876finish_eval=
9877shlibpath_var=
9878shlibpath_overrides_runpath=unknown
9879version_type=none
9880dynamic_linker="$host_os ld.so"
9881sys_lib_dlsearch_path_spec="/lib /usr/lib"
9882need_lib_prefix=unknown
9883hardcode_into_libs=no
9884
9885# when you set need_version to no, make sure it does not cause -set_version
9886# flags to be left without arguments
9887need_version=unknown
9888
9889case $host_os in
9890aix3*)
9891  version_type=linux # correct to gnu/linux during the next big refactor
9892  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9893  shlibpath_var=LIBPATH
9894
9895  # AIX 3 has no versioning support, so we append a major version to the name.
9896  soname_spec='${libname}${release}${shared_ext}$major'
9897  ;;
9898
9899aix[4-9]*)
9900  version_type=linux # correct to gnu/linux during the next big refactor
9901  need_lib_prefix=no
9902  need_version=no
9903  hardcode_into_libs=yes
9904  if test "$host_cpu" = ia64; then
9905    # AIX 5 supports IA64
9906    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9907    shlibpath_var=LD_LIBRARY_PATH
9908  else
9909    # With GCC up to 2.95.x, collect2 would create an import file
9910    # for dependence libraries.  The import file would start with
9911    # the line `#! .'.  This would cause the generated library to
9912    # depend on `.', always an invalid library.  This was fixed in
9913    # development snapshots of GCC prior to 3.0.
9914    case $host_os in
9915      aix4 | aix4.[01] | aix4.[01].*)
9916      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9917	   echo ' yes '
9918	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9919	:
9920      else
9921	can_build_shared=no
9922      fi
9923      ;;
9924    esac
9925    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9926    # soname into executable. Probably we can add versioning support to
9927    # collect2, so additional links can be useful in future.
9928    if test "$aix_use_runtimelinking" = yes; then
9929      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9930      # instead of lib<name>.a to let people know that these are not
9931      # typical AIX shared libraries.
9932      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9933    else
9934      # We preserve .a as extension for shared libraries through AIX4.2
9935      # and later when we are not doing run time linking.
9936      library_names_spec='${libname}${release}.a $libname.a'
9937      soname_spec='${libname}${release}${shared_ext}$major'
9938    fi
9939    shlibpath_var=LIBPATH
9940  fi
9941  ;;
9942
9943amigaos*)
9944  case $host_cpu in
9945  powerpc)
9946    # Since July 2007 AmigaOS4 officially supports .so libraries.
9947    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9948    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9949    ;;
9950  m68k)
9951    library_names_spec='$libname.ixlibrary $libname.a'
9952    # Create ${libname}_ixlibrary.a entries in /sys/libs.
9953    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9954    ;;
9955  esac
9956  ;;
9957
9958beos*)
9959  library_names_spec='${libname}${shared_ext}'
9960  dynamic_linker="$host_os ld.so"
9961  shlibpath_var=LIBRARY_PATH
9962  ;;
9963
9964bsdi[45]*)
9965  version_type=linux # correct to gnu/linux during the next big refactor
9966  need_version=no
9967  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9968  soname_spec='${libname}${release}${shared_ext}$major'
9969  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9970  shlibpath_var=LD_LIBRARY_PATH
9971  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9972  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9973  # the default ld.so.conf also contains /usr/contrib/lib and
9974  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9975  # libtool to hard-code these into programs
9976  ;;
9977
9978cygwin* | mingw* | pw32* | cegcc*)
9979  version_type=windows
9980  shrext_cmds=".dll"
9981  need_version=no
9982  need_lib_prefix=no
9983
9984  case $GCC,$cc_basename in
9985  yes,*)
9986    # gcc
9987    library_names_spec='$libname.dll.a'
9988    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9989    postinstall_cmds='base_file=`basename \${file}`~
9990      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9991      dldir=$destdir/`dirname \$dlpath`~
9992      test -d \$dldir || mkdir -p \$dldir~
9993      $install_prog $dir/$dlname \$dldir/$dlname~
9994      chmod a+x \$dldir/$dlname~
9995      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9996        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9997      fi'
9998    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9999      dlpath=$dir/\$dldll~
10000       $RM \$dlpath'
10001    shlibpath_overrides_runpath=yes
10002
10003    case $host_os in
10004    cygwin*)
10005      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10006      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10007
10008      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10009      ;;
10010    mingw* | cegcc*)
10011      # MinGW DLLs use traditional 'lib' prefix
10012      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10013      ;;
10014    pw32*)
10015      # pw32 DLLs use 'pw' prefix rather than 'lib'
10016      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10017      ;;
10018    esac
10019    dynamic_linker='Win32 ld.exe'
10020    ;;
10021
10022  *,cl*)
10023    # Native MSVC
10024    libname_spec='$name'
10025    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10026    library_names_spec='${libname}.dll.lib'
10027
10028    case $build_os in
10029    mingw*)
10030      sys_lib_search_path_spec=
10031      lt_save_ifs=$IFS
10032      IFS=';'
10033      for lt_path in $LIB
10034      do
10035        IFS=$lt_save_ifs
10036        # Let DOS variable expansion print the short 8.3 style file name.
10037        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10038        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10039      done
10040      IFS=$lt_save_ifs
10041      # Convert to MSYS style.
10042      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10043      ;;
10044    cygwin*)
10045      # Convert to unix form, then to dos form, then back to unix form
10046      # but this time dos style (no spaces!) so that the unix form looks
10047      # like /cygdrive/c/PROGRA~1:/cygdr...
10048      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10049      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10050      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10051      ;;
10052    *)
10053      sys_lib_search_path_spec="$LIB"
10054      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10055        # It is most probably a Windows format PATH.
10056        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10057      else
10058        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10059      fi
10060      # FIXME: find the short name or the path components, as spaces are
10061      # common. (e.g. "Program Files" -> "PROGRA~1")
10062      ;;
10063    esac
10064
10065    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10066    postinstall_cmds='base_file=`basename \${file}`~
10067      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10068      dldir=$destdir/`dirname \$dlpath`~
10069      test -d \$dldir || mkdir -p \$dldir~
10070      $install_prog $dir/$dlname \$dldir/$dlname'
10071    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10072      dlpath=$dir/\$dldll~
10073       $RM \$dlpath'
10074    shlibpath_overrides_runpath=yes
10075    dynamic_linker='Win32 link.exe'
10076    ;;
10077
10078  *)
10079    # Assume MSVC wrapper
10080    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10081    dynamic_linker='Win32 ld.exe'
10082    ;;
10083  esac
10084  # FIXME: first we should search . and the directory the executable is in
10085  shlibpath_var=PATH
10086  ;;
10087
10088darwin* | rhapsody*)
10089  dynamic_linker="$host_os dyld"
10090  version_type=darwin
10091  need_lib_prefix=no
10092  need_version=no
10093  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10094  soname_spec='${libname}${release}${major}$shared_ext'
10095  shlibpath_overrides_runpath=yes
10096  shlibpath_var=DYLD_LIBRARY_PATH
10097  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10098
10099  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10100  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10101  ;;
10102
10103dgux*)
10104  version_type=linux # correct to gnu/linux during the next big refactor
10105  need_lib_prefix=no
10106  need_version=no
10107  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10108  soname_spec='${libname}${release}${shared_ext}$major'
10109  shlibpath_var=LD_LIBRARY_PATH
10110  ;;
10111
10112freebsd* | dragonfly*)
10113  # DragonFly does not have aout.  When/if they implement a new
10114  # versioning mechanism, adjust this.
10115  if test -x /usr/bin/objformat; then
10116    objformat=`/usr/bin/objformat`
10117  else
10118    case $host_os in
10119    freebsd[23].*) objformat=aout ;;
10120    *) objformat=elf ;;
10121    esac
10122  fi
10123  version_type=freebsd-$objformat
10124  case $version_type in
10125    freebsd-elf*)
10126      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10127      need_version=no
10128      need_lib_prefix=no
10129      ;;
10130    freebsd-*)
10131      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10132      need_version=yes
10133      ;;
10134  esac
10135  shlibpath_var=LD_LIBRARY_PATH
10136  case $host_os in
10137  freebsd2.*)
10138    shlibpath_overrides_runpath=yes
10139    ;;
10140  freebsd3.[01]* | freebsdelf3.[01]*)
10141    shlibpath_overrides_runpath=yes
10142    hardcode_into_libs=yes
10143    ;;
10144  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10145  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10146    shlibpath_overrides_runpath=no
10147    hardcode_into_libs=yes
10148    ;;
10149  *) # from 4.6 on, and DragonFly
10150    shlibpath_overrides_runpath=yes
10151    hardcode_into_libs=yes
10152    ;;
10153  esac
10154  ;;
10155
10156gnu*)
10157  version_type=linux # correct to gnu/linux during the next big refactor
10158  need_lib_prefix=no
10159  need_version=no
10160  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10161  soname_spec='${libname}${release}${shared_ext}$major'
10162  shlibpath_var=LD_LIBRARY_PATH
10163  shlibpath_overrides_runpath=no
10164  hardcode_into_libs=yes
10165  ;;
10166
10167haiku*)
10168  version_type=linux # correct to gnu/linux during the next big refactor
10169  need_lib_prefix=no
10170  need_version=no
10171  dynamic_linker="$host_os runtime_loader"
10172  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10173  soname_spec='${libname}${release}${shared_ext}$major'
10174  shlibpath_var=LIBRARY_PATH
10175  shlibpath_overrides_runpath=yes
10176  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10177  hardcode_into_libs=yes
10178  ;;
10179
10180hpux9* | hpux10* | hpux11*)
10181  # Give a soname corresponding to the major version so that dld.sl refuses to
10182  # link against other versions.
10183  version_type=sunos
10184  need_lib_prefix=no
10185  need_version=no
10186  case $host_cpu in
10187  ia64*)
10188    shrext_cmds='.so'
10189    hardcode_into_libs=yes
10190    dynamic_linker="$host_os dld.so"
10191    shlibpath_var=LD_LIBRARY_PATH
10192    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10193    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10194    soname_spec='${libname}${release}${shared_ext}$major'
10195    if test "X$HPUX_IA64_MODE" = X32; then
10196      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10197    else
10198      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10199    fi
10200    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10201    ;;
10202  hppa*64*)
10203    shrext_cmds='.sl'
10204    hardcode_into_libs=yes
10205    dynamic_linker="$host_os dld.sl"
10206    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10207    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10208    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10209    soname_spec='${libname}${release}${shared_ext}$major'
10210    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10211    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10212    ;;
10213  *)
10214    shrext_cmds='.sl'
10215    dynamic_linker="$host_os dld.sl"
10216    shlibpath_var=SHLIB_PATH
10217    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10218    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10219    soname_spec='${libname}${release}${shared_ext}$major'
10220    ;;
10221  esac
10222  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10223  postinstall_cmds='chmod 555 $lib'
10224  # or fails outright, so override atomically:
10225  install_override_mode=555
10226  ;;
10227
10228interix[3-9]*)
10229  version_type=linux # correct to gnu/linux during the next big refactor
10230  need_lib_prefix=no
10231  need_version=no
10232  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10233  soname_spec='${libname}${release}${shared_ext}$major'
10234  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10235  shlibpath_var=LD_LIBRARY_PATH
10236  shlibpath_overrides_runpath=no
10237  hardcode_into_libs=yes
10238  ;;
10239
10240irix5* | irix6* | nonstopux*)
10241  case $host_os in
10242    nonstopux*) version_type=nonstopux ;;
10243    *)
10244	if test "$lt_cv_prog_gnu_ld" = yes; then
10245		version_type=linux # correct to gnu/linux during the next big refactor
10246	else
10247		version_type=irix
10248	fi ;;
10249  esac
10250  need_lib_prefix=no
10251  need_version=no
10252  soname_spec='${libname}${release}${shared_ext}$major'
10253  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10254  case $host_os in
10255  irix5* | nonstopux*)
10256    libsuff= shlibsuff=
10257    ;;
10258  *)
10259    case $LD in # libtool.m4 will add one of these switches to LD
10260    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10261      libsuff= shlibsuff= libmagic=32-bit;;
10262    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10263      libsuff=32 shlibsuff=N32 libmagic=N32;;
10264    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10265      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10266    *) libsuff= shlibsuff= libmagic=never-match;;
10267    esac
10268    ;;
10269  esac
10270  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10271  shlibpath_overrides_runpath=no
10272  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10273  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10274  hardcode_into_libs=yes
10275  ;;
10276
10277# No shared lib support for Linux oldld, aout, or coff.
10278linux*oldld* | linux*aout* | linux*coff*)
10279  dynamic_linker=no
10280  ;;
10281
10282# This must be glibc/ELF.
10283linux* | k*bsd*-gnu | kopensolaris*-gnu)
10284  version_type=linux # correct to gnu/linux during the next big refactor
10285  need_lib_prefix=no
10286  need_version=no
10287  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10288  soname_spec='${libname}${release}${shared_ext}$major'
10289  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10290  shlibpath_var=LD_LIBRARY_PATH
10291  shlibpath_overrides_runpath=no
10292
10293  # Some binutils ld are patched to set DT_RUNPATH
10294  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10295  $as_echo_n "(cached) " >&6
10296else
10297  lt_cv_shlibpath_overrides_runpath=no
10298    save_LDFLAGS=$LDFLAGS
10299    save_libdir=$libdir
10300    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10301	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10302    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10303/* end confdefs.h.  */
10304
10305int
10306main ()
10307{
10308
10309  ;
10310  return 0;
10311}
10312_ACEOF
10313if ac_fn_c_try_link "$LINENO"; then :
10314  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10315  lt_cv_shlibpath_overrides_runpath=yes
10316fi
10317fi
10318rm -f core conftest.err conftest.$ac_objext \
10319    conftest$ac_exeext conftest.$ac_ext
10320    LDFLAGS=$save_LDFLAGS
10321    libdir=$save_libdir
10322
10323fi
10324
10325  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10326
10327  # This implies no fast_install, which is unacceptable.
10328  # Some rework will be needed to allow for fast_install
10329  # before this can be enabled.
10330  hardcode_into_libs=yes
10331
10332  # Add ABI-specific directories to the system library path.
10333  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10334
10335  # Append ld.so.conf contents to the search path
10336  if test -f /etc/ld.so.conf; then
10337    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
10338    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10339
10340  fi
10341
10342  # We used to test for /lib/ld.so.1 and disable shared libraries on
10343  # powerpc, because MkLinux only supported shared libraries with the
10344  # GNU dynamic linker.  Since this was broken with cross compilers,
10345  # most powerpc-linux boxes support dynamic linking these days and
10346  # people can always --disable-shared, the test was removed, and we
10347  # assume the GNU/Linux dynamic linker is in use.
10348  dynamic_linker='GNU/Linux ld.so'
10349  ;;
10350
10351netbsd*)
10352  version_type=sunos
10353  need_lib_prefix=no
10354  need_version=no
10355  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10356    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10357    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10358    dynamic_linker='NetBSD (a.out) ld.so'
10359  else
10360    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10361    soname_spec='${libname}${release}${shared_ext}$major'
10362    dynamic_linker='NetBSD ld.elf_so'
10363  fi
10364  shlibpath_var=LD_LIBRARY_PATH
10365  shlibpath_overrides_runpath=yes
10366  hardcode_into_libs=yes
10367  ;;
10368
10369newsos6)
10370  version_type=linux # correct to gnu/linux during the next big refactor
10371  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10372  shlibpath_var=LD_LIBRARY_PATH
10373  shlibpath_overrides_runpath=yes
10374  ;;
10375
10376*nto* | *qnx*)
10377  version_type=qnx
10378  need_lib_prefix=no
10379  need_version=no
10380  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10381  soname_spec='${libname}${release}${shared_ext}$major'
10382  shlibpath_var=LD_LIBRARY_PATH
10383  shlibpath_overrides_runpath=no
10384  hardcode_into_libs=yes
10385  dynamic_linker='ldqnx.so'
10386  ;;
10387
10388openbsd*)
10389  version_type=sunos
10390  sys_lib_dlsearch_path_spec="/usr/lib"
10391  need_lib_prefix=no
10392  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10393  case $host_os in
10394    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10395    *)				need_version=no  ;;
10396  esac
10397  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10398  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10399  shlibpath_var=LD_LIBRARY_PATH
10400  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10401    case $host_os in
10402      openbsd2.[89] | openbsd2.[89].*)
10403	shlibpath_overrides_runpath=no
10404	;;
10405      *)
10406	shlibpath_overrides_runpath=yes
10407	;;
10408      esac
10409  else
10410    shlibpath_overrides_runpath=yes
10411  fi
10412  ;;
10413
10414os2*)
10415  libname_spec='$name'
10416  shrext_cmds=".dll"
10417  need_lib_prefix=no
10418  library_names_spec='$libname${shared_ext} $libname.a'
10419  dynamic_linker='OS/2 ld.exe'
10420  shlibpath_var=LIBPATH
10421  ;;
10422
10423osf3* | osf4* | osf5*)
10424  version_type=osf
10425  need_lib_prefix=no
10426  need_version=no
10427  soname_spec='${libname}${release}${shared_ext}$major'
10428  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10429  shlibpath_var=LD_LIBRARY_PATH
10430  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10431  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10432  ;;
10433
10434rdos*)
10435  dynamic_linker=no
10436  ;;
10437
10438solaris*)
10439  version_type=linux # correct to gnu/linux during the next big refactor
10440  need_lib_prefix=no
10441  need_version=no
10442  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10443  soname_spec='${libname}${release}${shared_ext}$major'
10444  shlibpath_var=LD_LIBRARY_PATH
10445  shlibpath_overrides_runpath=yes
10446  hardcode_into_libs=yes
10447  # ldd complains unless libraries are executable
10448  postinstall_cmds='chmod +x $lib'
10449  ;;
10450
10451sunos4*)
10452  version_type=sunos
10453  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10454  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10455  shlibpath_var=LD_LIBRARY_PATH
10456  shlibpath_overrides_runpath=yes
10457  if test "$with_gnu_ld" = yes; then
10458    need_lib_prefix=no
10459  fi
10460  need_version=yes
10461  ;;
10462
10463sysv4 | sysv4.3*)
10464  version_type=linux # correct to gnu/linux during the next big refactor
10465  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10466  soname_spec='${libname}${release}${shared_ext}$major'
10467  shlibpath_var=LD_LIBRARY_PATH
10468  case $host_vendor in
10469    sni)
10470      shlibpath_overrides_runpath=no
10471      need_lib_prefix=no
10472      runpath_var=LD_RUN_PATH
10473      ;;
10474    siemens)
10475      need_lib_prefix=no
10476      ;;
10477    motorola)
10478      need_lib_prefix=no
10479      need_version=no
10480      shlibpath_overrides_runpath=no
10481      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10482      ;;
10483  esac
10484  ;;
10485
10486sysv4*MP*)
10487  if test -d /usr/nec ;then
10488    version_type=linux # correct to gnu/linux during the next big refactor
10489    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10490    soname_spec='$libname${shared_ext}.$major'
10491    shlibpath_var=LD_LIBRARY_PATH
10492  fi
10493  ;;
10494
10495sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10496  version_type=freebsd-elf
10497  need_lib_prefix=no
10498  need_version=no
10499  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10500  soname_spec='${libname}${release}${shared_ext}$major'
10501  shlibpath_var=LD_LIBRARY_PATH
10502  shlibpath_overrides_runpath=yes
10503  hardcode_into_libs=yes
10504  if test "$with_gnu_ld" = yes; then
10505    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10506  else
10507    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10508    case $host_os in
10509      sco3.2v5*)
10510        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10511	;;
10512    esac
10513  fi
10514  sys_lib_dlsearch_path_spec='/usr/lib'
10515  ;;
10516
10517tpf*)
10518  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10519  version_type=linux # correct to gnu/linux during the next big refactor
10520  need_lib_prefix=no
10521  need_version=no
10522  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10523  shlibpath_var=LD_LIBRARY_PATH
10524  shlibpath_overrides_runpath=no
10525  hardcode_into_libs=yes
10526  ;;
10527
10528uts4*)
10529  version_type=linux # correct to gnu/linux during the next big refactor
10530  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10531  soname_spec='${libname}${release}${shared_ext}$major'
10532  shlibpath_var=LD_LIBRARY_PATH
10533  ;;
10534
10535*)
10536  dynamic_linker=no
10537  ;;
10538esac
10539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10540$as_echo "$dynamic_linker" >&6; }
10541test "$dynamic_linker" = no && can_build_shared=no
10542
10543variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10544if test "$GCC" = yes; then
10545  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10546fi
10547
10548if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10549  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10550fi
10551if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10552  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10553fi
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10647$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10648hardcode_action=
10649if test -n "$hardcode_libdir_flag_spec" ||
10650   test -n "$runpath_var" ||
10651   test "X$hardcode_automatic" = "Xyes" ; then
10652
10653  # We can hardcode non-existent directories.
10654  if test "$hardcode_direct" != no &&
10655     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10656     # have to relink, otherwise we might link with an installed library
10657     # when we should be linking with a yet-to-be-installed one
10658     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10659     test "$hardcode_minus_L" != no; then
10660    # Linking always hardcodes the temporary library directory.
10661    hardcode_action=relink
10662  else
10663    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10664    hardcode_action=immediate
10665  fi
10666else
10667  # We cannot hardcode anything, or else we can only hardcode existing
10668  # directories.
10669  hardcode_action=unsupported
10670fi
10671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10672$as_echo "$hardcode_action" >&6; }
10673
10674if test "$hardcode_action" = relink ||
10675   test "$inherit_rpath" = yes; then
10676  # Fast installation is not supported
10677  enable_fast_install=no
10678elif test "$shlibpath_overrides_runpath" = yes ||
10679     test "$enable_shared" = no; then
10680  # Fast installation is not necessary
10681  enable_fast_install=needless
10682fi
10683
10684
10685
10686
10687
10688
10689  if test "x$enable_dlopen" != xyes; then
10690  enable_dlopen=unknown
10691  enable_dlopen_self=unknown
10692  enable_dlopen_self_static=unknown
10693else
10694  lt_cv_dlopen=no
10695  lt_cv_dlopen_libs=
10696
10697  case $host_os in
10698  beos*)
10699    lt_cv_dlopen="load_add_on"
10700    lt_cv_dlopen_libs=
10701    lt_cv_dlopen_self=yes
10702    ;;
10703
10704  mingw* | pw32* | cegcc*)
10705    lt_cv_dlopen="LoadLibrary"
10706    lt_cv_dlopen_libs=
10707    ;;
10708
10709  cygwin*)
10710    lt_cv_dlopen="dlopen"
10711    lt_cv_dlopen_libs=
10712    ;;
10713
10714  darwin*)
10715  # if libdl is installed we need to link against it
10716    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10717$as_echo_n "checking for dlopen in -ldl... " >&6; }
10718if ${ac_cv_lib_dl_dlopen+:} false; then :
10719  $as_echo_n "(cached) " >&6
10720else
10721  ac_check_lib_save_LIBS=$LIBS
10722LIBS="-ldl  $LIBS"
10723cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10724/* end confdefs.h.  */
10725
10726/* Override any GCC internal prototype to avoid an error.
10727   Use char because int might match the return type of a GCC
10728   builtin and then its argument prototype would still apply.  */
10729#ifdef __cplusplus
10730extern "C"
10731#endif
10732char dlopen ();
10733int
10734main ()
10735{
10736return dlopen ();
10737  ;
10738  return 0;
10739}
10740_ACEOF
10741if ac_fn_c_try_link "$LINENO"; then :
10742  ac_cv_lib_dl_dlopen=yes
10743else
10744  ac_cv_lib_dl_dlopen=no
10745fi
10746rm -f core conftest.err conftest.$ac_objext \
10747    conftest$ac_exeext conftest.$ac_ext
10748LIBS=$ac_check_lib_save_LIBS
10749fi
10750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10751$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10752if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10753  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10754else
10755
10756    lt_cv_dlopen="dyld"
10757    lt_cv_dlopen_libs=
10758    lt_cv_dlopen_self=yes
10759
10760fi
10761
10762    ;;
10763
10764  *)
10765    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10766if test "x$ac_cv_func_shl_load" = xyes; then :
10767  lt_cv_dlopen="shl_load"
10768else
10769  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10770$as_echo_n "checking for shl_load in -ldld... " >&6; }
10771if ${ac_cv_lib_dld_shl_load+:} false; then :
10772  $as_echo_n "(cached) " >&6
10773else
10774  ac_check_lib_save_LIBS=$LIBS
10775LIBS="-ldld  $LIBS"
10776cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10777/* end confdefs.h.  */
10778
10779/* Override any GCC internal prototype to avoid an error.
10780   Use char because int might match the return type of a GCC
10781   builtin and then its argument prototype would still apply.  */
10782#ifdef __cplusplus
10783extern "C"
10784#endif
10785char shl_load ();
10786int
10787main ()
10788{
10789return shl_load ();
10790  ;
10791  return 0;
10792}
10793_ACEOF
10794if ac_fn_c_try_link "$LINENO"; then :
10795  ac_cv_lib_dld_shl_load=yes
10796else
10797  ac_cv_lib_dld_shl_load=no
10798fi
10799rm -f core conftest.err conftest.$ac_objext \
10800    conftest$ac_exeext conftest.$ac_ext
10801LIBS=$ac_check_lib_save_LIBS
10802fi
10803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10804$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10805if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10806  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10807else
10808  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10809if test "x$ac_cv_func_dlopen" = xyes; then :
10810  lt_cv_dlopen="dlopen"
10811else
10812  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10813$as_echo_n "checking for dlopen in -ldl... " >&6; }
10814if ${ac_cv_lib_dl_dlopen+:} false; then :
10815  $as_echo_n "(cached) " >&6
10816else
10817  ac_check_lib_save_LIBS=$LIBS
10818LIBS="-ldl  $LIBS"
10819cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10820/* end confdefs.h.  */
10821
10822/* Override any GCC internal prototype to avoid an error.
10823   Use char because int might match the return type of a GCC
10824   builtin and then its argument prototype would still apply.  */
10825#ifdef __cplusplus
10826extern "C"
10827#endif
10828char dlopen ();
10829int
10830main ()
10831{
10832return dlopen ();
10833  ;
10834  return 0;
10835}
10836_ACEOF
10837if ac_fn_c_try_link "$LINENO"; then :
10838  ac_cv_lib_dl_dlopen=yes
10839else
10840  ac_cv_lib_dl_dlopen=no
10841fi
10842rm -f core conftest.err conftest.$ac_objext \
10843    conftest$ac_exeext conftest.$ac_ext
10844LIBS=$ac_check_lib_save_LIBS
10845fi
10846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10847$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10848if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10849  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10850else
10851  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10852$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10853if ${ac_cv_lib_svld_dlopen+:} false; then :
10854  $as_echo_n "(cached) " >&6
10855else
10856  ac_check_lib_save_LIBS=$LIBS
10857LIBS="-lsvld  $LIBS"
10858cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10859/* end confdefs.h.  */
10860
10861/* Override any GCC internal prototype to avoid an error.
10862   Use char because int might match the return type of a GCC
10863   builtin and then its argument prototype would still apply.  */
10864#ifdef __cplusplus
10865extern "C"
10866#endif
10867char dlopen ();
10868int
10869main ()
10870{
10871return dlopen ();
10872  ;
10873  return 0;
10874}
10875_ACEOF
10876if ac_fn_c_try_link "$LINENO"; then :
10877  ac_cv_lib_svld_dlopen=yes
10878else
10879  ac_cv_lib_svld_dlopen=no
10880fi
10881rm -f core conftest.err conftest.$ac_objext \
10882    conftest$ac_exeext conftest.$ac_ext
10883LIBS=$ac_check_lib_save_LIBS
10884fi
10885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10886$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10887if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10888  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10889else
10890  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10891$as_echo_n "checking for dld_link in -ldld... " >&6; }
10892if ${ac_cv_lib_dld_dld_link+:} false; then :
10893  $as_echo_n "(cached) " >&6
10894else
10895  ac_check_lib_save_LIBS=$LIBS
10896LIBS="-ldld  $LIBS"
10897cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10898/* end confdefs.h.  */
10899
10900/* Override any GCC internal prototype to avoid an error.
10901   Use char because int might match the return type of a GCC
10902   builtin and then its argument prototype would still apply.  */
10903#ifdef __cplusplus
10904extern "C"
10905#endif
10906char dld_link ();
10907int
10908main ()
10909{
10910return dld_link ();
10911  ;
10912  return 0;
10913}
10914_ACEOF
10915if ac_fn_c_try_link "$LINENO"; then :
10916  ac_cv_lib_dld_dld_link=yes
10917else
10918  ac_cv_lib_dld_dld_link=no
10919fi
10920rm -f core conftest.err conftest.$ac_objext \
10921    conftest$ac_exeext conftest.$ac_ext
10922LIBS=$ac_check_lib_save_LIBS
10923fi
10924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10925$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10926if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10927  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10928fi
10929
10930
10931fi
10932
10933
10934fi
10935
10936
10937fi
10938
10939
10940fi
10941
10942
10943fi
10944
10945    ;;
10946  esac
10947
10948  if test "x$lt_cv_dlopen" != xno; then
10949    enable_dlopen=yes
10950  else
10951    enable_dlopen=no
10952  fi
10953
10954  case $lt_cv_dlopen in
10955  dlopen)
10956    save_CPPFLAGS="$CPPFLAGS"
10957    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10958
10959    save_LDFLAGS="$LDFLAGS"
10960    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10961
10962    save_LIBS="$LIBS"
10963    LIBS="$lt_cv_dlopen_libs $LIBS"
10964
10965    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10966$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10967if ${lt_cv_dlopen_self+:} false; then :
10968  $as_echo_n "(cached) " >&6
10969else
10970  	  if test "$cross_compiling" = yes; then :
10971  lt_cv_dlopen_self=cross
10972else
10973  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10974  lt_status=$lt_dlunknown
10975  cat > conftest.$ac_ext <<_LT_EOF
10976#line $LINENO "configure"
10977#include "confdefs.h"
10978
10979#if HAVE_DLFCN_H
10980#include <dlfcn.h>
10981#endif
10982
10983#include <stdio.h>
10984
10985#ifdef RTLD_GLOBAL
10986#  define LT_DLGLOBAL		RTLD_GLOBAL
10987#else
10988#  ifdef DL_GLOBAL
10989#    define LT_DLGLOBAL		DL_GLOBAL
10990#  else
10991#    define LT_DLGLOBAL		0
10992#  endif
10993#endif
10994
10995/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10996   find out it does not work in some platform. */
10997#ifndef LT_DLLAZY_OR_NOW
10998#  ifdef RTLD_LAZY
10999#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11000#  else
11001#    ifdef DL_LAZY
11002#      define LT_DLLAZY_OR_NOW		DL_LAZY
11003#    else
11004#      ifdef RTLD_NOW
11005#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11006#      else
11007#        ifdef DL_NOW
11008#          define LT_DLLAZY_OR_NOW	DL_NOW
11009#        else
11010#          define LT_DLLAZY_OR_NOW	0
11011#        endif
11012#      endif
11013#    endif
11014#  endif
11015#endif
11016
11017/* When -fvisbility=hidden is used, assume the code has been annotated
11018   correspondingly for the symbols needed.  */
11019#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11020int fnord () __attribute__((visibility("default")));
11021#endif
11022
11023int fnord () { return 42; }
11024int main ()
11025{
11026  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11027  int status = $lt_dlunknown;
11028
11029  if (self)
11030    {
11031      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11032      else
11033        {
11034	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11035          else puts (dlerror ());
11036	}
11037      /* dlclose (self); */
11038    }
11039  else
11040    puts (dlerror ());
11041
11042  return status;
11043}
11044_LT_EOF
11045  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11046  (eval $ac_link) 2>&5
11047  ac_status=$?
11048  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11049  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11050    (./conftest; exit; ) >&5 2>/dev/null
11051    lt_status=$?
11052    case x$lt_status in
11053      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11054      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11055      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11056    esac
11057  else :
11058    # compilation failed
11059    lt_cv_dlopen_self=no
11060  fi
11061fi
11062rm -fr conftest*
11063
11064
11065fi
11066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11067$as_echo "$lt_cv_dlopen_self" >&6; }
11068
11069    if test "x$lt_cv_dlopen_self" = xyes; then
11070      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11071      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11072$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11073if ${lt_cv_dlopen_self_static+:} false; then :
11074  $as_echo_n "(cached) " >&6
11075else
11076  	  if test "$cross_compiling" = yes; then :
11077  lt_cv_dlopen_self_static=cross
11078else
11079  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11080  lt_status=$lt_dlunknown
11081  cat > conftest.$ac_ext <<_LT_EOF
11082#line $LINENO "configure"
11083#include "confdefs.h"
11084
11085#if HAVE_DLFCN_H
11086#include <dlfcn.h>
11087#endif
11088
11089#include <stdio.h>
11090
11091#ifdef RTLD_GLOBAL
11092#  define LT_DLGLOBAL		RTLD_GLOBAL
11093#else
11094#  ifdef DL_GLOBAL
11095#    define LT_DLGLOBAL		DL_GLOBAL
11096#  else
11097#    define LT_DLGLOBAL		0
11098#  endif
11099#endif
11100
11101/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11102   find out it does not work in some platform. */
11103#ifndef LT_DLLAZY_OR_NOW
11104#  ifdef RTLD_LAZY
11105#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11106#  else
11107#    ifdef DL_LAZY
11108#      define LT_DLLAZY_OR_NOW		DL_LAZY
11109#    else
11110#      ifdef RTLD_NOW
11111#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11112#      else
11113#        ifdef DL_NOW
11114#          define LT_DLLAZY_OR_NOW	DL_NOW
11115#        else
11116#          define LT_DLLAZY_OR_NOW	0
11117#        endif
11118#      endif
11119#    endif
11120#  endif
11121#endif
11122
11123/* When -fvisbility=hidden is used, assume the code has been annotated
11124   correspondingly for the symbols needed.  */
11125#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11126int fnord () __attribute__((visibility("default")));
11127#endif
11128
11129int fnord () { return 42; }
11130int main ()
11131{
11132  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11133  int status = $lt_dlunknown;
11134
11135  if (self)
11136    {
11137      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11138      else
11139        {
11140	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11141          else puts (dlerror ());
11142	}
11143      /* dlclose (self); */
11144    }
11145  else
11146    puts (dlerror ());
11147
11148  return status;
11149}
11150_LT_EOF
11151  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11152  (eval $ac_link) 2>&5
11153  ac_status=$?
11154  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11155  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11156    (./conftest; exit; ) >&5 2>/dev/null
11157    lt_status=$?
11158    case x$lt_status in
11159      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11160      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11161      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11162    esac
11163  else :
11164    # compilation failed
11165    lt_cv_dlopen_self_static=no
11166  fi
11167fi
11168rm -fr conftest*
11169
11170
11171fi
11172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11173$as_echo "$lt_cv_dlopen_self_static" >&6; }
11174    fi
11175
11176    CPPFLAGS="$save_CPPFLAGS"
11177    LDFLAGS="$save_LDFLAGS"
11178    LIBS="$save_LIBS"
11179    ;;
11180  esac
11181
11182  case $lt_cv_dlopen_self in
11183  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11184  *) enable_dlopen_self=unknown ;;
11185  esac
11186
11187  case $lt_cv_dlopen_self_static in
11188  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11189  *) enable_dlopen_self_static=unknown ;;
11190  esac
11191fi
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209striplib=
11210old_striplib=
11211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11212$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11213if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11214  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11215  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11216  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11217$as_echo "yes" >&6; }
11218else
11219# FIXME - insert some real tests, host_os isn't really good enough
11220  case $host_os in
11221  darwin*)
11222    if test -n "$STRIP" ; then
11223      striplib="$STRIP -x"
11224      old_striplib="$STRIP -S"
11225      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11226$as_echo "yes" >&6; }
11227    else
11228      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11229$as_echo "no" >&6; }
11230    fi
11231    ;;
11232  *)
11233    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11234$as_echo "no" >&6; }
11235    ;;
11236  esac
11237fi
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250  # Report which library types will actually be built
11251  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11252$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11253  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11254$as_echo "$can_build_shared" >&6; }
11255
11256  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11257$as_echo_n "checking whether to build shared libraries... " >&6; }
11258  test "$can_build_shared" = "no" && enable_shared=no
11259
11260  # On AIX, shared libraries and static libraries use the same namespace, and
11261  # are all built from PIC.
11262  case $host_os in
11263  aix3*)
11264    test "$enable_shared" = yes && enable_static=no
11265    if test -n "$RANLIB"; then
11266      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11267      postinstall_cmds='$RANLIB $lib'
11268    fi
11269    ;;
11270
11271  aix[4-9]*)
11272    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11273      test "$enable_shared" = yes && enable_static=no
11274    fi
11275    ;;
11276  esac
11277  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11278$as_echo "$enable_shared" >&6; }
11279
11280  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11281$as_echo_n "checking whether to build static libraries... " >&6; }
11282  # Make sure either enable_shared or enable_static is yes.
11283  test "$enable_shared" = yes || enable_static=yes
11284  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11285$as_echo "$enable_static" >&6; }
11286
11287
11288
11289
11290fi
11291ac_ext=c
11292ac_cpp='$CPP $CPPFLAGS'
11293ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11294ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11295ac_compiler_gnu=$ac_cv_c_compiler_gnu
11296
11297CC="$lt_save_CC"
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313        ac_config_commands="$ac_config_commands libtool"
11314
11315
11316
11317
11318# Only expand once:
11319
11320
11321
11322
11323echo .
11324echo Checking for programs
11325
11326ac_ext=c
11327ac_cpp='$CPP $CPPFLAGS'
11328ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11329ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11330ac_compiler_gnu=$ac_cv_c_compiler_gnu
11331if test -n "$ac_tool_prefix"; then
11332  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11333set dummy ${ac_tool_prefix}gcc; ac_word=$2
11334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11335$as_echo_n "checking for $ac_word... " >&6; }
11336if ${ac_cv_prog_CC+:} false; then :
11337  $as_echo_n "(cached) " >&6
11338else
11339  if test -n "$CC"; then
11340  ac_cv_prog_CC="$CC" # Let the user override the test.
11341else
11342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11343for as_dir in $PATH
11344do
11345  IFS=$as_save_IFS
11346  test -z "$as_dir" && as_dir=.
11347    for ac_exec_ext in '' $ac_executable_extensions; do
11348  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11349    ac_cv_prog_CC="${ac_tool_prefix}gcc"
11350    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11351    break 2
11352  fi
11353done
11354  done
11355IFS=$as_save_IFS
11356
11357fi
11358fi
11359CC=$ac_cv_prog_CC
11360if test -n "$CC"; then
11361  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11362$as_echo "$CC" >&6; }
11363else
11364  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11365$as_echo "no" >&6; }
11366fi
11367
11368
11369fi
11370if test -z "$ac_cv_prog_CC"; then
11371  ac_ct_CC=$CC
11372  # Extract the first word of "gcc", so it can be a program name with args.
11373set dummy gcc; ac_word=$2
11374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11375$as_echo_n "checking for $ac_word... " >&6; }
11376if ${ac_cv_prog_ac_ct_CC+:} false; then :
11377  $as_echo_n "(cached) " >&6
11378else
11379  if test -n "$ac_ct_CC"; then
11380  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11381else
11382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11383for as_dir in $PATH
11384do
11385  IFS=$as_save_IFS
11386  test -z "$as_dir" && as_dir=.
11387    for ac_exec_ext in '' $ac_executable_extensions; do
11388  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11389    ac_cv_prog_ac_ct_CC="gcc"
11390    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11391    break 2
11392  fi
11393done
11394  done
11395IFS=$as_save_IFS
11396
11397fi
11398fi
11399ac_ct_CC=$ac_cv_prog_ac_ct_CC
11400if test -n "$ac_ct_CC"; then
11401  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11402$as_echo "$ac_ct_CC" >&6; }
11403else
11404  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11405$as_echo "no" >&6; }
11406fi
11407
11408  if test "x$ac_ct_CC" = x; then
11409    CC=""
11410  else
11411    case $cross_compiling:$ac_tool_warned in
11412yes:)
11413{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11414$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11415ac_tool_warned=yes ;;
11416esac
11417    CC=$ac_ct_CC
11418  fi
11419else
11420  CC="$ac_cv_prog_CC"
11421fi
11422
11423if test -z "$CC"; then
11424          if test -n "$ac_tool_prefix"; then
11425    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11426set dummy ${ac_tool_prefix}cc; ac_word=$2
11427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11428$as_echo_n "checking for $ac_word... " >&6; }
11429if ${ac_cv_prog_CC+:} false; then :
11430  $as_echo_n "(cached) " >&6
11431else
11432  if test -n "$CC"; then
11433  ac_cv_prog_CC="$CC" # Let the user override the test.
11434else
11435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11436for as_dir in $PATH
11437do
11438  IFS=$as_save_IFS
11439  test -z "$as_dir" && as_dir=.
11440    for ac_exec_ext in '' $ac_executable_extensions; do
11441  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11442    ac_cv_prog_CC="${ac_tool_prefix}cc"
11443    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11444    break 2
11445  fi
11446done
11447  done
11448IFS=$as_save_IFS
11449
11450fi
11451fi
11452CC=$ac_cv_prog_CC
11453if test -n "$CC"; then
11454  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11455$as_echo "$CC" >&6; }
11456else
11457  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11458$as_echo "no" >&6; }
11459fi
11460
11461
11462  fi
11463fi
11464if test -z "$CC"; then
11465  # Extract the first word of "cc", so it can be a program name with args.
11466set dummy cc; ac_word=$2
11467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11468$as_echo_n "checking for $ac_word... " >&6; }
11469if ${ac_cv_prog_CC+:} false; then :
11470  $as_echo_n "(cached) " >&6
11471else
11472  if test -n "$CC"; then
11473  ac_cv_prog_CC="$CC" # Let the user override the test.
11474else
11475  ac_prog_rejected=no
11476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11477for as_dir in $PATH
11478do
11479  IFS=$as_save_IFS
11480  test -z "$as_dir" && as_dir=.
11481    for ac_exec_ext in '' $ac_executable_extensions; do
11482  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11483    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11484       ac_prog_rejected=yes
11485       continue
11486     fi
11487    ac_cv_prog_CC="cc"
11488    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11489    break 2
11490  fi
11491done
11492  done
11493IFS=$as_save_IFS
11494
11495if test $ac_prog_rejected = yes; then
11496  # We found a bogon in the path, so make sure we never use it.
11497  set dummy $ac_cv_prog_CC
11498  shift
11499  if test $# != 0; then
11500    # We chose a different compiler from the bogus one.
11501    # However, it has the same basename, so the bogon will be chosen
11502    # first if we set CC to just the basename; use the full file name.
11503    shift
11504    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11505  fi
11506fi
11507fi
11508fi
11509CC=$ac_cv_prog_CC
11510if test -n "$CC"; then
11511  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11512$as_echo "$CC" >&6; }
11513else
11514  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11515$as_echo "no" >&6; }
11516fi
11517
11518
11519fi
11520if test -z "$CC"; then
11521  if test -n "$ac_tool_prefix"; then
11522  for ac_prog in cl.exe
11523  do
11524    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11525set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11527$as_echo_n "checking for $ac_word... " >&6; }
11528if ${ac_cv_prog_CC+:} false; then :
11529  $as_echo_n "(cached) " >&6
11530else
11531  if test -n "$CC"; then
11532  ac_cv_prog_CC="$CC" # Let the user override the test.
11533else
11534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11535for as_dir in $PATH
11536do
11537  IFS=$as_save_IFS
11538  test -z "$as_dir" && as_dir=.
11539    for ac_exec_ext in '' $ac_executable_extensions; do
11540  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11541    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11542    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11543    break 2
11544  fi
11545done
11546  done
11547IFS=$as_save_IFS
11548
11549fi
11550fi
11551CC=$ac_cv_prog_CC
11552if test -n "$CC"; then
11553  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11554$as_echo "$CC" >&6; }
11555else
11556  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11557$as_echo "no" >&6; }
11558fi
11559
11560
11561    test -n "$CC" && break
11562  done
11563fi
11564if test -z "$CC"; then
11565  ac_ct_CC=$CC
11566  for ac_prog in cl.exe
11567do
11568  # Extract the first word of "$ac_prog", so it can be a program name with args.
11569set dummy $ac_prog; ac_word=$2
11570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11571$as_echo_n "checking for $ac_word... " >&6; }
11572if ${ac_cv_prog_ac_ct_CC+:} false; then :
11573  $as_echo_n "(cached) " >&6
11574else
11575  if test -n "$ac_ct_CC"; then
11576  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11577else
11578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11579for as_dir in $PATH
11580do
11581  IFS=$as_save_IFS
11582  test -z "$as_dir" && as_dir=.
11583    for ac_exec_ext in '' $ac_executable_extensions; do
11584  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11585    ac_cv_prog_ac_ct_CC="$ac_prog"
11586    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11587    break 2
11588  fi
11589done
11590  done
11591IFS=$as_save_IFS
11592
11593fi
11594fi
11595ac_ct_CC=$ac_cv_prog_ac_ct_CC
11596if test -n "$ac_ct_CC"; then
11597  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11598$as_echo "$ac_ct_CC" >&6; }
11599else
11600  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11601$as_echo "no" >&6; }
11602fi
11603
11604
11605  test -n "$ac_ct_CC" && break
11606done
11607
11608  if test "x$ac_ct_CC" = x; then
11609    CC=""
11610  else
11611    case $cross_compiling:$ac_tool_warned in
11612yes:)
11613{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11614$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11615ac_tool_warned=yes ;;
11616esac
11617    CC=$ac_ct_CC
11618  fi
11619fi
11620
11621fi
11622
11623
11624test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11625$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11626as_fn_error $? "no acceptable C compiler found in \$PATH
11627See \`config.log' for more details" "$LINENO" 5; }
11628
11629# Provide some information about the compiler.
11630$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11631set X $ac_compile
11632ac_compiler=$2
11633for ac_option in --version -v -V -qversion; do
11634  { { ac_try="$ac_compiler $ac_option >&5"
11635case "(($ac_try" in
11636  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11637  *) ac_try_echo=$ac_try;;
11638esac
11639eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11640$as_echo "$ac_try_echo"; } >&5
11641  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11642  ac_status=$?
11643  if test -s conftest.err; then
11644    sed '10a\
11645... rest of stderr output deleted ...
11646         10q' conftest.err >conftest.er1
11647    cat conftest.er1 >&5
11648  fi
11649  rm -f conftest.er1 conftest.err
11650  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11651  test $ac_status = 0; }
11652done
11653
11654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11655$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11656if ${ac_cv_c_compiler_gnu+:} false; then :
11657  $as_echo_n "(cached) " >&6
11658else
11659  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11660/* end confdefs.h.  */
11661
11662int
11663main ()
11664{
11665#ifndef __GNUC__
11666       choke me
11667#endif
11668
11669  ;
11670  return 0;
11671}
11672_ACEOF
11673if ac_fn_c_try_compile "$LINENO"; then :
11674  ac_compiler_gnu=yes
11675else
11676  ac_compiler_gnu=no
11677fi
11678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11679ac_cv_c_compiler_gnu=$ac_compiler_gnu
11680
11681fi
11682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11683$as_echo "$ac_cv_c_compiler_gnu" >&6; }
11684if test $ac_compiler_gnu = yes; then
11685  GCC=yes
11686else
11687  GCC=
11688fi
11689ac_test_CFLAGS=${CFLAGS+set}
11690ac_save_CFLAGS=$CFLAGS
11691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11692$as_echo_n "checking whether $CC accepts -g... " >&6; }
11693if ${ac_cv_prog_cc_g+:} false; then :
11694  $as_echo_n "(cached) " >&6
11695else
11696  ac_save_c_werror_flag=$ac_c_werror_flag
11697   ac_c_werror_flag=yes
11698   ac_cv_prog_cc_g=no
11699   CFLAGS="-g"
11700   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11701/* end confdefs.h.  */
11702
11703int
11704main ()
11705{
11706
11707  ;
11708  return 0;
11709}
11710_ACEOF
11711if ac_fn_c_try_compile "$LINENO"; then :
11712  ac_cv_prog_cc_g=yes
11713else
11714  CFLAGS=""
11715      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11716/* end confdefs.h.  */
11717
11718int
11719main ()
11720{
11721
11722  ;
11723  return 0;
11724}
11725_ACEOF
11726if ac_fn_c_try_compile "$LINENO"; then :
11727
11728else
11729  ac_c_werror_flag=$ac_save_c_werror_flag
11730	 CFLAGS="-g"
11731	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11732/* end confdefs.h.  */
11733
11734int
11735main ()
11736{
11737
11738  ;
11739  return 0;
11740}
11741_ACEOF
11742if ac_fn_c_try_compile "$LINENO"; then :
11743  ac_cv_prog_cc_g=yes
11744fi
11745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11746fi
11747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11748fi
11749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11750   ac_c_werror_flag=$ac_save_c_werror_flag
11751fi
11752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
11753$as_echo "$ac_cv_prog_cc_g" >&6; }
11754if test "$ac_test_CFLAGS" = set; then
11755  CFLAGS=$ac_save_CFLAGS
11756elif test $ac_cv_prog_cc_g = yes; then
11757  if test "$GCC" = yes; then
11758    CFLAGS="-g -O2"
11759  else
11760    CFLAGS="-g"
11761  fi
11762else
11763  if test "$GCC" = yes; then
11764    CFLAGS="-O2"
11765  else
11766    CFLAGS=
11767  fi
11768fi
11769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
11770$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11771if ${ac_cv_prog_cc_c89+:} false; then :
11772  $as_echo_n "(cached) " >&6
11773else
11774  ac_cv_prog_cc_c89=no
11775ac_save_CC=$CC
11776cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11777/* end confdefs.h.  */
11778#include <stdarg.h>
11779#include <stdio.h>
11780#include <sys/types.h>
11781#include <sys/stat.h>
11782/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
11783struct buf { int x; };
11784FILE * (*rcsopen) (struct buf *, struct stat *, int);
11785static char *e (p, i)
11786     char **p;
11787     int i;
11788{
11789  return p[i];
11790}
11791static char *f (char * (*g) (char **, int), char **p, ...)
11792{
11793  char *s;
11794  va_list v;
11795  va_start (v,p);
11796  s = g (p, va_arg (v,int));
11797  va_end (v);
11798  return s;
11799}
11800
11801/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
11802   function prototypes and stuff, but not '\xHH' hex character constants.
11803   These don't provoke an error unfortunately, instead are silently treated
11804   as 'x'.  The following induces an error, until -std is added to get
11805   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
11806   array size at least.  It's necessary to write '\x00'==0 to get something
11807   that's true only with -std.  */
11808int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11809
11810/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11811   inside strings and character constants.  */
11812#define FOO(x) 'x'
11813int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11814
11815int test (int i, double x);
11816struct s1 {int (*f) (int a);};
11817struct s2 {int (*f) (double a);};
11818int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11819int argc;
11820char **argv;
11821int
11822main ()
11823{
11824return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
11825  ;
11826  return 0;
11827}
11828_ACEOF
11829for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11830	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11831do
11832  CC="$ac_save_CC $ac_arg"
11833  if ac_fn_c_try_compile "$LINENO"; then :
11834  ac_cv_prog_cc_c89=$ac_arg
11835fi
11836rm -f core conftest.err conftest.$ac_objext
11837  test "x$ac_cv_prog_cc_c89" != "xno" && break
11838done
11839rm -f conftest.$ac_ext
11840CC=$ac_save_CC
11841
11842fi
11843# AC_CACHE_VAL
11844case "x$ac_cv_prog_cc_c89" in
11845  x)
11846    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11847$as_echo "none needed" >&6; } ;;
11848  xno)
11849    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11850$as_echo "unsupported" >&6; } ;;
11851  *)
11852    CC="$CC $ac_cv_prog_cc_c89"
11853    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
11854$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11855esac
11856if test "x$ac_cv_prog_cc_c89" != xno; then :
11857
11858fi
11859
11860ac_ext=c
11861ac_cpp='$CPP $CPPFLAGS'
11862ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11863ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11864ac_compiler_gnu=$ac_cv_c_compiler_gnu
11865
11866depcc="$CC"   am_compiler_list=
11867
11868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11869$as_echo_n "checking dependency style of $depcc... " >&6; }
11870if ${am_cv_CC_dependencies_compiler_type+:} false; then :
11871  $as_echo_n "(cached) " >&6
11872else
11873  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11874  # We make a subdir and do the tests there.  Otherwise we can end up
11875  # making bogus files that we don't know about and never remove.  For
11876  # instance it was reported that on HP-UX the gcc test will end up
11877  # making a dummy file named `D' -- because `-MD' means `put the output
11878  # in D'.
11879  rm -rf conftest.dir
11880  mkdir conftest.dir
11881  # Copy depcomp to subdir because otherwise we won't find it if we're
11882  # using a relative directory.
11883  cp "$am_depcomp" conftest.dir
11884  cd conftest.dir
11885  # We will build objects and dependencies in a subdirectory because
11886  # it helps to detect inapplicable dependency modes.  For instance
11887  # both Tru64's cc and ICC support -MD to output dependencies as a
11888  # side effect of compilation, but ICC will put the dependencies in
11889  # the current directory while Tru64 will put them in the object
11890  # directory.
11891  mkdir sub
11892
11893  am_cv_CC_dependencies_compiler_type=none
11894  if test "$am_compiler_list" = ""; then
11895     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11896  fi
11897  am__universal=false
11898  case " $depcc " in #(
11899     *\ -arch\ *\ -arch\ *) am__universal=true ;;
11900     esac
11901
11902  for depmode in $am_compiler_list; do
11903    # Setup a source with many dependencies, because some compilers
11904    # like to wrap large dependency lists on column 80 (with \), and
11905    # we should not choose a depcomp mode which is confused by this.
11906    #
11907    # We need to recreate these files for each test, as the compiler may
11908    # overwrite some of them when testing with obscure command lines.
11909    # This happens at least with the AIX C compiler.
11910    : > sub/conftest.c
11911    for i in 1 2 3 4 5 6; do
11912      echo '#include "conftst'$i'.h"' >> sub/conftest.c
11913      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11914      # Solaris 8's {/usr,}/bin/sh.
11915      touch sub/conftst$i.h
11916    done
11917    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11918
11919    # We check with `-c' and `-o' for the sake of the "dashmstdout"
11920    # mode.  It turns out that the SunPro C++ compiler does not properly
11921    # handle `-M -o', and we need to detect this.  Also, some Intel
11922    # versions had trouble with output in subdirs
11923    am__obj=sub/conftest.${OBJEXT-o}
11924    am__minus_obj="-o $am__obj"
11925    case $depmode in
11926    gcc)
11927      # This depmode causes a compiler race in universal mode.
11928      test "$am__universal" = false || continue
11929      ;;
11930    nosideeffect)
11931      # after this tag, mechanisms are not by side-effect, so they'll
11932      # only be used when explicitly requested
11933      if test "x$enable_dependency_tracking" = xyes; then
11934	continue
11935      else
11936	break
11937      fi
11938      ;;
11939    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
11940      # This compiler won't grok `-c -o', but also, the minuso test has
11941      # not run yet.  These depmodes are late enough in the game, and
11942      # so weak that their functioning should not be impacted.
11943      am__obj=conftest.${OBJEXT-o}
11944      am__minus_obj=
11945      ;;
11946    none) break ;;
11947    esac
11948    if depmode=$depmode \
11949       source=sub/conftest.c object=$am__obj \
11950       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11951       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11952         >/dev/null 2>conftest.err &&
11953       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11954       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11955       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11956       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11957      # icc doesn't choke on unknown options, it will just issue warnings
11958      # or remarks (even with -Werror).  So we grep stderr for any message
11959      # that says an option was ignored or not supported.
11960      # When given -MP, icc 7.0 and 7.1 complain thusly:
11961      #   icc: Command line warning: ignoring option '-M'; no argument required
11962      # The diagnosis changed in icc 8.0:
11963      #   icc: Command line remark: option '-MP' not supported
11964      if (grep 'ignoring option' conftest.err ||
11965          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11966        am_cv_CC_dependencies_compiler_type=$depmode
11967        break
11968      fi
11969    fi
11970  done
11971
11972  cd ..
11973  rm -rf conftest.dir
11974else
11975  am_cv_CC_dependencies_compiler_type=none
11976fi
11977
11978fi
11979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
11980$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
11981CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
11982
11983 if
11984  test "x$enable_dependency_tracking" != xno \
11985  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
11986  am__fastdepCC_TRUE=
11987  am__fastdepCC_FALSE='#'
11988else
11989  am__fastdepCC_TRUE='#'
11990  am__fastdepCC_FALSE=
11991fi
11992
11993
11994
11995for ac_prog in gawk mawk nawk awk
11996do
11997  # Extract the first word of "$ac_prog", so it can be a program name with args.
11998set dummy $ac_prog; ac_word=$2
11999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12000$as_echo_n "checking for $ac_word... " >&6; }
12001if ${ac_cv_prog_AWK+:} false; then :
12002  $as_echo_n "(cached) " >&6
12003else
12004  if test -n "$AWK"; then
12005  ac_cv_prog_AWK="$AWK" # Let the user override the test.
12006else
12007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12008for as_dir in $PATH
12009do
12010  IFS=$as_save_IFS
12011  test -z "$as_dir" && as_dir=.
12012    for ac_exec_ext in '' $ac_executable_extensions; do
12013  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12014    ac_cv_prog_AWK="$ac_prog"
12015    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12016    break 2
12017  fi
12018done
12019  done
12020IFS=$as_save_IFS
12021
12022fi
12023fi
12024AWK=$ac_cv_prog_AWK
12025if test -n "$AWK"; then
12026  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
12027$as_echo "$AWK" >&6; }
12028else
12029  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12030$as_echo "no" >&6; }
12031fi
12032
12033
12034  test -n "$AWK" && break
12035done
12036
12037
12038echo .
12039echo Checking for header files
12040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12041$as_echo_n "checking for ANSI C header files... " >&6; }
12042if ${ac_cv_header_stdc+:} false; then :
12043  $as_echo_n "(cached) " >&6
12044else
12045  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12046/* end confdefs.h.  */
12047#include <stdlib.h>
12048#include <stdarg.h>
12049#include <string.h>
12050#include <float.h>
12051
12052int
12053main ()
12054{
12055
12056  ;
12057  return 0;
12058}
12059_ACEOF
12060if ac_fn_c_try_compile "$LINENO"; then :
12061  ac_cv_header_stdc=yes
12062else
12063  ac_cv_header_stdc=no
12064fi
12065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12066
12067if test $ac_cv_header_stdc = yes; then
12068  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12069  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12070/* end confdefs.h.  */
12071#include <string.h>
12072
12073_ACEOF
12074if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12075  $EGREP "memchr" >/dev/null 2>&1; then :
12076
12077else
12078  ac_cv_header_stdc=no
12079fi
12080rm -f conftest*
12081
12082fi
12083
12084if test $ac_cv_header_stdc = yes; then
12085  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12086  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12087/* end confdefs.h.  */
12088#include <stdlib.h>
12089
12090_ACEOF
12091if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12092  $EGREP "free" >/dev/null 2>&1; then :
12093
12094else
12095  ac_cv_header_stdc=no
12096fi
12097rm -f conftest*
12098
12099fi
12100
12101if test $ac_cv_header_stdc = yes; then
12102  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12103  if test "$cross_compiling" = yes; then :
12104  :
12105else
12106  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12107/* end confdefs.h.  */
12108#include <ctype.h>
12109#include <stdlib.h>
12110#if ((' ' & 0x0FF) == 0x020)
12111# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12112# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12113#else
12114# define ISLOWER(c) \
12115		   (('a' <= (c) && (c) <= 'i') \
12116		     || ('j' <= (c) && (c) <= 'r') \
12117		     || ('s' <= (c) && (c) <= 'z'))
12118# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12119#endif
12120
12121#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12122int
12123main ()
12124{
12125  int i;
12126  for (i = 0; i < 256; i++)
12127    if (XOR (islower (i), ISLOWER (i))
12128	|| toupper (i) != TOUPPER (i))
12129      return 2;
12130  return 0;
12131}
12132_ACEOF
12133if ac_fn_c_try_run "$LINENO"; then :
12134
12135else
12136  ac_cv_header_stdc=no
12137fi
12138rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12139  conftest.$ac_objext conftest.beam conftest.$ac_ext
12140fi
12141
12142fi
12143fi
12144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12145$as_echo "$ac_cv_header_stdc" >&6; }
12146if test $ac_cv_header_stdc = yes; then
12147
12148$as_echo "#define STDC_HEADERS 1" >>confdefs.h
12149
12150fi
12151
12152for ac_header in linux/capability.h
12153do :
12154  ac_fn_c_check_header_mongrel "$LINENO" "linux/capability.h" "ac_cv_header_linux_capability_h" "$ac_includes_default"
12155if test "x$ac_cv_header_linux_capability_h" = xyes; then :
12156  cat >>confdefs.h <<_ACEOF
12157#define HAVE_LINUX_CAPABILITY_H 1
12158_ACEOF
12159
12160else
12161  as_fn_error $? "linux/capability.h is required in order to build libcap-ng." "$LINENO" 5
12162fi
12163
12164done
12165
12166for ac_header in attr/xattr.h
12167do :
12168  ac_fn_c_check_header_mongrel "$LINENO" "attr/xattr.h" "ac_cv_header_attr_xattr_h" "$ac_includes_default"
12169if test "x$ac_cv_header_attr_xattr_h" = xyes; then :
12170  cat >>confdefs.h <<_ACEOF
12171#define HAVE_ATTR_XATTR_H 1
12172_ACEOF
12173
12174else
12175  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: attr/xattr.h not found" >&5
12176$as_echo "$as_me: WARNING: attr/xattr.h not found" >&2;}
12177fi
12178
12179done
12180
12181for ac_header in linux/securebits.h
12182do :
12183  ac_fn_c_check_header_mongrel "$LINENO" "linux/securebits.h" "ac_cv_header_linux_securebits_h" "$ac_includes_default"
12184if test "x$ac_cv_header_linux_securebits_h" = xyes; then :
12185  cat >>confdefs.h <<_ACEOF
12186#define HAVE_LINUX_SECUREBITS_H 1
12187_ACEOF
12188
12189fi
12190
12191done
12192
12193
12194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12195$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12196if ${ac_cv_c_const+:} false; then :
12197  $as_echo_n "(cached) " >&6
12198else
12199  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12200/* end confdefs.h.  */
12201
12202int
12203main ()
12204{
12205/* FIXME: Include the comments suggested by Paul. */
12206#ifndef __cplusplus
12207  /* Ultrix mips cc rejects this.  */
12208  typedef int charset[2];
12209  const charset cs;
12210  /* SunOS 4.1.1 cc rejects this.  */
12211  char const *const *pcpcc;
12212  char **ppc;
12213  /* NEC SVR4.0.2 mips cc rejects this.  */
12214  struct point {int x, y;};
12215  static struct point const zero = {0,0};
12216  /* AIX XL C 1.02.0.0 rejects this.
12217     It does not let you subtract one const X* pointer from another in
12218     an arm of an if-expression whose if-part is not a constant
12219     expression */
12220  const char *g = "string";
12221  pcpcc = &g + (g ? g-g : 0);
12222  /* HPUX 7.0 cc rejects these. */
12223  ++pcpcc;
12224  ppc = (char**) pcpcc;
12225  pcpcc = (char const *const *) ppc;
12226  { /* SCO 3.2v4 cc rejects this.  */
12227    char *t;
12228    char const *s = 0 ? (char *) 0 : (char const *) 0;
12229
12230    *t++ = 0;
12231    if (s) return 0;
12232  }
12233  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12234    int x[] = {25, 17};
12235    const int *foo = &x[0];
12236    ++foo;
12237  }
12238  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12239    typedef const int *iptr;
12240    iptr p = 0;
12241    ++p;
12242  }
12243  { /* AIX XL C 1.02.0.0 rejects this saying
12244       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12245    struct s { int j; const int *ap[3]; };
12246    struct s *b; b->j = 5;
12247  }
12248  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12249    const int foo = 10;
12250    if (!foo) return 0;
12251  }
12252  return !cs[0] && !zero.x;
12253#endif
12254
12255  ;
12256  return 0;
12257}
12258_ACEOF
12259if ac_fn_c_try_compile "$LINENO"; then :
12260  ac_cv_c_const=yes
12261else
12262  ac_cv_c_const=no
12263fi
12264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12265fi
12266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12267$as_echo "$ac_cv_c_const" >&6; }
12268if test $ac_cv_c_const = no; then
12269
12270$as_echo "#define const /**/" >>confdefs.h
12271
12272fi
12273
12274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
12275$as_echo_n "checking for inline... " >&6; }
12276if ${ac_cv_c_inline+:} false; then :
12277  $as_echo_n "(cached) " >&6
12278else
12279  ac_cv_c_inline=no
12280for ac_kw in inline __inline__ __inline; do
12281  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12282/* end confdefs.h.  */
12283#ifndef __cplusplus
12284typedef int foo_t;
12285static $ac_kw foo_t static_foo () {return 0; }
12286$ac_kw foo_t foo () {return 0; }
12287#endif
12288
12289_ACEOF
12290if ac_fn_c_try_compile "$LINENO"; then :
12291  ac_cv_c_inline=$ac_kw
12292fi
12293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12294  test "$ac_cv_c_inline" != no && break
12295done
12296
12297fi
12298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
12299$as_echo "$ac_cv_c_inline" >&6; }
12300
12301case $ac_cv_c_inline in
12302  inline | yes) ;;
12303  *)
12304    case $ac_cv_c_inline in
12305      no) ac_val=;;
12306      *) ac_val=$ac_cv_c_inline;;
12307    esac
12308    cat >>confdefs.h <<_ACEOF
12309#ifndef __cplusplus
12310#define inline $ac_val
12311#endif
12312_ACEOF
12313    ;;
12314esac
12315
12316if test "x$CC" != xcc; then
12317  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
12318$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
12319else
12320  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
12321$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
12322fi
12323set dummy $CC; ac_cc=`$as_echo "$2" |
12324		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
12325if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
12326  $as_echo_n "(cached) " >&6
12327else
12328  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12329/* end confdefs.h.  */
12330
12331int
12332main ()
12333{
12334
12335  ;
12336  return 0;
12337}
12338_ACEOF
12339# Make sure it works both with $CC and with simple cc.
12340# We do the test twice because some compilers refuse to overwrite an
12341# existing .o file with -o, though they will create one.
12342ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
12343rm -f conftest2.*
12344if { { case "(($ac_try" in
12345  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12346  *) ac_try_echo=$ac_try;;
12347esac
12348eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12349$as_echo "$ac_try_echo"; } >&5
12350  (eval "$ac_try") 2>&5
12351  ac_status=$?
12352  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12353  test $ac_status = 0; } &&
12354   test -f conftest2.$ac_objext && { { case "(($ac_try" in
12355  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12356  *) ac_try_echo=$ac_try;;
12357esac
12358eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12359$as_echo "$ac_try_echo"; } >&5
12360  (eval "$ac_try") 2>&5
12361  ac_status=$?
12362  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12363  test $ac_status = 0; };
12364then
12365  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
12366  if test "x$CC" != xcc; then
12367    # Test first that cc exists at all.
12368    if { ac_try='cc -c conftest.$ac_ext >&5'
12369  { { case "(($ac_try" in
12370  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12371  *) ac_try_echo=$ac_try;;
12372esac
12373eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12374$as_echo "$ac_try_echo"; } >&5
12375  (eval "$ac_try") 2>&5
12376  ac_status=$?
12377  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12378  test $ac_status = 0; }; }; then
12379      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
12380      rm -f conftest2.*
12381      if { { case "(($ac_try" in
12382  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12383  *) ac_try_echo=$ac_try;;
12384esac
12385eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12386$as_echo "$ac_try_echo"; } >&5
12387  (eval "$ac_try") 2>&5
12388  ac_status=$?
12389  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12390  test $ac_status = 0; } &&
12391	 test -f conftest2.$ac_objext && { { case "(($ac_try" in
12392  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12393  *) ac_try_echo=$ac_try;;
12394esac
12395eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12396$as_echo "$ac_try_echo"; } >&5
12397  (eval "$ac_try") 2>&5
12398  ac_status=$?
12399  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12400  test $ac_status = 0; };
12401      then
12402	# cc works too.
12403	:
12404      else
12405	# cc exists but doesn't like -o.
12406	eval ac_cv_prog_cc_${ac_cc}_c_o=no
12407      fi
12408    fi
12409  fi
12410else
12411  eval ac_cv_prog_cc_${ac_cc}_c_o=no
12412fi
12413rm -f core conftest*
12414
12415fi
12416if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
12417  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12418$as_echo "yes" >&6; }
12419else
12420  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12421$as_echo "no" >&6; }
12422
12423$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
12424
12425fi
12426
12427# FIXME: we rely on the cache variable name because
12428# there is no other way.
12429set dummy $CC
12430am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
12431eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
12432if test "$am_t" != yes; then
12433   # Losing compiler, so override with the script.
12434   # FIXME: It is wrong to rewrite CC.
12435   # But if we don't then we get into trouble of one sort or another.
12436   # A longer-term fix would be to have automake use am__CC in this case,
12437   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
12438   CC="$am_aux_dir/compile $CC"
12439fi
12440
12441
12442
12443ALLWARNS=""
12444ALLDEBUG="-g"
12445OPT="-O"
12446if test x"$GCC" = x"yes"; then
12447  OPT="-O2 -pipe"
12448  case "$target" in
12449    *linux*)
12450             ALLWARNS="-W -Wall -Wundef -Wpointer-arith -Wcast-align \
12451-Wwrite-strings -Waggregate-return -Wstrict-prototypes \
12452-Wmissing-prototypes -Wmissing-declarations -Wredundant-decls \
12453-Wnested-externs -Winline -Wfloat-equal -Wchar-subscripts"
12454             ;;
12455    esac
12456fi
12457
12458ALLDEBUG="-g"
12459
12460# Check whether --with-debug was given.
12461if test "${with_debug+set}" = set; then :
12462  withval=$with_debug;
12463if test "x${withval}" = xyes; then
12464        DEBUG="$ALLDEBUG"
12465        OPT="-O"
12466         if true; then
12467  DEBUG_TRUE=
12468  DEBUG_FALSE='#'
12469else
12470  DEBUG_TRUE='#'
12471  DEBUG_FALSE=
12472fi
12473
12474else
12475        DEBUG="-DNDEBUG"
12476         if false; then
12477  DEBUG_TRUE=
12478  DEBUG_FALSE='#'
12479else
12480  DEBUG_TRUE='#'
12481  DEBUG_FALSE=
12482fi
12483
12484fi
12485
12486else
12487   DEBUG="-DNDEBUG";  if false; then
12488  DEBUG_TRUE=
12489  DEBUG_FALSE='#'
12490else
12491  DEBUG_TRUE='#'
12492  DEBUG_FALSE=
12493fi
12494
12495fi
12496
12497
12498
12499# Check whether --with-warn was given.
12500if test "${with_warn+set}" = set; then :
12501  withval=$with_warn;
12502if test "x${withval}" = xyes; then
12503        WARNS="$ALLWARNS"
12504else
12505        WARNS=""
12506fi
12507
12508else
12509  WARNS="$ALLWARNS"
12510fi
12511
12512
12513
12514ac_fn_c_check_header_mongrel "$LINENO" "sys/syscall.h" "ac_cv_header_sys_syscall_h" "$ac_includes_default"
12515if test "x$ac_cv_header_sys_syscall_h" = xyes; then :
12516
12517$as_echo "#define HAVE_SYSCALL_H 1" >>confdefs.h
12518
12519fi
12520
12521
12522
12523# Extract the first word of "swig", so it can be a program name with args.
12524set dummy swig; ac_word=$2
12525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12526$as_echo_n "checking for $ac_word... " >&6; }
12527if ${ac_cv_prog_swig_found+:} false; then :
12528  $as_echo_n "(cached) " >&6
12529else
12530  if test -n "$swig_found"; then
12531  ac_cv_prog_swig_found="$swig_found" # Let the user override the test.
12532else
12533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12534for as_dir in $PATH
12535do
12536  IFS=$as_save_IFS
12537  test -z "$as_dir" && as_dir=.
12538    for ac_exec_ext in '' $ac_executable_extensions; do
12539  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12540    ac_cv_prog_swig_found="yes"
12541    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12542    break 2
12543  fi
12544done
12545  done
12546IFS=$as_save_IFS
12547
12548  test -z "$ac_cv_prog_swig_found" && ac_cv_prog_swig_found="no"
12549fi
12550fi
12551swig_found=$ac_cv_prog_swig_found
12552if test -n "$swig_found"; then
12553  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_found" >&5
12554$as_echo "$swig_found" >&6; }
12555else
12556  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12557$as_echo "no" >&6; }
12558fi
12559
12560
12561if test x"${swig_found}" = x"no" ; then
12562	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Swig not found - python bindings will not be made\"" >&5
12563$as_echo "$as_me: WARNING: \"Swig not found - python bindings will not be made\"" >&2;}
12564fi
12565 if test x"${swig_found}" = x"yes"; then
12566  HAVE_SWIG_TRUE=
12567  HAVE_SWIG_FALSE='#'
12568else
12569  HAVE_SWIG_TRUE='#'
12570  HAVE_SWIG_FALSE=
12571fi
12572
12573
12574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to create python bindings" >&5
12575$as_echo_n "checking whether to create python bindings... " >&6; }
12576
12577# Check whether --with-python was given.
12578if test "${with_python+set}" = set; then :
12579  withval=$with_python; use_python=$withval
12580else
12581  use_python=auto
12582fi
12583
12584if test x$use_python = xno ; then
12585	python_found="no"
12586	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12587$as_echo "no" >&6; }
12588else
12589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: testing" >&5
12590$as_echo "testing" >&6; }
12591
12592
12593
12594
12595
12596
12597        # Find any Python interpreter.
12598    if test -z "$PYTHON"; then
12599      for ac_prog in python python2 python3 python3.2 python3.1 python3.0 python2.7  python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0
12600do
12601  # Extract the first word of "$ac_prog", so it can be a program name with args.
12602set dummy $ac_prog; ac_word=$2
12603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12604$as_echo_n "checking for $ac_word... " >&6; }
12605if ${ac_cv_path_PYTHON+:} false; then :
12606  $as_echo_n "(cached) " >&6
12607else
12608  case $PYTHON in
12609  [\\/]* | ?:[\\/]*)
12610  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
12611  ;;
12612  *)
12613  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12614for as_dir in $PATH
12615do
12616  IFS=$as_save_IFS
12617  test -z "$as_dir" && as_dir=.
12618    for ac_exec_ext in '' $ac_executable_extensions; do
12619  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12620    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
12621    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12622    break 2
12623  fi
12624done
12625  done
12626IFS=$as_save_IFS
12627
12628  ;;
12629esac
12630fi
12631PYTHON=$ac_cv_path_PYTHON
12632if test -n "$PYTHON"; then
12633  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
12634$as_echo "$PYTHON" >&6; }
12635else
12636  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12637$as_echo "no" >&6; }
12638fi
12639
12640
12641  test -n "$PYTHON" && break
12642done
12643test -n "$PYTHON" || PYTHON=":"
12644
12645    fi
12646    am_display_PYTHON=python
12647
12648
12649  if test "$PYTHON" = :; then
12650      as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
12651  else
12652
12653
12654  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
12655$as_echo_n "checking for $am_display_PYTHON version... " >&6; }
12656if ${am_cv_python_version+:} false; then :
12657  $as_echo_n "(cached) " >&6
12658else
12659  am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
12660fi
12661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
12662$as_echo "$am_cv_python_version" >&6; }
12663  PYTHON_VERSION=$am_cv_python_version
12664
12665
12666
12667  PYTHON_PREFIX='${prefix}'
12668
12669  PYTHON_EXEC_PREFIX='${exec_prefix}'
12670
12671
12672
12673  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
12674$as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
12675if ${am_cv_python_platform+:} false; then :
12676  $as_echo_n "(cached) " >&6
12677else
12678  am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
12679fi
12680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
12681$as_echo "$am_cv_python_platform" >&6; }
12682  PYTHON_PLATFORM=$am_cv_python_platform
12683
12684
12685
12686
12687            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
12688$as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
12689if ${am_cv_python_pythondir+:} false; then :
12690  $as_echo_n "(cached) " >&6
12691else
12692  if test "x$prefix" = xNONE
12693     then
12694       am_py_prefix=$ac_default_prefix
12695     else
12696       am_py_prefix=$prefix
12697     fi
12698     am_cv_python_pythondir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(0,0,prefix='$am_py_prefix'))" 2>/dev/null`
12699     case $am_cv_python_pythondir in
12700     $am_py_prefix*)
12701       am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
12702       am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
12703       ;;
12704     *)
12705       case $am_py_prefix in
12706         /usr|/System*) ;;
12707         *)
12708	  am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
12709	  ;;
12710       esac
12711       ;;
12712     esac
12713
12714fi
12715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
12716$as_echo "$am_cv_python_pythondir" >&6; }
12717  pythondir=$am_cv_python_pythondir
12718
12719
12720
12721  pkgpythondir=\${pythondir}/$PACKAGE
12722
12723
12724        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
12725$as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
12726if ${am_cv_python_pyexecdir+:} false; then :
12727  $as_echo_n "(cached) " >&6
12728else
12729  if test "x$exec_prefix" = xNONE
12730     then
12731       am_py_exec_prefix=$am_py_prefix
12732     else
12733       am_py_exec_prefix=$exec_prefix
12734     fi
12735     am_cv_python_pyexecdir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(1,0,prefix='$am_py_exec_prefix'))" 2>/dev/null`
12736     case $am_cv_python_pyexecdir in
12737     $am_py_exec_prefix*)
12738       am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
12739       am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
12740       ;;
12741     *)
12742       case $am_py_exec_prefix in
12743         /usr|/System*) ;;
12744         *)
12745	   am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
12746	   ;;
12747       esac
12748       ;;
12749     esac
12750
12751fi
12752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
12753$as_echo "$am_cv_python_pyexecdir" >&6; }
12754  pyexecdir=$am_cv_python_pyexecdir
12755
12756
12757
12758  pkgpyexecdir=\${pyexecdir}/$PACKAGE
12759
12760
12761
12762  fi
12763
12764
12765if test -f /usr/include/python${am_cv_python_version}/Python.h ; then
12766	python_found="yes"
12767	{ $as_echo "$as_me:${as_lineno-$LINENO}: Python bindings will be built" >&5
12768$as_echo "$as_me: Python bindings will be built" >&6;}
12769else
12770	python_found="no"
12771	if test x$use_python = xyes ; then
12772		as_fn_error $? "Python explicitly required and python headers found" "$LINENO" 5
12773	else
12774		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Python headers not found - python bindings will not be made\"" >&5
12775$as_echo "$as_me: WARNING: \"Python headers not found - python bindings will not be made\"" >&2;}
12776	fi
12777fi
12778fi
12779 if test ${python_found} = "yes"; then
12780  HAVE_PYTHON_TRUE=
12781  HAVE_PYTHON_FALSE='#'
12782else
12783  HAVE_PYTHON_TRUE='#'
12784  HAVE_PYTHON_FALSE=
12785fi
12786
12787
12788ac_config_files="$ac_config_files Makefile src/Makefile src/libcap-ng.pc src/test/Makefile bindings/Makefile bindings/python/Makefile bindings/python/test/Makefile utils/Makefile m4/Makefile docs/Makefile"
12789
12790cat >confcache <<\_ACEOF
12791# This file is a shell script that caches the results of configure
12792# tests run on this system so they can be shared between configure
12793# scripts and configure runs, see configure's option --config-cache.
12794# It is not useful on other systems.  If it contains results you don't
12795# want to keep, you may remove or edit it.
12796#
12797# config.status only pays attention to the cache file if you give it
12798# the --recheck option to rerun configure.
12799#
12800# `ac_cv_env_foo' variables (set or unset) will be overridden when
12801# loading this file, other *unset* `ac_cv_foo' will be assigned the
12802# following values.
12803
12804_ACEOF
12805
12806# The following way of writing the cache mishandles newlines in values,
12807# but we know of no workaround that is simple, portable, and efficient.
12808# So, we kill variables containing newlines.
12809# Ultrix sh set writes to stderr and can't be redirected directly,
12810# and sets the high bit in the cache file unless we assign to the vars.
12811(
12812  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12813    eval ac_val=\$$ac_var
12814    case $ac_val in #(
12815    *${as_nl}*)
12816      case $ac_var in #(
12817      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12818$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12819      esac
12820      case $ac_var in #(
12821      _ | IFS | as_nl) ;; #(
12822      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12823      *) { eval $ac_var=; unset $ac_var;} ;;
12824      esac ;;
12825    esac
12826  done
12827
12828  (set) 2>&1 |
12829    case $as_nl`(ac_space=' '; set) 2>&1` in #(
12830    *${as_nl}ac_space=\ *)
12831      # `set' does not quote correctly, so add quotes: double-quote
12832      # substitution turns \\\\ into \\, and sed turns \\ into \.
12833      sed -n \
12834	"s/'/'\\\\''/g;
12835	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12836      ;; #(
12837    *)
12838      # `set' quotes correctly as required by POSIX, so do not add quotes.
12839      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12840      ;;
12841    esac |
12842    sort
12843) |
12844  sed '
12845     /^ac_cv_env_/b end
12846     t clear
12847     :clear
12848     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12849     t end
12850     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12851     :end' >>confcache
12852if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12853  if test -w "$cache_file"; then
12854    if test "x$cache_file" != "x/dev/null"; then
12855      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12856$as_echo "$as_me: updating cache $cache_file" >&6;}
12857      if test ! -f "$cache_file" || test -h "$cache_file"; then
12858	cat confcache >"$cache_file"
12859      else
12860        case $cache_file in #(
12861        */* | ?:*)
12862	  mv -f confcache "$cache_file"$$ &&
12863	  mv -f "$cache_file"$$ "$cache_file" ;; #(
12864        *)
12865	  mv -f confcache "$cache_file" ;;
12866	esac
12867      fi
12868    fi
12869  else
12870    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12871$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12872  fi
12873fi
12874rm -f confcache
12875
12876test "x$prefix" = xNONE && prefix=$ac_default_prefix
12877# Let make expand exec_prefix.
12878test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12879
12880DEFS=-DHAVE_CONFIG_H
12881
12882ac_libobjs=
12883ac_ltlibobjs=
12884U=
12885for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12886  # 1. Remove the extension, and $U if already installed.
12887  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12888  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12889  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12890  #    will be set to the directory where LIBOBJS objects are built.
12891  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12892  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12893done
12894LIBOBJS=$ac_libobjs
12895
12896LTLIBOBJS=$ac_ltlibobjs
12897
12898
12899 if test -n "$EXEEXT"; then
12900  am__EXEEXT_TRUE=
12901  am__EXEEXT_FALSE='#'
12902else
12903  am__EXEEXT_TRUE='#'
12904  am__EXEEXT_FALSE=
12905fi
12906
12907if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12908  as_fn_error $? "conditional \"AMDEP\" was never defined.
12909Usually this means the macro was only invoked conditionally." "$LINENO" 5
12910fi
12911if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12912  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12913Usually this means the macro was only invoked conditionally." "$LINENO" 5
12914fi
12915if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12916  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12917Usually this means the macro was only invoked conditionally." "$LINENO" 5
12918fi
12919if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
12920  as_fn_error $? "conditional \"DEBUG\" was never defined.
12921Usually this means the macro was only invoked conditionally." "$LINENO" 5
12922fi
12923if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
12924  as_fn_error $? "conditional \"DEBUG\" was never defined.
12925Usually this means the macro was only invoked conditionally." "$LINENO" 5
12926fi
12927if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
12928  as_fn_error $? "conditional \"DEBUG\" was never defined.
12929Usually this means the macro was only invoked conditionally." "$LINENO" 5
12930fi
12931if test -z "${HAVE_SWIG_TRUE}" && test -z "${HAVE_SWIG_FALSE}"; then
12932  as_fn_error $? "conditional \"HAVE_SWIG\" was never defined.
12933Usually this means the macro was only invoked conditionally." "$LINENO" 5
12934fi
12935if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
12936  as_fn_error $? "conditional \"HAVE_PYTHON\" was never defined.
12937Usually this means the macro was only invoked conditionally." "$LINENO" 5
12938fi
12939
12940: "${CONFIG_STATUS=./config.status}"
12941ac_write_fail=0
12942ac_clean_files_save=$ac_clean_files
12943ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12944{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12945$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12946as_write_fail=0
12947cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12948#! $SHELL
12949# Generated by $as_me.
12950# Run this file to recreate the current configuration.
12951# Compiler output produced by configure, useful for debugging
12952# configure, is in config.log if it exists.
12953
12954debug=false
12955ac_cs_recheck=false
12956ac_cs_silent=false
12957
12958SHELL=\${CONFIG_SHELL-$SHELL}
12959export SHELL
12960_ASEOF
12961cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12962## -------------------- ##
12963## M4sh Initialization. ##
12964## -------------------- ##
12965
12966# Be more Bourne compatible
12967DUALCASE=1; export DUALCASE # for MKS sh
12968if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12969  emulate sh
12970  NULLCMD=:
12971  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12972  # is contrary to our usage.  Disable this feature.
12973  alias -g '${1+"$@"}'='"$@"'
12974  setopt NO_GLOB_SUBST
12975else
12976  case `(set -o) 2>/dev/null` in #(
12977  *posix*) :
12978    set -o posix ;; #(
12979  *) :
12980     ;;
12981esac
12982fi
12983
12984
12985as_nl='
12986'
12987export as_nl
12988# Printing a long string crashes Solaris 7 /usr/bin/printf.
12989as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12990as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12991as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12992# Prefer a ksh shell builtin over an external printf program on Solaris,
12993# but without wasting forks for bash or zsh.
12994if test -z "$BASH_VERSION$ZSH_VERSION" \
12995    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12996  as_echo='print -r --'
12997  as_echo_n='print -rn --'
12998elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12999  as_echo='printf %s\n'
13000  as_echo_n='printf %s'
13001else
13002  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13003    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13004    as_echo_n='/usr/ucb/echo -n'
13005  else
13006    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13007    as_echo_n_body='eval
13008      arg=$1;
13009      case $arg in #(
13010      *"$as_nl"*)
13011	expr "X$arg" : "X\\(.*\\)$as_nl";
13012	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13013      esac;
13014      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13015    '
13016    export as_echo_n_body
13017    as_echo_n='sh -c $as_echo_n_body as_echo'
13018  fi
13019  export as_echo_body
13020  as_echo='sh -c $as_echo_body as_echo'
13021fi
13022
13023# The user is always right.
13024if test "${PATH_SEPARATOR+set}" != set; then
13025  PATH_SEPARATOR=:
13026  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13027    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13028      PATH_SEPARATOR=';'
13029  }
13030fi
13031
13032
13033# IFS
13034# We need space, tab and new line, in precisely that order.  Quoting is
13035# there to prevent editors from complaining about space-tab.
13036# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13037# splitting by setting IFS to empty value.)
13038IFS=" ""	$as_nl"
13039
13040# Find who we are.  Look in the path if we contain no directory separator.
13041as_myself=
13042case $0 in #((
13043  *[\\/]* ) as_myself=$0 ;;
13044  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13045for as_dir in $PATH
13046do
13047  IFS=$as_save_IFS
13048  test -z "$as_dir" && as_dir=.
13049    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13050  done
13051IFS=$as_save_IFS
13052
13053     ;;
13054esac
13055# We did not find ourselves, most probably we were run as `sh COMMAND'
13056# in which case we are not to be found in the path.
13057if test "x$as_myself" = x; then
13058  as_myself=$0
13059fi
13060if test ! -f "$as_myself"; then
13061  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13062  exit 1
13063fi
13064
13065# Unset variables that we do not need and which cause bugs (e.g. in
13066# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
13067# suppresses any "Segmentation fault" message there.  '((' could
13068# trigger a bug in pdksh 5.2.14.
13069for as_var in BASH_ENV ENV MAIL MAILPATH
13070do eval test x\${$as_var+set} = xset \
13071  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13072done
13073PS1='$ '
13074PS2='> '
13075PS4='+ '
13076
13077# NLS nuisances.
13078LC_ALL=C
13079export LC_ALL
13080LANGUAGE=C
13081export LANGUAGE
13082
13083# CDPATH.
13084(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13085
13086
13087# as_fn_error STATUS ERROR [LINENO LOG_FD]
13088# ----------------------------------------
13089# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13090# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13091# script with STATUS, using 1 if that was 0.
13092as_fn_error ()
13093{
13094  as_status=$1; test $as_status -eq 0 && as_status=1
13095  if test "$4"; then
13096    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13097    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13098  fi
13099  $as_echo "$as_me: error: $2" >&2
13100  as_fn_exit $as_status
13101} # as_fn_error
13102
13103
13104# as_fn_set_status STATUS
13105# -----------------------
13106# Set $? to STATUS, without forking.
13107as_fn_set_status ()
13108{
13109  return $1
13110} # as_fn_set_status
13111
13112# as_fn_exit STATUS
13113# -----------------
13114# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13115as_fn_exit ()
13116{
13117  set +e
13118  as_fn_set_status $1
13119  exit $1
13120} # as_fn_exit
13121
13122# as_fn_unset VAR
13123# ---------------
13124# Portably unset VAR.
13125as_fn_unset ()
13126{
13127  { eval $1=; unset $1;}
13128}
13129as_unset=as_fn_unset
13130# as_fn_append VAR VALUE
13131# ----------------------
13132# Append the text in VALUE to the end of the definition contained in VAR. Take
13133# advantage of any shell optimizations that allow amortized linear growth over
13134# repeated appends, instead of the typical quadratic growth present in naive
13135# implementations.
13136if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13137  eval 'as_fn_append ()
13138  {
13139    eval $1+=\$2
13140  }'
13141else
13142  as_fn_append ()
13143  {
13144    eval $1=\$$1\$2
13145  }
13146fi # as_fn_append
13147
13148# as_fn_arith ARG...
13149# ------------------
13150# Perform arithmetic evaluation on the ARGs, and store the result in the
13151# global $as_val. Take advantage of shells that can avoid forks. The arguments
13152# must be portable across $(()) and expr.
13153if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13154  eval 'as_fn_arith ()
13155  {
13156    as_val=$(( $* ))
13157  }'
13158else
13159  as_fn_arith ()
13160  {
13161    as_val=`expr "$@" || test $? -eq 1`
13162  }
13163fi # as_fn_arith
13164
13165
13166if expr a : '\(a\)' >/dev/null 2>&1 &&
13167   test "X`expr 00001 : '.*\(...\)'`" = X001; then
13168  as_expr=expr
13169else
13170  as_expr=false
13171fi
13172
13173if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13174  as_basename=basename
13175else
13176  as_basename=false
13177fi
13178
13179if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13180  as_dirname=dirname
13181else
13182  as_dirname=false
13183fi
13184
13185as_me=`$as_basename -- "$0" ||
13186$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13187	 X"$0" : 'X\(//\)$' \| \
13188	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13189$as_echo X/"$0" |
13190    sed '/^.*\/\([^/][^/]*\)\/*$/{
13191	    s//\1/
13192	    q
13193	  }
13194	  /^X\/\(\/\/\)$/{
13195	    s//\1/
13196	    q
13197	  }
13198	  /^X\/\(\/\).*/{
13199	    s//\1/
13200	    q
13201	  }
13202	  s/.*/./; q'`
13203
13204# Avoid depending upon Character Ranges.
13205as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13206as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13207as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13208as_cr_digits='0123456789'
13209as_cr_alnum=$as_cr_Letters$as_cr_digits
13210
13211ECHO_C= ECHO_N= ECHO_T=
13212case `echo -n x` in #(((((
13213-n*)
13214  case `echo 'xy\c'` in
13215  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
13216  xy)  ECHO_C='\c';;
13217  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13218       ECHO_T='	';;
13219  esac;;
13220*)
13221  ECHO_N='-n';;
13222esac
13223
13224rm -f conf$$ conf$$.exe conf$$.file
13225if test -d conf$$.dir; then
13226  rm -f conf$$.dir/conf$$.file
13227else
13228  rm -f conf$$.dir
13229  mkdir conf$$.dir 2>/dev/null
13230fi
13231if (echo >conf$$.file) 2>/dev/null; then
13232  if ln -s conf$$.file conf$$ 2>/dev/null; then
13233    as_ln_s='ln -s'
13234    # ... but there are two gotchas:
13235    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13236    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13237    # In both cases, we have to default to `cp -p'.
13238    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13239      as_ln_s='cp -p'
13240  elif ln conf$$.file conf$$ 2>/dev/null; then
13241    as_ln_s=ln
13242  else
13243    as_ln_s='cp -p'
13244  fi
13245else
13246  as_ln_s='cp -p'
13247fi
13248rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13249rmdir conf$$.dir 2>/dev/null
13250
13251
13252# as_fn_mkdir_p
13253# -------------
13254# Create "$as_dir" as a directory, including parents if necessary.
13255as_fn_mkdir_p ()
13256{
13257
13258  case $as_dir in #(
13259  -*) as_dir=./$as_dir;;
13260  esac
13261  test -d "$as_dir" || eval $as_mkdir_p || {
13262    as_dirs=
13263    while :; do
13264      case $as_dir in #(
13265      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13266      *) as_qdir=$as_dir;;
13267      esac
13268      as_dirs="'$as_qdir' $as_dirs"
13269      as_dir=`$as_dirname -- "$as_dir" ||
13270$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13271	 X"$as_dir" : 'X\(//\)[^/]' \| \
13272	 X"$as_dir" : 'X\(//\)$' \| \
13273	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13274$as_echo X"$as_dir" |
13275    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13276	    s//\1/
13277	    q
13278	  }
13279	  /^X\(\/\/\)[^/].*/{
13280	    s//\1/
13281	    q
13282	  }
13283	  /^X\(\/\/\)$/{
13284	    s//\1/
13285	    q
13286	  }
13287	  /^X\(\/\).*/{
13288	    s//\1/
13289	    q
13290	  }
13291	  s/.*/./; q'`
13292      test -d "$as_dir" && break
13293    done
13294    test -z "$as_dirs" || eval "mkdir $as_dirs"
13295  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13296
13297
13298} # as_fn_mkdir_p
13299if mkdir -p . 2>/dev/null; then
13300  as_mkdir_p='mkdir -p "$as_dir"'
13301else
13302  test -d ./-p && rmdir ./-p
13303  as_mkdir_p=false
13304fi
13305
13306if test -x / >/dev/null 2>&1; then
13307  as_test_x='test -x'
13308else
13309  if ls -dL / >/dev/null 2>&1; then
13310    as_ls_L_option=L
13311  else
13312    as_ls_L_option=
13313  fi
13314  as_test_x='
13315    eval sh -c '\''
13316      if test -d "$1"; then
13317	test -d "$1/.";
13318      else
13319	case $1 in #(
13320	-*)set "./$1";;
13321	esac;
13322	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13323	???[sx]*):;;*)false;;esac;fi
13324    '\'' sh
13325  '
13326fi
13327as_executable_p=$as_test_x
13328
13329# Sed expression to map a string onto a valid CPP name.
13330as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13331
13332# Sed expression to map a string onto a valid variable name.
13333as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13334
13335
13336exec 6>&1
13337## ----------------------------------- ##
13338## Main body of $CONFIG_STATUS script. ##
13339## ----------------------------------- ##
13340_ASEOF
13341test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13342
13343cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13344# Save the log message, to keep $0 and so on meaningful, and to
13345# report actual input values of CONFIG_FILES etc. instead of their
13346# values after options handling.
13347ac_log="
13348This file was extended by libcap-ng $as_me 0.7, which was
13349generated by GNU Autoconf 2.68.  Invocation command line was
13350
13351  CONFIG_FILES    = $CONFIG_FILES
13352  CONFIG_HEADERS  = $CONFIG_HEADERS
13353  CONFIG_LINKS    = $CONFIG_LINKS
13354  CONFIG_COMMANDS = $CONFIG_COMMANDS
13355  $ $0 $@
13356
13357on `(hostname || uname -n) 2>/dev/null | sed 1q`
13358"
13359
13360_ACEOF
13361
13362case $ac_config_files in *"
13363"*) set x $ac_config_files; shift; ac_config_files=$*;;
13364esac
13365
13366case $ac_config_headers in *"
13367"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13368esac
13369
13370
13371cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13372# Files that config.status was made for.
13373config_files="$ac_config_files"
13374config_headers="$ac_config_headers"
13375config_commands="$ac_config_commands"
13376
13377_ACEOF
13378
13379cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13380ac_cs_usage="\
13381\`$as_me' instantiates files and other configuration actions
13382from templates according to the current configuration.  Unless the files
13383and actions are specified as TAGs, all are instantiated by default.
13384
13385Usage: $0 [OPTION]... [TAG]...
13386
13387  -h, --help       print this help, then exit
13388  -V, --version    print version number and configuration settings, then exit
13389      --config     print configuration, then exit
13390  -q, --quiet, --silent
13391                   do not print progress messages
13392  -d, --debug      don't remove temporary files
13393      --recheck    update $as_me by reconfiguring in the same conditions
13394      --file=FILE[:TEMPLATE]
13395                   instantiate the configuration file FILE
13396      --header=FILE[:TEMPLATE]
13397                   instantiate the configuration header FILE
13398
13399Configuration files:
13400$config_files
13401
13402Configuration headers:
13403$config_headers
13404
13405Configuration commands:
13406$config_commands
13407
13408Report bugs to the package provider."
13409
13410_ACEOF
13411cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13412ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13413ac_cs_version="\\
13414libcap-ng config.status 0.7
13415configured by $0, generated by GNU Autoconf 2.68,
13416  with options \\"\$ac_cs_config\\"
13417
13418Copyright (C) 2010 Free Software Foundation, Inc.
13419This config.status script is free software; the Free Software Foundation
13420gives unlimited permission to copy, distribute and modify it."
13421
13422ac_pwd='$ac_pwd'
13423srcdir='$srcdir'
13424INSTALL='$INSTALL'
13425MKDIR_P='$MKDIR_P'
13426AWK='$AWK'
13427test -n "\$AWK" || AWK=awk
13428_ACEOF
13429
13430cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13431# The default lists apply if the user does not specify any file.
13432ac_need_defaults=:
13433while test $# != 0
13434do
13435  case $1 in
13436  --*=?*)
13437    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13438    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13439    ac_shift=:
13440    ;;
13441  --*=)
13442    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13443    ac_optarg=
13444    ac_shift=:
13445    ;;
13446  *)
13447    ac_option=$1
13448    ac_optarg=$2
13449    ac_shift=shift
13450    ;;
13451  esac
13452
13453  case $ac_option in
13454  # Handling of the options.
13455  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13456    ac_cs_recheck=: ;;
13457  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13458    $as_echo "$ac_cs_version"; exit ;;
13459  --config | --confi | --conf | --con | --co | --c )
13460    $as_echo "$ac_cs_config"; exit ;;
13461  --debug | --debu | --deb | --de | --d | -d )
13462    debug=: ;;
13463  --file | --fil | --fi | --f )
13464    $ac_shift
13465    case $ac_optarg in
13466    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13467    '') as_fn_error $? "missing file argument" ;;
13468    esac
13469    as_fn_append CONFIG_FILES " '$ac_optarg'"
13470    ac_need_defaults=false;;
13471  --header | --heade | --head | --hea )
13472    $ac_shift
13473    case $ac_optarg in
13474    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13475    esac
13476    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13477    ac_need_defaults=false;;
13478  --he | --h)
13479    # Conflict between --help and --header
13480    as_fn_error $? "ambiguous option: \`$1'
13481Try \`$0 --help' for more information.";;
13482  --help | --hel | -h )
13483    $as_echo "$ac_cs_usage"; exit ;;
13484  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13485  | -silent | --silent | --silen | --sile | --sil | --si | --s)
13486    ac_cs_silent=: ;;
13487
13488  # This is an error.
13489  -*) as_fn_error $? "unrecognized option: \`$1'
13490Try \`$0 --help' for more information." ;;
13491
13492  *) as_fn_append ac_config_targets " $1"
13493     ac_need_defaults=false ;;
13494
13495  esac
13496  shift
13497done
13498
13499ac_configure_extra_args=
13500
13501if $ac_cs_silent; then
13502  exec 6>/dev/null
13503  ac_configure_extra_args="$ac_configure_extra_args --silent"
13504fi
13505
13506_ACEOF
13507cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13508if \$ac_cs_recheck; then
13509  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13510  shift
13511  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13512  CONFIG_SHELL='$SHELL'
13513  export CONFIG_SHELL
13514  exec "\$@"
13515fi
13516
13517_ACEOF
13518cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13519exec 5>>config.log
13520{
13521  echo
13522  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13523## Running $as_me. ##
13524_ASBOX
13525  $as_echo "$ac_log"
13526} >&5
13527
13528_ACEOF
13529cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13530#
13531# INIT-COMMANDS
13532#
13533AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13534
13535
13536# The HP-UX ksh and POSIX shell print the target directory to stdout
13537# if CDPATH is set.
13538(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13539
13540sed_quote_subst='$sed_quote_subst'
13541double_quote_subst='$double_quote_subst'
13542delay_variable_subst='$delay_variable_subst'
13543macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13544macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13545enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13546enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13547pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13548enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13549SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13550ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13551PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13552host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13553host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13554host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13555build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13556build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13557build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13558SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13559Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13560GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13561EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13562FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13563LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13564NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13565LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13566max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13567ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13568exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13569lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13570lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13571lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13572lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13573lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13574reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13575reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13576OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13577deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13578file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13579file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13580want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13581DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13582sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13583AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13584AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13585archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13586STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13587RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13588old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13589old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13590old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13591lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13592CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13593CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13594compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13595GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13596lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13597lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13598lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13599lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
13600nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13601lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13602objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13603MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13604lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13605lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13606lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13607lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13608lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13609need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13610MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13611DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13612NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13613LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13614OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13615OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13616libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13617shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13618extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13619archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13620enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13621export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13622whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13623compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13624old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13625old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13626archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13627archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13628module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13629module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13630with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13631allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13632no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13633hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13634hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13635hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13636hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13637hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13638hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13639hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13640inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13641link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13642always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13643export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13644exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13645include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13646prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13647postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13648file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13649variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13650need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13651need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13652version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13653runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13654shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13655shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13656libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13657library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13658soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13659install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13660postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13661postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13662finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13663finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13664hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13665sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13666sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13667hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13668enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13669enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13670enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13671old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13672striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13673
13674LTCC='$LTCC'
13675LTCFLAGS='$LTCFLAGS'
13676compiler='$compiler_DEFAULT'
13677
13678# A function that is used when there is no print builtin or printf.
13679func_fallback_echo ()
13680{
13681  eval 'cat <<_LTECHO_EOF
13682\$1
13683_LTECHO_EOF'
13684}
13685
13686# Quote evaled strings.
13687for var in SHELL \
13688ECHO \
13689PATH_SEPARATOR \
13690SED \
13691GREP \
13692EGREP \
13693FGREP \
13694LD \
13695NM \
13696LN_S \
13697lt_SP2NL \
13698lt_NL2SP \
13699reload_flag \
13700OBJDUMP \
13701deplibs_check_method \
13702file_magic_cmd \
13703file_magic_glob \
13704want_nocaseglob \
13705DLLTOOL \
13706sharedlib_from_linklib_cmd \
13707AR \
13708AR_FLAGS \
13709archiver_list_spec \
13710STRIP \
13711RANLIB \
13712CC \
13713CFLAGS \
13714compiler \
13715lt_cv_sys_global_symbol_pipe \
13716lt_cv_sys_global_symbol_to_cdecl \
13717lt_cv_sys_global_symbol_to_c_name_address \
13718lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13719nm_file_list_spec \
13720lt_prog_compiler_no_builtin_flag \
13721lt_prog_compiler_pic \
13722lt_prog_compiler_wl \
13723lt_prog_compiler_static \
13724lt_cv_prog_compiler_c_o \
13725need_locks \
13726MANIFEST_TOOL \
13727DSYMUTIL \
13728NMEDIT \
13729LIPO \
13730OTOOL \
13731OTOOL64 \
13732shrext_cmds \
13733export_dynamic_flag_spec \
13734whole_archive_flag_spec \
13735compiler_needs_object \
13736with_gnu_ld \
13737allow_undefined_flag \
13738no_undefined_flag \
13739hardcode_libdir_flag_spec \
13740hardcode_libdir_separator \
13741exclude_expsyms \
13742include_expsyms \
13743file_list_spec \
13744variables_saved_for_relink \
13745libname_spec \
13746library_names_spec \
13747soname_spec \
13748install_override_mode \
13749finish_eval \
13750old_striplib \
13751striplib; do
13752    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13753    *[\\\\\\\`\\"\\\$]*)
13754      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13755      ;;
13756    *)
13757      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13758      ;;
13759    esac
13760done
13761
13762# Double-quote double-evaled strings.
13763for var in reload_cmds \
13764old_postinstall_cmds \
13765old_postuninstall_cmds \
13766old_archive_cmds \
13767extract_expsyms_cmds \
13768old_archive_from_new_cmds \
13769old_archive_from_expsyms_cmds \
13770archive_cmds \
13771archive_expsym_cmds \
13772module_cmds \
13773module_expsym_cmds \
13774export_symbols_cmds \
13775prelink_cmds \
13776postlink_cmds \
13777postinstall_cmds \
13778postuninstall_cmds \
13779finish_cmds \
13780sys_lib_search_path_spec \
13781sys_lib_dlsearch_path_spec; do
13782    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13783    *[\\\\\\\`\\"\\\$]*)
13784      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13785      ;;
13786    *)
13787      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13788      ;;
13789    esac
13790done
13791
13792ac_aux_dir='$ac_aux_dir'
13793xsi_shell='$xsi_shell'
13794lt_shell_append='$lt_shell_append'
13795
13796# See if we are running on zsh, and set the options which allow our
13797# commands through without removal of \ escapes INIT.
13798if test -n "\${ZSH_VERSION+set}" ; then
13799   setopt NO_GLOB_SUBST
13800fi
13801
13802
13803    PACKAGE='$PACKAGE'
13804    VERSION='$VERSION'
13805    TIMESTAMP='$TIMESTAMP'
13806    RM='$RM'
13807    ofile='$ofile'
13808
13809
13810
13811
13812_ACEOF
13813
13814cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13815
13816# Handling of arguments.
13817for ac_config_target in $ac_config_targets
13818do
13819  case $ac_config_target in
13820    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13821    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13822    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13823    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13824    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13825    "src/libcap-ng.pc") CONFIG_FILES="$CONFIG_FILES src/libcap-ng.pc" ;;
13826    "src/test/Makefile") CONFIG_FILES="$CONFIG_FILES src/test/Makefile" ;;
13827    "bindings/Makefile") CONFIG_FILES="$CONFIG_FILES bindings/Makefile" ;;
13828    "bindings/python/Makefile") CONFIG_FILES="$CONFIG_FILES bindings/python/Makefile" ;;
13829    "bindings/python/test/Makefile") CONFIG_FILES="$CONFIG_FILES bindings/python/test/Makefile" ;;
13830    "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
13831    "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
13832    "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
13833
13834  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13835  esac
13836done
13837
13838
13839# If the user did not use the arguments to specify the items to instantiate,
13840# then the envvar interface is used.  Set only those that are not.
13841# We use the long form for the default assignment because of an extremely
13842# bizarre bug on SunOS 4.1.3.
13843if $ac_need_defaults; then
13844  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13845  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13846  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13847fi
13848
13849# Have a temporary directory for convenience.  Make it in the build tree
13850# simply because there is no reason against having it here, and in addition,
13851# creating and moving files from /tmp can sometimes cause problems.
13852# Hook for its removal unless debugging.
13853# Note that there is a small window in which the directory will not be cleaned:
13854# after its creation but before its name has been assigned to `$tmp'.
13855$debug ||
13856{
13857  tmp= ac_tmp=
13858  trap 'exit_status=$?
13859  : "${ac_tmp:=$tmp}"
13860  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13861' 0
13862  trap 'as_fn_exit 1' 1 2 13 15
13863}
13864# Create a (secure) tmp directory for tmp files.
13865
13866{
13867  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13868  test -d "$tmp"
13869}  ||
13870{
13871  tmp=./conf$$-$RANDOM
13872  (umask 077 && mkdir "$tmp")
13873} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13874ac_tmp=$tmp
13875
13876# Set up the scripts for CONFIG_FILES section.
13877# No need to generate them if there are no CONFIG_FILES.
13878# This happens for instance with `./config.status config.h'.
13879if test -n "$CONFIG_FILES"; then
13880
13881
13882ac_cr=`echo X | tr X '\015'`
13883# On cygwin, bash can eat \r inside `` if the user requested igncr.
13884# But we know of no other shell where ac_cr would be empty at this
13885# point, so we can use a bashism as a fallback.
13886if test "x$ac_cr" = x; then
13887  eval ac_cr=\$\'\\r\'
13888fi
13889ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13890if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13891  ac_cs_awk_cr='\\r'
13892else
13893  ac_cs_awk_cr=$ac_cr
13894fi
13895
13896echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13897_ACEOF
13898
13899
13900{
13901  echo "cat >conf$$subs.awk <<_ACEOF" &&
13902  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13903  echo "_ACEOF"
13904} >conf$$subs.sh ||
13905  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13906ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13907ac_delim='%!_!# '
13908for ac_last_try in false false false false false :; do
13909  . ./conf$$subs.sh ||
13910    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13911
13912  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13913  if test $ac_delim_n = $ac_delim_num; then
13914    break
13915  elif $ac_last_try; then
13916    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13917  else
13918    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13919  fi
13920done
13921rm -f conf$$subs.sh
13922
13923cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13924cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13925_ACEOF
13926sed -n '
13927h
13928s/^/S["/; s/!.*/"]=/
13929p
13930g
13931s/^[^!]*!//
13932:repl
13933t repl
13934s/'"$ac_delim"'$//
13935t delim
13936:nl
13937h
13938s/\(.\{148\}\)..*/\1/
13939t more1
13940s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13941p
13942n
13943b repl
13944:more1
13945s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13946p
13947g
13948s/.\{148\}//
13949t nl
13950:delim
13951h
13952s/\(.\{148\}\)..*/\1/
13953t more2
13954s/["\\]/\\&/g; s/^/"/; s/$/"/
13955p
13956b
13957:more2
13958s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13959p
13960g
13961s/.\{148\}//
13962t delim
13963' <conf$$subs.awk | sed '
13964/^[^""]/{
13965  N
13966  s/\n//
13967}
13968' >>$CONFIG_STATUS || ac_write_fail=1
13969rm -f conf$$subs.awk
13970cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13971_ACAWK
13972cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13973  for (key in S) S_is_set[key] = 1
13974  FS = ""
13975
13976}
13977{
13978  line = $ 0
13979  nfields = split(line, field, "@")
13980  substed = 0
13981  len = length(field[1])
13982  for (i = 2; i < nfields; i++) {
13983    key = field[i]
13984    keylen = length(key)
13985    if (S_is_set[key]) {
13986      value = S[key]
13987      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13988      len += length(value) + length(field[++i])
13989      substed = 1
13990    } else
13991      len += 1 + keylen
13992  }
13993
13994  print line
13995}
13996
13997_ACAWK
13998_ACEOF
13999cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14000if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14001  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14002else
14003  cat
14004fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14005  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14006_ACEOF
14007
14008# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14009# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14010# trailing colons and then remove the whole line if VPATH becomes empty
14011# (actually we leave an empty line to preserve line numbers).
14012if test "x$srcdir" = x.; then
14013  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
14014h
14015s///
14016s/^/:/
14017s/[	 ]*$/:/
14018s/:\$(srcdir):/:/g
14019s/:\${srcdir}:/:/g
14020s/:@srcdir@:/:/g
14021s/^:*//
14022s/:*$//
14023x
14024s/\(=[	 ]*\).*/\1/
14025G
14026s/\n//
14027s/^[^=]*=[	 ]*$//
14028}'
14029fi
14030
14031cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14032fi # test -n "$CONFIG_FILES"
14033
14034# Set up the scripts for CONFIG_HEADERS section.
14035# No need to generate them if there are no CONFIG_HEADERS.
14036# This happens for instance with `./config.status Makefile'.
14037if test -n "$CONFIG_HEADERS"; then
14038cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14039BEGIN {
14040_ACEOF
14041
14042# Transform confdefs.h into an awk script `defines.awk', embedded as
14043# here-document in config.status, that substitutes the proper values into
14044# config.h.in to produce config.h.
14045
14046# Create a delimiter string that does not exist in confdefs.h, to ease
14047# handling of long lines.
14048ac_delim='%!_!# '
14049for ac_last_try in false false :; do
14050  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14051  if test -z "$ac_tt"; then
14052    break
14053  elif $ac_last_try; then
14054    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14055  else
14056    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14057  fi
14058done
14059
14060# For the awk script, D is an array of macro values keyed by name,
14061# likewise P contains macro parameters if any.  Preserve backslash
14062# newline sequences.
14063
14064ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14065sed -n '
14066s/.\{148\}/&'"$ac_delim"'/g
14067t rset
14068:rset
14069s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
14070t def
14071d
14072:def
14073s/\\$//
14074t bsnl
14075s/["\\]/\\&/g
14076s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14077D["\1"]=" \3"/p
14078s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
14079d
14080:bsnl
14081s/["\\]/\\&/g
14082s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14083D["\1"]=" \3\\\\\\n"\\/p
14084t cont
14085s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14086t cont
14087d
14088:cont
14089n
14090s/.\{148\}/&'"$ac_delim"'/g
14091t clear
14092:clear
14093s/\\$//
14094t bsnlc
14095s/["\\]/\\&/g; s/^/"/; s/$/"/p
14096d
14097:bsnlc
14098s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14099b cont
14100' <confdefs.h | sed '
14101s/'"$ac_delim"'/"\\\
14102"/g' >>$CONFIG_STATUS || ac_write_fail=1
14103
14104cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14105  for (key in D) D_is_set[key] = 1
14106  FS = ""
14107}
14108/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14109  line = \$ 0
14110  split(line, arg, " ")
14111  if (arg[1] == "#") {
14112    defundef = arg[2]
14113    mac1 = arg[3]
14114  } else {
14115    defundef = substr(arg[1], 2)
14116    mac1 = arg[2]
14117  }
14118  split(mac1, mac2, "(") #)
14119  macro = mac2[1]
14120  prefix = substr(line, 1, index(line, defundef) - 1)
14121  if (D_is_set[macro]) {
14122    # Preserve the white space surrounding the "#".
14123    print prefix "define", macro P[macro] D[macro]
14124    next
14125  } else {
14126    # Replace #undef with comments.  This is necessary, for example,
14127    # in the case of _POSIX_SOURCE, which is predefined and required
14128    # on some systems where configure will not decide to define it.
14129    if (defundef == "undef") {
14130      print "/*", prefix defundef, macro, "*/"
14131      next
14132    }
14133  }
14134}
14135{ print }
14136_ACAWK
14137_ACEOF
14138cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14139  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14140fi # test -n "$CONFIG_HEADERS"
14141
14142
14143eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
14144shift
14145for ac_tag
14146do
14147  case $ac_tag in
14148  :[FHLC]) ac_mode=$ac_tag; continue;;
14149  esac
14150  case $ac_mode$ac_tag in
14151  :[FHL]*:*);;
14152  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14153  :[FH]-) ac_tag=-:-;;
14154  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14155  esac
14156  ac_save_IFS=$IFS
14157  IFS=:
14158  set x $ac_tag
14159  IFS=$ac_save_IFS
14160  shift
14161  ac_file=$1
14162  shift
14163
14164  case $ac_mode in
14165  :L) ac_source=$1;;
14166  :[FH])
14167    ac_file_inputs=
14168    for ac_f
14169    do
14170      case $ac_f in
14171      -) ac_f="$ac_tmp/stdin";;
14172      *) # Look for the file first in the build tree, then in the source tree
14173	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
14174	 # because $ac_f cannot contain `:'.
14175	 test -f "$ac_f" ||
14176	   case $ac_f in
14177	   [\\/$]*) false;;
14178	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14179	   esac ||
14180	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14181      esac
14182      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14183      as_fn_append ac_file_inputs " '$ac_f'"
14184    done
14185
14186    # Let's still pretend it is `configure' which instantiates (i.e., don't
14187    # use $as_me), people would be surprised to read:
14188    #    /* config.h.  Generated by config.status.  */
14189    configure_input='Generated from '`
14190	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14191	`' by configure.'
14192    if test x"$ac_file" != x-; then
14193      configure_input="$ac_file.  $configure_input"
14194      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14195$as_echo "$as_me: creating $ac_file" >&6;}
14196    fi
14197    # Neutralize special characters interpreted by sed in replacement strings.
14198    case $configure_input in #(
14199    *\&* | *\|* | *\\* )
14200       ac_sed_conf_input=`$as_echo "$configure_input" |
14201       sed 's/[\\\\&|]/\\\\&/g'`;; #(
14202    *) ac_sed_conf_input=$configure_input;;
14203    esac
14204
14205    case $ac_tag in
14206    *:-:* | *:-) cat >"$ac_tmp/stdin" \
14207      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14208    esac
14209    ;;
14210  esac
14211
14212  ac_dir=`$as_dirname -- "$ac_file" ||
14213$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14214	 X"$ac_file" : 'X\(//\)[^/]' \| \
14215	 X"$ac_file" : 'X\(//\)$' \| \
14216	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14217$as_echo X"$ac_file" |
14218    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14219	    s//\1/
14220	    q
14221	  }
14222	  /^X\(\/\/\)[^/].*/{
14223	    s//\1/
14224	    q
14225	  }
14226	  /^X\(\/\/\)$/{
14227	    s//\1/
14228	    q
14229	  }
14230	  /^X\(\/\).*/{
14231	    s//\1/
14232	    q
14233	  }
14234	  s/.*/./; q'`
14235  as_dir="$ac_dir"; as_fn_mkdir_p
14236  ac_builddir=.
14237
14238case "$ac_dir" in
14239.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14240*)
14241  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14242  # A ".." for each directory in $ac_dir_suffix.
14243  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14244  case $ac_top_builddir_sub in
14245  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14246  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14247  esac ;;
14248esac
14249ac_abs_top_builddir=$ac_pwd
14250ac_abs_builddir=$ac_pwd$ac_dir_suffix
14251# for backward compatibility:
14252ac_top_builddir=$ac_top_build_prefix
14253
14254case $srcdir in
14255  .)  # We are building in place.
14256    ac_srcdir=.
14257    ac_top_srcdir=$ac_top_builddir_sub
14258    ac_abs_top_srcdir=$ac_pwd ;;
14259  [\\/]* | ?:[\\/]* )  # Absolute name.
14260    ac_srcdir=$srcdir$ac_dir_suffix;
14261    ac_top_srcdir=$srcdir
14262    ac_abs_top_srcdir=$srcdir ;;
14263  *) # Relative name.
14264    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14265    ac_top_srcdir=$ac_top_build_prefix$srcdir
14266    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14267esac
14268ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14269
14270
14271  case $ac_mode in
14272  :F)
14273  #
14274  # CONFIG_FILE
14275  #
14276
14277  case $INSTALL in
14278  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14279  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14280  esac
14281  ac_MKDIR_P=$MKDIR_P
14282  case $MKDIR_P in
14283  [\\/$]* | ?:[\\/]* ) ;;
14284  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14285  esac
14286_ACEOF
14287
14288cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14289# If the template does not know about datarootdir, expand it.
14290# FIXME: This hack should be removed a few years after 2.60.
14291ac_datarootdir_hack=; ac_datarootdir_seen=
14292ac_sed_dataroot='
14293/datarootdir/ {
14294  p
14295  q
14296}
14297/@datadir@/p
14298/@docdir@/p
14299/@infodir@/p
14300/@localedir@/p
14301/@mandir@/p'
14302case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14303*datarootdir*) ac_datarootdir_seen=yes;;
14304*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14305  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14306$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14307_ACEOF
14308cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14309  ac_datarootdir_hack='
14310  s&@datadir@&$datadir&g
14311  s&@docdir@&$docdir&g
14312  s&@infodir@&$infodir&g
14313  s&@localedir@&$localedir&g
14314  s&@mandir@&$mandir&g
14315  s&\\\${datarootdir}&$datarootdir&g' ;;
14316esac
14317_ACEOF
14318
14319# Neutralize VPATH when `$srcdir' = `.'.
14320# Shell code in configure.ac might set extrasub.
14321# FIXME: do we really want to maintain this feature?
14322cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14323ac_sed_extra="$ac_vpsub
14324$extrasub
14325_ACEOF
14326cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14327:t
14328/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14329s|@configure_input@|$ac_sed_conf_input|;t t
14330s&@top_builddir@&$ac_top_builddir_sub&;t t
14331s&@top_build_prefix@&$ac_top_build_prefix&;t t
14332s&@srcdir@&$ac_srcdir&;t t
14333s&@abs_srcdir@&$ac_abs_srcdir&;t t
14334s&@top_srcdir@&$ac_top_srcdir&;t t
14335s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14336s&@builddir@&$ac_builddir&;t t
14337s&@abs_builddir@&$ac_abs_builddir&;t t
14338s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14339s&@INSTALL@&$ac_INSTALL&;t t
14340s&@MKDIR_P@&$ac_MKDIR_P&;t t
14341$ac_datarootdir_hack
14342"
14343eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14344  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14345
14346test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14347  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14348  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
14349      "$ac_tmp/out"`; test -z "$ac_out"; } &&
14350  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14351which seems to be undefined.  Please make sure it is defined" >&5
14352$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14353which seems to be undefined.  Please make sure it is defined" >&2;}
14354
14355  rm -f "$ac_tmp/stdin"
14356  case $ac_file in
14357  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14358  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14359  esac \
14360  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14361 ;;
14362  :H)
14363  #
14364  # CONFIG_HEADER
14365  #
14366  if test x"$ac_file" != x-; then
14367    {
14368      $as_echo "/* $configure_input  */" \
14369      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14370    } >"$ac_tmp/config.h" \
14371      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14372    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14373      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14374$as_echo "$as_me: $ac_file is unchanged" >&6;}
14375    else
14376      rm -f "$ac_file"
14377      mv "$ac_tmp/config.h" "$ac_file" \
14378	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
14379    fi
14380  else
14381    $as_echo "/* $configure_input  */" \
14382      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14383      || as_fn_error $? "could not create -" "$LINENO" 5
14384  fi
14385# Compute "$ac_file"'s index in $config_headers.
14386_am_arg="$ac_file"
14387_am_stamp_count=1
14388for _am_header in $config_headers :; do
14389  case $_am_header in
14390    $_am_arg | $_am_arg:* )
14391      break ;;
14392    * )
14393      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14394  esac
14395done
14396echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14397$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14398	 X"$_am_arg" : 'X\(//\)[^/]' \| \
14399	 X"$_am_arg" : 'X\(//\)$' \| \
14400	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14401$as_echo X"$_am_arg" |
14402    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14403	    s//\1/
14404	    q
14405	  }
14406	  /^X\(\/\/\)[^/].*/{
14407	    s//\1/
14408	    q
14409	  }
14410	  /^X\(\/\/\)$/{
14411	    s//\1/
14412	    q
14413	  }
14414	  /^X\(\/\).*/{
14415	    s//\1/
14416	    q
14417	  }
14418	  s/.*/./; q'`/stamp-h$_am_stamp_count
14419 ;;
14420
14421  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14422$as_echo "$as_me: executing $ac_file commands" >&6;}
14423 ;;
14424  esac
14425
14426
14427  case $ac_file$ac_mode in
14428    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14429  # Autoconf 2.62 quotes --file arguments for eval, but not when files
14430  # are listed without --file.  Let's play safe and only enable the eval
14431  # if we detect the quoting.
14432  case $CONFIG_FILES in
14433  *\'*) eval set x "$CONFIG_FILES" ;;
14434  *)   set x $CONFIG_FILES ;;
14435  esac
14436  shift
14437  for mf
14438  do
14439    # Strip MF so we end up with the name of the file.
14440    mf=`echo "$mf" | sed -e 's/:.*$//'`
14441    # Check whether this is an Automake generated Makefile or not.
14442    # We used to match only the files named `Makefile.in', but
14443    # some people rename them; so instead we look at the file content.
14444    # Grep'ing the first line is not enough: some people post-process
14445    # each Makefile.in and add a new line on top of each file to say so.
14446    # Grep'ing the whole file is not good either: AIX grep has a line
14447    # limit of 2048, but all sed's we know have understand at least 4000.
14448    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14449      dirpart=`$as_dirname -- "$mf" ||
14450$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14451	 X"$mf" : 'X\(//\)[^/]' \| \
14452	 X"$mf" : 'X\(//\)$' \| \
14453	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14454$as_echo X"$mf" |
14455    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14456	    s//\1/
14457	    q
14458	  }
14459	  /^X\(\/\/\)[^/].*/{
14460	    s//\1/
14461	    q
14462	  }
14463	  /^X\(\/\/\)$/{
14464	    s//\1/
14465	    q
14466	  }
14467	  /^X\(\/\).*/{
14468	    s//\1/
14469	    q
14470	  }
14471	  s/.*/./; q'`
14472    else
14473      continue
14474    fi
14475    # Extract the definition of DEPDIR, am__include, and am__quote
14476    # from the Makefile without running `make'.
14477    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14478    test -z "$DEPDIR" && continue
14479    am__include=`sed -n 's/^am__include = //p' < "$mf"`
14480    test -z "am__include" && continue
14481    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14482    # When using ansi2knr, U may be empty or an underscore; expand it
14483    U=`sed -n 's/^U = //p' < "$mf"`
14484    # Find all dependency output files, they are included files with
14485    # $(DEPDIR) in their names.  We invoke sed twice because it is the
14486    # simplest approach to changing $(DEPDIR) to its actual value in the
14487    # expansion.
14488    for file in `sed -n "
14489      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14490	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14491      # Make sure the directory exists.
14492      test -f "$dirpart/$file" && continue
14493      fdir=`$as_dirname -- "$file" ||
14494$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14495	 X"$file" : 'X\(//\)[^/]' \| \
14496	 X"$file" : 'X\(//\)$' \| \
14497	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14498$as_echo X"$file" |
14499    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14500	    s//\1/
14501	    q
14502	  }
14503	  /^X\(\/\/\)[^/].*/{
14504	    s//\1/
14505	    q
14506	  }
14507	  /^X\(\/\/\)$/{
14508	    s//\1/
14509	    q
14510	  }
14511	  /^X\(\/\).*/{
14512	    s//\1/
14513	    q
14514	  }
14515	  s/.*/./; q'`
14516      as_dir=$dirpart/$fdir; as_fn_mkdir_p
14517      # echo "creating $dirpart/$file"
14518      echo '# dummy' > "$dirpart/$file"
14519    done
14520  done
14521}
14522 ;;
14523    "libtool":C)
14524
14525    # See if we are running on zsh, and set the options which allow our
14526    # commands through without removal of \ escapes.
14527    if test -n "${ZSH_VERSION+set}" ; then
14528      setopt NO_GLOB_SUBST
14529    fi
14530
14531    cfgfile="${ofile}T"
14532    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14533    $RM "$cfgfile"
14534
14535    cat <<_LT_EOF >> "$cfgfile"
14536#! $SHELL
14537
14538# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14539# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14540# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14541# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14542#
14543#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14544#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14545#                 Foundation, Inc.
14546#   Written by Gordon Matzigkeit, 1996
14547#
14548#   This file is part of GNU Libtool.
14549#
14550# GNU Libtool is free software; you can redistribute it and/or
14551# modify it under the terms of the GNU General Public License as
14552# published by the Free Software Foundation; either version 2 of
14553# the License, or (at your option) any later version.
14554#
14555# As a special exception to the GNU General Public License,
14556# if you distribute this file as part of a program or library that
14557# is built using GNU Libtool, you may include this file under the
14558# same distribution terms that you use for the rest of that program.
14559#
14560# GNU Libtool is distributed in the hope that it will be useful,
14561# but WITHOUT ANY WARRANTY; without even the implied warranty of
14562# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14563# GNU General Public License for more details.
14564#
14565# You should have received a copy of the GNU General Public License
14566# along with GNU Libtool; see the file COPYING.  If not, a copy
14567# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14568# obtained by writing to the Free Software Foundation, Inc.,
14569# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14570
14571
14572# The names of the tagged configurations supported by this script.
14573available_tags=""
14574
14575# ### BEGIN LIBTOOL CONFIG
14576
14577# Which release of libtool.m4 was used?
14578macro_version=$macro_version
14579macro_revision=$macro_revision
14580
14581# Whether or not to build shared libraries.
14582build_libtool_libs=$enable_shared
14583
14584# Whether or not to build static libraries.
14585build_old_libs=$enable_static
14586
14587# What type of objects to build.
14588pic_mode=$pic_mode
14589
14590# Whether or not to optimize for fast installation.
14591fast_install=$enable_fast_install
14592
14593# Shell to use when invoking shell scripts.
14594SHELL=$lt_SHELL
14595
14596# An echo program that protects backslashes.
14597ECHO=$lt_ECHO
14598
14599# The PATH separator for the build system.
14600PATH_SEPARATOR=$lt_PATH_SEPARATOR
14601
14602# The host system.
14603host_alias=$host_alias
14604host=$host
14605host_os=$host_os
14606
14607# The build system.
14608build_alias=$build_alias
14609build=$build
14610build_os=$build_os
14611
14612# A sed program that does not truncate output.
14613SED=$lt_SED
14614
14615# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14616Xsed="\$SED -e 1s/^X//"
14617
14618# A grep program that handles long lines.
14619GREP=$lt_GREP
14620
14621# An ERE matcher.
14622EGREP=$lt_EGREP
14623
14624# A literal string matcher.
14625FGREP=$lt_FGREP
14626
14627# A BSD- or MS-compatible name lister.
14628NM=$lt_NM
14629
14630# Whether we need soft or hard links.
14631LN_S=$lt_LN_S
14632
14633# What is the maximum length of a command?
14634max_cmd_len=$max_cmd_len
14635
14636# Object file suffix (normally "o").
14637objext=$ac_objext
14638
14639# Executable file suffix (normally "").
14640exeext=$exeext
14641
14642# whether the shell understands "unset".
14643lt_unset=$lt_unset
14644
14645# turn spaces into newlines.
14646SP2NL=$lt_lt_SP2NL
14647
14648# turn newlines into spaces.
14649NL2SP=$lt_lt_NL2SP
14650
14651# convert \$build file names to \$host format.
14652to_host_file_cmd=$lt_cv_to_host_file_cmd
14653
14654# convert \$build files to toolchain format.
14655to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14656
14657# An object symbol dumper.
14658OBJDUMP=$lt_OBJDUMP
14659
14660# Method to check whether dependent libraries are shared objects.
14661deplibs_check_method=$lt_deplibs_check_method
14662
14663# Command to use when deplibs_check_method = "file_magic".
14664file_magic_cmd=$lt_file_magic_cmd
14665
14666# How to find potential files when deplibs_check_method = "file_magic".
14667file_magic_glob=$lt_file_magic_glob
14668
14669# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14670want_nocaseglob=$lt_want_nocaseglob
14671
14672# DLL creation program.
14673DLLTOOL=$lt_DLLTOOL
14674
14675# Command to associate shared and link libraries.
14676sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14677
14678# The archiver.
14679AR=$lt_AR
14680
14681# Flags to create an archive.
14682AR_FLAGS=$lt_AR_FLAGS
14683
14684# How to feed a file listing to the archiver.
14685archiver_list_spec=$lt_archiver_list_spec
14686
14687# A symbol stripping program.
14688STRIP=$lt_STRIP
14689
14690# Commands used to install an old-style archive.
14691RANLIB=$lt_RANLIB
14692old_postinstall_cmds=$lt_old_postinstall_cmds
14693old_postuninstall_cmds=$lt_old_postuninstall_cmds
14694
14695# Whether to use a lock for old archive extraction.
14696lock_old_archive_extraction=$lock_old_archive_extraction
14697
14698# A C compiler.
14699LTCC=$lt_CC
14700
14701# LTCC compiler flags.
14702LTCFLAGS=$lt_CFLAGS
14703
14704# Take the output of nm and produce a listing of raw symbols and C names.
14705global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14706
14707# Transform the output of nm in a proper C declaration.
14708global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14709
14710# Transform the output of nm in a C name address pair.
14711global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14712
14713# Transform the output of nm in a C name address pair when lib prefix is needed.
14714global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14715
14716# Specify filename containing input files for \$NM.
14717nm_file_list_spec=$lt_nm_file_list_spec
14718
14719# The root where to search for dependent libraries,and in which our libraries should be installed.
14720lt_sysroot=$lt_sysroot
14721
14722# The name of the directory that contains temporary libtool files.
14723objdir=$objdir
14724
14725# Used to examine libraries when file_magic_cmd begins with "file".
14726MAGIC_CMD=$MAGIC_CMD
14727
14728# Must we lock files when doing compilation?
14729need_locks=$lt_need_locks
14730
14731# Manifest tool.
14732MANIFEST_TOOL=$lt_MANIFEST_TOOL
14733
14734# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14735DSYMUTIL=$lt_DSYMUTIL
14736
14737# Tool to change global to local symbols on Mac OS X.
14738NMEDIT=$lt_NMEDIT
14739
14740# Tool to manipulate fat objects and archives on Mac OS X.
14741LIPO=$lt_LIPO
14742
14743# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14744OTOOL=$lt_OTOOL
14745
14746# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14747OTOOL64=$lt_OTOOL64
14748
14749# Old archive suffix (normally "a").
14750libext=$libext
14751
14752# Shared library suffix (normally ".so").
14753shrext_cmds=$lt_shrext_cmds
14754
14755# The commands to extract the exported symbol list from a shared archive.
14756extract_expsyms_cmds=$lt_extract_expsyms_cmds
14757
14758# Variables whose values should be saved in libtool wrapper scripts and
14759# restored at link time.
14760variables_saved_for_relink=$lt_variables_saved_for_relink
14761
14762# Do we need the "lib" prefix for modules?
14763need_lib_prefix=$need_lib_prefix
14764
14765# Do we need a version for libraries?
14766need_version=$need_version
14767
14768# Library versioning type.
14769version_type=$version_type
14770
14771# Shared library runtime path variable.
14772runpath_var=$runpath_var
14773
14774# Shared library path variable.
14775shlibpath_var=$shlibpath_var
14776
14777# Is shlibpath searched before the hard-coded library search path?
14778shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14779
14780# Format of library name prefix.
14781libname_spec=$lt_libname_spec
14782
14783# List of archive names.  First name is the real one, the rest are links.
14784# The last name is the one that the linker finds with -lNAME
14785library_names_spec=$lt_library_names_spec
14786
14787# The coded name of the library, if different from the real name.
14788soname_spec=$lt_soname_spec
14789
14790# Permission mode override for installation of shared libraries.
14791install_override_mode=$lt_install_override_mode
14792
14793# Command to use after installation of a shared archive.
14794postinstall_cmds=$lt_postinstall_cmds
14795
14796# Command to use after uninstallation of a shared archive.
14797postuninstall_cmds=$lt_postuninstall_cmds
14798
14799# Commands used to finish a libtool library installation in a directory.
14800finish_cmds=$lt_finish_cmds
14801
14802# As "finish_cmds", except a single script fragment to be evaled but
14803# not shown.
14804finish_eval=$lt_finish_eval
14805
14806# Whether we should hardcode library paths into libraries.
14807hardcode_into_libs=$hardcode_into_libs
14808
14809# Compile-time system search path for libraries.
14810sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14811
14812# Run-time system search path for libraries.
14813sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14814
14815# Whether dlopen is supported.
14816dlopen_support=$enable_dlopen
14817
14818# Whether dlopen of programs is supported.
14819dlopen_self=$enable_dlopen_self
14820
14821# Whether dlopen of statically linked programs is supported.
14822dlopen_self_static=$enable_dlopen_self_static
14823
14824# Commands to strip libraries.
14825old_striplib=$lt_old_striplib
14826striplib=$lt_striplib
14827
14828
14829# The linker used to build libraries.
14830LD=$lt_LD
14831
14832# How to create reloadable object files.
14833reload_flag=$lt_reload_flag
14834reload_cmds=$lt_reload_cmds
14835
14836# Commands used to build an old-style archive.
14837old_archive_cmds=$lt_old_archive_cmds
14838
14839# A language specific compiler.
14840CC=$lt_compiler
14841
14842# Is the compiler the GNU compiler?
14843with_gcc=$GCC
14844
14845# Compiler flag to turn off builtin functions.
14846no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14847
14848# Additional compiler flags for building library objects.
14849pic_flag=$lt_lt_prog_compiler_pic
14850
14851# How to pass a linker flag through the compiler.
14852wl=$lt_lt_prog_compiler_wl
14853
14854# Compiler flag to prevent dynamic linking.
14855link_static_flag=$lt_lt_prog_compiler_static
14856
14857# Does compiler simultaneously support -c and -o options?
14858compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14859
14860# Whether or not to add -lc for building shared libraries.
14861build_libtool_need_lc=$archive_cmds_need_lc
14862
14863# Whether or not to disallow shared libs when runtime libs are static.
14864allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14865
14866# Compiler flag to allow reflexive dlopens.
14867export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14868
14869# Compiler flag to generate shared objects directly from archives.
14870whole_archive_flag_spec=$lt_whole_archive_flag_spec
14871
14872# Whether the compiler copes with passing no objects directly.
14873compiler_needs_object=$lt_compiler_needs_object
14874
14875# Create an old-style archive from a shared archive.
14876old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14877
14878# Create a temporary old-style archive to link instead of a shared archive.
14879old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14880
14881# Commands used to build a shared archive.
14882archive_cmds=$lt_archive_cmds
14883archive_expsym_cmds=$lt_archive_expsym_cmds
14884
14885# Commands used to build a loadable module if different from building
14886# a shared archive.
14887module_cmds=$lt_module_cmds
14888module_expsym_cmds=$lt_module_expsym_cmds
14889
14890# Whether we are building with GNU ld or not.
14891with_gnu_ld=$lt_with_gnu_ld
14892
14893# Flag that allows shared libraries with undefined symbols to be built.
14894allow_undefined_flag=$lt_allow_undefined_flag
14895
14896# Flag that enforces no undefined symbols.
14897no_undefined_flag=$lt_no_undefined_flag
14898
14899# Flag to hardcode \$libdir into a binary during linking.
14900# This must work even if \$libdir does not exist
14901hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14902
14903# Whether we need a single "-rpath" flag with a separated argument.
14904hardcode_libdir_separator=$lt_hardcode_libdir_separator
14905
14906# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14907# DIR into the resulting binary.
14908hardcode_direct=$hardcode_direct
14909
14910# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14911# DIR into the resulting binary and the resulting library dependency is
14912# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14913# library is relocated.
14914hardcode_direct_absolute=$hardcode_direct_absolute
14915
14916# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14917# into the resulting binary.
14918hardcode_minus_L=$hardcode_minus_L
14919
14920# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14921# into the resulting binary.
14922hardcode_shlibpath_var=$hardcode_shlibpath_var
14923
14924# Set to "yes" if building a shared library automatically hardcodes DIR
14925# into the library and all subsequent libraries and executables linked
14926# against it.
14927hardcode_automatic=$hardcode_automatic
14928
14929# Set to yes if linker adds runtime paths of dependent libraries
14930# to runtime path list.
14931inherit_rpath=$inherit_rpath
14932
14933# Whether libtool must link a program against all its dependency libraries.
14934link_all_deplibs=$link_all_deplibs
14935
14936# Set to "yes" if exported symbols are required.
14937always_export_symbols=$always_export_symbols
14938
14939# The commands to list exported symbols.
14940export_symbols_cmds=$lt_export_symbols_cmds
14941
14942# Symbols that should not be listed in the preloaded symbols.
14943exclude_expsyms=$lt_exclude_expsyms
14944
14945# Symbols that must always be exported.
14946include_expsyms=$lt_include_expsyms
14947
14948# Commands necessary for linking programs (against libraries) with templates.
14949prelink_cmds=$lt_prelink_cmds
14950
14951# Commands necessary for finishing linking programs.
14952postlink_cmds=$lt_postlink_cmds
14953
14954# Specify filename containing input files.
14955file_list_spec=$lt_file_list_spec
14956
14957# How to hardcode a shared library path into an executable.
14958hardcode_action=$hardcode_action
14959
14960# ### END LIBTOOL CONFIG
14961
14962_LT_EOF
14963
14964  case $host_os in
14965  aix3*)
14966    cat <<\_LT_EOF >> "$cfgfile"
14967# AIX sometimes has problems with the GCC collect2 program.  For some
14968# reason, if we set the COLLECT_NAMES environment variable, the problems
14969# vanish in a puff of smoke.
14970if test "X${COLLECT_NAMES+set}" != Xset; then
14971  COLLECT_NAMES=
14972  export COLLECT_NAMES
14973fi
14974_LT_EOF
14975    ;;
14976  esac
14977
14978
14979ltmain="$ac_aux_dir/ltmain.sh"
14980
14981
14982  # We use sed instead of cat because bash on DJGPP gets confused if
14983  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14984  # text mode, it properly converts lines to CR/LF.  This bash problem
14985  # is reportedly fixed, but why not run on old versions too?
14986  sed '$q' "$ltmain" >> "$cfgfile" \
14987     || (rm -f "$cfgfile"; exit 1)
14988
14989  if test x"$xsi_shell" = xyes; then
14990  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14991func_dirname ()\
14992{\
14993\    case ${1} in\
14994\      */*) func_dirname_result="${1%/*}${2}" ;;\
14995\      *  ) func_dirname_result="${3}" ;;\
14996\    esac\
14997} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14998  && mv -f "$cfgfile.tmp" "$cfgfile" \
14999    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15000test 0 -eq $? || _lt_function_replace_fail=:
15001
15002
15003  sed -e '/^func_basename ()$/,/^} # func_basename /c\
15004func_basename ()\
15005{\
15006\    func_basename_result="${1##*/}"\
15007} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
15008  && mv -f "$cfgfile.tmp" "$cfgfile" \
15009    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15010test 0 -eq $? || _lt_function_replace_fail=:
15011
15012
15013  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
15014func_dirname_and_basename ()\
15015{\
15016\    case ${1} in\
15017\      */*) func_dirname_result="${1%/*}${2}" ;;\
15018\      *  ) func_dirname_result="${3}" ;;\
15019\    esac\
15020\    func_basename_result="${1##*/}"\
15021} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
15022  && mv -f "$cfgfile.tmp" "$cfgfile" \
15023    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15024test 0 -eq $? || _lt_function_replace_fail=:
15025
15026
15027  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
15028func_stripname ()\
15029{\
15030\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
15031\    # positional parameters, so assign one to ordinary parameter first.\
15032\    func_stripname_result=${3}\
15033\    func_stripname_result=${func_stripname_result#"${1}"}\
15034\    func_stripname_result=${func_stripname_result%"${2}"}\
15035} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
15036  && mv -f "$cfgfile.tmp" "$cfgfile" \
15037    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15038test 0 -eq $? || _lt_function_replace_fail=:
15039
15040
15041  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
15042func_split_long_opt ()\
15043{\
15044\    func_split_long_opt_name=${1%%=*}\
15045\    func_split_long_opt_arg=${1#*=}\
15046} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
15047  && mv -f "$cfgfile.tmp" "$cfgfile" \
15048    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15049test 0 -eq $? || _lt_function_replace_fail=:
15050
15051
15052  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
15053func_split_short_opt ()\
15054{\
15055\    func_split_short_opt_arg=${1#??}\
15056\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
15057} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
15058  && mv -f "$cfgfile.tmp" "$cfgfile" \
15059    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15060test 0 -eq $? || _lt_function_replace_fail=:
15061
15062
15063  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
15064func_lo2o ()\
15065{\
15066\    case ${1} in\
15067\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
15068\      *)    func_lo2o_result=${1} ;;\
15069\    esac\
15070} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
15071  && mv -f "$cfgfile.tmp" "$cfgfile" \
15072    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15073test 0 -eq $? || _lt_function_replace_fail=:
15074
15075
15076  sed -e '/^func_xform ()$/,/^} # func_xform /c\
15077func_xform ()\
15078{\
15079    func_xform_result=${1%.*}.lo\
15080} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
15081  && mv -f "$cfgfile.tmp" "$cfgfile" \
15082    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15083test 0 -eq $? || _lt_function_replace_fail=:
15084
15085
15086  sed -e '/^func_arith ()$/,/^} # func_arith /c\
15087func_arith ()\
15088{\
15089    func_arith_result=$(( $* ))\
15090} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
15091  && mv -f "$cfgfile.tmp" "$cfgfile" \
15092    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15093test 0 -eq $? || _lt_function_replace_fail=:
15094
15095
15096  sed -e '/^func_len ()$/,/^} # func_len /c\
15097func_len ()\
15098{\
15099    func_len_result=${#1}\
15100} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
15101  && mv -f "$cfgfile.tmp" "$cfgfile" \
15102    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15103test 0 -eq $? || _lt_function_replace_fail=:
15104
15105fi
15106
15107if test x"$lt_shell_append" = xyes; then
15108  sed -e '/^func_append ()$/,/^} # func_append /c\
15109func_append ()\
15110{\
15111    eval "${1}+=\\${2}"\
15112} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
15113  && mv -f "$cfgfile.tmp" "$cfgfile" \
15114    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15115test 0 -eq $? || _lt_function_replace_fail=:
15116
15117
15118  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
15119func_append_quoted ()\
15120{\
15121\    func_quote_for_eval "${2}"\
15122\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
15123} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
15124  && mv -f "$cfgfile.tmp" "$cfgfile" \
15125    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15126test 0 -eq $? || _lt_function_replace_fail=:
15127
15128
15129  # Save a `func_append' function call where possible by direct use of '+='
15130  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
15131    && mv -f "$cfgfile.tmp" "$cfgfile" \
15132      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15133  test 0 -eq $? || _lt_function_replace_fail=:
15134else
15135  # Save a `func_append' function call even when '+=' is not available
15136  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
15137    && mv -f "$cfgfile.tmp" "$cfgfile" \
15138      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15139  test 0 -eq $? || _lt_function_replace_fail=:
15140fi
15141
15142if test x"$_lt_function_replace_fail" = x":"; then
15143  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
15144$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
15145fi
15146
15147
15148   mv -f "$cfgfile" "$ofile" ||
15149    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15150  chmod +x "$ofile"
15151
15152 ;;
15153
15154  esac
15155done # for ac_tag
15156
15157
15158as_fn_exit 0
15159_ACEOF
15160ac_clean_files=$ac_clean_files_save
15161
15162test $ac_write_fail = 0 ||
15163  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15164
15165
15166# configure is writing to config.log, and then calls config.status.
15167# config.status does its own redirection, appending to config.log.
15168# Unfortunately, on DOS this fails, as config.log is still kept open
15169# by configure, so config.status won't be able to write to it; its
15170# output is simply discarded.  So we exec the FD to /dev/null,
15171# effectively closing config.log, so it can be properly (re)opened and
15172# appended to by config.status.  When coming back to configure, we
15173# need to make the FD available again.
15174if test "$no_create" != yes; then
15175  ac_cs_success=:
15176  ac_config_status_args=
15177  test "$silent" = yes &&
15178    ac_config_status_args="$ac_config_status_args --quiet"
15179  exec 5>/dev/null
15180  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15181  exec 5>>config.log
15182  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15183  # would make configure fail if this is the last instruction.
15184  $ac_cs_success || as_fn_exit 1
15185fi
15186if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15187  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15188$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15189fi
15190
15191
15192echo .
15193echo "
15194
15195  libcap-ng Version:      $VERSION
15196  Target:                 $target
15197  Installation prefix:    $prefix
15198  Compiler:               $CC
15199  Compiler flags:
15200`echo $CFLAGS | fmt -w 50 | sed 's,^,                          ,'`
15201"
15202