libsodium update: 1.0.0
[tomato.git] / release / src / router / dnscrypt / autom4te.cache / output.0
bloba202d8ccaf38ba55352eb3f305cd2cc02f9b7d1e
1 @%:@! /bin/sh
2 @%:@ Guess values for system-dependent variables and create Makefiles.
3 @%:@ Generated by GNU Autoconf 2.69 for dnscrypt-proxy 1.4.0.
4 @%:@
5 @%:@ Report bugs to <http://dnscrypt.org>.
6 @%:@ 
7 @%:@ 
8 @%:@ Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 @%:@ 
10 @%:@ 
11 @%:@ This configure script is free software; the Free Software Foundation
12 @%:@ gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in @%:@(
28   *posix*) :
29     set -o posix ;; @%:@(
30   *) :
31      ;;
32 esac
36 as_nl='
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in @%:@(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in @%:@((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138   # into an infinite loop, continuously re-executing ourselves.
139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140     _as_can_reexec=no; export _as_can_reexec;
141     # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in @%:@ ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159   fi
160   # We don't want this to propagate to other subprocesses.
161           { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164   emulate sh
165   NULLCMD=:
166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167   # is contrary to our usage.  Disable this feature.
168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
169   setopt NO_GLOB_SUBST
170 else
171   case \`(set -o) 2>/dev/null\` in @%:@(
172   *posix*) :
173     set -o posix ;; @%:@(
174   *) :
175      ;;
176 esac
179   as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191   
192 else
193   exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
203   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207     PATH=/empty FPATH=/empty; export PATH FPATH
208     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210   if (eval "$as_required") 2>/dev/null; then :
211   as_have_required=yes
212 else
213   as_have_required=no
215   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216   
217 else
218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
222   IFS=$as_save_IFS
223   test -z "$as_dir" && as_dir=.
224   as_found=:
225   case $as_dir in @%:@(
226          /*)
227            for as_base in sh bash ksh sh5; do
228              # Try only shells that exist, to save several forks.
229              as_shell=$as_dir/$as_base
230              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   CONFIG_SHELL=$as_shell as_have_required=yes
233                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234   break 2
237            done;;
238        esac
239   as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243   CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
248       if test "x$CONFIG_SHELL" != x; then :
249   export CONFIG_SHELL
250              # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in @%:@ ((((
258   *v*x* | *x*v* ) as_opts=-vx ;;
259   *v* ) as_opts=-v ;;
260   *x* ) as_opts=-x ;;
261   * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
270     if test x$as_have_required = xno; then :
271   $as_echo "$0: This script requires a shell more modern than all"
272   $as_echo "$0: the shells that I found on your system."
273   if test x${ZSH_VERSION+set} = xset ; then
274     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276   else
277     $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: http://dnscrypt.org about your system, including any
279 $0: error possibly output before this message. Then install
280 $0: a modern shell, or manually run the script under such a
281 $0: shell if you do have one."
282   fi
283   exit 1
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 @%:@ as_fn_unset VAR
297 @%:@ ---------------
298 @%:@ Portably unset VAR.
299 as_fn_unset ()
301   { eval $1=; unset $1;}
303 as_unset=as_fn_unset
305 @%:@ as_fn_set_status STATUS
306 @%:@ -----------------------
307 @%:@ Set @S|@? to STATUS, without forking.
308 as_fn_set_status ()
310   return $1
311 } @%:@ as_fn_set_status
313 @%:@ as_fn_exit STATUS
314 @%:@ -----------------
315 @%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
318   set +e
319   as_fn_set_status $1
320   exit $1
321 } @%:@ as_fn_exit
323 @%:@ as_fn_mkdir_p
324 @%:@ -------------
325 @%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
329   case $as_dir in #(
330   -*) as_dir=./$as_dir;;
331   esac
332   test -d "$as_dir" || eval $as_mkdir_p || {
333     as_dirs=
334     while :; do
335       case $as_dir in #(
336       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337       *) as_qdir=$as_dir;;
338       esac
339       as_dirs="'$as_qdir' $as_dirs"
340       as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342          X"$as_dir" : 'X\(//\)[^/]' \| \
343          X"$as_dir" : 'X\(//\)$' \| \
344          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347             s//\1/
348             q
349           }
350           /^X\(\/\/\)[^/].*/{
351             s//\1/
352             q
353           }
354           /^X\(\/\/\)$/{
355             s//\1/
356             q
357           }
358           /^X\(\/\).*/{
359             s//\1/
360             q
361           }
362           s/.*/./; q'`
363       test -d "$as_dir" && break
364     done
365     test -z "$as_dirs" || eval "mkdir $as_dirs"
366   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
369 } @%:@ as_fn_mkdir_p
371 @%:@ as_fn_executable_p FILE
372 @%:@ -----------------------
373 @%:@ Test if FILE is an executable regular file.
374 as_fn_executable_p ()
376   test -f "$1" && test -x "$1"
377 } @%:@ as_fn_executable_p
378 @%:@ as_fn_append VAR VALUE
379 @%:@ ----------------------
380 @%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
381 @%:@ advantage of any shell optimizations that allow amortized linear growth over
382 @%:@ repeated appends, instead of the typical quadratic growth present in naive
383 @%:@ implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385   eval 'as_fn_append ()
386   {
387     eval $1+=\$2
388   }'
389 else
390   as_fn_append ()
391   {
392     eval $1=\$$1\$2
393   }
394 fi # as_fn_append
396 @%:@ as_fn_arith ARG...
397 @%:@ ------------------
398 @%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
399 @%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
400 @%:@ must be portable across @S|@(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402   eval 'as_fn_arith ()
403   {
404     as_val=$(( $* ))
405   }'
406 else
407   as_fn_arith ()
408   {
409     as_val=`expr "$@" || test $? -eq 1`
410   }
411 fi # as_fn_arith
414 @%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
415 @%:@ ----------------------------------------
416 @%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 @%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 @%:@ script with STATUS, using 1 if that was 0.
419 as_fn_error ()
421   as_status=$1; test $as_status -eq 0 && as_status=1
422   if test "$4"; then
423     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425   fi
426   $as_echo "$as_me: error: $2" >&2
427   as_fn_exit $as_status
428 } @%:@ as_fn_error
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431    test "X`expr 00001 : '.*\(...\)'`" = X001; then
432   as_expr=expr
433 else
434   as_expr=false
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438   as_basename=basename
439 else
440   as_basename=false
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444   as_dirname=dirname
445 else
446   as_dirname=false
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451          X"$0" : 'X\(//\)$' \| \
452          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454     sed '/^.*\/\([^/][^/]*\)\/*$/{
455             s//\1/
456             q
457           }
458           /^X\/\(\/\/\)$/{
459             s//\1/
460             q
461           }
462           /^X\/\(\/\).*/{
463             s//\1/
464             q
465           }
466           s/.*/./; q'`
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
476   as_lineno_1=$LINENO as_lineno_1a=$LINENO
477   as_lineno_2=$LINENO as_lineno_2a=$LINENO
478   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481   sed -n '
482     p
483     /[$]LINENO/=
484   ' <$as_myself |
485     sed '
486       s/[$]LINENO.*/&-/
487       t lineno
488       b
489       :lineno
490       N
491       :loop
492       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493       t loop
494       s/-\n.*//
495     ' >$as_me.lineno &&
496   chmod +x "$as_me.lineno" ||
497     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500   # already done that, so ensure we don't try to do so again and fall
501   # in an infinite loop.  This has already happened in practice.
502   _as_can_reexec=no; export _as_can_reexec
503   # Don't try to exec as it changes $[0], causing all sort of problems
504   # (the dirname of $[0] is not the place where we might find the
505   # original and so on.  Autoconf is especially sensitive to this).
506   . "./$as_me.lineno"
507   # Exit status is that of the last command.
508   exit
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in @%:@(((((
513 -n*)
514   case `echo 'xy\c'` in
515   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
516   xy)  ECHO_C='\c';;
517   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518        ECHO_T=' ';;
519   esac;;
521   ECHO_N='-n';;
522 esac
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526   rm -f conf$$.dir/conf$$.file
527 else
528   rm -f conf$$.dir
529   mkdir conf$$.dir 2>/dev/null
531 if (echo >conf$$.file) 2>/dev/null; then
532   if ln -s conf$$.file conf$$ 2>/dev/null; then
533     as_ln_s='ln -s'
534     # ... but there are two gotchas:
535     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537     # In both cases, we have to default to `cp -pR'.
538     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539       as_ln_s='cp -pR'
540   elif ln conf$$.file conf$$ 2>/dev/null; then
541     as_ln_s=ln
542   else
543     as_ln_s='cp -pR'
544   fi
545 else
546   as_ln_s='cp -pR'
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
551 if mkdir -p . 2>/dev/null; then
552   as_mkdir_p='mkdir -p "$as_dir"'
553 else
554   test -d ./-p && rmdir ./-p
555   as_mkdir_p=false
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567 SHELL=${CONFIG_SHELL-/bin/sh}
569 lt_ltdl_dir='libltdl'
571 lt_dlopen_dir="$lt_ltdl_dir"
574 test -n "$DJDIR" || exec 7<&0 </dev/null
575 exec 6>&1
577 # Name of the host.
578 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
579 # so uname gets run too.
580 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
583 # Initializations.
585 ac_default_prefix=/usr/local
586 ac_clean_files=
587 ac_config_libobj_dir=.
588 LIB@&t@OBJS=
589 cross_compiling=no
590 subdirs=
591 MFLAGS=
592 MAKEFLAGS=
594 # Identity of this package.
595 PACKAGE_NAME='dnscrypt-proxy'
596 PACKAGE_TARNAME='dnscrypt-proxy'
597 PACKAGE_VERSION='1.4.0'
598 PACKAGE_STRING='dnscrypt-proxy 1.4.0'
599 PACKAGE_BUGREPORT='http://dnscrypt.org'
600 PACKAGE_URL=''
602 ac_unique_file="src/proxy/app.c"
603 enable_option_checking=no
604 # Factoring default headers for most tests.
605 ac_includes_default="\
606 #include <stdio.h>
607 #ifdef HAVE_SYS_TYPES_H
608 # include <sys/types.h>
609 #endif
610 #ifdef HAVE_SYS_STAT_H
611 # include <sys/stat.h>
612 #endif
613 #ifdef STDC_HEADERS
614 # include <stdlib.h>
615 # include <stddef.h>
616 #else
617 # ifdef HAVE_STDLIB_H
618 #  include <stdlib.h>
619 # endif
620 #endif
621 #ifdef HAVE_STRING_H
622 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
623 #  include <memory.h>
624 # endif
625 # include <string.h>
626 #endif
627 #ifdef HAVE_STRINGS_H
628 # include <strings.h>
629 #endif
630 #ifdef HAVE_INTTYPES_H
631 # include <inttypes.h>
632 #endif
633 #ifdef HAVE_STDINT_H
634 # include <stdint.h>
635 #endif
636 #ifdef HAVE_UNISTD_H
637 # include <unistd.h>
638 #endif"
640 ac_subst_vars='ltdl_LTLIBOBJS
641 ltdl_LIBOBJS
642 am__EXEEXT_FALSE
643 am__EXEEXT_TRUE
644 LTLIBOBJS
645 LIB@&t@OBJS
646 LTDLOPEN
647 LT_CONFIG_H
648 CONVENIENCE_LTDL_FALSE
649 CONVENIENCE_LTDL_TRUE
650 INSTALL_LTDL_FALSE
651 INSTALL_LTDL_TRUE
652 ARGZ_H
653 sys_symbol_underscore
654 LIBADD_DL
655 LT_DLPREOPEN
656 LIBADD_DLD_LINK
657 LIBADD_SHL_LOAD
658 LIBADD_DLOPEN
659 LT_DLLOADERS
660 INCLTDL
661 LTDLINCL
662 LTDLDEPS
663 LIBLTDL
664 LDNS_LIBS
665 USE_LDNS_FALSE
666 USE_LDNS_TRUE
667 PROBES_SOURCE
668 DTRACE
669 SIXJACK
670 RONN
671 LIBTOOL_DEPS
672 OTOOL64
673 OTOOL
674 LIPO
675 NMEDIT
676 DSYMUTIL
677 MANIFEST_TOOL
678 RANLIB
679 ac_ct_AR
681 DLLTOOL
682 OBJDUMP
683 LN_S
685 ac_ct_DUMPBIN
686 DUMPBIN
688 FGREP
690 LIBTOOL
691 CWFLAGS
692 EGREP
693 GREP
695 am__fastdepCC_FALSE
696 am__fastdepCC_TRUE
697 CCDEPMODE
698 am__quote
699 am__include
700 DEPDIR
701 OBJEXT
702 EXEEXT
703 ac_ct_CC
704 CPPFLAGS
705 LDFLAGS
706 CFLAGS
708 ENABLE_PLUGINS_ROOT_FALSE
709 ENABLE_PLUGINS_ROOT_TRUE
710 RELAXED_PLUGINS_PERMISSIONS_FALSE
711 RELAXED_PLUGINS_PERMISSIONS_TRUE
712 PLUGINS_FALSE
713 PLUGINS_TRUE
714 SAFECODE_HOME
715 ISODATE
716 am__nodep
717 AMDEPBACKSLASH
718 AMDEP_FALSE
719 AMDEP_TRUE
720 MAINT
721 MAINTAINER_MODE_FALSE
722 MAINTAINER_MODE_TRUE
723 AM_BACKSLASH
724 AM_DEFAULT_VERBOSITY
725 AM_DEFAULT_V
726 AM_V
727 am__untar
728 am__tar
729 AMTAR
730 am__leading_dot
731 SET_MAKE
733 mkdir_p
734 MKDIR_P
735 INSTALL_STRIP_PROGRAM
736 STRIP
737 install_sh
738 MAKEINFO
739 AUTOHEADER
740 AUTOMAKE
741 AUTOCONF
742 ACLOCAL
743 VERSION
744 PACKAGE
745 CYGPATH_W
746 am__isrc
747 INSTALL_DATA
748 INSTALL_SCRIPT
749 INSTALL_PROGRAM
750 host_os
751 host_vendor
752 host_cpu
753 host
754 build_os
755 build_vendor
756 build_cpu
757 build
758 subdirs
759 target_alias
760 host_alias
761 build_alias
762 LIBS
763 ECHO_T
764 ECHO_N
765 ECHO_C
766 DEFS
767 mandir
768 localedir
769 libdir
770 psdir
771 pdfdir
772 dvidir
773 htmldir
774 infodir
775 docdir
776 oldincludedir
777 includedir
778 localstatedir
779 sharedstatedir
780 sysconfdir
781 datadir
782 datarootdir
783 libexecdir
784 sbindir
785 bindir
786 program_transform_name
787 prefix
788 exec_prefix
789 PACKAGE_URL
790 PACKAGE_BUGREPORT
791 PACKAGE_STRING
792 PACKAGE_VERSION
793 PACKAGE_TARNAME
794 PACKAGE_NAME
795 PATH_SEPARATOR
796 SHELL'
797 ac_subst_files=''
798 ac_user_opts='
799 enable_option_checking
800 enable_silent_rules
801 enable_maintainer_mode
802 enable_dependency_tracking
803 enable_ssp
804 enable_pie
805 with_safecode
806 enable_debug
807 enable_plugins
808 enable_relaxed_plugins_permissions
809 enable_plugins_root
810 enable_shared
811 enable_static
812 with_pic
813 enable_fast_install
814 with_gnu_ld
815 with_sysroot
816 enable_libtool_lock
817 enable_largefile
818 with_included_ltdl
819 with_ltdl_include
820 with_ltdl_lib
821 enable_ltdl_install
823       ac_precious_vars='build_alias
824 host_alias
825 target_alias
826 SAFECODE_HOME
828 CFLAGS
829 LDFLAGS
830 LIBS
831 CPPFLAGS
833 CWFLAGS
834 RONN
835 SIXJACK
837 DTRACE'
838 ac_subdirs_all='src/libevent-modified
839 libltdl'
841 # Initialize some variables set by options.
842 ac_init_help=
843 ac_init_version=false
844 ac_unrecognized_opts=
845 ac_unrecognized_sep=
846 # The variables have the same names as the options, with
847 # dashes changed to underlines.
848 cache_file=/dev/null
849 exec_prefix=NONE
850 no_create=
851 no_recursion=
852 prefix=NONE
853 program_prefix=NONE
854 program_suffix=NONE
855 program_transform_name=s,x,x,
856 silent=
857 site=
858 srcdir=
859 verbose=
860 x_includes=NONE
861 x_libraries=NONE
863 # Installation directory options.
864 # These are left unexpanded so users can "make install exec_prefix=/foo"
865 # and all the variables that are supposed to be based on exec_prefix
866 # by default will actually change.
867 # Use braces instead of parens because sh, perl, etc. also accept them.
868 # (The list follows the same order as the GNU Coding Standards.)
869 bindir='${exec_prefix}/bin'
870 sbindir='${exec_prefix}/sbin'
871 libexecdir='${exec_prefix}/libexec'
872 datarootdir='${prefix}/share'
873 datadir='${datarootdir}'
874 sysconfdir='${prefix}/etc'
875 sharedstatedir='${prefix}/com'
876 localstatedir='${prefix}/var'
877 includedir='${prefix}/include'
878 oldincludedir='/usr/include'
879 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
880 infodir='${datarootdir}/info'
881 htmldir='${docdir}'
882 dvidir='${docdir}'
883 pdfdir='${docdir}'
884 psdir='${docdir}'
885 libdir='${exec_prefix}/lib'
886 localedir='${datarootdir}/locale'
887 mandir='${datarootdir}/man'
889 ac_prev=
890 ac_dashdash=
891 for ac_option
893   # If the previous option needs an argument, assign it.
894   if test -n "$ac_prev"; then
895     eval $ac_prev=\$ac_option
896     ac_prev=
897     continue
898   fi
900   case $ac_option in
901   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
902   *=)   ac_optarg= ;;
903   *)    ac_optarg=yes ;;
904   esac
906   # Accept the important Cygnus configure options, so we can diagnose typos.
908   case $ac_dashdash$ac_option in
909   --)
910     ac_dashdash=yes ;;
912   -bindir | --bindir | --bindi | --bind | --bin | --bi)
913     ac_prev=bindir ;;
914   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
915     bindir=$ac_optarg ;;
917   -build | --build | --buil | --bui | --bu)
918     ac_prev=build_alias ;;
919   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
920     build_alias=$ac_optarg ;;
922   -cache-file | --cache-file | --cache-fil | --cache-fi \
923   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
924     ac_prev=cache_file ;;
925   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
926   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
927     cache_file=$ac_optarg ;;
929   --config-cache | -C)
930     cache_file=config.cache ;;
932   -datadir | --datadir | --datadi | --datad)
933     ac_prev=datadir ;;
934   -datadir=* | --datadir=* | --datadi=* | --datad=*)
935     datadir=$ac_optarg ;;
937   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
938   | --dataroo | --dataro | --datar)
939     ac_prev=datarootdir ;;
940   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
941   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
942     datarootdir=$ac_optarg ;;
944   -disable-* | --disable-*)
945     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
946     # Reject names that are not valid shell variable names.
947     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
948       as_fn_error $? "invalid feature name: $ac_useropt"
949     ac_useropt_orig=$ac_useropt
950     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
951     case $ac_user_opts in
952       *"
953 "enable_$ac_useropt"
954 "*) ;;
955       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
956          ac_unrecognized_sep=', ';;
957     esac
958     eval enable_$ac_useropt=no ;;
960   -docdir | --docdir | --docdi | --doc | --do)
961     ac_prev=docdir ;;
962   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
963     docdir=$ac_optarg ;;
965   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
966     ac_prev=dvidir ;;
967   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
968     dvidir=$ac_optarg ;;
970   -enable-* | --enable-*)
971     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
972     # Reject names that are not valid shell variable names.
973     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
974       as_fn_error $? "invalid feature name: $ac_useropt"
975     ac_useropt_orig=$ac_useropt
976     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
977     case $ac_user_opts in
978       *"
979 "enable_$ac_useropt"
980 "*) ;;
981       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
982          ac_unrecognized_sep=', ';;
983     esac
984     eval enable_$ac_useropt=\$ac_optarg ;;
986   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
987   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
988   | --exec | --exe | --ex)
989     ac_prev=exec_prefix ;;
990   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
991   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
992   | --exec=* | --exe=* | --ex=*)
993     exec_prefix=$ac_optarg ;;
995   -gas | --gas | --ga | --g)
996     # Obsolete; use --with-gas.
997     with_gas=yes ;;
999   -help | --help | --hel | --he | -h)
1000     ac_init_help=long ;;
1001   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1002     ac_init_help=recursive ;;
1003   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1004     ac_init_help=short ;;
1006   -host | --host | --hos | --ho)
1007     ac_prev=host_alias ;;
1008   -host=* | --host=* | --hos=* | --ho=*)
1009     host_alias=$ac_optarg ;;
1011   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1012     ac_prev=htmldir ;;
1013   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1014   | --ht=*)
1015     htmldir=$ac_optarg ;;
1017   -includedir | --includedir | --includedi | --included | --include \
1018   | --includ | --inclu | --incl | --inc)
1019     ac_prev=includedir ;;
1020   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1021   | --includ=* | --inclu=* | --incl=* | --inc=*)
1022     includedir=$ac_optarg ;;
1024   -infodir | --infodir | --infodi | --infod | --info | --inf)
1025     ac_prev=infodir ;;
1026   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1027     infodir=$ac_optarg ;;
1029   -libdir | --libdir | --libdi | --libd)
1030     ac_prev=libdir ;;
1031   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1032     libdir=$ac_optarg ;;
1034   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1035   | --libexe | --libex | --libe)
1036     ac_prev=libexecdir ;;
1037   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1038   | --libexe=* | --libex=* | --libe=*)
1039     libexecdir=$ac_optarg ;;
1041   -localedir | --localedir | --localedi | --localed | --locale)
1042     ac_prev=localedir ;;
1043   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1044     localedir=$ac_optarg ;;
1046   -localstatedir | --localstatedir | --localstatedi | --localstated \
1047   | --localstate | --localstat | --localsta | --localst | --locals)
1048     ac_prev=localstatedir ;;
1049   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1050   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1051     localstatedir=$ac_optarg ;;
1053   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1054     ac_prev=mandir ;;
1055   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1056     mandir=$ac_optarg ;;
1058   -nfp | --nfp | --nf)
1059     # Obsolete; use --without-fp.
1060     with_fp=no ;;
1062   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1063   | --no-cr | --no-c | -n)
1064     no_create=yes ;;
1066   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1067   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1068     no_recursion=yes ;;
1070   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1071   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1072   | --oldin | --oldi | --old | --ol | --o)
1073     ac_prev=oldincludedir ;;
1074   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1075   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1076   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1077     oldincludedir=$ac_optarg ;;
1079   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1080     ac_prev=prefix ;;
1081   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1082     prefix=$ac_optarg ;;
1084   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1085   | --program-pre | --program-pr | --program-p)
1086     ac_prev=program_prefix ;;
1087   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1088   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1089     program_prefix=$ac_optarg ;;
1091   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1092   | --program-suf | --program-su | --program-s)
1093     ac_prev=program_suffix ;;
1094   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1095   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1096     program_suffix=$ac_optarg ;;
1098   -program-transform-name | --program-transform-name \
1099   | --program-transform-nam | --program-transform-na \
1100   | --program-transform-n | --program-transform- \
1101   | --program-transform | --program-transfor \
1102   | --program-transfo | --program-transf \
1103   | --program-trans | --program-tran \
1104   | --progr-tra | --program-tr | --program-t)
1105     ac_prev=program_transform_name ;;
1106   -program-transform-name=* | --program-transform-name=* \
1107   | --program-transform-nam=* | --program-transform-na=* \
1108   | --program-transform-n=* | --program-transform-=* \
1109   | --program-transform=* | --program-transfor=* \
1110   | --program-transfo=* | --program-transf=* \
1111   | --program-trans=* | --program-tran=* \
1112   | --progr-tra=* | --program-tr=* | --program-t=*)
1113     program_transform_name=$ac_optarg ;;
1115   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1116     ac_prev=pdfdir ;;
1117   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1118     pdfdir=$ac_optarg ;;
1120   -psdir | --psdir | --psdi | --psd | --ps)
1121     ac_prev=psdir ;;
1122   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1123     psdir=$ac_optarg ;;
1125   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1126   | -silent | --silent | --silen | --sile | --sil)
1127     silent=yes ;;
1129   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1130     ac_prev=sbindir ;;
1131   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1132   | --sbi=* | --sb=*)
1133     sbindir=$ac_optarg ;;
1135   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1136   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1137   | --sharedst | --shareds | --shared | --share | --shar \
1138   | --sha | --sh)
1139     ac_prev=sharedstatedir ;;
1140   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1141   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1142   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1143   | --sha=* | --sh=*)
1144     sharedstatedir=$ac_optarg ;;
1146   -site | --site | --sit)
1147     ac_prev=site ;;
1148   -site=* | --site=* | --sit=*)
1149     site=$ac_optarg ;;
1151   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1152     ac_prev=srcdir ;;
1153   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1154     srcdir=$ac_optarg ;;
1156   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1157   | --syscon | --sysco | --sysc | --sys | --sy)
1158     ac_prev=sysconfdir ;;
1159   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1160   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1161     sysconfdir=$ac_optarg ;;
1163   -target | --target | --targe | --targ | --tar | --ta | --t)
1164     ac_prev=target_alias ;;
1165   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1166     target_alias=$ac_optarg ;;
1168   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1169     verbose=yes ;;
1171   -version | --version | --versio | --versi | --vers | -V)
1172     ac_init_version=: ;;
1174   -with-* | --with-*)
1175     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1176     # Reject names that are not valid shell variable names.
1177     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1178       as_fn_error $? "invalid package name: $ac_useropt"
1179     ac_useropt_orig=$ac_useropt
1180     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1181     case $ac_user_opts in
1182       *"
1183 "with_$ac_useropt"
1184 "*) ;;
1185       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1186          ac_unrecognized_sep=', ';;
1187     esac
1188     eval with_$ac_useropt=\$ac_optarg ;;
1190   -without-* | --without-*)
1191     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1192     # Reject names that are not valid shell variable names.
1193     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1194       as_fn_error $? "invalid package name: $ac_useropt"
1195     ac_useropt_orig=$ac_useropt
1196     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1197     case $ac_user_opts in
1198       *"
1199 "with_$ac_useropt"
1200 "*) ;;
1201       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1202          ac_unrecognized_sep=', ';;
1203     esac
1204     eval with_$ac_useropt=no ;;
1206   --x)
1207     # Obsolete; use --with-x.
1208     with_x=yes ;;
1210   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1211   | --x-incl | --x-inc | --x-in | --x-i)
1212     ac_prev=x_includes ;;
1213   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1214   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1215     x_includes=$ac_optarg ;;
1217   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1218   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1219     ac_prev=x_libraries ;;
1220   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1221   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1222     x_libraries=$ac_optarg ;;
1224   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1225 Try \`$0 --help' for more information"
1226     ;;
1228   *=*)
1229     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1230     # Reject names that are not valid shell variable names.
1231     case $ac_envvar in #(
1232       '' | [0-9]* | *[!_$as_cr_alnum]* )
1233       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1234     esac
1235     eval $ac_envvar=\$ac_optarg
1236     export $ac_envvar ;;
1238   *)
1239     # FIXME: should be removed in autoconf 3.0.
1240     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1241     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1242       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1243     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1244     ;;
1246   esac
1247 done
1249 if test -n "$ac_prev"; then
1250   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1251   as_fn_error $? "missing argument to $ac_option"
1254 if test -n "$ac_unrecognized_opts"; then
1255   case $enable_option_checking in
1256     no) ;;
1257     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1258     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1259   esac
1262 # Check all directory arguments for consistency.
1263 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1264                 datadir sysconfdir sharedstatedir localstatedir includedir \
1265                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1266                 libdir localedir mandir
1268   eval ac_val=\$$ac_var
1269   # Remove trailing slashes.
1270   case $ac_val in
1271     */ )
1272       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1273       eval $ac_var=\$ac_val;;
1274   esac
1275   # Be sure to have absolute directory names.
1276   case $ac_val in
1277     [\\/$]* | ?:[\\/]* )  continue;;
1278     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1279   esac
1280   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1281 done
1283 # There might be people who depend on the old broken behavior: `$host'
1284 # used to hold the argument of --host etc.
1285 # FIXME: To remove some day.
1286 build=$build_alias
1287 host=$host_alias
1288 target=$target_alias
1290 # FIXME: To remove some day.
1291 if test "x$host_alias" != x; then
1292   if test "x$build_alias" = x; then
1293     cross_compiling=maybe
1294   elif test "x$build_alias" != "x$host_alias"; then
1295     cross_compiling=yes
1296   fi
1299 ac_tool_prefix=
1300 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1302 test "$silent" = yes && exec 6>/dev/null
1305 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1306 ac_ls_di=`ls -di .` &&
1307 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1308   as_fn_error $? "working directory cannot be determined"
1309 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1310   as_fn_error $? "pwd does not report name of working directory"
1313 # Find the source files, if location was not specified.
1314 if test -z "$srcdir"; then
1315   ac_srcdir_defaulted=yes
1316   # Try the directory containing this script, then the parent directory.
1317   ac_confdir=`$as_dirname -- "$as_myself" ||
1318 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1319          X"$as_myself" : 'X\(//\)[^/]' \| \
1320          X"$as_myself" : 'X\(//\)$' \| \
1321          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1322 $as_echo X"$as_myself" |
1323     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1324             s//\1/
1325             q
1326           }
1327           /^X\(\/\/\)[^/].*/{
1328             s//\1/
1329             q
1330           }
1331           /^X\(\/\/\)$/{
1332             s//\1/
1333             q
1334           }
1335           /^X\(\/\).*/{
1336             s//\1/
1337             q
1338           }
1339           s/.*/./; q'`
1340   srcdir=$ac_confdir
1341   if test ! -r "$srcdir/$ac_unique_file"; then
1342     srcdir=..
1343   fi
1344 else
1345   ac_srcdir_defaulted=no
1347 if test ! -r "$srcdir/$ac_unique_file"; then
1348   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1349   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1351 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1352 ac_abs_confdir=`(
1353         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1354         pwd)`
1355 # When building in place, set srcdir=.
1356 if test "$ac_abs_confdir" = "$ac_pwd"; then
1357   srcdir=.
1359 # Remove unnecessary trailing slashes from srcdir.
1360 # Double slashes in file names in object file debugging info
1361 # mess up M-x gdb in Emacs.
1362 case $srcdir in
1363 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1364 esac
1365 for ac_var in $ac_precious_vars; do
1366   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1367   eval ac_env_${ac_var}_value=\$${ac_var}
1368   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1369   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1370 done
1373 # Report the --help message.
1375 if test "$ac_init_help" = "long"; then
1376   # Omit some internal or obsolete options to make the list less imposing.
1377   # This message is too long to be a string in the A/UX 3.1 sh.
1378   cat <<_ACEOF
1379 \`configure' configures dnscrypt-proxy 1.4.0 to adapt to many kinds of systems.
1381 Usage: $0 [OPTION]... [VAR=VALUE]...
1383 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1384 VAR=VALUE.  See below for descriptions of some of the useful variables.
1386 Defaults for the options are specified in brackets.
1388 Configuration:
1389   -h, --help              display this help and exit
1390       --help=short        display options specific to this package
1391       --help=recursive    display the short help of all the included packages
1392   -V, --version           display version information and exit
1393   -q, --quiet, --silent   do not print \`checking ...' messages
1394       --cache-file=FILE   cache test results in FILE [disabled]
1395   -C, --config-cache      alias for \`--cache-file=config.cache'
1396   -n, --no-create         do not create output files
1397       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1399 Installation directories:
1400   --prefix=PREFIX         install architecture-independent files in PREFIX
1401                           @<:@@S|@ac_default_prefix@:>@
1402   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1403                           @<:@PREFIX@:>@
1405 By default, \`make install' will install all the files in
1406 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1407 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1408 for instance \`--prefix=\$HOME'.
1410 For better control, use the options below.
1412 Fine tuning of the installation directories:
1413   --bindir=DIR            user executables [EPREFIX/bin]
1414   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1415   --libexecdir=DIR        program executables [EPREFIX/libexec]
1416   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1417   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1418   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1419   --libdir=DIR            object code libraries [EPREFIX/lib]
1420   --includedir=DIR        C header files [PREFIX/include]
1421   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1422   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1423   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1424   --infodir=DIR           info documentation [DATAROOTDIR/info]
1425   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1426   --mandir=DIR            man documentation [DATAROOTDIR/man]
1427   --docdir=DIR            documentation root @<:@DATAROOTDIR/doc/dnscrypt-proxy@:>@
1428   --htmldir=DIR           html documentation [DOCDIR]
1429   --dvidir=DIR            dvi documentation [DOCDIR]
1430   --pdfdir=DIR            pdf documentation [DOCDIR]
1431   --psdir=DIR             ps documentation [DOCDIR]
1432 _ACEOF
1434   cat <<\_ACEOF
1436 Program names:
1437   --program-prefix=PREFIX            prepend PREFIX to installed program names
1438   --program-suffix=SUFFIX            append SUFFIX to installed program names
1439   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1441 System types:
1442   --build=BUILD     configure for building on BUILD [guessed]
1443   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1444 _ACEOF
1447 if test -n "$ac_init_help"; then
1448   case $ac_init_help in
1449      short | recursive ) echo "Configuration of dnscrypt-proxy 1.4.0:";;
1450    esac
1451   cat <<\_ACEOF
1453 Optional Features:
1454   --disable-option-checking  ignore unrecognized --enable/--with options
1455   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1456   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1457   --enable-silent-rules   less verbose build output (undo: "make V=1")
1458   --disable-silent-rules  verbose build output (undo: "make V=0")
1459   --enable-maintainer-mode 
1460                           enable make rules and dependencies not useful (and
1461                           sometimes confusing) to the casual installer
1462   --enable-dependency-tracking 
1463                           do not reject slow dependency extractors
1464   --disable-dependency-tracking 
1465                           speeds up one-time build
1466   --disable-ssp           Do not compile with -fstack-protector
1467   --disable-pie           Do not produce position independent executables
1468   --enable-debug          For maintainers only - please do not use
1469   --enable-plugins        Enable support for plugins
1470   --enable-relaxed-plugins-permissions 
1471                           Allow loading plugins owned by other users
1472   --enable-plugins-root   Only load plugins sitting in the default plugins
1473                           directory
1474   --enable-shared@<:@=PKGS@:>@  build shared libraries @<:@default=yes@:>@
1475   --enable-static@<:@=PKGS@:>@  build static libraries @<:@default=yes@:>@
1476   --enable-fast-install@<:@=PKGS@:>@ 
1477                           optimize for fast installation @<:@default=yes@:>@
1478   --disable-libtool-lock  avoid locking (might break parallel builds)
1479   --disable-largefile     omit support for large files
1480   --enable-ltdl-install   install libltdl
1482 Optional Packages:
1483   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1484   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1485   --with-safecode         For maintainers only - please do not use
1486   --with-pic@<:@=PKGS@:>@       try to use only PIC/non-PIC objects @<:@default=use
1487                           both@:>@
1488   --with-gnu-ld           assume the C compiler uses GNU ld @<:@default=no@:>@
1489   --with-sysroot=DIR Search for dependent libraries within DIR
1490                         (or the compiler's sysroot if not specified).
1491   --with-included-ltdl    use the GNU ltdl sources included here
1492   --with-ltdl-include=DIR use the ltdl headers installed in DIR
1493   --with-ltdl-lib=DIR     use the libltdl.la installed in DIR
1495 Some influential environment variables:
1496   SAFECODE_HOME 
1497               set to the safecode base directory
1498   CC          C compiler command
1499   CFLAGS      C compiler flags
1500   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1501               nonstandard directory <lib dir>
1502   LIBS        libraries to pass to the linker, e.g. -l<library>
1503   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1504               you have headers in a nonstandard directory <include dir>
1505   CPP         C preprocessor
1506   CWFLAGS     define to compilation flags for generating extra warnings
1507   RONN        path to the ronn text processor
1508   SIXJACK     path to 6jack
1509   AR          path to the ar utility
1510   DTRACE      path to dtrace if you have it
1512 Use these variables to override the choices made by `configure' or to help
1513 it to find libraries and programs with nonstandard names/locations.
1515 Report bugs to <http://dnscrypt.org>.
1516 _ACEOF
1517 ac_status=$?
1520 if test "$ac_init_help" = "recursive"; then
1521   # If there are subdirs, report their specific --help.
1522   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1523     test -d "$ac_dir" ||
1524       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1525       continue
1526     ac_builddir=.
1528 case "$ac_dir" in
1529 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1531   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1532   # A ".." for each directory in $ac_dir_suffix.
1533   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1534   case $ac_top_builddir_sub in
1535   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1536   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1537   esac ;;
1538 esac
1539 ac_abs_top_builddir=$ac_pwd
1540 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1541 # for backward compatibility:
1542 ac_top_builddir=$ac_top_build_prefix
1544 case $srcdir in
1545   .)  # We are building in place.
1546     ac_srcdir=.
1547     ac_top_srcdir=$ac_top_builddir_sub
1548     ac_abs_top_srcdir=$ac_pwd ;;
1549   [\\/]* | ?:[\\/]* )  # Absolute name.
1550     ac_srcdir=$srcdir$ac_dir_suffix;
1551     ac_top_srcdir=$srcdir
1552     ac_abs_top_srcdir=$srcdir ;;
1553   *) # Relative name.
1554     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1555     ac_top_srcdir=$ac_top_build_prefix$srcdir
1556     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1557 esac
1558 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1560     cd "$ac_dir" || { ac_status=$?; continue; }
1561     # Check for guested configure.
1562     if test -f "$ac_srcdir/configure.gnu"; then
1563       echo &&
1564       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1565     elif test -f "$ac_srcdir/configure"; then
1566       echo &&
1567       $SHELL "$ac_srcdir/configure" --help=recursive
1568     else
1569       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1570     fi || ac_status=$?
1571     cd "$ac_pwd" || { ac_status=$?; break; }
1572   done
1575 test -n "$ac_init_help" && exit $ac_status
1576 if $ac_init_version; then
1577   cat <<\_ACEOF
1578 dnscrypt-proxy configure 1.4.0
1579 generated by GNU Autoconf 2.69
1581 Copyright (C) 2012 Free Software Foundation, Inc.
1582 This configure script is free software; the Free Software Foundation
1583 gives unlimited permission to copy, distribute and modify it.
1584 _ACEOF
1585   exit
1588 ## ------------------------ ##
1589 ## Autoconf initialization. ##
1590 ## ------------------------ ##
1592 @%:@ ac_fn_c_try_compile LINENO
1593 @%:@ --------------------------
1594 @%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded.
1595 ac_fn_c_try_compile ()
1597   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1598   rm -f conftest.$ac_objext
1599   if { { ac_try="$ac_compile"
1600 case "(($ac_try" in
1601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1602   *) ac_try_echo=$ac_try;;
1603 esac
1604 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1605 $as_echo "$ac_try_echo"; } >&5
1606   (eval "$ac_compile") 2>conftest.err
1607   ac_status=$?
1608   if test -s conftest.err; then
1609     grep -v '^ *+' conftest.err >conftest.er1
1610     cat conftest.er1 >&5
1611     mv -f conftest.er1 conftest.err
1612   fi
1613   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1614   test $ac_status = 0; } && {
1615          test -z "$ac_c_werror_flag" ||
1616          test ! -s conftest.err
1617        } && test -s conftest.$ac_objext; then :
1618   ac_retval=0
1619 else
1620   $as_echo "$as_me: failed program was:" >&5
1621 sed 's/^/| /' conftest.$ac_ext >&5
1623         ac_retval=1
1625   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1626   as_fn_set_status $ac_retval
1628 } @%:@ ac_fn_c_try_compile
1630 @%:@ ac_fn_c_try_cpp LINENO
1631 @%:@ ----------------------
1632 @%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded.
1633 ac_fn_c_try_cpp ()
1635   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1636   if { { ac_try="$ac_cpp conftest.$ac_ext"
1637 case "(($ac_try" in
1638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1639   *) ac_try_echo=$ac_try;;
1640 esac
1641 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1642 $as_echo "$ac_try_echo"; } >&5
1643   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1644   ac_status=$?
1645   if test -s conftest.err; then
1646     grep -v '^ *+' conftest.err >conftest.er1
1647     cat conftest.er1 >&5
1648     mv -f conftest.er1 conftest.err
1649   fi
1650   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1651   test $ac_status = 0; } > conftest.i && {
1652          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1653          test ! -s conftest.err
1654        }; then :
1655   ac_retval=0
1656 else
1657   $as_echo "$as_me: failed program was:" >&5
1658 sed 's/^/| /' conftest.$ac_ext >&5
1660     ac_retval=1
1662   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1663   as_fn_set_status $ac_retval
1665 } @%:@ ac_fn_c_try_cpp
1667 @%:@ ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1668 @%:@ -------------------------------------------------------
1669 @%:@ Tests whether HEADER exists, giving a warning if it cannot be compiled using
1670 @%:@ the include files in INCLUDES and setting the cache variable VAR
1671 @%:@ accordingly.
1672 ac_fn_c_check_header_mongrel ()
1674   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1675   if eval \${$3+:} false; then :
1676   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1677 $as_echo_n "checking for $2... " >&6; }
1678 if eval \${$3+:} false; then :
1679   $as_echo_n "(cached) " >&6
1681 eval ac_res=\$$3
1682                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1683 $as_echo "$ac_res" >&6; }
1684 else
1685   # Is the header compilable?
1686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1687 $as_echo_n "checking $2 usability... " >&6; }
1688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1689 /* end confdefs.h.  */
1691 @%:@include <$2>
1692 _ACEOF
1693 if ac_fn_c_try_compile "$LINENO"; then :
1694   ac_header_compiler=yes
1695 else
1696   ac_header_compiler=no
1698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1700 $as_echo "$ac_header_compiler" >&6; }
1702 # Is the header present?
1703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1704 $as_echo_n "checking $2 presence... " >&6; }
1705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1706 /* end confdefs.h.  */
1707 @%:@include <$2>
1708 _ACEOF
1709 if ac_fn_c_try_cpp "$LINENO"; then :
1710   ac_header_preproc=yes
1711 else
1712   ac_header_preproc=no
1714 rm -f conftest.err conftest.i conftest.$ac_ext
1715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1716 $as_echo "$ac_header_preproc" >&6; }
1718 # So?  What about this header?
1719 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1720   yes:no: )
1721     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1722 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1723     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1724 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1725     ;;
1726   no:yes:* )
1727     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1728 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1729     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1730 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1731     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1732 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1733     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1734 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1735     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1736 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1737 ( $as_echo "## ---------------------------------- ##
1738 ## Report this to http://dnscrypt.org ##
1739 ## ---------------------------------- ##"
1740      ) | sed "s/^/$as_me: WARNING:     /" >&2
1741     ;;
1742 esac
1743   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1744 $as_echo_n "checking for $2... " >&6; }
1745 if eval \${$3+:} false; then :
1746   $as_echo_n "(cached) " >&6
1747 else
1748   eval "$3=\$ac_header_compiler"
1750 eval ac_res=\$$3
1751                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1752 $as_echo "$ac_res" >&6; }
1754   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1756 } @%:@ ac_fn_c_check_header_mongrel
1758 @%:@ ac_fn_c_try_run LINENO
1759 @%:@ ----------------------
1760 @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. Assumes
1761 @%:@ that executables *can* be run.
1762 ac_fn_c_try_run ()
1764   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1765   if { { ac_try="$ac_link"
1766 case "(($ac_try" in
1767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1768   *) ac_try_echo=$ac_try;;
1769 esac
1770 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1771 $as_echo "$ac_try_echo"; } >&5
1772   (eval "$ac_link") 2>&5
1773   ac_status=$?
1774   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1775   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1776   { { case "(($ac_try" in
1777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1778   *) ac_try_echo=$ac_try;;
1779 esac
1780 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1781 $as_echo "$ac_try_echo"; } >&5
1782   (eval "$ac_try") 2>&5
1783   ac_status=$?
1784   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1785   test $ac_status = 0; }; }; then :
1786   ac_retval=0
1787 else
1788   $as_echo "$as_me: program exited with status $ac_status" >&5
1789        $as_echo "$as_me: failed program was:" >&5
1790 sed 's/^/| /' conftest.$ac_ext >&5
1792        ac_retval=$ac_status
1794   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1795   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1796   as_fn_set_status $ac_retval
1798 } @%:@ ac_fn_c_try_run
1800 @%:@ ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1801 @%:@ -------------------------------------------------------
1802 @%:@ Tests whether HEADER exists and can be compiled using the include files in
1803 @%:@ INCLUDES, setting the cache variable VAR accordingly.
1804 ac_fn_c_check_header_compile ()
1806   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1807   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1808 $as_echo_n "checking for $2... " >&6; }
1809 if eval \${$3+:} false; then :
1810   $as_echo_n "(cached) " >&6
1811 else
1812   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1813 /* end confdefs.h.  */
1815 @%:@include <$2>
1816 _ACEOF
1817 if ac_fn_c_try_compile "$LINENO"; then :
1818   eval "$3=yes"
1819 else
1820   eval "$3=no"
1822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1824 eval ac_res=\$$3
1825                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1826 $as_echo "$ac_res" >&6; }
1827   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1829 } @%:@ ac_fn_c_check_header_compile
1831 @%:@ ac_fn_c_try_link LINENO
1832 @%:@ -----------------------
1833 @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded.
1834 ac_fn_c_try_link ()
1836   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1837   rm -f conftest.$ac_objext conftest$ac_exeext
1838   if { { ac_try="$ac_link"
1839 case "(($ac_try" in
1840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1841   *) ac_try_echo=$ac_try;;
1842 esac
1843 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1844 $as_echo "$ac_try_echo"; } >&5
1845   (eval "$ac_link") 2>conftest.err
1846   ac_status=$?
1847   if test -s conftest.err; then
1848     grep -v '^ *+' conftest.err >conftest.er1
1849     cat conftest.er1 >&5
1850     mv -f conftest.er1 conftest.err
1851   fi
1852   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1853   test $ac_status = 0; } && {
1854          test -z "$ac_c_werror_flag" ||
1855          test ! -s conftest.err
1856        } && test -s conftest$ac_exeext && {
1857          test "$cross_compiling" = yes ||
1858          test -x conftest$ac_exeext
1859        }; then :
1860   ac_retval=0
1861 else
1862   $as_echo "$as_me: failed program was:" >&5
1863 sed 's/^/| /' conftest.$ac_ext >&5
1865         ac_retval=1
1867   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1868   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1869   # interfere with the next link command; also delete a directory that is
1870   # left behind by Apple's compiler.  We do this before executing the actions.
1871   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1872   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1873   as_fn_set_status $ac_retval
1875 } @%:@ ac_fn_c_try_link
1877 @%:@ ac_fn_c_check_func LINENO FUNC VAR
1878 @%:@ ----------------------------------
1879 @%:@ Tests whether FUNC exists, setting the cache variable VAR accordingly
1880 ac_fn_c_check_func ()
1882   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1883   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1884 $as_echo_n "checking for $2... " >&6; }
1885 if eval \${$3+:} false; then :
1886   $as_echo_n "(cached) " >&6
1887 else
1888   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1889 /* end confdefs.h.  */
1890 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1891    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1892 #define $2 innocuous_$2
1894 /* System header to define __stub macros and hopefully few prototypes,
1895     which can conflict with char $2 (); below.
1896     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1897     <limits.h> exists even on freestanding compilers.  */
1899 #ifdef __STDC__
1900 # include <limits.h>
1901 #else
1902 # include <assert.h>
1903 #endif
1905 #undef $2
1907 /* Override any GCC internal prototype to avoid an error.
1908    Use char because int might match the return type of a GCC
1909    builtin and then its argument prototype would still apply.  */
1910 #ifdef __cplusplus
1911 extern "C"
1912 #endif
1913 char $2 ();
1914 /* The GNU C library defines this for functions which it implements
1915     to always fail with ENOSYS.  Some functions are actually named
1916     something starting with __ and the normal name is an alias.  */
1917 #if defined __stub_$2 || defined __stub___$2
1918 choke me
1919 #endif
1922 main ()
1924 return $2 ();
1925   ;
1926   return 0;
1928 _ACEOF
1929 if ac_fn_c_try_link "$LINENO"; then :
1930   eval "$3=yes"
1931 else
1932   eval "$3=no"
1934 rm -f core conftest.err conftest.$ac_objext \
1935     conftest$ac_exeext conftest.$ac_ext
1937 eval ac_res=\$$3
1938                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1939 $as_echo "$ac_res" >&6; }
1940   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1942 } @%:@ ac_fn_c_check_func
1944 @%:@ ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1945 @%:@ -------------------------------------------
1946 @%:@ Tests whether TYPE exists after having included INCLUDES, setting cache
1947 @%:@ variable VAR accordingly.
1948 ac_fn_c_check_type ()
1950   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1951   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1952 $as_echo_n "checking for $2... " >&6; }
1953 if eval \${$3+:} false; then :
1954   $as_echo_n "(cached) " >&6
1955 else
1956   eval "$3=no"
1957   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1958 /* end confdefs.h.  */
1961 main ()
1963 if (sizeof ($2))
1964          return 0;
1965   ;
1966   return 0;
1968 _ACEOF
1969 if ac_fn_c_try_compile "$LINENO"; then :
1970   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1971 /* end confdefs.h.  */
1974 main ()
1976 if (sizeof (($2)))
1977             return 0;
1978   ;
1979   return 0;
1981 _ACEOF
1982 if ac_fn_c_try_compile "$LINENO"; then :
1983   
1984 else
1985   eval "$3=yes"
1987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1991 eval ac_res=\$$3
1992                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1993 $as_echo "$ac_res" >&6; }
1994   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1996 } @%:@ ac_fn_c_check_type
1998 @%:@ ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1999 @%:@ ---------------------------------------------
2000 @%:@ Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2001 @%:@ accordingly.
2002 ac_fn_c_check_decl ()
2004   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2005   as_decl_name=`echo $2|sed 's/ *(.*//'`
2006   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2007   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2008 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2009 if eval \${$3+:} false; then :
2010   $as_echo_n "(cached) " >&6
2011 else
2012   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2013 /* end confdefs.h.  */
2016 main ()
2018 @%:@ifndef $as_decl_name
2019 @%:@ifdef __cplusplus
2020   (void) $as_decl_use;
2021 @%:@else
2022   (void) $as_decl_name;
2023 @%:@endif
2024 @%:@endif
2026   ;
2027   return 0;
2029 _ACEOF
2030 if ac_fn_c_try_compile "$LINENO"; then :
2031   eval "$3=yes"
2032 else
2033   eval "$3=no"
2035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2037 eval ac_res=\$$3
2038                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2039 $as_echo "$ac_res" >&6; }
2040   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2042 } @%:@ ac_fn_c_check_decl
2043 cat >config.log <<_ACEOF
2044 This file contains any messages produced by compilers while
2045 running configure, to aid debugging if configure makes a mistake.
2047 It was created by dnscrypt-proxy $as_me 1.4.0, which was
2048 generated by GNU Autoconf 2.69.  Invocation command line was
2050   $ $0 $@
2052 _ACEOF
2053 exec 5>>config.log
2055 cat <<_ASUNAME
2056 ## --------- ##
2057 ## Platform. ##
2058 ## --------- ##
2060 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2061 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2062 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2063 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2064 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2066 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2067 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2069 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2070 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2071 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2072 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2073 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2074 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2075 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2077 _ASUNAME
2079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2080 for as_dir in $PATH
2082   IFS=$as_save_IFS
2083   test -z "$as_dir" && as_dir=.
2084     $as_echo "PATH: $as_dir"
2085   done
2086 IFS=$as_save_IFS
2088 } >&5
2090 cat >&5 <<_ACEOF
2093 ## ----------- ##
2094 ## Core tests. ##
2095 ## ----------- ##
2097 _ACEOF
2100 # Keep a trace of the command line.
2101 # Strip out --no-create and --no-recursion so they do not pile up.
2102 # Strip out --silent because we don't want to record it for future runs.
2103 # Also quote any args containing shell meta-characters.
2104 # Make two passes to allow for proper duplicate-argument suppression.
2105 ac_configure_args=
2106 ac_configure_args0=
2107 ac_configure_args1=
2108 ac_must_keep_next=false
2109 for ac_pass in 1 2
2111   for ac_arg
2112   do
2113     case $ac_arg in
2114     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2115     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2116     | -silent | --silent | --silen | --sile | --sil)
2117       continue ;;
2118     *\'*)
2119       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2120     esac
2121     case $ac_pass in
2122     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2123     2)
2124       as_fn_append ac_configure_args1 " '$ac_arg'"
2125       if test $ac_must_keep_next = true; then
2126         ac_must_keep_next=false # Got value, back to normal.
2127       else
2128         case $ac_arg in
2129           *=* | --config-cache | -C | -disable-* | --disable-* \
2130           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2131           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2132           | -with-* | --with-* | -without-* | --without-* | --x)
2133             case "$ac_configure_args0 " in
2134               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2135             esac
2136             ;;
2137           -* ) ac_must_keep_next=true ;;
2138         esac
2139       fi
2140       as_fn_append ac_configure_args " '$ac_arg'"
2141       ;;
2142     esac
2143   done
2144 done
2145 { ac_configure_args0=; unset ac_configure_args0;}
2146 { ac_configure_args1=; unset ac_configure_args1;}
2148 # When interrupted or exit'd, cleanup temporary files, and complete
2149 # config.log.  We remove comments because anyway the quotes in there
2150 # would cause problems or look ugly.
2151 # WARNING: Use '\'' to represent an apostrophe within the trap.
2152 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2153 trap 'exit_status=$?
2154   # Save into config.log some information that might help in debugging.
2155   {
2156     echo
2158     $as_echo "## ---------------- ##
2159 ## Cache variables. ##
2160 ## ---------------- ##"
2161     echo
2162     # The following way of writing the cache mishandles newlines in values,
2164   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2165     eval ac_val=\$$ac_var
2166     case $ac_val in #(
2167     *${as_nl}*)
2168       case $ac_var in #(
2169       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2170 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2171       esac
2172       case $ac_var in #(
2173       _ | IFS | as_nl) ;; #(
2174       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2175       *) { eval $ac_var=; unset $ac_var;} ;;
2176       esac ;;
2177     esac
2178   done
2179   (set) 2>&1 |
2180     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2181     *${as_nl}ac_space=\ *)
2182       sed -n \
2183         "s/'\''/'\''\\\\'\'''\''/g;
2184           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2185       ;; #(
2186     *)
2187       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2188       ;;
2189     esac |
2190     sort
2192     echo
2194     $as_echo "## ----------------- ##
2195 ## Output variables. ##
2196 ## ----------------- ##"
2197     echo
2198     for ac_var in $ac_subst_vars
2199     do
2200       eval ac_val=\$$ac_var
2201       case $ac_val in
2202       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2203       esac
2204       $as_echo "$ac_var='\''$ac_val'\''"
2205     done | sort
2206     echo
2208     if test -n "$ac_subst_files"; then
2209       $as_echo "## ------------------- ##
2210 ## File substitutions. ##
2211 ## ------------------- ##"
2212       echo
2213       for ac_var in $ac_subst_files
2214       do
2215         eval ac_val=\$$ac_var
2216         case $ac_val in
2217         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2218         esac
2219         $as_echo "$ac_var='\''$ac_val'\''"
2220       done | sort
2221       echo
2222     fi
2224     if test -s confdefs.h; then
2225       $as_echo "## ----------- ##
2226 ## confdefs.h. ##
2227 ## ----------- ##"
2228       echo
2229       cat confdefs.h
2230       echo
2231     fi
2232     test "$ac_signal" != 0 &&
2233       $as_echo "$as_me: caught signal $ac_signal"
2234     $as_echo "$as_me: exit $exit_status"
2235   } >&5
2236   rm -f core *.core core.conftest.* &&
2237     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2238     exit $exit_status
2239 ' 0
2240 for ac_signal in 1 2 13 15; do
2241   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2242 done
2243 ac_signal=0
2245 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2246 rm -f -r conftest* confdefs.h
2248 $as_echo "/* confdefs.h */" > confdefs.h
2250 # Predefined preprocessor variables.
2252 cat >>confdefs.h <<_ACEOF
2253 @%:@define PACKAGE_NAME "$PACKAGE_NAME"
2254 _ACEOF
2256 cat >>confdefs.h <<_ACEOF
2257 @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2258 _ACEOF
2260 cat >>confdefs.h <<_ACEOF
2261 @%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
2262 _ACEOF
2264 cat >>confdefs.h <<_ACEOF
2265 @%:@define PACKAGE_STRING "$PACKAGE_STRING"
2266 _ACEOF
2268 cat >>confdefs.h <<_ACEOF
2269 @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2270 _ACEOF
2272 cat >>confdefs.h <<_ACEOF
2273 @%:@define PACKAGE_URL "$PACKAGE_URL"
2274 _ACEOF
2277 # Let the site file select an alternate cache file if it wants to.
2278 # Prefer an explicitly selected file to automatically selected ones.
2279 ac_site_file1=NONE
2280 ac_site_file2=NONE
2281 if test -n "$CONFIG_SITE"; then
2282   # We do not want a PATH search for config.site.
2283   case $CONFIG_SITE in @%:@((
2284     -*)  ac_site_file1=./$CONFIG_SITE;;
2285     */*) ac_site_file1=$CONFIG_SITE;;
2286     *)   ac_site_file1=./$CONFIG_SITE;;
2287   esac
2288 elif test "x$prefix" != xNONE; then
2289   ac_site_file1=$prefix/share/config.site
2290   ac_site_file2=$prefix/etc/config.site
2291 else
2292   ac_site_file1=$ac_default_prefix/share/config.site
2293   ac_site_file2=$ac_default_prefix/etc/config.site
2295 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2297   test "x$ac_site_file" = xNONE && continue
2298   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2299     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2300 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2301     sed 's/^/| /' "$ac_site_file" >&5
2302     . "$ac_site_file" \
2303       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2304 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2305 as_fn_error $? "failed to load site script $ac_site_file
2306 See \`config.log' for more details" "$LINENO" 5; }
2307   fi
2308 done
2310 if test -r "$cache_file"; then
2311   # Some versions of bash will fail to source /dev/null (special files
2312   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2313   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2314     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2315 $as_echo "$as_me: loading cache $cache_file" >&6;}
2316     case $cache_file in
2317       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2318       *)                      . "./$cache_file";;
2319     esac
2320   fi
2321 else
2322   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2323 $as_echo "$as_me: creating cache $cache_file" >&6;}
2324   >$cache_file
2327 # Check that the precious variables saved in the cache have kept the same
2328 # value.
2329 ac_cache_corrupted=false
2330 for ac_var in $ac_precious_vars; do
2331   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2332   eval ac_new_set=\$ac_env_${ac_var}_set
2333   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2334   eval ac_new_val=\$ac_env_${ac_var}_value
2335   case $ac_old_set,$ac_new_set in
2336     set,)
2337       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2338 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2339       ac_cache_corrupted=: ;;
2340     ,set)
2341       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2342 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2343       ac_cache_corrupted=: ;;
2344     ,);;
2345     *)
2346       if test "x$ac_old_val" != "x$ac_new_val"; then
2347         # differences in whitespace do not lead to failure.
2348         ac_old_val_w=`echo x $ac_old_val`
2349         ac_new_val_w=`echo x $ac_new_val`
2350         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2351           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2352 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2353           ac_cache_corrupted=:
2354         else
2355           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2356 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2357           eval $ac_var=\$ac_old_val
2358         fi
2359         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2360 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2361         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2362 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2363       fi;;
2364   esac
2365   # Pass precious variables to config.status.
2366   if test "$ac_new_set" = set; then
2367     case $ac_new_val in
2368     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2369     *) ac_arg=$ac_var=$ac_new_val ;;
2370     esac
2371     case " $ac_configure_args " in
2372       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2373       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2374     esac
2375   fi
2376 done
2377 if $ac_cache_corrupted; then
2378   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2379 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2380   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2381 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2382   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2384 ## -------------------- ##
2385 ## Main body of script. ##
2386 ## -------------------- ##
2388 ac_ext=c
2389 ac_cpp='$CPP $CPPFLAGS'
2390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2396 ac_aux_dir=
2397 for ac_dir in libltdl/config "$srcdir"/libltdl/config; do
2398   if test -f "$ac_dir/install-sh"; then
2399     ac_aux_dir=$ac_dir
2400     ac_install_sh="$ac_aux_dir/install-sh -c"
2401     break
2402   elif test -f "$ac_dir/install.sh"; then
2403     ac_aux_dir=$ac_dir
2404     ac_install_sh="$ac_aux_dir/install.sh -c"
2405     break
2406   elif test -f "$ac_dir/shtool"; then
2407     ac_aux_dir=$ac_dir
2408     ac_install_sh="$ac_aux_dir/shtool install -c"
2409     break
2410   fi
2411 done
2412 if test -z "$ac_aux_dir"; then
2413   as_fn_error $? "cannot find install-sh, install.sh, or shtool in libltdl/config \"$srcdir\"/libltdl/config" "$LINENO" 5
2416 # These three variables are undocumented and unsupported,
2417 # and are intended to be withdrawn in a future Autoconf release.
2418 # They can cause serious problems if a builder's source tree is in a directory
2419 # whose full name contains unusual characters.
2420 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2421 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2422 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2426 ac_config_headers="$ac_config_headers config.h"
2430 subdirs="$subdirs src/libevent-modified"
2432 # Make sure we can run config.sub.
2433 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2434   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2437 $as_echo_n "checking build system type... " >&6; }
2438 if ${ac_cv_build+:} false; then :
2439   $as_echo_n "(cached) " >&6
2440 else
2441   ac_build_alias=$build_alias
2442 test "x$ac_build_alias" = x &&
2443   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2444 test "x$ac_build_alias" = x &&
2445   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2446 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2447   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2451 $as_echo "$ac_cv_build" >&6; }
2452 case $ac_cv_build in
2453 *-*-*) ;;
2454 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2455 esac
2456 build=$ac_cv_build
2457 ac_save_IFS=$IFS; IFS='-'
2458 set x $ac_cv_build
2459 shift
2460 build_cpu=$1
2461 build_vendor=$2
2462 shift; shift
2463 # Remember, the first character of IFS is used to create $*,
2464 # except with old shells:
2465 build_os=$*
2466 IFS=$ac_save_IFS
2467 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2471 $as_echo_n "checking host system type... " >&6; }
2472 if ${ac_cv_host+:} false; then :
2473   $as_echo_n "(cached) " >&6
2474 else
2475   if test "x$host_alias" = x; then
2476   ac_cv_host=$ac_cv_build
2477 else
2478   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2479     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2484 $as_echo "$ac_cv_host" >&6; }
2485 case $ac_cv_host in
2486 *-*-*) ;;
2487 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2488 esac
2489 host=$ac_cv_host
2490 ac_save_IFS=$IFS; IFS='-'
2491 set x $ac_cv_host
2492 shift
2493 host_cpu=$1
2494 host_vendor=$2
2495 shift; shift
2496 # Remember, the first character of IFS is used to create $*,
2497 # except with old shells:
2498 host_os=$*
2499 IFS=$ac_save_IFS
2500 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2503 am__api_version='1.13'
2505 # Find a good install program.  We prefer a C program (faster),
2506 # so one script is as good as another.  But avoid the broken or
2507 # incompatible versions:
2508 # SysV /etc/install, /usr/sbin/install
2509 # SunOS /usr/etc/install
2510 # IRIX /sbin/install
2511 # AIX /bin/install
2512 # AmigaOS /C/install, which installs bootblocks on floppy discs
2513 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2514 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2515 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2516 # OS/2's system install, which has a completely different semantic
2517 # ./install, which can be erroneously created by make from ./install.sh.
2518 # Reject install programs that cannot install multiple files.
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2520 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2521 if test -z "$INSTALL"; then
2522 if ${ac_cv_path_install+:} false; then :
2523   $as_echo_n "(cached) " >&6
2524 else
2525   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2526 for as_dir in $PATH
2528   IFS=$as_save_IFS
2529   test -z "$as_dir" && as_dir=.
2530     # Account for people who put trailing slashes in PATH elements.
2531 case $as_dir/ in @%:@((
2532   ./ | .// | /[cC]/* | \
2533   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2534   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2535   /usr/ucb/* ) ;;
2536   *)
2537     # OSF1 and SCO ODT 3.0 have their own names for install.
2538     # Don't use installbsd from OSF since it installs stuff as root
2539     # by default.
2540     for ac_prog in ginstall scoinst install; do
2541       for ac_exec_ext in '' $ac_executable_extensions; do
2542         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2543           if test $ac_prog = install &&
2544             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2545             # AIX install.  It has an incompatible calling convention.
2546             :
2547           elif test $ac_prog = install &&
2548             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2549             # program-specific install script used by HP pwplus--don't use.
2550             :
2551           else
2552             rm -rf conftest.one conftest.two conftest.dir
2553             echo one > conftest.one
2554             echo two > conftest.two
2555             mkdir conftest.dir
2556             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2557               test -s conftest.one && test -s conftest.two &&
2558               test -s conftest.dir/conftest.one &&
2559               test -s conftest.dir/conftest.two
2560             then
2561               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2562               break 3
2563             fi
2564           fi
2565         fi
2566       done
2567     done
2568     ;;
2569 esac
2571   done
2572 IFS=$as_save_IFS
2574 rm -rf conftest.one conftest.two conftest.dir
2577   if test "${ac_cv_path_install+set}" = set; then
2578     INSTALL=$ac_cv_path_install
2579   else
2580     # As a last resort, use the slow shell script.  Don't cache a
2581     # value for INSTALL within a source directory, because that will
2582     # break other packages using the cache if that directory is
2583     # removed, or if the value is a relative name.
2584     INSTALL=$ac_install_sh
2585   fi
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2588 $as_echo "$INSTALL" >&6; }
2590 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2591 # It thinks the first close brace ends the variable substitution.
2592 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2594 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2596 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2599 $as_echo_n "checking whether build environment is sane... " >&6; }
2600 # Reject unsafe characters in $srcdir or the absolute working directory
2601 # name.  Accept space and tab only in the latter.
2602 am_lf='
2604 case `pwd` in
2605   *[\\\"\#\$\&\'\`$am_lf]*)
2606     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2607 esac
2608 case $srcdir in
2609   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2610     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2611 esac
2613 # Do 'set' in a subshell so we don't clobber the current shell's
2614 # arguments.  Must try -L first in case configure is actually a
2615 # symlink; some systems play weird games with the mod time of symlinks
2616 # (eg FreeBSD returns the mod time of the symlink's containing
2617 # directory).
2618 if (
2619    am_has_slept=no
2620    for am_try in 1 2; do
2621      echo "timestamp, slept: $am_has_slept" > conftest.file
2622      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2623      if test "$*" = "X"; then
2624         # -L didn't work.
2625         set X `ls -t "$srcdir/configure" conftest.file`
2626      fi
2627      if test "$*" != "X $srcdir/configure conftest.file" \
2628         && test "$*" != "X conftest.file $srcdir/configure"; then
2630         # If neither matched, then we have a broken ls.  This can happen
2631         # if, for instance, CONFIG_SHELL is bash and it inherits a
2632         # broken ls alias from the environment.  This has actually
2633         # happened.  Such a system could not be considered "sane".
2634         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2635   alias in your environment" "$LINENO" 5
2636      fi
2637      if test "$2" = conftest.file || test $am_try -eq 2; then
2638        break
2639      fi
2640      # Just in case.
2641      sleep 1
2642      am_has_slept=yes
2643    done
2644    test "$2" = conftest.file
2645    )
2646 then
2647    # Ok.
2648    :
2649 else
2650    as_fn_error $? "newly created file is older than distributed files!
2651 Check your system clock" "$LINENO" 5
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2654 $as_echo "yes" >&6; }
2655 # If we didn't sleep, we still need to ensure time stamps of config.status and
2656 # generated files are strictly newer.
2657 am_sleep_pid=
2658 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2659   ( sleep 1 ) &
2660   am_sleep_pid=$!
2663 rm -f conftest.file
2665 test "$program_prefix" != NONE &&
2666   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2667 # Use a double $ so make ignores it.
2668 test "$program_suffix" != NONE &&
2669   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2670 # Double any \ or $.
2671 # By default was `s,x,x', remove it if useless.
2672 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2673 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2675 # expand $ac_aux_dir to an absolute path
2676 am_aux_dir=`cd $ac_aux_dir && pwd`
2678 if test x"${MISSING+set}" != xset; then
2679   case $am_aux_dir in
2680   *\ * | *\     *)
2681     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2682   *)
2683     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2684   esac
2686 # Use eval to expand $SHELL
2687 if eval "$MISSING --is-lightweight"; then
2688   am_missing_run="$MISSING "
2689 else
2690   am_missing_run=
2691   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2692 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2695 if test x"${install_sh}" != xset; then
2696   case $am_aux_dir in
2697   *\ * | *\     *)
2698     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2699   *)
2700     install_sh="\${SHELL} $am_aux_dir/install-sh"
2701   esac
2704 # Installed binaries are usually stripped using 'strip' when the user
2705 # run "make install-strip".  However 'strip' might not be the right
2706 # tool to use in cross-compilation environments, therefore Automake
2707 # will honor the 'STRIP' environment variable to overrule this program.
2708 if test "$cross_compiling" != no; then
2709   if test -n "$ac_tool_prefix"; then
2710   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2711 set dummy ${ac_tool_prefix}strip; ac_word=$2
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2713 $as_echo_n "checking for $ac_word... " >&6; }
2714 if ${ac_cv_prog_STRIP+:} false; then :
2715   $as_echo_n "(cached) " >&6
2716 else
2717   if test -n "$STRIP"; then
2718   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2719 else
2720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2721 for as_dir in $PATH
2723   IFS=$as_save_IFS
2724   test -z "$as_dir" && as_dir=.
2725     for ac_exec_ext in '' $ac_executable_extensions; do
2726   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2727     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2728     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2729     break 2
2730   fi
2731 done
2732   done
2733 IFS=$as_save_IFS
2737 STRIP=$ac_cv_prog_STRIP
2738 if test -n "$STRIP"; then
2739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2740 $as_echo "$STRIP" >&6; }
2741 else
2742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2743 $as_echo "no" >&6; }
2748 if test -z "$ac_cv_prog_STRIP"; then
2749   ac_ct_STRIP=$STRIP
2750   # Extract the first word of "strip", so it can be a program name with args.
2751 set dummy strip; ac_word=$2
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2753 $as_echo_n "checking for $ac_word... " >&6; }
2754 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2755   $as_echo_n "(cached) " >&6
2756 else
2757   if test -n "$ac_ct_STRIP"; then
2758   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2759 else
2760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2761 for as_dir in $PATH
2763   IFS=$as_save_IFS
2764   test -z "$as_dir" && as_dir=.
2765     for ac_exec_ext in '' $ac_executable_extensions; do
2766   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2767     ac_cv_prog_ac_ct_STRIP="strip"
2768     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2769     break 2
2770   fi
2771 done
2772   done
2773 IFS=$as_save_IFS
2777 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2778 if test -n "$ac_ct_STRIP"; then
2779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2780 $as_echo "$ac_ct_STRIP" >&6; }
2781 else
2782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2783 $as_echo "no" >&6; }
2786   if test "x$ac_ct_STRIP" = x; then
2787     STRIP=":"
2788   else
2789     case $cross_compiling:$ac_tool_warned in
2790 yes:)
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2792 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2793 ac_tool_warned=yes ;;
2794 esac
2795     STRIP=$ac_ct_STRIP
2796   fi
2797 else
2798   STRIP="$ac_cv_prog_STRIP"
2802 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2805 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2806 if test -z "$MKDIR_P"; then
2807   if ${ac_cv_path_mkdir+:} false; then :
2808   $as_echo_n "(cached) " >&6
2809 else
2810   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2811 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2813   IFS=$as_save_IFS
2814   test -z "$as_dir" && as_dir=.
2815     for ac_prog in mkdir gmkdir; do
2816          for ac_exec_ext in '' $ac_executable_extensions; do
2817            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2818            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2819              'mkdir (GNU coreutils) '* | \
2820              'mkdir (coreutils) '* | \
2821              'mkdir (fileutils) '4.1*)
2822                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2823                break 3;;
2824            esac
2825          done
2826        done
2827   done
2828 IFS=$as_save_IFS
2832   test -d ./--version && rmdir ./--version
2833   if test "${ac_cv_path_mkdir+set}" = set; then
2834     MKDIR_P="$ac_cv_path_mkdir -p"
2835   else
2836     # As a last resort, use the slow shell script.  Don't cache a
2837     # value for MKDIR_P within a source directory, because that will
2838     # break other packages using the cache if that directory is
2839     # removed, or if the value is a relative name.
2840     MKDIR_P="$ac_install_sh -d"
2841   fi
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2844 $as_echo "$MKDIR_P" >&6; }
2846 for ac_prog in gawk mawk nawk awk
2848   # Extract the first word of "$ac_prog", so it can be a program name with args.
2849 set dummy $ac_prog; ac_word=$2
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2851 $as_echo_n "checking for $ac_word... " >&6; }
2852 if ${ac_cv_prog_AWK+:} false; then :
2853   $as_echo_n "(cached) " >&6
2854 else
2855   if test -n "$AWK"; then
2856   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2857 else
2858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2859 for as_dir in $PATH
2861   IFS=$as_save_IFS
2862   test -z "$as_dir" && as_dir=.
2863     for ac_exec_ext in '' $ac_executable_extensions; do
2864   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2865     ac_cv_prog_AWK="$ac_prog"
2866     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2867     break 2
2868   fi
2869 done
2870   done
2871 IFS=$as_save_IFS
2875 AWK=$ac_cv_prog_AWK
2876 if test -n "$AWK"; then
2877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2878 $as_echo "$AWK" >&6; }
2879 else
2880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2881 $as_echo "no" >&6; }
2885   test -n "$AWK" && break
2886 done
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2889 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2890 set x ${MAKE-make}
2891 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2892 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2893   $as_echo_n "(cached) " >&6
2894 else
2895   cat >conftest.make <<\_ACEOF
2896 SHELL = /bin/sh
2897 all:
2898         @echo '@@@%%%=$(MAKE)=@@@%%%'
2899 _ACEOF
2900 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2901 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2902   *@@@%%%=?*=@@@%%%*)
2903     eval ac_cv_prog_make_${ac_make}_set=yes;;
2904   *)
2905     eval ac_cv_prog_make_${ac_make}_set=no;;
2906 esac
2907 rm -f conftest.make
2909 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2911 $as_echo "yes" >&6; }
2912   SET_MAKE=
2913 else
2914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2915 $as_echo "no" >&6; }
2916   SET_MAKE="MAKE=${MAKE-make}"
2919 rm -rf .tst 2>/dev/null
2920 mkdir .tst 2>/dev/null
2921 if test -d .tst; then
2922   am__leading_dot=.
2923 else
2924   am__leading_dot=_
2926 rmdir .tst 2>/dev/null
2928 @%:@ Check whether --enable-silent-rules was given.
2929 if test "${enable_silent_rules+set}" = set; then :
2930   enableval=$enable_silent_rules; 
2933 case $enable_silent_rules in @%:@ (((
2934   yes) AM_DEFAULT_VERBOSITY=0;;
2935    no) AM_DEFAULT_VERBOSITY=1;;
2936     *) AM_DEFAULT_VERBOSITY=1;;
2937 esac
2938 am_make=${MAKE-make}
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2940 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2941 if ${am_cv_make_support_nested_variables+:} false; then :
2942   $as_echo_n "(cached) " >&6
2943 else
2944   if $as_echo 'TRUE=$(BAR$(V))
2945 BAR0=false
2946 BAR1=true
2948 am__doit:
2949         @$(TRUE)
2950 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2951   am_cv_make_support_nested_variables=yes
2952 else
2953   am_cv_make_support_nested_variables=no
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2957 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2958 if test $am_cv_make_support_nested_variables = yes; then
2959     AM_V='$(V)'
2960   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2961 else
2962   AM_V=$AM_DEFAULT_VERBOSITY
2963   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2965 AM_BACKSLASH='\'
2967 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2968   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2969   # is not polluted with repeated "-I."
2970   am__isrc=' -I$(srcdir)'
2971   # test to see if srcdir already configured
2972   if test -f $srcdir/config.status; then
2973     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2974   fi
2977 # test whether we have cygpath
2978 if test -z "$CYGPATH_W"; then
2979   if (cygpath --version) >/dev/null 2>/dev/null; then
2980     CYGPATH_W='cygpath -w'
2981   else
2982     CYGPATH_W=echo
2983   fi
2987 # Define the identity of the package.
2988  PACKAGE='dnscrypt-proxy'
2989  VERSION='1.4.0'
2992 cat >>confdefs.h <<_ACEOF
2993 @%:@define PACKAGE "$PACKAGE"
2994 _ACEOF
2997 cat >>confdefs.h <<_ACEOF
2998 @%:@define VERSION "$VERSION"
2999 _ACEOF
3001 # Some tools Automake needs.
3003 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3006 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3009 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3012 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3015 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3017 # For better backward compatibility.  To be removed once Automake 1.9.x
3018 # dies out for good.  For more background, see:
3019 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3020 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3021 mkdir_p='$(MKDIR_P)'
3023 # We need awk for the "check" target.  The system "awk" is bad on
3024 # some platforms.
3025 # Always define AMTAR for backward compatibility.  Yes, it's still used
3026 # in the wild :-(  We should find a proper way to deprecate it ...
3027 AMTAR='$${TAR-tar}'
3030 # We'll loop over all known methods to create a tar archive until one works.
3031 _am_tools='gnutar plaintar pax cpio none'
3033 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
3034       # There is notably a 21 bits limit for the UID and the GID.  In fact,
3035       # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
3036       # and bug#13588).
3037       am_max_uid=2097151 # 2^21 - 1
3038       am_max_gid=$am_max_uid
3039       # The $UID and $GID variables are not portable, so we need to resort
3040       # to the POSIX-mandated id(1) utility.  Errors in the 'id' calls
3041       # below are definitely unexpected, so allow the users to see them
3042       # (that is, avoid stderr redirection).
3043       am_uid=`id -u || echo unknown`
3044       am_gid=`id -g || echo unknown`
3045       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
3046 $as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
3047       if test $am_uid -le $am_max_uid; then
3048          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3049 $as_echo "yes" >&6; }
3050       else
3051          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3052 $as_echo "no" >&6; }
3053          _am_tools=none
3054       fi
3055       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
3056 $as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
3057       if test $am_gid -le $am_max_gid; then
3058          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3059 $as_echo "yes" >&6; }
3060       else
3061         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3062 $as_echo "no" >&6; }
3063         _am_tools=none
3064       fi
3066   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3067 $as_echo_n "checking how to create a ustar tar archive... " >&6; }
3069   # Go ahead even if we have the value already cached.  We do so because we
3070   # need to set the values for the 'am__tar' and 'am__untar' variables.
3071   _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3073   for _am_tool in $_am_tools; do
3074     case $_am_tool in
3075     gnutar)
3076       for _am_tar in tar gnutar gtar; do
3077         { echo "$as_me:$LINENO: $_am_tar --version" >&5
3078    ($_am_tar --version) >&5 2>&5
3079    ac_status=$?
3080    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081    (exit $ac_status); } && break
3082       done
3083       am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3084       am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3085       am__untar="$_am_tar -xf -"
3086       ;;
3087     plaintar)
3088       # Must skip GNU tar: if it does not support --format= it doesn't create
3089       # ustar tarball either.
3090       (tar --version) >/dev/null 2>&1 && continue
3091       am__tar='tar chf - "$$tardir"'
3092       am__tar_='tar chf - "$tardir"'
3093       am__untar='tar xf -'
3094       ;;
3095     pax)
3096       am__tar='pax -L -x ustar -w "$$tardir"'
3097       am__tar_='pax -L -x ustar -w "$tardir"'
3098       am__untar='pax -r'
3099       ;;
3100     cpio)
3101       am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3102       am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3103       am__untar='cpio -i -H ustar -d'
3104       ;;
3105     none)
3106       am__tar=false
3107       am__tar_=false
3108       am__untar=false
3109       ;;
3110     esac
3112     # If the value was cached, stop now.  We just wanted to have am__tar
3113     # and am__untar set.
3114     test -n "${am_cv_prog_tar_ustar}" && break
3116     # tar/untar a dummy directory, and stop if the command works.
3117     rm -rf conftest.dir
3118     mkdir conftest.dir
3119     echo GrepMe > conftest.dir/file
3120     { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3121    (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3122    ac_status=$?
3123    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3124    (exit $ac_status); }
3125     rm -rf conftest.dir
3126     if test -s conftest.tar; then
3127       { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3128    ($am__untar <conftest.tar) >&5 2>&5
3129    ac_status=$?
3130    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131    (exit $ac_status); }
3132       { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
3133    (cat conftest.dir/file) >&5 2>&5
3134    ac_status=$?
3135    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136    (exit $ac_status); }
3137       grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3138     fi
3139   done
3140   rm -rf conftest.dir
3142   if ${am_cv_prog_tar_ustar+:} false; then :
3143   $as_echo_n "(cached) " >&6
3144 else
3145   am_cv_prog_tar_ustar=$_am_tool
3148   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3149 $as_echo "$am_cv_prog_tar_ustar" >&6; }
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3158 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3159     @%:@ Check whether --enable-maintainer-mode was given.
3160 if test "${enable_maintainer_mode+set}" = set; then :
3161   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3162 else
3163   USE_MAINTAINER_MODE=no
3166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3167 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3168    if test $USE_MAINTAINER_MODE = yes; then
3169   MAINTAINER_MODE_TRUE=
3170   MAINTAINER_MODE_FALSE='#'
3171 else
3172   MAINTAINER_MODE_TRUE='#'
3173   MAINTAINER_MODE_FALSE=
3176   MAINT=$MAINTAINER_MODE_TRUE
3177   
3179 @%:@ Check whether --enable-dependency-tracking was given.
3180 if test "${enable_dependency_tracking+set}" = set; then :
3181   enableval=$enable_dependency_tracking; 
3184 if test "x$enable_dependency_tracking" != xno; then
3185   am_depcomp="$ac_aux_dir/depcomp"
3186   AMDEPBACKSLASH='\'
3187   am__nodep='_no'
3189  if test "x$enable_dependency_tracking" != xno; then
3190   AMDEP_TRUE=
3191   AMDEP_FALSE='#'
3192 else
3193   AMDEP_TRUE='#'
3194   AMDEP_FALSE=
3200 ISODATE=`date +%Y-%m-%d`
3203 LX_CFLAGS=${CFLAGS-NONE}
3206 @%:@ Check whether --enable-ssp was given.
3207 if test "${enable_ssp+set}" = set; then :
3208   enableval=$enable_ssp; 
3209   if test "x$enableval" = "xno"; then :
3210   
3211     enable_ssp="no"
3212   
3213 else
3214   
3215     enable_ssp="yes"
3216   
3219 else
3220   
3221   enable_ssp="yes"
3226 @%:@ Check whether --enable-pie was given.
3227 if test "${enable_pie+set}" = set; then :
3228   enableval=$enable_pie; enable_pie=$enableval
3229 else
3230   enable_pie="maybe"
3234 case $host_os in @%:@(
3235   mingw*) :
3236     enable_pie="no" ;; @%:@(
3237   *) :
3238      ;;
3239 esac
3242 @%:@ Check whether --with-safecode was given.
3243 if test "${with_safecode+set}" = set; then :
3244   withval=$with_safecode; if test "x$withval" = "xyes"; then :
3245   
3246     
3247     : ${SAFECODE_HOME:=/opt/safecode}
3248     LDFLAGS="$LDFLAGS -L${SAFECODE_HOME}/lib"
3249     LIBS="$LIBS -lsc_dbg_rt -lpoolalloc_bitmap -lstdc++"
3250     CFLAGS="$CFLAGS -fmemsafety"
3251   
3257 @%:@ Check whether --enable-debug was given.
3258 if test "${enable_debug+set}" = set; then :
3259   enableval=$enable_debug; 
3260   if test "x$enableval" = "xyes"; then :
3261   
3262     if test "x$LX_CFLAGS" = "xNONE"; then :
3263   
3264       nxflags=""
3265       for flag in `echo $CFLAGS`; do
3266         case $flag in @%:@(
3267   -O*) :
3268       ;; @%:@(
3269   -g*) :
3270       ;; @%:@(
3271   *) :
3272     as_fn_append nxflags " $flag" ;; @%:@(
3273   *) :
3274      ;;
3275 esac
3276       done
3277       CFLAGS="$nxflags -O0 -g3"
3278     
3280     CPPFLAGS="$CPPFLAGS -DDEBUG=1"
3281   
3287 plugins=disabled
3288 @%:@ Check whether --enable-plugins was given.
3289 if test "${enable_plugins+set}" = set; then :
3290   enableval=$enable_plugins; 
3291         if test "x$enableval" != "xno"; then :
3292   
3293                 CPPFLAGS="$CPPFLAGS -DPLUGINS=1"
3294                 plugins=enabled
3295         
3300  if test x$plugins = xenabled; then
3301   PLUGINS_TRUE=
3302   PLUGINS_FALSE='#'
3303 else
3304   PLUGINS_TRUE='#'
3305   PLUGINS_FALSE=
3309 relaxed_plugins_permissions=disabled
3310 @%:@ Check whether --enable-relaxed-plugins-permissions was given.
3311 if test "${enable_relaxed_plugins_permissions+set}" = set; then :
3312   enableval=$enable_relaxed_plugins_permissions; 
3313         if test "x$enableval" != "xno"; then :
3314   
3315                 CPPFLAGS="$CPPFLAGS -DRELAXED_PLUGINS_PERMISSIONS=1"
3316                 relaxed_plugins_permissions=enabled
3317         
3322  if test x$relaxed_plugins_permissions = xenabled; then
3323   RELAXED_PLUGINS_PERMISSIONS_TRUE=
3324   RELAXED_PLUGINS_PERMISSIONS_FALSE='#'
3325 else
3326   RELAXED_PLUGINS_PERMISSIONS_TRUE='#'
3327   RELAXED_PLUGINS_PERMISSIONS_FALSE=
3331 plugins_root=disabled
3332 @%:@ Check whether --enable-plugins-root was given.
3333 if test "${enable_plugins_root+set}" = set; then :
3334   enableval=$enable_plugins_root; 
3335         if test "x$enableval" != "xno"; then :
3336   
3337                 CPPFLAGS="$CPPFLAGS -DENABLE_PLUGINS_ROOT=1"
3338                 plugins_root=enabled
3339         
3344  if test x$plugins_root = xenabled; then
3345   ENABLE_PLUGINS_ROOT_TRUE=
3346   ENABLE_PLUGINS_ROOT_FALSE='#'
3347 else
3348   ENABLE_PLUGINS_ROOT_TRUE='#'
3349   ENABLE_PLUGINS_ROOT_FALSE=
3356 DEPDIR="${am__leading_dot}deps"
3358 ac_config_commands="$ac_config_commands depfiles"
3361 am_make=${MAKE-make}
3362 cat > confinc << 'END'
3363 am__doit:
3364         @echo this is the am__doit target
3365 .PHONY: am__doit
3367 # If we don't find an include directive, just comment out the code.
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3369 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3370 am__include="#"
3371 am__quote=
3372 _am_result=none
3373 # First try GNU make style include.
3374 echo "include confinc" > confmf
3375 # Ignore all kinds of additional output from 'make'.
3376 case `$am_make -s -f confmf 2> /dev/null` in #(
3377 *the\ am__doit\ target*)
3378   am__include=include
3379   am__quote=
3380   _am_result=GNU
3381   ;;
3382 esac
3383 # Now try BSD make style include.
3384 if test "$am__include" = "#"; then
3385    echo '.include "confinc"' > confmf
3386    case `$am_make -s -f confmf 2> /dev/null` in #(
3387    *the\ am__doit\ target*)
3388      am__include=.include
3389      am__quote="\""
3390      _am_result=BSD
3391      ;;
3392    esac
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3397 $as_echo "$_am_result" >&6; }
3398 rm -f confinc confmf
3400 ac_ext=c
3401 ac_cpp='$CPP $CPPFLAGS'
3402 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3403 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3404 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3405 if test -n "$ac_tool_prefix"; then
3406   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3407 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3409 $as_echo_n "checking for $ac_word... " >&6; }
3410 if ${ac_cv_prog_CC+:} false; then :
3411   $as_echo_n "(cached) " >&6
3412 else
3413   if test -n "$CC"; then
3414   ac_cv_prog_CC="$CC" # Let the user override the test.
3415 else
3416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3417 for as_dir in $PATH
3419   IFS=$as_save_IFS
3420   test -z "$as_dir" && as_dir=.
3421     for ac_exec_ext in '' $ac_executable_extensions; do
3422   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3423     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3424     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3425     break 2
3426   fi
3427 done
3428   done
3429 IFS=$as_save_IFS
3433 CC=$ac_cv_prog_CC
3434 if test -n "$CC"; then
3435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3436 $as_echo "$CC" >&6; }
3437 else
3438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3439 $as_echo "no" >&6; }
3444 if test -z "$ac_cv_prog_CC"; then
3445   ac_ct_CC=$CC
3446   # Extract the first word of "gcc", so it can be a program name with args.
3447 set dummy gcc; ac_word=$2
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3449 $as_echo_n "checking for $ac_word... " >&6; }
3450 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3451   $as_echo_n "(cached) " >&6
3452 else
3453   if test -n "$ac_ct_CC"; then
3454   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3455 else
3456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3457 for as_dir in $PATH
3459   IFS=$as_save_IFS
3460   test -z "$as_dir" && as_dir=.
3461     for ac_exec_ext in '' $ac_executable_extensions; do
3462   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3463     ac_cv_prog_ac_ct_CC="gcc"
3464     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3465     break 2
3466   fi
3467 done
3468   done
3469 IFS=$as_save_IFS
3473 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3474 if test -n "$ac_ct_CC"; then
3475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3476 $as_echo "$ac_ct_CC" >&6; }
3477 else
3478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3479 $as_echo "no" >&6; }
3482   if test "x$ac_ct_CC" = x; then
3483     CC=""
3484   else
3485     case $cross_compiling:$ac_tool_warned in
3486 yes:)
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3488 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3489 ac_tool_warned=yes ;;
3490 esac
3491     CC=$ac_ct_CC
3492   fi
3493 else
3494   CC="$ac_cv_prog_CC"
3497 if test -z "$CC"; then
3498           if test -n "$ac_tool_prefix"; then
3499     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3500 set dummy ${ac_tool_prefix}cc; ac_word=$2
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3502 $as_echo_n "checking for $ac_word... " >&6; }
3503 if ${ac_cv_prog_CC+:} false; then :
3504   $as_echo_n "(cached) " >&6
3505 else
3506   if test -n "$CC"; then
3507   ac_cv_prog_CC="$CC" # Let the user override the test.
3508 else
3509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3510 for as_dir in $PATH
3512   IFS=$as_save_IFS
3513   test -z "$as_dir" && as_dir=.
3514     for ac_exec_ext in '' $ac_executable_extensions; do
3515   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3516     ac_cv_prog_CC="${ac_tool_prefix}cc"
3517     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3518     break 2
3519   fi
3520 done
3521   done
3522 IFS=$as_save_IFS
3526 CC=$ac_cv_prog_CC
3527 if test -n "$CC"; then
3528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3529 $as_echo "$CC" >&6; }
3530 else
3531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3532 $as_echo "no" >&6; }
3536   fi
3538 if test -z "$CC"; then
3539   # Extract the first word of "cc", so it can be a program name with args.
3540 set dummy cc; ac_word=$2
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3542 $as_echo_n "checking for $ac_word... " >&6; }
3543 if ${ac_cv_prog_CC+:} false; then :
3544   $as_echo_n "(cached) " >&6
3545 else
3546   if test -n "$CC"; then
3547   ac_cv_prog_CC="$CC" # Let the user override the test.
3548 else
3549   ac_prog_rejected=no
3550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3551 for as_dir in $PATH
3553   IFS=$as_save_IFS
3554   test -z "$as_dir" && as_dir=.
3555     for ac_exec_ext in '' $ac_executable_extensions; do
3556   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3557     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3558        ac_prog_rejected=yes
3559        continue
3560      fi
3561     ac_cv_prog_CC="cc"
3562     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3563     break 2
3564   fi
3565 done
3566   done
3567 IFS=$as_save_IFS
3569 if test $ac_prog_rejected = yes; then
3570   # We found a bogon in the path, so make sure we never use it.
3571   set dummy $ac_cv_prog_CC
3572   shift
3573   if test $@%:@ != 0; then
3574     # We chose a different compiler from the bogus one.
3575     # However, it has the same basename, so the bogon will be chosen
3576     # first if we set CC to just the basename; use the full file name.
3577     shift
3578     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3579   fi
3583 CC=$ac_cv_prog_CC
3584 if test -n "$CC"; then
3585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3586 $as_echo "$CC" >&6; }
3587 else
3588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3589 $as_echo "no" >&6; }
3594 if test -z "$CC"; then
3595   if test -n "$ac_tool_prefix"; then
3596   for ac_prog in cl.exe
3597   do
3598     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3599 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3601 $as_echo_n "checking for $ac_word... " >&6; }
3602 if ${ac_cv_prog_CC+:} false; then :
3603   $as_echo_n "(cached) " >&6
3604 else
3605   if test -n "$CC"; then
3606   ac_cv_prog_CC="$CC" # Let the user override the test.
3607 else
3608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3609 for as_dir in $PATH
3611   IFS=$as_save_IFS
3612   test -z "$as_dir" && as_dir=.
3613     for ac_exec_ext in '' $ac_executable_extensions; do
3614   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3615     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3616     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3617     break 2
3618   fi
3619 done
3620   done
3621 IFS=$as_save_IFS
3625 CC=$ac_cv_prog_CC
3626 if test -n "$CC"; then
3627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3628 $as_echo "$CC" >&6; }
3629 else
3630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3631 $as_echo "no" >&6; }
3635     test -n "$CC" && break
3636   done
3638 if test -z "$CC"; then
3639   ac_ct_CC=$CC
3640   for ac_prog in cl.exe
3642   # Extract the first word of "$ac_prog", so it can be a program name with args.
3643 set dummy $ac_prog; ac_word=$2
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3645 $as_echo_n "checking for $ac_word... " >&6; }
3646 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3647   $as_echo_n "(cached) " >&6
3648 else
3649   if test -n "$ac_ct_CC"; then
3650   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3651 else
3652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3653 for as_dir in $PATH
3655   IFS=$as_save_IFS
3656   test -z "$as_dir" && as_dir=.
3657     for ac_exec_ext in '' $ac_executable_extensions; do
3658   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3659     ac_cv_prog_ac_ct_CC="$ac_prog"
3660     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3661     break 2
3662   fi
3663 done
3664   done
3665 IFS=$as_save_IFS
3669 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3670 if test -n "$ac_ct_CC"; then
3671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3672 $as_echo "$ac_ct_CC" >&6; }
3673 else
3674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3675 $as_echo "no" >&6; }
3679   test -n "$ac_ct_CC" && break
3680 done
3682   if test "x$ac_ct_CC" = x; then
3683     CC=""
3684   else
3685     case $cross_compiling:$ac_tool_warned in
3686 yes:)
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3688 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3689 ac_tool_warned=yes ;;
3690 esac
3691     CC=$ac_ct_CC
3692   fi
3698 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3699 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3700 as_fn_error $? "no acceptable C compiler found in \$PATH
3701 See \`config.log' for more details" "$LINENO" 5; }
3703 # Provide some information about the compiler.
3704 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3705 set X $ac_compile
3706 ac_compiler=$2
3707 for ac_option in --version -v -V -qversion; do
3708   { { ac_try="$ac_compiler $ac_option >&5"
3709 case "(($ac_try" in
3710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3711   *) ac_try_echo=$ac_try;;
3712 esac
3713 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3714 $as_echo "$ac_try_echo"; } >&5
3715   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3716   ac_status=$?
3717   if test -s conftest.err; then
3718     sed '10a\
3719 ... rest of stderr output deleted ...
3720          10q' conftest.err >conftest.er1
3721     cat conftest.er1 >&5
3722   fi
3723   rm -f conftest.er1 conftest.err
3724   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3725   test $ac_status = 0; }
3726 done
3728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3729 /* end confdefs.h.  */
3732 main ()
3735   ;
3736   return 0;
3738 _ACEOF
3739 ac_clean_files_save=$ac_clean_files
3740 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3741 # Try to create an executable without -o first, disregard a.out.
3742 # It will help us diagnose broken compilers, and finding out an intuition
3743 # of exeext.
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3745 $as_echo_n "checking whether the C compiler works... " >&6; }
3746 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3748 # The possible output files:
3749 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3751 ac_rmfiles=
3752 for ac_file in $ac_files
3754   case $ac_file in
3755     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3756     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3757   esac
3758 done
3759 rm -f $ac_rmfiles
3761 if { { ac_try="$ac_link_default"
3762 case "(($ac_try" in
3763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3764   *) ac_try_echo=$ac_try;;
3765 esac
3766 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3767 $as_echo "$ac_try_echo"; } >&5
3768   (eval "$ac_link_default") 2>&5
3769   ac_status=$?
3770   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3771   test $ac_status = 0; }; then :
3772   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3773 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3774 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3775 # so that the user can short-circuit this test for compilers unknown to
3776 # Autoconf.
3777 for ac_file in $ac_files ''
3779   test -f "$ac_file" || continue
3780   case $ac_file in
3781     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3782         ;;
3783     [ab].out )
3784         # We found the default executable, but exeext='' is most
3785         # certainly right.
3786         break;;
3787     *.* )
3788         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3789         then :; else
3790            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3791         fi
3792         # We set ac_cv_exeext here because the later test for it is not
3793         # safe: cross compilers may not add the suffix if given an `-o'
3794         # argument, so we may need to know it at that point already.
3795         # Even if this section looks crufty: it has the advantage of
3796         # actually working.
3797         break;;
3798     * )
3799         break;;
3800   esac
3801 done
3802 test "$ac_cv_exeext" = no && ac_cv_exeext=
3804 else
3805   ac_file=''
3807 if test -z "$ac_file"; then :
3808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3809 $as_echo "no" >&6; }
3810 $as_echo "$as_me: failed program was:" >&5
3811 sed 's/^/| /' conftest.$ac_ext >&5
3813 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3814 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3815 as_fn_error 77 "C compiler cannot create executables
3816 See \`config.log' for more details" "$LINENO" 5; }
3817 else
3818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3819 $as_echo "yes" >&6; }
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3822 $as_echo_n "checking for C compiler default output file name... " >&6; }
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3824 $as_echo "$ac_file" >&6; }
3825 ac_exeext=$ac_cv_exeext
3827 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3828 ac_clean_files=$ac_clean_files_save
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3830 $as_echo_n "checking for suffix of executables... " >&6; }
3831 if { { ac_try="$ac_link"
3832 case "(($ac_try" in
3833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3834   *) ac_try_echo=$ac_try;;
3835 esac
3836 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3837 $as_echo "$ac_try_echo"; } >&5
3838   (eval "$ac_link") 2>&5
3839   ac_status=$?
3840   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3841   test $ac_status = 0; }; then :
3842   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3843 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3844 # work properly (i.e., refer to `conftest.exe'), while it won't with
3845 # `rm'.
3846 for ac_file in conftest.exe conftest conftest.*; do
3847   test -f "$ac_file" || continue
3848   case $ac_file in
3849     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3850     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3851           break;;
3852     * ) break;;
3853   esac
3854 done
3855 else
3856   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3857 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3858 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3859 See \`config.log' for more details" "$LINENO" 5; }
3861 rm -f conftest conftest$ac_cv_exeext
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3863 $as_echo "$ac_cv_exeext" >&6; }
3865 rm -f conftest.$ac_ext
3866 EXEEXT=$ac_cv_exeext
3867 ac_exeext=$EXEEXT
3868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3869 /* end confdefs.h.  */
3870 @%:@include <stdio.h>
3872 main ()
3874 FILE *f = fopen ("conftest.out", "w");
3875  return ferror (f) || fclose (f) != 0;
3877   ;
3878   return 0;
3880 _ACEOF
3881 ac_clean_files="$ac_clean_files conftest.out"
3882 # Check that the compiler produces executables we can run.  If not, either
3883 # the compiler is broken, or we cross compile.
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3885 $as_echo_n "checking whether we are cross compiling... " >&6; }
3886 if test "$cross_compiling" != yes; then
3887   { { ac_try="$ac_link"
3888 case "(($ac_try" in
3889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3890   *) ac_try_echo=$ac_try;;
3891 esac
3892 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3893 $as_echo "$ac_try_echo"; } >&5
3894   (eval "$ac_link") 2>&5
3895   ac_status=$?
3896   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3897   test $ac_status = 0; }
3898   if { ac_try='./conftest$ac_cv_exeext'
3899   { { case "(($ac_try" in
3900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3901   *) ac_try_echo=$ac_try;;
3902 esac
3903 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3904 $as_echo "$ac_try_echo"; } >&5
3905   (eval "$ac_try") 2>&5
3906   ac_status=$?
3907   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3908   test $ac_status = 0; }; }; then
3909     cross_compiling=no
3910   else
3911     if test "$cross_compiling" = maybe; then
3912         cross_compiling=yes
3913     else
3914         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3915 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3916 as_fn_error $? "cannot run C compiled programs.
3917 If you meant to cross compile, use \`--host'.
3918 See \`config.log' for more details" "$LINENO" 5; }
3919     fi
3920   fi
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3923 $as_echo "$cross_compiling" >&6; }
3925 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3926 ac_clean_files=$ac_clean_files_save
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3928 $as_echo_n "checking for suffix of object files... " >&6; }
3929 if ${ac_cv_objext+:} false; then :
3930   $as_echo_n "(cached) " >&6
3931 else
3932   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3933 /* end confdefs.h.  */
3936 main ()
3939   ;
3940   return 0;
3942 _ACEOF
3943 rm -f conftest.o conftest.obj
3944 if { { ac_try="$ac_compile"
3945 case "(($ac_try" in
3946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3947   *) ac_try_echo=$ac_try;;
3948 esac
3949 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3950 $as_echo "$ac_try_echo"; } >&5
3951   (eval "$ac_compile") 2>&5
3952   ac_status=$?
3953   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3954   test $ac_status = 0; }; then :
3955   for ac_file in conftest.o conftest.obj conftest.*; do
3956   test -f "$ac_file" || continue;
3957   case $ac_file in
3958     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3959     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3960        break;;
3961   esac
3962 done
3963 else
3964   $as_echo "$as_me: failed program was:" >&5
3965 sed 's/^/| /' conftest.$ac_ext >&5
3967 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3968 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3969 as_fn_error $? "cannot compute suffix of object files: cannot compile
3970 See \`config.log' for more details" "$LINENO" 5; }
3972 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3975 $as_echo "$ac_cv_objext" >&6; }
3976 OBJEXT=$ac_cv_objext
3977 ac_objext=$OBJEXT
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3979 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3980 if ${ac_cv_c_compiler_gnu+:} false; then :
3981   $as_echo_n "(cached) " >&6
3982 else
3983   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3984 /* end confdefs.h.  */
3987 main ()
3989 #ifndef __GNUC__
3990        choke me
3991 #endif
3993   ;
3994   return 0;
3996 _ACEOF
3997 if ac_fn_c_try_compile "$LINENO"; then :
3998   ac_compiler_gnu=yes
3999 else
4000   ac_compiler_gnu=no
4002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4003 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4007 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4008 if test $ac_compiler_gnu = yes; then
4009   GCC=yes
4010 else
4011   GCC=
4013 ac_test_CFLAGS=${CFLAGS+set}
4014 ac_save_CFLAGS=$CFLAGS
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4016 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4017 if ${ac_cv_prog_cc_g+:} false; then :
4018   $as_echo_n "(cached) " >&6
4019 else
4020   ac_save_c_werror_flag=$ac_c_werror_flag
4021    ac_c_werror_flag=yes
4022    ac_cv_prog_cc_g=no
4023    CFLAGS="-g"
4024    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4025 /* end confdefs.h.  */
4028 main ()
4031   ;
4032   return 0;
4034 _ACEOF
4035 if ac_fn_c_try_compile "$LINENO"; then :
4036   ac_cv_prog_cc_g=yes
4037 else
4038   CFLAGS=""
4039       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4040 /* end confdefs.h.  */
4043 main ()
4046   ;
4047   return 0;
4049 _ACEOF
4050 if ac_fn_c_try_compile "$LINENO"; then :
4051   
4052 else
4053   ac_c_werror_flag=$ac_save_c_werror_flag
4054          CFLAGS="-g"
4055          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4056 /* end confdefs.h.  */
4059 main ()
4062   ;
4063   return 0;
4065 _ACEOF
4066 if ac_fn_c_try_compile "$LINENO"; then :
4067   ac_cv_prog_cc_g=yes
4069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4074    ac_c_werror_flag=$ac_save_c_werror_flag
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4077 $as_echo "$ac_cv_prog_cc_g" >&6; }
4078 if test "$ac_test_CFLAGS" = set; then
4079   CFLAGS=$ac_save_CFLAGS
4080 elif test $ac_cv_prog_cc_g = yes; then
4081   if test "$GCC" = yes; then
4082     CFLAGS="-g -O2"
4083   else
4084     CFLAGS="-g"
4085   fi
4086 else
4087   if test "$GCC" = yes; then
4088     CFLAGS="-O2"
4089   else
4090     CFLAGS=
4091   fi
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4094 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4095 if ${ac_cv_prog_cc_c89+:} false; then :
4096   $as_echo_n "(cached) " >&6
4097 else
4098   ac_cv_prog_cc_c89=no
4099 ac_save_CC=$CC
4100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4101 /* end confdefs.h.  */
4102 #include <stdarg.h>
4103 #include <stdio.h>
4104 struct stat;
4105 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4106 struct buf { int x; };
4107 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4108 static char *e (p, i)
4109      char **p;
4110      int i;
4112   return p[i];
4114 static char *f (char * (*g) (char **, int), char **p, ...)
4116   char *s;
4117   va_list v;
4118   va_start (v,p);
4119   s = g (p, va_arg (v,int));
4120   va_end (v);
4121   return s;
4124 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4125    function prototypes and stuff, but not '\xHH' hex character constants.
4126    These don't provoke an error unfortunately, instead are silently treated
4127    as 'x'.  The following induces an error, until -std is added to get
4128    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4129    array size at least.  It's necessary to write '\x00'==0 to get something
4130    that's true only with -std.  */
4131 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4133 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4134    inside strings and character constants.  */
4135 #define FOO(x) 'x'
4136 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4138 int test (int i, double x);
4139 struct s1 {int (*f) (int a);};
4140 struct s2 {int (*f) (double a);};
4141 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4142 int argc;
4143 char **argv;
4145 main ()
4147 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4148   ;
4149   return 0;
4151 _ACEOF
4152 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4153         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4155   CC="$ac_save_CC $ac_arg"
4156   if ac_fn_c_try_compile "$LINENO"; then :
4157   ac_cv_prog_cc_c89=$ac_arg
4159 rm -f core conftest.err conftest.$ac_objext
4160   test "x$ac_cv_prog_cc_c89" != "xno" && break
4161 done
4162 rm -f conftest.$ac_ext
4163 CC=$ac_save_CC
4166 # AC_CACHE_VAL
4167 case "x$ac_cv_prog_cc_c89" in
4168   x)
4169     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4170 $as_echo "none needed" >&6; } ;;
4171   xno)
4172     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4173 $as_echo "unsupported" >&6; } ;;
4174   *)
4175     CC="$CC $ac_cv_prog_cc_c89"
4176     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4177 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4178 esac
4179 if test "x$ac_cv_prog_cc_c89" != xno; then :
4180   
4183 ac_ext=c
4184 ac_cpp='$CPP $CPPFLAGS'
4185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4189 depcc="$CC"   am_compiler_list=
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4192 $as_echo_n "checking dependency style of $depcc... " >&6; }
4193 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4194   $as_echo_n "(cached) " >&6
4195 else
4196   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4197   # We make a subdir and do the tests there.  Otherwise we can end up
4198   # making bogus files that we don't know about and never remove.  For
4199   # instance it was reported that on HP-UX the gcc test will end up
4200   # making a dummy file named 'D' -- because '-MD' means "put the output
4201   # in D".
4202   rm -rf conftest.dir
4203   mkdir conftest.dir
4204   # Copy depcomp to subdir because otherwise we won't find it if we're
4205   # using a relative directory.
4206   cp "$am_depcomp" conftest.dir
4207   cd conftest.dir
4208   # We will build objects and dependencies in a subdirectory because
4209   # it helps to detect inapplicable dependency modes.  For instance
4210   # both Tru64's cc and ICC support -MD to output dependencies as a
4211   # side effect of compilation, but ICC will put the dependencies in
4212   # the current directory while Tru64 will put them in the object
4213   # directory.
4214   mkdir sub
4216   am_cv_CC_dependencies_compiler_type=none
4217   if test "$am_compiler_list" = ""; then
4218      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4219   fi
4220   am__universal=false
4221   case " $depcc " in #(
4222      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4223      esac
4225   for depmode in $am_compiler_list; do
4226     # Setup a source with many dependencies, because some compilers
4227     # like to wrap large dependency lists on column 80 (with \), and
4228     # we should not choose a depcomp mode which is confused by this.
4229     #
4230     # We need to recreate these files for each test, as the compiler may
4231     # overwrite some of them when testing with obscure command lines.
4232     # This happens at least with the AIX C compiler.
4233     : > sub/conftest.c
4234     for i in 1 2 3 4 5 6; do
4235       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4236       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4237       # Solaris 10 /bin/sh.
4238       echo '/* dummy */' > sub/conftst$i.h
4239     done
4240     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4242     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4243     # mode.  It turns out that the SunPro C++ compiler does not properly
4244     # handle '-M -o', and we need to detect this.  Also, some Intel
4245     # versions had trouble with output in subdirs.
4246     am__obj=sub/conftest.${OBJEXT-o}
4247     am__minus_obj="-o $am__obj"
4248     case $depmode in
4249     gcc)
4250       # This depmode causes a compiler race in universal mode.
4251       test "$am__universal" = false || continue
4252       ;;
4253     nosideeffect)
4254       # After this tag, mechanisms are not by side-effect, so they'll
4255       # only be used when explicitly requested.
4256       if test "x$enable_dependency_tracking" = xyes; then
4257         continue
4258       else
4259         break
4260       fi
4261       ;;
4262     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4263       # This compiler won't grok '-c -o', but also, the minuso test has
4264       # not run yet.  These depmodes are late enough in the game, and
4265       # so weak that their functioning should not be impacted.
4266       am__obj=conftest.${OBJEXT-o}
4267       am__minus_obj=
4268       ;;
4269     none) break ;;
4270     esac
4271     if depmode=$depmode \
4272        source=sub/conftest.c object=$am__obj \
4273        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4274        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4275          >/dev/null 2>conftest.err &&
4276        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4277        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4278        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4279        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4280       # icc doesn't choke on unknown options, it will just issue warnings
4281       # or remarks (even with -Werror).  So we grep stderr for any message
4282       # that says an option was ignored or not supported.
4283       # When given -MP, icc 7.0 and 7.1 complain thusly:
4284       #   icc: Command line warning: ignoring option '-M'; no argument required
4285       # The diagnosis changed in icc 8.0:
4286       #   icc: Command line remark: option '-MP' not supported
4287       if (grep 'ignoring option' conftest.err ||
4288           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4289         am_cv_CC_dependencies_compiler_type=$depmode
4290         break
4291       fi
4292     fi
4293   done
4295   cd ..
4296   rm -rf conftest.dir
4297 else
4298   am_cv_CC_dependencies_compiler_type=none
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4303 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4304 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4306  if 
4307   test "x$enable_dependency_tracking" != xno \
4308   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4309   am__fastdepCC_TRUE=
4310   am__fastdepCC_FALSE='#'
4311 else
4312   am__fastdepCC_TRUE='#'
4313   am__fastdepCC_FALSE=
4317    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4318 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4319 if ${ac_cv_prog_cc_c99+:} false; then :
4320   $as_echo_n "(cached) " >&6
4321 else
4322   ac_cv_prog_cc_c99=no
4323 ac_save_CC=$CC
4324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4325 /* end confdefs.h.  */
4326 #include <stdarg.h>
4327 #include <stdbool.h>
4328 #include <stdlib.h>
4329 #include <wchar.h>
4330 #include <stdio.h>
4332 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
4333 #define debug(...) fprintf (stderr, __VA_ARGS__)
4334 #define showlist(...) puts (#__VA_ARGS__)
4335 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4336 static void
4337 test_varargs_macros (void)
4339   int x = 1234;
4340   int y = 5678;
4341   debug ("Flag");
4342   debug ("X = %d\n", x);
4343   showlist (The first, second, and third items.);
4344   report (x>y, "x is %d but y is %d", x, y);
4347 // Check long long types.
4348 #define BIG64 18446744073709551615ull
4349 #define BIG32 4294967295ul
4350 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4351 #if !BIG_OK
4352   your preprocessor is broken;
4353 #endif
4354 #if BIG_OK
4355 #else
4356   your preprocessor is broken;
4357 #endif
4358 static long long int bignum = -9223372036854775807LL;
4359 static unsigned long long int ubignum = BIG64;
4361 struct incomplete_array
4363   int datasize;
4364   double data[];
4367 struct named_init {
4368   int number;
4369   const wchar_t *name;
4370   double average;
4373 typedef const char *ccp;
4375 static inline int
4376 test_restrict (ccp restrict text)
4378   // See if C++-style comments work.
4379   // Iterate through items via the restricted pointer.
4380   // Also check for declarations in for loops.
4381   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4382     continue;
4383   return 0;
4386 // Check varargs and va_copy.
4387 static void
4388 test_varargs (const char *format, ...)
4390   va_list args;
4391   va_start (args, format);
4392   va_list args_copy;
4393   va_copy (args_copy, args);
4395   const char *str;
4396   int number;
4397   float fnumber;
4399   while (*format)
4400     {
4401       switch (*format++)
4402         {
4403         case 's': // string
4404           str = va_arg (args_copy, const char *);
4405           break;
4406         case 'd': // int
4407           number = va_arg (args_copy, int);
4408           break;
4409         case 'f': // float
4410           fnumber = va_arg (args_copy, double);
4411           break;
4412         default:
4413           break;
4414         }
4415     }
4416   va_end (args_copy);
4417   va_end (args);
4421 main ()
4424   // Check bool.
4425   _Bool success = false;
4427   // Check restrict.
4428   if (test_restrict ("String literal") == 0)
4429     success = true;
4430   char *restrict newvar = "Another string";
4432   // Check varargs.
4433   test_varargs ("s, d' f .", "string", 65, 34.234);
4434   test_varargs_macros ();
4436   // Check flexible array members.
4437   struct incomplete_array *ia =
4438     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4439   ia->datasize = 10;
4440   for (int i = 0; i < ia->datasize; ++i)
4441     ia->data[i] = i * 1.234;
4443   // Check named initializers.
4444   struct named_init ni = {
4445     .number = 34,
4446     .name = L"Test wide string",
4447     .average = 543.34343,
4448   };
4450   ni.number = 58;
4452   int dynamic_array[ni.number];
4453   dynamic_array[ni.number - 1] = 543;
4455   // work around unused variable warnings
4456   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4457           || dynamic_array[ni.number - 1] != 543);
4459   ;
4460   return 0;
4462 _ACEOF
4463 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4465   CC="$ac_save_CC $ac_arg"
4466   if ac_fn_c_try_compile "$LINENO"; then :
4467   ac_cv_prog_cc_c99=$ac_arg
4469 rm -f core conftest.err conftest.$ac_objext
4470   test "x$ac_cv_prog_cc_c99" != "xno" && break
4471 done
4472 rm -f conftest.$ac_ext
4473 CC=$ac_save_CC
4476 # AC_CACHE_VAL
4477 case "x$ac_cv_prog_cc_c99" in
4478   x)
4479     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4480 $as_echo "none needed" >&6; } ;;
4481   xno)
4482     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4483 $as_echo "unsupported" >&6; } ;;
4484   *)
4485     CC="$CC $ac_cv_prog_cc_c99"
4486     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4487 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4488 esac
4489 if test "x$ac_cv_prog_cc_c99" != xno; then :
4490   
4495 ac_ext=c
4496 ac_cpp='$CPP $CPPFLAGS'
4497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4501 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4502 # On Suns, sometimes $CPP names a directory.
4503 if test -n "$CPP" && test -d "$CPP"; then
4504   CPP=
4506 if test -z "$CPP"; then
4507   if ${ac_cv_prog_CPP+:} false; then :
4508   $as_echo_n "(cached) " >&6
4509 else
4510       # Double quotes because CPP needs to be expanded
4511     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4512     do
4513       ac_preproc_ok=false
4514 for ac_c_preproc_warn_flag in '' yes
4516   # Use a header file that comes with gcc, so configuring glibc
4517   # with a fresh cross-compiler works.
4518   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4519   # <limits.h> exists even on freestanding compilers.
4520   # On the NeXT, cc -E runs the code through the compiler's parser,
4521   # not just through cpp. "Syntax error" is here to catch this case.
4522   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4523 /* end confdefs.h.  */
4524 @%:@ifdef __STDC__
4525 @%:@ include <limits.h>
4526 @%:@else
4527 @%:@ include <assert.h>
4528 @%:@endif
4529                      Syntax error
4530 _ACEOF
4531 if ac_fn_c_try_cpp "$LINENO"; then :
4532   
4533 else
4534   # Broken: fails on valid input.
4535 continue
4537 rm -f conftest.err conftest.i conftest.$ac_ext
4539   # OK, works on sane cases.  Now check whether nonexistent headers
4540   # can be detected and how.
4541   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4542 /* end confdefs.h.  */
4543 @%:@include <ac_nonexistent.h>
4544 _ACEOF
4545 if ac_fn_c_try_cpp "$LINENO"; then :
4546   # Broken: success on invalid input.
4547 continue
4548 else
4549   # Passes both tests.
4550 ac_preproc_ok=:
4551 break
4553 rm -f conftest.err conftest.i conftest.$ac_ext
4555 done
4556 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4557 rm -f conftest.i conftest.err conftest.$ac_ext
4558 if $ac_preproc_ok; then :
4559   break
4562     done
4563     ac_cv_prog_CPP=$CPP
4564   
4566   CPP=$ac_cv_prog_CPP
4567 else
4568   ac_cv_prog_CPP=$CPP
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4571 $as_echo "$CPP" >&6; }
4572 ac_preproc_ok=false
4573 for ac_c_preproc_warn_flag in '' yes
4575   # Use a header file that comes with gcc, so configuring glibc
4576   # with a fresh cross-compiler works.
4577   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4578   # <limits.h> exists even on freestanding compilers.
4579   # On the NeXT, cc -E runs the code through the compiler's parser,
4580   # not just through cpp. "Syntax error" is here to catch this case.
4581   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4582 /* end confdefs.h.  */
4583 @%:@ifdef __STDC__
4584 @%:@ include <limits.h>
4585 @%:@else
4586 @%:@ include <assert.h>
4587 @%:@endif
4588                      Syntax error
4589 _ACEOF
4590 if ac_fn_c_try_cpp "$LINENO"; then :
4591   
4592 else
4593   # Broken: fails on valid input.
4594 continue
4596 rm -f conftest.err conftest.i conftest.$ac_ext
4598   # OK, works on sane cases.  Now check whether nonexistent headers
4599   # can be detected and how.
4600   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4601 /* end confdefs.h.  */
4602 @%:@include <ac_nonexistent.h>
4603 _ACEOF
4604 if ac_fn_c_try_cpp "$LINENO"; then :
4605   # Broken: success on invalid input.
4606 continue
4607 else
4608   # Passes both tests.
4609 ac_preproc_ok=:
4610 break
4612 rm -f conftest.err conftest.i conftest.$ac_ext
4614 done
4615 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4616 rm -f conftest.i conftest.err conftest.$ac_ext
4617 if $ac_preproc_ok; then :
4618   
4619 else
4620   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4621 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4622 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4623 See \`config.log' for more details" "$LINENO" 5; }
4626 ac_ext=c
4627 ac_cpp='$CPP $CPPFLAGS'
4628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4629 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4630 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4634 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4635 if ${ac_cv_path_GREP+:} false; then :
4636   $as_echo_n "(cached) " >&6
4637 else
4638   if test -z "$GREP"; then
4639   ac_path_GREP_found=false
4640   # Loop through the user's path and test for each of PROGNAME-LIST
4641   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4642 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4644   IFS=$as_save_IFS
4645   test -z "$as_dir" && as_dir=.
4646     for ac_prog in grep ggrep; do
4647     for ac_exec_ext in '' $ac_executable_extensions; do
4648       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4649       as_fn_executable_p "$ac_path_GREP" || continue
4650 # Check for GNU ac_path_GREP and select it if it is found.
4651   # Check for GNU $ac_path_GREP
4652 case `"$ac_path_GREP" --version 2>&1` in
4653 *GNU*)
4654   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4656   ac_count=0
4657   $as_echo_n 0123456789 >"conftest.in"
4658   while :
4659   do
4660     cat "conftest.in" "conftest.in" >"conftest.tmp"
4661     mv "conftest.tmp" "conftest.in"
4662     cp "conftest.in" "conftest.nl"
4663     $as_echo 'GREP' >> "conftest.nl"
4664     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4665     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4666     as_fn_arith $ac_count + 1 && ac_count=$as_val
4667     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4668       # Best one so far, save it but keep looking for a better one
4669       ac_cv_path_GREP="$ac_path_GREP"
4670       ac_path_GREP_max=$ac_count
4671     fi
4672     # 10*(2^10) chars as input seems more than enough
4673     test $ac_count -gt 10 && break
4674   done
4675   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4676 esac
4678       $ac_path_GREP_found && break 3
4679     done
4680   done
4681   done
4682 IFS=$as_save_IFS
4683   if test -z "$ac_cv_path_GREP"; then
4684     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4685   fi
4686 else
4687   ac_cv_path_GREP=$GREP
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4692 $as_echo "$ac_cv_path_GREP" >&6; }
4693  GREP="$ac_cv_path_GREP"
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4697 $as_echo_n "checking for egrep... " >&6; }
4698 if ${ac_cv_path_EGREP+:} false; then :
4699   $as_echo_n "(cached) " >&6
4700 else
4701   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4702    then ac_cv_path_EGREP="$GREP -E"
4703    else
4704      if test -z "$EGREP"; then
4705   ac_path_EGREP_found=false
4706   # Loop through the user's path and test for each of PROGNAME-LIST
4707   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4708 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4710   IFS=$as_save_IFS
4711   test -z "$as_dir" && as_dir=.
4712     for ac_prog in egrep; do
4713     for ac_exec_ext in '' $ac_executable_extensions; do
4714       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4715       as_fn_executable_p "$ac_path_EGREP" || continue
4716 # Check for GNU ac_path_EGREP and select it if it is found.
4717   # Check for GNU $ac_path_EGREP
4718 case `"$ac_path_EGREP" --version 2>&1` in
4719 *GNU*)
4720   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4722   ac_count=0
4723   $as_echo_n 0123456789 >"conftest.in"
4724   while :
4725   do
4726     cat "conftest.in" "conftest.in" >"conftest.tmp"
4727     mv "conftest.tmp" "conftest.in"
4728     cp "conftest.in" "conftest.nl"
4729     $as_echo 'EGREP' >> "conftest.nl"
4730     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4731     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4732     as_fn_arith $ac_count + 1 && ac_count=$as_val
4733     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4734       # Best one so far, save it but keep looking for a better one
4735       ac_cv_path_EGREP="$ac_path_EGREP"
4736       ac_path_EGREP_max=$ac_count
4737     fi
4738     # 10*(2^10) chars as input seems more than enough
4739     test $ac_count -gt 10 && break
4740   done
4741   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4742 esac
4744       $ac_path_EGREP_found && break 3
4745     done
4746   done
4747   done
4748 IFS=$as_save_IFS
4749   if test -z "$ac_cv_path_EGREP"; then
4750     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4751   fi
4752 else
4753   ac_cv_path_EGREP=$EGREP
4756    fi
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4759 $as_echo "$ac_cv_path_EGREP" >&6; }
4760  EGREP="$ac_cv_path_EGREP"
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4764 $as_echo_n "checking for ANSI C header files... " >&6; }
4765 if ${ac_cv_header_stdc+:} false; then :
4766   $as_echo_n "(cached) " >&6
4767 else
4768   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4769 /* end confdefs.h.  */
4770 #include <stdlib.h>
4771 #include <stdarg.h>
4772 #include <string.h>
4773 #include <float.h>
4776 main ()
4779   ;
4780   return 0;
4782 _ACEOF
4783 if ac_fn_c_try_compile "$LINENO"; then :
4784   ac_cv_header_stdc=yes
4785 else
4786   ac_cv_header_stdc=no
4788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4790 if test $ac_cv_header_stdc = yes; then
4791   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4792   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4793 /* end confdefs.h.  */
4794 #include <string.h>
4796 _ACEOF
4797 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4798   $EGREP "memchr" >/dev/null 2>&1; then :
4799   
4800 else
4801   ac_cv_header_stdc=no
4803 rm -f conftest*
4807 if test $ac_cv_header_stdc = yes; then
4808   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4809   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4810 /* end confdefs.h.  */
4811 #include <stdlib.h>
4813 _ACEOF
4814 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4815   $EGREP "free" >/dev/null 2>&1; then :
4816   
4817 else
4818   ac_cv_header_stdc=no
4820 rm -f conftest*
4824 if test $ac_cv_header_stdc = yes; then
4825   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4826   if test "$cross_compiling" = yes; then :
4827   :
4828 else
4829   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4830 /* end confdefs.h.  */
4831 #include <ctype.h>
4832 #include <stdlib.h>
4833 #if ((' ' & 0x0FF) == 0x020)
4834 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4835 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4836 #else
4837 # define ISLOWER(c) \
4838                    (('a' <= (c) && (c) <= 'i') \
4839                      || ('j' <= (c) && (c) <= 'r') \
4840                      || ('s' <= (c) && (c) <= 'z'))
4841 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4842 #endif
4844 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4846 main ()
4848   int i;
4849   for (i = 0; i < 256; i++)
4850     if (XOR (islower (i), ISLOWER (i))
4851         || toupper (i) != TOUPPER (i))
4852       return 2;
4853   return 0;
4855 _ACEOF
4856 if ac_fn_c_try_run "$LINENO"; then :
4857   
4858 else
4859   ac_cv_header_stdc=no
4861 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4862   conftest.$ac_objext conftest.beam conftest.$ac_ext
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4868 $as_echo "$ac_cv_header_stdc" >&6; }
4869 if test $ac_cv_header_stdc = yes; then
4870   
4871 $as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
4875 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4876 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4877                   inttypes.h stdint.h unistd.h
4878 do :
4879   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4880 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4882 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4883   cat >>confdefs.h <<_ACEOF
4884 @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4885 _ACEOF
4889 done
4893   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4894 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4895   MINIX=yes
4896 else
4897   MINIX=
4901   if test "$MINIX" = yes; then
4902     
4903 $as_echo "@%:@define _POSIX_SOURCE 1" >>confdefs.h
4905     
4906 $as_echo "@%:@define _POSIX_1_SOURCE 2" >>confdefs.h
4908     
4909 $as_echo "@%:@define _MINIX 1" >>confdefs.h
4911   fi
4913   
4914   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4915 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4916 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4917   $as_echo_n "(cached) " >&6
4918 else
4919   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4920 /* end confdefs.h.  */
4922 #         define __EXTENSIONS__ 1
4923           $ac_includes_default
4925 main ()
4928   ;
4929   return 0;
4931 _ACEOF
4932 if ac_fn_c_try_compile "$LINENO"; then :
4933   ac_cv_safe_to_define___extensions__=yes
4934 else
4935   ac_cv_safe_to_define___extensions__=no
4937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4940 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4941   test $ac_cv_safe_to_define___extensions__ = yes &&
4942     $as_echo "@%:@define __EXTENSIONS__ 1" >>confdefs.h
4944   $as_echo "@%:@define _ALL_SOURCE 1" >>confdefs.h
4946   $as_echo "@%:@define _GNU_SOURCE 1" >>confdefs.h
4948   $as_echo "@%:@define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4950   $as_echo "@%:@define _TANDEM_SOURCE 1" >>confdefs.h
4953 CPPFLAGS="$CPPFLAGS -D_FORTIFY_SOURCE=2"
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fPIC" >&5
4956 $as_echo_n "checking whether C compiler accepts -fPIC... " >&6; }
4957 if ${ax_cv_check_cflags___fPIC+:} false; then :
4958   $as_echo_n "(cached) " >&6
4959 else
4960   
4961   ax_check_save_flags=$CFLAGS
4962   CFLAGS="$CFLAGS  -fPIC"
4963   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4964 /* end confdefs.h.  */
4965 #include <stdio.h>
4967 main ()
4969 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
4970   ;
4971   return 0;
4973 _ACEOF
4974 if ac_fn_c_try_compile "$LINENO"; then :
4975   ax_cv_check_cflags___fPIC=yes
4976 else
4977   ax_cv_check_cflags___fPIC=no
4979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4980   CFLAGS=$ax_check_save_flags
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fPIC" >&5
4983 $as_echo "$ax_cv_check_cflags___fPIC" >&6; }
4984 if test x"$ax_cv_check_cflags___fPIC" = xyes; then :
4985   
4986   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -fPIC" >&5
4987 $as_echo_n "checking whether the linker accepts -fPIC... " >&6; }
4988 if ${ax_cv_check_ldflags___fPIC+:} false; then :
4989   $as_echo_n "(cached) " >&6
4990 else
4991   
4992   ax_check_save_flags=$LDFLAGS
4993   LDFLAGS="$LDFLAGS  -fPIC"
4994   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4995 /* end confdefs.h.  */
4996 #include <stdio.h>
4998 main ()
5000 char x[42U];if (fgets(x,1000,stdin)) puts(x)
5001   ;
5002   return 0;
5004 _ACEOF
5005 if ac_fn_c_try_link "$LINENO"; then :
5006   ax_cv_check_ldflags___fPIC=yes
5007 else
5008   ax_cv_check_ldflags___fPIC=no
5010 rm -f core conftest.err conftest.$ac_objext \
5011     conftest$ac_exeext conftest.$ac_ext
5012   LDFLAGS=$ax_check_save_flags
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___fPIC" >&5
5015 $as_echo "$ax_cv_check_ldflags___fPIC" >&6; }
5016 if test x"$ax_cv_check_ldflags___fPIC" = xyes; then :
5017   CFLAGS="$CFLAGS -fPIC"
5018   
5019 else
5020   :
5024 else
5025   :
5029 if test "$enable_pie" != "no"; then :
5030   
5031   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fPIE" >&5
5032 $as_echo_n "checking whether C compiler accepts -fPIE... " >&6; }
5033 if ${ax_cv_check_cflags___fPIE+:} false; then :
5034   $as_echo_n "(cached) " >&6
5035 else
5036   
5037   ax_check_save_flags=$CFLAGS
5038   CFLAGS="$CFLAGS  -fPIE"
5039   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5040 /* end confdefs.h.  */
5041 #include <stdio.h>
5043 main ()
5045 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5046   ;
5047   return 0;
5049 _ACEOF
5050 if ac_fn_c_try_compile "$LINENO"; then :
5051   ax_cv_check_cflags___fPIE=yes
5052 else
5053   ax_cv_check_cflags___fPIE=no
5055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5056   CFLAGS=$ax_check_save_flags
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fPIE" >&5
5059 $as_echo "$ax_cv_check_cflags___fPIE" >&6; }
5060 if test x"$ax_cv_check_cflags___fPIE" = xyes; then :
5061   
5062     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -fPIE" >&5
5063 $as_echo_n "checking whether the linker accepts -fPIE... " >&6; }
5064 if ${ax_cv_check_ldflags___fPIE+:} false; then :
5065   $as_echo_n "(cached) " >&6
5066 else
5067   
5068   ax_check_save_flags=$LDFLAGS
5069   LDFLAGS="$LDFLAGS  -fPIE"
5070   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5071 /* end confdefs.h.  */
5072 #include <stdio.h>
5074 main ()
5076 char x[42U];if (fgets(x,1000,stdin)) puts(x)
5077   ;
5078   return 0;
5080 _ACEOF
5081 if ac_fn_c_try_link "$LINENO"; then :
5082   ax_cv_check_ldflags___fPIE=yes
5083 else
5084   ax_cv_check_ldflags___fPIE=no
5086 rm -f core conftest.err conftest.$ac_objext \
5087     conftest$ac_exeext conftest.$ac_ext
5088   LDFLAGS=$ax_check_save_flags
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___fPIE" >&5
5091 $as_echo "$ax_cv_check_ldflags___fPIE" >&6; }
5092 if test x"$ax_cv_check_ldflags___fPIE" = xyes; then :
5093   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -pie" >&5
5094 $as_echo_n "checking whether the linker accepts -pie... " >&6; }
5095 if ${ax_cv_check_ldflags___pie+:} false; then :
5096   $as_echo_n "(cached) " >&6
5097 else
5098   
5099   ax_check_save_flags=$LDFLAGS
5100   LDFLAGS="$LDFLAGS  -pie"
5101   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5102 /* end confdefs.h.  */
5103 #include <stdio.h>
5105 main ()
5107 char x[42U];if (fgets(x,1000,stdin)) puts(x)
5108   ;
5109   return 0;
5111 _ACEOF
5112 if ac_fn_c_try_link "$LINENO"; then :
5113   ax_cv_check_ldflags___pie=yes
5114 else
5115   ax_cv_check_ldflags___pie=no
5117 rm -f core conftest.err conftest.$ac_objext \
5118     conftest$ac_exeext conftest.$ac_ext
5119   LDFLAGS=$ax_check_save_flags
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___pie" >&5
5122 $as_echo "$ax_cv_check_ldflags___pie" >&6; }
5123 if test x"$ax_cv_check_ldflags___pie" = xyes; then :
5124   CFLAGS="$CFLAGS -fPIE"
5125          LDFLAGS="$LDFLAGS -pie"
5126 else
5127   :
5130     
5131 else
5132   :
5135   
5136 else
5137   :
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fwrapv" >&5
5144 $as_echo_n "checking whether C compiler accepts -fwrapv... " >&6; }
5145 if ${ax_cv_check_cflags___fwrapv+:} false; then :
5146   $as_echo_n "(cached) " >&6
5147 else
5148   
5149   ax_check_save_flags=$CFLAGS
5150   CFLAGS="$CFLAGS  -fwrapv"
5151   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5152 /* end confdefs.h.  */
5153 #include <stdio.h>
5155 main ()
5157 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5158   ;
5159   return 0;
5161 _ACEOF
5162 if ac_fn_c_try_compile "$LINENO"; then :
5163   ax_cv_check_cflags___fwrapv=yes
5164 else
5165   ax_cv_check_cflags___fwrapv=no
5167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5168   CFLAGS=$ax_check_save_flags
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fwrapv" >&5
5171 $as_echo "$ax_cv_check_cflags___fwrapv" >&6; }
5172 if test x"$ax_cv_check_cflags___fwrapv" = xyes; then :
5173   CFLAGS="$CFLAGS -fwrapv"
5174 else
5175   :
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-strict-aliasing" >&5
5179 $as_echo_n "checking whether C compiler accepts -fno-strict-aliasing... " >&6; }
5180 if ${ax_cv_check_cflags___fno_strict_aliasing+:} false; then :
5181   $as_echo_n "(cached) " >&6
5182 else
5183   
5184   ax_check_save_flags=$CFLAGS
5185   CFLAGS="$CFLAGS  -fno-strict-aliasing"
5186   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5187 /* end confdefs.h.  */
5188 #include <stdio.h>
5190 main ()
5192 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5193   ;
5194   return 0;
5196 _ACEOF
5197 if ac_fn_c_try_compile "$LINENO"; then :
5198   ax_cv_check_cflags___fno_strict_aliasing=yes
5199 else
5200   ax_cv_check_cflags___fno_strict_aliasing=no
5202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5203   CFLAGS=$ax_check_save_flags
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fno_strict_aliasing" >&5
5206 $as_echo "$ax_cv_check_cflags___fno_strict_aliasing" >&6; }
5207 if test x"$ax_cv_check_cflags___fno_strict_aliasing" = xyes; then :
5208   CFLAGS="$CFLAGS -fno-strict-aliasing"
5209 else
5210   :
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-strict-overflow" >&5
5214 $as_echo_n "checking whether C compiler accepts -fno-strict-overflow... " >&6; }
5215 if ${ax_cv_check_cflags___fno_strict_overflow+:} false; then :
5216   $as_echo_n "(cached) " >&6
5217 else
5218   
5219   ax_check_save_flags=$CFLAGS
5220   CFLAGS="$CFLAGS  -fno-strict-overflow"
5221   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5222 /* end confdefs.h.  */
5223 #include <stdio.h>
5225 main ()
5227 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5228   ;
5229   return 0;
5231 _ACEOF
5232 if ac_fn_c_try_compile "$LINENO"; then :
5233   ax_cv_check_cflags___fno_strict_overflow=yes
5234 else
5235   ax_cv_check_cflags___fno_strict_overflow=no
5237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5238   CFLAGS=$ax_check_save_flags
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fno_strict_overflow" >&5
5241 $as_echo "$ax_cv_check_cflags___fno_strict_overflow" >&6; }
5242 if test x"$ax_cv_check_cflags___fno_strict_overflow" = xyes; then :
5243   CFLAGS="$CFLAGS -fno-strict-overflow"
5244 else
5245   :
5249 case $host_os in @%:@(
5250   cygwin* | mingw* | pw32* | cegcc*) :
5251     
5252     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,--dynamicbase" >&5
5253 $as_echo_n "checking whether the linker accepts -Wl,--dynamicbase... " >&6; }
5254 if ${ax_cv_check_ldflags___Wl___dynamicbase+:} false; then :
5255   $as_echo_n "(cached) " >&6
5256 else
5257   
5258   ax_check_save_flags=$LDFLAGS
5259   LDFLAGS="$LDFLAGS  -Wl,--dynamicbase"
5260   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5261 /* end confdefs.h.  */
5262 #include <stdio.h>
5264 main ()
5266 char x[42U];if (fgets(x,1000,stdin)) puts(x)
5267   ;
5268   return 0;
5270 _ACEOF
5271 if ac_fn_c_try_link "$LINENO"; then :
5272   ax_cv_check_ldflags___Wl___dynamicbase=yes
5273 else
5274   ax_cv_check_ldflags___Wl___dynamicbase=no
5276 rm -f core conftest.err conftest.$ac_objext \
5277     conftest$ac_exeext conftest.$ac_ext
5278   LDFLAGS=$ax_check_save_flags
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl___dynamicbase" >&5
5281 $as_echo "$ax_cv_check_ldflags___Wl___dynamicbase" >&6; }
5282 if test x"$ax_cv_check_ldflags___Wl___dynamicbase" = xyes; then :
5283   LDFLAGS="$LDFLAGS -Wl,--dynamicbase"
5284 else
5285   :
5288     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,--nxcompat" >&5
5289 $as_echo_n "checking whether the linker accepts -Wl,--nxcompat... " >&6; }
5290 if ${ax_cv_check_ldflags___Wl___nxcompat+:} false; then :
5291   $as_echo_n "(cached) " >&6
5292 else
5293   
5294   ax_check_save_flags=$LDFLAGS
5295   LDFLAGS="$LDFLAGS  -Wl,--nxcompat"
5296   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5297 /* end confdefs.h.  */
5298 #include <stdio.h>
5300 main ()
5302 char x[42U];if (fgets(x,1000,stdin)) puts(x)
5303   ;
5304   return 0;
5306 _ACEOF
5307 if ac_fn_c_try_link "$LINENO"; then :
5308   ax_cv_check_ldflags___Wl___nxcompat=yes
5309 else
5310   ax_cv_check_ldflags___Wl___nxcompat=no
5312 rm -f core conftest.err conftest.$ac_objext \
5313     conftest$ac_exeext conftest.$ac_ext
5314   LDFLAGS=$ax_check_save_flags
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl___nxcompat" >&5
5317 $as_echo "$ax_cv_check_ldflags___Wl___nxcompat" >&6; }
5318 if test x"$ax_cv_check_ldflags___Wl___nxcompat" = xyes; then :
5319   LDFLAGS="$LDFLAGS -Wl,--nxcompat"
5320 else
5321   :
5324    ;; @%:@(
5325   *) :
5326      ;;
5327 esac
5329 if test "x$enable_ssp" != "xno"; then :
5330   
5332 case $host_os in @%:@(
5333   cygwin* | mingw* | pw32* | cegcc*) :
5334       ;; @%:@(
5335   dragonfly*) :
5336     
5337     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fstack-protector" >&5
5338 $as_echo_n "checking whether C compiler accepts -fstack-protector... " >&6; }
5339 if ${ax_cv_check_cflags___fstack_protector+:} false; then :
5340   $as_echo_n "(cached) " >&6
5341 else
5342   
5343   ax_check_save_flags=$CFLAGS
5344   CFLAGS="$CFLAGS  -fstack-protector"
5345   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5346 /* end confdefs.h.  */
5347 #include <stdio.h>
5349 main ()
5351 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5352   ;
5353   return 0;
5355 _ACEOF
5356 if ac_fn_c_try_compile "$LINENO"; then :
5357   ax_cv_check_cflags___fstack_protector=yes
5358 else
5359   ax_cv_check_cflags___fstack_protector=no
5361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5362   CFLAGS=$ax_check_save_flags
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fstack_protector" >&5
5365 $as_echo "$ax_cv_check_cflags___fstack_protector" >&6; }
5366 if test x"$ax_cv_check_cflags___fstack_protector" = xyes; then :
5367   
5368       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -fstack-protector" >&5
5369 $as_echo_n "checking whether the linker accepts -fstack-protector... " >&6; }
5370 if ${ax_cv_check_ldflags___fstack_protector+:} false; then :
5371   $as_echo_n "(cached) " >&6
5372 else
5373   
5374   ax_check_save_flags=$LDFLAGS
5375   LDFLAGS="$LDFLAGS  -fstack-protector"
5376   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5377 /* end confdefs.h.  */
5378 #include <stdio.h>
5380 main ()
5382 char x[42U];if (fgets(x,1000,stdin)) puts(x)
5383   ;
5384   return 0;
5386 _ACEOF
5387 if ac_fn_c_try_link "$LINENO"; then :
5388   ax_cv_check_ldflags___fstack_protector=yes
5389 else
5390   ax_cv_check_ldflags___fstack_protector=no
5392 rm -f core conftest.err conftest.$ac_objext \
5393     conftest$ac_exeext conftest.$ac_ext
5394   LDFLAGS=$ax_check_save_flags
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___fstack_protector" >&5
5397 $as_echo "$ax_cv_check_ldflags___fstack_protector" >&6; }
5398 if test x"$ax_cv_check_ldflags___fstack_protector" = xyes; then :
5399   CFLAGS="$CFLAGS -fstack-protector"
5400       
5401 else
5402   :
5405     
5406 else
5407   :
5410    ;; @%:@(
5411   *) :
5412     
5413     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fstack-protector-all" >&5
5414 $as_echo_n "checking whether C compiler accepts -fstack-protector-all... " >&6; }
5415 if ${ax_cv_check_cflags___fstack_protector_all+:} false; then :
5416   $as_echo_n "(cached) " >&6
5417 else
5418   
5419   ax_check_save_flags=$CFLAGS
5420   CFLAGS="$CFLAGS  -fstack-protector-all"
5421   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5422 /* end confdefs.h.  */
5423 #include <stdio.h>
5425 main ()
5427 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5428   ;
5429   return 0;
5431 _ACEOF
5432 if ac_fn_c_try_compile "$LINENO"; then :
5433   ax_cv_check_cflags___fstack_protector_all=yes
5434 else
5435   ax_cv_check_cflags___fstack_protector_all=no
5437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5438   CFLAGS=$ax_check_save_flags
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fstack_protector_all" >&5
5441 $as_echo "$ax_cv_check_cflags___fstack_protector_all" >&6; }
5442 if test x"$ax_cv_check_cflags___fstack_protector_all" = xyes; then :
5443   
5444       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -fstack-protector-all" >&5
5445 $as_echo_n "checking whether the linker accepts -fstack-protector-all... " >&6; }
5446 if ${ax_cv_check_ldflags___fstack_protector_all+:} false; then :
5447   $as_echo_n "(cached) " >&6
5448 else
5449   
5450   ax_check_save_flags=$LDFLAGS
5451   LDFLAGS="$LDFLAGS  -fstack-protector-all"
5452   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5453 /* end confdefs.h.  */
5454 #include <stdio.h>
5456 main ()
5458 char x[42U];if (fgets(x,1000,stdin)) puts(x)
5459   ;
5460   return 0;
5462 _ACEOF
5463 if ac_fn_c_try_link "$LINENO"; then :
5464   ax_cv_check_ldflags___fstack_protector_all=yes
5465 else
5466   ax_cv_check_ldflags___fstack_protector_all=no
5468 rm -f core conftest.err conftest.$ac_objext \
5469     conftest$ac_exeext conftest.$ac_ext
5470   LDFLAGS=$ax_check_save_flags
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___fstack_protector_all" >&5
5473 $as_echo "$ax_cv_check_ldflags___fstack_protector_all" >&6; }
5474 if test x"$ax_cv_check_ldflags___fstack_protector_all" = xyes; then :
5475   CFLAGS="$CFLAGS -fstack-protector-all"
5476       
5477 else
5478   :
5481     
5482 else
5483   :
5486    ;; @%:@(
5487   *) :
5488      ;;
5489 esac
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Winit-self" >&5
5494 $as_echo_n "checking whether C compiler accepts -Winit-self... " >&6; }
5495 if ${ax_cv_check_cflags___Winit_self+:} false; then :
5496   $as_echo_n "(cached) " >&6
5497 else
5498   
5499   ax_check_save_flags=$CFLAGS
5500   CFLAGS="$CFLAGS  -Winit-self"
5501   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5502 /* end confdefs.h.  */
5503 #include <stdio.h>
5505 main ()
5507 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5508   ;
5509   return 0;
5511 _ACEOF
5512 if ac_fn_c_try_compile "$LINENO"; then :
5513   ax_cv_check_cflags___Winit_self=yes
5514 else
5515   ax_cv_check_cflags___Winit_self=no
5517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5518   CFLAGS=$ax_check_save_flags
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Winit_self" >&5
5521 $as_echo "$ax_cv_check_cflags___Winit_self" >&6; }
5522 if test x"$ax_cv_check_cflags___Winit_self" = xyes; then :
5523   CFLAGS="$CFLAGS -Winit-self"
5524 else
5525   :
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wwrite-strings" >&5
5529 $as_echo_n "checking whether C compiler accepts -Wwrite-strings... " >&6; }
5530 if ${ax_cv_check_cflags___Wwrite_strings+:} false; then :
5531   $as_echo_n "(cached) " >&6
5532 else
5533   
5534   ax_check_save_flags=$CFLAGS
5535   CFLAGS="$CFLAGS  -Wwrite-strings"
5536   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5537 /* end confdefs.h.  */
5538 #include <stdio.h>
5540 main ()
5542 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5543   ;
5544   return 0;
5546 _ACEOF
5547 if ac_fn_c_try_compile "$LINENO"; then :
5548   ax_cv_check_cflags___Wwrite_strings=yes
5549 else
5550   ax_cv_check_cflags___Wwrite_strings=no
5552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5553   CFLAGS=$ax_check_save_flags
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wwrite_strings" >&5
5556 $as_echo "$ax_cv_check_cflags___Wwrite_strings" >&6; }
5557 if test x"$ax_cv_check_cflags___Wwrite_strings" = xyes; then :
5558   CFLAGS="$CFLAGS -Wwrite-strings"
5559 else
5560   :
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wdiv-by-zero" >&5
5564 $as_echo_n "checking whether C compiler accepts -Wdiv-by-zero... " >&6; }
5565 if ${ax_cv_check_cflags___Wdiv_by_zero+:} false; then :
5566   $as_echo_n "(cached) " >&6
5567 else
5568   
5569   ax_check_save_flags=$CFLAGS
5570   CFLAGS="$CFLAGS  -Wdiv-by-zero"
5571   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5572 /* end confdefs.h.  */
5573 #include <stdio.h>
5575 main ()
5577 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5578   ;
5579   return 0;
5581 _ACEOF
5582 if ac_fn_c_try_compile "$LINENO"; then :
5583   ax_cv_check_cflags___Wdiv_by_zero=yes
5584 else
5585   ax_cv_check_cflags___Wdiv_by_zero=no
5587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5588   CFLAGS=$ax_check_save_flags
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wdiv_by_zero" >&5
5591 $as_echo "$ax_cv_check_cflags___Wdiv_by_zero" >&6; }
5592 if test x"$ax_cv_check_cflags___Wdiv_by_zero" = xyes; then :
5593   CFLAGS="$CFLAGS -Wdiv-by-zero"
5594 else
5595   :
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wsometimes-uninitialized" >&5
5599 $as_echo_n "checking whether C compiler accepts -Wsometimes-uninitialized... " >&6; }
5600 if ${ax_cv_check_cflags___Wsometimes_uninitialized+:} false; then :
5601   $as_echo_n "(cached) " >&6
5602 else
5603   
5604   ax_check_save_flags=$CFLAGS
5605   CFLAGS="$CFLAGS  -Wsometimes-uninitialized"
5606   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5607 /* end confdefs.h.  */
5608 #include <stdio.h>
5610 main ()
5612 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5613   ;
5614   return 0;
5616 _ACEOF
5617 if ac_fn_c_try_compile "$LINENO"; then :
5618   ax_cv_check_cflags___Wsometimes_uninitialized=yes
5619 else
5620   ax_cv_check_cflags___Wsometimes_uninitialized=no
5622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5623   CFLAGS=$ax_check_save_flags
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wsometimes_uninitialized" >&5
5626 $as_echo "$ax_cv_check_cflags___Wsometimes_uninitialized" >&6; }
5627 if test x"$ax_cv_check_cflags___Wsometimes_uninitialized" = xyes; then :
5628   CFLAGS="$CFLAGS -Wsometimes-uninitialized"
5629 else
5630   :
5636 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wall" | $as_tr_sh`
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wall" >&5
5638 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wall... " >&6; }
5639 if eval \${$as_CACHEVAR+:} false; then :
5640   $as_echo_n "(cached) " >&6
5641 else
5642   
5643   ax_check_save_flags=$CFLAGS
5644   CFLAGS="$CFLAGS  $CWFLAGS -Wall"
5645   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5646 /* end confdefs.h.  */
5647 #include <stdio.h>
5649 main ()
5651 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5652   ;
5653   return 0;
5655 _ACEOF
5656 if ac_fn_c_try_compile "$LINENO"; then :
5657   eval "$as_CACHEVAR=yes"
5658 else
5659   eval "$as_CACHEVAR=no"
5661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5662   CFLAGS=$ax_check_save_flags
5664 eval ac_res=\$$as_CACHEVAR
5665                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5666 $as_echo "$ac_res" >&6; }
5667 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
5668   CWFLAGS="$CWFLAGS -Wall"
5669 else
5670   :
5673 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wextra" | $as_tr_sh`
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wextra" >&5
5675 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wextra... " >&6; }
5676 if eval \${$as_CACHEVAR+:} false; then :
5677   $as_echo_n "(cached) " >&6
5678 else
5679   
5680   ax_check_save_flags=$CFLAGS
5681   CFLAGS="$CFLAGS  $CWFLAGS -Wextra"
5682   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5683 /* end confdefs.h.  */
5684 #include <stdio.h>
5686 main ()
5688 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5689   ;
5690   return 0;
5692 _ACEOF
5693 if ac_fn_c_try_compile "$LINENO"; then :
5694   eval "$as_CACHEVAR=yes"
5695 else
5696   eval "$as_CACHEVAR=no"
5698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5699   CFLAGS=$ax_check_save_flags
5701 eval ac_res=\$$as_CACHEVAR
5702                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5703 $as_echo "$ac_res" >&6; }
5704 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
5705   CWFLAGS="$CWFLAGS -Wextra"
5706 else
5707   :
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang" >&5
5712 $as_echo_n "checking for clang... " >&6; }
5713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5714 /* end confdefs.h.  */
5717 main ()
5720 #ifndef __clang__
5721 be sad
5722 #endif
5724   ;
5725   return 0;
5727 _ACEOF
5728 if ac_fn_c_try_compile "$LINENO"; then :
5729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5730 $as_echo "yes" >&6; }
5731    as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wno-unknown-warning-option" | $as_tr_sh`
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wno-unknown-warning-option" >&5
5733 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wno-unknown-warning-option... " >&6; }
5734 if eval \${$as_CACHEVAR+:} false; then :
5735   $as_echo_n "(cached) " >&6
5736 else
5737   
5738   ax_check_save_flags=$CFLAGS
5739   CFLAGS="$CFLAGS  $CWFLAGS -Wno-unknown-warning-option"
5740   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5741 /* end confdefs.h.  */
5742 #include <stdio.h>
5744 main ()
5746 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5747   ;
5748   return 0;
5750 _ACEOF
5751 if ac_fn_c_try_compile "$LINENO"; then :
5752   eval "$as_CACHEVAR=yes"
5753 else
5754   eval "$as_CACHEVAR=no"
5756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5757   CFLAGS=$ax_check_save_flags
5759 eval ac_res=\$$as_CACHEVAR
5760                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5761 $as_echo "$ac_res" >&6; }
5762 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
5763   CWFLAGS="$CWFLAGS -Wno-unknown-warning-option"
5764 else
5765   :
5768 else
5769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5770 $as_echo "no" >&6; }
5773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5775 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wbad-function-cast" | $as_tr_sh`
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wbad-function-cast" >&5
5777 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wbad-function-cast... " >&6; }
5778 if eval \${$as_CACHEVAR+:} false; then :
5779   $as_echo_n "(cached) " >&6
5780 else
5781   
5782   ax_check_save_flags=$CFLAGS
5783   CFLAGS="$CFLAGS  $CWFLAGS -Wbad-function-cast"
5784   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5785 /* end confdefs.h.  */
5786 #include <stdio.h>
5788 main ()
5790 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5791   ;
5792   return 0;
5794 _ACEOF
5795 if ac_fn_c_try_compile "$LINENO"; then :
5796   eval "$as_CACHEVAR=yes"
5797 else
5798   eval "$as_CACHEVAR=no"
5800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5801   CFLAGS=$ax_check_save_flags
5803 eval ac_res=\$$as_CACHEVAR
5804                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5805 $as_echo "$ac_res" >&6; }
5806 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
5807   CWFLAGS="$CWFLAGS -Wbad-function-cast"
5808 else
5809   :
5812 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wcast-align" | $as_tr_sh`
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wcast-align" >&5
5814 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wcast-align... " >&6; }
5815 if eval \${$as_CACHEVAR+:} false; then :
5816   $as_echo_n "(cached) " >&6
5817 else
5818   
5819   ax_check_save_flags=$CFLAGS
5820   CFLAGS="$CFLAGS  $CWFLAGS -Wcast-align"
5821   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5822 /* end confdefs.h.  */
5823 #include <stdio.h>
5825 main ()
5827 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5828   ;
5829   return 0;
5831 _ACEOF
5832 if ac_fn_c_try_compile "$LINENO"; then :
5833   eval "$as_CACHEVAR=yes"
5834 else
5835   eval "$as_CACHEVAR=no"
5837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5838   CFLAGS=$ax_check_save_flags
5840 eval ac_res=\$$as_CACHEVAR
5841                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5842 $as_echo "$ac_res" >&6; }
5843 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
5844   CWFLAGS="$CWFLAGS -Wcast-align"
5845 else
5846   :
5849 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wcast-qual" | $as_tr_sh`
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wcast-qual" >&5
5851 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wcast-qual... " >&6; }
5852 if eval \${$as_CACHEVAR+:} false; then :
5853   $as_echo_n "(cached) " >&6
5854 else
5855   
5856   ax_check_save_flags=$CFLAGS
5857   CFLAGS="$CFLAGS  $CWFLAGS -Wcast-qual"
5858   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5859 /* end confdefs.h.  */
5860 #include <stdio.h>
5862 main ()
5864 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5865   ;
5866   return 0;
5868 _ACEOF
5869 if ac_fn_c_try_compile "$LINENO"; then :
5870   eval "$as_CACHEVAR=yes"
5871 else
5872   eval "$as_CACHEVAR=no"
5874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5875   CFLAGS=$ax_check_save_flags
5877 eval ac_res=\$$as_CACHEVAR
5878                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5879 $as_echo "$ac_res" >&6; }
5880 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
5881   CWFLAGS="$CWFLAGS -Wcast-qual"
5882 else
5883   :
5886 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wchar-subscripts" | $as_tr_sh`
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wchar-subscripts" >&5
5888 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wchar-subscripts... " >&6; }
5889 if eval \${$as_CACHEVAR+:} false; then :
5890   $as_echo_n "(cached) " >&6
5891 else
5892   
5893   ax_check_save_flags=$CFLAGS
5894   CFLAGS="$CFLAGS  $CWFLAGS -Wchar-subscripts"
5895   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5896 /* end confdefs.h.  */
5897 #include <stdio.h>
5899 main ()
5901 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5902   ;
5903   return 0;
5905 _ACEOF
5906 if ac_fn_c_try_compile "$LINENO"; then :
5907   eval "$as_CACHEVAR=yes"
5908 else
5909   eval "$as_CACHEVAR=no"
5911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5912   CFLAGS=$ax_check_save_flags
5914 eval ac_res=\$$as_CACHEVAR
5915                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5916 $as_echo "$ac_res" >&6; }
5917 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
5918   CWFLAGS="$CWFLAGS -Wchar-subscripts"
5919 else
5920   :
5923 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wcomment" | $as_tr_sh`
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wcomment" >&5
5925 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wcomment... " >&6; }
5926 if eval \${$as_CACHEVAR+:} false; then :
5927   $as_echo_n "(cached) " >&6
5928 else
5929   
5930   ax_check_save_flags=$CFLAGS
5931   CFLAGS="$CFLAGS  $CWFLAGS -Wcomment"
5932   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5933 /* end confdefs.h.  */
5934 #include <stdio.h>
5936 main ()
5938 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5939   ;
5940   return 0;
5942 _ACEOF
5943 if ac_fn_c_try_compile "$LINENO"; then :
5944   eval "$as_CACHEVAR=yes"
5945 else
5946   eval "$as_CACHEVAR=no"
5948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5949   CFLAGS=$ax_check_save_flags
5951 eval ac_res=\$$as_CACHEVAR
5952                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5953 $as_echo "$ac_res" >&6; }
5954 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
5955   CWFLAGS="$CWFLAGS -Wcomment"
5956 else
5957   :
5960 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wfloat-equal" | $as_tr_sh`
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wfloat-equal" >&5
5962 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wfloat-equal... " >&6; }
5963 if eval \${$as_CACHEVAR+:} false; then :
5964   $as_echo_n "(cached) " >&6
5965 else
5966   
5967   ax_check_save_flags=$CFLAGS
5968   CFLAGS="$CFLAGS  $CWFLAGS -Wfloat-equal"
5969   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5970 /* end confdefs.h.  */
5971 #include <stdio.h>
5973 main ()
5975 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5976   ;
5977   return 0;
5979 _ACEOF
5980 if ac_fn_c_try_compile "$LINENO"; then :
5981   eval "$as_CACHEVAR=yes"
5982 else
5983   eval "$as_CACHEVAR=no"
5985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5986   CFLAGS=$ax_check_save_flags
5988 eval ac_res=\$$as_CACHEVAR
5989                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5990 $as_echo "$ac_res" >&6; }
5991 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
5992   CWFLAGS="$CWFLAGS -Wfloat-equal"
5993 else
5994   :
5997 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wformat=2" | $as_tr_sh`
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wformat=2" >&5
5999 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wformat=2... " >&6; }
6000 if eval \${$as_CACHEVAR+:} false; then :
6001   $as_echo_n "(cached) " >&6
6002 else
6003   
6004   ax_check_save_flags=$CFLAGS
6005   CFLAGS="$CFLAGS  $CWFLAGS -Wformat=2"
6006   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6007 /* end confdefs.h.  */
6008 #include <stdio.h>
6010 main ()
6012 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
6013   ;
6014   return 0;
6016 _ACEOF
6017 if ac_fn_c_try_compile "$LINENO"; then :
6018   eval "$as_CACHEVAR=yes"
6019 else
6020   eval "$as_CACHEVAR=no"
6022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6023   CFLAGS=$ax_check_save_flags
6025 eval ac_res=\$$as_CACHEVAR
6026                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6027 $as_echo "$ac_res" >&6; }
6028 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
6029   CWFLAGS="$CWFLAGS -Wformat=2"
6030 else
6031   :
6034 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wimplicit" | $as_tr_sh`
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wimplicit" >&5
6036 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wimplicit... " >&6; }
6037 if eval \${$as_CACHEVAR+:} false; then :
6038   $as_echo_n "(cached) " >&6
6039 else
6040   
6041   ax_check_save_flags=$CFLAGS
6042   CFLAGS="$CFLAGS  $CWFLAGS -Wimplicit"
6043   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6044 /* end confdefs.h.  */
6045 #include <stdio.h>
6047 main ()
6049 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
6050   ;
6051   return 0;
6053 _ACEOF
6054 if ac_fn_c_try_compile "$LINENO"; then :
6055   eval "$as_CACHEVAR=yes"
6056 else
6057   eval "$as_CACHEVAR=no"
6059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6060   CFLAGS=$ax_check_save_flags
6062 eval ac_res=\$$as_CACHEVAR
6063                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6064 $as_echo "$ac_res" >&6; }
6065 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
6066   CWFLAGS="$CWFLAGS -Wimplicit"
6067 else
6068   :
6071 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wmissing-declarations" | $as_tr_sh`
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wmissing-declarations" >&5
6073 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wmissing-declarations... " >&6; }
6074 if eval \${$as_CACHEVAR+:} false; then :
6075   $as_echo_n "(cached) " >&6
6076 else
6077   
6078   ax_check_save_flags=$CFLAGS
6079   CFLAGS="$CFLAGS  $CWFLAGS -Wmissing-declarations"
6080   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6081 /* end confdefs.h.  */
6082 #include <stdio.h>
6084 main ()
6086 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
6087   ;
6088   return 0;
6090 _ACEOF
6091 if ac_fn_c_try_compile "$LINENO"; then :
6092   eval "$as_CACHEVAR=yes"
6093 else
6094   eval "$as_CACHEVAR=no"
6096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6097   CFLAGS=$ax_check_save_flags
6099 eval ac_res=\$$as_CACHEVAR
6100                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6101 $as_echo "$ac_res" >&6; }
6102 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
6103   CWFLAGS="$CWFLAGS -Wmissing-declarations"
6104 else
6105   :
6108 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wmissing-prototypes" | $as_tr_sh`
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wmissing-prototypes" >&5
6110 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wmissing-prototypes... " >&6; }
6111 if eval \${$as_CACHEVAR+:} false; then :
6112   $as_echo_n "(cached) " >&6
6113 else
6114   
6115   ax_check_save_flags=$CFLAGS
6116   CFLAGS="$CFLAGS  $CWFLAGS -Wmissing-prototypes"
6117   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6118 /* end confdefs.h.  */
6119 #include <stdio.h>
6121 main ()
6123 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
6124   ;
6125   return 0;
6127 _ACEOF
6128 if ac_fn_c_try_compile "$LINENO"; then :
6129   eval "$as_CACHEVAR=yes"
6130 else
6131   eval "$as_CACHEVAR=no"
6133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6134   CFLAGS=$ax_check_save_flags
6136 eval ac_res=\$$as_CACHEVAR
6137                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6138 $as_echo "$ac_res" >&6; }
6139 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
6140   CWFLAGS="$CWFLAGS -Wmissing-prototypes"
6141 else
6142   :
6145 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wnormalized=id" | $as_tr_sh`
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wnormalized=id" >&5
6147 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wnormalized=id... " >&6; }
6148 if eval \${$as_CACHEVAR+:} false; then :
6149   $as_echo_n "(cached) " >&6
6150 else
6151   
6152   ax_check_save_flags=$CFLAGS
6153   CFLAGS="$CFLAGS  $CWFLAGS -Wnormalized=id"
6154   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6155 /* end confdefs.h.  */
6156 #include <stdio.h>
6158 main ()
6160 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
6161   ;
6162   return 0;
6164 _ACEOF
6165 if ac_fn_c_try_compile "$LINENO"; then :
6166   eval "$as_CACHEVAR=yes"
6167 else
6168   eval "$as_CACHEVAR=no"
6170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6171   CFLAGS=$ax_check_save_flags
6173 eval ac_res=\$$as_CACHEVAR
6174                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6175 $as_echo "$ac_res" >&6; }
6176 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
6177   CWFLAGS="$CWFLAGS -Wnormalized=id"
6178 else
6179   :
6182 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Woverride-init" | $as_tr_sh`
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Woverride-init" >&5
6184 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Woverride-init... " >&6; }
6185 if eval \${$as_CACHEVAR+:} false; then :
6186   $as_echo_n "(cached) " >&6
6187 else
6188   
6189   ax_check_save_flags=$CFLAGS
6190   CFLAGS="$CFLAGS  $CWFLAGS -Woverride-init"
6191   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6192 /* end confdefs.h.  */
6193 #include <stdio.h>
6195 main ()
6197 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
6198   ;
6199   return 0;
6201 _ACEOF
6202 if ac_fn_c_try_compile "$LINENO"; then :
6203   eval "$as_CACHEVAR=yes"
6204 else
6205   eval "$as_CACHEVAR=no"
6207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6208   CFLAGS=$ax_check_save_flags
6210 eval ac_res=\$$as_CACHEVAR
6211                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6212 $as_echo "$ac_res" >&6; }
6213 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
6214   CWFLAGS="$CWFLAGS -Woverride-init"
6215 else
6216   :
6219 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wparentheses" | $as_tr_sh`
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wparentheses" >&5
6221 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wparentheses... " >&6; }
6222 if eval \${$as_CACHEVAR+:} false; then :
6223   $as_echo_n "(cached) " >&6
6224 else
6225   
6226   ax_check_save_flags=$CFLAGS
6227   CFLAGS="$CFLAGS  $CWFLAGS -Wparentheses"
6228   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6229 /* end confdefs.h.  */
6230 #include <stdio.h>
6232 main ()
6234 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
6235   ;
6236   return 0;
6238 _ACEOF
6239 if ac_fn_c_try_compile "$LINENO"; then :
6240   eval "$as_CACHEVAR=yes"
6241 else
6242   eval "$as_CACHEVAR=no"
6244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6245   CFLAGS=$ax_check_save_flags
6247 eval ac_res=\$$as_CACHEVAR
6248                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6249 $as_echo "$ac_res" >&6; }
6250 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
6251   CWFLAGS="$CWFLAGS -Wparentheses"
6252 else
6253   :
6256 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wpointer-arith" | $as_tr_sh`
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wpointer-arith" >&5
6258 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wpointer-arith... " >&6; }
6259 if eval \${$as_CACHEVAR+:} false; then :
6260   $as_echo_n "(cached) " >&6
6261 else
6262   
6263   ax_check_save_flags=$CFLAGS
6264   CFLAGS="$CFLAGS  $CWFLAGS -Wpointer-arith"
6265   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6266 /* end confdefs.h.  */
6267 #include <stdio.h>
6269 main ()
6271 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
6272   ;
6273   return 0;
6275 _ACEOF
6276 if ac_fn_c_try_compile "$LINENO"; then :
6277   eval "$as_CACHEVAR=yes"
6278 else
6279   eval "$as_CACHEVAR=no"
6281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6282   CFLAGS=$ax_check_save_flags
6284 eval ac_res=\$$as_CACHEVAR
6285                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6286 $as_echo "$ac_res" >&6; }
6287 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
6288   CWFLAGS="$CWFLAGS -Wpointer-arith"
6289 else
6290   :
6293 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wredundant-decls" | $as_tr_sh`
6294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wredundant-decls" >&5
6295 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wredundant-decls... " >&6; }
6296 if eval \${$as_CACHEVAR+:} false; then :
6297   $as_echo_n "(cached) " >&6
6298 else
6299   
6300   ax_check_save_flags=$CFLAGS
6301   CFLAGS="$CFLAGS  $CWFLAGS -Wredundant-decls"
6302   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6303 /* end confdefs.h.  */
6304 #include <stdio.h>
6306 main ()
6308 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
6309   ;
6310   return 0;
6312 _ACEOF
6313 if ac_fn_c_try_compile "$LINENO"; then :
6314   eval "$as_CACHEVAR=yes"
6315 else
6316   eval "$as_CACHEVAR=no"
6318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6319   CFLAGS=$ax_check_save_flags
6321 eval ac_res=\$$as_CACHEVAR
6322                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6323 $as_echo "$ac_res" >&6; }
6324 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
6325   CWFLAGS="$CWFLAGS -Wredundant-decls"
6326 else
6327   :
6330 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wstrict-prototypes" | $as_tr_sh`
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wstrict-prototypes" >&5
6332 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wstrict-prototypes... " >&6; }
6333 if eval \${$as_CACHEVAR+:} false; then :
6334   $as_echo_n "(cached) " >&6
6335 else
6336   
6337   ax_check_save_flags=$CFLAGS
6338   CFLAGS="$CFLAGS  $CWFLAGS -Wstrict-prototypes"
6339   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6340 /* end confdefs.h.  */
6341 #include <stdio.h>
6343 main ()
6345 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
6346   ;
6347   return 0;
6349 _ACEOF
6350 if ac_fn_c_try_compile "$LINENO"; then :
6351   eval "$as_CACHEVAR=yes"
6352 else
6353   eval "$as_CACHEVAR=no"
6355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6356   CFLAGS=$ax_check_save_flags
6358 eval ac_res=\$$as_CACHEVAR
6359                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6360 $as_echo "$ac_res" >&6; }
6361 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
6362   CWFLAGS="$CWFLAGS -Wstrict-prototypes"
6363 else
6364   :
6367 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wswitch-enum" | $as_tr_sh`
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wswitch-enum" >&5
6369 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wswitch-enum... " >&6; }
6370 if eval \${$as_CACHEVAR+:} false; then :
6371   $as_echo_n "(cached) " >&6
6372 else
6373   
6374   ax_check_save_flags=$CFLAGS
6375   CFLAGS="$CFLAGS  $CWFLAGS -Wswitch-enum"
6376   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6377 /* end confdefs.h.  */
6378 #include <stdio.h>
6380 main ()
6382 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
6383   ;
6384   return 0;
6386 _ACEOF
6387 if ac_fn_c_try_compile "$LINENO"; then :
6388   eval "$as_CACHEVAR=yes"
6389 else
6390   eval "$as_CACHEVAR=no"
6392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6393   CFLAGS=$ax_check_save_flags
6395 eval ac_res=\$$as_CACHEVAR
6396                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6397 $as_echo "$ac_res" >&6; }
6398 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
6399   CWFLAGS="$CWFLAGS -Wswitch-enum"
6400 else
6401   :
6404 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wvariable-decl" | $as_tr_sh`
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wvariable-decl" >&5
6406 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wvariable-decl... " >&6; }
6407 if eval \${$as_CACHEVAR+:} false; then :
6408   $as_echo_n "(cached) " >&6
6409 else
6410   
6411   ax_check_save_flags=$CFLAGS
6412   CFLAGS="$CFLAGS  $CWFLAGS -Wvariable-decl"
6413   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6414 /* end confdefs.h.  */
6415 #include <stdio.h>
6417 main ()
6419 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
6420   ;
6421   return 0;
6423 _ACEOF
6424 if ac_fn_c_try_compile "$LINENO"; then :
6425   eval "$as_CACHEVAR=yes"
6426 else
6427   eval "$as_CACHEVAR=no"
6429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6430   CFLAGS=$ax_check_save_flags
6432 eval ac_res=\$$as_CACHEVAR
6433                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6434 $as_echo "$ac_res" >&6; }
6435 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
6436   CWFLAGS="$CWFLAGS -Wvariable-decl"
6437 else
6438   :
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-z,relro" >&5
6443 $as_echo_n "checking whether the linker accepts -Wl,-z,relro... " >&6; }
6444 if ${ax_cv_check_ldflags___Wl__z_relro+:} false; then :
6445   $as_echo_n "(cached) " >&6
6446 else
6447   
6448   ax_check_save_flags=$LDFLAGS
6449   LDFLAGS="$LDFLAGS  -Wl,-z,relro"
6450   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6451 /* end confdefs.h.  */
6452 #include <stdio.h>
6454 main ()
6456 char x[42U];if (fgets(x,1000,stdin)) puts(x)
6457   ;
6458   return 0;
6460 _ACEOF
6461 if ac_fn_c_try_link "$LINENO"; then :
6462   ax_cv_check_ldflags___Wl__z_relro=yes
6463 else
6464   ax_cv_check_ldflags___Wl__z_relro=no
6466 rm -f core conftest.err conftest.$ac_objext \
6467     conftest$ac_exeext conftest.$ac_ext
6468   LDFLAGS=$ax_check_save_flags
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl__z_relro" >&5
6471 $as_echo "$ax_cv_check_ldflags___Wl__z_relro" >&6; }
6472 if test x"$ax_cv_check_ldflags___Wl__z_relro" = xyes; then :
6473   LDFLAGS="$LDFLAGS -Wl,-z,relro"
6474 else
6475   :
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-z,now" >&5
6479 $as_echo_n "checking whether the linker accepts -Wl,-z,now... " >&6; }
6480 if ${ax_cv_check_ldflags___Wl__z_now+:} false; then :
6481   $as_echo_n "(cached) " >&6
6482 else
6483   
6484   ax_check_save_flags=$LDFLAGS
6485   LDFLAGS="$LDFLAGS  -Wl,-z,now"
6486   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6487 /* end confdefs.h.  */
6488 #include <stdio.h>
6490 main ()
6492 char x[42U];if (fgets(x,1000,stdin)) puts(x)
6493   ;
6494   return 0;
6496 _ACEOF
6497 if ac_fn_c_try_link "$LINENO"; then :
6498   ax_cv_check_ldflags___Wl__z_now=yes
6499 else
6500   ax_cv_check_ldflags___Wl__z_now=no
6502 rm -f core conftest.err conftest.$ac_objext \
6503     conftest$ac_exeext conftest.$ac_ext
6504   LDFLAGS=$ax_check_save_flags
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl__z_now" >&5
6507 $as_echo "$ax_cv_check_ldflags___Wl__z_now" >&6; }
6508 if test x"$ax_cv_check_ldflags___Wl__z_now" = xyes; then :
6509   LDFLAGS="$LDFLAGS -Wl,-z,now"
6510 else
6511   :
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-z,noexecstack" >&5
6515 $as_echo_n "checking whether the linker accepts -Wl,-z,noexecstack... " >&6; }
6516 if ${ax_cv_check_ldflags___Wl__z_noexecstack+:} false; then :
6517   $as_echo_n "(cached) " >&6
6518 else
6519   
6520   ax_check_save_flags=$LDFLAGS
6521   LDFLAGS="$LDFLAGS  -Wl,-z,noexecstack"
6522   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6523 /* end confdefs.h.  */
6524 #include <stdio.h>
6526 main ()
6528 char x[42U];if (fgets(x,1000,stdin)) puts(x)
6529   ;
6530   return 0;
6532 _ACEOF
6533 if ac_fn_c_try_link "$LINENO"; then :
6534   ax_cv_check_ldflags___Wl__z_noexecstack=yes
6535 else
6536   ax_cv_check_ldflags___Wl__z_noexecstack=no
6538 rm -f core conftest.err conftest.$ac_objext \
6539     conftest$ac_exeext conftest.$ac_ext
6540   LDFLAGS=$ax_check_save_flags
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl__z_noexecstack" >&5
6543 $as_echo "$ax_cv_check_ldflags___Wl__z_noexecstack" >&6; }
6544 if test x"$ax_cv_check_ldflags___Wl__z_noexecstack" = xyes; then :
6545   LDFLAGS="$LDFLAGS -Wl,-z,noexecstack"
6546 else
6547   :
6551 case `pwd` in
6552   *\ * | *\     *)
6553     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6554 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6555 esac
6559 macro_version='2.4.2'
6560 macro_revision='1.3337'
6562     
6563     
6564     
6567     
6568     
6569     
6574 ltmain="$ac_aux_dir/ltmain.sh"
6576 # Backslashify metacharacters that are still active within
6577 # double-quoted strings.
6578 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6580 # Same as above, but do not quote variable references.
6581 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6583 # Sed substitution to delay expansion of an escaped shell variable in a
6584 # double_quote_subst'ed string.
6585 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6587 # Sed substitution to delay expansion of an escaped single quote.
6588 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6590 # Sed substitution to avoid accidental globbing in evaled expressions
6591 no_glob_subst='s/\*/\\\*/g'
6593 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6594 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6595 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6598 $as_echo_n "checking how to print strings... " >&6; }
6599 # Test print first, because it will be a builtin if present.
6600 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6601    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6602   ECHO='print -r --'
6603 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6604   ECHO='printf %s\n'
6605 else
6606   # Use this function as a fallback that always works.
6607   func_fallback_echo ()
6608   {
6609     eval 'cat <<_LTECHO_EOF
6611 _LTECHO_EOF'
6612   }
6613   ECHO='func_fallback_echo'
6616 # func_echo_all arg...
6617 # Invoke $ECHO with all args, space-separated.
6618 func_echo_all ()
6620     $ECHO "" 
6623 case "$ECHO" in
6624   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6625 $as_echo "printf" >&6; } ;;
6626   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6627 $as_echo "print -r" >&6; } ;;
6628   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6629 $as_echo "cat" >&6; } ;;
6630 esac
6635     
6636     
6637     
6640     
6641     
6642     
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6646 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6647 if ${ac_cv_path_SED+:} false; then :
6648   $as_echo_n "(cached) " >&6
6649 else
6650             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6651      for ac_i in 1 2 3 4 5 6 7; do
6652        ac_script="$ac_script$as_nl$ac_script"
6653      done
6654      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6655      { ac_script=; unset ac_script;}
6656      if test -z "$SED"; then
6657   ac_path_SED_found=false
6658   # Loop through the user's path and test for each of PROGNAME-LIST
6659   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6660 for as_dir in $PATH
6662   IFS=$as_save_IFS
6663   test -z "$as_dir" && as_dir=.
6664     for ac_prog in sed gsed; do
6665     for ac_exec_ext in '' $ac_executable_extensions; do
6666       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6667       as_fn_executable_p "$ac_path_SED" || continue
6668 # Check for GNU ac_path_SED and select it if it is found.
6669   # Check for GNU $ac_path_SED
6670 case `"$ac_path_SED" --version 2>&1` in
6671 *GNU*)
6672   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6674   ac_count=0
6675   $as_echo_n 0123456789 >"conftest.in"
6676   while :
6677   do
6678     cat "conftest.in" "conftest.in" >"conftest.tmp"
6679     mv "conftest.tmp" "conftest.in"
6680     cp "conftest.in" "conftest.nl"
6681     $as_echo '' >> "conftest.nl"
6682     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6683     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6684     as_fn_arith $ac_count + 1 && ac_count=$as_val
6685     if test $ac_count -gt ${ac_path_SED_max-0}; then
6686       # Best one so far, save it but keep looking for a better one
6687       ac_cv_path_SED="$ac_path_SED"
6688       ac_path_SED_max=$ac_count
6689     fi
6690     # 10*(2^10) chars as input seems more than enough
6691     test $ac_count -gt 10 && break
6692   done
6693   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6694 esac
6696       $ac_path_SED_found && break 3
6697     done
6698   done
6699   done
6700 IFS=$as_save_IFS
6701   if test -z "$ac_cv_path_SED"; then
6702     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6703   fi
6704 else
6705   ac_cv_path_SED=$SED
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6710 $as_echo "$ac_cv_path_SED" >&6; }
6711  SED="$ac_cv_path_SED"
6712   rm -f conftest.sed
6714 test -z "$SED" && SED=sed
6715 Xsed="$SED -e 1s/^X//"
6717     
6718     
6719     
6722     
6723     
6724     
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6728 $as_echo_n "checking for fgrep... " >&6; }
6729 if ${ac_cv_path_FGREP+:} false; then :
6730   $as_echo_n "(cached) " >&6
6731 else
6732   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6733    then ac_cv_path_FGREP="$GREP -F"
6734    else
6735      if test -z "$FGREP"; then
6736   ac_path_FGREP_found=false
6737   # Loop through the user's path and test for each of PROGNAME-LIST
6738   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6739 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6741   IFS=$as_save_IFS
6742   test -z "$as_dir" && as_dir=.
6743     for ac_prog in fgrep; do
6744     for ac_exec_ext in '' $ac_executable_extensions; do
6745       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6746       as_fn_executable_p "$ac_path_FGREP" || continue
6747 # Check for GNU ac_path_FGREP and select it if it is found.
6748   # Check for GNU $ac_path_FGREP
6749 case `"$ac_path_FGREP" --version 2>&1` in
6750 *GNU*)
6751   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6753   ac_count=0
6754   $as_echo_n 0123456789 >"conftest.in"
6755   while :
6756   do
6757     cat "conftest.in" "conftest.in" >"conftest.tmp"
6758     mv "conftest.tmp" "conftest.in"
6759     cp "conftest.in" "conftest.nl"
6760     $as_echo 'FGREP' >> "conftest.nl"
6761     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6762     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6763     as_fn_arith $ac_count + 1 && ac_count=$as_val
6764     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6765       # Best one so far, save it but keep looking for a better one
6766       ac_cv_path_FGREP="$ac_path_FGREP"
6767       ac_path_FGREP_max=$ac_count
6768     fi
6769     # 10*(2^10) chars as input seems more than enough
6770     test $ac_count -gt 10 && break
6771   done
6772   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6773 esac
6775       $ac_path_FGREP_found && break 3
6776     done
6777   done
6778   done
6779 IFS=$as_save_IFS
6780   if test -z "$ac_cv_path_FGREP"; then
6781     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6782   fi
6783 else
6784   ac_cv_path_FGREP=$FGREP
6787    fi
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6790 $as_echo "$ac_cv_path_FGREP" >&6; }
6791  FGREP="$ac_cv_path_FGREP"
6794 test -z "$GREP" && GREP=grep
6796     
6797     
6798     
6801     
6802     
6803     
6806     
6807     
6808     
6814 @%:@ Check whether --with-gnu-ld was given.
6815 if test "${with_gnu_ld+set}" = set; then :
6816   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6817 else
6818   with_gnu_ld=no
6821 ac_prog=ld
6822 if test "$GCC" = yes; then
6823   # Check if gcc -print-prog-name=ld gives a path.
6824   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6825 $as_echo_n "checking for ld used by $CC... " >&6; }
6826   case $host in
6827   *-*-mingw*)
6828     # gcc leaves a trailing carriage return which upsets mingw
6829     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6830   *)
6831     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6832   esac
6833   case $ac_prog in
6834     # Accept absolute paths.
6835     [\\/]* | ?:[\\/]*)
6836       re_direlt='/[^/][^/]*/\.\./'
6837       # Canonicalize the pathname of ld
6838       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6839       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6840         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6841       done
6842       test -z "$LD" && LD="$ac_prog"
6843       ;;
6844   "")
6845     # If it fails, then pretend we aren't using GCC.
6846     ac_prog=ld
6847     ;;
6848   *)
6849     # If it is relative, then search for the first ld in PATH.
6850     with_gnu_ld=unknown
6851     ;;
6852   esac
6853 elif test "$with_gnu_ld" = yes; then
6854   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6855 $as_echo_n "checking for GNU ld... " >&6; }
6856 else
6857   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6858 $as_echo_n "checking for non-GNU ld... " >&6; }
6860 if ${lt_cv_path_LD+:} false; then :
6861   $as_echo_n "(cached) " >&6
6862 else
6863   if test -z "$LD"; then
6864   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6865   for ac_dir in $PATH; do
6866     IFS="$lt_save_ifs"
6867     test -z "$ac_dir" && ac_dir=.
6868     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6869       lt_cv_path_LD="$ac_dir/$ac_prog"
6870       # Check to see if the program is GNU ld.  I'd rather use --version,
6871       # but apparently some variants of GNU ld only accept -v.
6872       # Break only if it was the GNU/non-GNU ld that we prefer.
6873       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6874       *GNU* | *'with BFD'*)
6875         test "$with_gnu_ld" != no && break
6876         ;;
6877       *)
6878         test "$with_gnu_ld" != yes && break
6879         ;;
6880       esac
6881     fi
6882   done
6883   IFS="$lt_save_ifs"
6884 else
6885   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6889 LD="$lt_cv_path_LD"
6890 if test -n "$LD"; then
6891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6892 $as_echo "$LD" >&6; }
6893 else
6894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6895 $as_echo "no" >&6; }
6897 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6899 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6900 if ${lt_cv_prog_gnu_ld+:} false; then :
6901   $as_echo_n "(cached) " >&6
6902 else
6903   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6904 case `$LD -v 2>&1 </dev/null` in
6905 *GNU* | *'with BFD'*)
6906   lt_cv_prog_gnu_ld=yes
6907   ;;
6909   lt_cv_prog_gnu_ld=no
6910   ;;
6911 esac
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6914 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6915 with_gnu_ld=$lt_cv_prog_gnu_ld
6920     
6921     
6922     
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6926 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6927 if ${lt_cv_path_NM+:} false; then :
6928   $as_echo_n "(cached) " >&6
6929 else
6930   if test -n "$NM"; then
6931   # Let the user override the test.
6932   lt_cv_path_NM="$NM"
6933 else
6934   lt_nm_to_check="${ac_tool_prefix}nm"
6935   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6936     lt_nm_to_check="$lt_nm_to_check nm"
6937   fi
6938   for lt_tmp_nm in $lt_nm_to_check; do
6939     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6940     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6941       IFS="$lt_save_ifs"
6942       test -z "$ac_dir" && ac_dir=.
6943       tmp_nm="$ac_dir/$lt_tmp_nm"
6944       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6945         # Check to see if the nm accepts a BSD-compat flag.
6946         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6947         #   nm: unknown option "B" ignored
6948         # Tru64's nm complains that /dev/null is an invalid object file
6949         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6950         */dev/null* | *'Invalid file or object type'*)
6951           lt_cv_path_NM="$tmp_nm -B"
6952           break
6953           ;;
6954         *)
6955           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6956           */dev/null*)
6957             lt_cv_path_NM="$tmp_nm -p"
6958             break
6959             ;;
6960           *)
6961             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6962             continue # so that we can try to find one that supports BSD flags
6963             ;;
6964           esac
6965           ;;
6966         esac
6967       fi
6968     done
6969     IFS="$lt_save_ifs"
6970   done
6971   : ${lt_cv_path_NM=no}
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6975 $as_echo "$lt_cv_path_NM" >&6; }
6976 if test "$lt_cv_path_NM" != "no"; then
6977   NM="$lt_cv_path_NM"
6978 else
6979   # Didn't find any BSD compatible name lister, look for dumpbin.
6980   if test -n "$DUMPBIN"; then :
6981     # Let the user override the test.
6982   else
6983     if test -n "$ac_tool_prefix"; then
6984   for ac_prog in dumpbin "link -dump"
6985   do
6986     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6987 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6989 $as_echo_n "checking for $ac_word... " >&6; }
6990 if ${ac_cv_prog_DUMPBIN+:} false; then :
6991   $as_echo_n "(cached) " >&6
6992 else
6993   if test -n "$DUMPBIN"; then
6994   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6995 else
6996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6997 for as_dir in $PATH
6999   IFS=$as_save_IFS
7000   test -z "$as_dir" && as_dir=.
7001     for ac_exec_ext in '' $ac_executable_extensions; do
7002   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7003     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7004     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7005     break 2
7006   fi
7007 done
7008   done
7009 IFS=$as_save_IFS
7013 DUMPBIN=$ac_cv_prog_DUMPBIN
7014 if test -n "$DUMPBIN"; then
7015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7016 $as_echo "$DUMPBIN" >&6; }
7017 else
7018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7019 $as_echo "no" >&6; }
7023     test -n "$DUMPBIN" && break
7024   done
7026 if test -z "$DUMPBIN"; then
7027   ac_ct_DUMPBIN=$DUMPBIN
7028   for ac_prog in dumpbin "link -dump"
7030   # Extract the first word of "$ac_prog", so it can be a program name with args.
7031 set dummy $ac_prog; ac_word=$2
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7033 $as_echo_n "checking for $ac_word... " >&6; }
7034 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7035   $as_echo_n "(cached) " >&6
7036 else
7037   if test -n "$ac_ct_DUMPBIN"; then
7038   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7039 else
7040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7041 for as_dir in $PATH
7043   IFS=$as_save_IFS
7044   test -z "$as_dir" && as_dir=.
7045     for ac_exec_ext in '' $ac_executable_extensions; do
7046   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7047     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7048     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7049     break 2
7050   fi
7051 done
7052   done
7053 IFS=$as_save_IFS
7057 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7058 if test -n "$ac_ct_DUMPBIN"; then
7059   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7060 $as_echo "$ac_ct_DUMPBIN" >&6; }
7061 else
7062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7063 $as_echo "no" >&6; }
7067   test -n "$ac_ct_DUMPBIN" && break
7068 done
7070   if test "x$ac_ct_DUMPBIN" = x; then
7071     DUMPBIN=":"
7072   else
7073     case $cross_compiling:$ac_tool_warned in
7074 yes:)
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7076 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7077 ac_tool_warned=yes ;;
7078 esac
7079     DUMPBIN=$ac_ct_DUMPBIN
7080   fi
7083     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
7084     *COFF*)
7085       DUMPBIN="$DUMPBIN -symbols"
7086       ;;
7087     *)
7088       DUMPBIN=:
7089       ;;
7090     esac
7091   fi
7092   
7093   if test "$DUMPBIN" != ":"; then
7094     NM="$DUMPBIN"
7095   fi
7097 test -z "$NM" && NM=nm
7100     
7101     
7102     
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7105 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7106 if ${lt_cv_nm_interface+:} false; then :
7107   $as_echo_n "(cached) " >&6
7108 else
7109   lt_cv_nm_interface="BSD nm"
7110   echo "int some_variable = 0;" > conftest.$ac_ext
7111   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7112   (eval "$ac_compile" 2>conftest.err)
7113   cat conftest.err >&5
7114   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7115   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7116   cat conftest.err >&5
7117   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7118   cat conftest.out >&5
7119   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7120     lt_cv_nm_interface="MS dumpbin"
7121   fi
7122   rm -f conftest*
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7125 $as_echo "$lt_cv_nm_interface" >&6; }
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7128 $as_echo_n "checking whether ln -s works... " >&6; }
7129 LN_S=$as_ln_s
7130 if test "$LN_S" = "ln -s"; then
7131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7132 $as_echo "yes" >&6; }
7133 else
7134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7135 $as_echo "no, using $LN_S" >&6; }
7138 # find the maximum length of command line arguments
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7140 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7141 if ${lt_cv_sys_max_cmd_len+:} false; then :
7142   $as_echo_n "(cached) " >&6
7143 else
7144     i=0
7145   teststring="ABCD"
7147   case $build_os in
7148   msdosdjgpp*)
7149     # On DJGPP, this test can blow up pretty badly due to problems in libc
7150     # (any single argument exceeding 2000 bytes causes a buffer overrun
7151     # during glob expansion).  Even if it were fixed, the result of this
7152     # check would be larger than it should be.
7153     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7154     ;;
7156   gnu*)
7157     # Under GNU Hurd, this test is not required because there is
7158     # no limit to the length of command line arguments.
7159     # Libtool will interpret -1 as no limit whatsoever
7160     lt_cv_sys_max_cmd_len=-1;
7161     ;;
7163   cygwin* | mingw* | cegcc*)
7164     # On Win9x/ME, this test blows up -- it succeeds, but takes
7165     # about 5 minutes as the teststring grows exponentially.
7166     # Worse, since 9x/ME are not pre-emptively multitasking,
7167     # you end up with a "frozen" computer, even though with patience
7168     # the test eventually succeeds (with a max line length of 256k).
7169     # Instead, let's just punt: use the minimum linelength reported by
7170     # all of the supported platforms: 8192 (on NT/2K/XP).
7171     lt_cv_sys_max_cmd_len=8192;
7172     ;;
7174   mint*)
7175     # On MiNT this can take a long time and run out of memory.
7176     lt_cv_sys_max_cmd_len=8192;
7177     ;;
7179   amigaos*)
7180     # On AmigaOS with pdksh, this test takes hours, literally.
7181     # So we just punt and use a minimum line length of 8192.
7182     lt_cv_sys_max_cmd_len=8192;
7183     ;;
7185   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7186     # This has been around since 386BSD, at least.  Likely further.
7187     if test -x /sbin/sysctl; then
7188       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7189     elif test -x /usr/sbin/sysctl; then
7190       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7191     else
7192       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7193     fi
7194     # And add a safety zone
7195     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7196     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7197     ;;
7199   interix*)
7200     # We know the value 262144 and hardcode it with a safety zone (like BSD)
7201     lt_cv_sys_max_cmd_len=196608
7202     ;;
7204   os2*)
7205     # The test takes a long time on OS/2.
7206     lt_cv_sys_max_cmd_len=8192
7207     ;;
7209   osf*)
7210     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7211     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7212     # nice to cause kernel panics so lets avoid the loop below.
7213     # First set a reasonable default.
7214     lt_cv_sys_max_cmd_len=16384
7215     #
7216     if test -x /sbin/sysconfig; then
7217       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7218         *1*) lt_cv_sys_max_cmd_len=-1 ;;
7219       esac
7220     fi
7221     ;;
7222   sco3.2v5*)
7223     lt_cv_sys_max_cmd_len=102400
7224     ;;
7225   sysv5* | sco5v6* | sysv4.2uw2*)
7226     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7227     if test -n "$kargmax"; then
7228       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
7229     else
7230       lt_cv_sys_max_cmd_len=32768
7231     fi
7232     ;;
7233   *)
7234     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7235     if test -n "$lt_cv_sys_max_cmd_len"; then
7236       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7237       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7238     else
7239       # Make teststring a little bigger before we do anything with it.
7240       # a 1K string should be a reasonable start.
7241       for i in 1 2 3 4 5 6 7 8 ; do
7242         teststring=$teststring$teststring
7243       done
7244       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7245       # If test is not a shell built-in, we'll probably end up computing a
7246       # maximum length that is only half of the actual maximum length, but
7247       # we can't tell.
7248       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
7249                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7250               test $i != 17 # 1/2 MB should be enough
7251       do
7252         i=`expr $i + 1`
7253         teststring=$teststring$teststring
7254       done
7255       # Only check the string length outside the loop.
7256       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7257       teststring=
7258       # Add a significant safety factor because C++ compilers can tack on
7259       # massive amounts of additional arguments before passing them to the
7260       # linker.  It appears as though 1/2 is a usable value.
7261       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7262     fi
7263     ;;
7264   esac
7268 if test -n $lt_cv_sys_max_cmd_len ; then
7269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7270 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7271 else
7272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7273 $as_echo "none" >&6; }
7275 max_cmd_len=$lt_cv_sys_max_cmd_len
7277     
7278     
7279     
7282 : ${CP="cp -f"}
7283 : ${MV="mv -f"}
7284 : ${RM="rm -f"}
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7287 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7288 # Try some XSI features
7289 xsi_shell=no
7290 ( _lt_dummy="a/b/c"
7291   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
7292       = c,a/b,b/c, \
7293     && eval 'test $(( 1 + 1 )) -eq 2 \
7294     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7295   && xsi_shell=yes
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7297 $as_echo "$xsi_shell" >&6; }
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7301 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7302 lt_shell_append=no
7303 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7304     >/dev/null 2>&1 \
7305   && lt_shell_append=yes
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7307 $as_echo "$lt_shell_append" >&6; }
7310 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7311   lt_unset=unset
7312 else
7313   lt_unset=false
7316     
7317     
7318     
7320 # test EBCDIC or ASCII
7321 case `echo X|tr X '\101'` in
7322  A) # ASCII based system
7323     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7324   lt_SP2NL='tr \040 \012'
7325   lt_NL2SP='tr \015\012 \040\040'
7326   ;;
7327  *) # EBCDIC based system
7328   lt_SP2NL='tr \100 \n'
7329   lt_NL2SP='tr \r\n \100\100'
7330   ;;
7331 esac
7333     
7334     
7335     
7337     
7338     
7339     
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7342 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7343 if ${lt_cv_to_host_file_cmd+:} false; then :
7344   $as_echo_n "(cached) " >&6
7345 else
7346   case $host in
7347   *-*-mingw* )
7348     case $build in
7349       *-*-mingw* ) # actually msys
7350         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7351         ;;
7352       *-*-cygwin* )
7353         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7354         ;;
7355       * ) # otherwise, assume *nix
7356         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7357         ;;
7358     esac
7359     ;;
7360   *-*-cygwin* )
7361     case $build in
7362       *-*-mingw* ) # actually msys
7363         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7364         ;;
7365       *-*-cygwin* )
7366         lt_cv_to_host_file_cmd=func_convert_file_noop
7367         ;;
7368       * ) # otherwise, assume *nix
7369         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7370         ;;
7371     esac
7372     ;;
7373   * ) # unhandled hosts (and "normal" native builds)
7374     lt_cv_to_host_file_cmd=func_convert_file_noop
7375     ;;
7376 esac
7380 to_host_file_cmd=$lt_cv_to_host_file_cmd
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7382 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
7384     
7385     
7386     
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7389 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7390 if ${lt_cv_to_tool_file_cmd+:} false; then :
7391   $as_echo_n "(cached) " >&6
7392 else
7393   #assume ordinary cross tools, or native build.
7394 lt_cv_to_tool_file_cmd=func_convert_file_noop
7395 case $host in
7396   *-*-mingw* )
7397     case $build in
7398       *-*-mingw* ) # actually msys
7399         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7400         ;;
7401     esac
7402     ;;
7403 esac
7407 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7409 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7411     
7412     
7413     
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7416 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7417 if ${lt_cv_ld_reload_flag+:} false; then :
7418   $as_echo_n "(cached) " >&6
7419 else
7420   lt_cv_ld_reload_flag='-r'
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7423 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7424 reload_flag=$lt_cv_ld_reload_flag
7425 case $reload_flag in
7426 "" | " "*) ;;
7427 *) reload_flag=" $reload_flag" ;;
7428 esac
7429 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7430 case $host_os in
7431   cygwin* | mingw* | pw32* | cegcc*)
7432     if test "$GCC" != yes; then
7433       reload_cmds=false
7434     fi
7435     ;;
7436   darwin*)
7437     if test "$GCC" = yes; then
7438       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7439     else
7440       reload_cmds='$LD$reload_flag -o $output$reload_objs'
7441     fi
7442     ;;
7443 esac
7445     
7446     
7447     
7449     
7450     
7451     
7453 if test -n "$ac_tool_prefix"; then
7454   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7455 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7457 $as_echo_n "checking for $ac_word... " >&6; }
7458 if ${ac_cv_prog_OBJDUMP+:} false; then :
7459   $as_echo_n "(cached) " >&6
7460 else
7461   if test -n "$OBJDUMP"; then
7462   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7463 else
7464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7465 for as_dir in $PATH
7467   IFS=$as_save_IFS
7468   test -z "$as_dir" && as_dir=.
7469     for ac_exec_ext in '' $ac_executable_extensions; do
7470   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7471     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7472     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7473     break 2
7474   fi
7475 done
7476   done
7477 IFS=$as_save_IFS
7481 OBJDUMP=$ac_cv_prog_OBJDUMP
7482 if test -n "$OBJDUMP"; then
7483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7484 $as_echo "$OBJDUMP" >&6; }
7485 else
7486   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7487 $as_echo "no" >&6; }
7492 if test -z "$ac_cv_prog_OBJDUMP"; then
7493   ac_ct_OBJDUMP=$OBJDUMP
7494   # Extract the first word of "objdump", so it can be a program name with args.
7495 set dummy objdump; ac_word=$2
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7497 $as_echo_n "checking for $ac_word... " >&6; }
7498 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7499   $as_echo_n "(cached) " >&6
7500 else
7501   if test -n "$ac_ct_OBJDUMP"; then
7502   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7503 else
7504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7505 for as_dir in $PATH
7507   IFS=$as_save_IFS
7508   test -z "$as_dir" && as_dir=.
7509     for ac_exec_ext in '' $ac_executable_extensions; do
7510   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7511     ac_cv_prog_ac_ct_OBJDUMP="objdump"
7512     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7513     break 2
7514   fi
7515 done
7516   done
7517 IFS=$as_save_IFS
7521 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7522 if test -n "$ac_ct_OBJDUMP"; then
7523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7524 $as_echo "$ac_ct_OBJDUMP" >&6; }
7525 else
7526   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7527 $as_echo "no" >&6; }
7530   if test "x$ac_ct_OBJDUMP" = x; then
7531     OBJDUMP="false"
7532   else
7533     case $cross_compiling:$ac_tool_warned in
7534 yes:)
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7536 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7537 ac_tool_warned=yes ;;
7538 esac
7539     OBJDUMP=$ac_ct_OBJDUMP
7540   fi
7541 else
7542   OBJDUMP="$ac_cv_prog_OBJDUMP"
7545 test -z "$OBJDUMP" && OBJDUMP=objdump
7547     
7548     
7549     
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7556 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7557 if ${lt_cv_deplibs_check_method+:} false; then :
7558   $as_echo_n "(cached) " >&6
7559 else
7560   lt_cv_file_magic_cmd='$MAGIC_CMD'
7561 lt_cv_file_magic_test_file=
7562 lt_cv_deplibs_check_method='unknown'
7563 # Need to set the preceding variable on all platforms that support
7564 # interlibrary dependencies.
7565 # 'none' -- dependencies not supported.
7566 # `unknown' -- same as none, but documents that we really don't know.
7567 # 'pass_all' -- all dependencies passed with no checks.
7568 # 'test_compile' -- check by making test program.
7569 # 'file_magic [[regex]]' -- check by looking for files in library path
7570 # which responds to the $file_magic_cmd with a given extended regex.
7571 # If you have `file' or equivalent on your system and you're not sure
7572 # whether `pass_all' will *always* work, you probably want this one.
7574 case $host_os in
7575 aix[4-9]*)
7576   lt_cv_deplibs_check_method=pass_all
7577   ;;
7579 beos*)
7580   lt_cv_deplibs_check_method=pass_all
7581   ;;
7583 bsdi[45]*)
7584   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7585   lt_cv_file_magic_cmd='/usr/bin/file -L'
7586   lt_cv_file_magic_test_file=/shlib/libc.so
7587   ;;
7589 cygwin*)
7590   # func_win32_libid is a shell function defined in ltmain.sh
7591   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7592   lt_cv_file_magic_cmd='func_win32_libid'
7593   ;;
7595 mingw* | pw32*)
7596   # Base MSYS/MinGW do not provide the 'file' command needed by
7597   # func_win32_libid shell function, so use a weaker test based on 'objdump',
7598   # unless we find 'file', for example because we are cross-compiling.
7599   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7600   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7601     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7602     lt_cv_file_magic_cmd='func_win32_libid'
7603   else
7604     # Keep this pattern in sync with the one in func_win32_libid.
7605     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7606     lt_cv_file_magic_cmd='$OBJDUMP -f'
7607   fi
7608   ;;
7610 cegcc*)
7611   # use the weaker test based on 'objdump'. See mingw*.
7612   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7613   lt_cv_file_magic_cmd='$OBJDUMP -f'
7614   ;;
7616 darwin* | rhapsody*)
7617   lt_cv_deplibs_check_method=pass_all
7618   ;;
7620 freebsd* | dragonfly*)
7621   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7622     case $host_cpu in
7623     i*86 )
7624       # Not sure whether the presence of OpenBSD here was a mistake.
7625       # Let's accept both of them until this is cleared up.
7626       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7627       lt_cv_file_magic_cmd=/usr/bin/file
7628       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7629       ;;
7630     esac
7631   else
7632     lt_cv_deplibs_check_method=pass_all
7633   fi
7634   ;;
7636 haiku*)
7637   lt_cv_deplibs_check_method=pass_all
7638   ;;
7640 hpux10.20* | hpux11*)
7641   lt_cv_file_magic_cmd=/usr/bin/file
7642   case $host_cpu in
7643   ia64*)
7644     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7645     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7646     ;;
7647   hppa*64*)
7648     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]'
7649     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7650     ;;
7651   *)
7652     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7653     lt_cv_file_magic_test_file=/usr/lib/libc.sl
7654     ;;
7655   esac
7656   ;;
7658 interix[3-9]*)
7659   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7660   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7661   ;;
7663 irix5* | irix6* | nonstopux*)
7664   case $LD in
7665   *-32|*"-32 ") libmagic=32-bit;;
7666   *-n32|*"-n32 ") libmagic=N32;;
7667   *-64|*"-64 ") libmagic=64-bit;;
7668   *) libmagic=never-match;;
7669   esac
7670   lt_cv_deplibs_check_method=pass_all
7671   ;;
7673 # This must be glibc/ELF.
7674 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7675   lt_cv_deplibs_check_method=pass_all
7676   ;;
7678 netbsd* | netbsdelf*-gnu)
7679   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7680     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7681   else
7682     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7683   fi
7684   ;;
7686 newos6*)
7687   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7688   lt_cv_file_magic_cmd=/usr/bin/file
7689   lt_cv_file_magic_test_file=/usr/lib/libnls.so
7690   ;;
7692 *nto* | *qnx*)
7693   lt_cv_deplibs_check_method=pass_all
7694   ;;
7696 openbsd*)
7697   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7698     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7699   else
7700     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7701   fi
7702   ;;
7704 osf3* | osf4* | osf5*)
7705   lt_cv_deplibs_check_method=pass_all
7706   ;;
7708 rdos*)
7709   lt_cv_deplibs_check_method=pass_all
7710   ;;
7712 solaris*)
7713   lt_cv_deplibs_check_method=pass_all
7714   ;;
7716 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7717   lt_cv_deplibs_check_method=pass_all
7718   ;;
7720 sysv4 | sysv4.3*)
7721   case $host_vendor in
7722   motorola)
7723     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]'
7724     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7725     ;;
7726   ncr)
7727     lt_cv_deplibs_check_method=pass_all
7728     ;;
7729   sequent)
7730     lt_cv_file_magic_cmd='/bin/file'
7731     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7732     ;;
7733   sni)
7734     lt_cv_file_magic_cmd='/bin/file'
7735     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7736     lt_cv_file_magic_test_file=/lib/libc.so
7737     ;;
7738   siemens)
7739     lt_cv_deplibs_check_method=pass_all
7740     ;;
7741   pc)
7742     lt_cv_deplibs_check_method=pass_all
7743     ;;
7744   esac
7745   ;;
7747 tpf*)
7748   lt_cv_deplibs_check_method=pass_all
7749   ;;
7750 esac
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7754 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7756 file_magic_glob=
7757 want_nocaseglob=no
7758 if test "$build" = "$host"; then
7759   case $host_os in
7760   mingw* | pw32*)
7761     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7762       want_nocaseglob=yes
7763     else
7764       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7765     fi
7766     ;;
7767   esac
7770 file_magic_cmd=$lt_cv_file_magic_cmd
7771 deplibs_check_method=$lt_cv_deplibs_check_method
7772 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7775     
7776     
7777     
7780     
7781     
7782     
7785     
7786     
7787     
7790     
7791     
7792     
7795 if test -n "$ac_tool_prefix"; then
7796   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7797 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7799 $as_echo_n "checking for $ac_word... " >&6; }
7800 if ${ac_cv_prog_DLLTOOL+:} false; then :
7801   $as_echo_n "(cached) " >&6
7802 else
7803   if test -n "$DLLTOOL"; then
7804   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7805 else
7806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7807 for as_dir in $PATH
7809   IFS=$as_save_IFS
7810   test -z "$as_dir" && as_dir=.
7811     for ac_exec_ext in '' $ac_executable_extensions; do
7812   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7813     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7814     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7815     break 2
7816   fi
7817 done
7818   done
7819 IFS=$as_save_IFS
7823 DLLTOOL=$ac_cv_prog_DLLTOOL
7824 if test -n "$DLLTOOL"; then
7825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7826 $as_echo "$DLLTOOL" >&6; }
7827 else
7828   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7829 $as_echo "no" >&6; }
7834 if test -z "$ac_cv_prog_DLLTOOL"; then
7835   ac_ct_DLLTOOL=$DLLTOOL
7836   # Extract the first word of "dlltool", so it can be a program name with args.
7837 set dummy dlltool; ac_word=$2
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7839 $as_echo_n "checking for $ac_word... " >&6; }
7840 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7841   $as_echo_n "(cached) " >&6
7842 else
7843   if test -n "$ac_ct_DLLTOOL"; then
7844   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7845 else
7846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7847 for as_dir in $PATH
7849   IFS=$as_save_IFS
7850   test -z "$as_dir" && as_dir=.
7851     for ac_exec_ext in '' $ac_executable_extensions; do
7852   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7853     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7854     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7855     break 2
7856   fi
7857 done
7858   done
7859 IFS=$as_save_IFS
7863 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7864 if test -n "$ac_ct_DLLTOOL"; then
7865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7866 $as_echo "$ac_ct_DLLTOOL" >&6; }
7867 else
7868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7869 $as_echo "no" >&6; }
7872   if test "x$ac_ct_DLLTOOL" = x; then
7873     DLLTOOL="false"
7874   else
7875     case $cross_compiling:$ac_tool_warned in
7876 yes:)
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7878 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7879 ac_tool_warned=yes ;;
7880 esac
7881     DLLTOOL=$ac_ct_DLLTOOL
7882   fi
7883 else
7884   DLLTOOL="$ac_cv_prog_DLLTOOL"
7887 test -z "$DLLTOOL" && DLLTOOL=dlltool
7889     
7890     
7891     
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7899 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7900 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7901   $as_echo_n "(cached) " >&6
7902 else
7903   lt_cv_sharedlib_from_linklib_cmd='unknown'
7905 case $host_os in
7906 cygwin* | mingw* | pw32* | cegcc*)
7907   # two different shell functions defined in ltmain.sh
7908   # decide which to use based on capabilities of $DLLTOOL
7909   case `$DLLTOOL --help 2>&1` in
7910   *--identify-strict*)
7911     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7912     ;;
7913   *)
7914     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7915     ;;
7916   esac
7917   ;;
7919   # fallback: assume linklib IS sharedlib
7920   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7921   ;;
7922 esac
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7926 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7927 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7928 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7931     
7932     
7933     
7936 if test -n "$ac_tool_prefix"; then
7937   for ac_prog in ar
7938   do
7939     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7940 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7942 $as_echo_n "checking for $ac_word... " >&6; }
7943 if ${ac_cv_prog_AR+:} false; then :
7944   $as_echo_n "(cached) " >&6
7945 else
7946   if test -n "$AR"; then
7947   ac_cv_prog_AR="$AR" # Let the user override the test.
7948 else
7949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7950 for as_dir in $PATH
7952   IFS=$as_save_IFS
7953   test -z "$as_dir" && as_dir=.
7954     for ac_exec_ext in '' $ac_executable_extensions; do
7955   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7956     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7957     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7958     break 2
7959   fi
7960 done
7961   done
7962 IFS=$as_save_IFS
7966 AR=$ac_cv_prog_AR
7967 if test -n "$AR"; then
7968   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7969 $as_echo "$AR" >&6; }
7970 else
7971   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7972 $as_echo "no" >&6; }
7976     test -n "$AR" && break
7977   done
7979 if test -z "$AR"; then
7980   ac_ct_AR=$AR
7981   for ac_prog in ar
7983   # Extract the first word of "$ac_prog", so it can be a program name with args.
7984 set dummy $ac_prog; ac_word=$2
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7986 $as_echo_n "checking for $ac_word... " >&6; }
7987 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7988   $as_echo_n "(cached) " >&6
7989 else
7990   if test -n "$ac_ct_AR"; then
7991   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7992 else
7993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7994 for as_dir in $PATH
7996   IFS=$as_save_IFS
7997   test -z "$as_dir" && as_dir=.
7998     for ac_exec_ext in '' $ac_executable_extensions; do
7999   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8000     ac_cv_prog_ac_ct_AR="$ac_prog"
8001     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8002     break 2
8003   fi
8004 done
8005   done
8006 IFS=$as_save_IFS
8010 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8011 if test -n "$ac_ct_AR"; then
8012   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8013 $as_echo "$ac_ct_AR" >&6; }
8014 else
8015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8016 $as_echo "no" >&6; }
8020   test -n "$ac_ct_AR" && break
8021 done
8023   if test "x$ac_ct_AR" = x; then
8024     AR="false"
8025   else
8026     case $cross_compiling:$ac_tool_warned in
8027 yes:)
8028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8029 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8030 ac_tool_warned=yes ;;
8031 esac
8032     AR=$ac_ct_AR
8033   fi
8036 : ${AR=ar}
8037 : ${AR_FLAGS=cru}
8039     
8040     
8041     
8044     
8045     
8046     
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8050 $as_echo_n "checking for archiver @FILE support... " >&6; }
8051 if ${lt_cv_ar_at_file+:} false; then :
8052   $as_echo_n "(cached) " >&6
8053 else
8054   lt_cv_ar_at_file=no
8055    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8056 /* end confdefs.h.  */
8059 main ()
8062   ;
8063   return 0;
8065 _ACEOF
8066 if ac_fn_c_try_compile "$LINENO"; then :
8067   echo conftest.$ac_objext > conftest.lst
8068       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8069       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8070   (eval $lt_ar_try) 2>&5
8071   ac_status=$?
8072   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8073   test $ac_status = 0; }
8074       if test "$ac_status" -eq 0; then
8075         # Ensure the archiver fails upon bogus file names.
8076         rm -f conftest.$ac_objext libconftest.a
8077         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8078   (eval $lt_ar_try) 2>&5
8079   ac_status=$?
8080   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8081   test $ac_status = 0; }
8082         if test "$ac_status" -ne 0; then
8083           lt_cv_ar_at_file=@
8084         fi
8085       fi
8086       rm -f conftest.* libconftest.a
8087      
8089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8090   
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8093 $as_echo "$lt_cv_ar_at_file" >&6; }
8095 if test "x$lt_cv_ar_at_file" = xno; then
8096   archiver_list_spec=
8097 else
8098   archiver_list_spec=$lt_cv_ar_at_file
8101     
8102     
8103     
8107 if test -n "$ac_tool_prefix"; then
8108   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8109 set dummy ${ac_tool_prefix}strip; ac_word=$2
8110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8111 $as_echo_n "checking for $ac_word... " >&6; }
8112 if ${ac_cv_prog_STRIP+:} false; then :
8113   $as_echo_n "(cached) " >&6
8114 else
8115   if test -n "$STRIP"; then
8116   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8117 else
8118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8119 for as_dir in $PATH
8121   IFS=$as_save_IFS
8122   test -z "$as_dir" && as_dir=.
8123     for ac_exec_ext in '' $ac_executable_extensions; do
8124   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8125     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8126     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8127     break 2
8128   fi
8129 done
8130   done
8131 IFS=$as_save_IFS
8135 STRIP=$ac_cv_prog_STRIP
8136 if test -n "$STRIP"; then
8137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8138 $as_echo "$STRIP" >&6; }
8139 else
8140   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8141 $as_echo "no" >&6; }
8146 if test -z "$ac_cv_prog_STRIP"; then
8147   ac_ct_STRIP=$STRIP
8148   # Extract the first word of "strip", so it can be a program name with args.
8149 set dummy strip; ac_word=$2
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8151 $as_echo_n "checking for $ac_word... " >&6; }
8152 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8153   $as_echo_n "(cached) " >&6
8154 else
8155   if test -n "$ac_ct_STRIP"; then
8156   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8157 else
8158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8159 for as_dir in $PATH
8161   IFS=$as_save_IFS
8162   test -z "$as_dir" && as_dir=.
8163     for ac_exec_ext in '' $ac_executable_extensions; do
8164   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8165     ac_cv_prog_ac_ct_STRIP="strip"
8166     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8167     break 2
8168   fi
8169 done
8170   done
8171 IFS=$as_save_IFS
8175 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8176 if test -n "$ac_ct_STRIP"; then
8177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8178 $as_echo "$ac_ct_STRIP" >&6; }
8179 else
8180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8181 $as_echo "no" >&6; }
8184   if test "x$ac_ct_STRIP" = x; then
8185     STRIP=":"
8186   else
8187     case $cross_compiling:$ac_tool_warned in
8188 yes:)
8189 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8190 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8191 ac_tool_warned=yes ;;
8192 esac
8193     STRIP=$ac_ct_STRIP
8194   fi
8195 else
8196   STRIP="$ac_cv_prog_STRIP"
8199 test -z "$STRIP" && STRIP=:
8201     
8202     
8203     
8206 if test -n "$ac_tool_prefix"; then
8207   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8208 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8210 $as_echo_n "checking for $ac_word... " >&6; }
8211 if ${ac_cv_prog_RANLIB+:} false; then :
8212   $as_echo_n "(cached) " >&6
8213 else
8214   if test -n "$RANLIB"; then
8215   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8216 else
8217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8218 for as_dir in $PATH
8220   IFS=$as_save_IFS
8221   test -z "$as_dir" && as_dir=.
8222     for ac_exec_ext in '' $ac_executable_extensions; do
8223   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8224     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8225     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8226     break 2
8227   fi
8228 done
8229   done
8230 IFS=$as_save_IFS
8234 RANLIB=$ac_cv_prog_RANLIB
8235 if test -n "$RANLIB"; then
8236   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8237 $as_echo "$RANLIB" >&6; }
8238 else
8239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8240 $as_echo "no" >&6; }
8245 if test -z "$ac_cv_prog_RANLIB"; then
8246   ac_ct_RANLIB=$RANLIB
8247   # Extract the first word of "ranlib", so it can be a program name with args.
8248 set dummy ranlib; ac_word=$2
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8250 $as_echo_n "checking for $ac_word... " >&6; }
8251 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8252   $as_echo_n "(cached) " >&6
8253 else
8254   if test -n "$ac_ct_RANLIB"; then
8255   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8256 else
8257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8258 for as_dir in $PATH
8260   IFS=$as_save_IFS
8261   test -z "$as_dir" && as_dir=.
8262     for ac_exec_ext in '' $ac_executable_extensions; do
8263   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8264     ac_cv_prog_ac_ct_RANLIB="ranlib"
8265     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8266     break 2
8267   fi
8268 done
8269   done
8270 IFS=$as_save_IFS
8274 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8275 if test -n "$ac_ct_RANLIB"; then
8276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8277 $as_echo "$ac_ct_RANLIB" >&6; }
8278 else
8279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8280 $as_echo "no" >&6; }
8283   if test "x$ac_ct_RANLIB" = x; then
8284     RANLIB=":"
8285   else
8286     case $cross_compiling:$ac_tool_warned in
8287 yes:)
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8289 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8290 ac_tool_warned=yes ;;
8291 esac
8292     RANLIB=$ac_ct_RANLIB
8293   fi
8294 else
8295   RANLIB="$ac_cv_prog_RANLIB"
8298 test -z "$RANLIB" && RANLIB=:
8300     
8301     
8302     
8305 # Determine commands to create old-style static archives.
8306 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8307 old_postinstall_cmds='chmod 644 $oldlib'
8308 old_postuninstall_cmds=
8310 if test -n "$RANLIB"; then
8311   case $host_os in
8312   openbsd*)
8313     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8314     ;;
8315   *)
8316     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8317     ;;
8318   esac
8319   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8322 case $host_os in
8323   darwin*)
8324     lock_old_archive_extraction=yes ;;
8325   *)
8326     lock_old_archive_extraction=no ;;
8327 esac
8329     
8330     
8331     
8334     
8335     
8336     
8339     
8340     
8341     
8344     
8345     
8346     
8351     
8352     
8353     
8355     
8356     
8357     
8359     
8360     
8361     
8363     
8364     
8365     
8367 # If no C compiler was specified, use CC.
8368 LTCC=${LTCC-"$CC"}
8370 # If no C compiler flags were specified, use CFLAGS.
8371 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8373 # Allow CC to be a program name with arguments.
8374 compiler=$CC
8377 # Check for command to grab the raw symbol name followed by C symbol from nm.
8378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8379 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8380 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8381   $as_echo_n "(cached) " >&6
8382 else
8383   
8384 # These are sane defaults that work on at least a few old systems.
8385 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8387 # Character class describing NM global symbol codes.
8388 symcode='[BCDEGRST]'
8390 # Regexp to match symbols that can be accessed directly from C.
8391 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8393 # Define system-specific variables.
8394 case $host_os in
8395 aix*)
8396   symcode='[BCDT]'
8397   ;;
8398 cygwin* | mingw* | pw32* | cegcc*)
8399   symcode='[ABCDGISTW]'
8400   ;;
8401 hpux*)
8402   if test "$host_cpu" = ia64; then
8403     symcode='[ABCDEGRST]'
8404   fi
8405   ;;
8406 irix* | nonstopux*)
8407   symcode='[BCDEGRST]'
8408   ;;
8409 osf*)
8410   symcode='[BCDEGQRST]'
8411   ;;
8412 solaris*)
8413   symcode='[BDRT]'
8414   ;;
8415 sco3.2v5*)
8416   symcode='[DT]'
8417   ;;
8418 sysv4.2uw2*)
8419   symcode='[DT]'
8420   ;;
8421 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8422   symcode='[ABDT]'
8423   ;;
8424 sysv4)
8425   symcode='[DFNSTU]'
8426   ;;
8427 esac
8429 # If we're using GNU nm, then use its standard symbol codes.
8430 case `$NM -V 2>&1` in
8431 *GNU* | *'with BFD'*)
8432   symcode='[ABCDGIRSTW]' ;;
8433 esac
8435 # Transform an extracted symbol line into a proper C declaration.
8436 # Some systems (esp. on ia64) link data and code symbols differently,
8437 # so use this general approach.
8438 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8440 # Transform an extracted symbol line into symbol name and symbol address
8441 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
8442 lt_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'"
8444 # Handle CRLF in mingw tool chain
8445 opt_cr=
8446 case $build_os in
8447 mingw*)
8448   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8449   ;;
8450 esac
8452 # Try without a prefix underscore, then with it.
8453 for ac_symprfx in "" "_"; do
8455   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8456   symxfrm="\\1 $ac_symprfx\\2 \\2"
8458   # Write the raw and C identifiers.
8459   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8460     # Fake it for dumpbin and say T for any non-static function
8461     # and D for any global variable.
8462     # Also find C++ and __fastcall symbols from MSVC++,
8463     # which start with @ or ?.
8464     lt_cv_sys_global_symbol_pipe="$AWK '"\
8465 "     {last_section=section; section=\$ 3};"\
8466 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8467 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8468 "     \$ 0!~/External *\|/{next};"\
8469 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8470 "     {if(hide[section]) next};"\
8471 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8472 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8473 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
8474 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8475 "     ' prfx=^$ac_symprfx"
8476   else
8477     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8478   fi
8479   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8481   # Check to see that the pipe works correctly.
8482   pipe_works=no
8484   rm -f conftest*
8485   cat > conftest.$ac_ext <<_LT_EOF
8486 #ifdef __cplusplus
8487 extern "C" {
8488 #endif
8489 char nm_test_var;
8490 void nm_test_func(void);
8491 void nm_test_func(void){}
8492 #ifdef __cplusplus
8494 #endif
8495 int main(){nm_test_var='a';nm_test_func();return(0);}
8496 _LT_EOF
8498   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8499   (eval $ac_compile) 2>&5
8500   ac_status=$?
8501   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8502   test $ac_status = 0; }; then
8503     # Now try to grab the symbols.
8504     nlist=conftest.nm
8505     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8506   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8507   ac_status=$?
8508   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8509   test $ac_status = 0; } && test -s "$nlist"; then
8510       # Try sorting and uniquifying the output.
8511       if sort "$nlist" | uniq > "$nlist"T; then
8512         mv -f "$nlist"T "$nlist"
8513       else
8514         rm -f "$nlist"T
8515       fi
8517       # Make sure that we snagged all the symbols we need.
8518       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8519         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8520           cat <<_LT_EOF > conftest.$ac_ext
8521 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
8522 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
8523 /* DATA imports from DLLs on WIN32 con't be const, because runtime
8524    relocations are performed -- see ld's documentation on pseudo-relocs.  */
8525 # define LT@&t@_DLSYM_CONST
8526 #elif defined(__osf__)
8527 /* This system does not cope well with relocations in const data.  */
8528 # define LT@&t@_DLSYM_CONST
8529 #else
8530 # define LT@&t@_DLSYM_CONST const
8531 #endif
8533 #ifdef __cplusplus
8534 extern "C" {
8535 #endif
8537 _LT_EOF
8538           # Now generate the symbol file.
8539           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8541           cat <<_LT_EOF >> conftest.$ac_ext
8543 /* The mapping between symbol names and symbols.  */
8544 LT@&t@_DLSYM_CONST struct {
8545   const char *name;
8546   void       *address;
8548 lt__PROGRAM__LTX_preloaded_symbols[] =
8550   { "@PROGRAM@", (void *) 0 },
8551 _LT_EOF
8552           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8553           cat <<\_LT_EOF >> conftest.$ac_ext
8554   {0, (void *) 0}
8557 /* This works around a problem in FreeBSD linker */
8558 #ifdef FREEBSD_WORKAROUND
8559 static const void *lt_preloaded_setup() {
8560   return lt__PROGRAM__LTX_preloaded_symbols;
8562 #endif
8564 #ifdef __cplusplus
8566 #endif
8567 _LT_EOF
8568           # Now try linking the two files.
8569           mv conftest.$ac_objext conftstm.$ac_objext
8570           lt_globsym_save_LIBS=$LIBS
8571           lt_globsym_save_CFLAGS=$CFLAGS
8572           LIBS="conftstm.$ac_objext"
8573           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8574           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8575   (eval $ac_link) 2>&5
8576   ac_status=$?
8577   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8578   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8579             pipe_works=yes
8580           fi
8581           LIBS=$lt_globsym_save_LIBS
8582           CFLAGS=$lt_globsym_save_CFLAGS
8583         else
8584           echo "cannot find nm_test_func in $nlist" >&5
8585         fi
8586       else
8587         echo "cannot find nm_test_var in $nlist" >&5
8588       fi
8589     else
8590       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8591     fi
8592   else
8593     echo "$progname: failed program was:" >&5
8594     cat conftest.$ac_ext >&5
8595   fi
8596   rm -rf conftest* conftst*
8598   # Do not use the global_symbol_pipe unless it works.
8599   if test "$pipe_works" = yes; then
8600     break
8601   else
8602     lt_cv_sys_global_symbol_pipe=
8603   fi
8604 done
8608 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8609   lt_cv_sys_global_symbol_to_cdecl=
8611 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8613 $as_echo "failed" >&6; }
8614 else
8615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8616 $as_echo "ok" >&6; }
8619 # Response file support.
8620 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8621   nm_file_list_spec='@'
8622 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8623   nm_file_list_spec='@'
8627     
8628     
8629     
8632     
8633     
8634     
8637     
8638     
8639     
8642     
8643     
8644     
8647     
8648     
8649     
8652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8653 $as_echo_n "checking for sysroot... " >&6; }
8655 @%:@ Check whether --with-sysroot was given.
8656 if test "${with_sysroot+set}" = set; then :
8657   withval=$with_sysroot; 
8658 else
8659   with_sysroot=no
8663 lt_sysroot=
8664 case ${with_sysroot} in #(
8665  yes)
8666    if test "$GCC" = yes; then
8667      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8668    fi
8669    ;; #(
8670  /*)
8671    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8672    ;; #(
8673  no|'')
8674    ;; #(
8675  *)
8676    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8677 $as_echo "${with_sysroot}" >&6; }
8678    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8679    ;;
8680 esac
8682  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8683 $as_echo "${lt_sysroot:-no}" >&6; }
8685     
8686     
8687     
8689 @%:@ Check whether --enable-libtool-lock was given.
8690 if test "${enable_libtool_lock+set}" = set; then :
8691   enableval=$enable_libtool_lock; 
8694 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8696 # Some flags need to be propagated to the compiler or linker for good
8697 # libtool support.
8698 case $host in
8699 ia64-*-hpux*)
8700   # Find out which ABI we are using.
8701   echo 'int i;' > conftest.$ac_ext
8702   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8703   (eval $ac_compile) 2>&5
8704   ac_status=$?
8705   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8706   test $ac_status = 0; }; then
8707     case `/usr/bin/file conftest.$ac_objext` in
8708       *ELF-32*)
8709         HPUX_IA64_MODE="32"
8710         ;;
8711       *ELF-64*)
8712         HPUX_IA64_MODE="64"
8713         ;;
8714     esac
8715   fi
8716   rm -rf conftest*
8717   ;;
8718 *-*-irix6*)
8719   # Find out which ABI we are using.
8720   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8721   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8722   (eval $ac_compile) 2>&5
8723   ac_status=$?
8724   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8725   test $ac_status = 0; }; then
8726     if test "$lt_cv_prog_gnu_ld" = yes; then
8727       case `/usr/bin/file conftest.$ac_objext` in
8728         *32-bit*)
8729           LD="${LD-ld} -melf32bsmip"
8730           ;;
8731         *N32*)
8732           LD="${LD-ld} -melf32bmipn32"
8733           ;;
8734         *64-bit*)
8735           LD="${LD-ld} -melf64bmip"
8736         ;;
8737       esac
8738     else
8739       case `/usr/bin/file conftest.$ac_objext` in
8740         *32-bit*)
8741           LD="${LD-ld} -32"
8742           ;;
8743         *N32*)
8744           LD="${LD-ld} -n32"
8745           ;;
8746         *64-bit*)
8747           LD="${LD-ld} -64"
8748           ;;
8749       esac
8750     fi
8751   fi
8752   rm -rf conftest*
8753   ;;
8755 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8756 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8757   # Find out which ABI we are using.
8758   echo 'int i;' > conftest.$ac_ext
8759   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8760   (eval $ac_compile) 2>&5
8761   ac_status=$?
8762   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8763   test $ac_status = 0; }; then
8764     case `/usr/bin/file conftest.o` in
8765       *32-bit*)
8766         case $host in
8767           x86_64-*kfreebsd*-gnu)
8768             LD="${LD-ld} -m elf_i386_fbsd"
8769             ;;
8770           x86_64-*linux*)
8771             LD="${LD-ld} -m elf_i386"
8772             ;;
8773           ppc64-*linux*|powerpc64-*linux*)
8774             LD="${LD-ld} -m elf32ppclinux"
8775             ;;
8776           s390x-*linux*)
8777             LD="${LD-ld} -m elf_s390"
8778             ;;
8779           sparc64-*linux*)
8780             LD="${LD-ld} -m elf32_sparc"
8781             ;;
8782         esac
8783         ;;
8784       *64-bit*)
8785         case $host in
8786           x86_64-*kfreebsd*-gnu)
8787             LD="${LD-ld} -m elf_x86_64_fbsd"
8788             ;;
8789           x86_64-*linux*)
8790             LD="${LD-ld} -m elf_x86_64"
8791             ;;
8792           ppc*-*linux*|powerpc*-*linux*)
8793             LD="${LD-ld} -m elf64ppc"
8794             ;;
8795           s390*-*linux*|s390*-*tpf*)
8796             LD="${LD-ld} -m elf64_s390"
8797             ;;
8798           sparc*-*linux*)
8799             LD="${LD-ld} -m elf64_sparc"
8800             ;;
8801         esac
8802         ;;
8803     esac
8804   fi
8805   rm -rf conftest*
8806   ;;
8808 *-*-sco3.2v5*)
8809   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8810   SAVE_CFLAGS="$CFLAGS"
8811   CFLAGS="$CFLAGS -belf"
8812   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8813 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8814 if ${lt_cv_cc_needs_belf+:} false; then :
8815   $as_echo_n "(cached) " >&6
8816 else
8817   ac_ext=c
8818 ac_cpp='$CPP $CPPFLAGS'
8819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8821 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8823      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8824 /* end confdefs.h.  */
8827 main ()
8830   ;
8831   return 0;
8833 _ACEOF
8834 if ac_fn_c_try_link "$LINENO"; then :
8835   lt_cv_cc_needs_belf=yes
8836 else
8837   lt_cv_cc_needs_belf=no
8839 rm -f core conftest.err conftest.$ac_objext \
8840     conftest$ac_exeext conftest.$ac_ext
8841      ac_ext=c
8842 ac_cpp='$CPP $CPPFLAGS'
8843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8849 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8850   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8851     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8852     CFLAGS="$SAVE_CFLAGS"
8853   fi
8854   ;;
8855 *-*solaris*)
8856   # Find out which ABI we are using.
8857   echo 'int i;' > conftest.$ac_ext
8858   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8859   (eval $ac_compile) 2>&5
8860   ac_status=$?
8861   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8862   test $ac_status = 0; }; then
8863     case `/usr/bin/file conftest.o` in
8864     *64-bit*)
8865       case $lt_cv_prog_gnu_ld in
8866       yes*)
8867         case $host in
8868         i?86-*-solaris*)
8869           LD="${LD-ld} -m elf_x86_64"
8870           ;;
8871         sparc*-*-solaris*)
8872           LD="${LD-ld} -m elf64_sparc"
8873           ;;
8874         esac
8875         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
8876         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8877           LD="${LD-ld}_sol2"
8878         fi
8879         ;;
8880       *)
8881         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8882           LD="${LD-ld} -64"
8883         fi
8884         ;;
8885       esac
8886       ;;
8887     esac
8888   fi
8889   rm -rf conftest*
8890   ;;
8891 esac
8893 need_locks="$enable_libtool_lock"
8895 if test -n "$ac_tool_prefix"; then
8896   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8897 set dummy ${ac_tool_prefix}mt; ac_word=$2
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8899 $as_echo_n "checking for $ac_word... " >&6; }
8900 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8901   $as_echo_n "(cached) " >&6
8902 else
8903   if test -n "$MANIFEST_TOOL"; then
8904   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8905 else
8906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8907 for as_dir in $PATH
8909   IFS=$as_save_IFS
8910   test -z "$as_dir" && as_dir=.
8911     for ac_exec_ext in '' $ac_executable_extensions; do
8912   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8913     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8914     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8915     break 2
8916   fi
8917 done
8918   done
8919 IFS=$as_save_IFS
8923 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8924 if test -n "$MANIFEST_TOOL"; then
8925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8926 $as_echo "$MANIFEST_TOOL" >&6; }
8927 else
8928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8929 $as_echo "no" >&6; }
8934 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8935   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8936   # Extract the first word of "mt", so it can be a program name with args.
8937 set dummy mt; ac_word=$2
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8939 $as_echo_n "checking for $ac_word... " >&6; }
8940 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8941   $as_echo_n "(cached) " >&6
8942 else
8943   if test -n "$ac_ct_MANIFEST_TOOL"; then
8944   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8945 else
8946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8947 for as_dir in $PATH
8949   IFS=$as_save_IFS
8950   test -z "$as_dir" && as_dir=.
8951     for ac_exec_ext in '' $ac_executable_extensions; do
8952   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8953     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8954     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8955     break 2
8956   fi
8957 done
8958   done
8959 IFS=$as_save_IFS
8963 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8964 if test -n "$ac_ct_MANIFEST_TOOL"; then
8965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8966 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8967 else
8968   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8969 $as_echo "no" >&6; }
8972   if test "x$ac_ct_MANIFEST_TOOL" = x; then
8973     MANIFEST_TOOL=":"
8974   else
8975     case $cross_compiling:$ac_tool_warned in
8976 yes:)
8977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8978 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8979 ac_tool_warned=yes ;;
8980 esac
8981     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8982   fi
8983 else
8984   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8987 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8989 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8990 if ${lt_cv_path_mainfest_tool+:} false; then :
8991   $as_echo_n "(cached) " >&6
8992 else
8993   lt_cv_path_mainfest_tool=no
8994   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8995   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8996   cat conftest.err >&5
8997   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8998     lt_cv_path_mainfest_tool=yes
8999   fi
9000   rm -f conftest*
9002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9003 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
9004 if test "x$lt_cv_path_mainfest_tool" != xyes; then
9005   MANIFEST_TOOL=:
9008     
9009     
9010     
9013   case $host_os in
9014     rhapsody* | darwin*)
9015     if test -n "$ac_tool_prefix"; then
9016   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9017 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9019 $as_echo_n "checking for $ac_word... " >&6; }
9020 if ${ac_cv_prog_DSYMUTIL+:} false; then :
9021   $as_echo_n "(cached) " >&6
9022 else
9023   if test -n "$DSYMUTIL"; then
9024   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9025 else
9026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9027 for as_dir in $PATH
9029   IFS=$as_save_IFS
9030   test -z "$as_dir" && as_dir=.
9031     for ac_exec_ext in '' $ac_executable_extensions; do
9032   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9033     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9034     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9035     break 2
9036   fi
9037 done
9038   done
9039 IFS=$as_save_IFS
9043 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9044 if test -n "$DSYMUTIL"; then
9045   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9046 $as_echo "$DSYMUTIL" >&6; }
9047 else
9048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9049 $as_echo "no" >&6; }
9054 if test -z "$ac_cv_prog_DSYMUTIL"; then
9055   ac_ct_DSYMUTIL=$DSYMUTIL
9056   # Extract the first word of "dsymutil", so it can be a program name with args.
9057 set dummy dsymutil; ac_word=$2
9058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9059 $as_echo_n "checking for $ac_word... " >&6; }
9060 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9061   $as_echo_n "(cached) " >&6
9062 else
9063   if test -n "$ac_ct_DSYMUTIL"; then
9064   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9065 else
9066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9067 for as_dir in $PATH
9069   IFS=$as_save_IFS
9070   test -z "$as_dir" && as_dir=.
9071     for ac_exec_ext in '' $ac_executable_extensions; do
9072   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9073     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9074     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9075     break 2
9076   fi
9077 done
9078   done
9079 IFS=$as_save_IFS
9083 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9084 if test -n "$ac_ct_DSYMUTIL"; then
9085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9086 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9087 else
9088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9089 $as_echo "no" >&6; }
9092   if test "x$ac_ct_DSYMUTIL" = x; then
9093     DSYMUTIL=":"
9094   else
9095     case $cross_compiling:$ac_tool_warned in
9096 yes:)
9097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9098 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9099 ac_tool_warned=yes ;;
9100 esac
9101     DSYMUTIL=$ac_ct_DSYMUTIL
9102   fi
9103 else
9104   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9107     if test -n "$ac_tool_prefix"; then
9108   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9109 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9111 $as_echo_n "checking for $ac_word... " >&6; }
9112 if ${ac_cv_prog_NMEDIT+:} false; then :
9113   $as_echo_n "(cached) " >&6
9114 else
9115   if test -n "$NMEDIT"; then
9116   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9117 else
9118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9119 for as_dir in $PATH
9121   IFS=$as_save_IFS
9122   test -z "$as_dir" && as_dir=.
9123     for ac_exec_ext in '' $ac_executable_extensions; do
9124   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9125     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9126     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9127     break 2
9128   fi
9129 done
9130   done
9131 IFS=$as_save_IFS
9135 NMEDIT=$ac_cv_prog_NMEDIT
9136 if test -n "$NMEDIT"; then
9137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9138 $as_echo "$NMEDIT" >&6; }
9139 else
9140   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9141 $as_echo "no" >&6; }
9146 if test -z "$ac_cv_prog_NMEDIT"; then
9147   ac_ct_NMEDIT=$NMEDIT
9148   # Extract the first word of "nmedit", so it can be a program name with args.
9149 set dummy nmedit; ac_word=$2
9150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9151 $as_echo_n "checking for $ac_word... " >&6; }
9152 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9153   $as_echo_n "(cached) " >&6
9154 else
9155   if test -n "$ac_ct_NMEDIT"; then
9156   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9157 else
9158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9159 for as_dir in $PATH
9161   IFS=$as_save_IFS
9162   test -z "$as_dir" && as_dir=.
9163     for ac_exec_ext in '' $ac_executable_extensions; do
9164   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9165     ac_cv_prog_ac_ct_NMEDIT="nmedit"
9166     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9167     break 2
9168   fi
9169 done
9170   done
9171 IFS=$as_save_IFS
9175 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9176 if test -n "$ac_ct_NMEDIT"; then
9177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9178 $as_echo "$ac_ct_NMEDIT" >&6; }
9179 else
9180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9181 $as_echo "no" >&6; }
9184   if test "x$ac_ct_NMEDIT" = x; then
9185     NMEDIT=":"
9186   else
9187     case $cross_compiling:$ac_tool_warned in
9188 yes:)
9189 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9190 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9191 ac_tool_warned=yes ;;
9192 esac
9193     NMEDIT=$ac_ct_NMEDIT
9194   fi
9195 else
9196   NMEDIT="$ac_cv_prog_NMEDIT"
9199     if test -n "$ac_tool_prefix"; then
9200   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9201 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9203 $as_echo_n "checking for $ac_word... " >&6; }
9204 if ${ac_cv_prog_LIPO+:} false; then :
9205   $as_echo_n "(cached) " >&6
9206 else
9207   if test -n "$LIPO"; then
9208   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9209 else
9210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9211 for as_dir in $PATH
9213   IFS=$as_save_IFS
9214   test -z "$as_dir" && as_dir=.
9215     for ac_exec_ext in '' $ac_executable_extensions; do
9216   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9217     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9218     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9219     break 2
9220   fi
9221 done
9222   done
9223 IFS=$as_save_IFS
9227 LIPO=$ac_cv_prog_LIPO
9228 if test -n "$LIPO"; then
9229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9230 $as_echo "$LIPO" >&6; }
9231 else
9232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9233 $as_echo "no" >&6; }
9238 if test -z "$ac_cv_prog_LIPO"; then
9239   ac_ct_LIPO=$LIPO
9240   # Extract the first word of "lipo", so it can be a program name with args.
9241 set dummy lipo; ac_word=$2
9242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9243 $as_echo_n "checking for $ac_word... " >&6; }
9244 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9245   $as_echo_n "(cached) " >&6
9246 else
9247   if test -n "$ac_ct_LIPO"; then
9248   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9249 else
9250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9251 for as_dir in $PATH
9253   IFS=$as_save_IFS
9254   test -z "$as_dir" && as_dir=.
9255     for ac_exec_ext in '' $ac_executable_extensions; do
9256   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9257     ac_cv_prog_ac_ct_LIPO="lipo"
9258     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9259     break 2
9260   fi
9261 done
9262   done
9263 IFS=$as_save_IFS
9267 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9268 if test -n "$ac_ct_LIPO"; then
9269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9270 $as_echo "$ac_ct_LIPO" >&6; }
9271 else
9272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9273 $as_echo "no" >&6; }
9276   if test "x$ac_ct_LIPO" = x; then
9277     LIPO=":"
9278   else
9279     case $cross_compiling:$ac_tool_warned in
9280 yes:)
9281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9282 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9283 ac_tool_warned=yes ;;
9284 esac
9285     LIPO=$ac_ct_LIPO
9286   fi
9287 else
9288   LIPO="$ac_cv_prog_LIPO"
9291     if test -n "$ac_tool_prefix"; then
9292   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9293 set dummy ${ac_tool_prefix}otool; ac_word=$2
9294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9295 $as_echo_n "checking for $ac_word... " >&6; }
9296 if ${ac_cv_prog_OTOOL+:} false; then :
9297   $as_echo_n "(cached) " >&6
9298 else
9299   if test -n "$OTOOL"; then
9300   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9301 else
9302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9303 for as_dir in $PATH
9305   IFS=$as_save_IFS
9306   test -z "$as_dir" && as_dir=.
9307     for ac_exec_ext in '' $ac_executable_extensions; do
9308   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9309     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9310     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9311     break 2
9312   fi
9313 done
9314   done
9315 IFS=$as_save_IFS
9319 OTOOL=$ac_cv_prog_OTOOL
9320 if test -n "$OTOOL"; then
9321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9322 $as_echo "$OTOOL" >&6; }
9323 else
9324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9325 $as_echo "no" >&6; }
9330 if test -z "$ac_cv_prog_OTOOL"; then
9331   ac_ct_OTOOL=$OTOOL
9332   # Extract the first word of "otool", so it can be a program name with args.
9333 set dummy otool; ac_word=$2
9334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9335 $as_echo_n "checking for $ac_word... " >&6; }
9336 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9337   $as_echo_n "(cached) " >&6
9338 else
9339   if test -n "$ac_ct_OTOOL"; then
9340   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9341 else
9342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9343 for as_dir in $PATH
9345   IFS=$as_save_IFS
9346   test -z "$as_dir" && as_dir=.
9347     for ac_exec_ext in '' $ac_executable_extensions; do
9348   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9349     ac_cv_prog_ac_ct_OTOOL="otool"
9350     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9351     break 2
9352   fi
9353 done
9354   done
9355 IFS=$as_save_IFS
9359 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9360 if test -n "$ac_ct_OTOOL"; then
9361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9362 $as_echo "$ac_ct_OTOOL" >&6; }
9363 else
9364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9365 $as_echo "no" >&6; }
9368   if test "x$ac_ct_OTOOL" = x; then
9369     OTOOL=":"
9370   else
9371     case $cross_compiling:$ac_tool_warned in
9372 yes:)
9373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9374 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9375 ac_tool_warned=yes ;;
9376 esac
9377     OTOOL=$ac_ct_OTOOL
9378   fi
9379 else
9380   OTOOL="$ac_cv_prog_OTOOL"
9383     if test -n "$ac_tool_prefix"; then
9384   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9385 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9387 $as_echo_n "checking for $ac_word... " >&6; }
9388 if ${ac_cv_prog_OTOOL64+:} false; then :
9389   $as_echo_n "(cached) " >&6
9390 else
9391   if test -n "$OTOOL64"; then
9392   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9393 else
9394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9395 for as_dir in $PATH
9397   IFS=$as_save_IFS
9398   test -z "$as_dir" && as_dir=.
9399     for ac_exec_ext in '' $ac_executable_extensions; do
9400   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9401     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9402     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9403     break 2
9404   fi
9405 done
9406   done
9407 IFS=$as_save_IFS
9411 OTOOL64=$ac_cv_prog_OTOOL64
9412 if test -n "$OTOOL64"; then
9413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9414 $as_echo "$OTOOL64" >&6; }
9415 else
9416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9417 $as_echo "no" >&6; }
9422 if test -z "$ac_cv_prog_OTOOL64"; then
9423   ac_ct_OTOOL64=$OTOOL64
9424   # Extract the first word of "otool64", so it can be a program name with args.
9425 set dummy otool64; ac_word=$2
9426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9427 $as_echo_n "checking for $ac_word... " >&6; }
9428 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9429   $as_echo_n "(cached) " >&6
9430 else
9431   if test -n "$ac_ct_OTOOL64"; then
9432   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9433 else
9434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9435 for as_dir in $PATH
9437   IFS=$as_save_IFS
9438   test -z "$as_dir" && as_dir=.
9439     for ac_exec_ext in '' $ac_executable_extensions; do
9440   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9441     ac_cv_prog_ac_ct_OTOOL64="otool64"
9442     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9443     break 2
9444   fi
9445 done
9446   done
9447 IFS=$as_save_IFS
9451 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9452 if test -n "$ac_ct_OTOOL64"; then
9453   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9454 $as_echo "$ac_ct_OTOOL64" >&6; }
9455 else
9456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9457 $as_echo "no" >&6; }
9460   if test "x$ac_ct_OTOOL64" = x; then
9461     OTOOL64=":"
9462   else
9463     case $cross_compiling:$ac_tool_warned in
9464 yes:)
9465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9466 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9467 ac_tool_warned=yes ;;
9468 esac
9469     OTOOL64=$ac_ct_OTOOL64
9470   fi
9471 else
9472   OTOOL64="$ac_cv_prog_OTOOL64"
9475     
9476     
9477     
9478     
9480     
9481     
9482     
9483     
9485     
9486     
9487     
9488     
9490     
9491     
9492     
9493     
9495     
9496     
9497     
9498     
9501     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9502 $as_echo_n "checking for -single_module linker flag... " >&6; }
9503 if ${lt_cv_apple_cc_single_mod+:} false; then :
9504   $as_echo_n "(cached) " >&6
9505 else
9506   lt_cv_apple_cc_single_mod=no
9507       if test -z "${LT_MULTI_MODULE}"; then
9508         # By default we will add the -single_module flag. You can override
9509         # by either setting the environment variable LT_MULTI_MODULE
9510         # non-empty at configure time, or by adding -multi_module to the
9511         # link flags.
9512         rm -rf libconftest.dylib*
9513         echo "int foo(void){return 1;}" > conftest.c
9514         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9515 -dynamiclib -Wl,-single_module conftest.c" >&5
9516         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9517           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9518         _lt_result=$?
9519         # If there is a non-empty error log, and "single_module"
9520         # appears in it, assume the flag caused a linker warning
9521         if test -s conftest.err && $GREP single_module conftest.err; then
9522           cat conftest.err >&5
9523         # Otherwise, if the output was created with a 0 exit code from
9524         # the compiler, it worked.
9525         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
9526           lt_cv_apple_cc_single_mod=yes
9527         else
9528           cat conftest.err >&5
9529         fi
9530         rm -rf libconftest.dylib*
9531         rm -f conftest.*
9532       fi
9534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9535 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9537     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9538 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9539 if ${lt_cv_ld_exported_symbols_list+:} false; then :
9540   $as_echo_n "(cached) " >&6
9541 else
9542   lt_cv_ld_exported_symbols_list=no
9543       save_LDFLAGS=$LDFLAGS
9544       echo "_main" > conftest.sym
9545       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9546       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9547 /* end confdefs.h.  */
9550 main ()
9553   ;
9554   return 0;
9556 _ACEOF
9557 if ac_fn_c_try_link "$LINENO"; then :
9558   lt_cv_ld_exported_symbols_list=yes
9559 else
9560   lt_cv_ld_exported_symbols_list=no
9562 rm -f core conftest.err conftest.$ac_objext \
9563     conftest$ac_exeext conftest.$ac_ext
9564         LDFLAGS="$save_LDFLAGS"
9565     
9567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9568 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9570     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9571 $as_echo_n "checking for -force_load linker flag... " >&6; }
9572 if ${lt_cv_ld_force_load+:} false; then :
9573   $as_echo_n "(cached) " >&6
9574 else
9575   lt_cv_ld_force_load=no
9576       cat > conftest.c << _LT_EOF
9577 int forced_loaded() { return 2;}
9578 _LT_EOF
9579       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9580       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9581       echo "$AR cru libconftest.a conftest.o" >&5
9582       $AR cru libconftest.a conftest.o 2>&5
9583       echo "$RANLIB libconftest.a" >&5
9584       $RANLIB libconftest.a 2>&5
9585       cat > conftest.c << _LT_EOF
9586 int main() { return 0;}
9587 _LT_EOF
9588       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9589       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9590       _lt_result=$?
9591       if test -s conftest.err && $GREP force_load conftest.err; then
9592         cat conftest.err >&5
9593       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
9594         lt_cv_ld_force_load=yes
9595       else
9596         cat conftest.err >&5
9597       fi
9598         rm -f conftest.err libconftest.a conftest conftest.c
9599         rm -rf conftest.dSYM
9600     
9602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9603 $as_echo "$lt_cv_ld_force_load" >&6; }
9604     case $host_os in
9605     rhapsody* | darwin1.[012])
9606       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9607     darwin1.*)
9608       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9609     darwin*) # darwin 5.x on
9610       # if running on 10.5 or later, the deployment target defaults
9611       # to the OS version, if on x86, and 10.4, the deployment
9612       # target defaults to 10.4. Don't you love it?
9613       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9614         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9615           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9616         10.[012]*)
9617           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9618         10.*)
9619           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9620       esac
9621     ;;
9622   esac
9623     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9624       _lt_dar_single_mod='$single_module'
9625     fi
9626     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9627       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9628     else
9629       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9630     fi
9631     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9632       _lt_dsymutil='~$DSYMUTIL $lib || :'
9633     else
9634       _lt_dsymutil=
9635     fi
9636     ;;
9637   esac
9639 for ac_header in dlfcn.h
9640 do :
9641   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9643 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9644   cat >>confdefs.h <<_ACEOF
9645 @%:@define HAVE_DLFCN_H 1
9646 _ACEOF
9650 done
9656 # Set options
9660         enable_dlopen=no
9661   
9663   enable_win32_dll=no
9664   
9666             @%:@ Check whether --enable-shared was given.
9667 if test "${enable_shared+set}" = set; then :
9668   enableval=$enable_shared; p=${PACKAGE-default}
9669     case $enableval in
9670     yes) enable_shared=yes ;;
9671     no) enable_shared=no ;;
9672     *)
9673       enable_shared=no
9674       # Look at the argument we got.  We use all the common list separators.
9675       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9676       for pkg in $enableval; do
9677         IFS="$lt_save_ifs"
9678         if test "X$pkg" = "X$p"; then
9679           enable_shared=yes
9680         fi
9681       done
9682       IFS="$lt_save_ifs"
9683       ;;
9684     esac
9685 else
9686   enable_shared=yes
9690     
9691     
9692     
9693     
9697   @%:@ Check whether --enable-static was given.
9698 if test "${enable_static+set}" = set; then :
9699   enableval=$enable_static; p=${PACKAGE-default}
9700     case $enableval in
9701     yes) enable_static=yes ;;
9702     no) enable_static=no ;;
9703     *)
9704      enable_static=no
9705       # Look at the argument we got.  We use all the common list separators.
9706       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9707       for pkg in $enableval; do
9708         IFS="$lt_save_ifs"
9709         if test "X$pkg" = "X$p"; then
9710           enable_static=yes
9711         fi
9712       done
9713       IFS="$lt_save_ifs"
9714       ;;
9715     esac
9716 else
9717   enable_static=yes
9721     
9722     
9723     
9724     
9728   
9729 @%:@ Check whether --with-pic was given.
9730 if test "${with_pic+set}" = set; then :
9731   withval=$with_pic; lt_p=${PACKAGE-default}
9732     case $withval in
9733     yes|no) pic_mode=$withval ;;
9734     *)
9735       pic_mode=default
9736       # Look at the argument we got.  We use all the common list separators.
9737       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9738       for lt_pkg in $withval; do
9739         IFS="$lt_save_ifs"
9740         if test "X$lt_pkg" = "X$lt_p"; then
9741           pic_mode=yes
9742         fi
9743       done
9744       IFS="$lt_save_ifs"
9745       ;;
9746     esac
9747 else
9748   pic_mode=default
9752 test -z "$pic_mode" && pic_mode=default
9755     
9756     
9757     
9760   @%:@ Check whether --enable-fast-install was given.
9761 if test "${enable_fast_install+set}" = set; then :
9762   enableval=$enable_fast_install; p=${PACKAGE-default}
9763     case $enableval in
9764     yes) enable_fast_install=yes ;;
9765     no) enable_fast_install=no ;;
9766     *)
9767       enable_fast_install=no
9768       # Look at the argument we got.  We use all the common list separators.
9769       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9770       for pkg in $enableval; do
9771         IFS="$lt_save_ifs"
9772         if test "X$pkg" = "X$p"; then
9773           enable_fast_install=yes
9774         fi
9775       done
9776       IFS="$lt_save_ifs"
9777       ;;
9778     esac
9779 else
9780   enable_fast_install=yes
9785     
9786     
9787     
9790   
9793 # This can be used to rebuild libtool when needed
9794 LIBTOOL_DEPS="$ltmain"
9796 # Always use our own libtool.
9797 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9801     
9802     
9803     
9805     
9806     
9807     
9809     
9810     
9811     
9813     
9814     
9815     
9817     
9818     
9819     
9821     
9822     
9823     
9825     
9826     
9827     
9828 test -z "$LN_S" && LN_S="ln -s"
9830     
9831     
9832     
9834     
9835     
9836     
9838     
9839     
9840     
9843 if test -n "${ZSH_VERSION+set}" ; then
9844    setopt NO_GLOB_SUBST
9847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9848 $as_echo_n "checking for objdir... " >&6; }
9849 if ${lt_cv_objdir+:} false; then :
9850   $as_echo_n "(cached) " >&6
9851 else
9852   rm -f .libs 2>/dev/null
9853 mkdir .libs 2>/dev/null
9854 if test -d .libs; then
9855   lt_cv_objdir=.libs
9856 else
9857   # MS-DOS does not allow filenames that begin with a dot.
9858   lt_cv_objdir=_libs
9860 rmdir .libs 2>/dev/null
9862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9863 $as_echo "$lt_cv_objdir" >&6; }
9864 objdir=$lt_cv_objdir
9866     
9867     
9868     
9870 cat >>confdefs.h <<_ACEOF
9871 @%:@define LT_OBJDIR "$lt_cv_objdir/"
9872 _ACEOF
9877 case $host_os in
9878 aix3*)
9879   # AIX sometimes has problems with the GCC collect2 program.  For some
9880   # reason, if we set the COLLECT_NAMES environment variable, the problems
9881   # vanish in a puff of smoke.
9882   if test "X${COLLECT_NAMES+set}" != Xset; then
9883     COLLECT_NAMES=
9884     export COLLECT_NAMES
9885   fi
9886   ;;
9887 esac
9889 # Global variables:
9890 ofile=libtool
9891 can_build_shared=yes
9893 # All known linkers require a `.a' archive for static linking (except MSVC,
9894 # which needs '.lib').
9895 libext=a
9897 with_gnu_ld="$lt_cv_prog_gnu_ld"
9899 old_CC="$CC"
9900 old_CFLAGS="$CFLAGS"
9902 # Set sane defaults for various variables
9903 test -z "$CC" && CC=cc
9904 test -z "$LTCC" && LTCC=$CC
9905 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9906 test -z "$LD" && LD=ld
9907 test -z "$ac_objext" && ac_objext=o
9909 for cc_temp in $compiler""; do
9910   case $cc_temp in
9911     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9912     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9913     \-*) ;;
9914     *) break;;
9915   esac
9916 done
9917 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9920 # Only perform the check for file, if the check method requires it
9921 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9922 case $deplibs_check_method in
9923 file_magic*)
9924   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9925     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9926 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9927 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9928   $as_echo_n "(cached) " >&6
9929 else
9930   case $MAGIC_CMD in
9931 [\\/*] |  ?:[\\/]*)
9932   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9933   ;;
9935   lt_save_MAGIC_CMD="$MAGIC_CMD"
9936   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9937   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9938   for ac_dir in $ac_dummy; do
9939     IFS="$lt_save_ifs"
9940     test -z "$ac_dir" && ac_dir=.
9941     if test -f $ac_dir/${ac_tool_prefix}file; then
9942       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9943       if test -n "$file_magic_test_file"; then
9944         case $deplibs_check_method in
9945         "file_magic "*)
9946           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9947           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9948           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9949             $EGREP "$file_magic_regex" > /dev/null; then
9950             :
9951           else
9952             cat <<_LT_EOF 1>&2
9954 *** Warning: the command libtool uses to detect shared libraries,
9955 *** $file_magic_cmd, produces output that libtool cannot recognize.
9956 *** The result is that libtool may fail to recognize shared libraries
9957 *** as such.  This will affect the creation of libtool libraries that
9958 *** depend on shared libraries, but programs linked with such libtool
9959 *** libraries will work regardless of this problem.  Nevertheless, you
9960 *** may want to report the problem to your system manager and/or to
9961 *** bug-libtool@gnu.org
9963 _LT_EOF
9964           fi ;;
9965         esac
9966       fi
9967       break
9968     fi
9969   done
9970   IFS="$lt_save_ifs"
9971   MAGIC_CMD="$lt_save_MAGIC_CMD"
9972   ;;
9973 esac
9976 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9977 if test -n "$MAGIC_CMD"; then
9978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9979 $as_echo "$MAGIC_CMD" >&6; }
9980 else
9981   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9982 $as_echo "no" >&6; }
9985     
9986     
9987     
9989 if test -z "$lt_cv_path_MAGIC_CMD"; then
9990   if test -n "$ac_tool_prefix"; then
9991     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9992 $as_echo_n "checking for file... " >&6; }
9993 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9994   $as_echo_n "(cached) " >&6
9995 else
9996   case $MAGIC_CMD in
9997 [\\/*] |  ?:[\\/]*)
9998   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9999   ;;
10001   lt_save_MAGIC_CMD="$MAGIC_CMD"
10002   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10003   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10004   for ac_dir in $ac_dummy; do
10005     IFS="$lt_save_ifs"
10006     test -z "$ac_dir" && ac_dir=.
10007     if test -f $ac_dir/file; then
10008       lt_cv_path_MAGIC_CMD="$ac_dir/file"
10009       if test -n "$file_magic_test_file"; then
10010         case $deplibs_check_method in
10011         "file_magic "*)
10012           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10013           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10014           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10015             $EGREP "$file_magic_regex" > /dev/null; then
10016             :
10017           else
10018             cat <<_LT_EOF 1>&2
10020 *** Warning: the command libtool uses to detect shared libraries,
10021 *** $file_magic_cmd, produces output that libtool cannot recognize.
10022 *** The result is that libtool may fail to recognize shared libraries
10023 *** as such.  This will affect the creation of libtool libraries that
10024 *** depend on shared libraries, but programs linked with such libtool
10025 *** libraries will work regardless of this problem.  Nevertheless, you
10026 *** may want to report the problem to your system manager and/or to
10027 *** bug-libtool@gnu.org
10029 _LT_EOF
10030           fi ;;
10031         esac
10032       fi
10033       break
10034     fi
10035   done
10036   IFS="$lt_save_ifs"
10037   MAGIC_CMD="$lt_save_MAGIC_CMD"
10038   ;;
10039 esac
10042 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10043 if test -n "$MAGIC_CMD"; then
10044   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10045 $as_echo "$MAGIC_CMD" >&6; }
10046 else
10047   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10048 $as_echo "no" >&6; }
10052   else
10053     MAGIC_CMD=:
10054   fi
10057   fi
10058   ;;
10059 esac
10061 # Use C for the default configuration in the libtool script
10063 lt_save_CC="$CC"
10064 ac_ext=c
10065 ac_cpp='$CPP $CPPFLAGS'
10066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10071 # Source file extension for C test sources.
10072 ac_ext=c
10074 # Object file extension for compiled C test sources.
10075 objext=o
10076 objext=$objext
10078 # Code to be used in simple compile tests
10079 lt_simple_compile_test_code="int some_variable = 0;"
10081 # Code to be used in simple link tests
10082 lt_simple_link_test_code='int main(){return(0);}'
10090 # If no C compiler was specified, use CC.
10091 LTCC=${LTCC-"$CC"}
10093 # If no C compiler flags were specified, use CFLAGS.
10094 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10096 # Allow CC to be a program name with arguments.
10097 compiler=$CC
10099 # Save the default compiler, since it gets overwritten when the other
10100 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10101 compiler_DEFAULT=$CC
10103 # save warnings/boilerplate of simple test code
10104 ac_outfile=conftest.$ac_objext
10105 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10106 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10107 _lt_compiler_boilerplate=`cat conftest.err`
10108 $RM conftest*
10110 ac_outfile=conftest.$ac_objext
10111 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10112 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10113 _lt_linker_boilerplate=`cat conftest.err`
10114 $RM -r conftest*
10117 ## CAVEAT EMPTOR:
10118 ## There is no encapsulation within the following macros, do not change
10119 ## the running order or otherwise move them around unless you know exactly
10120 ## what you are doing...
10121 if test -n "$compiler"; then
10122   
10123 lt_prog_compiler_no_builtin_flag=
10125 if test "$GCC" = yes; then
10126   case $cc_basename in
10127   nvcc*)
10128     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10129   *)
10130     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10131   esac
10133   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10134 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10135 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10136   $as_echo_n "(cached) " >&6
10137 else
10138   lt_cv_prog_compiler_rtti_exceptions=no
10139    ac_outfile=conftest.$ac_objext
10140    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10141    lt_compiler_flag="-fno-rtti -fno-exceptions"
10142    # Insert the option either (1) after the last *FLAGS variable, or
10143    # (2) before a word containing "conftest.", or (3) at the end.
10144    # Note that $ac_compile itself does not contain backslashes and begins
10145    # with a dollar sign (not a hyphen), so the echo should work correctly.
10146    # The option is referenced via a variable to avoid confusing sed.
10147    lt_compile=`echo "$ac_compile" | $SED \
10148    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10149    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10150    -e 's:$: $lt_compiler_flag:'`
10151    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10152    (eval "$lt_compile" 2>conftest.err)
10153    ac_status=$?
10154    cat conftest.err >&5
10155    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10156    if (exit $ac_status) && test -s "$ac_outfile"; then
10157      # The compiler can only warn and ignore the option if not recognized
10158      # So say no if there are warnings other than the usual output.
10159      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10160      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10161      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10162        lt_cv_prog_compiler_rtti_exceptions=yes
10163      fi
10164    fi
10165    $RM conftest*
10168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10169 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10171 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10172     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10173 else
10174     :
10179     
10180     
10181     
10184   lt_prog_compiler_wl=
10185 lt_prog_compiler_pic=
10186 lt_prog_compiler_static=
10189   if test "$GCC" = yes; then
10190     lt_prog_compiler_wl='-Wl,'
10191     lt_prog_compiler_static='-static'
10193     case $host_os in
10194       aix*)
10195       # All AIX code is PIC.
10196       if test "$host_cpu" = ia64; then
10197         # AIX 5 now supports IA64 processor
10198         lt_prog_compiler_static='-Bstatic'
10199       fi
10200       ;;
10202     amigaos*)
10203       case $host_cpu in
10204       powerpc)
10205             # see comment about AmigaOS4 .so support
10206             lt_prog_compiler_pic='-fPIC'
10207         ;;
10208       m68k)
10209             # FIXME: we need at least 68020 code to build shared libraries, but
10210             # adding the `-m68020' flag to GCC prevents building anything better,
10211             # like `-m68040'.
10212             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10213         ;;
10214       esac
10215       ;;
10217     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10218       # PIC is the default for these OSes.
10219       ;;
10221     mingw* | cygwin* | pw32* | os2* | cegcc*)
10222       # This hack is so that the source file can tell whether it is being
10223       # built for inclusion in a dll (and should export symbols for example).
10224       # Although the cygwin gcc ignores -fPIC, still need this for old-style
10225       # (--disable-auto-import) libraries
10226       lt_prog_compiler_pic='-DDLL_EXPORT'
10227       ;;
10229     darwin* | rhapsody*)
10230       # PIC is the default on this platform
10231       # Common symbols not allowed in MH_DYLIB files
10232       lt_prog_compiler_pic='-fno-common'
10233       ;;
10235     haiku*)
10236       # PIC is the default for Haiku.
10237       # The "-static" flag exists, but is broken.
10238       lt_prog_compiler_static=
10239       ;;
10241     hpux*)
10242       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10243       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
10244       # sets the default TLS model and affects inlining.
10245       case $host_cpu in
10246       hppa*64*)
10247         # +Z the default
10248         ;;
10249       *)
10250         lt_prog_compiler_pic='-fPIC'
10251         ;;
10252       esac
10253       ;;
10255     interix[3-9]*)
10256       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10257       # Instead, we relocate shared libraries at runtime.
10258       ;;
10260     msdosdjgpp*)
10261       # Just because we use GCC doesn't mean we suddenly get shared libraries
10262       # on systems that don't support them.
10263       lt_prog_compiler_can_build_shared=no
10264       enable_shared=no
10265       ;;
10267     *nto* | *qnx*)
10268       # QNX uses GNU C++, but need to define -shared option too, otherwise
10269       # it will coredump.
10270       lt_prog_compiler_pic='-fPIC -shared'
10271       ;;
10273     sysv4*MP*)
10274       if test -d /usr/nec; then
10275         lt_prog_compiler_pic=-Kconform_pic
10276       fi
10277       ;;
10279     *)
10280       lt_prog_compiler_pic='-fPIC'
10281       ;;
10282     esac
10284     case $cc_basename in
10285     nvcc*) # Cuda Compiler Driver 2.2
10286       lt_prog_compiler_wl='-Xlinker '
10287       if test -n "$lt_prog_compiler_pic"; then
10288         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10289       fi
10290       ;;
10291     esac
10292   else
10293     # PORTME Check for flag to pass linker flags through the system compiler.
10294     case $host_os in
10295     aix*)
10296       lt_prog_compiler_wl='-Wl,'
10297       if test "$host_cpu" = ia64; then
10298         # AIX 5 now supports IA64 processor
10299         lt_prog_compiler_static='-Bstatic'
10300       else
10301         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10302       fi
10303       ;;
10305     mingw* | cygwin* | pw32* | os2* | cegcc*)
10306       # This hack is so that the source file can tell whether it is being
10307       # built for inclusion in a dll (and should export symbols for example).
10308       lt_prog_compiler_pic='-DDLL_EXPORT'
10309       ;;
10311     hpux9* | hpux10* | hpux11*)
10312       lt_prog_compiler_wl='-Wl,'
10313       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10314       # not for PA HP-UX.
10315       case $host_cpu in
10316       hppa*64*|ia64*)
10317         # +Z the default
10318         ;;
10319       *)
10320         lt_prog_compiler_pic='+Z'
10321         ;;
10322       esac
10323       # Is there a better lt_prog_compiler_static that works with the bundled CC?
10324       lt_prog_compiler_static='${wl}-a ${wl}archive'
10325       ;;
10327     irix5* | irix6* | nonstopux*)
10328       lt_prog_compiler_wl='-Wl,'
10329       # PIC (with -KPIC) is the default.
10330       lt_prog_compiler_static='-non_shared'
10331       ;;
10333     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10334       case $cc_basename in
10335       # old Intel for x86_64 which still supported -KPIC.
10336       ecc*)
10337         lt_prog_compiler_wl='-Wl,'
10338         lt_prog_compiler_pic='-KPIC'
10339         lt_prog_compiler_static='-static'
10340         ;;
10341       # icc used to be incompatible with GCC.
10342       # ICC 10 doesn't accept -KPIC any more.
10343       icc* | ifort*)
10344         lt_prog_compiler_wl='-Wl,'
10345         lt_prog_compiler_pic='-fPIC'
10346         lt_prog_compiler_static='-static'
10347         ;;
10348       # Lahey Fortran 8.1.
10349       lf95*)
10350         lt_prog_compiler_wl='-Wl,'
10351         lt_prog_compiler_pic='--shared'
10352         lt_prog_compiler_static='--static'
10353         ;;
10354       nagfor*)
10355         # NAG Fortran compiler
10356         lt_prog_compiler_wl='-Wl,-Wl,,'
10357         lt_prog_compiler_pic='-PIC'
10358         lt_prog_compiler_static='-Bstatic'
10359         ;;
10360       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10361         # Portland Group compilers (*not* the Pentium gcc compiler,
10362         # which looks to be a dead project)
10363         lt_prog_compiler_wl='-Wl,'
10364         lt_prog_compiler_pic='-fpic'
10365         lt_prog_compiler_static='-Bstatic'
10366         ;;
10367       ccc*)
10368         lt_prog_compiler_wl='-Wl,'
10369         # All Alpha code is PIC.
10370         lt_prog_compiler_static='-non_shared'
10371         ;;
10372       xl* | bgxl* | bgf* | mpixl*)
10373         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10374         lt_prog_compiler_wl='-Wl,'
10375         lt_prog_compiler_pic='-qpic'
10376         lt_prog_compiler_static='-qstaticlink'
10377         ;;
10378       *)
10379         case `$CC -V 2>&1 | sed 5q` in
10380         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10381           # Sun Fortran 8.3 passes all unrecognized flags to the linker
10382           lt_prog_compiler_pic='-KPIC'
10383           lt_prog_compiler_static='-Bstatic'
10384           lt_prog_compiler_wl=''
10385           ;;
10386         *Sun\ F* | *Sun*Fortran*)
10387           lt_prog_compiler_pic='-KPIC'
10388           lt_prog_compiler_static='-Bstatic'
10389           lt_prog_compiler_wl='-Qoption ld '
10390           ;;
10391         *Sun\ C*)
10392           # Sun C 5.9
10393           lt_prog_compiler_pic='-KPIC'
10394           lt_prog_compiler_static='-Bstatic'
10395           lt_prog_compiler_wl='-Wl,'
10396           ;;
10397         *Intel*\ [CF]*Compiler*)
10398           lt_prog_compiler_wl='-Wl,'
10399           lt_prog_compiler_pic='-fPIC'
10400           lt_prog_compiler_static='-static'
10401           ;;
10402         *Portland\ Group*)
10403           lt_prog_compiler_wl='-Wl,'
10404           lt_prog_compiler_pic='-fpic'
10405           lt_prog_compiler_static='-Bstatic'
10406           ;;
10407         esac
10408         ;;
10409       esac
10410       ;;
10412     newsos6)
10413       lt_prog_compiler_pic='-KPIC'
10414       lt_prog_compiler_static='-Bstatic'
10415       ;;
10417     *nto* | *qnx*)
10418       # QNX uses GNU C++, but need to define -shared option too, otherwise
10419       # it will coredump.
10420       lt_prog_compiler_pic='-fPIC -shared'
10421       ;;
10423     osf3* | osf4* | osf5*)
10424       lt_prog_compiler_wl='-Wl,'
10425       # All OSF/1 code is PIC.
10426       lt_prog_compiler_static='-non_shared'
10427       ;;
10429     rdos*)
10430       lt_prog_compiler_static='-non_shared'
10431       ;;
10433     solaris*)
10434       lt_prog_compiler_pic='-KPIC'
10435       lt_prog_compiler_static='-Bstatic'
10436       case $cc_basename in
10437       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10438         lt_prog_compiler_wl='-Qoption ld ';;
10439       *)
10440         lt_prog_compiler_wl='-Wl,';;
10441       esac
10442       ;;
10444     sunos4*)
10445       lt_prog_compiler_wl='-Qoption ld '
10446       lt_prog_compiler_pic='-PIC'
10447       lt_prog_compiler_static='-Bstatic'
10448       ;;
10450     sysv4 | sysv4.2uw2* | sysv4.3*)
10451       lt_prog_compiler_wl='-Wl,'
10452       lt_prog_compiler_pic='-KPIC'
10453       lt_prog_compiler_static='-Bstatic'
10454       ;;
10456     sysv4*MP*)
10457       if test -d /usr/nec ;then
10458         lt_prog_compiler_pic='-Kconform_pic'
10459         lt_prog_compiler_static='-Bstatic'
10460       fi
10461       ;;
10463     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10464       lt_prog_compiler_wl='-Wl,'
10465       lt_prog_compiler_pic='-KPIC'
10466       lt_prog_compiler_static='-Bstatic'
10467       ;;
10469     unicos*)
10470       lt_prog_compiler_wl='-Wl,'
10471       lt_prog_compiler_can_build_shared=no
10472       ;;
10474     uts4*)
10475       lt_prog_compiler_pic='-pic'
10476       lt_prog_compiler_static='-Bstatic'
10477       ;;
10479     *)
10480       lt_prog_compiler_can_build_shared=no
10481       ;;
10482     esac
10483   fi
10485 case $host_os in
10486   # For platforms which do not support PIC, -DPIC is meaningless:
10487   *djgpp*)
10488     lt_prog_compiler_pic=
10489     ;;
10490   *)
10491     lt_prog_compiler_pic="$lt_prog_compiler_pic@&t@ -DPIC"
10492     ;;
10493 esac
10495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10496 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10497 if ${lt_cv_prog_compiler_pic+:} false; then :
10498   $as_echo_n "(cached) " >&6
10499 else
10500   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10503 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10504 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10507 # Check to make sure the PIC flag actually works.
10509 if test -n "$lt_prog_compiler_pic"; then
10510   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10511 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10512 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10513   $as_echo_n "(cached) " >&6
10514 else
10515   lt_cv_prog_compiler_pic_works=no
10516    ac_outfile=conftest.$ac_objext
10517    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10518    lt_compiler_flag="$lt_prog_compiler_pic@&t@ -DPIC"
10519    # Insert the option either (1) after the last *FLAGS variable, or
10520    # (2) before a word containing "conftest.", or (3) at the end.
10521    # Note that $ac_compile itself does not contain backslashes and begins
10522    # with a dollar sign (not a hyphen), so the echo should work correctly.
10523    # The option is referenced via a variable to avoid confusing sed.
10524    lt_compile=`echo "$ac_compile" | $SED \
10525    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10526    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10527    -e 's:$: $lt_compiler_flag:'`
10528    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10529    (eval "$lt_compile" 2>conftest.err)
10530    ac_status=$?
10531    cat conftest.err >&5
10532    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10533    if (exit $ac_status) && test -s "$ac_outfile"; then
10534      # The compiler can only warn and ignore the option if not recognized
10535      # So say no if there are warnings other than the usual output.
10536      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10537      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10538      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10539        lt_cv_prog_compiler_pic_works=yes
10540      fi
10541    fi
10542    $RM conftest*
10545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10546 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10548 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10549     case $lt_prog_compiler_pic in
10550      "" | " "*) ;;
10551      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10552      esac
10553 else
10554     lt_prog_compiler_pic=
10555      lt_prog_compiler_can_build_shared=no
10560     
10561     
10562     
10566     
10567     
10568     
10571 # Check to make sure the static flag actually works.
10573 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10575 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10576 if ${lt_cv_prog_compiler_static_works+:} false; then :
10577   $as_echo_n "(cached) " >&6
10578 else
10579   lt_cv_prog_compiler_static_works=no
10580    save_LDFLAGS="$LDFLAGS"
10581    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10582    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10583    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10584      # The linker can only warn and ignore the option if not recognized
10585      # So say no if there are warnings
10586      if test -s conftest.err; then
10587        # Append any errors to the config.log.
10588        cat conftest.err 1>&5
10589        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10590        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10591        if diff conftest.exp conftest.er2 >/dev/null; then
10592          lt_cv_prog_compiler_static_works=yes
10593        fi
10594      else
10595        lt_cv_prog_compiler_static_works=yes
10596      fi
10597    fi
10598    $RM -r conftest*
10599    LDFLAGS="$save_LDFLAGS"
10602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10603 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10605 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10606     :
10607 else
10608     lt_prog_compiler_static=
10612     
10613     
10614     
10617   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10618 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10619 if ${lt_cv_prog_compiler_c_o+:} false; then :
10620   $as_echo_n "(cached) " >&6
10621 else
10622   lt_cv_prog_compiler_c_o=no
10623    $RM -r conftest 2>/dev/null
10624    mkdir conftest
10625    cd conftest
10626    mkdir out
10627    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10629    lt_compiler_flag="-o out/conftest2.$ac_objext"
10630    # Insert the option either (1) after the last *FLAGS variable, or
10631    # (2) before a word containing "conftest.", or (3) at the end.
10632    # Note that $ac_compile itself does not contain backslashes and begins
10633    # with a dollar sign (not a hyphen), so the echo should work correctly.
10634    lt_compile=`echo "$ac_compile" | $SED \
10635    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10636    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10637    -e 's:$: $lt_compiler_flag:'`
10638    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10639    (eval "$lt_compile" 2>out/conftest.err)
10640    ac_status=$?
10641    cat out/conftest.err >&5
10642    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10643    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10644    then
10645      # The compiler can only warn and ignore the option if not recognized
10646      # So say no if there are warnings
10647      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10648      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10649      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10650        lt_cv_prog_compiler_c_o=yes
10651      fi
10652    fi
10653    chmod u+w . 2>&5
10654    $RM conftest*
10655    # SGI C++ compiler will create directory out/ii_files/ for
10656    # template instantiation
10657    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10658    $RM out/* && rmdir out
10659    cd ..
10660    $RM -r conftest
10661    $RM conftest*
10664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10665 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10667     
10668     
10669     
10672   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10673 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10674 if ${lt_cv_prog_compiler_c_o+:} false; then :
10675   $as_echo_n "(cached) " >&6
10676 else
10677   lt_cv_prog_compiler_c_o=no
10678    $RM -r conftest 2>/dev/null
10679    mkdir conftest
10680    cd conftest
10681    mkdir out
10682    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10684    lt_compiler_flag="-o out/conftest2.$ac_objext"
10685    # Insert the option either (1) after the last *FLAGS variable, or
10686    # (2) before a word containing "conftest.", or (3) at the end.
10687    # Note that $ac_compile itself does not contain backslashes and begins
10688    # with a dollar sign (not a hyphen), so the echo should work correctly.
10689    lt_compile=`echo "$ac_compile" | $SED \
10690    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10691    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10692    -e 's:$: $lt_compiler_flag:'`
10693    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10694    (eval "$lt_compile" 2>out/conftest.err)
10695    ac_status=$?
10696    cat out/conftest.err >&5
10697    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10698    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10699    then
10700      # The compiler can only warn and ignore the option if not recognized
10701      # So say no if there are warnings
10702      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10703      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10704      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10705        lt_cv_prog_compiler_c_o=yes
10706      fi
10707    fi
10708    chmod u+w . 2>&5
10709    $RM conftest*
10710    # SGI C++ compiler will create directory out/ii_files/ for
10711    # template instantiation
10712    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10713    $RM out/* && rmdir out
10714    cd ..
10715    $RM -r conftest
10716    $RM conftest*
10719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10720 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10725 hard_links="nottested"
10726 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10727   # do not overwrite the value of need_locks provided by the user
10728   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10729 $as_echo_n "checking if we can lock with hard links... " >&6; }
10730   hard_links=yes
10731   $RM conftest*
10732   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10733   touch conftest.a
10734   ln conftest.a conftest.b 2>&5 || hard_links=no
10735   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10736   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10737 $as_echo "$hard_links" >&6; }
10738   if test "$hard_links" = no; then
10739     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10740 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10741     need_locks=warn
10742   fi
10743 else
10744   need_locks=no
10747     
10748     
10749     
10752   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10753 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10755   runpath_var=
10756   allow_undefined_flag=
10757   always_export_symbols=no
10758   archive_cmds=
10759   archive_expsym_cmds=
10760   compiler_needs_object=no
10761   enable_shared_with_static_runtimes=no
10762   export_dynamic_flag_spec=
10763   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10764   hardcode_automatic=no
10765   hardcode_direct=no
10766   hardcode_direct_absolute=no
10767   hardcode_libdir_flag_spec=
10768   hardcode_libdir_separator=
10769   hardcode_minus_L=no
10770   hardcode_shlibpath_var=unsupported
10771   inherit_rpath=no
10772   link_all_deplibs=unknown
10773   module_cmds=
10774   module_expsym_cmds=
10775   old_archive_from_new_cmds=
10776   old_archive_from_expsyms_cmds=
10777   thread_safe_flag_spec=
10778   whole_archive_flag_spec=
10779   # include_expsyms should be a list of space-separated symbols to be *always*
10780   # included in the symbol list
10781   include_expsyms=
10782   # exclude_expsyms can be an extended regexp of symbols to exclude
10783   # it will be wrapped by ` (' and `)$', so one must not match beginning or
10784   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10785   # as well as any symbol that contains `d'.
10786   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10787   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10788   # platforms (ab)use it in PIC code, but their linkers get confused if
10789   # the symbol is explicitly referenced.  Since portable code cannot
10790   # rely on this symbol name, it's probably fine to never include it in
10791   # preloaded symbol tables.
10792   # Exclude shared library initialization/finalization symbols.
10793   extract_expsyms_cmds=
10795   case $host_os in
10796   cygwin* | mingw* | pw32* | cegcc*)
10797     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10798     # When not using gcc, we currently assume that we are using
10799     # Microsoft Visual C++.
10800     if test "$GCC" != yes; then
10801       with_gnu_ld=no
10802     fi
10803     ;;
10804   interix*)
10805     # we just hope/assume this is gcc and not c89 (= MSVC++)
10806     with_gnu_ld=yes
10807     ;;
10808   openbsd*)
10809     with_gnu_ld=no
10810     ;;
10811   linux* | k*bsd*-gnu | gnu*)
10812     link_all_deplibs=no
10813     ;;
10814   esac
10816   ld_shlibs=yes
10818   # On some targets, GNU ld is compatible enough with the native linker
10819   # that we're better off using the native interface for both.
10820   lt_use_gnu_ld_interface=no
10821   if test "$with_gnu_ld" = yes; then
10822     case $host_os in
10823       aix*)
10824         # The AIX port of GNU ld has always aspired to compatibility
10825         # with the native linker.  However, as the warning in the GNU ld
10826         # block says, versions before 2.19.5* couldn't really create working
10827         # shared libraries, regardless of the interface used.
10828         case `$LD -v 2>&1` in
10829           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10830           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10831           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10832           *)
10833             lt_use_gnu_ld_interface=yes
10834             ;;
10835         esac
10836         ;;
10837       *)
10838         lt_use_gnu_ld_interface=yes
10839         ;;
10840     esac
10841   fi
10843   if test "$lt_use_gnu_ld_interface" = yes; then
10844     # If archive_cmds runs LD, not CC, wlarc should be empty
10845     wlarc='${wl}'
10847     # Set some defaults for GNU ld with shared library support. These
10848     # are reset later if shared libraries are not supported. Putting them
10849     # here allows them to be overridden if necessary.
10850     runpath_var=LD_RUN_PATH
10851     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10852     export_dynamic_flag_spec='${wl}--export-dynamic'
10853     # ancient GNU ld didn't support --whole-archive et. al.
10854     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10855       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10856     else
10857       whole_archive_flag_spec=
10858     fi
10859     supports_anon_versioning=no
10860     case `$LD -v 2>&1` in
10861       *GNU\ gold*) supports_anon_versioning=yes ;;
10862       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10863       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10864       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10865       *\ 2.11.*) ;; # other 2.11 versions
10866       *) supports_anon_versioning=yes ;;
10867     esac
10869     # See if GNU ld supports shared libraries.
10870     case $host_os in
10871     aix[3-9]*)
10872       # On AIX/PPC, the GNU linker is very broken
10873       if test "$host_cpu" != ia64; then
10874         ld_shlibs=no
10875         cat <<_LT_EOF 1>&2
10877 *** Warning: the GNU linker, at least up to release 2.19, is reported
10878 *** to be unable to reliably create shared libraries on AIX.
10879 *** Therefore, libtool is disabling shared libraries support.  If you
10880 *** really care for shared libraries, you may want to install binutils
10881 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10882 *** You will then need to restart the configuration process.
10884 _LT_EOF
10885       fi
10886       ;;
10888     amigaos*)
10889       case $host_cpu in
10890       powerpc)
10891             # see comment about AmigaOS4 .so support
10892             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10893             archive_expsym_cmds=''
10894         ;;
10895       m68k)
10896             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)'
10897             hardcode_libdir_flag_spec='-L$libdir'
10898             hardcode_minus_L=yes
10899         ;;
10900       esac
10901       ;;
10903     beos*)
10904       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10905         allow_undefined_flag=unsupported
10906         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10907         # support --undefined.  This deserves some investigation.  FIXME
10908         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10909       else
10910         ld_shlibs=no
10911       fi
10912       ;;
10914     cygwin* | mingw* | pw32* | cegcc*)
10915       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10916       # as there is no search path for DLLs.
10917       hardcode_libdir_flag_spec='-L$libdir'
10918       export_dynamic_flag_spec='${wl}--export-all-symbols'
10919       allow_undefined_flag=unsupported
10920       always_export_symbols=no
10921       enable_shared_with_static_runtimes=yes
10922       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'
10923       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10925       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10926         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10927         # If the export-symbols file already is a .def file (1st line
10928         # is EXPORTS), use it as is; otherwise, prepend...
10929         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10930           cp $export_symbols $output_objdir/$soname.def;
10931         else
10932           echo EXPORTS > $output_objdir/$soname.def;
10933           cat $export_symbols >> $output_objdir/$soname.def;
10934         fi~
10935         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10936       else
10937         ld_shlibs=no
10938       fi
10939       ;;
10941     haiku*)
10942       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10943       link_all_deplibs=yes
10944       ;;
10946     interix[3-9]*)
10947       hardcode_direct=no
10948       hardcode_shlibpath_var=no
10949       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10950       export_dynamic_flag_spec='${wl}-E'
10951       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10952       # Instead, shared libraries are loaded at an image base (0x10000000 by
10953       # default) and relocated if they conflict, which is a slow very memory
10954       # consuming and fragmenting process.  To avoid this, we pick a random,
10955       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10956       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10957       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10958       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'
10959       ;;
10961     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10962       tmp_diet=no
10963       if test "$host_os" = linux-dietlibc; then
10964         case $cc_basename in
10965           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10966         esac
10967       fi
10968       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10969          && test "$tmp_diet" = no
10970       then
10971         tmp_addflag=' $pic_flag'
10972         tmp_sharedflag='-shared'
10973         case $cc_basename,$host_cpu in
10974         pgcc*)                          # Portland Group C compiler
10975           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'
10976           tmp_addflag=' $pic_flag'
10977           ;;
10978         pgf77* | pgf90* | pgf95* | pgfortran*)
10979                                         # Portland Group f77 and f90 compilers
10980           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'
10981           tmp_addflag=' $pic_flag -Mnomain' ;;
10982         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10983           tmp_addflag=' -i_dynamic' ;;
10984         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10985           tmp_addflag=' -i_dynamic -nofor_main' ;;
10986         ifc* | ifort*)                  # Intel Fortran compiler
10987           tmp_addflag=' -nofor_main' ;;
10988         lf95*)                          # Lahey Fortran 8.1
10989           whole_archive_flag_spec=
10990           tmp_sharedflag='--shared' ;;
10991         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10992           tmp_sharedflag='-qmkshrobj'
10993           tmp_addflag= ;;
10994         nvcc*)  # Cuda Compiler Driver 2.2
10995           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'
10996           compiler_needs_object=yes
10997           ;;
10998         esac
10999         case `$CC -V 2>&1 | sed 5q` in
11000         *Sun\ C*)                       # Sun C 5.9
11001           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'
11002           compiler_needs_object=yes
11003           tmp_sharedflag='-G' ;;
11004         *Sun\ F*)                       # Sun Fortran 8.3
11005           tmp_sharedflag='-G' ;;
11006         esac
11007         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11009         if test "x$supports_anon_versioning" = xyes; then
11010           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11011             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11012             echo "local: *; };" >> $output_objdir/$libname.ver~
11013             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11014         fi
11016         case $cc_basename in
11017         xlf* | bgf* | bgxlf* | mpixlf*)
11018           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11019           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11020           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11021           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11022           if test "x$supports_anon_versioning" = xyes; then
11023             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11024               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11025               echo "local: *; };" >> $output_objdir/$libname.ver~
11026               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11027           fi
11028           ;;
11029         esac
11030       else
11031         ld_shlibs=no
11032       fi
11033       ;;
11035     netbsd* | netbsdelf*-gnu)
11036       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11037         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11038         wlarc=
11039       else
11040         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11041         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11042       fi
11043       ;;
11045     solaris*)
11046       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11047         ld_shlibs=no
11048         cat <<_LT_EOF 1>&2
11050 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11051 *** create shared libraries on Solaris systems.  Therefore, libtool
11052 *** is disabling shared libraries support.  We urge you to upgrade GNU
11053 *** binutils to release 2.9.1 or newer.  Another option is to modify
11054 *** your PATH or compiler configuration so that the native linker is
11055 *** used, and then restart.
11057 _LT_EOF
11058       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11059         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11060         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11061       else
11062         ld_shlibs=no
11063       fi
11064       ;;
11066     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11067       case `$LD -v 2>&1` in
11068         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11069         ld_shlibs=no
11070         cat <<_LT_EOF 1>&2
11072 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11073 *** reliably create shared libraries on SCO systems.  Therefore, libtool
11074 *** is disabling shared libraries support.  We urge you to upgrade GNU
11075 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
11076 *** your PATH or compiler configuration so that the native linker is
11077 *** used, and then restart.
11079 _LT_EOF
11080         ;;
11081         *)
11082           # For security reasons, it is highly recommended that you always
11083           # use absolute paths for naming shared libraries, and exclude the
11084           # DT_RUNPATH tag from executables and libraries.  But doing so
11085           # requires that you compile everything twice, which is a pain.
11086           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11087             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11088             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11089             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11090           else
11091             ld_shlibs=no
11092           fi
11093         ;;
11094       esac
11095       ;;
11097     sunos4*)
11098       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11099       wlarc=
11100       hardcode_direct=yes
11101       hardcode_shlibpath_var=no
11102       ;;
11104     *)
11105       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11106         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11107         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11108       else
11109         ld_shlibs=no
11110       fi
11111       ;;
11112     esac
11114     if test "$ld_shlibs" = no; then
11115       runpath_var=
11116       hardcode_libdir_flag_spec=
11117       export_dynamic_flag_spec=
11118       whole_archive_flag_spec=
11119     fi
11120   else
11121     # PORTME fill in a description of your system's linker (not GNU ld)
11122     case $host_os in
11123     aix3*)
11124       allow_undefined_flag=unsupported
11125       always_export_symbols=yes
11126       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'
11127       # Note: this linker hardcodes the directories in LIBPATH if there
11128       # are no directories specified by -L.
11129       hardcode_minus_L=yes
11130       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11131         # Neither direct hardcoding nor static linking is supported with a
11132         # broken collect2.
11133         hardcode_direct=unsupported
11134       fi
11135       ;;
11137     aix[4-9]*)
11138       if test "$host_cpu" = ia64; then
11139         # On IA64, the linker does run time linking by default, so we don't
11140         # have to do anything special.
11141         aix_use_runtimelinking=no
11142         exp_sym_flag='-Bexport'
11143         no_entry_flag=""
11144       else
11145         # If we're using GNU nm, then we don't want the "-C" option.
11146         # -C means demangle to AIX nm, but means don't demangle with GNU nm
11147         # Also, AIX nm treats weak defined symbols like other global
11148         # defined symbols, whereas GNU nm marks them as "W".
11149         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11150           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'
11151         else
11152           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'
11153         fi
11154         aix_use_runtimelinking=no
11156         # Test if we are trying to use run time linking or normal
11157         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11158         # need to do runtime linking.
11159         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11160           for ld_flag in $LDFLAGS; do
11161           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11162             aix_use_runtimelinking=yes
11163             break
11164           fi
11165           done
11166           ;;
11167         esac
11169         exp_sym_flag='-bexport'
11170         no_entry_flag='-bnoentry'
11171       fi
11173       # When large executables or shared objects are built, AIX ld can
11174       # have problems creating the table of contents.  If linking a library
11175       # or program results in "error TOC overflow" add -mminimal-toc to
11176       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11177       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11179       archive_cmds=''
11180       hardcode_direct=yes
11181       hardcode_direct_absolute=yes
11182       hardcode_libdir_separator=':'
11183       link_all_deplibs=yes
11184       file_list_spec='${wl}-f,'
11186       if test "$GCC" = yes; then
11187         case $host_os in aix4.[012]|aix4.[012].*)
11188         # We only want to do this on AIX 4.2 and lower, the check
11189         # below for broken collect2 doesn't work under 4.3+
11190           collect2name=`${CC} -print-prog-name=collect2`
11191           if test -f "$collect2name" &&
11192            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11193           then
11194           # We have reworked collect2
11195           :
11196           else
11197           # We have old collect2
11198           hardcode_direct=unsupported
11199           # It fails to find uninstalled libraries when the uninstalled
11200           # path is not listed in the libpath.  Setting hardcode_minus_L
11201           # to unsupported forces relinking
11202           hardcode_minus_L=yes
11203           hardcode_libdir_flag_spec='-L$libdir'
11204           hardcode_libdir_separator=
11205           fi
11206           ;;
11207         esac
11208         shared_flag='-shared'
11209         if test "$aix_use_runtimelinking" = yes; then
11210           shared_flag="$shared_flag "'${wl}-G'
11211         fi
11212         link_all_deplibs=no
11213       else
11214         # not using gcc
11215         if test "$host_cpu" = ia64; then
11216         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11217         # chokes on -Wl,-G. The following line is correct:
11218           shared_flag='-G'
11219         else
11220           if test "$aix_use_runtimelinking" = yes; then
11221             shared_flag='${wl}-G'
11222           else
11223             shared_flag='${wl}-bM:SRE'
11224           fi
11225         fi
11226       fi
11228       export_dynamic_flag_spec='${wl}-bexpall'
11229       # It seems that -bexpall does not export symbols beginning with
11230       # underscore (_), so it is better to generate a list of symbols to export.
11231       always_export_symbols=yes
11232       if test "$aix_use_runtimelinking" = yes; then
11233         # Warning - without using the other runtime loading flags (-brtl),
11234         # -berok will link without error, but may produce a broken library.
11235         allow_undefined_flag='-berok'
11236         # Determine the default libpath from the value encoded in an
11237         # empty executable.
11238         if test "${lt_cv_aix_libpath+set}" = set; then
11239   aix_libpath=$lt_cv_aix_libpath
11240 else
11241   if ${lt_cv_aix_libpath_+:} false; then :
11242   $as_echo_n "(cached) " >&6
11243 else
11244   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11245 /* end confdefs.h.  */
11248 main ()
11251   ;
11252   return 0;
11254 _ACEOF
11255 if ac_fn_c_try_link "$LINENO"; then :
11256   
11257   lt_aix_libpath_sed='
11258       /Import File Strings/,/^$/ {
11259           /^0/ {
11260               s/^0  *\([^ ]*\) *$/\1/
11261               p
11262           }
11263       }'
11264   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11265   # Check for a 64-bit object if we didn't find anything.
11266   if test -z "$lt_cv_aix_libpath_"; then
11267     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11268   fi
11270 rm -f core conftest.err conftest.$ac_objext \
11271     conftest$ac_exeext conftest.$ac_ext
11272   if test -z "$lt_cv_aix_libpath_"; then
11273     lt_cv_aix_libpath_="/usr/lib:/lib"
11274   fi
11275   
11278   aix_libpath=$lt_cv_aix_libpath_
11281         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11282         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"
11283       else
11284         if test "$host_cpu" = ia64; then
11285           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11286           allow_undefined_flag="-z nodefs"
11287           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"
11288         else
11289          # Determine the default libpath from the value encoded in an
11290          # empty executable.
11291          if test "${lt_cv_aix_libpath+set}" = set; then
11292   aix_libpath=$lt_cv_aix_libpath
11293 else
11294   if ${lt_cv_aix_libpath_+:} false; then :
11295   $as_echo_n "(cached) " >&6
11296 else
11297   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11298 /* end confdefs.h.  */
11301 main ()
11304   ;
11305   return 0;
11307 _ACEOF
11308 if ac_fn_c_try_link "$LINENO"; then :
11309   
11310   lt_aix_libpath_sed='
11311       /Import File Strings/,/^$/ {
11312           /^0/ {
11313               s/^0  *\([^ ]*\) *$/\1/
11314               p
11315           }
11316       }'
11317   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11318   # Check for a 64-bit object if we didn't find anything.
11319   if test -z "$lt_cv_aix_libpath_"; then
11320     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11321   fi
11323 rm -f core conftest.err conftest.$ac_objext \
11324     conftest$ac_exeext conftest.$ac_ext
11325   if test -z "$lt_cv_aix_libpath_"; then
11326     lt_cv_aix_libpath_="/usr/lib:/lib"
11327   fi
11328   
11331   aix_libpath=$lt_cv_aix_libpath_
11334          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11335           # Warning - without using the other run time loading flags,
11336           # -berok will link without error, but may produce a broken library.
11337           no_undefined_flag=' ${wl}-bernotok'
11338           allow_undefined_flag=' ${wl}-berok'
11339           if test "$with_gnu_ld" = yes; then
11340             # We only use this code for GNU lds that support --whole-archive.
11341             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11342           else
11343             # Exported symbols can be pulled into shared objects from archives
11344             whole_archive_flag_spec='$convenience'
11345           fi
11346           archive_cmds_need_lc=yes
11347           # This is similar to how AIX traditionally builds its shared libraries.
11348           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'
11349         fi
11350       fi
11351       ;;
11353     amigaos*)
11354       case $host_cpu in
11355       powerpc)
11356             # see comment about AmigaOS4 .so support
11357             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11358             archive_expsym_cmds=''
11359         ;;
11360       m68k)
11361             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)'
11362             hardcode_libdir_flag_spec='-L$libdir'
11363             hardcode_minus_L=yes
11364         ;;
11365       esac
11366       ;;
11368     bsdi[45]*)
11369       export_dynamic_flag_spec=-rdynamic
11370       ;;
11372     cygwin* | mingw* | pw32* | cegcc*)
11373       # When not using gcc, we currently assume that we are using
11374       # Microsoft Visual C++.
11375       # hardcode_libdir_flag_spec is actually meaningless, as there is
11376       # no search path for DLLs.
11377       case $cc_basename in
11378       cl*)
11379         # Native MSVC
11380         hardcode_libdir_flag_spec=' '
11381         allow_undefined_flag=unsupported
11382         always_export_symbols=yes
11383         file_list_spec='@'
11384         # Tell ltmain to make .lib files, not .a files.
11385         libext=lib
11386         # Tell ltmain to make .dll files, not .so files.
11387         shrext_cmds=".dll"
11388         # FIXME: Setting linknames here is a bad hack.
11389         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
11390         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11391             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
11392           else
11393             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
11394           fi~
11395           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11396           linknames='
11397         # The linker will not automatically build a static lib if we build a DLL.
11398         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11399         enable_shared_with_static_runtimes=yes
11400         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11401         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11402         # Don't use ranlib
11403         old_postinstall_cmds='chmod 644 $oldlib'
11404         postlink_cmds='lt_outputfile="@OUTPUT@"~
11405           lt_tool_outputfile="@TOOL_OUTPUT@"~
11406           case $lt_outputfile in
11407             *.exe|*.EXE) ;;
11408             *)
11409               lt_outputfile="$lt_outputfile.exe"
11410               lt_tool_outputfile="$lt_tool_outputfile.exe"
11411               ;;
11412           esac~
11413           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
11414             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11415             $RM "$lt_outputfile.manifest";
11416           fi'
11417         ;;
11418       *)
11419         # Assume MSVC wrapper
11420         hardcode_libdir_flag_spec=' '
11421         allow_undefined_flag=unsupported
11422         # Tell ltmain to make .lib files, not .a files.
11423         libext=lib
11424         # Tell ltmain to make .dll files, not .so files.
11425         shrext_cmds=".dll"
11426         # FIXME: Setting linknames here is a bad hack.
11427         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11428         # The linker will automatically build a .lib file if we build a DLL.
11429         old_archive_from_new_cmds='true'
11430         # FIXME: Should let the user specify the lib program.
11431         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11432         enable_shared_with_static_runtimes=yes
11433         ;;
11434       esac
11435       ;;
11437     darwin* | rhapsody*)
11438       
11439   
11440   archive_cmds_need_lc=no
11441   hardcode_direct=no
11442   hardcode_automatic=yes
11443   hardcode_shlibpath_var=unsupported
11444   if test "$lt_cv_ld_force_load" = "yes"; then
11445     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\"`'
11446     
11447   else
11448     whole_archive_flag_spec=''
11449   fi
11450   link_all_deplibs=yes
11451   allow_undefined_flag="$_lt_dar_allow_undefined"
11452   case $cc_basename in
11453      ifort*) _lt_dar_can_shared=yes ;;
11454      *) _lt_dar_can_shared=$GCC ;;
11455   esac
11456   if test "$_lt_dar_can_shared" = "yes"; then
11457     output_verbose_link_cmd=func_echo_all
11458     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11459     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11460     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}"
11461     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}"
11462     
11463   else
11464   ld_shlibs=no
11465   fi
11467       ;;
11469     dgux*)
11470       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11471       hardcode_libdir_flag_spec='-L$libdir'
11472       hardcode_shlibpath_var=no
11473       ;;
11475     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11476     # support.  Future versions do this automatically, but an explicit c++rt0.o
11477     # does not break anything, and helps significantly (at the cost of a little
11478     # extra space).
11479     freebsd2.2*)
11480       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11481       hardcode_libdir_flag_spec='-R$libdir'
11482       hardcode_direct=yes
11483       hardcode_shlibpath_var=no
11484       ;;
11486     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11487     freebsd2.*)
11488       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11489       hardcode_direct=yes
11490       hardcode_minus_L=yes
11491       hardcode_shlibpath_var=no
11492       ;;
11494     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11495     freebsd* | dragonfly*)
11496       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11497       hardcode_libdir_flag_spec='-R$libdir'
11498       hardcode_direct=yes
11499       hardcode_shlibpath_var=no
11500       ;;
11502     hpux9*)
11503       if test "$GCC" = yes; then
11504         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'
11505       else
11506         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'
11507       fi
11508       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11509       hardcode_libdir_separator=:
11510       hardcode_direct=yes
11512       # hardcode_minus_L: Not really in the search PATH,
11513       # but as the default location of the library.
11514       hardcode_minus_L=yes
11515       export_dynamic_flag_spec='${wl}-E'
11516       ;;
11518     hpux10*)
11519       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11520         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11521       else
11522         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11523       fi
11524       if test "$with_gnu_ld" = no; then
11525         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11526         hardcode_libdir_separator=:
11527         hardcode_direct=yes
11528         hardcode_direct_absolute=yes
11529         export_dynamic_flag_spec='${wl}-E'
11530         # hardcode_minus_L: Not really in the search PATH,
11531         # but as the default location of the library.
11532         hardcode_minus_L=yes
11533       fi
11534       ;;
11536     hpux11*)
11537       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11538         case $host_cpu in
11539         hppa*64*)
11540           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11541           ;;
11542         ia64*)
11543           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11544           ;;
11545         *)
11546           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11547           ;;
11548         esac
11549       else
11550         case $host_cpu in
11551         hppa*64*)
11552           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11553           ;;
11554         ia64*)
11555           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11556           ;;
11557         *)
11558         
11559           # Older versions of the 11.00 compiler do not understand -b yet
11560           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11561           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11562 $as_echo_n "checking if $CC understands -b... " >&6; }
11563 if ${lt_cv_prog_compiler__b+:} false; then :
11564   $as_echo_n "(cached) " >&6
11565 else
11566   lt_cv_prog_compiler__b=no
11567    save_LDFLAGS="$LDFLAGS"
11568    LDFLAGS="$LDFLAGS -b"
11569    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11570    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11571      # The linker can only warn and ignore the option if not recognized
11572      # So say no if there are warnings
11573      if test -s conftest.err; then
11574        # Append any errors to the config.log.
11575        cat conftest.err 1>&5
11576        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11577        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11578        if diff conftest.exp conftest.er2 >/dev/null; then
11579          lt_cv_prog_compiler__b=yes
11580        fi
11581      else
11582        lt_cv_prog_compiler__b=yes
11583      fi
11584    fi
11585    $RM -r conftest*
11586    LDFLAGS="$save_LDFLAGS"
11589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11590 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11592 if test x"$lt_cv_prog_compiler__b" = xyes; then
11593     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11594 else
11595     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11598           ;;
11599         esac
11600       fi
11601       if test "$with_gnu_ld" = no; then
11602         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11603         hardcode_libdir_separator=:
11605         case $host_cpu in
11606         hppa*64*|ia64*)
11607           hardcode_direct=no
11608           hardcode_shlibpath_var=no
11609           ;;
11610         *)
11611           hardcode_direct=yes
11612           hardcode_direct_absolute=yes
11613           export_dynamic_flag_spec='${wl}-E'
11615           # hardcode_minus_L: Not really in the search PATH,
11616           # but as the default location of the library.
11617           hardcode_minus_L=yes
11618           ;;
11619         esac
11620       fi
11621       ;;
11623     irix5* | irix6* | nonstopux*)
11624       if test "$GCC" = yes; then
11625         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'
11626         # Try to use the -exported_symbol ld option, if it does not
11627         # work, assume that -exports_file does not work either and
11628         # implicitly export all symbols.
11629         # This should be the same for all languages, so no per-tag cache variable.
11630         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11631 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11632 if ${lt_cv_irix_exported_symbol+:} false; then :
11633   $as_echo_n "(cached) " >&6
11634 else
11635   save_LDFLAGS="$LDFLAGS"
11636            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11637            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11638 /* end confdefs.h.  */
11639 int foo (void) { return 0; }
11640 _ACEOF
11641 if ac_fn_c_try_link "$LINENO"; then :
11642   lt_cv_irix_exported_symbol=yes
11643 else
11644   lt_cv_irix_exported_symbol=no
11646 rm -f core conftest.err conftest.$ac_objext \
11647     conftest$ac_exeext conftest.$ac_ext
11648            LDFLAGS="$save_LDFLAGS"
11650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11651 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11652         if test "$lt_cv_irix_exported_symbol" = yes; then
11653           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'
11654         fi
11655       else
11656         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'
11657         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'
11658       fi
11659       archive_cmds_need_lc='no'
11660       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11661       hardcode_libdir_separator=:
11662       inherit_rpath=yes
11663       link_all_deplibs=yes
11664       ;;
11666     netbsd* | netbsdelf*-gnu)
11667       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11668         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11669       else
11670         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11671       fi
11672       hardcode_libdir_flag_spec='-R$libdir'
11673       hardcode_direct=yes
11674       hardcode_shlibpath_var=no
11675       ;;
11677     newsos6)
11678       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11679       hardcode_direct=yes
11680       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11681       hardcode_libdir_separator=:
11682       hardcode_shlibpath_var=no
11683       ;;
11685     *nto* | *qnx*)
11686       ;;
11688     openbsd*)
11689       if test -f /usr/libexec/ld.so; then
11690         hardcode_direct=yes
11691         hardcode_shlibpath_var=no
11692         hardcode_direct_absolute=yes
11693         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11694           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11695           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11696           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11697           export_dynamic_flag_spec='${wl}-E'
11698         else
11699           case $host_os in
11700            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11701              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11702              hardcode_libdir_flag_spec='-R$libdir'
11703              ;;
11704            *)
11705              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11706              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11707              ;;
11708           esac
11709         fi
11710       else
11711         ld_shlibs=no
11712       fi
11713       ;;
11715     os2*)
11716       hardcode_libdir_flag_spec='-L$libdir'
11717       hardcode_minus_L=yes
11718       allow_undefined_flag=unsupported
11719       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'
11720       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11721       ;;
11723     osf3*)
11724       if test "$GCC" = yes; then
11725         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11726         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'
11727       else
11728         allow_undefined_flag=' -expect_unresolved \*'
11729         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'
11730       fi
11731       archive_cmds_need_lc='no'
11732       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11733       hardcode_libdir_separator=:
11734       ;;
11736     osf4* | osf5*)      # as osf3* with the addition of -msym flag
11737       if test "$GCC" = yes; then
11738         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11739         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'
11740         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11741       else
11742         allow_undefined_flag=' -expect_unresolved \*'
11743         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'
11744         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~
11745         $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'
11747         # Both c and cxx compiler support -rpath directly
11748         hardcode_libdir_flag_spec='-rpath $libdir'
11749       fi
11750       archive_cmds_need_lc='no'
11751       hardcode_libdir_separator=:
11752       ;;
11754     solaris*)
11755       no_undefined_flag=' -z defs'
11756       if test "$GCC" = yes; then
11757         wlarc='${wl}'
11758         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11759         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11760           $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'
11761       else
11762         case `$CC -V 2>&1` in
11763         *"Compilers 5.0"*)
11764           wlarc=''
11765           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11766           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11767           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11768           ;;
11769         *)
11770           wlarc='${wl}'
11771           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11772           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11773           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11774           ;;
11775         esac
11776       fi
11777       hardcode_libdir_flag_spec='-R$libdir'
11778       hardcode_shlibpath_var=no
11779       case $host_os in
11780       solaris2.[0-5] | solaris2.[0-5].*) ;;
11781       *)
11782         # The compiler driver will combine and reorder linker options,
11783         # but understands `-z linker_flag'.  GCC discards it without `$wl',
11784         # but is careful enough not to reorder.
11785         # Supported since Solaris 2.6 (maybe 2.5.1?)
11786         if test "$GCC" = yes; then
11787           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11788         else
11789           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11790         fi
11791         ;;
11792       esac
11793       link_all_deplibs=yes
11794       ;;
11796     sunos4*)
11797       if test "x$host_vendor" = xsequent; then
11798         # Use $CC to link under sequent, because it throws in some extra .o
11799         # files that make .init and .fini sections work.
11800         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11801       else
11802         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11803       fi
11804       hardcode_libdir_flag_spec='-L$libdir'
11805       hardcode_direct=yes
11806       hardcode_minus_L=yes
11807       hardcode_shlibpath_var=no
11808       ;;
11810     sysv4)
11811       case $host_vendor in
11812         sni)
11813           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11814           hardcode_direct=yes # is this really true???
11815         ;;
11816         siemens)
11817           ## LD is ld it makes a PLAMLIB
11818           ## CC just makes a GrossModule.
11819           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11820           reload_cmds='$CC -r -o $output$reload_objs'
11821           hardcode_direct=no
11822         ;;
11823         motorola)
11824           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11825           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11826         ;;
11827       esac
11828       runpath_var='LD_RUN_PATH'
11829       hardcode_shlibpath_var=no
11830       ;;
11832     sysv4.3*)
11833       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11834       hardcode_shlibpath_var=no
11835       export_dynamic_flag_spec='-Bexport'
11836       ;;
11838     sysv4*MP*)
11839       if test -d /usr/nec; then
11840         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11841         hardcode_shlibpath_var=no
11842         runpath_var=LD_RUN_PATH
11843         hardcode_runpath_var=yes
11844         ld_shlibs=yes
11845       fi
11846       ;;
11848     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11849       no_undefined_flag='${wl}-z,text'
11850       archive_cmds_need_lc=no
11851       hardcode_shlibpath_var=no
11852       runpath_var='LD_RUN_PATH'
11854       if test "$GCC" = yes; then
11855         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11856         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11857       else
11858         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11859         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11860       fi
11861       ;;
11863     sysv5* | sco3.2v5* | sco5v6*)
11864       # Note: We can NOT use -z defs as we might desire, because we do not
11865       # link with -lc, and that would cause any symbols used from libc to
11866       # always be unresolved, which means just about no library would
11867       # ever link correctly.  If we're not using GNU ld we use -z text
11868       # though, which does catch some bad symbols but isn't as heavy-handed
11869       # as -z defs.
11870       no_undefined_flag='${wl}-z,text'
11871       allow_undefined_flag='${wl}-z,nodefs'
11872       archive_cmds_need_lc=no
11873       hardcode_shlibpath_var=no
11874       hardcode_libdir_flag_spec='${wl}-R,$libdir'
11875       hardcode_libdir_separator=':'
11876       link_all_deplibs=yes
11877       export_dynamic_flag_spec='${wl}-Bexport'
11878       runpath_var='LD_RUN_PATH'
11880       if test "$GCC" = yes; then
11881         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11882         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11883       else
11884         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11885         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11886       fi
11887       ;;
11889     uts4*)
11890       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11891       hardcode_libdir_flag_spec='-L$libdir'
11892       hardcode_shlibpath_var=no
11893       ;;
11895     *)
11896       ld_shlibs=no
11897       ;;
11898     esac
11900     if test x$host_vendor = xsni; then
11901       case $host in
11902       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11903         export_dynamic_flag_spec='${wl}-Blargedynsym'
11904         ;;
11905       esac
11906     fi
11907   fi
11909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11910 $as_echo "$ld_shlibs" >&6; }
11911 test "$ld_shlibs" = no && can_build_shared=no
11913 with_gnu_ld=$with_gnu_ld
11916     
11917     
11918     
11920     
11921     
11922     
11924     
11925     
11926     
11930 # Do we need to explicitly link libc?
11932 case "x$archive_cmds_need_lc" in
11933 x|xyes)
11934   # Assume -lc should be added
11935   archive_cmds_need_lc=yes
11937   if test "$enable_shared" = yes && test "$GCC" = yes; then
11938     case $archive_cmds in
11939     *'~'*)
11940       # FIXME: we may have to deal with multi-command sequences.
11941       ;;
11942     '$CC '*)
11943       # Test whether the compiler implicitly links with -lc since on some
11944       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11945       # to ld, don't add -lc before -lgcc.
11946       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11947 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11948 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11949   $as_echo_n "(cached) " >&6
11950 else
11951   $RM conftest*
11952         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11954         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11955   (eval $ac_compile) 2>&5
11956   ac_status=$?
11957   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11958   test $ac_status = 0; } 2>conftest.err; then
11959           soname=conftest
11960           lib=conftest
11961           libobjs=conftest.$ac_objext
11962           deplibs=
11963           wl=$lt_prog_compiler_wl
11964           pic_flag=$lt_prog_compiler_pic
11965           compiler_flags=-v
11966           linker_flags=-v
11967           verstring=
11968           output_objdir=.
11969           libname=conftest
11970           lt_save_allow_undefined_flag=$allow_undefined_flag
11971           allow_undefined_flag=
11972           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11973   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11974   ac_status=$?
11975   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11976   test $ac_status = 0; }
11977           then
11978             lt_cv_archive_cmds_need_lc=no
11979           else
11980             lt_cv_archive_cmds_need_lc=yes
11981           fi
11982           allow_undefined_flag=$lt_save_allow_undefined_flag
11983         else
11984           cat conftest.err 1>&5
11985         fi
11986         $RM conftest*
11987         
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11990 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11991       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11992       ;;
11993     esac
11994   fi
11995   ;;
11996 esac
11999     
12000     
12001     
12004     
12005     
12006     
12009     
12010     
12011     
12014     
12015     
12016     
12019     
12020     
12021     
12024     
12025     
12026     
12029     
12030     
12031     
12034     
12035     
12036     
12039     
12040     
12041     
12044     
12045     
12046     
12049     
12050     
12051     
12054     
12055     
12056     
12059     
12060     
12061     
12064     
12065     
12066     
12069     
12070     
12071     
12074     
12075     
12076     
12079     
12080     
12081     
12084     
12085     
12086     
12089     
12090     
12091     
12094     
12095     
12096     
12099     
12100     
12101     
12104     
12105     
12106     
12109     
12110     
12111     
12114     
12115     
12116     
12119     
12120     
12121     
12124     
12125     
12126     
12129     
12130     
12131     
12134     
12135     
12136     
12139     
12140     
12141     
12144     
12145     
12146     
12149   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12150 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12152 if test "$GCC" = yes; then
12153   case $host_os in
12154     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12155     *) lt_awk_arg="/^libraries:/" ;;
12156   esac
12157   case $host_os in
12158     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
12159     *) lt_sed_strip_eq="s,=/,/,g" ;;
12160   esac
12161   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12162   case $lt_search_path_spec in
12163   *\;*)
12164     # if the path contains ";" then we assume it to be the separator
12165     # otherwise default to the standard path separator (i.e. ":") - it is
12166     # assumed that no part of a normal pathname contains ";" but that should
12167     # okay in the real world where ";" in dirpaths is itself problematic.
12168     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12169     ;;
12170   *)
12171     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12172     ;;
12173   esac
12174   # Ok, now we have the path, separated by spaces, we can step through it
12175   # and add multilib dir if necessary.
12176   lt_tmp_lt_search_path_spec=
12177   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12178   for lt_sys_path in $lt_search_path_spec; do
12179     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12180       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12181     else
12182       test -d "$lt_sys_path" && \
12183         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12184     fi
12185   done
12186   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12187 BEGIN {RS=" "; FS="/|\n";} {
12188   lt_foo="";
12189   lt_count=0;
12190   for (lt_i = NF; lt_i > 0; lt_i--) {
12191     if ($lt_i != "" && $lt_i != ".") {
12192       if ($lt_i == "..") {
12193         lt_count++;
12194       } else {
12195         if (lt_count == 0) {
12196           lt_foo="/" $lt_i lt_foo;
12197         } else {
12198           lt_count--;
12199         }
12200       }
12201     }
12202   }
12203   if (lt_foo != "") { lt_freq[lt_foo]++; }
12204   if (lt_freq[lt_foo] == 1) { print lt_foo; }
12206   # AWK program above erroneously prepends '/' to C:/dos/paths
12207   # for these hosts.
12208   case $host_os in
12209     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12210       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
12211   esac
12212   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12213 else
12214   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12216 library_names_spec=
12217 libname_spec='lib$name'
12218 soname_spec=
12219 shrext_cmds=".so"
12220 postinstall_cmds=
12221 postuninstall_cmds=
12222 finish_cmds=
12223 finish_eval=
12224 shlibpath_var=
12225 shlibpath_overrides_runpath=unknown
12226 version_type=none
12227 dynamic_linker="$host_os ld.so"
12228 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12229 need_lib_prefix=unknown
12230 hardcode_into_libs=no
12232 # when you set need_version to no, make sure it does not cause -set_version
12233 # flags to be left without arguments
12234 need_version=unknown
12236 case $host_os in
12237 aix3*)
12238   version_type=linux # correct to gnu/linux during the next big refactor
12239   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12240   shlibpath_var=LIBPATH
12242   # AIX 3 has no versioning support, so we append a major version to the name.
12243   soname_spec='${libname}${release}${shared_ext}$major'
12244   ;;
12246 aix[4-9]*)
12247   version_type=linux # correct to gnu/linux during the next big refactor
12248   need_lib_prefix=no
12249   need_version=no
12250   hardcode_into_libs=yes
12251   if test "$host_cpu" = ia64; then
12252     # AIX 5 supports IA64
12253     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12254     shlibpath_var=LD_LIBRARY_PATH
12255   else
12256     # With GCC up to 2.95.x, collect2 would create an import file
12257     # for dependence libraries.  The import file would start with
12258     # the line `#! .'.  This would cause the generated library to
12259     # depend on `.', always an invalid library.  This was fixed in
12260     # development snapshots of GCC prior to 3.0.
12261     case $host_os in
12262       aix4 | aix4.[01] | aix4.[01].*)
12263       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12264            echo ' yes '
12265            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12266         :
12267       else
12268         can_build_shared=no
12269       fi
12270       ;;
12271     esac
12272     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12273     # soname into executable. Probably we can add versioning support to
12274     # collect2, so additional links can be useful in future.
12275     if test "$aix_use_runtimelinking" = yes; then
12276       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12277       # instead of lib<name>.a to let people know that these are not
12278       # typical AIX shared libraries.
12279       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12280     else
12281       # We preserve .a as extension for shared libraries through AIX4.2
12282       # and later when we are not doing run time linking.
12283       library_names_spec='${libname}${release}.a $libname.a'
12284       soname_spec='${libname}${release}${shared_ext}$major'
12285     fi
12286     shlibpath_var=LIBPATH
12287   fi
12288   ;;
12290 amigaos*)
12291   case $host_cpu in
12292   powerpc)
12293     # Since July 2007 AmigaOS4 officially supports .so libraries.
12294     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12295     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12296     ;;
12297   m68k)
12298     library_names_spec='$libname.ixlibrary $libname.a'
12299     # Create ${libname}_ixlibrary.a entries in /sys/libs.
12300     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'
12301     ;;
12302   esac
12303   ;;
12305 beos*)
12306   library_names_spec='${libname}${shared_ext}'
12307   dynamic_linker="$host_os ld.so"
12308   shlibpath_var=LIBRARY_PATH
12309   ;;
12311 bsdi[45]*)
12312   version_type=linux # correct to gnu/linux during the next big refactor
12313   need_version=no
12314   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12315   soname_spec='${libname}${release}${shared_ext}$major'
12316   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12317   shlibpath_var=LD_LIBRARY_PATH
12318   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12319   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12320   # the default ld.so.conf also contains /usr/contrib/lib and
12321   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12322   # libtool to hard-code these into programs
12323   ;;
12325 cygwin* | mingw* | pw32* | cegcc*)
12326   version_type=windows
12327   shrext_cmds=".dll"
12328   need_version=no
12329   need_lib_prefix=no
12331   case $GCC,$cc_basename in
12332   yes,*)
12333     # gcc
12334     library_names_spec='$libname.dll.a'
12335     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12336     postinstall_cmds='base_file=`basename \${file}`~
12337       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12338       dldir=$destdir/`dirname \$dlpath`~
12339       test -d \$dldir || mkdir -p \$dldir~
12340       $install_prog $dir/$dlname \$dldir/$dlname~
12341       chmod a+x \$dldir/$dlname~
12342       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12343         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12344       fi'
12345     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12346       dlpath=$dir/\$dldll~
12347        $RM \$dlpath'
12348     shlibpath_overrides_runpath=yes
12350     case $host_os in
12351     cygwin*)
12352       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12353       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12355       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12356       ;;
12357     mingw* | cegcc*)
12358       # MinGW DLLs use traditional 'lib' prefix
12359       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12360       ;;
12361     pw32*)
12362       # pw32 DLLs use 'pw' prefix rather than 'lib'
12363       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12364       ;;
12365     esac
12366     dynamic_linker='Win32 ld.exe'
12367     ;;
12369   *,cl*)
12370     # Native MSVC
12371     libname_spec='$name'
12372     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12373     library_names_spec='${libname}.dll.lib'
12375     case $build_os in
12376     mingw*)
12377       sys_lib_search_path_spec=
12378       lt_save_ifs=$IFS
12379       IFS=';'
12380       for lt_path in $LIB
12381       do
12382         IFS=$lt_save_ifs
12383         # Let DOS variable expansion print the short 8.3 style file name.
12384         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12385         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12386       done
12387       IFS=$lt_save_ifs
12388       # Convert to MSYS style.
12389       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12390       ;;
12391     cygwin*)
12392       # Convert to unix form, then to dos form, then back to unix form
12393       # but this time dos style (no spaces!) so that the unix form looks
12394       # like /cygdrive/c/PROGRA~1:/cygdr...
12395       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12396       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12397       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12398       ;;
12399     *)
12400       sys_lib_search_path_spec="$LIB"
12401       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12402         # It is most probably a Windows format PATH.
12403         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12404       else
12405         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12406       fi
12407       # FIXME: find the short name or the path components, as spaces are
12408       # common. (e.g. "Program Files" -> "PROGRA~1")
12409       ;;
12410     esac
12412     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12413     postinstall_cmds='base_file=`basename \${file}`~
12414       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12415       dldir=$destdir/`dirname \$dlpath`~
12416       test -d \$dldir || mkdir -p \$dldir~
12417       $install_prog $dir/$dlname \$dldir/$dlname'
12418     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12419       dlpath=$dir/\$dldll~
12420        $RM \$dlpath'
12421     shlibpath_overrides_runpath=yes
12422     dynamic_linker='Win32 link.exe'
12423     ;;
12425   *)
12426     # Assume MSVC wrapper
12427     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12428     dynamic_linker='Win32 ld.exe'
12429     ;;
12430   esac
12431   # FIXME: first we should search . and the directory the executable is in
12432   shlibpath_var=PATH
12433   ;;
12435 darwin* | rhapsody*)
12436   dynamic_linker="$host_os dyld"
12437   version_type=darwin
12438   need_lib_prefix=no
12439   need_version=no
12440   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12441   soname_spec='${libname}${release}${major}$shared_ext'
12442   shlibpath_overrides_runpath=yes
12443   shlibpath_var=DYLD_LIBRARY_PATH
12444   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12446   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12447   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12448   ;;
12450 dgux*)
12451   version_type=linux # correct to gnu/linux during the next big refactor
12452   need_lib_prefix=no
12453   need_version=no
12454   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12455   soname_spec='${libname}${release}${shared_ext}$major'
12456   shlibpath_var=LD_LIBRARY_PATH
12457   ;;
12459 freebsd* | dragonfly*)
12460   # DragonFly does not have aout.  When/if they implement a new
12461   # versioning mechanism, adjust this.
12462   if test -x /usr/bin/objformat; then
12463     objformat=`/usr/bin/objformat`
12464   else
12465     case $host_os in
12466     freebsd[23].*) objformat=aout ;;
12467     *) objformat=elf ;;
12468     esac
12469   fi
12470   version_type=freebsd-$objformat
12471   case $version_type in
12472     freebsd-elf*)
12473       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12474       need_version=no
12475       need_lib_prefix=no
12476       ;;
12477     freebsd-*)
12478       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12479       need_version=yes
12480       ;;
12481   esac
12482   shlibpath_var=LD_LIBRARY_PATH
12483   case $host_os in
12484   freebsd2.*)
12485     shlibpath_overrides_runpath=yes
12486     ;;
12487   freebsd3.[01]* | freebsdelf3.[01]*)
12488     shlibpath_overrides_runpath=yes
12489     hardcode_into_libs=yes
12490     ;;
12491   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12492   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12493     shlibpath_overrides_runpath=no
12494     hardcode_into_libs=yes
12495     ;;
12496   *) # from 4.6 on, and DragonFly
12497     shlibpath_overrides_runpath=yes
12498     hardcode_into_libs=yes
12499     ;;
12500   esac
12501   ;;
12503 haiku*)
12504   version_type=linux # correct to gnu/linux during the next big refactor
12505   need_lib_prefix=no
12506   need_version=no
12507   dynamic_linker="$host_os runtime_loader"
12508   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12509   soname_spec='${libname}${release}${shared_ext}$major'
12510   shlibpath_var=LIBRARY_PATH
12511   shlibpath_overrides_runpath=yes
12512   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12513   hardcode_into_libs=yes
12514   ;;
12516 hpux9* | hpux10* | hpux11*)
12517   # Give a soname corresponding to the major version so that dld.sl refuses to
12518   # link against other versions.
12519   version_type=sunos
12520   need_lib_prefix=no
12521   need_version=no
12522   case $host_cpu in
12523   ia64*)
12524     shrext_cmds='.so'
12525     hardcode_into_libs=yes
12526     dynamic_linker="$host_os dld.so"
12527     shlibpath_var=LD_LIBRARY_PATH
12528     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12529     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12530     soname_spec='${libname}${release}${shared_ext}$major'
12531     if test "X$HPUX_IA64_MODE" = X32; then
12532       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12533     else
12534       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12535     fi
12536     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12537     ;;
12538   hppa*64*)
12539     shrext_cmds='.sl'
12540     hardcode_into_libs=yes
12541     dynamic_linker="$host_os dld.sl"
12542     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12543     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12544     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12545     soname_spec='${libname}${release}${shared_ext}$major'
12546     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12547     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12548     ;;
12549   *)
12550     shrext_cmds='.sl'
12551     dynamic_linker="$host_os dld.sl"
12552     shlibpath_var=SHLIB_PATH
12553     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12554     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12555     soname_spec='${libname}${release}${shared_ext}$major'
12556     ;;
12557   esac
12558   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12559   postinstall_cmds='chmod 555 $lib'
12560   # or fails outright, so override atomically:
12561   install_override_mode=555
12562   ;;
12564 interix[3-9]*)
12565   version_type=linux # correct to gnu/linux during the next big refactor
12566   need_lib_prefix=no
12567   need_version=no
12568   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12569   soname_spec='${libname}${release}${shared_ext}$major'
12570   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12571   shlibpath_var=LD_LIBRARY_PATH
12572   shlibpath_overrides_runpath=no
12573   hardcode_into_libs=yes
12574   ;;
12576 irix5* | irix6* | nonstopux*)
12577   case $host_os in
12578     nonstopux*) version_type=nonstopux ;;
12579     *)
12580         if test "$lt_cv_prog_gnu_ld" = yes; then
12581                 version_type=linux # correct to gnu/linux during the next big refactor
12582         else
12583                 version_type=irix
12584         fi ;;
12585   esac
12586   need_lib_prefix=no
12587   need_version=no
12588   soname_spec='${libname}${release}${shared_ext}$major'
12589   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12590   case $host_os in
12591   irix5* | nonstopux*)
12592     libsuff= shlibsuff=
12593     ;;
12594   *)
12595     case $LD in # libtool.m4 will add one of these switches to LD
12596     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12597       libsuff= shlibsuff= libmagic=32-bit;;
12598     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12599       libsuff=32 shlibsuff=N32 libmagic=N32;;
12600     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12601       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12602     *) libsuff= shlibsuff= libmagic=never-match;;
12603     esac
12604     ;;
12605   esac
12606   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12607   shlibpath_overrides_runpath=no
12608   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12609   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12610   hardcode_into_libs=yes
12611   ;;
12613 # No shared lib support for Linux oldld, aout, or coff.
12614 linux*oldld* | linux*aout* | linux*coff*)
12615   dynamic_linker=no
12616   ;;
12618 # This must be glibc/ELF.
12619 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12620   version_type=linux # correct to gnu/linux during the next big refactor
12621   need_lib_prefix=no
12622   need_version=no
12623   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12624   soname_spec='${libname}${release}${shared_ext}$major'
12625   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12626   shlibpath_var=LD_LIBRARY_PATH
12627   shlibpath_overrides_runpath=no
12629   # Some binutils ld are patched to set DT_RUNPATH
12630   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12631   $as_echo_n "(cached) " >&6
12632 else
12633   lt_cv_shlibpath_overrides_runpath=no
12634     save_LDFLAGS=$LDFLAGS
12635     save_libdir=$libdir
12636     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12637          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12638     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12639 /* end confdefs.h.  */
12642 main ()
12645   ;
12646   return 0;
12648 _ACEOF
12649 if ac_fn_c_try_link "$LINENO"; then :
12650   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12651   lt_cv_shlibpath_overrides_runpath=yes
12654 rm -f core conftest.err conftest.$ac_objext \
12655     conftest$ac_exeext conftest.$ac_ext
12656     LDFLAGS=$save_LDFLAGS
12657     libdir=$save_libdir
12658     
12661   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12663   # This implies no fast_install, which is unacceptable.
12664   # Some rework will be needed to allow for fast_install
12665   # before this can be enabled.
12666   hardcode_into_libs=yes
12668   # Append ld.so.conf contents to the search path
12669   if test -f /etc/ld.so.conf; then
12670     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' ' '`
12671     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12672   fi
12674   # We used to test for /lib/ld.so.1 and disable shared libraries on
12675   # powerpc, because MkLinux only supported shared libraries with the
12676   # GNU dynamic linker.  Since this was broken with cross compilers,
12677   # most powerpc-linux boxes support dynamic linking these days and
12678   # people can always --disable-shared, the test was removed, and we
12679   # assume the GNU/Linux dynamic linker is in use.
12680   dynamic_linker='GNU/Linux ld.so'
12681   ;;
12683 netbsdelf*-gnu)
12684   version_type=linux
12685   need_lib_prefix=no
12686   need_version=no
12687   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12688   soname_spec='${libname}${release}${shared_ext}$major'
12689   shlibpath_var=LD_LIBRARY_PATH
12690   shlibpath_overrides_runpath=no
12691   hardcode_into_libs=yes
12692   dynamic_linker='NetBSD ld.elf_so'
12693   ;;
12695 netbsd*)
12696   version_type=sunos
12697   need_lib_prefix=no
12698   need_version=no
12699   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12700     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12701     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12702     dynamic_linker='NetBSD (a.out) ld.so'
12703   else
12704     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12705     soname_spec='${libname}${release}${shared_ext}$major'
12706     dynamic_linker='NetBSD ld.elf_so'
12707   fi
12708   shlibpath_var=LD_LIBRARY_PATH
12709   shlibpath_overrides_runpath=yes
12710   hardcode_into_libs=yes
12711   ;;
12713 newsos6)
12714   version_type=linux # correct to gnu/linux during the next big refactor
12715   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12716   shlibpath_var=LD_LIBRARY_PATH
12717   shlibpath_overrides_runpath=yes
12718   ;;
12720 *nto* | *qnx*)
12721   version_type=qnx
12722   need_lib_prefix=no
12723   need_version=no
12724   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12725   soname_spec='${libname}${release}${shared_ext}$major'
12726   shlibpath_var=LD_LIBRARY_PATH
12727   shlibpath_overrides_runpath=no
12728   hardcode_into_libs=yes
12729   dynamic_linker='ldqnx.so'
12730   ;;
12732 openbsd*)
12733   version_type=sunos
12734   sys_lib_dlsearch_path_spec="/usr/lib"
12735   need_lib_prefix=no
12736   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12737   case $host_os in
12738     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
12739     *)                          need_version=no  ;;
12740   esac
12741   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12742   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12743   shlibpath_var=LD_LIBRARY_PATH
12744   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12745     case $host_os in
12746       openbsd2.[89] | openbsd2.[89].*)
12747         shlibpath_overrides_runpath=no
12748         ;;
12749       *)
12750         shlibpath_overrides_runpath=yes
12751         ;;
12752       esac
12753   else
12754     shlibpath_overrides_runpath=yes
12755   fi
12756   ;;
12758 os2*)
12759   libname_spec='$name'
12760   shrext_cmds=".dll"
12761   need_lib_prefix=no
12762   library_names_spec='$libname${shared_ext} $libname.a'
12763   dynamic_linker='OS/2 ld.exe'
12764   shlibpath_var=LIBPATH
12765   ;;
12767 osf3* | osf4* | osf5*)
12768   version_type=osf
12769   need_lib_prefix=no
12770   need_version=no
12771   soname_spec='${libname}${release}${shared_ext}$major'
12772   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12773   shlibpath_var=LD_LIBRARY_PATH
12774   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12775   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12776   ;;
12778 rdos*)
12779   dynamic_linker=no
12780   ;;
12782 solaris*)
12783   version_type=linux # correct to gnu/linux during the next big refactor
12784   need_lib_prefix=no
12785   need_version=no
12786   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12787   soname_spec='${libname}${release}${shared_ext}$major'
12788   shlibpath_var=LD_LIBRARY_PATH
12789   shlibpath_overrides_runpath=yes
12790   hardcode_into_libs=yes
12791   # ldd complains unless libraries are executable
12792   postinstall_cmds='chmod +x $lib'
12793   ;;
12795 sunos4*)
12796   version_type=sunos
12797   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12798   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12799   shlibpath_var=LD_LIBRARY_PATH
12800   shlibpath_overrides_runpath=yes
12801   if test "$with_gnu_ld" = yes; then
12802     need_lib_prefix=no
12803   fi
12804   need_version=yes
12805   ;;
12807 sysv4 | sysv4.3*)
12808   version_type=linux # correct to gnu/linux during the next big refactor
12809   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12810   soname_spec='${libname}${release}${shared_ext}$major'
12811   shlibpath_var=LD_LIBRARY_PATH
12812   case $host_vendor in
12813     sni)
12814       shlibpath_overrides_runpath=no
12815       need_lib_prefix=no
12816       runpath_var=LD_RUN_PATH
12817       ;;
12818     siemens)
12819       need_lib_prefix=no
12820       ;;
12821     motorola)
12822       need_lib_prefix=no
12823       need_version=no
12824       shlibpath_overrides_runpath=no
12825       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12826       ;;
12827   esac
12828   ;;
12830 sysv4*MP*)
12831   if test -d /usr/nec ;then
12832     version_type=linux # correct to gnu/linux during the next big refactor
12833     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12834     soname_spec='$libname${shared_ext}.$major'
12835     shlibpath_var=LD_LIBRARY_PATH
12836   fi
12837   ;;
12839 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12840   version_type=freebsd-elf
12841   need_lib_prefix=no
12842   need_version=no
12843   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12844   soname_spec='${libname}${release}${shared_ext}$major'
12845   shlibpath_var=LD_LIBRARY_PATH
12846   shlibpath_overrides_runpath=yes
12847   hardcode_into_libs=yes
12848   if test "$with_gnu_ld" = yes; then
12849     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12850   else
12851     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12852     case $host_os in
12853       sco3.2v5*)
12854         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12855         ;;
12856     esac
12857   fi
12858   sys_lib_dlsearch_path_spec='/usr/lib'
12859   ;;
12861 tpf*)
12862   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12863   version_type=linux # correct to gnu/linux during the next big refactor
12864   need_lib_prefix=no
12865   need_version=no
12866   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12867   shlibpath_var=LD_LIBRARY_PATH
12868   shlibpath_overrides_runpath=no
12869   hardcode_into_libs=yes
12870   ;;
12872 uts4*)
12873   version_type=linux # correct to gnu/linux during the next big refactor
12874   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12875   soname_spec='${libname}${release}${shared_ext}$major'
12876   shlibpath_var=LD_LIBRARY_PATH
12877   ;;
12880   dynamic_linker=no
12881   ;;
12882 esac
12883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12884 $as_echo "$dynamic_linker" >&6; }
12885 test "$dynamic_linker" = no && can_build_shared=no
12887 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12888 if test "$GCC" = yes; then
12889   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12892 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12893   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12895 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12896   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12900     
12901     
12902     
12905     
12906     
12907     
12910     
12911     
12912     
12915     
12916     
12917     
12920     
12921     
12922     
12925     
12926     
12927     
12930     
12931     
12932     
12935     
12936     
12937     
12940     
12941     
12942     
12945     
12946     
12947     
12950     
12951     
12952     
12955     
12956     
12957     
12960     
12961     
12962     
12965     
12966     
12967     
12970     
12971     
12972     
12975     
12976     
12977     
12980     
12981     
12982     
12985     
12986     
12987     
12990   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12991 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12992 hardcode_action=
12993 if test -n "$hardcode_libdir_flag_spec" ||
12994    test -n "$runpath_var" ||
12995    test "X$hardcode_automatic" = "Xyes" ; then
12997   # We can hardcode non-existent directories.
12998   if test "$hardcode_direct" != no &&
12999      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13000      # have to relink, otherwise we might link with an installed library
13001      # when we should be linking with a yet-to-be-installed one
13002      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
13003      test "$hardcode_minus_L" != no; then
13004     # Linking always hardcodes the temporary library directory.
13005     hardcode_action=relink
13006   else
13007     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13008     hardcode_action=immediate
13009   fi
13010 else
13011   # We cannot hardcode anything, or else we can only hardcode existing
13012   # directories.
13013   hardcode_action=unsupported
13015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13016 $as_echo "$hardcode_action" >&6; }
13018 if test "$hardcode_action" = relink ||
13019    test "$inherit_rpath" = yes; then
13020   # Fast installation is not supported
13021   enable_fast_install=no
13022 elif test "$shlibpath_overrides_runpath" = yes ||
13023      test "$enable_shared" = no; then
13024   # Fast installation is not necessary
13025   enable_fast_install=needless
13028     
13029     
13030     
13033   if test "x$enable_dlopen" != xyes; then
13034   enable_dlopen=unknown
13035   enable_dlopen_self=unknown
13036   enable_dlopen_self_static=unknown
13037 else
13038   lt_cv_dlopen=no
13039   lt_cv_dlopen_libs=
13041   case $host_os in
13042   beos*)
13043     lt_cv_dlopen="load_add_on"
13044     lt_cv_dlopen_libs=
13045     lt_cv_dlopen_self=yes
13046     ;;
13048   mingw* | pw32* | cegcc*)
13049     lt_cv_dlopen="LoadLibrary"
13050     lt_cv_dlopen_libs=
13051     ;;
13053   cygwin*)
13054     lt_cv_dlopen="dlopen"
13055     lt_cv_dlopen_libs=
13056     ;;
13058   darwin*)
13059   # if libdl is installed we need to link against it
13060     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13061 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13062 if ${ac_cv_lib_dl_dlopen+:} false; then :
13063   $as_echo_n "(cached) " >&6
13064 else
13065   ac_check_lib_save_LIBS=$LIBS
13066 LIBS="-ldl  $LIBS"
13067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13068 /* end confdefs.h.  */
13070 /* Override any GCC internal prototype to avoid an error.
13071    Use char because int might match the return type of a GCC
13072    builtin and then its argument prototype would still apply.  */
13073 #ifdef __cplusplus
13074 extern "C"
13075 #endif
13076 char dlopen ();
13078 main ()
13080 return dlopen ();
13081   ;
13082   return 0;
13084 _ACEOF
13085 if ac_fn_c_try_link "$LINENO"; then :
13086   ac_cv_lib_dl_dlopen=yes
13087 else
13088   ac_cv_lib_dl_dlopen=no
13090 rm -f core conftest.err conftest.$ac_objext \
13091     conftest$ac_exeext conftest.$ac_ext
13092 LIBS=$ac_check_lib_save_LIBS
13094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13095 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13096 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13097   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13098 else
13099   
13100     lt_cv_dlopen="dyld"
13101     lt_cv_dlopen_libs=
13102     lt_cv_dlopen_self=yes
13103     
13106     ;;
13108   *)
13109     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13110 if test "x$ac_cv_func_shl_load" = xyes; then :
13111   lt_cv_dlopen="shl_load"
13112 else
13113   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13114 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13115 if ${ac_cv_lib_dld_shl_load+:} false; then :
13116   $as_echo_n "(cached) " >&6
13117 else
13118   ac_check_lib_save_LIBS=$LIBS
13119 LIBS="-ldld  $LIBS"
13120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13121 /* end confdefs.h.  */
13123 /* Override any GCC internal prototype to avoid an error.
13124    Use char because int might match the return type of a GCC
13125    builtin and then its argument prototype would still apply.  */
13126 #ifdef __cplusplus
13127 extern "C"
13128 #endif
13129 char shl_load ();
13131 main ()
13133 return shl_load ();
13134   ;
13135   return 0;
13137 _ACEOF
13138 if ac_fn_c_try_link "$LINENO"; then :
13139   ac_cv_lib_dld_shl_load=yes
13140 else
13141   ac_cv_lib_dld_shl_load=no
13143 rm -f core conftest.err conftest.$ac_objext \
13144     conftest$ac_exeext conftest.$ac_ext
13145 LIBS=$ac_check_lib_save_LIBS
13147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13148 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13149 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13150   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13151 else
13152   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13153 if test "x$ac_cv_func_dlopen" = xyes; then :
13154   lt_cv_dlopen="dlopen"
13155 else
13156   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13157 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13158 if ${ac_cv_lib_dl_dlopen+:} false; then :
13159   $as_echo_n "(cached) " >&6
13160 else
13161   ac_check_lib_save_LIBS=$LIBS
13162 LIBS="-ldl  $LIBS"
13163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13164 /* end confdefs.h.  */
13166 /* Override any GCC internal prototype to avoid an error.
13167    Use char because int might match the return type of a GCC
13168    builtin and then its argument prototype would still apply.  */
13169 #ifdef __cplusplus
13170 extern "C"
13171 #endif
13172 char dlopen ();
13174 main ()
13176 return dlopen ();
13177   ;
13178   return 0;
13180 _ACEOF
13181 if ac_fn_c_try_link "$LINENO"; then :
13182   ac_cv_lib_dl_dlopen=yes
13183 else
13184   ac_cv_lib_dl_dlopen=no
13186 rm -f core conftest.err conftest.$ac_objext \
13187     conftest$ac_exeext conftest.$ac_ext
13188 LIBS=$ac_check_lib_save_LIBS
13190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13191 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13192 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13193   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13194 else
13195   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13196 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13197 if ${ac_cv_lib_svld_dlopen+:} false; then :
13198   $as_echo_n "(cached) " >&6
13199 else
13200   ac_check_lib_save_LIBS=$LIBS
13201 LIBS="-lsvld  $LIBS"
13202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13203 /* end confdefs.h.  */
13205 /* Override any GCC internal prototype to avoid an error.
13206    Use char because int might match the return type of a GCC
13207    builtin and then its argument prototype would still apply.  */
13208 #ifdef __cplusplus
13209 extern "C"
13210 #endif
13211 char dlopen ();
13213 main ()
13215 return dlopen ();
13216   ;
13217   return 0;
13219 _ACEOF
13220 if ac_fn_c_try_link "$LINENO"; then :
13221   ac_cv_lib_svld_dlopen=yes
13222 else
13223   ac_cv_lib_svld_dlopen=no
13225 rm -f core conftest.err conftest.$ac_objext \
13226     conftest$ac_exeext conftest.$ac_ext
13227 LIBS=$ac_check_lib_save_LIBS
13229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13230 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13231 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13232   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13233 else
13234   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13235 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13236 if ${ac_cv_lib_dld_dld_link+:} false; then :
13237   $as_echo_n "(cached) " >&6
13238 else
13239   ac_check_lib_save_LIBS=$LIBS
13240 LIBS="-ldld  $LIBS"
13241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13242 /* end confdefs.h.  */
13244 /* Override any GCC internal prototype to avoid an error.
13245    Use char because int might match the return type of a GCC
13246    builtin and then its argument prototype would still apply.  */
13247 #ifdef __cplusplus
13248 extern "C"
13249 #endif
13250 char dld_link ();
13252 main ()
13254 return dld_link ();
13255   ;
13256   return 0;
13258 _ACEOF
13259 if ac_fn_c_try_link "$LINENO"; then :
13260   ac_cv_lib_dld_dld_link=yes
13261 else
13262   ac_cv_lib_dld_dld_link=no
13264 rm -f core conftest.err conftest.$ac_objext \
13265     conftest$ac_exeext conftest.$ac_ext
13266 LIBS=$ac_check_lib_save_LIBS
13268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13269 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13270 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13271   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13274               
13277             
13280           
13283         
13286       
13289     ;;
13290   esac
13292   if test "x$lt_cv_dlopen" != xno; then
13293     enable_dlopen=yes
13294   else
13295     enable_dlopen=no
13296   fi
13298   case $lt_cv_dlopen in
13299   dlopen)
13300     save_CPPFLAGS="$CPPFLAGS"
13301     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13303     save_LDFLAGS="$LDFLAGS"
13304     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13306     save_LIBS="$LIBS"
13307     LIBS="$lt_cv_dlopen_libs $LIBS"
13309     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13310 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13311 if ${lt_cv_dlopen_self+:} false; then :
13312   $as_echo_n "(cached) " >&6
13313 else
13314           if test "$cross_compiling" = yes; then :
13315   lt_cv_dlopen_self=cross
13316 else
13317   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13318   lt_status=$lt_dlunknown
13319   cat > conftest.$ac_ext <<_LT_EOF
13320 #line $LINENO "configure"
13321 #include "confdefs.h"
13323 #if HAVE_DLFCN_H
13324 #include <dlfcn.h>
13325 #endif
13327 #include <stdio.h>
13329 #ifdef RTLD_GLOBAL
13330 #  define LT_DLGLOBAL           RTLD_GLOBAL
13331 #else
13332 #  ifdef DL_GLOBAL
13333 #    define LT_DLGLOBAL         DL_GLOBAL
13334 #  else
13335 #    define LT_DLGLOBAL         0
13336 #  endif
13337 #endif
13339 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13340    find out it does not work in some platform. */
13341 #ifndef LT_DLLAZY_OR_NOW
13342 #  ifdef RTLD_LAZY
13343 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13344 #  else
13345 #    ifdef DL_LAZY
13346 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13347 #    else
13348 #      ifdef RTLD_NOW
13349 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13350 #      else
13351 #        ifdef DL_NOW
13352 #          define LT_DLLAZY_OR_NOW      DL_NOW
13353 #        else
13354 #          define LT_DLLAZY_OR_NOW      0
13355 #        endif
13356 #      endif
13357 #    endif
13358 #  endif
13359 #endif
13361 /* When -fvisbility=hidden is used, assume the code has been annotated
13362    correspondingly for the symbols needed.  */
13363 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13364 int fnord () __attribute__((visibility("default")));
13365 #endif
13367 int fnord () { return 42; }
13368 int main ()
13370   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13371   int status = $lt_dlunknown;
13373   if (self)
13374     {
13375       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13376       else
13377         {
13378           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13379           else puts (dlerror ());
13380         }
13381       /* dlclose (self); */
13382     }
13383   else
13384     puts (dlerror ());
13386   return status;
13388 _LT_EOF
13389   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13390   (eval $ac_link) 2>&5
13391   ac_status=$?
13392   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13393   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13394     (./conftest; exit; ) >&5 2>/dev/null
13395     lt_status=$?
13396     case x$lt_status in
13397       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13398       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13399       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13400     esac
13401   else :
13402     # compilation failed
13403     lt_cv_dlopen_self=no
13404   fi
13406 rm -fr conftest*
13408     
13410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13411 $as_echo "$lt_cv_dlopen_self" >&6; }
13413     if test "x$lt_cv_dlopen_self" = xyes; then
13414       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13415       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13416 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13417 if ${lt_cv_dlopen_self_static+:} false; then :
13418   $as_echo_n "(cached) " >&6
13419 else
13420           if test "$cross_compiling" = yes; then :
13421   lt_cv_dlopen_self_static=cross
13422 else
13423   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13424   lt_status=$lt_dlunknown
13425   cat > conftest.$ac_ext <<_LT_EOF
13426 #line $LINENO "configure"
13427 #include "confdefs.h"
13429 #if HAVE_DLFCN_H
13430 #include <dlfcn.h>
13431 #endif
13433 #include <stdio.h>
13435 #ifdef RTLD_GLOBAL
13436 #  define LT_DLGLOBAL           RTLD_GLOBAL
13437 #else
13438 #  ifdef DL_GLOBAL
13439 #    define LT_DLGLOBAL         DL_GLOBAL
13440 #  else
13441 #    define LT_DLGLOBAL         0
13442 #  endif
13443 #endif
13445 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13446    find out it does not work in some platform. */
13447 #ifndef LT_DLLAZY_OR_NOW
13448 #  ifdef RTLD_LAZY
13449 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13450 #  else
13451 #    ifdef DL_LAZY
13452 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13453 #    else
13454 #      ifdef RTLD_NOW
13455 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13456 #      else
13457 #        ifdef DL_NOW
13458 #          define LT_DLLAZY_OR_NOW      DL_NOW
13459 #        else
13460 #          define LT_DLLAZY_OR_NOW      0
13461 #        endif
13462 #      endif
13463 #    endif
13464 #  endif
13465 #endif
13467 /* When -fvisbility=hidden is used, assume the code has been annotated
13468    correspondingly for the symbols needed.  */
13469 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13470 int fnord () __attribute__((visibility("default")));
13471 #endif
13473 int fnord () { return 42; }
13474 int main ()
13476   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13477   int status = $lt_dlunknown;
13479   if (self)
13480     {
13481       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13482       else
13483         {
13484           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13485           else puts (dlerror ());
13486         }
13487       /* dlclose (self); */
13488     }
13489   else
13490     puts (dlerror ());
13492   return status;
13494 _LT_EOF
13495   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13496   (eval $ac_link) 2>&5
13497   ac_status=$?
13498   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13499   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13500     (./conftest; exit; ) >&5 2>/dev/null
13501     lt_status=$?
13502     case x$lt_status in
13503       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13504       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13505       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13506     esac
13507   else :
13508     # compilation failed
13509     lt_cv_dlopen_self_static=no
13510   fi
13512 rm -fr conftest*
13514       
13516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13517 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13518     fi
13520     CPPFLAGS="$save_CPPFLAGS"
13521     LDFLAGS="$save_LDFLAGS"
13522     LIBS="$save_LIBS"
13523     ;;
13524   esac
13526   case $lt_cv_dlopen_self in
13527   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13528   *) enable_dlopen_self=unknown ;;
13529   esac
13531   case $lt_cv_dlopen_self_static in
13532   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13533   *) enable_dlopen_self_static=unknown ;;
13534   esac
13537     
13538     
13539     
13542     
13543     
13544     
13547     
13548     
13549     
13552   
13553 striplib=
13554 old_striplib=
13555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13556 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13557 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13558   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13559   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13561 $as_echo "yes" >&6; }
13562 else
13563 # FIXME - insert some real tests, host_os isn't really good enough
13564   case $host_os in
13565   darwin*)
13566     if test -n "$STRIP" ; then
13567       striplib="$STRIP -x"
13568       old_striplib="$STRIP -S"
13569       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13570 $as_echo "yes" >&6; }
13571     else
13572       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13573 $as_echo "no" >&6; }
13574     fi
13575     ;;
13576   *)
13577     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13578 $as_echo "no" >&6; }
13579     ;;
13580   esac
13583     
13584     
13585     
13588     
13589     
13590     
13594   # Report which library types will actually be built
13595   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13596 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13598 $as_echo "$can_build_shared" >&6; }
13600   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13601 $as_echo_n "checking whether to build shared libraries... " >&6; }
13602   test "$can_build_shared" = "no" && enable_shared=no
13604   # On AIX, shared libraries and static libraries use the same namespace, and
13605   # are all built from PIC.
13606   case $host_os in
13607   aix3*)
13608     test "$enable_shared" = yes && enable_static=no
13609     if test -n "$RANLIB"; then
13610       archive_cmds="$archive_cmds~\$RANLIB \$lib"
13611       postinstall_cmds='$RANLIB $lib'
13612     fi
13613     ;;
13615   aix[4-9]*)
13616     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13617       test "$enable_shared" = yes && enable_static=no
13618     fi
13619     ;;
13620   esac
13621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13622 $as_echo "$enable_shared" >&6; }
13624   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13625 $as_echo_n "checking whether to build static libraries... " >&6; }
13626   # Make sure either enable_shared or enable_static is yes.
13627   test "$enable_shared" = yes || enable_static=yes
13628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13629 $as_echo "$enable_static" >&6; }
13631   
13635 ac_ext=c
13636 ac_cpp='$CPP $CPPFLAGS'
13637 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13638 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13639 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13641 CC="$lt_save_CC"
13650        
13651        
13657         ac_config_commands="$ac_config_commands libtool"
13662 # Only expand once:
13668 # Extract the first word of "ronn", so it can be a program name with args.
13669 set dummy ronn; ac_word=$2
13670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13671 $as_echo_n "checking for $ac_word... " >&6; }
13672 if ${ac_cv_path_RONN+:} false; then :
13673   $as_echo_n "(cached) " >&6
13674 else
13675   case $RONN in
13676   [\\/]* | ?:[\\/]*)
13677   ac_cv_path_RONN="$RONN" # Let the user override the test with a path.
13678   ;;
13679   *)
13680   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13681 for as_dir in $PATH
13683   IFS=$as_save_IFS
13684   test -z "$as_dir" && as_dir=.
13685     for ac_exec_ext in '' $ac_executable_extensions; do
13686   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13687     ac_cv_path_RONN="$as_dir/$ac_word$ac_exec_ext"
13688     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13689     break 2
13690   fi
13691 done
13692   done
13693 IFS=$as_save_IFS
13695   test -z "$ac_cv_path_RONN" && ac_cv_path_RONN="#"
13696   ;;
13697 esac
13699 RONN=$ac_cv_path_RONN
13700 if test -n "$RONN"; then
13701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RONN" >&5
13702 $as_echo "$RONN" >&6; }
13703 else
13704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13705 $as_echo "no" >&6; }
13711 # Extract the first word of "sixjack", so it can be a program name with args.
13712 set dummy sixjack; ac_word=$2
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13714 $as_echo_n "checking for $ac_word... " >&6; }
13715 if ${ac_cv_path_SIXJACK+:} false; then :
13716   $as_echo_n "(cached) " >&6
13717 else
13718   case $SIXJACK in
13719   [\\/]* | ?:[\\/]*)
13720   ac_cv_path_SIXJACK="$SIXJACK" # Let the user override the test with a path.
13721   ;;
13722   *)
13723   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13724 for as_dir in $PATH
13726   IFS=$as_save_IFS
13727   test -z "$as_dir" && as_dir=.
13728     for ac_exec_ext in '' $ac_executable_extensions; do
13729   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13730     ac_cv_path_SIXJACK="$as_dir/$ac_word$ac_exec_ext"
13731     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13732     break 2
13733   fi
13734 done
13735   done
13736 IFS=$as_save_IFS
13738   test -z "$ac_cv_path_SIXJACK" && ac_cv_path_SIXJACK="#"
13739   ;;
13740 esac
13742 SIXJACK=$ac_cv_path_SIXJACK
13743 if test -n "$SIXJACK"; then
13744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SIXJACK" >&5
13745 $as_echo "$SIXJACK" >&6; }
13746 else
13747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13748 $as_echo "no" >&6; }
13754 if test -n "$ac_tool_prefix"; then
13755   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13756 set dummy ${ac_tool_prefix}ar; ac_word=$2
13757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13758 $as_echo_n "checking for $ac_word... " >&6; }
13759 if ${ac_cv_prog_AR+:} false; then :
13760   $as_echo_n "(cached) " >&6
13761 else
13762   if test -n "$AR"; then
13763   ac_cv_prog_AR="$AR" # Let the user override the test.
13764 else
13765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13766 for as_dir in $PATH
13768   IFS=$as_save_IFS
13769   test -z "$as_dir" && as_dir=.
13770     for ac_exec_ext in '' $ac_executable_extensions; do
13771   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13772     ac_cv_prog_AR="${ac_tool_prefix}ar"
13773     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13774     break 2
13775   fi
13776 done
13777   done
13778 IFS=$as_save_IFS
13782 AR=$ac_cv_prog_AR
13783 if test -n "$AR"; then
13784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13785 $as_echo "$AR" >&6; }
13786 else
13787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13788 $as_echo "no" >&6; }
13793 if test -z "$ac_cv_prog_AR"; then
13794   ac_ct_AR=$AR
13795   # Extract the first word of "ar", so it can be a program name with args.
13796 set dummy ar; ac_word=$2
13797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13798 $as_echo_n "checking for $ac_word... " >&6; }
13799 if ${ac_cv_prog_ac_ct_AR+:} false; then :
13800   $as_echo_n "(cached) " >&6
13801 else
13802   if test -n "$ac_ct_AR"; then
13803   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13804 else
13805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13806 for as_dir in $PATH
13808   IFS=$as_save_IFS
13809   test -z "$as_dir" && as_dir=.
13810     for ac_exec_ext in '' $ac_executable_extensions; do
13811   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13812     ac_cv_prog_ac_ct_AR="ar"
13813     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13814     break 2
13815   fi
13816 done
13817   done
13818 IFS=$as_save_IFS
13822 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13823 if test -n "$ac_ct_AR"; then
13824   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13825 $as_echo "$ac_ct_AR" >&6; }
13826 else
13827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13828 $as_echo "no" >&6; }
13831   if test "x$ac_ct_AR" = x; then
13832     AR="ar"
13833   else
13834     case $cross_compiling:$ac_tool_warned in
13835 yes:)
13836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13837 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13838 ac_tool_warned=yes ;;
13839 esac
13840     AR=$ac_ct_AR
13841   fi
13842 else
13843   AR="$ac_cv_prog_AR"
13847 case $host_os in
13848   darwin*)
13849     case $build_os in
13850       darwin*)
13851         
13852         # Extract the first word of "dtrace", so it can be a program name with args.
13853 set dummy dtrace; ac_word=$2
13854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13855 $as_echo_n "checking for $ac_word... " >&6; }
13856 if ${ac_cv_path_DTRACE+:} false; then :
13857   $as_echo_n "(cached) " >&6
13858 else
13859   case $DTRACE in
13860   [\\/]* | ?:[\\/]*)
13861   ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path.
13862   ;;
13863   *)
13864   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13865 as_dummy="$PATH:/usr/local/sbin:/usr/sbin"
13866 for as_dir in $as_dummy
13868   IFS=$as_save_IFS
13869   test -z "$as_dir" && as_dir=.
13870     for ac_exec_ext in '' $ac_executable_extensions; do
13871   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13872     ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext"
13873     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13874     break 2
13875   fi
13876 done
13877   done
13878 IFS=$as_save_IFS
13880   ;;
13881 esac
13883 DTRACE=$ac_cv_path_DTRACE
13884 if test -n "$DTRACE"; then
13885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
13886 $as_echo "$DTRACE" >&6; }
13887 else
13888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13889 $as_echo "no" >&6; }
13893       ;;
13894     esac
13895   ;;
13896 esac
13897 if test -n "$DTRACE"; then :
13898   
13899   PROBES_SOURCE="probes_dnscrypt_proxy.h"
13901 else
13902   
13903   DTRACE="#"
13904   PROBES_SOURCE="probes_no_dtrace.h"
13910 if test -d /usr/local/include; then :
13911   
13912   CPPFLAGS="$CPPFLAGS -I/usr/local/include"
13916 if test -d /usr/local/lib; then :
13917   
13918   LDFLAGS="$LDFLAGS -L/usr/local/lib"
13923 @%:@ Check whether --enable-largefile was given.
13924 if test "${enable_largefile+set}" = set; then :
13925   enableval=$enable_largefile; 
13928 if test "$enable_largefile" != no; then
13930   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
13931 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
13932 if ${ac_cv_sys_largefile_CC+:} false; then :
13933   $as_echo_n "(cached) " >&6
13934 else
13935   ac_cv_sys_largefile_CC=no
13936      if test "$GCC" != yes; then
13937        ac_save_CC=$CC
13938        while :; do
13939          # IRIX 6.2 and later do not support large files by default,
13940          # so use the C compiler's -n32 option if that helps.
13941          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13942 /* end confdefs.h.  */
13943 @%:@include <sys/types.h>
13944  /* Check that off_t can represent 2**63 - 1 correctly.
13945     We can't simply define LARGE_OFF_T to be 9223372036854775807,
13946     since some C++ compilers masquerading as C compilers
13947     incorrectly reject 9223372036854775807.  */
13948 @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13949   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13950                        && LARGE_OFF_T % 2147483647 == 1)
13951                       ? 1 : -1];
13953 main ()
13956   ;
13957   return 0;
13959 _ACEOF
13960          if ac_fn_c_try_compile "$LINENO"; then :
13961   break
13963 rm -f core conftest.err conftest.$ac_objext
13964          CC="$CC -n32"
13965          if ac_fn_c_try_compile "$LINENO"; then :
13966   ac_cv_sys_largefile_CC=' -n32'; break
13968 rm -f core conftest.err conftest.$ac_objext
13969          break
13970        done
13971        CC=$ac_save_CC
13972        rm -f conftest.$ac_ext
13973     fi
13975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
13976 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
13977   if test "$ac_cv_sys_largefile_CC" != no; then
13978     CC=$CC$ac_cv_sys_largefile_CC
13979   fi
13981   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
13982 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
13983 if ${ac_cv_sys_file_offset_bits+:} false; then :
13984   $as_echo_n "(cached) " >&6
13985 else
13986   while :; do
13987   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13988 /* end confdefs.h.  */
13989 @%:@include <sys/types.h>
13990  /* Check that off_t can represent 2**63 - 1 correctly.
13991     We can't simply define LARGE_OFF_T to be 9223372036854775807,
13992     since some C++ compilers masquerading as C compilers
13993     incorrectly reject 9223372036854775807.  */
13994 @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13995   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13996                        && LARGE_OFF_T % 2147483647 == 1)
13997                       ? 1 : -1];
13999 main ()
14002   ;
14003   return 0;
14005 _ACEOF
14006 if ac_fn_c_try_compile "$LINENO"; then :
14007   ac_cv_sys_file_offset_bits=no; break
14009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14010   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14011 /* end confdefs.h.  */
14012 @%:@define _FILE_OFFSET_BITS 64
14013 @%:@include <sys/types.h>
14014  /* Check that off_t can represent 2**63 - 1 correctly.
14015     We can't simply define LARGE_OFF_T to be 9223372036854775807,
14016     since some C++ compilers masquerading as C compilers
14017     incorrectly reject 9223372036854775807.  */
14018 @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14019   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14020                        && LARGE_OFF_T % 2147483647 == 1)
14021                       ? 1 : -1];
14023 main ()
14026   ;
14027   return 0;
14029 _ACEOF
14030 if ac_fn_c_try_compile "$LINENO"; then :
14031   ac_cv_sys_file_offset_bits=64; break
14033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14034   ac_cv_sys_file_offset_bits=unknown
14035   break
14036 done
14038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
14039 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
14040 case $ac_cv_sys_file_offset_bits in #(
14041   no | unknown) ;;
14042   *) 
14043 cat >>confdefs.h <<_ACEOF
14044 @%:@define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
14045 _ACEOF
14047 esac
14048 rm -rf conftest*
14049   if test $ac_cv_sys_file_offset_bits = unknown; then
14050     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
14051 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
14052 if ${ac_cv_sys_large_files+:} false; then :
14053   $as_echo_n "(cached) " >&6
14054 else
14055   while :; do
14056   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14057 /* end confdefs.h.  */
14058 @%:@include <sys/types.h>
14059  /* Check that off_t can represent 2**63 - 1 correctly.
14060     We can't simply define LARGE_OFF_T to be 9223372036854775807,
14061     since some C++ compilers masquerading as C compilers
14062     incorrectly reject 9223372036854775807.  */
14063 @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14064   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14065                        && LARGE_OFF_T % 2147483647 == 1)
14066                       ? 1 : -1];
14068 main ()
14071   ;
14072   return 0;
14074 _ACEOF
14075 if ac_fn_c_try_compile "$LINENO"; then :
14076   ac_cv_sys_large_files=no; break
14078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14079   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14080 /* end confdefs.h.  */
14081 @%:@define _LARGE_FILES 1
14082 @%:@include <sys/types.h>
14083  /* Check that off_t can represent 2**63 - 1 correctly.
14084     We can't simply define LARGE_OFF_T to be 9223372036854775807,
14085     since some C++ compilers masquerading as C compilers
14086     incorrectly reject 9223372036854775807.  */
14087 @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14088   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14089                        && LARGE_OFF_T % 2147483647 == 1)
14090                       ? 1 : -1];
14092 main ()
14095   ;
14096   return 0;
14098 _ACEOF
14099 if ac_fn_c_try_compile "$LINENO"; then :
14100   ac_cv_sys_large_files=1; break
14102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14103   ac_cv_sys_large_files=unknown
14104   break
14105 done
14107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
14108 $as_echo "$ac_cv_sys_large_files" >&6; }
14109 case $ac_cv_sys_large_files in #(
14110   no | unknown) ;;
14111   *) 
14112 cat >>confdefs.h <<_ACEOF
14113 @%:@define _LARGE_FILES $ac_cv_sys_large_files
14114 _ACEOF
14116 esac
14117 rm -rf conftest*
14118   fi
14120   
14123 for ac_header in sys/cdefs.h sys/feature_tests.h
14124 do :
14125   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14126 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14127 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14128   cat >>confdefs.h <<_ACEOF
14129 @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14130 _ACEOF
14134 done
14136 for ac_header in execinfo.h paths.h pwd.h uuid/uuid.h
14137 do :
14138   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14139 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14140 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14141   cat >>confdefs.h <<_ACEOF
14142 @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14143 _ACEOF
14147 done
14149 for ac_header in sandbox.h
14150 do :
14151   ac_fn_c_check_header_mongrel "$LINENO" "sandbox.h" "ac_cv_header_sandbox_h" "$ac_includes_default"
14152 if test "x$ac_cv_header_sandbox_h" = xyes; then :
14153   cat >>confdefs.h <<_ACEOF
14154 @%:@define HAVE_SANDBOX_H 1
14155 _ACEOF
14159 done
14161 for ac_header in ws2tcpip.h
14162 do :
14163   ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
14164 if test "x$ac_cv_header_ws2tcpip_h" = xyes; then :
14165   cat >>confdefs.h <<_ACEOF
14166 @%:@define HAVE_WS2TCPIP_H 1
14167 _ACEOF
14171 done
14175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
14176 $as_echo_n "checking for inline... " >&6; }
14177 if ${ac_cv_c_inline+:} false; then :
14178   $as_echo_n "(cached) " >&6
14179 else
14180   ac_cv_c_inline=no
14181 for ac_kw in inline __inline__ __inline; do
14182   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14183 /* end confdefs.h.  */
14184 #ifndef __cplusplus
14185 typedef int foo_t;
14186 static $ac_kw foo_t static_foo () {return 0; }
14187 $ac_kw foo_t foo () {return 0; }
14188 #endif
14190 _ACEOF
14191 if ac_fn_c_try_compile "$LINENO"; then :
14192   ac_cv_c_inline=$ac_kw
14194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14195   test "$ac_cv_c_inline" != no && break
14196 done
14199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
14200 $as_echo "$ac_cv_c_inline" >&6; }
14202 case $ac_cv_c_inline in
14203   inline | yes) ;;
14204   *)
14205     case $ac_cv_c_inline in
14206       no) ac_val=;;
14207       *) ac_val=$ac_cv_c_inline;;
14208     esac
14209     cat >>confdefs.h <<_ACEOF
14210 #ifndef __cplusplus
14211 #define inline $ac_val
14212 #endif
14213 _ACEOF
14214     ;;
14215 esac
14217  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14218 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14219 if ${ac_cv_c_bigendian+:} false; then :
14220   $as_echo_n "(cached) " >&6
14221 else
14222   ac_cv_c_bigendian=unknown
14223     # See if we're dealing with a universal compiler.
14224     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14225 /* end confdefs.h.  */
14226 #ifndef __APPLE_CC__
14227                not a universal capable compiler
14228              #endif
14229              typedef int dummy;
14230             
14231 _ACEOF
14232 if ac_fn_c_try_compile "$LINENO"; then :
14233   
14234         # Check for potential -arch flags.  It is not universal unless
14235         # there are at least two -arch flags with different values.
14236         ac_arch=
14237         ac_prev=
14238         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14239          if test -n "$ac_prev"; then
14240            case $ac_word in
14241              i?86 | x86_64 | ppc | ppc64)
14242                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14243                  ac_arch=$ac_word
14244                else
14245                  ac_cv_c_bigendian=universal
14246                  break
14247                fi
14248                ;;
14249            esac
14250            ac_prev=
14251          elif test "x$ac_word" = "x-arch"; then
14252            ac_prev=arch
14253          fi
14254        done
14256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14257     if test $ac_cv_c_bigendian = unknown; then
14258       # See if sys/param.h defines the BYTE_ORDER macro.
14259       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14260 /* end confdefs.h.  */
14261 #include <sys/types.h>
14262              #include <sys/param.h>
14263            
14265 main ()
14267 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14268                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14269                      && LITTLE_ENDIAN)
14270               bogus endian macros
14271              #endif
14272            
14273   ;
14274   return 0;
14276 _ACEOF
14277 if ac_fn_c_try_compile "$LINENO"; then :
14278   # It does; now see whether it defined to BIG_ENDIAN or not.
14279          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14280 /* end confdefs.h.  */
14281 #include <sys/types.h>
14282                 #include <sys/param.h>
14283               
14285 main ()
14287 #if BYTE_ORDER != BIG_ENDIAN
14288                  not big endian
14289                 #endif
14290               
14291   ;
14292   return 0;
14294 _ACEOF
14295 if ac_fn_c_try_compile "$LINENO"; then :
14296   ac_cv_c_bigendian=yes
14297 else
14298   ac_cv_c_bigendian=no
14300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14303     fi
14304     if test $ac_cv_c_bigendian = unknown; then
14305       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14306       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14307 /* end confdefs.h.  */
14308 #include <limits.h>
14309            
14311 main ()
14313 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14314               bogus endian macros
14315              #endif
14316            
14317   ;
14318   return 0;
14320 _ACEOF
14321 if ac_fn_c_try_compile "$LINENO"; then :
14322   # It does; now see whether it defined to _BIG_ENDIAN or not.
14323          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14324 /* end confdefs.h.  */
14325 #include <limits.h>
14326               
14328 main ()
14330 #ifndef _BIG_ENDIAN
14331                  not big endian
14332                 #endif
14333               
14334   ;
14335   return 0;
14337 _ACEOF
14338 if ac_fn_c_try_compile "$LINENO"; then :
14339   ac_cv_c_bigendian=yes
14340 else
14341   ac_cv_c_bigendian=no
14343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14346     fi
14347     if test $ac_cv_c_bigendian = unknown; then
14348       # Compile a test program.
14349       if test "$cross_compiling" = yes; then :
14350   # Try to guess by grepping values from an object file.
14351          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14352 /* end confdefs.h.  */
14353 short int ascii_mm[] =
14354                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14355                 short int ascii_ii[] =
14356                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14357                 int use_ascii (int i) {
14358                   return ascii_mm[i] + ascii_ii[i];
14359                 }
14360                 short int ebcdic_ii[] =
14361                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14362                 short int ebcdic_mm[] =
14363                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14364                 int use_ebcdic (int i) {
14365                   return ebcdic_mm[i] + ebcdic_ii[i];
14366                 }
14367                 extern int foo;
14368               
14370 main ()
14372 return use_ascii (foo) == use_ebcdic (foo);
14373   ;
14374   return 0;
14376 _ACEOF
14377 if ac_fn_c_try_compile "$LINENO"; then :
14378   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14379               ac_cv_c_bigendian=yes
14380             fi
14381             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14382               if test "$ac_cv_c_bigendian" = unknown; then
14383                 ac_cv_c_bigendian=no
14384               else
14385                 # finding both strings is unlikely to happen, but who knows?
14386                 ac_cv_c_bigendian=unknown
14387               fi
14388             fi
14390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14391 else
14392   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14393 /* end confdefs.h.  */
14394 $ac_includes_default
14396 main ()
14399              /* Are we little or big endian?  From Harbison&Steele.  */
14400              union
14401              {
14402                long int l;
14403                char c[sizeof (long int)];
14404              } u;
14405              u.l = 1;
14406              return u.c[sizeof (long int) - 1] == 1;
14407            
14408   ;
14409   return 0;
14411 _ACEOF
14412 if ac_fn_c_try_run "$LINENO"; then :
14413   ac_cv_c_bigendian=no
14414 else
14415   ac_cv_c_bigendian=yes
14417 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14418   conftest.$ac_objext conftest.beam conftest.$ac_ext
14421     fi
14423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14424 $as_echo "$ac_cv_c_bigendian" >&6; }
14425  case $ac_cv_c_bigendian in #(
14426    yes)
14427      $as_echo "@%:@define WORDS_BIGENDIAN 1" >>confdefs.h
14428 ;; #(
14429    no)
14430       ;; #(
14431    universal)
14432         
14433 $as_echo "@%:@define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14435      ;; #(
14436    *)
14437      as_fn_error $? "unknown endianness
14438  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14439  esac
14441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
14442 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
14443 if ${ac_cv_c_restrict+:} false; then :
14444   $as_echo_n "(cached) " >&6
14445 else
14446   ac_cv_c_restrict=no
14447    # The order here caters to the fact that C++ does not require restrict.
14448    for ac_kw in __restrict __restrict__ _Restrict restrict; do
14449      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14450 /* end confdefs.h.  */
14451 typedef int * int_ptr;
14452         int foo (int_ptr $ac_kw ip) {
14453         return ip[0];
14454        }
14456 main ()
14458 int s[1];
14459         int * $ac_kw t = s;
14460         t[0] = 0;
14461         return foo(t)
14462   ;
14463   return 0;
14465 _ACEOF
14466 if ac_fn_c_try_compile "$LINENO"; then :
14467   ac_cv_c_restrict=$ac_kw
14469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14470      test "$ac_cv_c_restrict" != no && break
14471    done
14472   
14474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
14475 $as_echo "$ac_cv_c_restrict" >&6; }
14477  case $ac_cv_c_restrict in
14478    restrict) ;;
14479    no) $as_echo "@%:@define restrict /**/" >>confdefs.h
14480  ;;
14481    *)  cat >>confdefs.h <<_ACEOF
14482 @%:@define restrict $ac_cv_c_restrict
14483 _ACEOF
14484  ;;
14485  esac
14488 ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "
14489 #include <sys/types.h>
14490 #ifdef HAVE_UNISTD_H
14491 # include <unistd.h>
14492 #endif
14493 #ifdef HAVE_WS2TCPIP_H
14494 # include <ws2tcpip.h>
14495 #else
14496 # include <sys/socket.h>
14497 # include <netinet/in.h>
14498 #endif
14501 if test "x$ac_cv_type_in_port_t" = xyes; then :
14502   
14503 else
14504   
14505 $as_echo "@%:@define in_port_t uint16_t" >>confdefs.h
14510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sin_len is defined" >&5
14511 $as_echo_n "checking whether sin_len is defined... " >&6; }
14512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14513 /* end confdefs.h.  */
14515 #include <sys/types.h>
14516 #include <stdio.h>
14517 #ifdef HAVE_UNISTD_H
14518 # include <unistd.h>
14519 #endif
14520 #ifdef HAVE_WS2TCPIP_H
14521 # include <ws2tcpip.h>
14522 #else
14523 # include <sys/socket.h>
14524 # include <netinet/in.h>
14525 #endif
14528 main ()
14531 do {
14532  struct sockaddr_in a;
14533  (void) a.sin_len;
14534 } while(0)
14536   ;
14537   return 0;
14539 _ACEOF
14540 if ac_fn_c_try_compile "$LINENO"; then :
14541   
14542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14543 $as_echo "yes" >&6; }
14544   
14545 $as_echo "@%:@define HAVE_SIN_LEN 1" >>confdefs.h
14548 else
14549   
14550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14551 $as_echo "no" >&6; }
14554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __ss_family is defined" >&5
14557 $as_echo_n "checking whether __ss_family is defined... " >&6; }
14558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14559 /* end confdefs.h.  */
14561 #include <sys/types.h>
14562 #include <stdio.h>
14563 #ifdef HAVE_UNISTD_H
14564 # include <unistd.h>
14565 #endif
14566 #ifdef HAVE_WS2TCPIP_H
14567 # include <ws2tcpip.h>
14568 #else
14569 # include <sys/socket.h>
14570 # include <netinet/in.h>
14571 #endif
14574 main ()
14577 do {
14578  struct sockaddr_storage a;
14579  (void) a.__ss_family;
14580 } while(0)
14582   ;
14583   return 0;
14585 _ACEOF
14586 if ac_fn_c_try_compile "$LINENO"; then :
14587   
14588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14589 $as_echo "yes" >&6; }
14590   
14591 $as_echo "@%:@define HAVE___SS_FAMILY 1" >>confdefs.h
14594 else
14595   
14596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14597 $as_echo "no" >&6; }
14600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ss_len is defined" >&5
14603 $as_echo_n "checking whether ss_len is defined... " >&6; }
14604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14605 /* end confdefs.h.  */
14607 #include <sys/types.h>
14608 #include <stdio.h>
14609 #ifdef HAVE_UNISTD_H
14610 # include <unistd.h>
14611 #endif
14612 #ifdef HAVE_WS2TCPIP_H
14613 # include <ws2tcpip.h>
14614 #else
14615 # include <sys/socket.h>
14616 # include <netinet/in.h>
14617 #endif
14620 main ()
14623 do {
14624  struct sockaddr_storage a;
14625  (void) a.ss_len;
14626 } while(0)
14628   ;
14629   return 0;
14631 _ACEOF
14632 if ac_fn_c_try_compile "$LINENO"; then :
14633   
14634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14635 $as_echo "yes" >&6; }
14636   
14637 $as_echo "@%:@define HAVE_SS_LEN 1" >>confdefs.h
14640 else
14641   
14642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14643 $as_echo "no" >&6; }
14646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __ss_len is defined" >&5
14649 $as_echo_n "checking whether __ss_len is defined... " >&6; }
14650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14651 /* end confdefs.h.  */
14653 #include <sys/types.h>
14654 #include <stdio.h>
14655 #ifdef HAVE_UNISTD_H
14656 # include <unistd.h>
14657 #endif
14658 #ifdef HAVE_WS2TCPIP_H
14659 # include <ws2tcpip.h>
14660 #else
14661 # include <sys/socket.h>
14662 # include <netinet/in.h>
14663 #endif
14666 main ()
14669 do {
14670  struct sockaddr_storage a;
14671  (void) a.__ss_len;
14672 } while(0)
14674   ;
14675   return 0;
14677 _ACEOF
14678 if ac_fn_c_try_compile "$LINENO"; then :
14679   
14680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14681 $as_echo "yes" >&6; }
14682   
14683 $as_echo "@%:@define HAVE___SS_LEN 1" >>confdefs.h
14686 else
14687   
14688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14689 $as_echo "no" >&6; }
14692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pow" >&5
14696 $as_echo_n "checking for library containing pow... " >&6; }
14697 if ${ac_cv_search_pow+:} false; then :
14698   $as_echo_n "(cached) " >&6
14699 else
14700   ac_func_search_save_LIBS=$LIBS
14701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14702 /* end confdefs.h.  */
14704 /* Override any GCC internal prototype to avoid an error.
14705    Use char because int might match the return type of a GCC
14706    builtin and then its argument prototype would still apply.  */
14707 #ifdef __cplusplus
14708 extern "C"
14709 #endif
14710 char pow ();
14712 main ()
14714 return pow ();
14715   ;
14716   return 0;
14718 _ACEOF
14719 for ac_lib in '' m; do
14720   if test -z "$ac_lib"; then
14721     ac_res="none required"
14722   else
14723     ac_res=-l$ac_lib
14724     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14725   fi
14726   if ac_fn_c_try_link "$LINENO"; then :
14727   ac_cv_search_pow=$ac_res
14729 rm -f core conftest.err conftest.$ac_objext \
14730     conftest$ac_exeext
14731   if ${ac_cv_search_pow+:} false; then :
14732   break
14734 done
14735 if ${ac_cv_search_pow+:} false; then :
14736   
14737 else
14738   ac_cv_search_pow=no
14740 rm conftest.$ac_ext
14741 LIBS=$ac_func_search_save_LIBS
14743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pow" >&5
14744 $as_echo "$ac_cv_search_pow" >&6; }
14745 ac_res=$ac_cv_search_pow
14746 if test "$ac_res" != no; then :
14747   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14748   
14751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
14752 $as_echo_n "checking for library containing dlopen... " >&6; }
14753 if ${ac_cv_search_dlopen+:} false; then :
14754   $as_echo_n "(cached) " >&6
14755 else
14756   ac_func_search_save_LIBS=$LIBS
14757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14758 /* end confdefs.h.  */
14760 /* Override any GCC internal prototype to avoid an error.
14761    Use char because int might match the return type of a GCC
14762    builtin and then its argument prototype would still apply.  */
14763 #ifdef __cplusplus
14764 extern "C"
14765 #endif
14766 char dlopen ();
14768 main ()
14770 return dlopen ();
14771   ;
14772   return 0;
14774 _ACEOF
14775 for ac_lib in '' dl; do
14776   if test -z "$ac_lib"; then
14777     ac_res="none required"
14778   else
14779     ac_res=-l$ac_lib
14780     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14781   fi
14782   if ac_fn_c_try_link "$LINENO"; then :
14783   ac_cv_search_dlopen=$ac_res
14785 rm -f core conftest.err conftest.$ac_objext \
14786     conftest$ac_exeext
14787   if ${ac_cv_search_dlopen+:} false; then :
14788   break
14790 done
14791 if ${ac_cv_search_dlopen+:} false; then :
14792   
14793 else
14794   ac_cv_search_dlopen=no
14796 rm conftest.$ac_ext
14797 LIBS=$ac_func_search_save_LIBS
14799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
14800 $as_echo "$ac_cv_search_dlopen" >&6; }
14801 ac_res=$ac_cv_search_dlopen
14802 if test "$ac_res" != no; then :
14803   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14804   
14807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
14808 $as_echo_n "checking for library containing clock_gettime... " >&6; }
14809 if ${ac_cv_search_clock_gettime+:} false; then :
14810   $as_echo_n "(cached) " >&6
14811 else
14812   ac_func_search_save_LIBS=$LIBS
14813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14814 /* end confdefs.h.  */
14816 /* Override any GCC internal prototype to avoid an error.
14817    Use char because int might match the return type of a GCC
14818    builtin and then its argument prototype would still apply.  */
14819 #ifdef __cplusplus
14820 extern "C"
14821 #endif
14822 char clock_gettime ();
14824 main ()
14826 return clock_gettime ();
14827   ;
14828   return 0;
14830 _ACEOF
14831 for ac_lib in '' rt; do
14832   if test -z "$ac_lib"; then
14833     ac_res="none required"
14834   else
14835     ac_res=-l$ac_lib
14836     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14837   fi
14838   if ac_fn_c_try_link "$LINENO"; then :
14839   ac_cv_search_clock_gettime=$ac_res
14841 rm -f core conftest.err conftest.$ac_objext \
14842     conftest$ac_exeext
14843   if ${ac_cv_search_clock_gettime+:} false; then :
14844   break
14846 done
14847 if ${ac_cv_search_clock_gettime+:} false; then :
14848   
14849 else
14850   ac_cv_search_clock_gettime=no
14852 rm conftest.$ac_ext
14853 LIBS=$ac_func_search_save_LIBS
14855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
14856 $as_echo "$ac_cv_search_clock_gettime" >&6; }
14857 ac_res=$ac_cv_search_clock_gettime
14858 if test "$ac_res" != no; then :
14859   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14860   
14861 $as_echo "@%:@define HAVE_CLOCK_GETTIME 1" >>confdefs.h
14866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing backtrace" >&5
14867 $as_echo_n "checking for library containing backtrace... " >&6; }
14868 if ${ac_cv_search_backtrace+:} false; then :
14869   $as_echo_n "(cached) " >&6
14870 else
14871   ac_func_search_save_LIBS=$LIBS
14872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14873 /* end confdefs.h.  */
14875 /* Override any GCC internal prototype to avoid an error.
14876    Use char because int might match the return type of a GCC
14877    builtin and then its argument prototype would still apply.  */
14878 #ifdef __cplusplus
14879 extern "C"
14880 #endif
14881 char backtrace ();
14883 main ()
14885 return backtrace ();
14886   ;
14887   return 0;
14889 _ACEOF
14890 for ac_lib in '' execinfo; do
14891   if test -z "$ac_lib"; then
14892     ac_res="none required"
14893   else
14894     ac_res=-l$ac_lib
14895     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14896   fi
14897   if ac_fn_c_try_link "$LINENO"; then :
14898   ac_cv_search_backtrace=$ac_res
14900 rm -f core conftest.err conftest.$ac_objext \
14901     conftest$ac_exeext
14902   if ${ac_cv_search_backtrace+:} false; then :
14903   break
14905 done
14906 if ${ac_cv_search_backtrace+:} false; then :
14907   
14908 else
14909   ac_cv_search_backtrace=no
14911 rm conftest.$ac_ext
14912 LIBS=$ac_func_search_save_LIBS
14914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_backtrace" >&5
14915 $as_echo "$ac_cv_search_backtrace" >&6; }
14916 ac_res=$ac_cv_search_backtrace
14917 if test "$ac_res" != no; then :
14918   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14919   
14920 $as_echo "@%:@define HAVE_BACKTRACE 1" >>confdefs.h
14925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
14926 $as_echo_n "checking for library containing gethostbyname... " >&6; }
14927 if ${ac_cv_search_gethostbyname+:} false; then :
14928   $as_echo_n "(cached) " >&6
14929 else
14930   ac_func_search_save_LIBS=$LIBS
14931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14932 /* end confdefs.h.  */
14934 /* Override any GCC internal prototype to avoid an error.
14935    Use char because int might match the return type of a GCC
14936    builtin and then its argument prototype would still apply.  */
14937 #ifdef __cplusplus
14938 extern "C"
14939 #endif
14940 char gethostbyname ();
14942 main ()
14944 return gethostbyname ();
14945   ;
14946   return 0;
14948 _ACEOF
14949 for ac_lib in '' resolv nsl; do
14950   if test -z "$ac_lib"; then
14951     ac_res="none required"
14952   else
14953     ac_res=-l$ac_lib
14954     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14955   fi
14956   if ac_fn_c_try_link "$LINENO"; then :
14957   ac_cv_search_gethostbyname=$ac_res
14959 rm -f core conftest.err conftest.$ac_objext \
14960     conftest$ac_exeext
14961   if ${ac_cv_search_gethostbyname+:} false; then :
14962   break
14964 done
14965 if ${ac_cv_search_gethostbyname+:} false; then :
14966   
14967 else
14968   ac_cv_search_gethostbyname=no
14970 rm conftest.$ac_ext
14971 LIBS=$ac_func_search_save_LIBS
14973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
14974 $as_echo "$ac_cv_search_gethostbyname" >&6; }
14975 ac_res=$ac_cv_search_gethostbyname
14976 if test "$ac_res" != no; then :
14977   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14978   
14981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing recvfrom" >&5
14982 $as_echo_n "checking for library containing recvfrom... " >&6; }
14983 if ${ac_cv_search_recvfrom+:} false; then :
14984   $as_echo_n "(cached) " >&6
14985 else
14986   ac_func_search_save_LIBS=$LIBS
14987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14988 /* end confdefs.h.  */
14990 /* Override any GCC internal prototype to avoid an error.
14991    Use char because int might match the return type of a GCC
14992    builtin and then its argument prototype would still apply.  */
14993 #ifdef __cplusplus
14994 extern "C"
14995 #endif
14996 char recvfrom ();
14998 main ()
15000 return recvfrom ();
15001   ;
15002   return 0;
15004 _ACEOF
15005 for ac_lib in '' socket; do
15006   if test -z "$ac_lib"; then
15007     ac_res="none required"
15008   else
15009     ac_res=-l$ac_lib
15010     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15011   fi
15012   if ac_fn_c_try_link "$LINENO"; then :
15013   ac_cv_search_recvfrom=$ac_res
15015 rm -f core conftest.err conftest.$ac_objext \
15016     conftest$ac_exeext
15017   if ${ac_cv_search_recvfrom+:} false; then :
15018   break
15020 done
15021 if ${ac_cv_search_recvfrom+:} false; then :
15022   
15023 else
15024   ac_cv_search_recvfrom=no
15026 rm conftest.$ac_ext
15027 LIBS=$ac_func_search_save_LIBS
15029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_recvfrom" >&5
15030 $as_echo "$ac_cv_search_recvfrom" >&6; }
15031 ac_res=$ac_cv_search_recvfrom
15032 if test "$ac_res" != no; then :
15033   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15034   
15037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kvm_open" >&5
15038 $as_echo_n "checking for library containing kvm_open... " >&6; }
15039 if ${ac_cv_search_kvm_open+:} false; then :
15040   $as_echo_n "(cached) " >&6
15041 else
15042   ac_func_search_save_LIBS=$LIBS
15043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15044 /* end confdefs.h.  */
15046 /* Override any GCC internal prototype to avoid an error.
15047    Use char because int might match the return type of a GCC
15048    builtin and then its argument prototype would still apply.  */
15049 #ifdef __cplusplus
15050 extern "C"
15051 #endif
15052 char kvm_open ();
15054 main ()
15056 return kvm_open ();
15057   ;
15058   return 0;
15060 _ACEOF
15061 for ac_lib in '' kvm; do
15062   if test -z "$ac_lib"; then
15063     ac_res="none required"
15064   else
15065     ac_res=-l$ac_lib
15066     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15067   fi
15068   if ac_fn_c_try_link "$LINENO"; then :
15069   ac_cv_search_kvm_open=$ac_res
15071 rm -f core conftest.err conftest.$ac_objext \
15072     conftest$ac_exeext
15073   if ${ac_cv_search_kvm_open+:} false; then :
15074   break
15076 done
15077 if ${ac_cv_search_kvm_open+:} false; then :
15078   
15079 else
15080   ac_cv_search_kvm_open=no
15082 rm conftest.$ac_ext
15083 LIBS=$ac_func_search_save_LIBS
15085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kvm_open" >&5
15086 $as_echo "$ac_cv_search_kvm_open" >&6; }
15087 ac_res=$ac_cv_search_kvm_open
15088 if test "$ac_res" != no; then :
15089   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15090   
15093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sodium_init" >&5
15094 $as_echo_n "checking for library containing sodium_init... " >&6; }
15095 if ${ac_cv_search_sodium_init+:} false; then :
15096   $as_echo_n "(cached) " >&6
15097 else
15098   ac_func_search_save_LIBS=$LIBS
15099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15100 /* end confdefs.h.  */
15102 /* Override any GCC internal prototype to avoid an error.
15103    Use char because int might match the return type of a GCC
15104    builtin and then its argument prototype would still apply.  */
15105 #ifdef __cplusplus
15106 extern "C"
15107 #endif
15108 char sodium_init ();
15110 main ()
15112 return sodium_init ();
15113   ;
15114   return 0;
15116 _ACEOF
15117 for ac_lib in '' sodium; do
15118   if test -z "$ac_lib"; then
15119     ac_res="none required"
15120   else
15121     ac_res=-l$ac_lib
15122     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15123   fi
15124   if ac_fn_c_try_link "$LINENO"; then :
15125   ac_cv_search_sodium_init=$ac_res
15127 rm -f core conftest.err conftest.$ac_objext \
15128     conftest$ac_exeext
15129   if ${ac_cv_search_sodium_init+:} false; then :
15130   break
15132 done
15133 if ${ac_cv_search_sodium_init+:} false; then :
15134   
15135 else
15136   ac_cv_search_sodium_init=no
15138 rm conftest.$ac_ext
15139 LIBS=$ac_func_search_save_LIBS
15141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sodium_init" >&5
15142 $as_echo "$ac_cv_search_sodium_init" >&6; }
15143 ac_res=$ac_cv_search_sodium_init
15144 if test "$ac_res" != no; then :
15145   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15146    
15147 else
15148   as_fn_error $? "libsodium not found" "$LINENO" 5
15152 use_ldns=no
15153 ac_fn_c_check_header_compile "$LINENO" "ldns/ldns.h" "ac_cv_header_ldns_ldns_h" "#include <sys/types.h>
15154  #include <stdlib.h>
15155  #include <stdint.h>
15156  #ifdef HAVE_WS2TCPIP_H
15157  # include <ws2tcpip.h>
15158  #endif
15161 if test "x$ac_cv_header_ldns_ldns_h" = xyes; then :
15162   
15163   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldns_wire2pkt in -lldns" >&5
15164 $as_echo_n "checking for ldns_wire2pkt in -lldns... " >&6; }
15165 if ${ac_cv_lib_ldns_ldns_wire2pkt+:} false; then :
15166   $as_echo_n "(cached) " >&6
15167 else
15168   ac_check_lib_save_LIBS=$LIBS
15169 LIBS="-lldns  $LIBS"
15170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15171 /* end confdefs.h.  */
15173 /* Override any GCC internal prototype to avoid an error.
15174    Use char because int might match the return type of a GCC
15175    builtin and then its argument prototype would still apply.  */
15176 #ifdef __cplusplus
15177 extern "C"
15178 #endif
15179 char ldns_wire2pkt ();
15181 main ()
15183 return ldns_wire2pkt ();
15184   ;
15185   return 0;
15187 _ACEOF
15188 if ac_fn_c_try_link "$LINENO"; then :
15189   ac_cv_lib_ldns_ldns_wire2pkt=yes
15190 else
15191   ac_cv_lib_ldns_ldns_wire2pkt=no
15193 rm -f core conftest.err conftest.$ac_objext \
15194     conftest$ac_exeext conftest.$ac_ext
15195 LIBS=$ac_check_lib_save_LIBS
15197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldns_ldns_wire2pkt" >&5
15198 $as_echo "$ac_cv_lib_ldns_ldns_wire2pkt" >&6; }
15199 if test "x$ac_cv_lib_ldns_ldns_wire2pkt" = xyes; then :
15200   
15201     
15202 $as_echo "@%:@define USE_LDNS 1" >>confdefs.h
15204     LDNS_LIBS=-lldns
15205     use_ldns=yes
15206   
15213  if test x$use_ldns = xyes; then
15214   USE_LDNS_TRUE=
15215   USE_LDNS_FALSE='#'
15216 else
15217   USE_LDNS_TRUE='#'
15218   USE_LDNS_FALSE=
15223 case $host_os in
15224   cygwin* | mingw* | pw32* | cegcc*)
15225     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _head_libws2_32_a in -lws2_32" >&5
15226 $as_echo_n "checking for _head_libws2_32_a in -lws2_32... " >&6; }
15227 if ${ac_cv_lib_ws2_32__head_libws2_32_a+:} false; then :
15228   $as_echo_n "(cached) " >&6
15229 else
15230   ac_check_lib_save_LIBS=$LIBS
15231 LIBS="-lws2_32  $LIBS"
15232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15233 /* end confdefs.h.  */
15235 /* Override any GCC internal prototype to avoid an error.
15236    Use char because int might match the return type of a GCC
15237    builtin and then its argument prototype would still apply.  */
15238 #ifdef __cplusplus
15239 extern "C"
15240 #endif
15241 char _head_libws2_32_a ();
15243 main ()
15245 return _head_libws2_32_a ();
15246   ;
15247   return 0;
15249 _ACEOF
15250 if ac_fn_c_try_link "$LINENO"; then :
15251   ac_cv_lib_ws2_32__head_libws2_32_a=yes
15252 else
15253   ac_cv_lib_ws2_32__head_libws2_32_a=no
15255 rm -f core conftest.err conftest.$ac_objext \
15256     conftest$ac_exeext conftest.$ac_ext
15257 LIBS=$ac_check_lib_save_LIBS
15259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32__head_libws2_32_a" >&5
15260 $as_echo "$ac_cv_lib_ws2_32__head_libws2_32_a" >&6; }
15261 if test "x$ac_cv_lib_ws2_32__head_libws2_32_a" = xyes; then :
15262   cat >>confdefs.h <<_ACEOF
15263 @%:@define HAVE_LIBWS2_32 1
15264 _ACEOF
15266   LIBS="-lws2_32 $LIBS"
15270     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _head_libpsapi_a in -lpsapi" >&5
15271 $as_echo_n "checking for _head_libpsapi_a in -lpsapi... " >&6; }
15272 if ${ac_cv_lib_psapi__head_libpsapi_a+:} false; then :
15273   $as_echo_n "(cached) " >&6
15274 else
15275   ac_check_lib_save_LIBS=$LIBS
15276 LIBS="-lpsapi  $LIBS"
15277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15278 /* end confdefs.h.  */
15280 /* Override any GCC internal prototype to avoid an error.
15281    Use char because int might match the return type of a GCC
15282    builtin and then its argument prototype would still apply.  */
15283 #ifdef __cplusplus
15284 extern "C"
15285 #endif
15286 char _head_libpsapi_a ();
15288 main ()
15290 return _head_libpsapi_a ();
15291   ;
15292   return 0;
15294 _ACEOF
15295 if ac_fn_c_try_link "$LINENO"; then :
15296   ac_cv_lib_psapi__head_libpsapi_a=yes
15297 else
15298   ac_cv_lib_psapi__head_libpsapi_a=no
15300 rm -f core conftest.err conftest.$ac_objext \
15301     conftest$ac_exeext conftest.$ac_ext
15302 LIBS=$ac_check_lib_save_LIBS
15304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_psapi__head_libpsapi_a" >&5
15305 $as_echo "$ac_cv_lib_psapi__head_libpsapi_a" >&6; }
15306 if test "x$ac_cv_lib_psapi__head_libpsapi_a" = xyes; then :
15307   cat >>confdefs.h <<_ACEOF
15308 @%:@define HAVE_LIBPSAPI 1
15309 _ACEOF
15311   LIBS="-lpsapi $LIBS"
15315     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _head_libiphlpapi_a in -liphlpapi" >&5
15316 $as_echo_n "checking for _head_libiphlpapi_a in -liphlpapi... " >&6; }
15317 if ${ac_cv_lib_iphlpapi__head_libiphlpapi_a+:} false; then :
15318   $as_echo_n "(cached) " >&6
15319 else
15320   ac_check_lib_save_LIBS=$LIBS
15321 LIBS="-liphlpapi  $LIBS"
15322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15323 /* end confdefs.h.  */
15325 /* Override any GCC internal prototype to avoid an error.
15326    Use char because int might match the return type of a GCC
15327    builtin and then its argument prototype would still apply.  */
15328 #ifdef __cplusplus
15329 extern "C"
15330 #endif
15331 char _head_libiphlpapi_a ();
15333 main ()
15335 return _head_libiphlpapi_a ();
15336   ;
15337   return 0;
15339 _ACEOF
15340 if ac_fn_c_try_link "$LINENO"; then :
15341   ac_cv_lib_iphlpapi__head_libiphlpapi_a=yes
15342 else
15343   ac_cv_lib_iphlpapi__head_libiphlpapi_a=no
15345 rm -f core conftest.err conftest.$ac_objext \
15346     conftest$ac_exeext conftest.$ac_ext
15347 LIBS=$ac_check_lib_save_LIBS
15349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iphlpapi__head_libiphlpapi_a" >&5
15350 $as_echo "$ac_cv_lib_iphlpapi__head_libiphlpapi_a" >&6; }
15351 if test "x$ac_cv_lib_iphlpapi__head_libiphlpapi_a" = xyes; then :
15352   cat >>confdefs.h <<_ACEOF
15353 @%:@define HAVE_LIBIPHLPAPI 1
15354 _ACEOF
15356   LIBS="-liphlpapi $LIBS"
15360   ;;
15361 esac
15363 ac_fn_c_check_header_mongrel "$LINENO" "CoreServices/CoreServices.h" "ac_cv_header_CoreServices_CoreServices_h" "$ac_includes_default"
15364 if test "x$ac_cv_header_CoreServices_CoreServices_h" = xyes; then :
15365   LIBS="$LIBS -framework CoreFoundation -framework CoreServices"
15370 for ac_func in getpwnam sandbox_init setrlimit putc_unlocked gmtime_r
15371 do :
15372   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15373 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15374 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15375   cat >>confdefs.h <<_ACEOF
15376 @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15377 _ACEOF
15380 done
15382 for ac_func in sodium_mlock
15383 do :
15384   ac_fn_c_check_func "$LINENO" "sodium_mlock" "ac_cv_func_sodium_mlock"
15385 if test "x$ac_cv_func_sodium_mlock" = xyes; then :
15386   cat >>confdefs.h <<_ACEOF
15387 @%:@define HAVE_SODIUM_MLOCK 1
15388 _ACEOF
15391 done
15398              
15399                   
15403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
15404 $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
15405 if ${libltdl_cv_shlibext+:} false; then :
15406   $as_echo_n "(cached) " >&6
15407 else
15408   
15409 module=yes
15410 eval libltdl_cv_shlibext=$shrext_cmds
15411 module=no
15412 eval libltdl_cv_shrext=$shrext_cmds
15413   
15415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
15416 $as_echo "$libltdl_cv_shlibext" >&6; }
15417 if test -n "$libltdl_cv_shlibext"; then
15418     
15419 cat >>confdefs.h <<_ACEOF
15420 @%:@define LT_MODULE_EXT "$libltdl_cv_shlibext"
15421 _ACEOF
15424 if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
15425     
15426 cat >>confdefs.h <<_ACEOF
15427 @%:@define LT_SHARED_EXT "$libltdl_cv_shrext"
15428 _ACEOF
15432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
15433 $as_echo_n "checking which variable specifies run-time module search path... " >&6; }
15434 if ${lt_cv_module_path_var+:} false; then :
15435   $as_echo_n "(cached) " >&6
15436 else
15437   lt_cv_module_path_var="$shlibpath_var"
15439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
15440 $as_echo "$lt_cv_module_path_var" >&6; }
15441 if test -n "$lt_cv_module_path_var"; then
15442     
15443 cat >>confdefs.h <<_ACEOF
15444 @%:@define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
15445 _ACEOF
15449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
15450 $as_echo_n "checking for the default library search path... " >&6; }
15451 if ${lt_cv_sys_dlsearch_path+:} false; then :
15452   $as_echo_n "(cached) " >&6
15453 else
15454   lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
15456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
15457 $as_echo "$lt_cv_sys_dlsearch_path" >&6; }
15458 if test -n "$lt_cv_sys_dlsearch_path"; then
15459   sys_dlsearch_path=
15460   for dir in $lt_cv_sys_dlsearch_path; do
15461     if test -z "$sys_dlsearch_path"; then
15462       sys_dlsearch_path="$dir"
15463     else
15464       sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
15465     fi
15466   done
15467     
15468 cat >>confdefs.h <<_ACEOF
15469 @%:@define LT_DLSEARCH_PATH "$sys_dlsearch_path"
15470 _ACEOF
15475 LT_DLLOADERS=
15478 ac_ext=c
15479 ac_cpp='$CPP $CPPFLAGS'
15480 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15481 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15482 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15485 LIBADD_DLOPEN=
15486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
15487 $as_echo_n "checking for library containing dlopen... " >&6; }
15488 if ${ac_cv_search_dlopen+:} false; then :
15489   $as_echo_n "(cached) " >&6
15490 else
15491   ac_func_search_save_LIBS=$LIBS
15492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15493 /* end confdefs.h.  */
15495 /* Override any GCC internal prototype to avoid an error.
15496    Use char because int might match the return type of a GCC
15497    builtin and then its argument prototype would still apply.  */
15498 #ifdef __cplusplus
15499 extern "C"
15500 #endif
15501 char dlopen ();
15503 main ()
15505 return dlopen ();
15506   ;
15507   return 0;
15509 _ACEOF
15510 for ac_lib in '' dl; do
15511   if test -z "$ac_lib"; then
15512     ac_res="none required"
15513   else
15514     ac_res=-l$ac_lib
15515     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15516   fi
15517   if ac_fn_c_try_link "$LINENO"; then :
15518   ac_cv_search_dlopen=$ac_res
15520 rm -f core conftest.err conftest.$ac_objext \
15521     conftest$ac_exeext
15522   if ${ac_cv_search_dlopen+:} false; then :
15523   break
15525 done
15526 if ${ac_cv_search_dlopen+:} false; then :
15527   
15528 else
15529   ac_cv_search_dlopen=no
15531 rm conftest.$ac_ext
15532 LIBS=$ac_func_search_save_LIBS
15534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
15535 $as_echo "$ac_cv_search_dlopen" >&6; }
15536 ac_res=$ac_cv_search_dlopen
15537 if test "$ac_res" != no; then :
15538   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15539   
15540 $as_echo "@%:@define HAVE_LIBDL 1" >>confdefs.h
15542         if test "$ac_cv_search_dlopen" != "none required" ; then
15543           LIBADD_DLOPEN="-ldl"
15544         fi
15545         libltdl_cv_lib_dl_dlopen="yes"
15546         LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
15547 else
15548   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15549 /* end confdefs.h.  */
15550 #if HAVE_DLFCN_H
15551 #  include <dlfcn.h>
15552 #endif
15553     
15555 main ()
15557 dlopen(0, 0);
15558   ;
15559   return 0;
15561 _ACEOF
15562 if ac_fn_c_try_link "$LINENO"; then :
15563   
15564 $as_echo "@%:@define HAVE_LIBDL 1" >>confdefs.h
15566             libltdl_cv_func_dlopen="yes"
15567             LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
15568 else
15569   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
15570 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
15571 if ${ac_cv_lib_svld_dlopen+:} false; then :
15572   $as_echo_n "(cached) " >&6
15573 else
15574   ac_check_lib_save_LIBS=$LIBS
15575 LIBS="-lsvld  $LIBS"
15576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15577 /* end confdefs.h.  */
15579 /* Override any GCC internal prototype to avoid an error.
15580    Use char because int might match the return type of a GCC
15581    builtin and then its argument prototype would still apply.  */
15582 #ifdef __cplusplus
15583 extern "C"
15584 #endif
15585 char dlopen ();
15587 main ()
15589 return dlopen ();
15590   ;
15591   return 0;
15593 _ACEOF
15594 if ac_fn_c_try_link "$LINENO"; then :
15595   ac_cv_lib_svld_dlopen=yes
15596 else
15597   ac_cv_lib_svld_dlopen=no
15599 rm -f core conftest.err conftest.$ac_objext \
15600     conftest$ac_exeext conftest.$ac_ext
15601 LIBS=$ac_check_lib_save_LIBS
15603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15604 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
15605 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
15606   
15607 $as_echo "@%:@define HAVE_LIBDL 1" >>confdefs.h
15609                 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
15610                 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
15614 rm -f core conftest.err conftest.$ac_objext \
15615     conftest$ac_exeext conftest.$ac_ext
15618 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
15619 then
15620   lt_save_LIBS="$LIBS"
15621   LIBS="$LIBS $LIBADD_DLOPEN"
15622   for ac_func in dlerror
15623 do :
15624   ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
15625 if test "x$ac_cv_func_dlerror" = xyes; then :
15626   cat >>confdefs.h <<_ACEOF
15627 @%:@define HAVE_DLERROR 1
15628 _ACEOF
15631 done
15633   LIBS="$lt_save_LIBS"
15637 LIBADD_SHL_LOAD=
15638 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15639 if test "x$ac_cv_func_shl_load" = xyes; then :
15640   
15641 $as_echo "@%:@define HAVE_SHL_LOAD 1" >>confdefs.h
15643         LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
15644 else
15645   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15646 $as_echo_n "checking for shl_load in -ldld... " >&6; }
15647 if ${ac_cv_lib_dld_shl_load+:} false; then :
15648   $as_echo_n "(cached) " >&6
15649 else
15650   ac_check_lib_save_LIBS=$LIBS
15651 LIBS="-ldld  $LIBS"
15652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15653 /* end confdefs.h.  */
15655 /* Override any GCC internal prototype to avoid an error.
15656    Use char because int might match the return type of a GCC
15657    builtin and then its argument prototype would still apply.  */
15658 #ifdef __cplusplus
15659 extern "C"
15660 #endif
15661 char shl_load ();
15663 main ()
15665 return shl_load ();
15666   ;
15667   return 0;
15669 _ACEOF
15670 if ac_fn_c_try_link "$LINENO"; then :
15671   ac_cv_lib_dld_shl_load=yes
15672 else
15673   ac_cv_lib_dld_shl_load=no
15675 rm -f core conftest.err conftest.$ac_objext \
15676     conftest$ac_exeext conftest.$ac_ext
15677 LIBS=$ac_check_lib_save_LIBS
15679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15680 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
15681 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
15682   
15683 $as_echo "@%:@define HAVE_SHL_LOAD 1" >>confdefs.h
15685             LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
15686             LIBADD_SHL_LOAD="-ldld"
15693 case $host_os in
15694 darwin[1567].*)
15695 # We only want this for pre-Mac OS X 10.4.
15696   ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
15697 if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
15698   
15699 $as_echo "@%:@define HAVE_DYLD 1" >>confdefs.h
15701         LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
15704   ;;
15705 beos*)
15706   LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
15707   ;;
15708 cygwin* | mingw* | os2* | pw32*)
15709   ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
15711 if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
15712   ac_have_decl=1
15713 else
15714   ac_have_decl=0
15717 cat >>confdefs.h <<_ACEOF
15718 @%:@define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
15719 _ACEOF
15721   LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
15722   ;;
15723 esac
15725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15726 $as_echo_n "checking for dld_link in -ldld... " >&6; }
15727 if ${ac_cv_lib_dld_dld_link+:} false; then :
15728   $as_echo_n "(cached) " >&6
15729 else
15730   ac_check_lib_save_LIBS=$LIBS
15731 LIBS="-ldld  $LIBS"
15732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15733 /* end confdefs.h.  */
15735 /* Override any GCC internal prototype to avoid an error.
15736    Use char because int might match the return type of a GCC
15737    builtin and then its argument prototype would still apply.  */
15738 #ifdef __cplusplus
15739 extern "C"
15740 #endif
15741 char dld_link ();
15743 main ()
15745 return dld_link ();
15746   ;
15747   return 0;
15749 _ACEOF
15750 if ac_fn_c_try_link "$LINENO"; then :
15751   ac_cv_lib_dld_dld_link=yes
15752 else
15753   ac_cv_lib_dld_dld_link=no
15755 rm -f core conftest.err conftest.$ac_objext \
15756     conftest$ac_exeext conftest.$ac_ext
15757 LIBS=$ac_check_lib_save_LIBS
15759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
15760 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
15761 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
15762   
15763 $as_echo "@%:@define HAVE_DLD 1" >>confdefs.h
15765                 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
15771 LT_DLPREOPEN=
15772 if test -n "$LT_DLLOADERS"
15773 then
15774   for lt_loader in $LT_DLLOADERS; do
15775     LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
15776   done
15777   
15778 $as_echo "@%:@define HAVE_LIBDLLOADER 1" >>confdefs.h
15783 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
15786 ac_ext=c
15787 ac_cpp='$CPP $CPPFLAGS'
15788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15790 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
15794 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
15795 if ${lt_cv_sys_symbol_underscore+:} false; then :
15796   $as_echo_n "(cached) " >&6
15797 else
15798   lt_cv_sys_symbol_underscore=no
15799   cat > conftest.$ac_ext <<_LT_EOF
15800 void nm_test_func(){}
15801 int main(){nm_test_func;return 0;}
15802 _LT_EOF
15803   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15804   (eval $ac_compile) 2>&5
15805   ac_status=$?
15806   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15807   test $ac_status = 0; }; then
15808     # Now try to grab the symbols.
15809     ac_nlist=conftest.nm
15810     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
15811   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
15812   ac_status=$?
15813   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15814   test $ac_status = 0; } && test -s "$ac_nlist"; then
15815       # See whether the symbols have a leading underscore.
15816       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
15817         lt_cv_sys_symbol_underscore=yes
15818       else
15819         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
15820           :
15821         else
15822           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
15823         fi
15824       fi
15825     else
15826       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
15827     fi
15828   else
15829     echo "configure: failed program was:" >&5
15830     cat conftest.c >&5
15831   fi
15832   rm -rf conftest*
15833   
15835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
15836 $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
15837   sys_symbol_underscore=$lt_cv_sys_symbol_underscore
15838   
15840 if test x"$lt_cv_sys_symbol_underscore" = xyes; then
15841   if test x"$libltdl_cv_func_dlopen" = xyes ||
15842      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
15843         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
15844 $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
15845 if ${libltdl_cv_need_uscore+:} false; then :
15846   $as_echo_n "(cached) " >&6
15847 else
15848   libltdl_cv_need_uscore=unknown
15849           save_LIBS="$LIBS"
15850           LIBS="$LIBS $LIBADD_DLOPEN"
15851           if test "$cross_compiling" = yes; then :
15852   libltdl_cv_need_uscore=cross
15853 else
15854   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15855   lt_status=$lt_dlunknown
15856   cat > conftest.$ac_ext <<_LT_EOF
15857 #line $LINENO "configure"
15858 #include "confdefs.h"
15860 #if HAVE_DLFCN_H
15861 #include <dlfcn.h>
15862 #endif
15864 #include <stdio.h>
15866 #ifdef RTLD_GLOBAL
15867 #  define LT_DLGLOBAL           RTLD_GLOBAL
15868 #else
15869 #  ifdef DL_GLOBAL
15870 #    define LT_DLGLOBAL         DL_GLOBAL
15871 #  else
15872 #    define LT_DLGLOBAL         0
15873 #  endif
15874 #endif
15876 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15877    find out it does not work in some platform. */
15878 #ifndef LT_DLLAZY_OR_NOW
15879 #  ifdef RTLD_LAZY
15880 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
15881 #  else
15882 #    ifdef DL_LAZY
15883 #      define LT_DLLAZY_OR_NOW          DL_LAZY
15884 #    else
15885 #      ifdef RTLD_NOW
15886 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
15887 #      else
15888 #        ifdef DL_NOW
15889 #          define LT_DLLAZY_OR_NOW      DL_NOW
15890 #        else
15891 #          define LT_DLLAZY_OR_NOW      0
15892 #        endif
15893 #      endif
15894 #    endif
15895 #  endif
15896 #endif
15898 /* When -fvisbility=hidden is used, assume the code has been annotated
15899    correspondingly for the symbols needed.  */
15900 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15901 int fnord () __attribute__((visibility("default")));
15902 #endif
15904 int fnord () { return 42; }
15905 int main ()
15907   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15908   int status = $lt_dlunknown;
15910   if (self)
15911     {
15912       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
15913       else
15914         {
15915           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
15916           else puts (dlerror ());
15917         }
15918       /* dlclose (self); */
15919     }
15920   else
15921     puts (dlerror ());
15923   return status;
15925 _LT_EOF
15926   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15927   (eval $ac_link) 2>&5
15928   ac_status=$?
15929   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15930   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
15931     (./conftest; exit; ) >&5 2>/dev/null
15932     lt_status=$?
15933     case x$lt_status in
15934       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
15935       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
15936       x$lt_dlunknown|x*)  ;;
15937     esac
15938   else :
15939     # compilation failed
15940     
15941   fi
15943 rm -fr conftest*
15945           LIBS="$save_LIBS"
15946         
15948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
15949 $as_echo "$libltdl_cv_need_uscore" >&6; }
15950   fi
15953 if test x"$libltdl_cv_need_uscore" = xyes; then
15954   
15955 $as_echo "@%:@define NEED_USCORE 1" >>confdefs.h
15959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
15960 $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
15961 if ${lt_cv_sys_dlopen_deplibs+:} false; then :
15962   $as_echo_n "(cached) " >&6
15963 else
15964   # PORTME does your system automatically load deplibs for dlopen?
15965   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
15966   # For now, we just catch OSes we know something about -- in the
15967   # future, we'll try test this programmatically.
15968   lt_cv_sys_dlopen_deplibs=unknown
15969   case $host_os in
15970   aix3*|aix4.1.*|aix4.2.*)
15971     # Unknown whether this is true for these versions of AIX, but
15972     # we want this `case' here to explicitly catch those versions.
15973     lt_cv_sys_dlopen_deplibs=unknown
15974     ;;
15975   aix[4-9]*)
15976     lt_cv_sys_dlopen_deplibs=yes
15977     ;;
15978   amigaos*)
15979     case $host_cpu in
15980     powerpc)
15981       lt_cv_sys_dlopen_deplibs=no
15982       ;;
15983     esac
15984     ;;
15985   darwin*)
15986     # Assuming the user has installed a libdl from somewhere, this is true
15987     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
15988     lt_cv_sys_dlopen_deplibs=yes
15989     ;;
15990   freebsd* | dragonfly*)
15991     lt_cv_sys_dlopen_deplibs=yes
15992     ;;
15993   gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
15994     # GNU and its variants, using gnu ld.so (Glibc)
15995     lt_cv_sys_dlopen_deplibs=yes
15996     ;;
15997   hpux10*|hpux11*)
15998     lt_cv_sys_dlopen_deplibs=yes
15999     ;;
16000   interix*)
16001     lt_cv_sys_dlopen_deplibs=yes
16002     ;;
16003   irix[12345]*|irix6.[01]*)
16004     # Catch all versions of IRIX before 6.2, and indicate that we don't
16005     # know how it worked for any of those versions.
16006     lt_cv_sys_dlopen_deplibs=unknown
16007     ;;
16008   irix*)
16009     # The case above catches anything before 6.2, and it's known that
16010     # at 6.2 and later dlopen does load deplibs.
16011     lt_cv_sys_dlopen_deplibs=yes
16012     ;;
16013   netbsd* | netbsdelf*-gnu)
16014     lt_cv_sys_dlopen_deplibs=yes
16015     ;;
16016   openbsd*)
16017     lt_cv_sys_dlopen_deplibs=yes
16018     ;;
16019   osf[1234]*)
16020     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
16021     # it did *not* use an RPATH in a shared library to find objects the
16022     # library depends on, so we explicitly say `no'.
16023     lt_cv_sys_dlopen_deplibs=no
16024     ;;
16025   osf5.0|osf5.0a|osf5.1)
16026     # dlopen *does* load deplibs and with the right loader patch applied
16027     # it even uses RPATH in a shared library to search for shared objects
16028     # that the library depends on, but there's no easy way to know if that
16029     # patch is installed.  Since this is the case, all we can really
16030     # say is unknown -- it depends on the patch being installed.  If
16031     # it is, this changes to `yes'.  Without it, it would be `no'.
16032     lt_cv_sys_dlopen_deplibs=unknown
16033     ;;
16034   osf*)
16035     # the two cases above should catch all versions of osf <= 5.1.  Read
16036     # the comments above for what we know about them.
16037     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
16038     # is used to find them so we can finally say `yes'.
16039     lt_cv_sys_dlopen_deplibs=yes
16040     ;;
16041   qnx*)
16042     lt_cv_sys_dlopen_deplibs=yes
16043     ;;
16044   solaris*)
16045     lt_cv_sys_dlopen_deplibs=yes
16046     ;;
16047   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16048     libltdl_cv_sys_dlopen_deplibs=yes
16049     ;;
16050   esac
16051   
16053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
16054 $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
16055 if test "$lt_cv_sys_dlopen_deplibs" != yes; then
16057 $as_echo "@%:@define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
16063 for ac_header in argz.h
16064 do :
16065   ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
16067 if test "x$ac_cv_header_argz_h" = xyes; then :
16068   cat >>confdefs.h <<_ACEOF
16069 @%:@define HAVE_ARGZ_H 1
16070 _ACEOF
16074 done
16077 ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
16078 #  include <argz.h>
16079 #endif
16081 if test "x$ac_cv_type_error_t" = xyes; then :
16082   
16083 cat >>confdefs.h <<_ACEOF
16084 @%:@define HAVE_ERROR_T 1
16085 _ACEOF
16088 else
16089   
16090 $as_echo "@%:@define error_t int" >>confdefs.h
16092    
16093 $as_echo "@%:@define __error_t_defined 1" >>confdefs.h
16098 ARGZ_H=
16099 for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
16100         argz_next argz_stringify
16101 do :
16102   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16103 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16104 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16105   cat >>confdefs.h <<_ACEOF
16106 @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16107 _ACEOF
16109 else
16110   ARGZ_H=argz.h; 
16111   
16112   _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
16115 done
16118 if test -z "$ARGZ_H"; then :
16119   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
16120 $as_echo_n "checking if argz actually works... " >&6; }
16121 if ${lt_cv_sys_argz_works+:} false; then :
16122   $as_echo_n "(cached) " >&6
16123 else
16124   case $host_os in #(
16125          *cygwin*)
16126            lt_cv_sys_argz_works=no
16127            if test "$cross_compiling" != no; then
16128              lt_cv_sys_argz_works="guessing no"
16129            else
16130              lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
16131              save_IFS=$IFS
16132              IFS=-.
16133              set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
16134              IFS=$save_IFS
16135              lt_os_major=${2-0}
16136              lt_os_minor=${3-0}
16137              lt_os_micro=${4-0}
16138              if test "$lt_os_major" -gt 1 \
16139                 || { test "$lt_os_major" -eq 1 \
16140                   && { test "$lt_os_minor" -gt 5 \
16141                     || { test "$lt_os_minor" -eq 5 \
16142                       && test "$lt_os_micro" -gt 24; }; }; }; then
16143                lt_cv_sys_argz_works=yes
16144              fi
16145            fi
16146            ;; #(
16147          *) lt_cv_sys_argz_works=yes ;;
16148          esac
16150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
16151 $as_echo "$lt_cv_sys_argz_works" >&6; }
16152      if test "$lt_cv_sys_argz_works" = yes; then :
16153   
16154 $as_echo "@%:@define HAVE_WORKING_ARGZ 1" >>confdefs.h
16156 else
16157   ARGZ_H=argz.h
16158         
16159   
16160   _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
16167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
16168 $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
16169 if ${libltdl_cv_preloaded_symbols+:} false; then :
16170   $as_echo_n "(cached) " >&6
16171 else
16172   if test -n "$lt_cv_sys_global_symbol_pipe"; then
16173     libltdl_cv_preloaded_symbols=yes
16174   else
16175     libltdl_cv_preloaded_symbols=no
16176   fi
16177   
16179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
16180 $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
16181 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
16182   
16183 $as_echo "@%:@define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
16187 # Set options
16197         
16200 @%:@ Check whether --with-included_ltdl was given.
16201 if test "${with_included_ltdl+set}" = set; then :
16202   withval=$with_included_ltdl; 
16206 if test "x$with_included_ltdl" != xyes; then
16207   # We are not being forced to use the included libltdl sources, so
16208   # decide whether there is a useful installed version we can use.
16209   ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
16210   
16212 if test "x$ac_cv_header_ltdl_h" = xyes; then :
16213   ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
16214             #include <ltdl.h>
16216 if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
16217   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
16218 $as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
16219 if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
16220   $as_echo_n "(cached) " >&6
16221 else
16222   ac_check_lib_save_LIBS=$LIBS
16223 LIBS="-lltdl  $LIBS"
16224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16225 /* end confdefs.h.  */
16227 /* Override any GCC internal prototype to avoid an error.
16228    Use char because int might match the return type of a GCC
16229    builtin and then its argument prototype would still apply.  */
16230 #ifdef __cplusplus
16231 extern "C"
16232 #endif
16233 char lt_dladvise_preload ();
16235 main ()
16237 return lt_dladvise_preload ();
16238   ;
16239   return 0;
16241 _ACEOF
16242 if ac_fn_c_try_link "$LINENO"; then :
16243   ac_cv_lib_ltdl_lt_dladvise_preload=yes
16244 else
16245   ac_cv_lib_ltdl_lt_dladvise_preload=no
16247 rm -f core conftest.err conftest.$ac_objext \
16248     conftest$ac_exeext conftest.$ac_ext
16249 LIBS=$ac_check_lib_save_LIBS
16251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
16252 $as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
16253 if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
16254   with_included_ltdl=no
16255 else
16256   with_included_ltdl=yes
16259 else
16260   with_included_ltdl=yes
16263 else
16264   with_included_ltdl=yes
16273 @%:@ Check whether --with-ltdl_include was given.
16274 if test "${with_ltdl_include+set}" = set; then :
16275   withval=$with_ltdl_include; 
16279 if test -n "$with_ltdl_include"; then
16280   if test -f "$with_ltdl_include/ltdl.h"; then :
16281   else
16282     as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
16283   fi
16284 else
16285   with_ltdl_include=no
16289 @%:@ Check whether --with-ltdl_lib was given.
16290 if test "${with_ltdl_lib+set}" = set; then :
16291   withval=$with_ltdl_lib; 
16295 if test -n "$with_ltdl_lib"; then
16296   if test -f "$with_ltdl_lib/libltdl.la"; then :
16297   else
16298     as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
16299   fi
16300 else
16301   with_ltdl_lib=no
16304 case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
16305   ,yes,no,no,)
16306         case $enable_ltdl_convenience in
16307   no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
16308   "") enable_ltdl_convenience=yes
16309       ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
16310 esac
16311 LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
16312 LTDLDEPS=$LIBLTDL
16313 LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
16319 # For backwards non-gettext consistent compatibility...
16320 INCLTDL="$LTDLINCL"
16323         ;;
16324   ,no,no,no,)
16325         # If the included ltdl is not to be used, then use the
16326         # preinstalled libltdl we found.
16327         
16328 $as_echo "@%:@define HAVE_LTDL 1" >>confdefs.h
16330         LIBLTDL=-lltdl
16331         LTDLDEPS=
16332         LTDLINCL=
16333         ;;
16334   ,no*,no,*)
16335         as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
16336         ;;
16337   *)    with_included_ltdl=no
16338         LIBLTDL="-L$with_ltdl_lib -lltdl"
16339         LTDLDEPS=
16340         LTDLINCL="-I$with_ltdl_include"
16341         ;;
16342 esac
16343 INCLTDL="$LTDLINCL"
16345 # Report our decision...
16346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
16347 $as_echo_n "checking where to find libltdl headers... " >&6; }
16348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
16349 $as_echo "$LTDLINCL" >&6; }
16350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
16351 $as_echo_n "checking where to find libltdl library... " >&6; }
16352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
16353 $as_echo "$LIBLTDL" >&6; }
16357 @%:@ Check whether --enable-ltdl-install was given.
16358 if test "${enable_ltdl_install+set}" = set; then :
16359   enableval=$enable_ltdl_install; 
16363 case ,${enable_ltdl_install},${enable_ltdl_convenience} in
16364   *yes*) ;;
16365   *) enable_ltdl_convenience=yes ;;
16366 esac
16368  if test x"${enable_ltdl_install-no}" != xno; then
16369   INSTALL_LTDL_TRUE=
16370   INSTALL_LTDL_FALSE='#'
16371 else
16372   INSTALL_LTDL_TRUE='#'
16373   INSTALL_LTDL_FALSE=
16376   if test x"${enable_ltdl_convenience-no}" != xno; then
16377   CONVENIENCE_LTDL_TRUE=
16378   CONVENIENCE_LTDL_FALSE='#'
16379 else
16380   CONVENIENCE_LTDL_TRUE='#'
16381   CONVENIENCE_LTDL_FALSE=
16386     subdirs="$subdirs libltdl"
16388                           
16391 # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
16392 # the user used.  This is so that ltdl.h can pick up the parent projects
16393 # config.h file, The first file in AC_CONFIG_HEADERS must contain the
16394 # definitions required by ltdl.c.
16395 # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
16399 for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
16400 do :
16401   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16402 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
16404 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16405   cat >>confdefs.h <<_ACEOF
16406 @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16407 _ACEOF
16411 done
16414 for ac_func in closedir opendir readdir
16415 do :
16416   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16417 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16418 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16419   cat >>confdefs.h <<_ACEOF
16420 @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16421 _ACEOF
16423 else
16424   
16425   
16426   _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
16429 done
16431 for ac_func in strlcat strlcpy
16432 do :
16433   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16434 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16435 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16436   cat >>confdefs.h <<_ACEOF
16437 @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16438 _ACEOF
16440 else
16441   
16442   
16443   _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
16446 done
16450 cat >>confdefs.h <<_ACEOF
16451 @%:@define LT_LIBEXT "$libext"
16452 _ACEOF
16455 name=
16456 eval "lt_libprefix=\"$libname_spec\""
16458 cat >>confdefs.h <<_ACEOF
16459 @%:@define LT_LIBPREFIX "$lt_libprefix"
16460 _ACEOF
16463 name=ltdl
16464 eval "LTDLOPEN=\"$libname_spec\""
16473 # Only expand once:
16478 case $host_os in
16479   cygwin* | mingw* | pw32* | cegcc*) ;;
16480   *) ac_configure_args="$ac_configure_args --disable-thread-support" ;;
16481 esac
16483 ac_configure_args="$ac_configure_args --disable-dependency-tracking"
16484 ac_configure_args="$ac_configure_args --disable-libevent-install"
16485 ac_configure_args="$ac_configure_args --disable-openssl"
16486 ac_configure_args="$ac_configure_args --disable-shared"
16487 ac_configure_args="$ac_configure_args --enable-function-sections"
16488 ac_configure_args="$ac_configure_args CC='$CC'"
16489 ac_configure_args="$ac_configure_args CFLAGS='$CFLAGS'"
16490 ac_configure_args="$ac_configure_args CPP='$CPP'"
16491 ac_configure_args="$ac_configure_args CPPFLAGS='$CPPFLAGS'"
16492 ac_configure_args="$ac_configure_args LDFLAGS='$LDFLAGS'"
16493 ac_configure_args="$ac_configure_args LIBS='$LIBS'"
16498 ac_config_files="$ac_config_files Makefile dist-build/Makefile man/Makefile src/Makefile src/hostip/Makefile src/proxy/Makefile src/ext/Makefile src/include/Makefile src/include/dnscrypt/version.h src/plugins/Makefile src/plugins/example/Makefile src/plugins/example-logging/Makefile src/plugins/example-ldns-aaaa-blocking/Makefile src/plugins/example-ldns-blocking/Makefile src/plugins/example-ldns-opendns-deviceid/Makefile src/plugins/example-ldns-opendns-set-client-ip/Makefile test/Makefile"
16501 cat >confcache <<\_ACEOF
16502 # This file is a shell script that caches the results of configure
16503 # tests run on this system so they can be shared between configure
16504 # scripts and configure runs, see configure's option --config-cache.
16505 # It is not useful on other systems.  If it contains results you don't
16506 # want to keep, you may remove or edit it.
16508 # config.status only pays attention to the cache file if you give it
16509 # the --recheck option to rerun configure.
16511 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16512 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16513 # following values.
16515 _ACEOF
16517 # The following way of writing the cache mishandles newlines in values,
16518 # but we know of no workaround that is simple, portable, and efficient.
16519 # So, we kill variables containing newlines.
16520 # Ultrix sh set writes to stderr and can't be redirected directly,
16521 # and sets the high bit in the cache file unless we assign to the vars.
16523   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16524     eval ac_val=\$$ac_var
16525     case $ac_val in #(
16526     *${as_nl}*)
16527       case $ac_var in #(
16528       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16529 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16530       esac
16531       case $ac_var in #(
16532       _ | IFS | as_nl) ;; #(
16533       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16534       *) { eval $ac_var=; unset $ac_var;} ;;
16535       esac ;;
16536     esac
16537   done
16539   (set) 2>&1 |
16540     case $as_nl`(ac_space=' '; set) 2>&1` in #(
16541     *${as_nl}ac_space=\ *)
16542       # `set' does not quote correctly, so add quotes: double-quote
16543       # substitution turns \\\\ into \\, and sed turns \\ into \.
16544       sed -n \
16545         "s/'/'\\\\''/g;
16546           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16547       ;; #(
16548     *)
16549       # `set' quotes correctly as required by POSIX, so do not add quotes.
16550       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16551       ;;
16552     esac |
16553     sort
16554 ) |
16555   sed '
16556      /^ac_cv_env_/b end
16557      t clear
16558      :clear
16559      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16560      t end
16561      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16562      :end' >>confcache
16563 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16564   if test -w "$cache_file"; then
16565     if test "x$cache_file" != "x/dev/null"; then
16566       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16567 $as_echo "$as_me: updating cache $cache_file" >&6;}
16568       if test ! -f "$cache_file" || test -h "$cache_file"; then
16569         cat confcache >"$cache_file"
16570       else
16571         case $cache_file in #(
16572         */* | ?:*)
16573           mv -f confcache "$cache_file"$$ &&
16574           mv -f "$cache_file"$$ "$cache_file" ;; #(
16575         *)
16576           mv -f confcache "$cache_file" ;;
16577         esac
16578       fi
16579     fi
16580   else
16581     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16582 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16583   fi
16585 rm -f confcache
16587 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16588 # Let make expand exec_prefix.
16589 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16591 DEFS=-DHAVE_CONFIG_H
16593 ac_libobjs=
16594 ac_ltlibobjs=
16596 for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
16597   # 1. Remove the extension, and $U if already installed.
16598   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16599   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16600   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16601   #    will be set to the directory where LIBOBJS objects are built.
16602   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16603   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16604 done
16605 LIB@&t@OBJS=$ac_libobjs
16607 LTLIBOBJS=$ac_ltlibobjs
16610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16611 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16612    if test -n "$am_sleep_pid"; then
16613      # Hide warnings about reused PIDs.
16614      wait $am_sleep_pid 2>/dev/null
16615    fi
16616    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16617 $as_echo "done" >&6; }
16618  if test -n "$EXEEXT"; then
16619   am__EXEEXT_TRUE=
16620   am__EXEEXT_FALSE='#'
16621 else
16622   am__EXEEXT_TRUE='#'
16623   am__EXEEXT_FALSE=
16626 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16627   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16628 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16630 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16631   as_fn_error $? "conditional \"AMDEP\" was never defined.
16632 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16634 if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then
16635   as_fn_error $? "conditional \"PLUGINS\" was never defined.
16636 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16638 if test -z "${RELAXED_PLUGINS_PERMISSIONS_TRUE}" && test -z "${RELAXED_PLUGINS_PERMISSIONS_FALSE}"; then
16639   as_fn_error $? "conditional \"RELAXED_PLUGINS_PERMISSIONS\" was never defined.
16640 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16642 if test -z "${ENABLE_PLUGINS_ROOT_TRUE}" && test -z "${ENABLE_PLUGINS_ROOT_FALSE}"; then
16643   as_fn_error $? "conditional \"ENABLE_PLUGINS_ROOT\" was never defined.
16644 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16646 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16647   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16648 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16651 if test -z "${USE_LDNS_TRUE}" && test -z "${USE_LDNS_FALSE}"; then
16652   as_fn_error $? "conditional \"USE_LDNS\" was never defined.
16653 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16655 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
16656   as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
16657 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16659 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
16660   as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
16661 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16663 LT_CONFIG_H=config.h
16665     _ltdl_libobjs=
16666     _ltdl_ltlibobjs=
16667     if test -n "$_LT_LIBOBJS"; then
16668       # Remove the extension.
16669       _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
16670       for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
16671         _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
16672         _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
16673       done
16674     fi
16675     ltdl_LIBOBJS=$_ltdl_libobjs
16677     ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
16681 : "${CONFIG_STATUS=./config.status}"
16682 ac_write_fail=0
16683 ac_clean_files_save=$ac_clean_files
16684 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16685 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16686 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16687 as_write_fail=0
16688 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16689 #! $SHELL
16690 # Generated by $as_me.
16691 # Run this file to recreate the current configuration.
16692 # Compiler output produced by configure, useful for debugging
16693 # configure, is in config.log if it exists.
16695 debug=false
16696 ac_cs_recheck=false
16697 ac_cs_silent=false
16699 SHELL=\${CONFIG_SHELL-$SHELL}
16700 export SHELL
16701 _ASEOF
16702 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16703 ## -------------------- ##
16704 ## M4sh Initialization. ##
16705 ## -------------------- ##
16707 # Be more Bourne compatible
16708 DUALCASE=1; export DUALCASE # for MKS sh
16709 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16710   emulate sh
16711   NULLCMD=:
16712   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16713   # is contrary to our usage.  Disable this feature.
16714   alias -g '${1+"$@"}'='"$@"'
16715   setopt NO_GLOB_SUBST
16716 else
16717   case `(set -o) 2>/dev/null` in @%:@(
16718   *posix*) :
16719     set -o posix ;; @%:@(
16720   *) :
16721      ;;
16722 esac
16726 as_nl='
16728 export as_nl
16729 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16730 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16731 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16732 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16733 # Prefer a ksh shell builtin over an external printf program on Solaris,
16734 # but without wasting forks for bash or zsh.
16735 if test -z "$BASH_VERSION$ZSH_VERSION" \
16736     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16737   as_echo='print -r --'
16738   as_echo_n='print -rn --'
16739 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16740   as_echo='printf %s\n'
16741   as_echo_n='printf %s'
16742 else
16743   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16744     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16745     as_echo_n='/usr/ucb/echo -n'
16746   else
16747     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16748     as_echo_n_body='eval
16749       arg=$1;
16750       case $arg in @%:@(
16751       *"$as_nl"*)
16752         expr "X$arg" : "X\\(.*\\)$as_nl";
16753         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16754       esac;
16755       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16756     '
16757     export as_echo_n_body
16758     as_echo_n='sh -c $as_echo_n_body as_echo'
16759   fi
16760   export as_echo_body
16761   as_echo='sh -c $as_echo_body as_echo'
16764 # The user is always right.
16765 if test "${PATH_SEPARATOR+set}" != set; then
16766   PATH_SEPARATOR=:
16767   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16768     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16769       PATH_SEPARATOR=';'
16770   }
16774 # IFS
16775 # We need space, tab and new line, in precisely that order.  Quoting is
16776 # there to prevent editors from complaining about space-tab.
16777 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16778 # splitting by setting IFS to empty value.)
16779 IFS=" ""        $as_nl"
16781 # Find who we are.  Look in the path if we contain no directory separator.
16782 as_myself=
16783 case $0 in @%:@((
16784   *[\\/]* ) as_myself=$0 ;;
16785   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16786 for as_dir in $PATH
16788   IFS=$as_save_IFS
16789   test -z "$as_dir" && as_dir=.
16790     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16791   done
16792 IFS=$as_save_IFS
16794      ;;
16795 esac
16796 # We did not find ourselves, most probably we were run as `sh COMMAND'
16797 # in which case we are not to be found in the path.
16798 if test "x$as_myself" = x; then
16799   as_myself=$0
16801 if test ! -f "$as_myself"; then
16802   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16803   exit 1
16806 # Unset variables that we do not need and which cause bugs (e.g. in
16807 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
16808 # suppresses any "Segmentation fault" message there.  '((' could
16809 # trigger a bug in pdksh 5.2.14.
16810 for as_var in BASH_ENV ENV MAIL MAILPATH
16811 do eval test x\${$as_var+set} = xset \
16812   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16813 done
16814 PS1='$ '
16815 PS2='> '
16816 PS4='+ '
16818 # NLS nuisances.
16819 LC_ALL=C
16820 export LC_ALL
16821 LANGUAGE=C
16822 export LANGUAGE
16824 # CDPATH.
16825 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16828 @%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
16829 @%:@ ----------------------------------------
16830 @%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16831 @%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16832 @%:@ script with STATUS, using 1 if that was 0.
16833 as_fn_error ()
16835   as_status=$1; test $as_status -eq 0 && as_status=1
16836   if test "$4"; then
16837     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16838     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16839   fi
16840   $as_echo "$as_me: error: $2" >&2
16841   as_fn_exit $as_status
16842 } @%:@ as_fn_error
16845 @%:@ as_fn_set_status STATUS
16846 @%:@ -----------------------
16847 @%:@ Set @S|@? to STATUS, without forking.
16848 as_fn_set_status ()
16850   return $1
16851 } @%:@ as_fn_set_status
16853 @%:@ as_fn_exit STATUS
16854 @%:@ -----------------
16855 @%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16856 as_fn_exit ()
16858   set +e
16859   as_fn_set_status $1
16860   exit $1
16861 } @%:@ as_fn_exit
16863 @%:@ as_fn_unset VAR
16864 @%:@ ---------------
16865 @%:@ Portably unset VAR.
16866 as_fn_unset ()
16868   { eval $1=; unset $1;}
16870 as_unset=as_fn_unset
16871 @%:@ as_fn_append VAR VALUE
16872 @%:@ ----------------------
16873 @%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
16874 @%:@ advantage of any shell optimizations that allow amortized linear growth over
16875 @%:@ repeated appends, instead of the typical quadratic growth present in naive
16876 @%:@ implementations.
16877 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16878   eval 'as_fn_append ()
16879   {
16880     eval $1+=\$2
16881   }'
16882 else
16883   as_fn_append ()
16884   {
16885     eval $1=\$$1\$2
16886   }
16887 fi # as_fn_append
16889 @%:@ as_fn_arith ARG...
16890 @%:@ ------------------
16891 @%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
16892 @%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
16893 @%:@ must be portable across @S|@(()) and expr.
16894 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16895   eval 'as_fn_arith ()
16896   {
16897     as_val=$(( $* ))
16898   }'
16899 else
16900   as_fn_arith ()
16901   {
16902     as_val=`expr "$@" || test $? -eq 1`
16903   }
16904 fi # as_fn_arith
16907 if expr a : '\(a\)' >/dev/null 2>&1 &&
16908    test "X`expr 00001 : '.*\(...\)'`" = X001; then
16909   as_expr=expr
16910 else
16911   as_expr=false
16914 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16915   as_basename=basename
16916 else
16917   as_basename=false
16920 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16921   as_dirname=dirname
16922 else
16923   as_dirname=false
16926 as_me=`$as_basename -- "$0" ||
16927 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16928          X"$0" : 'X\(//\)$' \| \
16929          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16930 $as_echo X/"$0" |
16931     sed '/^.*\/\([^/][^/]*\)\/*$/{
16932             s//\1/
16933             q
16934           }
16935           /^X\/\(\/\/\)$/{
16936             s//\1/
16937             q
16938           }
16939           /^X\/\(\/\).*/{
16940             s//\1/
16941             q
16942           }
16943           s/.*/./; q'`
16945 # Avoid depending upon Character Ranges.
16946 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16947 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16948 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16949 as_cr_digits='0123456789'
16950 as_cr_alnum=$as_cr_Letters$as_cr_digits
16952 ECHO_C= ECHO_N= ECHO_T=
16953 case `echo -n x` in @%:@(((((
16954 -n*)
16955   case `echo 'xy\c'` in
16956   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
16957   xy)  ECHO_C='\c';;
16958   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16959        ECHO_T=' ';;
16960   esac;;
16962   ECHO_N='-n';;
16963 esac
16965 rm -f conf$$ conf$$.exe conf$$.file
16966 if test -d conf$$.dir; then
16967   rm -f conf$$.dir/conf$$.file
16968 else
16969   rm -f conf$$.dir
16970   mkdir conf$$.dir 2>/dev/null
16972 if (echo >conf$$.file) 2>/dev/null; then
16973   if ln -s conf$$.file conf$$ 2>/dev/null; then
16974     as_ln_s='ln -s'
16975     # ... but there are two gotchas:
16976     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16977     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16978     # In both cases, we have to default to `cp -pR'.
16979     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16980       as_ln_s='cp -pR'
16981   elif ln conf$$.file conf$$ 2>/dev/null; then
16982     as_ln_s=ln
16983   else
16984     as_ln_s='cp -pR'
16985   fi
16986 else
16987   as_ln_s='cp -pR'
16989 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16990 rmdir conf$$.dir 2>/dev/null
16993 @%:@ as_fn_mkdir_p
16994 @%:@ -------------
16995 @%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
16996 as_fn_mkdir_p ()
16999   case $as_dir in #(
17000   -*) as_dir=./$as_dir;;
17001   esac
17002   test -d "$as_dir" || eval $as_mkdir_p || {
17003     as_dirs=
17004     while :; do
17005       case $as_dir in #(
17006       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17007       *) as_qdir=$as_dir;;
17008       esac
17009       as_dirs="'$as_qdir' $as_dirs"
17010       as_dir=`$as_dirname -- "$as_dir" ||
17011 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17012          X"$as_dir" : 'X\(//\)[^/]' \| \
17013          X"$as_dir" : 'X\(//\)$' \| \
17014          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17015 $as_echo X"$as_dir" |
17016     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17017             s//\1/
17018             q
17019           }
17020           /^X\(\/\/\)[^/].*/{
17021             s//\1/
17022             q
17023           }
17024           /^X\(\/\/\)$/{
17025             s//\1/
17026             q
17027           }
17028           /^X\(\/\).*/{
17029             s//\1/
17030             q
17031           }
17032           s/.*/./; q'`
17033       test -d "$as_dir" && break
17034     done
17035     test -z "$as_dirs" || eval "mkdir $as_dirs"
17036   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17039 } @%:@ as_fn_mkdir_p
17040 if mkdir -p . 2>/dev/null; then
17041   as_mkdir_p='mkdir -p "$as_dir"'
17042 else
17043   test -d ./-p && rmdir ./-p
17044   as_mkdir_p=false
17048 @%:@ as_fn_executable_p FILE
17049 @%:@ -----------------------
17050 @%:@ Test if FILE is an executable regular file.
17051 as_fn_executable_p ()
17053   test -f "$1" && test -x "$1"
17054 } @%:@ as_fn_executable_p
17055 as_test_x='test -x'
17056 as_executable_p=as_fn_executable_p
17058 # Sed expression to map a string onto a valid CPP name.
17059 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17061 # Sed expression to map a string onto a valid variable name.
17062 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17065 exec 6>&1
17066 ## ----------------------------------- ##
17067 ## Main body of $CONFIG_STATUS script. ##
17068 ## ----------------------------------- ##
17069 _ASEOF
17070 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17072 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17073 # Save the log message, to keep $0 and so on meaningful, and to
17074 # report actual input values of CONFIG_FILES etc. instead of their
17075 # values after options handling.
17076 ac_log="
17077 This file was extended by dnscrypt-proxy $as_me 1.4.0, which was
17078 generated by GNU Autoconf 2.69.  Invocation command line was
17080   CONFIG_FILES    = $CONFIG_FILES
17081   CONFIG_HEADERS  = $CONFIG_HEADERS
17082   CONFIG_LINKS    = $CONFIG_LINKS
17083   CONFIG_COMMANDS = $CONFIG_COMMANDS
17084   $ $0 $@
17086 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17089 _ACEOF
17091 case $ac_config_files in *"
17092 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17093 esac
17095 case $ac_config_headers in *"
17096 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17097 esac
17100 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17101 # Files that config.status was made for.
17102 config_files="$ac_config_files"
17103 config_headers="$ac_config_headers"
17104 config_commands="$ac_config_commands"
17106 _ACEOF
17108 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17109 ac_cs_usage="\
17110 \`$as_me' instantiates files and other configuration actions
17111 from templates according to the current configuration.  Unless the files
17112 and actions are specified as TAGs, all are instantiated by default.
17114 Usage: $0 [OPTION]... [TAG]...
17116   -h, --help       print this help, then exit
17117   -V, --version    print version number and configuration settings, then exit
17118       --config     print configuration, then exit
17119   -q, --quiet, --silent
17120                    do not print progress messages
17121   -d, --debug      don't remove temporary files
17122       --recheck    update $as_me by reconfiguring in the same conditions
17123       --file=FILE[:TEMPLATE] 
17124                    instantiate the configuration file FILE
17125       --header=FILE[:TEMPLATE] 
17126                    instantiate the configuration header FILE
17128 Configuration files:
17129 $config_files
17131 Configuration headers:
17132 $config_headers
17134 Configuration commands:
17135 $config_commands
17137 Report bugs to <http://dnscrypt.org>."
17139 _ACEOF
17140 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17141 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17142 ac_cs_version="\\
17143 dnscrypt-proxy config.status 1.4.0
17144 configured by $0, generated by GNU Autoconf 2.69,
17145   with options \\"\$ac_cs_config\\"
17147 Copyright (C) 2012 Free Software Foundation, Inc.
17148 This config.status script is free software; the Free Software Foundation
17149 gives unlimited permission to copy, distribute and modify it."
17151 ac_pwd='$ac_pwd'
17152 srcdir='$srcdir'
17153 INSTALL='$INSTALL'
17154 MKDIR_P='$MKDIR_P'
17155 AWK='$AWK'
17156 test -n "\$AWK" || AWK=awk
17157 _ACEOF
17159 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17160 # The default lists apply if the user does not specify any file.
17161 ac_need_defaults=:
17162 while test $# != 0
17164   case $1 in
17165   --*=?*)
17166     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17167     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17168     ac_shift=:
17169     ;;
17170   --*=)
17171     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17172     ac_optarg=
17173     ac_shift=:
17174     ;;
17175   *)
17176     ac_option=$1
17177     ac_optarg=$2
17178     ac_shift=shift
17179     ;;
17180   esac
17182   case $ac_option in
17183   # Handling of the options.
17184   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17185     ac_cs_recheck=: ;;
17186   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17187     $as_echo "$ac_cs_version"; exit ;;
17188   --config | --confi | --conf | --con | --co | --c )
17189     $as_echo "$ac_cs_config"; exit ;;
17190   --debug | --debu | --deb | --de | --d | -d )
17191     debug=: ;;
17192   --file | --fil | --fi | --f )
17193     $ac_shift
17194     case $ac_optarg in
17195     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17196     '') as_fn_error $? "missing file argument" ;;
17197     esac
17198     as_fn_append CONFIG_FILES " '$ac_optarg'"
17199     ac_need_defaults=false;;
17200   --header | --heade | --head | --hea )
17201     $ac_shift
17202     case $ac_optarg in
17203     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17204     esac
17205     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17206     ac_need_defaults=false;;
17207   --he | --h)
17208     # Conflict between --help and --header
17209     as_fn_error $? "ambiguous option: \`$1'
17210 Try \`$0 --help' for more information.";;
17211   --help | --hel | -h )
17212     $as_echo "$ac_cs_usage"; exit ;;
17213   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17214   | -silent | --silent | --silen | --sile | --sil | --si | --s)
17215     ac_cs_silent=: ;;
17217   # This is an error.
17218   -*) as_fn_error $? "unrecognized option: \`$1'
17219 Try \`$0 --help' for more information." ;;
17221   *) as_fn_append ac_config_targets " $1"
17222      ac_need_defaults=false ;;
17224   esac
17225   shift
17226 done
17228 ac_configure_extra_args=
17230 if $ac_cs_silent; then
17231   exec 6>/dev/null
17232   ac_configure_extra_args="$ac_configure_extra_args --silent"
17235 _ACEOF
17236 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17237 if \$ac_cs_recheck; then
17238   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17239   shift
17240   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17241   CONFIG_SHELL='$SHELL'
17242   export CONFIG_SHELL
17243   exec "\$@"
17246 _ACEOF
17247 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17248 exec 5>>config.log
17250   echo
17251   sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
17252 @%:@@%:@ Running $as_me. @%:@@%:@
17253 _ASBOX
17254   $as_echo "$ac_log"
17255 } >&5
17257 _ACEOF
17258 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17260 # INIT-COMMANDS
17262 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17265 # The HP-UX ksh and POSIX shell print the target directory to stdout
17266 # if CDPATH is set.
17267 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17269 sed_quote_subst='$sed_quote_subst'
17270 double_quote_subst='$double_quote_subst'
17271 delay_variable_subst='$delay_variable_subst'
17272 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17273 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17274 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17275 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17276 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17277 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17278 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17279 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17280 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17281 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17282 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17283 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17284 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17285 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17286 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17287 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17288 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17289 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17290 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17291 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17292 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17293 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17294 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17295 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17296 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17297 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17298 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17299 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17300 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17301 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17302 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17303 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17304 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17305 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17306 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17307 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17308 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17309 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17310 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17311 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17312 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17313 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17314 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17315 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17316 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17317 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17318 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17319 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17320 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17321 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17322 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17323 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17324 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17325 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17326 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17327 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17328 lt_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"`'
17329 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17330 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17331 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17332 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17333 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17334 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17335 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17336 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17337 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17338 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17339 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17340 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17341 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17342 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17343 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17344 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17345 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17346 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17347 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17348 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17349 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17350 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17351 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17352 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17353 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17354 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17355 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17356 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17357 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17358 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17359 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17360 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17361 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17362 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17363 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17364 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17365 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17366 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17367 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17368 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17369 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17370 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17371 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17372 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17373 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17374 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17375 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17376 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17377 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17378 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17379 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17380 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17381 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17382 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17383 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17384 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17385 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17386 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17387 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17388 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17389 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17390 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17391 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17392 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17393 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17394 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17395 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17396 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17397 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17398 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17399 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17400 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17401 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17403 LTCC='$LTCC'
17404 LTCFLAGS='$LTCFLAGS'
17405 compiler='$compiler_DEFAULT'
17407 # A function that is used when there is no print builtin or printf.
17408 func_fallback_echo ()
17410   eval 'cat <<_LTECHO_EOF
17412 _LTECHO_EOF'
17415 # Quote evaled strings.
17416 for var in SHELL \
17417 ECHO \
17418 PATH_SEPARATOR \
17419 SED \
17420 GREP \
17421 EGREP \
17422 FGREP \
17423 LD \
17424 NM \
17425 LN_S \
17426 lt_SP2NL \
17427 lt_NL2SP \
17428 reload_flag \
17429 OBJDUMP \
17430 deplibs_check_method \
17431 file_magic_cmd \
17432 file_magic_glob \
17433 want_nocaseglob \
17434 DLLTOOL \
17435 sharedlib_from_linklib_cmd \
17436 AR \
17437 AR_FLAGS \
17438 archiver_list_spec \
17439 STRIP \
17440 RANLIB \
17441 CC \
17442 CFLAGS \
17443 compiler \
17444 lt_cv_sys_global_symbol_pipe \
17445 lt_cv_sys_global_symbol_to_cdecl \
17446 lt_cv_sys_global_symbol_to_c_name_address \
17447 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17448 nm_file_list_spec \
17449 lt_prog_compiler_no_builtin_flag \
17450 lt_prog_compiler_pic \
17451 lt_prog_compiler_wl \
17452 lt_prog_compiler_static \
17453 lt_cv_prog_compiler_c_o \
17454 need_locks \
17455 MANIFEST_TOOL \
17456 DSYMUTIL \
17457 NMEDIT \
17458 LIPO \
17459 OTOOL \
17460 OTOOL64 \
17461 shrext_cmds \
17462 export_dynamic_flag_spec \
17463 whole_archive_flag_spec \
17464 compiler_needs_object \
17465 with_gnu_ld \
17466 allow_undefined_flag \
17467 no_undefined_flag \
17468 hardcode_libdir_flag_spec \
17469 hardcode_libdir_separator \
17470 exclude_expsyms \
17471 include_expsyms \
17472 file_list_spec \
17473 variables_saved_for_relink \
17474 libname_spec \
17475 library_names_spec \
17476 soname_spec \
17477 install_override_mode \
17478 finish_eval \
17479 old_striplib \
17480 striplib; do
17481     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17482     *[\\\\\\\`\\"\\\$]*)
17483       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17484       ;;
17485     *)
17486       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17487       ;;
17488     esac
17489 done
17491 # Double-quote double-evaled strings.
17492 for var in reload_cmds \
17493 old_postinstall_cmds \
17494 old_postuninstall_cmds \
17495 old_archive_cmds \
17496 extract_expsyms_cmds \
17497 old_archive_from_new_cmds \
17498 old_archive_from_expsyms_cmds \
17499 archive_cmds \
17500 archive_expsym_cmds \
17501 module_cmds \
17502 module_expsym_cmds \
17503 export_symbols_cmds \
17504 prelink_cmds \
17505 postlink_cmds \
17506 postinstall_cmds \
17507 postuninstall_cmds \
17508 finish_cmds \
17509 sys_lib_search_path_spec \
17510 sys_lib_dlsearch_path_spec; do
17511     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17512     *[\\\\\\\`\\"\\\$]*)
17513       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17514       ;;
17515     *)
17516       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17517       ;;
17518     esac
17519 done
17521 ac_aux_dir='$ac_aux_dir'
17522 xsi_shell='$xsi_shell'
17523 lt_shell_append='$lt_shell_append'
17525 # See if we are running on zsh, and set the options which allow our
17526 # commands through without removal of \ escapes INIT.
17527 if test -n "\${ZSH_VERSION+set}" ; then
17528    setopt NO_GLOB_SUBST
17532     PACKAGE='$PACKAGE'
17533     VERSION='$VERSION'
17534     TIMESTAMP='$TIMESTAMP'
17535     RM='$RM'
17536     ofile='$ofile'
17541 _ACEOF
17543 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17545 # Handling of arguments.
17546 for ac_config_target in $ac_config_targets
17548   case $ac_config_target in
17549     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17550     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17551     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17552     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17553     "dist-build/Makefile") CONFIG_FILES="$CONFIG_FILES dist-build/Makefile" ;;
17554     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
17555     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17556     "src/hostip/Makefile") CONFIG_FILES="$CONFIG_FILES src/hostip/Makefile" ;;
17557     "src/proxy/Makefile") CONFIG_FILES="$CONFIG_FILES src/proxy/Makefile" ;;
17558     "src/ext/Makefile") CONFIG_FILES="$CONFIG_FILES src/ext/Makefile" ;;
17559     "src/include/Makefile") CONFIG_FILES="$CONFIG_FILES src/include/Makefile" ;;
17560     "src/include/dnscrypt/version.h") CONFIG_FILES="$CONFIG_FILES src/include/dnscrypt/version.h" ;;
17561     "src/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/Makefile" ;;
17562     "src/plugins/example/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/example/Makefile" ;;
17563     "src/plugins/example-logging/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/example-logging/Makefile" ;;
17564     "src/plugins/example-ldns-aaaa-blocking/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/example-ldns-aaaa-blocking/Makefile" ;;
17565     "src/plugins/example-ldns-blocking/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/example-ldns-blocking/Makefile" ;;
17566     "src/plugins/example-ldns-opendns-deviceid/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/example-ldns-opendns-deviceid/Makefile" ;;
17567     "src/plugins/example-ldns-opendns-set-client-ip/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/example-ldns-opendns-set-client-ip/Makefile" ;;
17568     "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
17570   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17571   esac
17572 done
17575 # If the user did not use the arguments to specify the items to instantiate,
17576 # then the envvar interface is used.  Set only those that are not.
17577 # We use the long form for the default assignment because of an extremely
17578 # bizarre bug on SunOS 4.1.3.
17579 if $ac_need_defaults; then
17580   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17581   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17582   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17585 # Have a temporary directory for convenience.  Make it in the build tree
17586 # simply because there is no reason against having it here, and in addition,
17587 # creating and moving files from /tmp can sometimes cause problems.
17588 # Hook for its removal unless debugging.
17589 # Note that there is a small window in which the directory will not be cleaned:
17590 # after its creation but before its name has been assigned to `$tmp'.
17591 $debug ||
17593   tmp= ac_tmp=
17594   trap 'exit_status=$?
17595   : "${ac_tmp:=$tmp}"
17596   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17597 ' 0
17598   trap 'as_fn_exit 1' 1 2 13 15
17600 # Create a (secure) tmp directory for tmp files.
17603   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17604   test -d "$tmp"
17605 }  ||
17607   tmp=./conf$$-$RANDOM
17608   (umask 077 && mkdir "$tmp")
17609 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17610 ac_tmp=$tmp
17612 # Set up the scripts for CONFIG_FILES section.
17613 # No need to generate them if there are no CONFIG_FILES.
17614 # This happens for instance with `./config.status config.h'.
17615 if test -n "$CONFIG_FILES"; then
17618 ac_cr=`echo X | tr X '\015'`
17619 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17620 # But we know of no other shell where ac_cr would be empty at this
17621 # point, so we can use a bashism as a fallback.
17622 if test "x$ac_cr" = x; then
17623   eval ac_cr=\$\'\\r\'
17625 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17626 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17627   ac_cs_awk_cr='\\r'
17628 else
17629   ac_cs_awk_cr=$ac_cr
17632 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17633 _ACEOF
17637   echo "cat >conf$$subs.awk <<_ACEOF" &&
17638   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17639   echo "_ACEOF"
17640 } >conf$$subs.sh ||
17641   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17642 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17643 ac_delim='%!_!# '
17644 for ac_last_try in false false false false false :; do
17645   . ./conf$$subs.sh ||
17646     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17648   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17649   if test $ac_delim_n = $ac_delim_num; then
17650     break
17651   elif $ac_last_try; then
17652     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17653   else
17654     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17655   fi
17656 done
17657 rm -f conf$$subs.sh
17659 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17660 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17661 _ACEOF
17662 sed -n '
17664 s/^/S["/; s/!.*/"]=/
17667 s/^[^!]*!//
17668 :repl
17669 t repl
17670 s/'"$ac_delim"'$//
17671 t delim
17674 s/\(.\{148\}\)..*/\1/
17675 t more1
17676 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17679 b repl
17680 :more1
17681 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17684 s/.\{148\}//
17685 t nl
17686 :delim
17688 s/\(.\{148\}\)..*/\1/
17689 t more2
17690 s/["\\]/\\&/g; s/^/"/; s/$/"/
17693 :more2
17694 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17697 s/.\{148\}//
17698 t delim
17699 ' <conf$$subs.awk | sed '
17700 /^[^""]/{
17701   N
17702   s/\n//
17704 ' >>$CONFIG_STATUS || ac_write_fail=1
17705 rm -f conf$$subs.awk
17706 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17707 _ACAWK
17708 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17709   for (key in S) S_is_set[key] = 1
17710   FS = "\a"
17714   line = $ 0
17715   nfields = split(line, field, "@")
17716   substed = 0
17717   len = length(field[1])
17718   for (i = 2; i < nfields; i++) {
17719     key = field[i]
17720     keylen = length(key)
17721     if (S_is_set[key]) {
17722       value = S[key]
17723       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17724       len += length(value) + length(field[++i])
17725       substed = 1
17726     } else
17727       len += 1 + keylen
17728   }
17730   print line
17733 _ACAWK
17734 _ACEOF
17735 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17736 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17737   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17738 else
17739   cat
17740 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17741   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17742 _ACEOF
17744 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17745 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17746 # trailing colons and then remove the whole line if VPATH becomes empty
17747 # (actually we leave an empty line to preserve line numbers).
17748 if test "x$srcdir" = x.; then
17749   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
17751 s///
17752 s/^/:/
17753 s/[      ]*$/:/
17754 s/:\$(srcdir):/:/g
17755 s/:\${srcdir}:/:/g
17756 s/:@srcdir@:/:/g
17757 s/^:*//
17758 s/:*$//
17760 s/\(=[   ]*\).*/\1/
17762 s/\n//
17763 s/^[^=]*=[       ]*$//
17767 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17768 fi # test -n "$CONFIG_FILES"
17770 # Set up the scripts for CONFIG_HEADERS section.
17771 # No need to generate them if there are no CONFIG_HEADERS.
17772 # This happens for instance with `./config.status Makefile'.
17773 if test -n "$CONFIG_HEADERS"; then
17774 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17775 BEGIN {
17776 _ACEOF
17778 # Transform confdefs.h into an awk script `defines.awk', embedded as
17779 # here-document in config.status, that substitutes the proper values into
17780 # config.h.in to produce config.h.
17782 # Create a delimiter string that does not exist in confdefs.h, to ease
17783 # handling of long lines.
17784 ac_delim='%!_!# '
17785 for ac_last_try in false false :; do
17786   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17787   if test -z "$ac_tt"; then
17788     break
17789   elif $ac_last_try; then
17790     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17791   else
17792     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17793   fi
17794 done
17796 # For the awk script, D is an array of macro values keyed by name,
17797 # likewise P contains macro parameters if any.  Preserve backslash
17798 # newline sequences.
17800 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17801 sed -n '
17802 s/.\{148\}/&'"$ac_delim"'/g
17803 t rset
17804 :rset
17805 s/^[     ]*#[    ]*define[       ][      ]*/ /
17806 t def
17808 :def
17809 s/\\$//
17810 t bsnl
17811 s/["\\]/\\&/g
17812 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17813 D["\1"]=" \3"/p
17814 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
17816 :bsnl
17817 s/["\\]/\\&/g
17818 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17819 D["\1"]=" \3\\\\\\n"\\/p
17820 t cont
17821 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17822 t cont
17824 :cont
17826 s/.\{148\}/&'"$ac_delim"'/g
17827 t clear
17828 :clear
17829 s/\\$//
17830 t bsnlc
17831 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17833 :bsnlc
17834 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17835 b cont
17836 ' <confdefs.h | sed '
17837 s/'"$ac_delim"'/"\\\
17838 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17840 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17841   for (key in D) D_is_set[key] = 1
17842   FS = "\a"
17844 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17845   line = \$ 0
17846   split(line, arg, " ")
17847   if (arg[1] == "#") {
17848     defundef = arg[2]
17849     mac1 = arg[3]
17850   } else {
17851     defundef = substr(arg[1], 2)
17852     mac1 = arg[2]
17853   }
17854   split(mac1, mac2, "(") #)
17855   macro = mac2[1]
17856   prefix = substr(line, 1, index(line, defundef) - 1)
17857   if (D_is_set[macro]) {
17858     # Preserve the white space surrounding the "#".
17859     print prefix "define", macro P[macro] D[macro]
17860     next
17861   } else {
17862     # Replace #undef with comments.  This is necessary, for example,
17863     # in the case of _POSIX_SOURCE, which is predefined and required
17864     # on some systems where configure will not decide to define it.
17865     if (defundef == "undef") {
17866       print "/*", prefix defundef, macro, "*/"
17867       next
17868     }
17869   }
17871 { print }
17872 _ACAWK
17873 _ACEOF
17874 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17875   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17876 fi # test -n "$CONFIG_HEADERS"
17879 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
17880 shift
17881 for ac_tag
17883   case $ac_tag in
17884   :[FHLC]) ac_mode=$ac_tag; continue;;
17885   esac
17886   case $ac_mode$ac_tag in
17887   :[FHL]*:*);;
17888   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17889   :[FH]-) ac_tag=-:-;;
17890   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17891   esac
17892   ac_save_IFS=$IFS
17893   IFS=:
17894   set x $ac_tag
17895   IFS=$ac_save_IFS
17896   shift
17897   ac_file=$1
17898   shift
17900   case $ac_mode in
17901   :L) ac_source=$1;;
17902   :[FH])
17903     ac_file_inputs=
17904     for ac_f
17905     do
17906       case $ac_f in
17907       -) ac_f="$ac_tmp/stdin";;
17908       *) # Look for the file first in the build tree, then in the source tree
17909          # (if the path is not absolute).  The absolute path cannot be DOS-style,
17910          # because $ac_f cannot contain `:'.
17911          test -f "$ac_f" ||
17912            case $ac_f in
17913            [\\/$]*) false;;
17914            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17915            esac ||
17916            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17917       esac
17918       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17919       as_fn_append ac_file_inputs " '$ac_f'"
17920     done
17922     # Let's still pretend it is `configure' which instantiates (i.e., don't
17923     # use $as_me), people would be surprised to read:
17924     #    /* config.h.  Generated by config.status.  */
17925     configure_input='Generated from '`
17926           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17927         `' by configure.'
17928     if test x"$ac_file" != x-; then
17929       configure_input="$ac_file.  $configure_input"
17930       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17931 $as_echo "$as_me: creating $ac_file" >&6;}
17932     fi
17933     # Neutralize special characters interpreted by sed in replacement strings.
17934     case $configure_input in #(
17935     *\&* | *\|* | *\\* )
17936        ac_sed_conf_input=`$as_echo "$configure_input" |
17937        sed 's/[\\\\&|]/\\\\&/g'`;; #(
17938     *) ac_sed_conf_input=$configure_input;;
17939     esac
17941     case $ac_tag in
17942     *:-:* | *:-) cat >"$ac_tmp/stdin" \
17943       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17944     esac
17945     ;;
17946   esac
17948   ac_dir=`$as_dirname -- "$ac_file" ||
17949 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17950          X"$ac_file" : 'X\(//\)[^/]' \| \
17951          X"$ac_file" : 'X\(//\)$' \| \
17952          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17953 $as_echo X"$ac_file" |
17954     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17955             s//\1/
17956             q
17957           }
17958           /^X\(\/\/\)[^/].*/{
17959             s//\1/
17960             q
17961           }
17962           /^X\(\/\/\)$/{
17963             s//\1/
17964             q
17965           }
17966           /^X\(\/\).*/{
17967             s//\1/
17968             q
17969           }
17970           s/.*/./; q'`
17971   as_dir="$ac_dir"; as_fn_mkdir_p
17972   ac_builddir=.
17974 case "$ac_dir" in
17975 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17977   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17978   # A ".." for each directory in $ac_dir_suffix.
17979   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17980   case $ac_top_builddir_sub in
17981   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17982   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17983   esac ;;
17984 esac
17985 ac_abs_top_builddir=$ac_pwd
17986 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17987 # for backward compatibility:
17988 ac_top_builddir=$ac_top_build_prefix
17990 case $srcdir in
17991   .)  # We are building in place.
17992     ac_srcdir=.
17993     ac_top_srcdir=$ac_top_builddir_sub
17994     ac_abs_top_srcdir=$ac_pwd ;;
17995   [\\/]* | ?:[\\/]* )  # Absolute name.
17996     ac_srcdir=$srcdir$ac_dir_suffix;
17997     ac_top_srcdir=$srcdir
17998     ac_abs_top_srcdir=$srcdir ;;
17999   *) # Relative name.
18000     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18001     ac_top_srcdir=$ac_top_build_prefix$srcdir
18002     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18003 esac
18004 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18007   case $ac_mode in
18008   :F)
18009   #
18010   # CONFIG_FILE
18011   #
18013   case $INSTALL in
18014   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18015   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18016   esac
18017   ac_MKDIR_P=$MKDIR_P
18018   case $MKDIR_P in
18019   [\\/$]* | ?:[\\/]* ) ;;
18020   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18021   esac
18022 _ACEOF
18024 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18025 # If the template does not know about datarootdir, expand it.
18026 # FIXME: This hack should be removed a few years after 2.60.
18027 ac_datarootdir_hack=; ac_datarootdir_seen=
18028 ac_sed_dataroot='
18029 /datarootdir/ {
18030   p
18031   q
18033 /@datadir@/p
18034 /@docdir@/p
18035 /@infodir@/p
18036 /@localedir@/p
18037 /@mandir@/p'
18038 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18039 *datarootdir*) ac_datarootdir_seen=yes;;
18040 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18041   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18042 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18043 _ACEOF
18044 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18045   ac_datarootdir_hack='
18046   s&@datadir@&$datadir&g
18047   s&@docdir@&$docdir&g
18048   s&@infodir@&$infodir&g
18049   s&@localedir@&$localedir&g
18050   s&@mandir@&$mandir&g
18051   s&\\\${datarootdir}&$datarootdir&g' ;;
18052 esac
18053 _ACEOF
18055 # Neutralize VPATH when `$srcdir' = `.'.
18056 # Shell code in configure.ac might set extrasub.
18057 # FIXME: do we really want to maintain this feature?
18058 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18059 ac_sed_extra="$ac_vpsub
18060 $extrasub
18061 _ACEOF
18062 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18064 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18065 s|@configure_input@|$ac_sed_conf_input|;t t
18066 s&@top_builddir@&$ac_top_builddir_sub&;t t
18067 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18068 s&@srcdir@&$ac_srcdir&;t t
18069 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18070 s&@top_srcdir@&$ac_top_srcdir&;t t
18071 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18072 s&@builddir@&$ac_builddir&;t t
18073 s&@abs_builddir@&$ac_abs_builddir&;t t
18074 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18075 s&@INSTALL@&$ac_INSTALL&;t t
18076 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18077 $ac_datarootdir_hack
18079 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18080   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18082 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18083   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18084   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
18085       "$ac_tmp/out"`; test -z "$ac_out"; } &&
18086   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18087 which seems to be undefined.  Please make sure it is defined" >&5
18088 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18089 which seems to be undefined.  Please make sure it is defined" >&2;}
18091   rm -f "$ac_tmp/stdin"
18092   case $ac_file in
18093   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18094   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18095   esac \
18096   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18097  ;;
18098   :H)
18099   #
18100   # CONFIG_HEADER
18101   #
18102   if test x"$ac_file" != x-; then
18103     {
18104       $as_echo "/* $configure_input  */" \
18105       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18106     } >"$ac_tmp/config.h" \
18107       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18108     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18109       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18110 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18111     else
18112       rm -f "$ac_file"
18113       mv "$ac_tmp/config.h" "$ac_file" \
18114         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18115     fi
18116   else
18117     $as_echo "/* $configure_input  */" \
18118       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18119       || as_fn_error $? "could not create -" "$LINENO" 5
18120   fi
18121 # Compute "$ac_file"'s index in $config_headers.
18122 _am_arg="$ac_file"
18123 _am_stamp_count=1
18124 for _am_header in $config_headers :; do
18125   case $_am_header in
18126     $_am_arg | $_am_arg:* )
18127       break ;;
18128     * )
18129       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18130   esac
18131 done
18132 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18133 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18134          X"$_am_arg" : 'X\(//\)[^/]' \| \
18135          X"$_am_arg" : 'X\(//\)$' \| \
18136          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18137 $as_echo X"$_am_arg" |
18138     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18139             s//\1/
18140             q
18141           }
18142           /^X\(\/\/\)[^/].*/{
18143             s//\1/
18144             q
18145           }
18146           /^X\(\/\/\)$/{
18147             s//\1/
18148             q
18149           }
18150           /^X\(\/\).*/{
18151             s//\1/
18152             q
18153           }
18154           s/.*/./; q'`/stamp-h$_am_stamp_count
18155  ;;
18156   
18157   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18158 $as_echo "$as_me: executing $ac_file commands" >&6;}
18159  ;;
18160   esac
18163   case $ac_file$ac_mode in
18164     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18165   # Older Autoconf quotes --file arguments for eval, but not when files
18166   # are listed without --file.  Let's play safe and only enable the eval
18167   # if we detect the quoting.
18168   case $CONFIG_FILES in
18169   *\'*) eval set x "$CONFIG_FILES" ;;
18170   *)   set x $CONFIG_FILES ;;
18171   esac
18172   shift
18173   for mf
18174   do
18175     # Strip MF so we end up with the name of the file.
18176     mf=`echo "$mf" | sed -e 's/:.*$//'`
18177     # Check whether this is an Automake generated Makefile or not.
18178     # We used to match only the files named 'Makefile.in', but
18179     # some people rename them; so instead we look at the file content.
18180     # Grep'ing the first line is not enough: some people post-process
18181     # each Makefile.in and add a new line on top of each file to say so.
18182     # Grep'ing the whole file is not good either: AIX grep has a line
18183     # limit of 2048, but all sed's we know have understand at least 4000.
18184     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18185       dirpart=`$as_dirname -- "$mf" ||
18186 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18187          X"$mf" : 'X\(//\)[^/]' \| \
18188          X"$mf" : 'X\(//\)$' \| \
18189          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18190 $as_echo X"$mf" |
18191     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18192             s//\1/
18193             q
18194           }
18195           /^X\(\/\/\)[^/].*/{
18196             s//\1/
18197             q
18198           }
18199           /^X\(\/\/\)$/{
18200             s//\1/
18201             q
18202           }
18203           /^X\(\/\).*/{
18204             s//\1/
18205             q
18206           }
18207           s/.*/./; q'`
18208     else
18209       continue
18210     fi
18211     # Extract the definition of DEPDIR, am__include, and am__quote
18212     # from the Makefile without running 'make'.
18213     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18214     test -z "$DEPDIR" && continue
18215     am__include=`sed -n 's/^am__include = //p' < "$mf"`
18216     test -z "$am__include" && continue
18217     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18218     # Find all dependency output files, they are included files with
18219     # $(DEPDIR) in their names.  We invoke sed twice because it is the
18220     # simplest approach to changing $(DEPDIR) to its actual value in the
18221     # expansion.
18222     for file in `sed -n "
18223       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18224          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18225       # Make sure the directory exists.
18226       test -f "$dirpart/$file" && continue
18227       fdir=`$as_dirname -- "$file" ||
18228 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18229          X"$file" : 'X\(//\)[^/]' \| \
18230          X"$file" : 'X\(//\)$' \| \
18231          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18232 $as_echo X"$file" |
18233     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18234             s//\1/
18235             q
18236           }
18237           /^X\(\/\/\)[^/].*/{
18238             s//\1/
18239             q
18240           }
18241           /^X\(\/\/\)$/{
18242             s//\1/
18243             q
18244           }
18245           /^X\(\/\).*/{
18246             s//\1/
18247             q
18248           }
18249           s/.*/./; q'`
18250       as_dir=$dirpart/$fdir; as_fn_mkdir_p
18251       # echo "creating $dirpart/$file"
18252       echo '# dummy' > "$dirpart/$file"
18253     done
18254   done
18256  ;;
18257     "libtool":C) 
18258     
18259     # See if we are running on zsh, and set the options which allow our
18260     # commands through without removal of \ escapes.
18261     if test -n "${ZSH_VERSION+set}" ; then
18262       setopt NO_GLOB_SUBST
18263     fi
18265     cfgfile="${ofile}T"
18266     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18267     $RM "$cfgfile"
18269     cat <<_LT_EOF >> "$cfgfile"
18270 #! $SHELL
18272 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18273 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18274 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18275 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18277 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18278 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
18279 #                 Foundation, Inc.
18280 #   Written by Gordon Matzigkeit, 1996
18282 #   This file is part of GNU Libtool.
18284 # GNU Libtool is free software; you can redistribute it and/or
18285 # modify it under the terms of the GNU General Public License as
18286 # published by the Free Software Foundation; either version 2 of
18287 # the License, or (at your option) any later version.
18289 # As a special exception to the GNU General Public License,
18290 # if you distribute this file as part of a program or library that
18291 # is built using GNU Libtool, you may include this file under the
18292 # same distribution terms that you use for the rest of that program.
18294 # GNU Libtool is distributed in the hope that it will be useful,
18295 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18296 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18297 # GNU General Public License for more details.
18299 # You should have received a copy of the GNU General Public License
18300 # along with GNU Libtool; see the file COPYING.  If not, a copy
18301 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18302 # obtained by writing to the Free Software Foundation, Inc.,
18303 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18306 # The names of the tagged configurations supported by this script.
18307 available_tags=""
18309 # ### BEGIN LIBTOOL CONFIG
18311 # Which release of libtool.m4 was used?
18312 macro_version=$macro_version
18313 macro_revision=$macro_revision
18315 # Whether or not to build shared libraries.
18316 build_libtool_libs=$enable_shared
18318 # Whether or not to build static libraries.
18319 build_old_libs=$enable_static
18321 # What type of objects to build.
18322 pic_mode=$pic_mode
18324 # Whether or not to optimize for fast installation.
18325 fast_install=$enable_fast_install
18327 # Shell to use when invoking shell scripts.
18328 SHELL=$lt_SHELL
18330 # An echo program that protects backslashes.
18331 ECHO=$lt_ECHO
18333 # The PATH separator for the build system.
18334 PATH_SEPARATOR=$lt_PATH_SEPARATOR
18336 # The host system.
18337 host_alias=$host_alias
18338 host=$host
18339 host_os=$host_os
18341 # The build system.
18342 build_alias=$build_alias
18343 build=$build
18344 build_os=$build_os
18346 # A sed program that does not truncate output.
18347 SED=$lt_SED
18349 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18350 Xsed="\$SED -e 1s/^X//"
18352 # A grep program that handles long lines.
18353 GREP=$lt_GREP
18355 # An ERE matcher.
18356 EGREP=$lt_EGREP
18358 # A literal string matcher.
18359 FGREP=$lt_FGREP
18361 # A BSD- or MS-compatible name lister.
18362 NM=$lt_NM
18364 # Whether we need soft or hard links.
18365 LN_S=$lt_LN_S
18367 # What is the maximum length of a command?
18368 max_cmd_len=$max_cmd_len
18370 # Object file suffix (normally "o").
18371 objext=$ac_objext
18373 # Executable file suffix (normally "").
18374 exeext=$exeext
18376 # whether the shell understands "unset".
18377 lt_unset=$lt_unset
18379 # turn spaces into newlines.
18380 SP2NL=$lt_lt_SP2NL
18382 # turn newlines into spaces.
18383 NL2SP=$lt_lt_NL2SP
18385 # convert \$build file names to \$host format.
18386 to_host_file_cmd=$lt_cv_to_host_file_cmd
18388 # convert \$build files to toolchain format.
18389 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18391 # An object symbol dumper.
18392 OBJDUMP=$lt_OBJDUMP
18394 # Method to check whether dependent libraries are shared objects.
18395 deplibs_check_method=$lt_deplibs_check_method
18397 # Command to use when deplibs_check_method = "file_magic".
18398 file_magic_cmd=$lt_file_magic_cmd
18400 # How to find potential files when deplibs_check_method = "file_magic".
18401 file_magic_glob=$lt_file_magic_glob
18403 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18404 want_nocaseglob=$lt_want_nocaseglob
18406 # DLL creation program.
18407 DLLTOOL=$lt_DLLTOOL
18409 # Command to associate shared and link libraries.
18410 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18412 # The archiver.
18413 AR=$lt_AR
18415 # Flags to create an archive.
18416 AR_FLAGS=$lt_AR_FLAGS
18418 # How to feed a file listing to the archiver.
18419 archiver_list_spec=$lt_archiver_list_spec
18421 # A symbol stripping program.
18422 STRIP=$lt_STRIP
18424 # Commands used to install an old-style archive.
18425 RANLIB=$lt_RANLIB
18426 old_postinstall_cmds=$lt_old_postinstall_cmds
18427 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18429 # Whether to use a lock for old archive extraction.
18430 lock_old_archive_extraction=$lock_old_archive_extraction
18432 # A C compiler.
18433 LTCC=$lt_CC
18435 # LTCC compiler flags.
18436 LTCFLAGS=$lt_CFLAGS
18438 # Take the output of nm and produce a listing of raw symbols and C names.
18439 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18441 # Transform the output of nm in a proper C declaration.
18442 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18444 # Transform the output of nm in a C name address pair.
18445 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18447 # Transform the output of nm in a C name address pair when lib prefix is needed.
18448 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18450 # Specify filename containing input files for \$NM.
18451 nm_file_list_spec=$lt_nm_file_list_spec
18453 # The root where to search for dependent libraries,and in which our libraries should be installed.
18454 lt_sysroot=$lt_sysroot
18456 # The name of the directory that contains temporary libtool files.
18457 objdir=$objdir
18459 # Used to examine libraries when file_magic_cmd begins with "file".
18460 MAGIC_CMD=$MAGIC_CMD
18462 # Must we lock files when doing compilation?
18463 need_locks=$lt_need_locks
18465 # Manifest tool.
18466 MANIFEST_TOOL=$lt_MANIFEST_TOOL
18468 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18469 DSYMUTIL=$lt_DSYMUTIL
18471 # Tool to change global to local symbols on Mac OS X.
18472 NMEDIT=$lt_NMEDIT
18474 # Tool to manipulate fat objects and archives on Mac OS X.
18475 LIPO=$lt_LIPO
18477 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18478 OTOOL=$lt_OTOOL
18480 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18481 OTOOL64=$lt_OTOOL64
18483 # Old archive suffix (normally "a").
18484 libext=$libext
18486 # Shared library suffix (normally ".so").
18487 shrext_cmds=$lt_shrext_cmds
18489 # The commands to extract the exported symbol list from a shared archive.
18490 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18492 # Variables whose values should be saved in libtool wrapper scripts and
18493 # restored at link time.
18494 variables_saved_for_relink=$lt_variables_saved_for_relink
18496 # Do we need the "lib" prefix for modules?
18497 need_lib_prefix=$need_lib_prefix
18499 # Do we need a version for libraries?
18500 need_version=$need_version
18502 # Library versioning type.
18503 version_type=$version_type
18505 # Shared library runtime path variable.
18506 runpath_var=$runpath_var
18508 # Shared library path variable.
18509 shlibpath_var=$shlibpath_var
18511 # Is shlibpath searched before the hard-coded library search path?
18512 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18514 # Format of library name prefix.
18515 libname_spec=$lt_libname_spec
18517 # List of archive names.  First name is the real one, the rest are links.
18518 # The last name is the one that the linker finds with -lNAME
18519 library_names_spec=$lt_library_names_spec
18521 # The coded name of the library, if different from the real name.
18522 soname_spec=$lt_soname_spec
18524 # Permission mode override for installation of shared libraries.
18525 install_override_mode=$lt_install_override_mode
18527 # Command to use after installation of a shared archive.
18528 postinstall_cmds=$lt_postinstall_cmds
18530 # Command to use after uninstallation of a shared archive.
18531 postuninstall_cmds=$lt_postuninstall_cmds
18533 # Commands used to finish a libtool library installation in a directory.
18534 finish_cmds=$lt_finish_cmds
18536 # As "finish_cmds", except a single script fragment to be evaled but
18537 # not shown.
18538 finish_eval=$lt_finish_eval
18540 # Whether we should hardcode library paths into libraries.
18541 hardcode_into_libs=$hardcode_into_libs
18543 # Compile-time system search path for libraries.
18544 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18546 # Run-time system search path for libraries.
18547 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18549 # Whether dlopen is supported.
18550 dlopen_support=$enable_dlopen
18552 # Whether dlopen of programs is supported.
18553 dlopen_self=$enable_dlopen_self
18555 # Whether dlopen of statically linked programs is supported.
18556 dlopen_self_static=$enable_dlopen_self_static
18558 # Commands to strip libraries.
18559 old_striplib=$lt_old_striplib
18560 striplib=$lt_striplib
18563 # The linker used to build libraries.
18564 LD=$lt_LD
18566 # How to create reloadable object files.
18567 reload_flag=$lt_reload_flag
18568 reload_cmds=$lt_reload_cmds
18570 # Commands used to build an old-style archive.
18571 old_archive_cmds=$lt_old_archive_cmds
18573 # A language specific compiler.
18574 CC=$lt_compiler
18576 # Is the compiler the GNU compiler?
18577 with_gcc=$GCC
18579 # Compiler flag to turn off builtin functions.
18580 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18582 # Additional compiler flags for building library objects.
18583 pic_flag=$lt_lt_prog_compiler_pic
18585 # How to pass a linker flag through the compiler.
18586 wl=$lt_lt_prog_compiler_wl
18588 # Compiler flag to prevent dynamic linking.
18589 link_static_flag=$lt_lt_prog_compiler_static
18591 # Does compiler simultaneously support -c and -o options?
18592 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18594 # Whether or not to add -lc for building shared libraries.
18595 build_libtool_need_lc=$archive_cmds_need_lc
18597 # Whether or not to disallow shared libs when runtime libs are static.
18598 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18600 # Compiler flag to allow reflexive dlopens.
18601 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18603 # Compiler flag to generate shared objects directly from archives.
18604 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18606 # Whether the compiler copes with passing no objects directly.
18607 compiler_needs_object=$lt_compiler_needs_object
18609 # Create an old-style archive from a shared archive.
18610 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18612 # Create a temporary old-style archive to link instead of a shared archive.
18613 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18615 # Commands used to build a shared archive.
18616 archive_cmds=$lt_archive_cmds
18617 archive_expsym_cmds=$lt_archive_expsym_cmds
18619 # Commands used to build a loadable module if different from building
18620 # a shared archive.
18621 module_cmds=$lt_module_cmds
18622 module_expsym_cmds=$lt_module_expsym_cmds
18624 # Whether we are building with GNU ld or not.
18625 with_gnu_ld=$lt_with_gnu_ld
18627 # Flag that allows shared libraries with undefined symbols to be built.
18628 allow_undefined_flag=$lt_allow_undefined_flag
18630 # Flag that enforces no undefined symbols.
18631 no_undefined_flag=$lt_no_undefined_flag
18633 # Flag to hardcode \$libdir into a binary during linking.
18634 # This must work even if \$libdir does not exist
18635 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18637 # Whether we need a single "-rpath" flag with a separated argument.
18638 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18640 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18641 # DIR into the resulting binary.
18642 hardcode_direct=$hardcode_direct
18644 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18645 # DIR into the resulting binary and the resulting library dependency is
18646 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18647 # library is relocated.
18648 hardcode_direct_absolute=$hardcode_direct_absolute
18650 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18651 # into the resulting binary.
18652 hardcode_minus_L=$hardcode_minus_L
18654 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18655 # into the resulting binary.
18656 hardcode_shlibpath_var=$hardcode_shlibpath_var
18658 # Set to "yes" if building a shared library automatically hardcodes DIR
18659 # into the library and all subsequent libraries and executables linked
18660 # against it.
18661 hardcode_automatic=$hardcode_automatic
18663 # Set to yes if linker adds runtime paths of dependent libraries
18664 # to runtime path list.
18665 inherit_rpath=$inherit_rpath
18667 # Whether libtool must link a program against all its dependency libraries.
18668 link_all_deplibs=$link_all_deplibs
18670 # Set to "yes" if exported symbols are required.
18671 always_export_symbols=$always_export_symbols
18673 # The commands to list exported symbols.
18674 export_symbols_cmds=$lt_export_symbols_cmds
18676 # Symbols that should not be listed in the preloaded symbols.
18677 exclude_expsyms=$lt_exclude_expsyms
18679 # Symbols that must always be exported.
18680 include_expsyms=$lt_include_expsyms
18682 # Commands necessary for linking programs (against libraries) with templates.
18683 prelink_cmds=$lt_prelink_cmds
18685 # Commands necessary for finishing linking programs.
18686 postlink_cmds=$lt_postlink_cmds
18688 # Specify filename containing input files.
18689 file_list_spec=$lt_file_list_spec
18691 # How to hardcode a shared library path into an executable.
18692 hardcode_action=$hardcode_action
18694 # ### END LIBTOOL CONFIG
18696 _LT_EOF
18698   case $host_os in
18699   aix3*)
18700     cat <<\_LT_EOF >> "$cfgfile"
18701 # AIX sometimes has problems with the GCC collect2 program.  For some
18702 # reason, if we set the COLLECT_NAMES environment variable, the problems
18703 # vanish in a puff of smoke.
18704 if test "X${COLLECT_NAMES+set}" != Xset; then
18705   COLLECT_NAMES=
18706   export COLLECT_NAMES
18708 _LT_EOF
18709     ;;
18710   esac
18712   
18713 ltmain="$ac_aux_dir/ltmain.sh"
18716   # We use sed instead of cat because bash on DJGPP gets confused if
18717   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18718   # text mode, it properly converts lines to CR/LF.  This bash problem
18719   # is reportedly fixed, but why not run on old versions too?
18720   sed '$q' "$ltmain" >> "$cfgfile" \
18721      || (rm -f "$cfgfile"; exit 1)
18723   if test x"$xsi_shell" = xyes; then
18724   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
18725 func_dirname ()\
18727 \    case ${1} in\
18728 \      */*) func_dirname_result="${1%/*}${2}" ;;\
18729 \      *  ) func_dirname_result="${3}" ;;\
18730 \    esac\
18731 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
18732   && mv -f "$cfgfile.tmp" "$cfgfile" \
18733     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18734 test 0 -eq $? || _lt_function_replace_fail=:
18737   sed -e '/^func_basename ()$/,/^} # func_basename /c\
18738 func_basename ()\
18740 \    func_basename_result="${1##*/}"\
18741 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
18742   && mv -f "$cfgfile.tmp" "$cfgfile" \
18743     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18744 test 0 -eq $? || _lt_function_replace_fail=:
18747   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
18748 func_dirname_and_basename ()\
18750 \    case ${1} in\
18751 \      */*) func_dirname_result="${1%/*}${2}" ;;\
18752 \      *  ) func_dirname_result="${3}" ;;\
18753 \    esac\
18754 \    func_basename_result="${1##*/}"\
18755 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
18756   && mv -f "$cfgfile.tmp" "$cfgfile" \
18757     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18758 test 0 -eq $? || _lt_function_replace_fail=:
18761   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
18762 func_stripname ()\
18764 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
18765 \    # positional parameters, so assign one to ordinary parameter first.\
18766 \    func_stripname_result=${3}\
18767 \    func_stripname_result=${func_stripname_result#"${1}"}\
18768 \    func_stripname_result=${func_stripname_result%"${2}"}\
18769 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
18770   && mv -f "$cfgfile.tmp" "$cfgfile" \
18771     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18772 test 0 -eq $? || _lt_function_replace_fail=:
18775   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
18776 func_split_long_opt ()\
18778 \    func_split_long_opt_name=${1%%=*}\
18779 \    func_split_long_opt_arg=${1#*=}\
18780 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
18781   && mv -f "$cfgfile.tmp" "$cfgfile" \
18782     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18783 test 0 -eq $? || _lt_function_replace_fail=:
18786   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
18787 func_split_short_opt ()\
18789 \    func_split_short_opt_arg=${1#??}\
18790 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
18791 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
18792   && mv -f "$cfgfile.tmp" "$cfgfile" \
18793     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18794 test 0 -eq $? || _lt_function_replace_fail=:
18797   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
18798 func_lo2o ()\
18800 \    case ${1} in\
18801 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
18802 \      *)    func_lo2o_result=${1} ;;\
18803 \    esac\
18804 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
18805   && mv -f "$cfgfile.tmp" "$cfgfile" \
18806     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18807 test 0 -eq $? || _lt_function_replace_fail=:
18810   sed -e '/^func_xform ()$/,/^} # func_xform /c\
18811 func_xform ()\
18813     func_xform_result=${1%.*}.lo\
18814 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
18815   && mv -f "$cfgfile.tmp" "$cfgfile" \
18816     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18817 test 0 -eq $? || _lt_function_replace_fail=:
18820   sed -e '/^func_arith ()$/,/^} # func_arith /c\
18821 func_arith ()\
18823     func_arith_result=$(( $* ))\
18824 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
18825   && mv -f "$cfgfile.tmp" "$cfgfile" \
18826     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18827 test 0 -eq $? || _lt_function_replace_fail=:
18830   sed -e '/^func_len ()$/,/^} # func_len /c\
18831 func_len ()\
18833     func_len_result=${#1}\
18834 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
18835   && mv -f "$cfgfile.tmp" "$cfgfile" \
18836     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18837 test 0 -eq $? || _lt_function_replace_fail=:
18841 if test x"$lt_shell_append" = xyes; then
18842   sed -e '/^func_append ()$/,/^} # func_append /c\
18843 func_append ()\
18845     eval "${1}+=\\${2}"\
18846 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
18847   && mv -f "$cfgfile.tmp" "$cfgfile" \
18848     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18849 test 0 -eq $? || _lt_function_replace_fail=:
18852   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
18853 func_append_quoted ()\
18855 \    func_quote_for_eval "${2}"\
18856 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
18857 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
18858   && mv -f "$cfgfile.tmp" "$cfgfile" \
18859     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18860 test 0 -eq $? || _lt_function_replace_fail=:
18863   # Save a `func_append' function call where possible by direct use of '+='
18864   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
18865     && mv -f "$cfgfile.tmp" "$cfgfile" \
18866       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18867   test 0 -eq $? || _lt_function_replace_fail=:
18868 else
18869   # Save a `func_append' function call even when '+=' is not available
18870   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
18871     && mv -f "$cfgfile.tmp" "$cfgfile" \
18872       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18873   test 0 -eq $? || _lt_function_replace_fail=:
18876 if test x"$_lt_function_replace_fail" = x":"; then
18877   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
18878 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
18882    mv -f "$cfgfile" "$ofile" ||
18883     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18884   chmod +x "$ofile"
18886  ;;
18888   esac
18889 done # for ac_tag
18892 as_fn_exit 0
18893 _ACEOF
18894 ac_clean_files=$ac_clean_files_save
18896 test $ac_write_fail = 0 ||
18897   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18900 # configure is writing to config.log, and then calls config.status.
18901 # config.status does its own redirection, appending to config.log.
18902 # Unfortunately, on DOS this fails, as config.log is still kept open
18903 # by configure, so config.status won't be able to write to it; its
18904 # output is simply discarded.  So we exec the FD to /dev/null,
18905 # effectively closing config.log, so it can be properly (re)opened and
18906 # appended to by config.status.  When coming back to configure, we
18907 # need to make the FD available again.
18908 if test "$no_create" != yes; then
18909   ac_cs_success=:
18910   ac_config_status_args=
18911   test "$silent" = yes &&
18912     ac_config_status_args="$ac_config_status_args --quiet"
18913   exec 5>/dev/null
18914   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18915   exec 5>>config.log
18916   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18917   # would make configure fail if this is the last instruction.
18918   $ac_cs_success || as_fn_exit 1
18922 # CONFIG_SUBDIRS section.
18924 if test "$no_recursion" != yes; then
18926   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
18927   # so they do not pile up.
18928   ac_sub_configure_args=
18929   ac_prev=
18930   eval "set x $ac_configure_args"
18931   shift
18932   for ac_arg
18933   do
18934     if test -n "$ac_prev"; then
18935       ac_prev=
18936       continue
18937     fi
18938     case $ac_arg in
18939     -cache-file | --cache-file | --cache-fil | --cache-fi \
18940     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
18941       ac_prev=cache_file ;;
18942     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
18943     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
18944     | --c=*)
18945       ;;
18946     --config-cache | -C)
18947       ;;
18948     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
18949       ac_prev=srcdir ;;
18950     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
18951       ;;
18952     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
18953       ac_prev=prefix ;;
18954     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
18955       ;;
18956     --disable-option-checking)
18957       ;;
18958     *)
18959       case $ac_arg in
18960       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
18961       esac
18962       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
18963     esac
18964   done
18966   # Always prepend --prefix to ensure using the same prefix
18967   # in subdir configurations.
18968   ac_arg="--prefix=$prefix"
18969   case $ac_arg in
18970   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
18971   esac
18972   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
18974   # Pass --silent
18975   if test "$silent" = yes; then
18976     ac_sub_configure_args="--silent $ac_sub_configure_args"
18977   fi
18979   # Always prepend --disable-option-checking to silence warnings, since
18980   # different subdirs can have different --enable and --with options.
18981   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
18983   ac_popdir=`pwd`
18984   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
18986     # Do not complain, so a configure script can configure whichever
18987     # parts of a large source tree are present.
18988     test -d "$srcdir/$ac_dir" || continue
18990     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
18991     $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
18992     $as_echo "$ac_msg" >&6
18993     as_dir="$ac_dir"; as_fn_mkdir_p
18994     ac_builddir=.
18996 case "$ac_dir" in
18997 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18999   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19000   # A ".." for each directory in $ac_dir_suffix.
19001   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19002   case $ac_top_builddir_sub in
19003   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19004   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19005   esac ;;
19006 esac
19007 ac_abs_top_builddir=$ac_pwd
19008 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19009 # for backward compatibility:
19010 ac_top_builddir=$ac_top_build_prefix
19012 case $srcdir in
19013   .)  # We are building in place.
19014     ac_srcdir=.
19015     ac_top_srcdir=$ac_top_builddir_sub
19016     ac_abs_top_srcdir=$ac_pwd ;;
19017   [\\/]* | ?:[\\/]* )  # Absolute name.
19018     ac_srcdir=$srcdir$ac_dir_suffix;
19019     ac_top_srcdir=$srcdir
19020     ac_abs_top_srcdir=$srcdir ;;
19021   *) # Relative name.
19022     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19023     ac_top_srcdir=$ac_top_build_prefix$srcdir
19024     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19025 esac
19026 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19029     cd "$ac_dir"
19031     # Check for guested configure; otherwise get Cygnus style configure.
19032     if test -f "$ac_srcdir/configure.gnu"; then
19033       ac_sub_configure=$ac_srcdir/configure.gnu
19034     elif test -f "$ac_srcdir/configure"; then
19035       ac_sub_configure=$ac_srcdir/configure
19036     elif test -f "$ac_srcdir/configure.in"; then
19037       # This should be Cygnus configure.
19038       ac_sub_configure=$ac_aux_dir/configure
19039     else
19040       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
19041 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
19042       ac_sub_configure=
19043     fi
19045     # The recursion is here.
19046     if test -n "$ac_sub_configure"; then
19047       # Make the cache file name correct relative to the subdirectory.
19048       case $cache_file in
19049       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
19050       *) # Relative name.
19051         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
19052       esac
19054       { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
19055 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
19056       # The eval makes quoting arguments work.
19057       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
19058            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
19059         as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
19060     fi
19062     cd "$ac_popdir"
19063   done
19065 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19066   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19067 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}