OpenVPN: update to 2.3.7
[tomato.git] / release / src / router / openvpn / configure
blob1156c4b0a5da738abc51b166cb8925cb72b10021
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for OpenVPN 2.3.7.
5 # Report bugs to <openvpn-users@lists.sourceforge.net>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
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 *) :
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"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
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=';'
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
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
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 *) :
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 :
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 :
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 #(
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 openvpn-users@lists.sourceforge.net
278 $0: about your system, including any error possibly output
279 $0: before this message. Then install a modern shell, or
280 $0: manually run the script under such a shell if you do
281 $0: have one."
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 $? 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 "$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/
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
354 /^X\(\/\/\)$/{
355 s//\1/
358 /^X\(\/\).*/{
359 s//\1/
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 ()
387 eval $1+=\$2
389 else
390 as_fn_append ()
392 eval $1=\$$1\$2
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 $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
404 as_val=$(( $* ))
406 else
407 as_fn_arith ()
409 as_val=`expr "$@" || test $? -eq 1`
411 fi # as_fn_arith
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $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
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/
458 /^X\/\(\/\/\)$/{
459 s//\1/
462 /^X\/\(\/\).*/{
463 s//\1/
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 '
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
489 :lineno
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'
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}
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
579 # Initializations.
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
590 # Identity of this package.
591 PACKAGE_NAME='OpenVPN'
592 PACKAGE_TARNAME='openvpn'
593 PACKAGE_VERSION='2.3.7'
594 PACKAGE_STRING='OpenVPN 2.3.7'
595 PACKAGE_BUGREPORT='openvpn-users@lists.sourceforge.net'
596 PACKAGE_URL=''
598 ac_unique_file="src/openvpn/syshead.h"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
601 #include <stdio.h>
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
604 #endif
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
607 #endif
608 #ifdef STDC_HEADERS
609 # include <stdlib.h>
610 # include <stddef.h>
611 #else
612 # ifdef HAVE_STDLIB_H
613 # include <stdlib.h>
614 # endif
615 #endif
616 #ifdef HAVE_STRING_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 # include <memory.h>
619 # endif
620 # include <string.h>
621 #endif
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_UNISTD_H
632 # include <unistd.h>
633 #endif"
635 ac_subst_vars='am__EXEEXT_FALSE
636 am__EXEEXT_TRUE
637 LTLIBOBJS
638 LIBOBJS
639 sampledir
640 plugindir
641 ENABLE_PLUGIN_DOWN_ROOT_FALSE
642 ENABLE_PLUGIN_DOWN_ROOT_TRUE
643 ENABLE_PLUGIN_AUTH_PAM_FALSE
644 ENABLE_PLUGIN_AUTH_PAM_TRUE
645 GIT_CHECKOUT_FALSE
646 GIT_CHECKOUT_TRUE
647 WIN32_FALSE
648 WIN32_TRUE
649 PLUGIN_AUTH_PAM_LIBS
650 PLUGIN_AUTH_PAM_CFLAGS
651 OPTIONAL_PKCS11_HELPER_LIBS
652 OPTIONAL_PKCS11_HELPER_CFLAGS
653 OPTIONAL_SYSTEMD_LIBS
654 OPTIONAL_LZO_LIBS
655 OPTIONAL_LZO_CFLAGS
656 OPTIONAL_CRYPTO_LIBS
657 OPTIONAL_CRYPTO_CFLAGS
658 OPTIONAL_SELINUX_LIBS
659 OPTIONAL_DL_LIBS
660 TAP_WIN_MIN_MINOR
661 TAP_WIN_MIN_MAJOR
662 TAP_WIN_COMPONENT_ID
663 P11KIT_LIBS
664 P11KIT_CFLAGS
665 libsystemd_LIBS
666 libsystemd_CFLAGS
667 LZO_LIBS
668 LZO_CFLAGS
669 POLARSSL_LIBS
670 POLARSSL_CFLAGS
671 OPENSSL_SSL_LIBS
672 OPENSSL_SSL_CFLAGS
673 OPENSSL_CRYPTO_LIBS
674 OPENSSL_CRYPTO_CFLAGS
675 PKCS11_HELPER_LIBS
676 PKCS11_HELPER_CFLAGS
677 LIBPAM_LIBS
678 LIBPAM_CFLAGS
679 SELINUX_LIBS
680 TAP_CFLAGS
681 SOCKETS_LIBS
682 DL_LIBS
684 OTOOL64
685 OTOOL
686 LIPO
687 NMEDIT
688 DSYMUTIL
689 MANIFEST_TOOL
690 RANLIB
691 ac_ct_AR
694 ac_ct_DUMPBIN
695 DUMPBIN
697 FGREP
698 LIBTOOL
699 OBJDUMP
700 DLLTOOL
702 SYSTEMD_ASK_PASSWORD
704 MAN2HTML
705 NETSTAT
706 IPROUTE
707 ROUTE
708 IFCONFIG
710 LN_S
711 PKG_CONFIG_LIBDIR
712 PKG_CONFIG_PATH
713 PKG_CONFIG
714 EGREP
715 GREP
717 am__fastdepCC_FALSE
718 am__fastdepCC_TRUE
719 CCDEPMODE
720 am__nodep
721 AMDEPBACKSLASH
722 AMDEP_FALSE
723 AMDEP_TRUE
724 am__quote
725 am__include
726 DEPDIR
727 OBJEXT
728 EXEEXT
729 ac_ct_CC
730 CPPFLAGS
731 LDFLAGS
732 CFLAGS
734 host_os
735 host_vendor
736 host_cpu
737 host
738 build_os
739 build_vendor
740 build_cpu
741 build
742 AM_BACKSLASH
743 AM_DEFAULT_VERBOSITY
744 AM_DEFAULT_V
745 AM_V
746 am__untar
747 am__tar
748 AMTAR
749 am__leading_dot
750 SET_MAKE
752 mkdir_p
753 MKDIR_P
754 INSTALL_STRIP_PROGRAM
755 STRIP
756 install_sh
757 MAKEINFO
758 AUTOHEADER
759 AUTOMAKE
760 AUTOCONF
761 ACLOCAL
762 VERSION
763 PACKAGE
764 CYGPATH_W
765 am__isrc
766 INSTALL_DATA
767 INSTALL_SCRIPT
768 INSTALL_PROGRAM
769 target_alias
770 host_alias
771 build_alias
772 LIBS
773 ECHO_T
774 ECHO_N
775 ECHO_C
776 DEFS
777 mandir
778 localedir
779 libdir
780 psdir
781 pdfdir
782 dvidir
783 htmldir
784 infodir
785 docdir
786 oldincludedir
787 includedir
788 localstatedir
789 sharedstatedir
790 sysconfdir
791 datadir
792 datarootdir
793 libexecdir
794 sbindir
795 bindir
796 program_transform_name
797 prefix
798 exec_prefix
799 PACKAGE_URL
800 PACKAGE_BUGREPORT
801 PACKAGE_STRING
802 PACKAGE_VERSION
803 PACKAGE_TARNAME
804 PACKAGE_NAME
805 PATH_SEPARATOR
806 SHELL'
807 ac_subst_files=''
808 ac_user_opts='
809 enable_option_checking
810 enable_silent_rules
811 enable_dependency_tracking
812 enable_lzo
813 enable_lzo_stub
814 enable_crypto
815 enable_ofb_cfb
816 enable_ssl
817 enable_x509_alt_username
818 enable_multi
819 enable_server
820 enable_plugins
821 enable_management
822 enable_pkcs11
823 enable_socks
824 enable_http_proxy
825 enable_fragment
826 enable_multihome
827 enable_port_share
828 enable_debug
829 enable_small
830 enable_password_save
831 enable_iproute2
832 enable_def_auth
833 enable_pf
834 enable_plugin_auth_pam
835 enable_plugin_down_root
836 enable_pam_dlopen
837 enable_strict
838 enable_pedantic
839 enable_strict_options
840 enable_selinux
841 enable_systemd
842 with_special_build
843 with_mem_check
844 with_crypto_library
845 with_plugindir
846 enable_shared
847 enable_static
848 with_pic
849 enable_fast_install
850 with_gnu_ld
851 with_sysroot
852 enable_libtool_lock
854 ac_precious_vars='build_alias
855 host_alias
856 target_alias
858 CFLAGS
859 LDFLAGS
860 LIBS
861 CPPFLAGS
863 PKG_CONFIG
864 PKG_CONFIG_PATH
865 PKG_CONFIG_LIBDIR
866 IFCONFIG
867 ROUTE
868 IPROUTE
869 NETSTAT
870 MAN2HTML
872 SYSTEMD_ASK_PASSWORD
873 TAP_CFLAGS
874 LIBPAM_CFLAGS
875 LIBPAM_LIBS
876 PKCS11_HELPER_CFLAGS
877 PKCS11_HELPER_LIBS
878 OPENSSL_CRYPTO_CFLAGS
879 OPENSSL_CRYPTO_LIBS
880 OPENSSL_SSL_CFLAGS
881 OPENSSL_SSL_LIBS
882 POLARSSL_CFLAGS
883 POLARSSL_LIBS
884 LZO_CFLAGS
885 LZO_LIBS
886 libsystemd_CFLAGS
887 libsystemd_LIBS
888 P11KIT_CFLAGS
889 P11KIT_LIBS'
892 # Initialize some variables set by options.
893 ac_init_help=
894 ac_init_version=false
895 ac_unrecognized_opts=
896 ac_unrecognized_sep=
897 # The variables have the same names as the options, with
898 # dashes changed to underlines.
899 cache_file=/dev/null
900 exec_prefix=NONE
901 no_create=
902 no_recursion=
903 prefix=NONE
904 program_prefix=NONE
905 program_suffix=NONE
906 program_transform_name=s,x,x,
907 silent=
908 site=
909 srcdir=
910 verbose=
911 x_includes=NONE
912 x_libraries=NONE
914 # Installation directory options.
915 # These are left unexpanded so users can "make install exec_prefix=/foo"
916 # and all the variables that are supposed to be based on exec_prefix
917 # by default will actually change.
918 # Use braces instead of parens because sh, perl, etc. also accept them.
919 # (The list follows the same order as the GNU Coding Standards.)
920 bindir='${exec_prefix}/bin'
921 sbindir='${exec_prefix}/sbin'
922 libexecdir='${exec_prefix}/libexec'
923 datarootdir='${prefix}/share'
924 datadir='${datarootdir}'
925 sysconfdir='${prefix}/etc'
926 sharedstatedir='${prefix}/com'
927 localstatedir='${prefix}/var'
928 includedir='${prefix}/include'
929 oldincludedir='/usr/include'
930 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
931 infodir='${datarootdir}/info'
932 htmldir='${docdir}'
933 dvidir='${docdir}'
934 pdfdir='${docdir}'
935 psdir='${docdir}'
936 libdir='${exec_prefix}/lib'
937 localedir='${datarootdir}/locale'
938 mandir='${datarootdir}/man'
940 ac_prev=
941 ac_dashdash=
942 for ac_option
944 # If the previous option needs an argument, assign it.
945 if test -n "$ac_prev"; then
946 eval $ac_prev=\$ac_option
947 ac_prev=
948 continue
951 case $ac_option in
952 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
953 *=) ac_optarg= ;;
954 *) ac_optarg=yes ;;
955 esac
957 # Accept the important Cygnus configure options, so we can diagnose typos.
959 case $ac_dashdash$ac_option in
961 ac_dashdash=yes ;;
963 -bindir | --bindir | --bindi | --bind | --bin | --bi)
964 ac_prev=bindir ;;
965 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
966 bindir=$ac_optarg ;;
968 -build | --build | --buil | --bui | --bu)
969 ac_prev=build_alias ;;
970 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
971 build_alias=$ac_optarg ;;
973 -cache-file | --cache-file | --cache-fil | --cache-fi \
974 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
975 ac_prev=cache_file ;;
976 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
977 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
978 cache_file=$ac_optarg ;;
980 --config-cache | -C)
981 cache_file=config.cache ;;
983 -datadir | --datadir | --datadi | --datad)
984 ac_prev=datadir ;;
985 -datadir=* | --datadir=* | --datadi=* | --datad=*)
986 datadir=$ac_optarg ;;
988 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
989 | --dataroo | --dataro | --datar)
990 ac_prev=datarootdir ;;
991 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
992 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
993 datarootdir=$ac_optarg ;;
995 -disable-* | --disable-*)
996 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
997 # Reject names that are not valid shell variable names.
998 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
999 as_fn_error $? "invalid feature name: $ac_useropt"
1000 ac_useropt_orig=$ac_useropt
1001 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1002 case $ac_user_opts in
1004 "enable_$ac_useropt"
1005 "*) ;;
1006 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1007 ac_unrecognized_sep=', ';;
1008 esac
1009 eval enable_$ac_useropt=no ;;
1011 -docdir | --docdir | --docdi | --doc | --do)
1012 ac_prev=docdir ;;
1013 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1014 docdir=$ac_optarg ;;
1016 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1017 ac_prev=dvidir ;;
1018 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1019 dvidir=$ac_optarg ;;
1021 -enable-* | --enable-*)
1022 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1023 # Reject names that are not valid shell variable names.
1024 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1025 as_fn_error $? "invalid feature name: $ac_useropt"
1026 ac_useropt_orig=$ac_useropt
1027 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1028 case $ac_user_opts in
1030 "enable_$ac_useropt"
1031 "*) ;;
1032 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1033 ac_unrecognized_sep=', ';;
1034 esac
1035 eval enable_$ac_useropt=\$ac_optarg ;;
1037 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1038 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1039 | --exec | --exe | --ex)
1040 ac_prev=exec_prefix ;;
1041 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1042 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1043 | --exec=* | --exe=* | --ex=*)
1044 exec_prefix=$ac_optarg ;;
1046 -gas | --gas | --ga | --g)
1047 # Obsolete; use --with-gas.
1048 with_gas=yes ;;
1050 -help | --help | --hel | --he | -h)
1051 ac_init_help=long ;;
1052 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1053 ac_init_help=recursive ;;
1054 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1055 ac_init_help=short ;;
1057 -host | --host | --hos | --ho)
1058 ac_prev=host_alias ;;
1059 -host=* | --host=* | --hos=* | --ho=*)
1060 host_alias=$ac_optarg ;;
1062 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1063 ac_prev=htmldir ;;
1064 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1065 | --ht=*)
1066 htmldir=$ac_optarg ;;
1068 -includedir | --includedir | --includedi | --included | --include \
1069 | --includ | --inclu | --incl | --inc)
1070 ac_prev=includedir ;;
1071 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1072 | --includ=* | --inclu=* | --incl=* | --inc=*)
1073 includedir=$ac_optarg ;;
1075 -infodir | --infodir | --infodi | --infod | --info | --inf)
1076 ac_prev=infodir ;;
1077 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1078 infodir=$ac_optarg ;;
1080 -libdir | --libdir | --libdi | --libd)
1081 ac_prev=libdir ;;
1082 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1083 libdir=$ac_optarg ;;
1085 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1086 | --libexe | --libex | --libe)
1087 ac_prev=libexecdir ;;
1088 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1089 | --libexe=* | --libex=* | --libe=*)
1090 libexecdir=$ac_optarg ;;
1092 -localedir | --localedir | --localedi | --localed | --locale)
1093 ac_prev=localedir ;;
1094 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1095 localedir=$ac_optarg ;;
1097 -localstatedir | --localstatedir | --localstatedi | --localstated \
1098 | --localstate | --localstat | --localsta | --localst | --locals)
1099 ac_prev=localstatedir ;;
1100 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1101 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1102 localstatedir=$ac_optarg ;;
1104 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1105 ac_prev=mandir ;;
1106 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1107 mandir=$ac_optarg ;;
1109 -nfp | --nfp | --nf)
1110 # Obsolete; use --without-fp.
1111 with_fp=no ;;
1113 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1114 | --no-cr | --no-c | -n)
1115 no_create=yes ;;
1117 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1118 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1119 no_recursion=yes ;;
1121 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1122 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1123 | --oldin | --oldi | --old | --ol | --o)
1124 ac_prev=oldincludedir ;;
1125 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1126 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1127 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1128 oldincludedir=$ac_optarg ;;
1130 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1131 ac_prev=prefix ;;
1132 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1133 prefix=$ac_optarg ;;
1135 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1136 | --program-pre | --program-pr | --program-p)
1137 ac_prev=program_prefix ;;
1138 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1139 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1140 program_prefix=$ac_optarg ;;
1142 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1143 | --program-suf | --program-su | --program-s)
1144 ac_prev=program_suffix ;;
1145 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1146 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1147 program_suffix=$ac_optarg ;;
1149 -program-transform-name | --program-transform-name \
1150 | --program-transform-nam | --program-transform-na \
1151 | --program-transform-n | --program-transform- \
1152 | --program-transform | --program-transfor \
1153 | --program-transfo | --program-transf \
1154 | --program-trans | --program-tran \
1155 | --progr-tra | --program-tr | --program-t)
1156 ac_prev=program_transform_name ;;
1157 -program-transform-name=* | --program-transform-name=* \
1158 | --program-transform-nam=* | --program-transform-na=* \
1159 | --program-transform-n=* | --program-transform-=* \
1160 | --program-transform=* | --program-transfor=* \
1161 | --program-transfo=* | --program-transf=* \
1162 | --program-trans=* | --program-tran=* \
1163 | --progr-tra=* | --program-tr=* | --program-t=*)
1164 program_transform_name=$ac_optarg ;;
1166 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1167 ac_prev=pdfdir ;;
1168 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1169 pdfdir=$ac_optarg ;;
1171 -psdir | --psdir | --psdi | --psd | --ps)
1172 ac_prev=psdir ;;
1173 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1174 psdir=$ac_optarg ;;
1176 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1177 | -silent | --silent | --silen | --sile | --sil)
1178 silent=yes ;;
1180 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1181 ac_prev=sbindir ;;
1182 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1183 | --sbi=* | --sb=*)
1184 sbindir=$ac_optarg ;;
1186 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1187 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1188 | --sharedst | --shareds | --shared | --share | --shar \
1189 | --sha | --sh)
1190 ac_prev=sharedstatedir ;;
1191 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1192 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1193 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1194 | --sha=* | --sh=*)
1195 sharedstatedir=$ac_optarg ;;
1197 -site | --site | --sit)
1198 ac_prev=site ;;
1199 -site=* | --site=* | --sit=*)
1200 site=$ac_optarg ;;
1202 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1203 ac_prev=srcdir ;;
1204 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1205 srcdir=$ac_optarg ;;
1207 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1208 | --syscon | --sysco | --sysc | --sys | --sy)
1209 ac_prev=sysconfdir ;;
1210 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1211 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1212 sysconfdir=$ac_optarg ;;
1214 -target | --target | --targe | --targ | --tar | --ta | --t)
1215 ac_prev=target_alias ;;
1216 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1217 target_alias=$ac_optarg ;;
1219 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1220 verbose=yes ;;
1222 -version | --version | --versio | --versi | --vers | -V)
1223 ac_init_version=: ;;
1225 -with-* | --with-*)
1226 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1227 # Reject names that are not valid shell variable names.
1228 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1229 as_fn_error $? "invalid package name: $ac_useropt"
1230 ac_useropt_orig=$ac_useropt
1231 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1232 case $ac_user_opts in
1234 "with_$ac_useropt"
1235 "*) ;;
1236 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1237 ac_unrecognized_sep=', ';;
1238 esac
1239 eval with_$ac_useropt=\$ac_optarg ;;
1241 -without-* | --without-*)
1242 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1243 # Reject names that are not valid shell variable names.
1244 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1245 as_fn_error $? "invalid package name: $ac_useropt"
1246 ac_useropt_orig=$ac_useropt
1247 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1248 case $ac_user_opts in
1250 "with_$ac_useropt"
1251 "*) ;;
1252 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1253 ac_unrecognized_sep=', ';;
1254 esac
1255 eval with_$ac_useropt=no ;;
1257 --x)
1258 # Obsolete; use --with-x.
1259 with_x=yes ;;
1261 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1262 | --x-incl | --x-inc | --x-in | --x-i)
1263 ac_prev=x_includes ;;
1264 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1265 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1266 x_includes=$ac_optarg ;;
1268 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1269 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1270 ac_prev=x_libraries ;;
1271 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1272 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1273 x_libraries=$ac_optarg ;;
1275 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1276 Try \`$0 --help' for more information"
1279 *=*)
1280 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1281 # Reject names that are not valid shell variable names.
1282 case $ac_envvar in #(
1283 '' | [0-9]* | *[!_$as_cr_alnum]* )
1284 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1285 esac
1286 eval $ac_envvar=\$ac_optarg
1287 export $ac_envvar ;;
1290 # FIXME: should be removed in autoconf 3.0.
1291 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1292 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1293 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1294 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1297 esac
1298 done
1300 if test -n "$ac_prev"; then
1301 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1302 as_fn_error $? "missing argument to $ac_option"
1305 if test -n "$ac_unrecognized_opts"; then
1306 case $enable_option_checking in
1307 no) ;;
1308 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1309 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1310 esac
1313 # Check all directory arguments for consistency.
1314 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1315 datadir sysconfdir sharedstatedir localstatedir includedir \
1316 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1317 libdir localedir mandir
1319 eval ac_val=\$$ac_var
1320 # Remove trailing slashes.
1321 case $ac_val in
1322 */ )
1323 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1324 eval $ac_var=\$ac_val;;
1325 esac
1326 # Be sure to have absolute directory names.
1327 case $ac_val in
1328 [\\/$]* | ?:[\\/]* ) continue;;
1329 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1330 esac
1331 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1332 done
1334 # There might be people who depend on the old broken behavior: `$host'
1335 # used to hold the argument of --host etc.
1336 # FIXME: To remove some day.
1337 build=$build_alias
1338 host=$host_alias
1339 target=$target_alias
1341 # FIXME: To remove some day.
1342 if test "x$host_alias" != x; then
1343 if test "x$build_alias" = x; then
1344 cross_compiling=maybe
1345 elif test "x$build_alias" != "x$host_alias"; then
1346 cross_compiling=yes
1350 ac_tool_prefix=
1351 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1353 test "$silent" = yes && exec 6>/dev/null
1356 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1357 ac_ls_di=`ls -di .` &&
1358 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1359 as_fn_error $? "working directory cannot be determined"
1360 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1361 as_fn_error $? "pwd does not report name of working directory"
1364 # Find the source files, if location was not specified.
1365 if test -z "$srcdir"; then
1366 ac_srcdir_defaulted=yes
1367 # Try the directory containing this script, then the parent directory.
1368 ac_confdir=`$as_dirname -- "$as_myself" ||
1369 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1370 X"$as_myself" : 'X\(//\)[^/]' \| \
1371 X"$as_myself" : 'X\(//\)$' \| \
1372 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1373 $as_echo X"$as_myself" |
1374 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1375 s//\1/
1378 /^X\(\/\/\)[^/].*/{
1379 s//\1/
1382 /^X\(\/\/\)$/{
1383 s//\1/
1386 /^X\(\/\).*/{
1387 s//\1/
1390 s/.*/./; q'`
1391 srcdir=$ac_confdir
1392 if test ! -r "$srcdir/$ac_unique_file"; then
1393 srcdir=..
1395 else
1396 ac_srcdir_defaulted=no
1398 if test ! -r "$srcdir/$ac_unique_file"; then
1399 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1400 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1402 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1403 ac_abs_confdir=`(
1404 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1405 pwd)`
1406 # When building in place, set srcdir=.
1407 if test "$ac_abs_confdir" = "$ac_pwd"; then
1408 srcdir=.
1410 # Remove unnecessary trailing slashes from srcdir.
1411 # Double slashes in file names in object file debugging info
1412 # mess up M-x gdb in Emacs.
1413 case $srcdir in
1414 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1415 esac
1416 for ac_var in $ac_precious_vars; do
1417 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1418 eval ac_env_${ac_var}_value=\$${ac_var}
1419 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1420 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1421 done
1424 # Report the --help message.
1426 if test "$ac_init_help" = "long"; then
1427 # Omit some internal or obsolete options to make the list less imposing.
1428 # This message is too long to be a string in the A/UX 3.1 sh.
1429 cat <<_ACEOF
1430 \`configure' configures OpenVPN 2.3.7 to adapt to many kinds of systems.
1432 Usage: $0 [OPTION]... [VAR=VALUE]...
1434 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1435 VAR=VALUE. See below for descriptions of some of the useful variables.
1437 Defaults for the options are specified in brackets.
1439 Configuration:
1440 -h, --help display this help and exit
1441 --help=short display options specific to this package
1442 --help=recursive display the short help of all the included packages
1443 -V, --version display version information and exit
1444 -q, --quiet, --silent do not print \`checking ...' messages
1445 --cache-file=FILE cache test results in FILE [disabled]
1446 -C, --config-cache alias for \`--cache-file=config.cache'
1447 -n, --no-create do not create output files
1448 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1450 Installation directories:
1451 --prefix=PREFIX install architecture-independent files in PREFIX
1452 [$ac_default_prefix]
1453 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1454 [PREFIX]
1456 By default, \`make install' will install all the files in
1457 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1458 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1459 for instance \`--prefix=\$HOME'.
1461 For better control, use the options below.
1463 Fine tuning of the installation directories:
1464 --bindir=DIR user executables [EPREFIX/bin]
1465 --sbindir=DIR system admin executables [EPREFIX/sbin]
1466 --libexecdir=DIR program executables [EPREFIX/libexec]
1467 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1468 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1469 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1470 --libdir=DIR object code libraries [EPREFIX/lib]
1471 --includedir=DIR C header files [PREFIX/include]
1472 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1473 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1474 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1475 --infodir=DIR info documentation [DATAROOTDIR/info]
1476 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1477 --mandir=DIR man documentation [DATAROOTDIR/man]
1478 --docdir=DIR documentation root [DATAROOTDIR/doc/openvpn]
1479 --htmldir=DIR html documentation [DOCDIR]
1480 --dvidir=DIR dvi documentation [DOCDIR]
1481 --pdfdir=DIR pdf documentation [DOCDIR]
1482 --psdir=DIR ps documentation [DOCDIR]
1483 _ACEOF
1485 cat <<\_ACEOF
1487 Program names:
1488 --program-prefix=PREFIX prepend PREFIX to installed program names
1489 --program-suffix=SUFFIX append SUFFIX to installed program names
1490 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1492 System types:
1493 --build=BUILD configure for building on BUILD [guessed]
1494 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1495 _ACEOF
1498 if test -n "$ac_init_help"; then
1499 case $ac_init_help in
1500 short | recursive ) echo "Configuration of OpenVPN 2.3.7:";;
1501 esac
1502 cat <<\_ACEOF
1504 Optional Features:
1505 --disable-option-checking ignore unrecognized --enable/--with options
1506 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1507 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1508 --enable-silent-rules less verbose build output (undo: "make V=1")
1509 --disable-silent-rules verbose build output (undo: "make V=0")
1510 --enable-dependency-tracking
1511 do not reject slow dependency extractors
1512 --disable-dependency-tracking
1513 speeds up one-time build
1514 --disable-lzo disable LZO compression support [default=yes]
1515 --enable-lzo-stub don't compile LZO compression support but still
1516 allow limited interoperability with LZO-enabled
1517 peers [default=no]
1518 --disable-crypto disable crypto support [default=yes]
1519 --disable-ofb-cfb disable support for OFB and CFB cipher modes
1520 [default=yes]
1521 --disable-ssl disable SSL support for TLS-based key exchange
1522 [default=yes]
1523 --enable-x509-alt-username
1524 enable the --x509-username-field feature
1525 [default=no]
1526 --disable-multi disable client/server support (--mode server +
1527 client mode) [default=yes]
1528 --disable-server disable server support only (but retain client
1529 support) [default=yes]
1530 --disable-plugins disable plug-in support [default=yes]
1531 --disable-management disable management server support [default=yes]
1532 --enable-pkcs11 enable pkcs11 support [default=no]
1533 --disable-socks disable Socks support [default=yes]
1534 --disable-http-proxy disable HTTP proxy support [default=yes]
1535 --disable-fragment disable internal fragmentation support (--fragment)
1536 [default=yes]
1537 --disable-multihome disable multi-homed UDP server support (--multihome)
1538 [default=yes]
1539 --disable-port-share disable TCP server port-share support (--port-share)
1540 [default=yes]
1541 --disable-debug disable debugging support (disable gremlin and verb
1542 7+ messages) [default=yes]
1543 --enable-small enable smaller executable size (disable OCC, usage
1544 message, and verb 4 parm list) [default=no]
1545 --enable-password-save allow --askpass and --auth-user-pass passwords to be
1546 read from a file [default=no]
1547 --enable-iproute2 enable support for iproute2 [default=no]
1548 --disable-def-auth disable deferred authentication [default=yes]
1549 --disable-pf disable internal packet filter [default=yes]
1550 --disable-plugin-auth-pam
1551 disable auth-pam plugin [default=platform specific]
1552 --disable-plugin-down-root
1553 disable down-root plugin [default=platform specific]
1554 --enable-pam-dlopen dlopen libpam [default=no]
1555 --enable-strict enable strict compiler warnings (debugging option)
1556 [default=no]
1557 --enable-pedantic enable pedantic compiler warnings, will not generate
1558 a working executable (debugging option) [default=no]
1559 --enable-strict-options enable strict options check between peers (debugging
1560 option) [default=no]
1561 --enable-selinux enable SELinux support [default=no]
1562 --enable-systemd enable systemd suppport [default=no]
1563 --enable-shared[=PKGS] build shared libraries [default=yes]
1564 --enable-static[=PKGS] build static libraries [default=yes]
1565 --enable-fast-install[=PKGS]
1566 optimize for fast installation [default=yes]
1567 --disable-libtool-lock avoid locking (might break parallel builds)
1569 Optional Packages:
1570 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1571 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1572 --with-special-build=STRING
1573 specify special build string
1574 --with-mem-check=TYPE build with debug memory checking,
1575 TYPE=no|dmalloc|valgrind|ssl [default=no]
1576 --with-crypto-library=library
1577 build with the given crypto library,
1578 TYPE=openssl|polarssl [default=openssl]
1579 --with-plugindir plugin directory [default=LIBDIR/openvpn]
1580 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1581 both]
1582 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1583 --with-sysroot=DIR Search for dependent libraries within DIR
1584 (or the compiler's sysroot if not specified).
1586 Some influential environment variables:
1587 CC C compiler command
1588 CFLAGS C compiler flags
1589 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1590 nonstandard directory <lib dir>
1591 LIBS libraries to pass to the linker, e.g. -l<library>
1592 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1593 you have headers in a nonstandard directory <include dir>
1594 CPP C preprocessor
1595 PKG_CONFIG path to pkg-config utility
1596 PKG_CONFIG_PATH
1597 directories to add to pkg-config's search path
1598 PKG_CONFIG_LIBDIR
1599 path overriding pkg-config's built-in search path
1600 IFCONFIG full path to ipconfig utility
1601 ROUTE full path to route utility
1602 IPROUTE full path to ip utility
1603 NETSTAT path to netstat utility
1604 MAN2HTML path to man2html utility
1605 GIT path to git utility
1606 SYSTEMD_ASK_PASSWORD
1607 path to systemd-ask-password utility
1608 TAP_CFLAGS C compiler flags for tap
1609 LIBPAM_CFLAGS
1610 C compiler flags for libpam
1611 LIBPAM_LIBS linker flags for libpam
1612 PKCS11_HELPER_CFLAGS
1613 C compiler flags for PKCS11_HELPER, overriding pkg-config
1614 PKCS11_HELPER_LIBS
1615 linker flags for PKCS11_HELPER, overriding pkg-config
1616 OPENSSL_CRYPTO_CFLAGS
1617 C compiler flags for OPENSSL_CRYPTO, overriding pkg-config
1618 OPENSSL_CRYPTO_LIBS
1619 linker flags for OPENSSL_CRYPTO, overriding pkg-config
1620 OPENSSL_SSL_CFLAGS
1621 C compiler flags for OPENSSL_SSL, overriding pkg-config
1622 OPENSSL_SSL_LIBS
1623 linker flags for OPENSSL_SSL, overriding pkg-config
1624 POLARSSL_CFLAGS
1625 C compiler flags for polarssl
1626 POLARSSL_LIBS
1627 linker flags for polarssl
1628 LZO_CFLAGS C compiler flags for lzo
1629 LZO_LIBS linker flags for lzo
1630 libsystemd_CFLAGS
1631 C compiler flags for libsystemd, overriding pkg-config
1632 libsystemd_LIBS
1633 linker flags for libsystemd, overriding pkg-config
1634 P11KIT_CFLAGS
1635 C compiler flags for P11KIT, overriding pkg-config
1636 P11KIT_LIBS linker flags for P11KIT, overriding pkg-config
1638 Use these variables to override the choices made by `configure' or to help
1639 it to find libraries and programs with nonstandard names/locations.
1641 Report bugs to <openvpn-users@lists.sourceforge.net>.
1642 _ACEOF
1643 ac_status=$?
1646 if test "$ac_init_help" = "recursive"; then
1647 # If there are subdirs, report their specific --help.
1648 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1649 test -d "$ac_dir" ||
1650 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1651 continue
1652 ac_builddir=.
1654 case "$ac_dir" in
1655 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1657 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1658 # A ".." for each directory in $ac_dir_suffix.
1659 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1660 case $ac_top_builddir_sub in
1661 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1662 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1663 esac ;;
1664 esac
1665 ac_abs_top_builddir=$ac_pwd
1666 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1667 # for backward compatibility:
1668 ac_top_builddir=$ac_top_build_prefix
1670 case $srcdir in
1671 .) # We are building in place.
1672 ac_srcdir=.
1673 ac_top_srcdir=$ac_top_builddir_sub
1674 ac_abs_top_srcdir=$ac_pwd ;;
1675 [\\/]* | ?:[\\/]* ) # Absolute name.
1676 ac_srcdir=$srcdir$ac_dir_suffix;
1677 ac_top_srcdir=$srcdir
1678 ac_abs_top_srcdir=$srcdir ;;
1679 *) # Relative name.
1680 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1681 ac_top_srcdir=$ac_top_build_prefix$srcdir
1682 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1683 esac
1684 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1686 cd "$ac_dir" || { ac_status=$?; continue; }
1687 # Check for guested configure.
1688 if test -f "$ac_srcdir/configure.gnu"; then
1689 echo &&
1690 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1691 elif test -f "$ac_srcdir/configure"; then
1692 echo &&
1693 $SHELL "$ac_srcdir/configure" --help=recursive
1694 else
1695 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1696 fi || ac_status=$?
1697 cd "$ac_pwd" || { ac_status=$?; break; }
1698 done
1701 test -n "$ac_init_help" && exit $ac_status
1702 if $ac_init_version; then
1703 cat <<\_ACEOF
1704 OpenVPN configure 2.3.7
1705 generated by GNU Autoconf 2.69
1707 Copyright (C) 2012 Free Software Foundation, Inc.
1708 This configure script is free software; the Free Software Foundation
1709 gives unlimited permission to copy, distribute and modify it.
1710 _ACEOF
1711 exit
1714 ## ------------------------ ##
1715 ## Autoconf initialization. ##
1716 ## ------------------------ ##
1718 # ac_fn_c_try_compile LINENO
1719 # --------------------------
1720 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1721 ac_fn_c_try_compile ()
1723 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1724 rm -f conftest.$ac_objext
1725 if { { ac_try="$ac_compile"
1726 case "(($ac_try" in
1727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1728 *) ac_try_echo=$ac_try;;
1729 esac
1730 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1731 $as_echo "$ac_try_echo"; } >&5
1732 (eval "$ac_compile") 2>conftest.err
1733 ac_status=$?
1734 if test -s conftest.err; then
1735 grep -v '^ *+' conftest.err >conftest.er1
1736 cat conftest.er1 >&5
1737 mv -f conftest.er1 conftest.err
1739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1740 test $ac_status = 0; } && {
1741 test -z "$ac_c_werror_flag" ||
1742 test ! -s conftest.err
1743 } && test -s conftest.$ac_objext; then :
1744 ac_retval=0
1745 else
1746 $as_echo "$as_me: failed program was:" >&5
1747 sed 's/^/| /' conftest.$ac_ext >&5
1749 ac_retval=1
1751 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1752 as_fn_set_status $ac_retval
1754 } # ac_fn_c_try_compile
1756 # ac_fn_c_try_cpp LINENO
1757 # ----------------------
1758 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1759 ac_fn_c_try_cpp ()
1761 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1762 if { { ac_try="$ac_cpp conftest.$ac_ext"
1763 case "(($ac_try" in
1764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1765 *) ac_try_echo=$ac_try;;
1766 esac
1767 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1768 $as_echo "$ac_try_echo"; } >&5
1769 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1770 ac_status=$?
1771 if test -s conftest.err; then
1772 grep -v '^ *+' conftest.err >conftest.er1
1773 cat conftest.er1 >&5
1774 mv -f conftest.er1 conftest.err
1776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1777 test $ac_status = 0; } > conftest.i && {
1778 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1779 test ! -s conftest.err
1780 }; then :
1781 ac_retval=0
1782 else
1783 $as_echo "$as_me: failed program was:" >&5
1784 sed 's/^/| /' conftest.$ac_ext >&5
1786 ac_retval=1
1788 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1789 as_fn_set_status $ac_retval
1791 } # ac_fn_c_try_cpp
1793 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1794 # -------------------------------------------------------
1795 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1796 # the include files in INCLUDES and setting the cache variable VAR
1797 # accordingly.
1798 ac_fn_c_check_header_mongrel ()
1800 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1801 if eval \${$3+:} false; then :
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1803 $as_echo_n "checking for $2... " >&6; }
1804 if eval \${$3+:} false; then :
1805 $as_echo_n "(cached) " >&6
1807 eval ac_res=\$$3
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1809 $as_echo "$ac_res" >&6; }
1810 else
1811 # Is the header compilable?
1812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1813 $as_echo_n "checking $2 usability... " >&6; }
1814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1815 /* end confdefs.h. */
1817 #include <$2>
1818 _ACEOF
1819 if ac_fn_c_try_compile "$LINENO"; then :
1820 ac_header_compiler=yes
1821 else
1822 ac_header_compiler=no
1824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1826 $as_echo "$ac_header_compiler" >&6; }
1828 # Is the header present?
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1830 $as_echo_n "checking $2 presence... " >&6; }
1831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1832 /* end confdefs.h. */
1833 #include <$2>
1834 _ACEOF
1835 if ac_fn_c_try_cpp "$LINENO"; then :
1836 ac_header_preproc=yes
1837 else
1838 ac_header_preproc=no
1840 rm -f conftest.err conftest.i conftest.$ac_ext
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1842 $as_echo "$ac_header_preproc" >&6; }
1844 # So? What about this header?
1845 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1846 yes:no: )
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1848 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1850 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1852 no:yes:* )
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1854 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1856 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1858 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1860 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1862 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1863 ( $as_echo "## -------------------------------------------------- ##
1864 ## Report this to openvpn-users@lists.sourceforge.net ##
1865 ## -------------------------------------------------- ##"
1866 ) | sed "s/^/$as_me: WARNING: /" >&2
1868 esac
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1870 $as_echo_n "checking for $2... " >&6; }
1871 if eval \${$3+:} false; then :
1872 $as_echo_n "(cached) " >&6
1873 else
1874 eval "$3=\$ac_header_compiler"
1876 eval ac_res=\$$3
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1878 $as_echo "$ac_res" >&6; }
1880 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1882 } # ac_fn_c_check_header_mongrel
1884 # ac_fn_c_try_run LINENO
1885 # ----------------------
1886 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1887 # that executables *can* be run.
1888 ac_fn_c_try_run ()
1890 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1891 if { { ac_try="$ac_link"
1892 case "(($ac_try" in
1893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1894 *) ac_try_echo=$ac_try;;
1895 esac
1896 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1897 $as_echo "$ac_try_echo"; } >&5
1898 (eval "$ac_link") 2>&5
1899 ac_status=$?
1900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1901 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1902 { { case "(($ac_try" in
1903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1904 *) ac_try_echo=$ac_try;;
1905 esac
1906 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1907 $as_echo "$ac_try_echo"; } >&5
1908 (eval "$ac_try") 2>&5
1909 ac_status=$?
1910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1911 test $ac_status = 0; }; }; then :
1912 ac_retval=0
1913 else
1914 $as_echo "$as_me: program exited with status $ac_status" >&5
1915 $as_echo "$as_me: failed program was:" >&5
1916 sed 's/^/| /' conftest.$ac_ext >&5
1918 ac_retval=$ac_status
1920 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1921 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1922 as_fn_set_status $ac_retval
1924 } # ac_fn_c_try_run
1926 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1927 # -------------------------------------------------------
1928 # Tests whether HEADER exists and can be compiled using the include files in
1929 # INCLUDES, setting the cache variable VAR accordingly.
1930 ac_fn_c_check_header_compile ()
1932 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1934 $as_echo_n "checking for $2... " >&6; }
1935 if eval \${$3+:} false; then :
1936 $as_echo_n "(cached) " >&6
1937 else
1938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1939 /* end confdefs.h. */
1941 #include <$2>
1942 _ACEOF
1943 if ac_fn_c_try_compile "$LINENO"; then :
1944 eval "$3=yes"
1945 else
1946 eval "$3=no"
1948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1950 eval ac_res=\$$3
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1952 $as_echo "$ac_res" >&6; }
1953 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1955 } # ac_fn_c_check_header_compile
1957 # ac_fn_c_try_link LINENO
1958 # -----------------------
1959 # Try to link conftest.$ac_ext, and return whether this succeeded.
1960 ac_fn_c_try_link ()
1962 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1963 rm -f conftest.$ac_objext conftest$ac_exeext
1964 if { { ac_try="$ac_link"
1965 case "(($ac_try" in
1966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1967 *) ac_try_echo=$ac_try;;
1968 esac
1969 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1970 $as_echo "$ac_try_echo"; } >&5
1971 (eval "$ac_link") 2>conftest.err
1972 ac_status=$?
1973 if test -s conftest.err; then
1974 grep -v '^ *+' conftest.err >conftest.er1
1975 cat conftest.er1 >&5
1976 mv -f conftest.er1 conftest.err
1978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1979 test $ac_status = 0; } && {
1980 test -z "$ac_c_werror_flag" ||
1981 test ! -s conftest.err
1982 } && test -s conftest$ac_exeext && {
1983 test "$cross_compiling" = yes ||
1984 test -x conftest$ac_exeext
1985 }; then :
1986 ac_retval=0
1987 else
1988 $as_echo "$as_me: failed program was:" >&5
1989 sed 's/^/| /' conftest.$ac_ext >&5
1991 ac_retval=1
1993 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1994 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1995 # interfere with the next link command; also delete a directory that is
1996 # left behind by Apple's compiler. We do this before executing the actions.
1997 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1998 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1999 as_fn_set_status $ac_retval
2001 } # ac_fn_c_try_link
2003 # ac_fn_c_check_func LINENO FUNC VAR
2004 # ----------------------------------
2005 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2006 ac_fn_c_check_func ()
2008 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2010 $as_echo_n "checking for $2... " >&6; }
2011 if eval \${$3+:} false; then :
2012 $as_echo_n "(cached) " >&6
2013 else
2014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015 /* end confdefs.h. */
2016 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2017 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2018 #define $2 innocuous_$2
2020 /* System header to define __stub macros and hopefully few prototypes,
2021 which can conflict with char $2 (); below.
2022 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2023 <limits.h> exists even on freestanding compilers. */
2025 #ifdef __STDC__
2026 # include <limits.h>
2027 #else
2028 # include <assert.h>
2029 #endif
2031 #undef $2
2033 /* Override any GCC internal prototype to avoid an error.
2034 Use char because int might match the return type of a GCC
2035 builtin and then its argument prototype would still apply. */
2036 #ifdef __cplusplus
2037 extern "C"
2038 #endif
2039 char $2 ();
2040 /* The GNU C library defines this for functions which it implements
2041 to always fail with ENOSYS. Some functions are actually named
2042 something starting with __ and the normal name is an alias. */
2043 #if defined __stub_$2 || defined __stub___$2
2044 choke me
2045 #endif
2048 main ()
2050 return $2 ();
2052 return 0;
2054 _ACEOF
2055 if ac_fn_c_try_link "$LINENO"; then :
2056 eval "$3=yes"
2057 else
2058 eval "$3=no"
2060 rm -f core conftest.err conftest.$ac_objext \
2061 conftest$ac_exeext conftest.$ac_ext
2063 eval ac_res=\$$3
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2065 $as_echo "$ac_res" >&6; }
2066 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2068 } # ac_fn_c_check_func
2070 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2071 # -------------------------------------------
2072 # Tests whether TYPE exists after having included INCLUDES, setting cache
2073 # variable VAR accordingly.
2074 ac_fn_c_check_type ()
2076 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2078 $as_echo_n "checking for $2... " >&6; }
2079 if eval \${$3+:} false; then :
2080 $as_echo_n "(cached) " >&6
2081 else
2082 eval "$3=no"
2083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2084 /* end confdefs.h. */
2087 main ()
2089 if (sizeof ($2))
2090 return 0;
2092 return 0;
2094 _ACEOF
2095 if ac_fn_c_try_compile "$LINENO"; then :
2096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2097 /* end confdefs.h. */
2100 main ()
2102 if (sizeof (($2)))
2103 return 0;
2105 return 0;
2107 _ACEOF
2108 if ac_fn_c_try_compile "$LINENO"; then :
2110 else
2111 eval "$3=yes"
2113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2117 eval ac_res=\$$3
2118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2119 $as_echo "$ac_res" >&6; }
2120 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2122 } # ac_fn_c_check_type
2124 # ac_fn_c_find_intX_t LINENO BITS VAR
2125 # -----------------------------------
2126 # Finds a signed integer type with width BITS, setting cache variable VAR
2127 # accordingly.
2128 ac_fn_c_find_intX_t ()
2130 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2132 $as_echo_n "checking for int$2_t... " >&6; }
2133 if eval \${$3+:} false; then :
2134 $as_echo_n "(cached) " >&6
2135 else
2136 eval "$3=no"
2137 # Order is important - never check a type that is potentially smaller
2138 # than half of the expected target width.
2139 for ac_type in int$2_t 'int' 'long int' \
2140 'long long int' 'short int' 'signed char'; do
2141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2142 /* end confdefs.h. */
2143 $ac_includes_default
2144 enum { N = $2 / 2 - 1 };
2146 main ()
2148 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2149 test_array [0] = 0;
2150 return test_array [0];
2153 return 0;
2155 _ACEOF
2156 if ac_fn_c_try_compile "$LINENO"; then :
2157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2158 /* end confdefs.h. */
2159 $ac_includes_default
2160 enum { N = $2 / 2 - 1 };
2162 main ()
2164 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2165 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2166 test_array [0] = 0;
2167 return test_array [0];
2170 return 0;
2172 _ACEOF
2173 if ac_fn_c_try_compile "$LINENO"; then :
2175 else
2176 case $ac_type in #(
2177 int$2_t) :
2178 eval "$3=yes" ;; #(
2179 *) :
2180 eval "$3=\$ac_type" ;;
2181 esac
2183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2186 if eval test \"x\$"$3"\" = x"no"; then :
2188 else
2189 break
2191 done
2193 eval ac_res=\$$3
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2195 $as_echo "$ac_res" >&6; }
2196 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2198 } # ac_fn_c_find_intX_t
2200 # ac_fn_c_find_uintX_t LINENO BITS VAR
2201 # ------------------------------------
2202 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2203 # accordingly.
2204 ac_fn_c_find_uintX_t ()
2206 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2208 $as_echo_n "checking for uint$2_t... " >&6; }
2209 if eval \${$3+:} false; then :
2210 $as_echo_n "(cached) " >&6
2211 else
2212 eval "$3=no"
2213 # Order is important - never check a type that is potentially smaller
2214 # than half of the expected target width.
2215 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2216 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2218 /* end confdefs.h. */
2219 $ac_includes_default
2221 main ()
2223 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2224 test_array [0] = 0;
2225 return test_array [0];
2228 return 0;
2230 _ACEOF
2231 if ac_fn_c_try_compile "$LINENO"; then :
2232 case $ac_type in #(
2233 uint$2_t) :
2234 eval "$3=yes" ;; #(
2235 *) :
2236 eval "$3=\$ac_type" ;;
2237 esac
2239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2240 if eval test \"x\$"$3"\" = x"no"; then :
2242 else
2243 break
2245 done
2247 eval ac_res=\$$3
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2249 $as_echo "$ac_res" >&6; }
2250 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2252 } # ac_fn_c_find_uintX_t
2254 # ac_fn_c_compute_int LINENO EXPR ax_cv_socklen_t_equiv INCLUDES
2255 # --------------------------------------------------------------
2256 # Tries to find the compile-time value of EXPR in a program that includes
2257 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2258 # computed
2259 ac_fn_c_compute_int ()
2261 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2262 if test "$cross_compiling" = yes; then
2263 # Depending upon the size, compute the lo and hi bounds.
2264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2265 /* end confdefs.h. */
2268 main ()
2270 static int test_array [1 - 2 * !(($2) >= 0)];
2271 test_array [0] = 0;
2272 return test_array [0];
2275 return 0;
2277 _ACEOF
2278 if ac_fn_c_try_compile "$LINENO"; then :
2279 ac_lo=0 ac_mid=0
2280 while :; do
2281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2282 /* end confdefs.h. */
2285 main ()
2287 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2288 test_array [0] = 0;
2289 return test_array [0];
2292 return 0;
2294 _ACEOF
2295 if ac_fn_c_try_compile "$LINENO"; then :
2296 ac_hi=$ac_mid; break
2297 else
2298 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2299 if test $ac_lo -le $ac_mid; then
2300 ac_lo= ac_hi=
2301 break
2303 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2306 done
2307 else
2308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2309 /* end confdefs.h. */
2312 main ()
2314 static int test_array [1 - 2 * !(($2) < 0)];
2315 test_array [0] = 0;
2316 return test_array [0];
2319 return 0;
2321 _ACEOF
2322 if ac_fn_c_try_compile "$LINENO"; then :
2323 ac_hi=-1 ac_mid=-1
2324 while :; do
2325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2326 /* end confdefs.h. */
2329 main ()
2331 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2332 test_array [0] = 0;
2333 return test_array [0];
2336 return 0;
2338 _ACEOF
2339 if ac_fn_c_try_compile "$LINENO"; then :
2340 ac_lo=$ac_mid; break
2341 else
2342 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2343 if test $ac_mid -le $ac_hi; then
2344 ac_lo= ac_hi=
2345 break
2347 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2350 done
2351 else
2352 ac_lo= ac_hi=
2354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2357 # Binary search between lo and hi bounds.
2358 while test "x$ac_lo" != "x$ac_hi"; do
2359 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2361 /* end confdefs.h. */
2364 main ()
2366 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2367 test_array [0] = 0;
2368 return test_array [0];
2371 return 0;
2373 _ACEOF
2374 if ac_fn_c_try_compile "$LINENO"; then :
2375 ac_hi=$ac_mid
2376 else
2377 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2380 done
2381 case $ac_lo in #((
2382 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2383 '') ac_retval=1 ;;
2384 esac
2385 else
2386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2387 /* end confdefs.h. */
2389 static long int longval () { return $2; }
2390 static unsigned long int ulongval () { return $2; }
2391 #include <stdio.h>
2392 #include <stdlib.h>
2394 main ()
2397 FILE *f = fopen ("conftest.val", "w");
2398 if (! f)
2399 return 1;
2400 if (($2) < 0)
2402 long int i = longval ();
2403 if (i != ($2))
2404 return 1;
2405 fprintf (f, "%ld", i);
2407 else
2409 unsigned long int i = ulongval ();
2410 if (i != ($2))
2411 return 1;
2412 fprintf (f, "%lu", i);
2414 /* Do not output a trailing newline, as this causes \r\n confusion
2415 on some platforms. */
2416 return ferror (f) || fclose (f) != 0;
2419 return 0;
2421 _ACEOF
2422 if ac_fn_c_try_run "$LINENO"; then :
2423 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2424 else
2425 ac_retval=1
2427 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2428 conftest.$ac_objext conftest.beam conftest.$ac_ext
2429 rm -f conftest.val
2432 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2433 as_fn_set_status $ac_retval
2435 } # ac_fn_c_compute_int
2437 # ac_fn_c_check_decl LINENO SYMBOL ax_cv_socklen_t_equiv INCLUDES
2438 # ---------------------------------------------------------------
2439 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2440 # accordingly.
2441 ac_fn_c_check_decl ()
2443 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2444 as_decl_name=`echo $2|sed 's/ *(.*//'`
2445 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2447 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2448 if eval \${$3+:} false; then :
2449 $as_echo_n "(cached) " >&6
2450 else
2451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2452 /* end confdefs.h. */
2455 main ()
2457 #ifndef $as_decl_name
2458 #ifdef __cplusplus
2459 (void) $as_decl_use;
2460 #else
2461 (void) $as_decl_name;
2462 #endif
2463 #endif
2466 return 0;
2468 _ACEOF
2469 if ac_fn_c_try_compile "$LINENO"; then :
2470 eval "$3=yes"
2471 else
2472 eval "$3=no"
2474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2476 eval ac_res=\$$3
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2478 $as_echo "$ac_res" >&6; }
2479 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2481 } # ac_fn_c_check_decl
2482 cat >config.log <<_ACEOF
2483 This file contains any messages produced by compilers while
2484 running configure, to aid debugging if configure makes a mistake.
2486 It was created by OpenVPN $as_me 2.3.7, which was
2487 generated by GNU Autoconf 2.69. Invocation command line was
2489 $ $0 $@
2491 _ACEOF
2492 exec 5>>config.log
2494 cat <<_ASUNAME
2495 ## --------- ##
2496 ## Platform. ##
2497 ## --------- ##
2499 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2500 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2501 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2502 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2503 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2505 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2506 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2508 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2509 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2510 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2511 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2512 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2513 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2514 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2516 _ASUNAME
2518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2519 for as_dir in $PATH
2521 IFS=$as_save_IFS
2522 test -z "$as_dir" && as_dir=.
2523 $as_echo "PATH: $as_dir"
2524 done
2525 IFS=$as_save_IFS
2527 } >&5
2529 cat >&5 <<_ACEOF
2532 ## ----------- ##
2533 ## Core tests. ##
2534 ## ----------- ##
2536 _ACEOF
2539 # Keep a trace of the command line.
2540 # Strip out --no-create and --no-recursion so they do not pile up.
2541 # Strip out --silent because we don't want to record it for future runs.
2542 # Also quote any args containing shell meta-characters.
2543 # Make two passes to allow for proper duplicate-argument suppression.
2544 ac_configure_args=
2545 ac_configure_args0=
2546 ac_configure_args1=
2547 ac_must_keep_next=false
2548 for ac_pass in 1 2
2550 for ac_arg
2552 case $ac_arg in
2553 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2554 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2555 | -silent | --silent | --silen | --sile | --sil)
2556 continue ;;
2557 *\'*)
2558 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2559 esac
2560 case $ac_pass in
2561 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2563 as_fn_append ac_configure_args1 " '$ac_arg'"
2564 if test $ac_must_keep_next = true; then
2565 ac_must_keep_next=false # Got value, back to normal.
2566 else
2567 case $ac_arg in
2568 *=* | --config-cache | -C | -disable-* | --disable-* \
2569 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2570 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2571 | -with-* | --with-* | -without-* | --without-* | --x)
2572 case "$ac_configure_args0 " in
2573 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2574 esac
2576 -* ) ac_must_keep_next=true ;;
2577 esac
2579 as_fn_append ac_configure_args " '$ac_arg'"
2581 esac
2582 done
2583 done
2584 { ac_configure_args0=; unset ac_configure_args0;}
2585 { ac_configure_args1=; unset ac_configure_args1;}
2587 # When interrupted or exit'd, cleanup temporary files, and complete
2588 # config.log. We remove comments because anyway the quotes in there
2589 # would cause problems or look ugly.
2590 # WARNING: Use '\'' to represent an apostrophe within the trap.
2591 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2592 trap 'exit_status=$?
2593 # Save into config.log some information that might help in debugging.
2595 echo
2597 $as_echo "## ---------------- ##
2598 ## Cache variables. ##
2599 ## ---------------- ##"
2600 echo
2601 # The following way of writing the cache mishandles newlines in values,
2603 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2604 eval ac_val=\$$ac_var
2605 case $ac_val in #(
2606 *${as_nl}*)
2607 case $ac_var in #(
2608 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2609 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2610 esac
2611 case $ac_var in #(
2612 _ | IFS | as_nl) ;; #(
2613 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2614 *) { eval $ac_var=; unset $ac_var;} ;;
2615 esac ;;
2616 esac
2617 done
2618 (set) 2>&1 |
2619 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2620 *${as_nl}ac_space=\ *)
2621 sed -n \
2622 "s/'\''/'\''\\\\'\'''\''/g;
2623 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2624 ;; #(
2626 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2628 esac |
2629 sort
2631 echo
2633 $as_echo "## ----------------- ##
2634 ## Output variables. ##
2635 ## ----------------- ##"
2636 echo
2637 for ac_var in $ac_subst_vars
2639 eval ac_val=\$$ac_var
2640 case $ac_val in
2641 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2642 esac
2643 $as_echo "$ac_var='\''$ac_val'\''"
2644 done | sort
2645 echo
2647 if test -n "$ac_subst_files"; then
2648 $as_echo "## ------------------- ##
2649 ## File substitutions. ##
2650 ## ------------------- ##"
2651 echo
2652 for ac_var in $ac_subst_files
2654 eval ac_val=\$$ac_var
2655 case $ac_val in
2656 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2657 esac
2658 $as_echo "$ac_var='\''$ac_val'\''"
2659 done | sort
2660 echo
2663 if test -s confdefs.h; then
2664 $as_echo "## ----------- ##
2665 ## confdefs.h. ##
2666 ## ----------- ##"
2667 echo
2668 cat confdefs.h
2669 echo
2671 test "$ac_signal" != 0 &&
2672 $as_echo "$as_me: caught signal $ac_signal"
2673 $as_echo "$as_me: exit $exit_status"
2674 } >&5
2675 rm -f core *.core core.conftest.* &&
2676 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2677 exit $exit_status
2679 for ac_signal in 1 2 13 15; do
2680 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2681 done
2682 ac_signal=0
2684 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2685 rm -f -r conftest* confdefs.h
2687 $as_echo "/* confdefs.h */" > confdefs.h
2689 # Predefined preprocessor variables.
2691 cat >>confdefs.h <<_ACEOF
2692 #define PACKAGE_NAME "$PACKAGE_NAME"
2693 _ACEOF
2695 cat >>confdefs.h <<_ACEOF
2696 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2697 _ACEOF
2699 cat >>confdefs.h <<_ACEOF
2700 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2701 _ACEOF
2703 cat >>confdefs.h <<_ACEOF
2704 #define PACKAGE_STRING "$PACKAGE_STRING"
2705 _ACEOF
2707 cat >>confdefs.h <<_ACEOF
2708 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2709 _ACEOF
2711 cat >>confdefs.h <<_ACEOF
2712 #define PACKAGE_URL "$PACKAGE_URL"
2713 _ACEOF
2716 # Let the site file select an alternate cache file if it wants to.
2717 # Prefer an explicitly selected file to automatically selected ones.
2718 ac_site_file1=NONE
2719 ac_site_file2=NONE
2720 if test -n "$CONFIG_SITE"; then
2721 # We do not want a PATH search for config.site.
2722 case $CONFIG_SITE in #((
2723 -*) ac_site_file1=./$CONFIG_SITE;;
2724 */*) ac_site_file1=$CONFIG_SITE;;
2725 *) ac_site_file1=./$CONFIG_SITE;;
2726 esac
2727 elif test "x$prefix" != xNONE; then
2728 ac_site_file1=$prefix/share/config.site
2729 ac_site_file2=$prefix/etc/config.site
2730 else
2731 ac_site_file1=$ac_default_prefix/share/config.site
2732 ac_site_file2=$ac_default_prefix/etc/config.site
2734 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2736 test "x$ac_site_file" = xNONE && continue
2737 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2739 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2740 sed 's/^/| /' "$ac_site_file" >&5
2741 . "$ac_site_file" \
2742 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2743 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2744 as_fn_error $? "failed to load site script $ac_site_file
2745 See \`config.log' for more details" "$LINENO" 5; }
2747 done
2749 if test -r "$cache_file"; then
2750 # Some versions of bash will fail to source /dev/null (special files
2751 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2752 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2754 $as_echo "$as_me: loading cache $cache_file" >&6;}
2755 case $cache_file in
2756 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2757 *) . "./$cache_file";;
2758 esac
2760 else
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2762 $as_echo "$as_me: creating cache $cache_file" >&6;}
2763 >$cache_file
2766 # Check that the precious variables saved in the cache have kept the same
2767 # value.
2768 ac_cache_corrupted=false
2769 for ac_var in $ac_precious_vars; do
2770 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2771 eval ac_new_set=\$ac_env_${ac_var}_set
2772 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2773 eval ac_new_val=\$ac_env_${ac_var}_value
2774 case $ac_old_set,$ac_new_set in
2775 set,)
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2777 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2778 ac_cache_corrupted=: ;;
2779 ,set)
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2781 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2782 ac_cache_corrupted=: ;;
2783 ,);;
2785 if test "x$ac_old_val" != "x$ac_new_val"; then
2786 # differences in whitespace do not lead to failure.
2787 ac_old_val_w=`echo x $ac_old_val`
2788 ac_new_val_w=`echo x $ac_new_val`
2789 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2791 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2792 ac_cache_corrupted=:
2793 else
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2795 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2796 eval $ac_var=\$ac_old_val
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2799 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2801 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2802 fi;;
2803 esac
2804 # Pass precious variables to config.status.
2805 if test "$ac_new_set" = set; then
2806 case $ac_new_val in
2807 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2808 *) ac_arg=$ac_var=$ac_new_val ;;
2809 esac
2810 case " $ac_configure_args " in
2811 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2812 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2813 esac
2815 done
2816 if $ac_cache_corrupted; then
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2818 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2820 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2821 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2823 ## -------------------- ##
2824 ## Main body of script. ##
2825 ## -------------------- ##
2827 ac_ext=c
2828 ac_cpp='$CPP $CPPFLAGS'
2829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2840 if test -z "${docdir}"; then
2841 docdir="\$(datadir)/doc/\$(PACKAGE_NAME)"
2844 if test -z "${htmldir}"; then
2845 htmldir="\$(docdir)"
2850 $as_echo "#define OPENVPN_VERSION_RESOURCE 2,3,7,0" >>confdefs.h
2853 ac_aux_dir=
2854 for ac_dir in . "$srcdir"/.; do
2855 if test -f "$ac_dir/install-sh"; then
2856 ac_aux_dir=$ac_dir
2857 ac_install_sh="$ac_aux_dir/install-sh -c"
2858 break
2859 elif test -f "$ac_dir/install.sh"; then
2860 ac_aux_dir=$ac_dir
2861 ac_install_sh="$ac_aux_dir/install.sh -c"
2862 break
2863 elif test -f "$ac_dir/shtool"; then
2864 ac_aux_dir=$ac_dir
2865 ac_install_sh="$ac_aux_dir/shtool install -c"
2866 break
2868 done
2869 if test -z "$ac_aux_dir"; then
2870 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2873 # These three variables are undocumented and unsupported,
2874 # and are intended to be withdrawn in a future Autoconf release.
2875 # They can cause serious problems if a builder's source tree is in a directory
2876 # whose full name contains unusual characters.
2877 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2878 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2879 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2882 ac_config_headers="$ac_config_headers config.h"
2888 am__api_version='1.14'
2890 # Find a good install program. We prefer a C program (faster),
2891 # so one script is as good as another. But avoid the broken or
2892 # incompatible versions:
2893 # SysV /etc/install, /usr/sbin/install
2894 # SunOS /usr/etc/install
2895 # IRIX /sbin/install
2896 # AIX /bin/install
2897 # AmigaOS /C/install, which installs bootblocks on floppy discs
2898 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2899 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2900 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2901 # OS/2's system install, which has a completely different semantic
2902 # ./install, which can be erroneously created by make from ./install.sh.
2903 # Reject install programs that cannot install multiple files.
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2905 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2906 if test -z "$INSTALL"; then
2907 if ${ac_cv_path_install+:} false; then :
2908 $as_echo_n "(cached) " >&6
2909 else
2910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2911 for as_dir in $PATH
2913 IFS=$as_save_IFS
2914 test -z "$as_dir" && as_dir=.
2915 # Account for people who put trailing slashes in PATH elements.
2916 case $as_dir/ in #((
2917 ./ | .// | /[cC]/* | \
2918 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2919 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2920 /usr/ucb/* ) ;;
2922 # OSF1 and SCO ODT 3.0 have their own names for install.
2923 # Don't use installbsd from OSF since it installs stuff as root
2924 # by default.
2925 for ac_prog in ginstall scoinst install; do
2926 for ac_exec_ext in '' $ac_executable_extensions; do
2927 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2928 if test $ac_prog = install &&
2929 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2930 # AIX install. It has an incompatible calling convention.
2932 elif test $ac_prog = install &&
2933 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2934 # program-specific install script used by HP pwplus--don't use.
2936 else
2937 rm -rf conftest.one conftest.two conftest.dir
2938 echo one > conftest.one
2939 echo two > conftest.two
2940 mkdir conftest.dir
2941 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2942 test -s conftest.one && test -s conftest.two &&
2943 test -s conftest.dir/conftest.one &&
2944 test -s conftest.dir/conftest.two
2945 then
2946 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2947 break 3
2951 done
2952 done
2954 esac
2956 done
2957 IFS=$as_save_IFS
2959 rm -rf conftest.one conftest.two conftest.dir
2962 if test "${ac_cv_path_install+set}" = set; then
2963 INSTALL=$ac_cv_path_install
2964 else
2965 # As a last resort, use the slow shell script. Don't cache a
2966 # value for INSTALL within a source directory, because that will
2967 # break other packages using the cache if that directory is
2968 # removed, or if the value is a relative name.
2969 INSTALL=$ac_install_sh
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2973 $as_echo "$INSTALL" >&6; }
2975 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2976 # It thinks the first close brace ends the variable substitution.
2977 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2979 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2981 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2984 $as_echo_n "checking whether build environment is sane... " >&6; }
2985 # Reject unsafe characters in $srcdir or the absolute working directory
2986 # name. Accept space and tab only in the latter.
2987 am_lf='
2989 case `pwd` in
2990 *[\\\"\#\$\&\'\`$am_lf]*)
2991 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2992 esac
2993 case $srcdir in
2994 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2995 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2996 esac
2998 # Do 'set' in a subshell so we don't clobber the current shell's
2999 # arguments. Must try -L first in case configure is actually a
3000 # symlink; some systems play weird games with the mod time of symlinks
3001 # (eg FreeBSD returns the mod time of the symlink's containing
3002 # directory).
3003 if (
3004 am_has_slept=no
3005 for am_try in 1 2; do
3006 echo "timestamp, slept: $am_has_slept" > conftest.file
3007 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3008 if test "$*" = "X"; then
3009 # -L didn't work.
3010 set X `ls -t "$srcdir/configure" conftest.file`
3012 if test "$*" != "X $srcdir/configure conftest.file" \
3013 && test "$*" != "X conftest.file $srcdir/configure"; then
3015 # If neither matched, then we have a broken ls. This can happen
3016 # if, for instance, CONFIG_SHELL is bash and it inherits a
3017 # broken ls alias from the environment. This has actually
3018 # happened. Such a system could not be considered "sane".
3019 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3020 alias in your environment" "$LINENO" 5
3022 if test "$2" = conftest.file || test $am_try -eq 2; then
3023 break
3025 # Just in case.
3026 sleep 1
3027 am_has_slept=yes
3028 done
3029 test "$2" = conftest.file
3031 then
3032 # Ok.
3034 else
3035 as_fn_error $? "newly created file is older than distributed files!
3036 Check your system clock" "$LINENO" 5
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3039 $as_echo "yes" >&6; }
3040 # If we didn't sleep, we still need to ensure time stamps of config.status and
3041 # generated files are strictly newer.
3042 am_sleep_pid=
3043 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3044 ( sleep 1 ) &
3045 am_sleep_pid=$!
3048 rm -f conftest.file
3050 test "$program_prefix" != NONE &&
3051 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3052 # Use a double $ so make ignores it.
3053 test "$program_suffix" != NONE &&
3054 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3055 # Double any \ or $.
3056 # By default was `s,x,x', remove it if useless.
3057 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3058 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3060 # Expand $ac_aux_dir to an absolute path.
3061 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3063 if test x"${MISSING+set}" != xset; then
3064 case $am_aux_dir in
3065 *\ * | *\ *)
3066 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3068 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3069 esac
3071 # Use eval to expand $SHELL
3072 if eval "$MISSING --is-lightweight"; then
3073 am_missing_run="$MISSING "
3074 else
3075 am_missing_run=
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3077 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3080 if test x"${install_sh}" != xset; then
3081 case $am_aux_dir in
3082 *\ * | *\ *)
3083 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3085 install_sh="\${SHELL} $am_aux_dir/install-sh"
3086 esac
3089 # Installed binaries are usually stripped using 'strip' when the user
3090 # run "make install-strip". However 'strip' might not be the right
3091 # tool to use in cross-compilation environments, therefore Automake
3092 # will honor the 'STRIP' environment variable to overrule this program.
3093 if test "$cross_compiling" != no; then
3094 if test -n "$ac_tool_prefix"; then
3095 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3096 set dummy ${ac_tool_prefix}strip; ac_word=$2
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3098 $as_echo_n "checking for $ac_word... " >&6; }
3099 if ${ac_cv_prog_STRIP+:} false; then :
3100 $as_echo_n "(cached) " >&6
3101 else
3102 if test -n "$STRIP"; then
3103 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3104 else
3105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3106 for as_dir in $PATH
3108 IFS=$as_save_IFS
3109 test -z "$as_dir" && as_dir=.
3110 for ac_exec_ext in '' $ac_executable_extensions; do
3111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3112 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3114 break 2
3116 done
3117 done
3118 IFS=$as_save_IFS
3122 STRIP=$ac_cv_prog_STRIP
3123 if test -n "$STRIP"; then
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3125 $as_echo "$STRIP" >&6; }
3126 else
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3128 $as_echo "no" >&6; }
3133 if test -z "$ac_cv_prog_STRIP"; then
3134 ac_ct_STRIP=$STRIP
3135 # Extract the first word of "strip", so it can be a program name with args.
3136 set dummy strip; ac_word=$2
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3138 $as_echo_n "checking for $ac_word... " >&6; }
3139 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3140 $as_echo_n "(cached) " >&6
3141 else
3142 if test -n "$ac_ct_STRIP"; then
3143 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3144 else
3145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3146 for as_dir in $PATH
3148 IFS=$as_save_IFS
3149 test -z "$as_dir" && as_dir=.
3150 for ac_exec_ext in '' $ac_executable_extensions; do
3151 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3152 ac_cv_prog_ac_ct_STRIP="strip"
3153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3154 break 2
3156 done
3157 done
3158 IFS=$as_save_IFS
3162 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3163 if test -n "$ac_ct_STRIP"; then
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3165 $as_echo "$ac_ct_STRIP" >&6; }
3166 else
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3168 $as_echo "no" >&6; }
3171 if test "x$ac_ct_STRIP" = x; then
3172 STRIP=":"
3173 else
3174 case $cross_compiling:$ac_tool_warned in
3175 yes:)
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3177 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3178 ac_tool_warned=yes ;;
3179 esac
3180 STRIP=$ac_ct_STRIP
3182 else
3183 STRIP="$ac_cv_prog_STRIP"
3187 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3190 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3191 if test -z "$MKDIR_P"; then
3192 if ${ac_cv_path_mkdir+:} false; then :
3193 $as_echo_n "(cached) " >&6
3194 else
3195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3196 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3198 IFS=$as_save_IFS
3199 test -z "$as_dir" && as_dir=.
3200 for ac_prog in mkdir gmkdir; do
3201 for ac_exec_ext in '' $ac_executable_extensions; do
3202 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3203 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3204 'mkdir (GNU coreutils) '* | \
3205 'mkdir (coreutils) '* | \
3206 'mkdir (fileutils) '4.1*)
3207 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3208 break 3;;
3209 esac
3210 done
3211 done
3212 done
3213 IFS=$as_save_IFS
3217 test -d ./--version && rmdir ./--version
3218 if test "${ac_cv_path_mkdir+set}" = set; then
3219 MKDIR_P="$ac_cv_path_mkdir -p"
3220 else
3221 # As a last resort, use the slow shell script. Don't cache a
3222 # value for MKDIR_P within a source directory, because that will
3223 # break other packages using the cache if that directory is
3224 # removed, or if the value is a relative name.
3225 MKDIR_P="$ac_install_sh -d"
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3229 $as_echo "$MKDIR_P" >&6; }
3231 for ac_prog in gawk mawk nawk awk
3233 # Extract the first word of "$ac_prog", so it can be a program name with args.
3234 set dummy $ac_prog; ac_word=$2
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3236 $as_echo_n "checking for $ac_word... " >&6; }
3237 if ${ac_cv_prog_AWK+:} false; then :
3238 $as_echo_n "(cached) " >&6
3239 else
3240 if test -n "$AWK"; then
3241 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3242 else
3243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3244 for as_dir in $PATH
3246 IFS=$as_save_IFS
3247 test -z "$as_dir" && as_dir=.
3248 for ac_exec_ext in '' $ac_executable_extensions; do
3249 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3250 ac_cv_prog_AWK="$ac_prog"
3251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3252 break 2
3254 done
3255 done
3256 IFS=$as_save_IFS
3260 AWK=$ac_cv_prog_AWK
3261 if test -n "$AWK"; then
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3263 $as_echo "$AWK" >&6; }
3264 else
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3266 $as_echo "no" >&6; }
3270 test -n "$AWK" && break
3271 done
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3274 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3275 set x ${MAKE-make}
3276 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3277 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3278 $as_echo_n "(cached) " >&6
3279 else
3280 cat >conftest.make <<\_ACEOF
3281 SHELL = /bin/sh
3282 all:
3283 @echo '@@@%%%=$(MAKE)=@@@%%%'
3284 _ACEOF
3285 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3286 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3287 *@@@%%%=?*=@@@%%%*)
3288 eval ac_cv_prog_make_${ac_make}_set=yes;;
3290 eval ac_cv_prog_make_${ac_make}_set=no;;
3291 esac
3292 rm -f conftest.make
3294 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3296 $as_echo "yes" >&6; }
3297 SET_MAKE=
3298 else
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3300 $as_echo "no" >&6; }
3301 SET_MAKE="MAKE=${MAKE-make}"
3304 rm -rf .tst 2>/dev/null
3305 mkdir .tst 2>/dev/null
3306 if test -d .tst; then
3307 am__leading_dot=.
3308 else
3309 am__leading_dot=_
3311 rmdir .tst 2>/dev/null
3313 # Check whether --enable-silent-rules was given.
3314 if test "${enable_silent_rules+set}" = set; then :
3315 enableval=$enable_silent_rules;
3318 case $enable_silent_rules in # (((
3319 yes) AM_DEFAULT_VERBOSITY=0;;
3320 no) AM_DEFAULT_VERBOSITY=1;;
3321 *) AM_DEFAULT_VERBOSITY=1;;
3322 esac
3323 am_make=${MAKE-make}
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3325 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3326 if ${am_cv_make_support_nested_variables+:} false; then :
3327 $as_echo_n "(cached) " >&6
3328 else
3329 if $as_echo 'TRUE=$(BAR$(V))
3330 BAR0=false
3331 BAR1=true
3333 am__doit:
3334 @$(TRUE)
3335 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3336 am_cv_make_support_nested_variables=yes
3337 else
3338 am_cv_make_support_nested_variables=no
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3342 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3343 if test $am_cv_make_support_nested_variables = yes; then
3344 AM_V='$(V)'
3345 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3346 else
3347 AM_V=$AM_DEFAULT_VERBOSITY
3348 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3350 AM_BACKSLASH='\'
3352 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3353 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3354 # is not polluted with repeated "-I."
3355 am__isrc=' -I$(srcdir)'
3356 # test to see if srcdir already configured
3357 if test -f $srcdir/config.status; then
3358 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3362 # test whether we have cygpath
3363 if test -z "$CYGPATH_W"; then
3364 if (cygpath --version) >/dev/null 2>/dev/null; then
3365 CYGPATH_W='cygpath -w'
3366 else
3367 CYGPATH_W=echo
3372 # Define the identity of the package.
3373 PACKAGE='openvpn'
3374 VERSION='2.3.7'
3377 cat >>confdefs.h <<_ACEOF
3378 #define PACKAGE "$PACKAGE"
3379 _ACEOF
3382 cat >>confdefs.h <<_ACEOF
3383 #define VERSION "$VERSION"
3384 _ACEOF
3386 # Some tools Automake needs.
3388 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3391 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3394 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3397 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3400 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3402 # For better backward compatibility. To be removed once Automake 1.9.x
3403 # dies out for good. For more background, see:
3404 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3405 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3406 mkdir_p='$(MKDIR_P)'
3408 # We need awk for the "check" target. The system "awk" is bad on
3409 # some platforms.
3410 # Always define AMTAR for backward compatibility. Yes, it's still used
3411 # in the wild :-( We should find a proper way to deprecate it ...
3412 AMTAR='$${TAR-tar}'
3415 # We'll loop over all known methods to create a tar archive until one works.
3416 _am_tools='gnutar pax cpio none'
3418 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3425 # POSIX will say in a future version that running "rm -f" with no argument
3426 # is OK; and we want to be able to make that assumption in our Makefile
3427 # recipes. So use an aggressive probe to check that the usage we want is
3428 # actually supported "in the wild" to an acceptable degree.
3429 # See automake bug#10828.
3430 # To make any issue more visible, cause the running configure to be aborted
3431 # by default if the 'rm' program in use doesn't match our expectations; the
3432 # user can still override this though.
3433 if rm -f && rm -fr && rm -rf; then : OK; else
3434 cat >&2 <<'END'
3435 Oops!
3437 Your 'rm' program seems unable to run without file operands specified
3438 on the command line, even when the '-f' option is present. This is contrary
3439 to the behaviour of most rm programs out there, and not conforming with
3440 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3442 Please tell bug-automake@gnu.org about your system, including the value
3443 of your $PATH and any error possibly output before this message. This
3444 can help us improve future automake versions.
3447 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3448 echo 'Configuration will proceed anyway, since you have set the' >&2
3449 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3450 echo >&2
3451 else
3452 cat >&2 <<'END'
3453 Aborting the configuration process, to ensure you take notice of the issue.
3455 You can download and install GNU coreutils to get an 'rm' implementation
3456 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3458 If you want to complete the configuration process using your problematic
3459 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3460 to "yes", and re-run configure.
3463 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3466 # Make sure we can run config.sub.
3467 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3468 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3471 $as_echo_n "checking build system type... " >&6; }
3472 if ${ac_cv_build+:} false; then :
3473 $as_echo_n "(cached) " >&6
3474 else
3475 ac_build_alias=$build_alias
3476 test "x$ac_build_alias" = x &&
3477 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3478 test "x$ac_build_alias" = x &&
3479 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3480 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3481 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3485 $as_echo "$ac_cv_build" >&6; }
3486 case $ac_cv_build in
3487 *-*-*) ;;
3488 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3489 esac
3490 build=$ac_cv_build
3491 ac_save_IFS=$IFS; IFS='-'
3492 set x $ac_cv_build
3493 shift
3494 build_cpu=$1
3495 build_vendor=$2
3496 shift; shift
3497 # Remember, the first character of IFS is used to create $*,
3498 # except with old shells:
3499 build_os=$*
3500 IFS=$ac_save_IFS
3501 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3505 $as_echo_n "checking host system type... " >&6; }
3506 if ${ac_cv_host+:} false; then :
3507 $as_echo_n "(cached) " >&6
3508 else
3509 if test "x$host_alias" = x; then
3510 ac_cv_host=$ac_cv_build
3511 else
3512 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3513 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3518 $as_echo "$ac_cv_host" >&6; }
3519 case $ac_cv_host in
3520 *-*-*) ;;
3521 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3522 esac
3523 host=$ac_cv_host
3524 ac_save_IFS=$IFS; IFS='-'
3525 set x $ac_cv_host
3526 shift
3527 host_cpu=$1
3528 host_vendor=$2
3529 shift; shift
3530 # Remember, the first character of IFS is used to create $*,
3531 # except with old shells:
3532 host_os=$*
3533 IFS=$ac_save_IFS
3534 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3537 DEPDIR="${am__leading_dot}deps"
3539 ac_config_commands="$ac_config_commands depfiles"
3542 am_make=${MAKE-make}
3543 cat > confinc << 'END'
3544 am__doit:
3545 @echo this is the am__doit target
3546 .PHONY: am__doit
3548 # If we don't find an include directive, just comment out the code.
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3550 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3551 am__include="#"
3552 am__quote=
3553 _am_result=none
3554 # First try GNU make style include.
3555 echo "include confinc" > confmf
3556 # Ignore all kinds of additional output from 'make'.
3557 case `$am_make -s -f confmf 2> /dev/null` in #(
3558 *the\ am__doit\ target*)
3559 am__include=include
3560 am__quote=
3561 _am_result=GNU
3563 esac
3564 # Now try BSD make style include.
3565 if test "$am__include" = "#"; then
3566 echo '.include "confinc"' > confmf
3567 case `$am_make -s -f confmf 2> /dev/null` in #(
3568 *the\ am__doit\ target*)
3569 am__include=.include
3570 am__quote="\""
3571 _am_result=BSD
3573 esac
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3578 $as_echo "$_am_result" >&6; }
3579 rm -f confinc confmf
3581 # Check whether --enable-dependency-tracking was given.
3582 if test "${enable_dependency_tracking+set}" = set; then :
3583 enableval=$enable_dependency_tracking;
3586 if test "x$enable_dependency_tracking" != xno; then
3587 am_depcomp="$ac_aux_dir/depcomp"
3588 AMDEPBACKSLASH='\'
3589 am__nodep='_no'
3591 if test "x$enable_dependency_tracking" != xno; then
3592 AMDEP_TRUE=
3593 AMDEP_FALSE='#'
3594 else
3595 AMDEP_TRUE='#'
3596 AMDEP_FALSE=
3600 ac_ext=c
3601 ac_cpp='$CPP $CPPFLAGS'
3602 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3603 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3604 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3605 if test -n "$ac_tool_prefix"; then
3606 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3607 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3609 $as_echo_n "checking for $ac_word... " >&6; }
3610 if ${ac_cv_prog_CC+:} false; then :
3611 $as_echo_n "(cached) " >&6
3612 else
3613 if test -n "$CC"; then
3614 ac_cv_prog_CC="$CC" # Let the user override the test.
3615 else
3616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3617 for as_dir in $PATH
3619 IFS=$as_save_IFS
3620 test -z "$as_dir" && as_dir=.
3621 for ac_exec_ext in '' $ac_executable_extensions; do
3622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3623 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3625 break 2
3627 done
3628 done
3629 IFS=$as_save_IFS
3633 CC=$ac_cv_prog_CC
3634 if test -n "$CC"; then
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3636 $as_echo "$CC" >&6; }
3637 else
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3639 $as_echo "no" >&6; }
3644 if test -z "$ac_cv_prog_CC"; then
3645 ac_ct_CC=$CC
3646 # Extract the first word of "gcc", so it can be a program name with args.
3647 set dummy gcc; ac_word=$2
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3649 $as_echo_n "checking for $ac_word... " >&6; }
3650 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3651 $as_echo_n "(cached) " >&6
3652 else
3653 if test -n "$ac_ct_CC"; then
3654 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3655 else
3656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3657 for as_dir in $PATH
3659 IFS=$as_save_IFS
3660 test -z "$as_dir" && as_dir=.
3661 for ac_exec_ext in '' $ac_executable_extensions; do
3662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3663 ac_cv_prog_ac_ct_CC="gcc"
3664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3665 break 2
3667 done
3668 done
3669 IFS=$as_save_IFS
3673 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3674 if test -n "$ac_ct_CC"; then
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3676 $as_echo "$ac_ct_CC" >&6; }
3677 else
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3679 $as_echo "no" >&6; }
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
3693 else
3694 CC="$ac_cv_prog_CC"
3697 if test -z "$CC"; then
3698 if test -n "$ac_tool_prefix"; then
3699 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3700 set dummy ${ac_tool_prefix}cc; ac_word=$2
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3702 $as_echo_n "checking for $ac_word... " >&6; }
3703 if ${ac_cv_prog_CC+:} false; then :
3704 $as_echo_n "(cached) " >&6
3705 else
3706 if test -n "$CC"; then
3707 ac_cv_prog_CC="$CC" # Let the user override the test.
3708 else
3709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3710 for as_dir in $PATH
3712 IFS=$as_save_IFS
3713 test -z "$as_dir" && as_dir=.
3714 for ac_exec_ext in '' $ac_executable_extensions; do
3715 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3716 ac_cv_prog_CC="${ac_tool_prefix}cc"
3717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3718 break 2
3720 done
3721 done
3722 IFS=$as_save_IFS
3726 CC=$ac_cv_prog_CC
3727 if test -n "$CC"; then
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3729 $as_echo "$CC" >&6; }
3730 else
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3732 $as_echo "no" >&6; }
3738 if test -z "$CC"; then
3739 # Extract the first word of "cc", so it can be a program name with args.
3740 set dummy cc; ac_word=$2
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3742 $as_echo_n "checking for $ac_word... " >&6; }
3743 if ${ac_cv_prog_CC+:} false; then :
3744 $as_echo_n "(cached) " >&6
3745 else
3746 if test -n "$CC"; then
3747 ac_cv_prog_CC="$CC" # Let the user override the test.
3748 else
3749 ac_prog_rejected=no
3750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3751 for as_dir in $PATH
3753 IFS=$as_save_IFS
3754 test -z "$as_dir" && as_dir=.
3755 for ac_exec_ext in '' $ac_executable_extensions; do
3756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3757 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3758 ac_prog_rejected=yes
3759 continue
3761 ac_cv_prog_CC="cc"
3762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3763 break 2
3765 done
3766 done
3767 IFS=$as_save_IFS
3769 if test $ac_prog_rejected = yes; then
3770 # We found a bogon in the path, so make sure we never use it.
3771 set dummy $ac_cv_prog_CC
3772 shift
3773 if test $# != 0; then
3774 # We chose a different compiler from the bogus one.
3775 # However, it has the same basename, so the bogon will be chosen
3776 # first if we set CC to just the basename; use the full file name.
3777 shift
3778 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3783 CC=$ac_cv_prog_CC
3784 if test -n "$CC"; then
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3786 $as_echo "$CC" >&6; }
3787 else
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3789 $as_echo "no" >&6; }
3794 if test -z "$CC"; then
3795 if test -n "$ac_tool_prefix"; then
3796 for ac_prog in cl.exe
3798 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3799 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3801 $as_echo_n "checking for $ac_word... " >&6; }
3802 if ${ac_cv_prog_CC+:} false; then :
3803 $as_echo_n "(cached) " >&6
3804 else
3805 if test -n "$CC"; then
3806 ac_cv_prog_CC="$CC" # Let the user override the test.
3807 else
3808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3809 for as_dir in $PATH
3811 IFS=$as_save_IFS
3812 test -z "$as_dir" && as_dir=.
3813 for ac_exec_ext in '' $ac_executable_extensions; do
3814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3815 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3817 break 2
3819 done
3820 done
3821 IFS=$as_save_IFS
3825 CC=$ac_cv_prog_CC
3826 if test -n "$CC"; then
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3828 $as_echo "$CC" >&6; }
3829 else
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3831 $as_echo "no" >&6; }
3835 test -n "$CC" && break
3836 done
3838 if test -z "$CC"; then
3839 ac_ct_CC=$CC
3840 for ac_prog in cl.exe
3842 # Extract the first word of "$ac_prog", so it can be a program name with args.
3843 set dummy $ac_prog; ac_word=$2
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3845 $as_echo_n "checking for $ac_word... " >&6; }
3846 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3847 $as_echo_n "(cached) " >&6
3848 else
3849 if test -n "$ac_ct_CC"; then
3850 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3851 else
3852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3853 for as_dir in $PATH
3855 IFS=$as_save_IFS
3856 test -z "$as_dir" && as_dir=.
3857 for ac_exec_ext in '' $ac_executable_extensions; do
3858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3859 ac_cv_prog_ac_ct_CC="$ac_prog"
3860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3861 break 2
3863 done
3864 done
3865 IFS=$as_save_IFS
3869 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3870 if test -n "$ac_ct_CC"; then
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3872 $as_echo "$ac_ct_CC" >&6; }
3873 else
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3875 $as_echo "no" >&6; }
3879 test -n "$ac_ct_CC" && break
3880 done
3882 if test "x$ac_ct_CC" = x; then
3883 CC=""
3884 else
3885 case $cross_compiling:$ac_tool_warned in
3886 yes:)
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3888 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3889 ac_tool_warned=yes ;;
3890 esac
3891 CC=$ac_ct_CC
3898 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3899 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3900 as_fn_error $? "no acceptable C compiler found in \$PATH
3901 See \`config.log' for more details" "$LINENO" 5; }
3903 # Provide some information about the compiler.
3904 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3905 set X $ac_compile
3906 ac_compiler=$2
3907 for ac_option in --version -v -V -qversion; do
3908 { { ac_try="$ac_compiler $ac_option >&5"
3909 case "(($ac_try" in
3910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3911 *) ac_try_echo=$ac_try;;
3912 esac
3913 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3914 $as_echo "$ac_try_echo"; } >&5
3915 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3916 ac_status=$?
3917 if test -s conftest.err; then
3918 sed '10a\
3919 ... rest of stderr output deleted ...
3920 10q' conftest.err >conftest.er1
3921 cat conftest.er1 >&5
3923 rm -f conftest.er1 conftest.err
3924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3925 test $ac_status = 0; }
3926 done
3928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3929 /* end confdefs.h. */
3932 main ()
3936 return 0;
3938 _ACEOF
3939 ac_clean_files_save=$ac_clean_files
3940 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3941 # Try to create an executable without -o first, disregard a.out.
3942 # It will help us diagnose broken compilers, and finding out an intuition
3943 # of exeext.
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3945 $as_echo_n "checking whether the C compiler works... " >&6; }
3946 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3948 # The possible output files:
3949 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3951 ac_rmfiles=
3952 for ac_file in $ac_files
3954 case $ac_file in
3955 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3956 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3957 esac
3958 done
3959 rm -f $ac_rmfiles
3961 if { { ac_try="$ac_link_default"
3962 case "(($ac_try" in
3963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3964 *) ac_try_echo=$ac_try;;
3965 esac
3966 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3967 $as_echo "$ac_try_echo"; } >&5
3968 (eval "$ac_link_default") 2>&5
3969 ac_status=$?
3970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3971 test $ac_status = 0; }; then :
3972 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3973 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3974 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3975 # so that the user can short-circuit this test for compilers unknown to
3976 # Autoconf.
3977 for ac_file in $ac_files ''
3979 test -f "$ac_file" || continue
3980 case $ac_file in
3981 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3983 [ab].out )
3984 # We found the default executable, but exeext='' is most
3985 # certainly right.
3986 break;;
3987 *.* )
3988 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3989 then :; else
3990 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3992 # We set ac_cv_exeext here because the later test for it is not
3993 # safe: cross compilers may not add the suffix if given an `-o'
3994 # argument, so we may need to know it at that point already.
3995 # Even if this section looks crufty: it has the advantage of
3996 # actually working.
3997 break;;
3999 break;;
4000 esac
4001 done
4002 test "$ac_cv_exeext" = no && ac_cv_exeext=
4004 else
4005 ac_file=''
4007 if test -z "$ac_file"; then :
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4009 $as_echo "no" >&6; }
4010 $as_echo "$as_me: failed program was:" >&5
4011 sed 's/^/| /' conftest.$ac_ext >&5
4013 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4014 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4015 as_fn_error 77 "C compiler cannot create executables
4016 See \`config.log' for more details" "$LINENO" 5; }
4017 else
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4019 $as_echo "yes" >&6; }
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4022 $as_echo_n "checking for C compiler default output file name... " >&6; }
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4024 $as_echo "$ac_file" >&6; }
4025 ac_exeext=$ac_cv_exeext
4027 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4028 ac_clean_files=$ac_clean_files_save
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4030 $as_echo_n "checking for suffix of executables... " >&6; }
4031 if { { ac_try="$ac_link"
4032 case "(($ac_try" in
4033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4034 *) ac_try_echo=$ac_try;;
4035 esac
4036 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4037 $as_echo "$ac_try_echo"; } >&5
4038 (eval "$ac_link") 2>&5
4039 ac_status=$?
4040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4041 test $ac_status = 0; }; then :
4042 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4043 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4044 # work properly (i.e., refer to `conftest.exe'), while it won't with
4045 # `rm'.
4046 for ac_file in conftest.exe conftest conftest.*; do
4047 test -f "$ac_file" || continue
4048 case $ac_file in
4049 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4050 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4051 break;;
4052 * ) break;;
4053 esac
4054 done
4055 else
4056 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4057 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4058 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4059 See \`config.log' for more details" "$LINENO" 5; }
4061 rm -f conftest conftest$ac_cv_exeext
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4063 $as_echo "$ac_cv_exeext" >&6; }
4065 rm -f conftest.$ac_ext
4066 EXEEXT=$ac_cv_exeext
4067 ac_exeext=$EXEEXT
4068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4069 /* end confdefs.h. */
4070 #include <stdio.h>
4072 main ()
4074 FILE *f = fopen ("conftest.out", "w");
4075 return ferror (f) || fclose (f) != 0;
4078 return 0;
4080 _ACEOF
4081 ac_clean_files="$ac_clean_files conftest.out"
4082 # Check that the compiler produces executables we can run. If not, either
4083 # the compiler is broken, or we cross compile.
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4085 $as_echo_n "checking whether we are cross compiling... " >&6; }
4086 if test "$cross_compiling" != yes; then
4087 { { ac_try="$ac_link"
4088 case "(($ac_try" in
4089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4090 *) ac_try_echo=$ac_try;;
4091 esac
4092 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4093 $as_echo "$ac_try_echo"; } >&5
4094 (eval "$ac_link") 2>&5
4095 ac_status=$?
4096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4097 test $ac_status = 0; }
4098 if { ac_try='./conftest$ac_cv_exeext'
4099 { { case "(($ac_try" in
4100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4101 *) ac_try_echo=$ac_try;;
4102 esac
4103 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4104 $as_echo "$ac_try_echo"; } >&5
4105 (eval "$ac_try") 2>&5
4106 ac_status=$?
4107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4108 test $ac_status = 0; }; }; then
4109 cross_compiling=no
4110 else
4111 if test "$cross_compiling" = maybe; then
4112 cross_compiling=yes
4113 else
4114 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4115 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4116 as_fn_error $? "cannot run C compiled programs.
4117 If you meant to cross compile, use \`--host'.
4118 See \`config.log' for more details" "$LINENO" 5; }
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4123 $as_echo "$cross_compiling" >&6; }
4125 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4126 ac_clean_files=$ac_clean_files_save
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4128 $as_echo_n "checking for suffix of object files... " >&6; }
4129 if ${ac_cv_objext+:} false; then :
4130 $as_echo_n "(cached) " >&6
4131 else
4132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4133 /* end confdefs.h. */
4136 main ()
4140 return 0;
4142 _ACEOF
4143 rm -f conftest.o conftest.obj
4144 if { { ac_try="$ac_compile"
4145 case "(($ac_try" in
4146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4147 *) ac_try_echo=$ac_try;;
4148 esac
4149 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4150 $as_echo "$ac_try_echo"; } >&5
4151 (eval "$ac_compile") 2>&5
4152 ac_status=$?
4153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4154 test $ac_status = 0; }; then :
4155 for ac_file in conftest.o conftest.obj conftest.*; do
4156 test -f "$ac_file" || continue;
4157 case $ac_file in
4158 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4159 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4160 break;;
4161 esac
4162 done
4163 else
4164 $as_echo "$as_me: failed program was:" >&5
4165 sed 's/^/| /' conftest.$ac_ext >&5
4167 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4168 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4169 as_fn_error $? "cannot compute suffix of object files: cannot compile
4170 See \`config.log' for more details" "$LINENO" 5; }
4172 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4175 $as_echo "$ac_cv_objext" >&6; }
4176 OBJEXT=$ac_cv_objext
4177 ac_objext=$OBJEXT
4178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4179 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4180 if ${ac_cv_c_compiler_gnu+:} false; then :
4181 $as_echo_n "(cached) " >&6
4182 else
4183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4184 /* end confdefs.h. */
4187 main ()
4189 #ifndef __GNUC__
4190 choke me
4191 #endif
4194 return 0;
4196 _ACEOF
4197 if ac_fn_c_try_compile "$LINENO"; then :
4198 ac_compiler_gnu=yes
4199 else
4200 ac_compiler_gnu=no
4202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4203 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4207 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4208 if test $ac_compiler_gnu = yes; then
4209 GCC=yes
4210 else
4211 GCC=
4213 ac_test_CFLAGS=${CFLAGS+set}
4214 ac_save_CFLAGS=$CFLAGS
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4216 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4217 if ${ac_cv_prog_cc_g+:} false; then :
4218 $as_echo_n "(cached) " >&6
4219 else
4220 ac_save_c_werror_flag=$ac_c_werror_flag
4221 ac_c_werror_flag=yes
4222 ac_cv_prog_cc_g=no
4223 CFLAGS="-g"
4224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4225 /* end confdefs.h. */
4228 main ()
4232 return 0;
4234 _ACEOF
4235 if ac_fn_c_try_compile "$LINENO"; then :
4236 ac_cv_prog_cc_g=yes
4237 else
4238 CFLAGS=""
4239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4240 /* end confdefs.h. */
4243 main ()
4247 return 0;
4249 _ACEOF
4250 if ac_fn_c_try_compile "$LINENO"; then :
4252 else
4253 ac_c_werror_flag=$ac_save_c_werror_flag
4254 CFLAGS="-g"
4255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4256 /* end confdefs.h. */
4259 main ()
4263 return 0;
4265 _ACEOF
4266 if ac_fn_c_try_compile "$LINENO"; then :
4267 ac_cv_prog_cc_g=yes
4269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4274 ac_c_werror_flag=$ac_save_c_werror_flag
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4277 $as_echo "$ac_cv_prog_cc_g" >&6; }
4278 if test "$ac_test_CFLAGS" = set; then
4279 CFLAGS=$ac_save_CFLAGS
4280 elif test $ac_cv_prog_cc_g = yes; then
4281 if test "$GCC" = yes; then
4282 CFLAGS="-g -O2"
4283 else
4284 CFLAGS="-g"
4286 else
4287 if test "$GCC" = yes; then
4288 CFLAGS="-O2"
4289 else
4290 CFLAGS=
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4294 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4295 if ${ac_cv_prog_cc_c89+:} false; then :
4296 $as_echo_n "(cached) " >&6
4297 else
4298 ac_cv_prog_cc_c89=no
4299 ac_save_CC=$CC
4300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4301 /* end confdefs.h. */
4302 #include <stdarg.h>
4303 #include <stdio.h>
4304 struct stat;
4305 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4306 struct buf { int x; };
4307 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4308 static char *e (p, i)
4309 char **p;
4310 int i;
4312 return p[i];
4314 static char *f (char * (*g) (char **, int), char **p, ...)
4316 char *s;
4317 va_list v;
4318 va_start (v,p);
4319 s = g (p, va_arg (v,int));
4320 va_end (v);
4321 return s;
4324 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4325 function prototypes and stuff, but not '\xHH' hex character constants.
4326 These don't provoke an error unfortunately, instead are silently treated
4327 as 'x'. The following induces an error, until -std is added to get
4328 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4329 array size at least. It's necessary to write '\x00'==0 to get something
4330 that's true only with -std. */
4331 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4333 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4334 inside strings and character constants. */
4335 #define FOO(x) 'x'
4336 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4338 int test (int i, double x);
4339 struct s1 {int (*f) (int a);};
4340 struct s2 {int (*f) (double a);};
4341 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4342 int argc;
4343 char **argv;
4345 main ()
4347 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4349 return 0;
4351 _ACEOF
4352 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4353 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4355 CC="$ac_save_CC $ac_arg"
4356 if ac_fn_c_try_compile "$LINENO"; then :
4357 ac_cv_prog_cc_c89=$ac_arg
4359 rm -f core conftest.err conftest.$ac_objext
4360 test "x$ac_cv_prog_cc_c89" != "xno" && break
4361 done
4362 rm -f conftest.$ac_ext
4363 CC=$ac_save_CC
4366 # AC_CACHE_VAL
4367 case "x$ac_cv_prog_cc_c89" in
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4370 $as_echo "none needed" >&6; } ;;
4371 xno)
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4373 $as_echo "unsupported" >&6; } ;;
4375 CC="$CC $ac_cv_prog_cc_c89"
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4377 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4378 esac
4379 if test "x$ac_cv_prog_cc_c89" != xno; then :
4383 ac_ext=c
4384 ac_cpp='$CPP $CPPFLAGS'
4385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4389 ac_ext=c
4390 ac_cpp='$CPP $CPPFLAGS'
4391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4395 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4396 if ${am_cv_prog_cc_c_o+:} false; then :
4397 $as_echo_n "(cached) " >&6
4398 else
4399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4400 /* end confdefs.h. */
4403 main ()
4407 return 0;
4409 _ACEOF
4410 # Make sure it works both with $CC and with simple cc.
4411 # Following AC_PROG_CC_C_O, we do the test twice because some
4412 # compilers refuse to overwrite an existing .o file with -o,
4413 # though they will create one.
4414 am_cv_prog_cc_c_o=yes
4415 for am_i in 1 2; do
4416 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4417 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4418 ac_status=$?
4419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4420 (exit $ac_status); } \
4421 && test -f conftest2.$ac_objext; then
4422 : OK
4423 else
4424 am_cv_prog_cc_c_o=no
4425 break
4427 done
4428 rm -f core conftest*
4429 unset am_i
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4432 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4433 if test "$am_cv_prog_cc_c_o" != yes; then
4434 # Losing compiler, so override with the script.
4435 # FIXME: It is wrong to rewrite CC.
4436 # But if we don't then we get into trouble of one sort or another.
4437 # A longer-term fix would be to have automake use am__CC in this case,
4438 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4439 CC="$am_aux_dir/compile $CC"
4441 ac_ext=c
4442 ac_cpp='$CPP $CPPFLAGS'
4443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4448 depcc="$CC" am_compiler_list=
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4451 $as_echo_n "checking dependency style of $depcc... " >&6; }
4452 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4453 $as_echo_n "(cached) " >&6
4454 else
4455 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4456 # We make a subdir and do the tests there. Otherwise we can end up
4457 # making bogus files that we don't know about and never remove. For
4458 # instance it was reported that on HP-UX the gcc test will end up
4459 # making a dummy file named 'D' -- because '-MD' means "put the output
4460 # in D".
4461 rm -rf conftest.dir
4462 mkdir conftest.dir
4463 # Copy depcomp to subdir because otherwise we won't find it if we're
4464 # using a relative directory.
4465 cp "$am_depcomp" conftest.dir
4466 cd conftest.dir
4467 # We will build objects and dependencies in a subdirectory because
4468 # it helps to detect inapplicable dependency modes. For instance
4469 # both Tru64's cc and ICC support -MD to output dependencies as a
4470 # side effect of compilation, but ICC will put the dependencies in
4471 # the current directory while Tru64 will put them in the object
4472 # directory.
4473 mkdir sub
4475 am_cv_CC_dependencies_compiler_type=none
4476 if test "$am_compiler_list" = ""; then
4477 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4479 am__universal=false
4480 case " $depcc " in #(
4481 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4482 esac
4484 for depmode in $am_compiler_list; do
4485 # Setup a source with many dependencies, because some compilers
4486 # like to wrap large dependency lists on column 80 (with \), and
4487 # we should not choose a depcomp mode which is confused by this.
4489 # We need to recreate these files for each test, as the compiler may
4490 # overwrite some of them when testing with obscure command lines.
4491 # This happens at least with the AIX C compiler.
4492 : > sub/conftest.c
4493 for i in 1 2 3 4 5 6; do
4494 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4495 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4496 # Solaris 10 /bin/sh.
4497 echo '/* dummy */' > sub/conftst$i.h
4498 done
4499 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4501 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4502 # mode. It turns out that the SunPro C++ compiler does not properly
4503 # handle '-M -o', and we need to detect this. Also, some Intel
4504 # versions had trouble with output in subdirs.
4505 am__obj=sub/conftest.${OBJEXT-o}
4506 am__minus_obj="-o $am__obj"
4507 case $depmode in
4508 gcc)
4509 # This depmode causes a compiler race in universal mode.
4510 test "$am__universal" = false || continue
4512 nosideeffect)
4513 # After this tag, mechanisms are not by side-effect, so they'll
4514 # only be used when explicitly requested.
4515 if test "x$enable_dependency_tracking" = xyes; then
4516 continue
4517 else
4518 break
4521 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4522 # This compiler won't grok '-c -o', but also, the minuso test has
4523 # not run yet. These depmodes are late enough in the game, and
4524 # so weak that their functioning should not be impacted.
4525 am__obj=conftest.${OBJEXT-o}
4526 am__minus_obj=
4528 none) break ;;
4529 esac
4530 if depmode=$depmode \
4531 source=sub/conftest.c object=$am__obj \
4532 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4533 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4534 >/dev/null 2>conftest.err &&
4535 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4536 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4537 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4538 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4539 # icc doesn't choke on unknown options, it will just issue warnings
4540 # or remarks (even with -Werror). So we grep stderr for any message
4541 # that says an option was ignored or not supported.
4542 # When given -MP, icc 7.0 and 7.1 complain thusly:
4543 # icc: Command line warning: ignoring option '-M'; no argument required
4544 # The diagnosis changed in icc 8.0:
4545 # icc: Command line remark: option '-MP' not supported
4546 if (grep 'ignoring option' conftest.err ||
4547 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4548 am_cv_CC_dependencies_compiler_type=$depmode
4549 break
4552 done
4554 cd ..
4555 rm -rf conftest.dir
4556 else
4557 am_cv_CC_dependencies_compiler_type=none
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4562 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4563 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4566 test "x$enable_dependency_tracking" != xno \
4567 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4568 am__fastdepCC_TRUE=
4569 am__fastdepCC_FALSE='#'
4570 else
4571 am__fastdepCC_TRUE='#'
4572 am__fastdepCC_FALSE=
4577 ac_ext=c
4578 ac_cpp='$CPP $CPPFLAGS'
4579 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4580 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4581 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4583 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4584 # On Suns, sometimes $CPP names a directory.
4585 if test -n "$CPP" && test -d "$CPP"; then
4586 CPP=
4588 if test -z "$CPP"; then
4589 if ${ac_cv_prog_CPP+:} false; then :
4590 $as_echo_n "(cached) " >&6
4591 else
4592 # Double quotes because CPP needs to be expanded
4593 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4595 ac_preproc_ok=false
4596 for ac_c_preproc_warn_flag in '' yes
4598 # Use a header file that comes with gcc, so configuring glibc
4599 # with a fresh cross-compiler works.
4600 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4601 # <limits.h> exists even on freestanding compilers.
4602 # On the NeXT, cc -E runs the code through the compiler's parser,
4603 # not just through cpp. "Syntax error" is here to catch this case.
4604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4605 /* end confdefs.h. */
4606 #ifdef __STDC__
4607 # include <limits.h>
4608 #else
4609 # include <assert.h>
4610 #endif
4611 Syntax error
4612 _ACEOF
4613 if ac_fn_c_try_cpp "$LINENO"; then :
4615 else
4616 # Broken: fails on valid input.
4617 continue
4619 rm -f conftest.err conftest.i conftest.$ac_ext
4621 # OK, works on sane cases. Now check whether nonexistent headers
4622 # can be detected and how.
4623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4624 /* end confdefs.h. */
4625 #include <ac_nonexistent.h>
4626 _ACEOF
4627 if ac_fn_c_try_cpp "$LINENO"; then :
4628 # Broken: success on invalid input.
4629 continue
4630 else
4631 # Passes both tests.
4632 ac_preproc_ok=:
4633 break
4635 rm -f conftest.err conftest.i conftest.$ac_ext
4637 done
4638 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4639 rm -f conftest.i conftest.err conftest.$ac_ext
4640 if $ac_preproc_ok; then :
4641 break
4644 done
4645 ac_cv_prog_CPP=$CPP
4648 CPP=$ac_cv_prog_CPP
4649 else
4650 ac_cv_prog_CPP=$CPP
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4653 $as_echo "$CPP" >&6; }
4654 ac_preproc_ok=false
4655 for ac_c_preproc_warn_flag in '' yes
4657 # Use a header file that comes with gcc, so configuring glibc
4658 # with a fresh cross-compiler works.
4659 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4660 # <limits.h> exists even on freestanding compilers.
4661 # On the NeXT, cc -E runs the code through the compiler's parser,
4662 # not just through cpp. "Syntax error" is here to catch this case.
4663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4664 /* end confdefs.h. */
4665 #ifdef __STDC__
4666 # include <limits.h>
4667 #else
4668 # include <assert.h>
4669 #endif
4670 Syntax error
4671 _ACEOF
4672 if ac_fn_c_try_cpp "$LINENO"; then :
4674 else
4675 # Broken: fails on valid input.
4676 continue
4678 rm -f conftest.err conftest.i conftest.$ac_ext
4680 # OK, works on sane cases. Now check whether nonexistent headers
4681 # can be detected and how.
4682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4683 /* end confdefs.h. */
4684 #include <ac_nonexistent.h>
4685 _ACEOF
4686 if ac_fn_c_try_cpp "$LINENO"; then :
4687 # Broken: success on invalid input.
4688 continue
4689 else
4690 # Passes both tests.
4691 ac_preproc_ok=:
4692 break
4694 rm -f conftest.err conftest.i conftest.$ac_ext
4696 done
4697 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4698 rm -f conftest.i conftest.err conftest.$ac_ext
4699 if $ac_preproc_ok; then :
4701 else
4702 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4703 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4704 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4705 See \`config.log' for more details" "$LINENO" 5; }
4708 ac_ext=c
4709 ac_cpp='$CPP $CPPFLAGS'
4710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4711 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4716 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4717 if ${ac_cv_path_GREP+:} false; then :
4718 $as_echo_n "(cached) " >&6
4719 else
4720 if test -z "$GREP"; then
4721 ac_path_GREP_found=false
4722 # Loop through the user's path and test for each of PROGNAME-LIST
4723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4724 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4726 IFS=$as_save_IFS
4727 test -z "$as_dir" && as_dir=.
4728 for ac_prog in grep ggrep; do
4729 for ac_exec_ext in '' $ac_executable_extensions; do
4730 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4731 as_fn_executable_p "$ac_path_GREP" || continue
4732 # Check for GNU ac_path_GREP and select it if it is found.
4733 # Check for GNU $ac_path_GREP
4734 case `"$ac_path_GREP" --version 2>&1` in
4735 *GNU*)
4736 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4738 ac_count=0
4739 $as_echo_n 0123456789 >"conftest.in"
4740 while :
4742 cat "conftest.in" "conftest.in" >"conftest.tmp"
4743 mv "conftest.tmp" "conftest.in"
4744 cp "conftest.in" "conftest.nl"
4745 $as_echo 'GREP' >> "conftest.nl"
4746 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4747 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4748 as_fn_arith $ac_count + 1 && ac_count=$as_val
4749 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4750 # Best one so far, save it but keep looking for a better one
4751 ac_cv_path_GREP="$ac_path_GREP"
4752 ac_path_GREP_max=$ac_count
4754 # 10*(2^10) chars as input seems more than enough
4755 test $ac_count -gt 10 && break
4756 done
4757 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4758 esac
4760 $ac_path_GREP_found && break 3
4761 done
4762 done
4763 done
4764 IFS=$as_save_IFS
4765 if test -z "$ac_cv_path_GREP"; then
4766 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4768 else
4769 ac_cv_path_GREP=$GREP
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4774 $as_echo "$ac_cv_path_GREP" >&6; }
4775 GREP="$ac_cv_path_GREP"
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4779 $as_echo_n "checking for egrep... " >&6; }
4780 if ${ac_cv_path_EGREP+:} false; then :
4781 $as_echo_n "(cached) " >&6
4782 else
4783 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4784 then ac_cv_path_EGREP="$GREP -E"
4785 else
4786 if test -z "$EGREP"; then
4787 ac_path_EGREP_found=false
4788 # Loop through the user's path and test for each of PROGNAME-LIST
4789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4790 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4792 IFS=$as_save_IFS
4793 test -z "$as_dir" && as_dir=.
4794 for ac_prog in egrep; do
4795 for ac_exec_ext in '' $ac_executable_extensions; do
4796 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4797 as_fn_executable_p "$ac_path_EGREP" || continue
4798 # Check for GNU ac_path_EGREP and select it if it is found.
4799 # Check for GNU $ac_path_EGREP
4800 case `"$ac_path_EGREP" --version 2>&1` in
4801 *GNU*)
4802 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4804 ac_count=0
4805 $as_echo_n 0123456789 >"conftest.in"
4806 while :
4808 cat "conftest.in" "conftest.in" >"conftest.tmp"
4809 mv "conftest.tmp" "conftest.in"
4810 cp "conftest.in" "conftest.nl"
4811 $as_echo 'EGREP' >> "conftest.nl"
4812 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4813 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4814 as_fn_arith $ac_count + 1 && ac_count=$as_val
4815 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4816 # Best one so far, save it but keep looking for a better one
4817 ac_cv_path_EGREP="$ac_path_EGREP"
4818 ac_path_EGREP_max=$ac_count
4820 # 10*(2^10) chars as input seems more than enough
4821 test $ac_count -gt 10 && break
4822 done
4823 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4824 esac
4826 $ac_path_EGREP_found && break 3
4827 done
4828 done
4829 done
4830 IFS=$as_save_IFS
4831 if test -z "$ac_cv_path_EGREP"; then
4832 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4834 else
4835 ac_cv_path_EGREP=$EGREP
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4841 $as_echo "$ac_cv_path_EGREP" >&6; }
4842 EGREP="$ac_cv_path_EGREP"
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4846 $as_echo_n "checking for ANSI C header files... " >&6; }
4847 if ${ac_cv_header_stdc+:} false; then :
4848 $as_echo_n "(cached) " >&6
4849 else
4850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4851 /* end confdefs.h. */
4852 #include <stdlib.h>
4853 #include <stdarg.h>
4854 #include <string.h>
4855 #include <float.h>
4858 main ()
4862 return 0;
4864 _ACEOF
4865 if ac_fn_c_try_compile "$LINENO"; then :
4866 ac_cv_header_stdc=yes
4867 else
4868 ac_cv_header_stdc=no
4870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4872 if test $ac_cv_header_stdc = yes; then
4873 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4875 /* end confdefs.h. */
4876 #include <string.h>
4878 _ACEOF
4879 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4880 $EGREP "memchr" >/dev/null 2>&1; then :
4882 else
4883 ac_cv_header_stdc=no
4885 rm -f conftest*
4889 if test $ac_cv_header_stdc = yes; then
4890 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4892 /* end confdefs.h. */
4893 #include <stdlib.h>
4895 _ACEOF
4896 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4897 $EGREP "free" >/dev/null 2>&1; then :
4899 else
4900 ac_cv_header_stdc=no
4902 rm -f conftest*
4906 if test $ac_cv_header_stdc = yes; then
4907 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4908 if test "$cross_compiling" = yes; then :
4910 else
4911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4912 /* end confdefs.h. */
4913 #include <ctype.h>
4914 #include <stdlib.h>
4915 #if ((' ' & 0x0FF) == 0x020)
4916 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4917 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4918 #else
4919 # define ISLOWER(c) \
4920 (('a' <= (c) && (c) <= 'i') \
4921 || ('j' <= (c) && (c) <= 'r') \
4922 || ('s' <= (c) && (c) <= 'z'))
4923 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4924 #endif
4926 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4928 main ()
4930 int i;
4931 for (i = 0; i < 256; i++)
4932 if (XOR (islower (i), ISLOWER (i))
4933 || toupper (i) != TOUPPER (i))
4934 return 2;
4935 return 0;
4937 _ACEOF
4938 if ac_fn_c_try_run "$LINENO"; then :
4940 else
4941 ac_cv_header_stdc=no
4943 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4944 conftest.$ac_objext conftest.beam conftest.$ac_ext
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4950 $as_echo "$ac_cv_header_stdc" >&6; }
4951 if test $ac_cv_header_stdc = yes; then
4953 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4957 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4958 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4959 inttypes.h stdint.h unistd.h
4960 do :
4961 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4962 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4964 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4965 cat >>confdefs.h <<_ACEOF
4966 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4967 _ACEOF
4971 done
4975 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4976 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4977 MINIX=yes
4978 else
4979 MINIX=
4983 if test "$MINIX" = yes; then
4985 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4988 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4991 $as_echo "#define _MINIX 1" >>confdefs.h
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4997 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4998 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4999 $as_echo_n "(cached) " >&6
5000 else
5001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5002 /* end confdefs.h. */
5004 # define __EXTENSIONS__ 1
5005 $ac_includes_default
5007 main ()
5011 return 0;
5013 _ACEOF
5014 if ac_fn_c_try_compile "$LINENO"; then :
5015 ac_cv_safe_to_define___extensions__=yes
5016 else
5017 ac_cv_safe_to_define___extensions__=no
5019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5022 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5023 test $ac_cv_safe_to_define___extensions__ = yes &&
5024 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5026 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5028 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5030 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5032 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5036 # Check whether --enable-lzo was given.
5037 if test "${enable_lzo+set}" = set; then :
5038 enableval=$enable_lzo;
5039 else
5040 enable_lzo="yes"
5045 # Check whether --enable-lzo-stub was given.
5046 if test "${enable_lzo_stub+set}" = set; then :
5047 enableval=$enable_lzo_stub;
5048 else
5049 enable_lzo_stub="no"
5054 # Check whether --enable-crypto was given.
5055 if test "${enable_crypto+set}" = set; then :
5056 enableval=$enable_crypto;
5057 else
5058 enable_crypto="yes"
5063 # Check whether --enable-ofb-cfb was given.
5064 if test "${enable_ofb_cfb+set}" = set; then :
5065 enableval=$enable_ofb_cfb;
5066 else
5067 enable_crypto_ofb_cfb="yes"
5072 # Check whether --enable-ssl was given.
5073 if test "${enable_ssl+set}" = set; then :
5074 enableval=$enable_ssl;
5075 else
5076 enable_ssl="yes"
5081 # Check whether --enable-x509-alt-username was given.
5082 if test "${enable_x509_alt_username+set}" = set; then :
5083 enableval=$enable_x509_alt_username;
5084 else
5085 enable_x509_alt_username="no"
5090 # Check whether --enable-multi was given.
5091 if test "${enable_multi+set}" = set; then :
5092 enableval=$enable_multi;
5093 else
5094 enable_multi="yes"
5099 # Check whether --enable-server was given.
5100 if test "${enable_server+set}" = set; then :
5101 enableval=$enable_server;
5102 else
5103 enable_server="yes"
5108 # Check whether --enable-plugins was given.
5109 if test "${enable_plugins+set}" = set; then :
5110 enableval=$enable_plugins;
5111 else
5112 enable_plugins="yes"
5117 # Check whether --enable-management was given.
5118 if test "${enable_management+set}" = set; then :
5119 enableval=$enable_management;
5120 else
5121 enable_management="yes"
5126 # Check whether --enable-pkcs11 was given.
5127 if test "${enable_pkcs11+set}" = set; then :
5128 enableval=$enable_pkcs11;
5129 else
5130 enable_pkcs11="no"
5135 # Check whether --enable-socks was given.
5136 if test "${enable_socks+set}" = set; then :
5137 enableval=$enable_socks;
5138 else
5139 enable_socks="yes"
5144 # Check whether --enable-http-proxy was given.
5145 if test "${enable_http_proxy+set}" = set; then :
5146 enableval=$enable_http_proxy;
5147 else
5148 enable_http_proxy="yes"
5153 # Check whether --enable-fragment was given.
5154 if test "${enable_fragment+set}" = set; then :
5155 enableval=$enable_fragment;
5156 else
5157 enable_fragment="yes"
5162 # Check whether --enable-multihome was given.
5163 if test "${enable_multihome+set}" = set; then :
5164 enableval=$enable_multihome;
5165 else
5166 enable_multihome="yes"
5171 # Check whether --enable-port-share was given.
5172 if test "${enable_port_share+set}" = set; then :
5173 enableval=$enable_port_share;
5174 else
5175 enable_port_share="yes"
5180 # Check whether --enable-debug was given.
5181 if test "${enable_debug+set}" = set; then :
5182 enableval=$enable_debug;
5183 else
5184 enable_debug="yes"
5189 # Check whether --enable-small was given.
5190 if test "${enable_small+set}" = set; then :
5191 enableval=$enable_small;
5192 else
5193 enable_small="no"
5198 # Check whether --enable-password-save was given.
5199 if test "${enable_password_save+set}" = set; then :
5200 enableval=$enable_password_save;
5201 else
5202 enable_password_save="no"
5207 # Check whether --enable-iproute2 was given.
5208 if test "${enable_iproute2+set}" = set; then :
5209 enableval=$enable_iproute2;
5210 else
5211 enable_iproute2="no"
5216 # Check whether --enable-def-auth was given.
5217 if test "${enable_def_auth+set}" = set; then :
5218 enableval=$enable_def_auth;
5219 else
5220 enable_def_auth="yes"
5225 # Check whether --enable-pf was given.
5226 if test "${enable_pf+set}" = set; then :
5227 enableval=$enable_pf;
5228 else
5229 enable_pf="yes"
5234 # Check whether --enable-plugin-auth-pam was given.
5235 if test "${enable_plugin_auth_pam+set}" = set; then :
5236 enableval=$enable_plugin_auth_pam;
5237 else
5239 case "$host" in
5240 *-*-openbsd*) enable_plugin_auth_pam="no";;
5241 *-mingw*) enable_plugin_auth_pam="no";;
5242 *) enable_plugin_auth_pam="yes";;
5243 esac
5249 # Check whether --enable-plugin-down-root was given.
5250 if test "${enable_plugin_down_root+set}" = set; then :
5251 enableval=$enable_plugin_down_root;
5252 else
5254 case "$host" in
5255 *-mingw*) enable_plugin_down_root="no";;
5256 *) enable_plugin_down_root="yes";;
5257 esac
5263 # Check whether --enable-pam-dlopen was given.
5264 if test "${enable_pam_dlopen+set}" = set; then :
5265 enableval=$enable_pam_dlopen;
5266 else
5267 enable_pam_dlopen="no"
5272 # Check whether --enable-strict was given.
5273 if test "${enable_strict+set}" = set; then :
5274 enableval=$enable_strict;
5275 else
5276 enable_strict="no"
5281 # Check whether --enable-pedantic was given.
5282 if test "${enable_pedantic+set}" = set; then :
5283 enableval=$enable_pedantic;
5284 else
5285 enable_pedantic="no"
5290 # Check whether --enable-strict-options was given.
5291 if test "${enable_strict_options+set}" = set; then :
5292 enableval=$enable_strict_options;
5293 else
5294 enable_strict_options="no"
5299 # Check whether --enable-selinux was given.
5300 if test "${enable_selinux+set}" = set; then :
5301 enableval=$enable_selinux;
5302 else
5303 enable_selinux="no"
5308 # Check whether --enable-systemd was given.
5309 if test "${enable_systemd+set}" = set; then :
5310 enableval=$enable_systemd;
5311 else
5312 enable_systemd="no"
5318 # Check whether --with-special-build was given.
5319 if test "${with_special_build+set}" = set; then :
5320 withval=$with_special_build; test -n "${withval}" &&
5321 cat >>confdefs.h <<_ACEOF
5322 #define CONFIGURE_SPECIAL_BUILD "${withval}"
5323 _ACEOF
5330 # Check whether --with-mem-check was given.
5331 if test "${with_mem_check+set}" = set; then :
5332 withval=$with_mem_check;
5333 case "${withval}" in
5334 dmalloc|valgrind|ssl|no) ;;
5335 *) as_fn_error $? "bad value ${withval} for --mem-check" "$LINENO" 5 ;;
5336 esac
5338 else
5339 with_mem_check="no"
5345 # Check whether --with-crypto-library was given.
5346 if test "${with_crypto_library+set}" = set; then :
5347 withval=$with_crypto_library;
5348 case "${withval}" in
5349 openssl|polarssl) ;;
5350 *) as_fn_error $? "bad value ${withval} for --with-crypto-library" "$LINENO" 5 ;;
5351 esac
5353 else
5354 with_crypto_library="openssl"
5360 # Check whether --with-plugindir was given.
5361 if test "${with_plugindir+set}" = set; then :
5362 withval=$with_plugindir;
5363 else
5364 with_plugindir="\$(libdir)/openvpn/plugins"
5371 cat >>confdefs.h <<_ACEOF
5372 #define TARGET_ALIAS "${host}"
5373 _ACEOF
5375 case "$host" in
5376 *-*-linux*)
5378 $as_echo "#define TARGET_LINUX 1" >>confdefs.h
5381 cat >>confdefs.h <<_ACEOF
5382 #define TARGET_PREFIX "L"
5383 _ACEOF
5386 *-*-solaris*)
5388 $as_echo "#define TARGET_SOLARIS 1" >>confdefs.h
5391 cat >>confdefs.h <<_ACEOF
5392 #define TARGET_PREFIX "S"
5393 _ACEOF
5396 *-*-openbsd*)
5398 $as_echo "#define TARGET_OPENBSD 1" >>confdefs.h
5401 cat >>confdefs.h <<_ACEOF
5402 #define TARGET_PREFIX "O"
5403 _ACEOF
5406 *-*-freebsd*)
5408 $as_echo "#define TARGET_FREEBSD 1" >>confdefs.h
5411 cat >>confdefs.h <<_ACEOF
5412 #define TARGET_PREFIX "F"
5413 _ACEOF
5416 *-*-netbsd*)
5418 $as_echo "#define TARGET_NETBSD 1" >>confdefs.h
5421 cat >>confdefs.h <<_ACEOF
5422 #define TARGET_PREFIX "N"
5423 _ACEOF
5426 *-*-darwin*)
5428 $as_echo "#define TARGET_DARWIN 1" >>confdefs.h
5431 cat >>confdefs.h <<_ACEOF
5432 #define TARGET_PREFIX "M"
5433 _ACEOF
5435 have_tap_header="yes"
5436 CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
5438 *-mingw*)
5440 $as_echo "#define TARGET_WIN32 1" >>confdefs.h
5443 cat >>confdefs.h <<_ACEOF
5444 #define TARGET_PREFIX "W"
5445 _ACEOF
5447 CPPFLAGS="${CPPFLAGS} -DWIN32_LEAN_AND_MEAN"
5448 CPPFLAGS="${CPPFLAGS} -DNTDDI_VERSION=NTDDI_WINXP -D_WIN32_WINNT=_WIN32_WINNT_WINXP"
5449 WIN32=yes
5451 *-*-dragonfly*)
5453 $as_echo "#define TARGET_DRAGONFLY 1" >>confdefs.h
5456 cat >>confdefs.h <<_ACEOF
5457 #define TARGET_PREFIX "D"
5458 _ACEOF
5463 cat >>confdefs.h <<_ACEOF
5464 #define TARGET_PREFIX "X"
5465 _ACEOF
5467 have_tap_header="yes"
5469 esac
5478 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5479 if test -n "$ac_tool_prefix"; then
5480 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5481 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5483 $as_echo_n "checking for $ac_word... " >&6; }
5484 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5485 $as_echo_n "(cached) " >&6
5486 else
5487 case $PKG_CONFIG in
5488 [\\/]* | ?:[\\/]*)
5489 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5493 for as_dir in $PATH
5495 IFS=$as_save_IFS
5496 test -z "$as_dir" && as_dir=.
5497 for ac_exec_ext in '' $ac_executable_extensions; do
5498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5499 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5501 break 2
5503 done
5504 done
5505 IFS=$as_save_IFS
5508 esac
5510 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5511 if test -n "$PKG_CONFIG"; then
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5513 $as_echo "$PKG_CONFIG" >&6; }
5514 else
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5516 $as_echo "no" >&6; }
5521 if test -z "$ac_cv_path_PKG_CONFIG"; then
5522 ac_pt_PKG_CONFIG=$PKG_CONFIG
5523 # Extract the first word of "pkg-config", so it can be a program name with args.
5524 set dummy pkg-config; ac_word=$2
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5526 $as_echo_n "checking for $ac_word... " >&6; }
5527 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5528 $as_echo_n "(cached) " >&6
5529 else
5530 case $ac_pt_PKG_CONFIG in
5531 [\\/]* | ?:[\\/]*)
5532 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5536 for as_dir in $PATH
5538 IFS=$as_save_IFS
5539 test -z "$as_dir" && as_dir=.
5540 for ac_exec_ext in '' $ac_executable_extensions; do
5541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5542 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5544 break 2
5546 done
5547 done
5548 IFS=$as_save_IFS
5551 esac
5553 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5554 if test -n "$ac_pt_PKG_CONFIG"; then
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5556 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5557 else
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5559 $as_echo "no" >&6; }
5562 if test "x$ac_pt_PKG_CONFIG" = x; then
5563 PKG_CONFIG=""
5564 else
5565 case $cross_compiling:$ac_tool_warned in
5566 yes:)
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5568 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5569 ac_tool_warned=yes ;;
5570 esac
5571 PKG_CONFIG=$ac_pt_PKG_CONFIG
5573 else
5574 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5578 if test -n "$PKG_CONFIG"; then
5579 _pkg_min_version=0.9.0
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5581 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5582 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5584 $as_echo "yes" >&6; }
5585 else
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5587 $as_echo "no" >&6; }
5588 PKG_CONFIG=""
5591 ac_ext=c
5592 ac_cpp='$CPP $CPPFLAGS'
5593 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5594 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5595 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5597 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5598 # On Suns, sometimes $CPP names a directory.
5599 if test -n "$CPP" && test -d "$CPP"; then
5600 CPP=
5602 if test -z "$CPP"; then
5603 if ${ac_cv_prog_CPP+:} false; then :
5604 $as_echo_n "(cached) " >&6
5605 else
5606 # Double quotes because CPP needs to be expanded
5607 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5609 ac_preproc_ok=false
5610 for ac_c_preproc_warn_flag in '' yes
5612 # Use a header file that comes with gcc, so configuring glibc
5613 # with a fresh cross-compiler works.
5614 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5615 # <limits.h> exists even on freestanding compilers.
5616 # On the NeXT, cc -E runs the code through the compiler's parser,
5617 # not just through cpp. "Syntax error" is here to catch this case.
5618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5619 /* end confdefs.h. */
5620 #ifdef __STDC__
5621 # include <limits.h>
5622 #else
5623 # include <assert.h>
5624 #endif
5625 Syntax error
5626 _ACEOF
5627 if ac_fn_c_try_cpp "$LINENO"; then :
5629 else
5630 # Broken: fails on valid input.
5631 continue
5633 rm -f conftest.err conftest.i conftest.$ac_ext
5635 # OK, works on sane cases. Now check whether nonexistent headers
5636 # can be detected and how.
5637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5638 /* end confdefs.h. */
5639 #include <ac_nonexistent.h>
5640 _ACEOF
5641 if ac_fn_c_try_cpp "$LINENO"; then :
5642 # Broken: success on invalid input.
5643 continue
5644 else
5645 # Passes both tests.
5646 ac_preproc_ok=:
5647 break
5649 rm -f conftest.err conftest.i conftest.$ac_ext
5651 done
5652 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5653 rm -f conftest.i conftest.err conftest.$ac_ext
5654 if $ac_preproc_ok; then :
5655 break
5658 done
5659 ac_cv_prog_CPP=$CPP
5662 CPP=$ac_cv_prog_CPP
5663 else
5664 ac_cv_prog_CPP=$CPP
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5667 $as_echo "$CPP" >&6; }
5668 ac_preproc_ok=false
5669 for ac_c_preproc_warn_flag in '' yes
5671 # Use a header file that comes with gcc, so configuring glibc
5672 # with a fresh cross-compiler works.
5673 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5674 # <limits.h> exists even on freestanding compilers.
5675 # On the NeXT, cc -E runs the code through the compiler's parser,
5676 # not just through cpp. "Syntax error" is here to catch this case.
5677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5678 /* end confdefs.h. */
5679 #ifdef __STDC__
5680 # include <limits.h>
5681 #else
5682 # include <assert.h>
5683 #endif
5684 Syntax error
5685 _ACEOF
5686 if ac_fn_c_try_cpp "$LINENO"; then :
5688 else
5689 # Broken: fails on valid input.
5690 continue
5692 rm -f conftest.err conftest.i conftest.$ac_ext
5694 # OK, works on sane cases. Now check whether nonexistent headers
5695 # can be detected and how.
5696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5697 /* end confdefs.h. */
5698 #include <ac_nonexistent.h>
5699 _ACEOF
5700 if ac_fn_c_try_cpp "$LINENO"; then :
5701 # Broken: success on invalid input.
5702 continue
5703 else
5704 # Passes both tests.
5705 ac_preproc_ok=:
5706 break
5708 rm -f conftest.err conftest.i conftest.$ac_ext
5710 done
5711 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5712 rm -f conftest.i conftest.err conftest.$ac_ext
5713 if $ac_preproc_ok; then :
5715 else
5716 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5717 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5718 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5719 See \`config.log' for more details" "$LINENO" 5; }
5722 ac_ext=c
5723 ac_cpp='$CPP $CPPFLAGS'
5724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5730 $as_echo_n "checking whether ln -s works... " >&6; }
5731 LN_S=$as_ln_s
5732 if test "$LN_S" = "ln -s"; then
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5734 $as_echo "yes" >&6; }
5735 else
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5737 $as_echo "no, using $LN_S" >&6; }
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5741 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5742 if ${ac_cv_path_SED+:} false; then :
5743 $as_echo_n "(cached) " >&6
5744 else
5745 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5746 for ac_i in 1 2 3 4 5 6 7; do
5747 ac_script="$ac_script$as_nl$ac_script"
5748 done
5749 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5750 { ac_script=; unset ac_script;}
5751 if test -z "$SED"; then
5752 ac_path_SED_found=false
5753 # Loop through the user's path and test for each of PROGNAME-LIST
5754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5755 for as_dir in $PATH
5757 IFS=$as_save_IFS
5758 test -z "$as_dir" && as_dir=.
5759 for ac_prog in sed gsed; do
5760 for ac_exec_ext in '' $ac_executable_extensions; do
5761 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5762 as_fn_executable_p "$ac_path_SED" || continue
5763 # Check for GNU ac_path_SED and select it if it is found.
5764 # Check for GNU $ac_path_SED
5765 case `"$ac_path_SED" --version 2>&1` in
5766 *GNU*)
5767 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5769 ac_count=0
5770 $as_echo_n 0123456789 >"conftest.in"
5771 while :
5773 cat "conftest.in" "conftest.in" >"conftest.tmp"
5774 mv "conftest.tmp" "conftest.in"
5775 cp "conftest.in" "conftest.nl"
5776 $as_echo '' >> "conftest.nl"
5777 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5778 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5779 as_fn_arith $ac_count + 1 && ac_count=$as_val
5780 if test $ac_count -gt ${ac_path_SED_max-0}; then
5781 # Best one so far, save it but keep looking for a better one
5782 ac_cv_path_SED="$ac_path_SED"
5783 ac_path_SED_max=$ac_count
5785 # 10*(2^10) chars as input seems more than enough
5786 test $ac_count -gt 10 && break
5787 done
5788 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5789 esac
5791 $ac_path_SED_found && break 3
5792 done
5793 done
5794 done
5795 IFS=$as_save_IFS
5796 if test -z "$ac_cv_path_SED"; then
5797 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5799 else
5800 ac_cv_path_SED=$SED
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5805 $as_echo "$ac_cv_path_SED" >&6; }
5806 SED="$ac_cv_path_SED"
5807 rm -f conftest.sed
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5810 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5811 set x ${MAKE-make}
5812 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5813 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5814 $as_echo_n "(cached) " >&6
5815 else
5816 cat >conftest.make <<\_ACEOF
5817 SHELL = /bin/sh
5818 all:
5819 @echo '@@@%%%=$(MAKE)=@@@%%%'
5820 _ACEOF
5821 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5822 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5823 *@@@%%%=?*=@@@%%%*)
5824 eval ac_cv_prog_make_${ac_make}_set=yes;;
5826 eval ac_cv_prog_make_${ac_make}_set=no;;
5827 esac
5828 rm -f conftest.make
5830 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5832 $as_echo "yes" >&6; }
5833 SET_MAKE=
5834 else
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5836 $as_echo "no" >&6; }
5837 SET_MAKE="MAKE=${MAKE-make}"
5844 # tests
5848 for ac_prog in ifconfig
5850 # Extract the first word of "$ac_prog", so it can be a program name with args.
5851 set dummy $ac_prog; ac_word=$2
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5853 $as_echo_n "checking for $ac_word... " >&6; }
5854 if ${ac_cv_path_IFCONFIG+:} false; then :
5855 $as_echo_n "(cached) " >&6
5856 else
5857 case $IFCONFIG in
5858 [\\/]* | ?:[\\/]*)
5859 ac_cv_path_IFCONFIG="$IFCONFIG" # Let the user override the test with a path.
5862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5863 as_dummy="$PATH:/usr/local/sbin:/usr/sbin:/sbin"
5864 for as_dir in $as_dummy
5866 IFS=$as_save_IFS
5867 test -z "$as_dir" && as_dir=.
5868 for ac_exec_ext in '' $ac_executable_extensions; do
5869 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5870 ac_cv_path_IFCONFIG="$as_dir/$ac_word$ac_exec_ext"
5871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5872 break 2
5874 done
5875 done
5876 IFS=$as_save_IFS
5879 esac
5881 IFCONFIG=$ac_cv_path_IFCONFIG
5882 if test -n "$IFCONFIG"; then
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IFCONFIG" >&5
5884 $as_echo "$IFCONFIG" >&6; }
5885 else
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5887 $as_echo "no" >&6; }
5891 test -n "$IFCONFIG" && break
5892 done
5894 for ac_prog in route
5896 # Extract the first word of "$ac_prog", so it can be a program name with args.
5897 set dummy $ac_prog; ac_word=$2
5898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5899 $as_echo_n "checking for $ac_word... " >&6; }
5900 if ${ac_cv_path_ROUTE+:} false; then :
5901 $as_echo_n "(cached) " >&6
5902 else
5903 case $ROUTE in
5904 [\\/]* | ?:[\\/]*)
5905 ac_cv_path_ROUTE="$ROUTE" # Let the user override the test with a path.
5908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5909 as_dummy="$PATH:/usr/local/sbin:/usr/sbin:/sbin"
5910 for as_dir in $as_dummy
5912 IFS=$as_save_IFS
5913 test -z "$as_dir" && as_dir=.
5914 for ac_exec_ext in '' $ac_executable_extensions; do
5915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5916 ac_cv_path_ROUTE="$as_dir/$ac_word$ac_exec_ext"
5917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5918 break 2
5920 done
5921 done
5922 IFS=$as_save_IFS
5925 esac
5927 ROUTE=$ac_cv_path_ROUTE
5928 if test -n "$ROUTE"; then
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ROUTE" >&5
5930 $as_echo "$ROUTE" >&6; }
5931 else
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5933 $as_echo "no" >&6; }
5937 test -n "$ROUTE" && break
5938 done
5940 for ac_prog in ip
5942 # Extract the first word of "$ac_prog", so it can be a program name with args.
5943 set dummy $ac_prog; ac_word=$2
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5945 $as_echo_n "checking for $ac_word... " >&6; }
5946 if ${ac_cv_path_IPROUTE+:} false; then :
5947 $as_echo_n "(cached) " >&6
5948 else
5949 case $IPROUTE in
5950 [\\/]* | ?:[\\/]*)
5951 ac_cv_path_IPROUTE="$IPROUTE" # Let the user override the test with a path.
5954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5955 as_dummy="$PATH:/usr/local/sbin:/usr/sbin:/sbin"
5956 for as_dir in $as_dummy
5958 IFS=$as_save_IFS
5959 test -z "$as_dir" && as_dir=.
5960 for ac_exec_ext in '' $ac_executable_extensions; do
5961 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5962 ac_cv_path_IPROUTE="$as_dir/$ac_word$ac_exec_ext"
5963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5964 break 2
5966 done
5967 done
5968 IFS=$as_save_IFS
5971 esac
5973 IPROUTE=$ac_cv_path_IPROUTE
5974 if test -n "$IPROUTE"; then
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPROUTE" >&5
5976 $as_echo "$IPROUTE" >&6; }
5977 else
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5979 $as_echo "no" >&6; }
5983 test -n "$IPROUTE" && break
5984 done
5986 for ac_prog in systemd-ask-password
5988 # Extract the first word of "$ac_prog", so it can be a program name with args.
5989 set dummy $ac_prog; ac_word=$2
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5991 $as_echo_n "checking for $ac_word... " >&6; }
5992 if ${ac_cv_path_SYSTEMD_ASK_PASSWORD+:} false; then :
5993 $as_echo_n "(cached) " >&6
5994 else
5995 case $SYSTEMD_ASK_PASSWORD in
5996 [\\/]* | ?:[\\/]*)
5997 ac_cv_path_SYSTEMD_ASK_PASSWORD="$SYSTEMD_ASK_PASSWORD" # Let the user override the test with a path.
6000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6001 as_dummy="$PATH:/usr/local/bin:/usr/bin:/bin"
6002 for as_dir in $as_dummy
6004 IFS=$as_save_IFS
6005 test -z "$as_dir" && as_dir=.
6006 for ac_exec_ext in '' $ac_executable_extensions; do
6007 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6008 ac_cv_path_SYSTEMD_ASK_PASSWORD="$as_dir/$ac_word$ac_exec_ext"
6009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6010 break 2
6012 done
6013 done
6014 IFS=$as_save_IFS
6017 esac
6019 SYSTEMD_ASK_PASSWORD=$ac_cv_path_SYSTEMD_ASK_PASSWORD
6020 if test -n "$SYSTEMD_ASK_PASSWORD"; then
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSTEMD_ASK_PASSWORD" >&5
6022 $as_echo "$SYSTEMD_ASK_PASSWORD" >&6; }
6023 else
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6025 $as_echo "no" >&6; }
6029 test -n "$SYSTEMD_ASK_PASSWORD" && break
6030 done
6032 for ac_prog in netstat
6034 # Extract the first word of "$ac_prog", so it can be a program name with args.
6035 set dummy $ac_prog; ac_word=$2
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6037 $as_echo_n "checking for $ac_word... " >&6; }
6038 if ${ac_cv_prog_NETSTAT+:} false; then :
6039 $as_echo_n "(cached) " >&6
6040 else
6041 if test -n "$NETSTAT"; then
6042 ac_cv_prog_NETSTAT="$NETSTAT" # Let the user override the test.
6043 else
6044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6045 as_dummy="$PATH:/usr/local/sbin:/usr/sbin:/sbin:/etc"
6046 for as_dir in $as_dummy
6048 IFS=$as_save_IFS
6049 test -z "$as_dir" && as_dir=.
6050 for ac_exec_ext in '' $ac_executable_extensions; do
6051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6052 ac_cv_prog_NETSTAT="$ac_prog"
6053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6054 break 2
6056 done
6057 done
6058 IFS=$as_save_IFS
6062 NETSTAT=$ac_cv_prog_NETSTAT
6063 if test -n "$NETSTAT"; then
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NETSTAT" >&5
6065 $as_echo "$NETSTAT" >&6; }
6066 else
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6068 $as_echo "no" >&6; }
6072 test -n "$NETSTAT" && break
6073 done
6074 test -n "$NETSTAT" || NETSTAT="netstat"
6075 # tests
6076 for ac_prog in man2html
6078 # Extract the first word of "$ac_prog", so it can be a program name with args.
6079 set dummy $ac_prog; ac_word=$2
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6081 $as_echo_n "checking for $ac_word... " >&6; }
6082 if ${ac_cv_prog_MAN2HTML+:} false; then :
6083 $as_echo_n "(cached) " >&6
6084 else
6085 if test -n "$MAN2HTML"; then
6086 ac_cv_prog_MAN2HTML="$MAN2HTML" # Let the user override the test.
6087 else
6088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6089 for as_dir in $PATH
6091 IFS=$as_save_IFS
6092 test -z "$as_dir" && as_dir=.
6093 for ac_exec_ext in '' $ac_executable_extensions; do
6094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6095 ac_cv_prog_MAN2HTML="$ac_prog"
6096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6097 break 2
6099 done
6100 done
6101 IFS=$as_save_IFS
6105 MAN2HTML=$ac_cv_prog_MAN2HTML
6106 if test -n "$MAN2HTML"; then
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAN2HTML" >&5
6108 $as_echo "$MAN2HTML" >&6; }
6109 else
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6111 $as_echo "no" >&6; }
6115 test -n "$MAN2HTML" && break
6116 done
6118 for ac_prog in git
6120 # Extract the first word of "$ac_prog", so it can be a program name with args.
6121 set dummy $ac_prog; ac_word=$2
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6123 $as_echo_n "checking for $ac_word... " >&6; }
6124 if ${ac_cv_prog_GIT+:} false; then :
6125 $as_echo_n "(cached) " >&6
6126 else
6127 if test -n "$GIT"; then
6128 ac_cv_prog_GIT="$GIT" # Let the user override the test.
6129 else
6130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6131 for as_dir in $PATH
6133 IFS=$as_save_IFS
6134 test -z "$as_dir" && as_dir=.
6135 for ac_exec_ext in '' $ac_executable_extensions; do
6136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6137 ac_cv_prog_GIT="$ac_prog"
6138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6139 break 2
6141 done
6142 done
6143 IFS=$as_save_IFS
6147 GIT=$ac_cv_prog_GIT
6148 if test -n "$GIT"; then
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
6150 $as_echo "$GIT" >&6; }
6151 else
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6153 $as_echo "no" >&6; }
6157 test -n "$GIT" && break
6158 done
6159 # optional
6161 cat >>confdefs.h <<_ACEOF
6162 #define IFCONFIG_PATH "$IFCONFIG"
6163 _ACEOF
6166 cat >>confdefs.h <<_ACEOF
6167 #define IPROUTE_PATH "$IPROUTE"
6168 _ACEOF
6171 cat >>confdefs.h <<_ACEOF
6172 #define ROUTE_PATH "$ROUTE"
6173 _ACEOF
6176 cat >>confdefs.h <<_ACEOF
6177 #define SYSTEMD_ASK_PASSWORD_PATH "$SYSTEMD_ASK_PASSWORD"
6178 _ACEOF
6182 # Libtool
6185 case `pwd` in
6186 *\ * | *\ *)
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6188 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6189 esac
6193 macro_version='2.4.2'
6194 macro_revision='1.3337'
6208 ltmain="$ac_aux_dir/ltmain.sh"
6210 # Backslashify metacharacters that are still active within
6211 # double-quoted strings.
6212 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6214 # Same as above, but do not quote variable references.
6215 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6217 # Sed substitution to delay expansion of an escaped shell variable in a
6218 # double_quote_subst'ed string.
6219 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6221 # Sed substitution to delay expansion of an escaped single quote.
6222 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6224 # Sed substitution to avoid accidental globbing in evaled expressions
6225 no_glob_subst='s/\*/\\\*/g'
6227 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6228 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6229 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6232 $as_echo_n "checking how to print strings... " >&6; }
6233 # Test print first, because it will be a builtin if present.
6234 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6235 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6236 ECHO='print -r --'
6237 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6238 ECHO='printf %s\n'
6239 else
6240 # Use this function as a fallback that always works.
6241 func_fallback_echo ()
6243 eval 'cat <<_LTECHO_EOF
6245 _LTECHO_EOF'
6247 ECHO='func_fallback_echo'
6250 # func_echo_all arg...
6251 # Invoke $ECHO with all args, space-separated.
6252 func_echo_all ()
6254 $ECHO ""
6257 case "$ECHO" in
6258 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6259 $as_echo "printf" >&6; } ;;
6260 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6261 $as_echo "print -r" >&6; } ;;
6262 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6263 $as_echo "cat" >&6; } ;;
6264 esac
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6280 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6281 if ${ac_cv_path_SED+:} false; then :
6282 $as_echo_n "(cached) " >&6
6283 else
6284 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6285 for ac_i in 1 2 3 4 5 6 7; do
6286 ac_script="$ac_script$as_nl$ac_script"
6287 done
6288 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6289 { ac_script=; unset ac_script;}
6290 if test -z "$SED"; then
6291 ac_path_SED_found=false
6292 # Loop through the user's path and test for each of PROGNAME-LIST
6293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6294 for as_dir in $PATH
6296 IFS=$as_save_IFS
6297 test -z "$as_dir" && as_dir=.
6298 for ac_prog in sed gsed; do
6299 for ac_exec_ext in '' $ac_executable_extensions; do
6300 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6301 as_fn_executable_p "$ac_path_SED" || continue
6302 # Check for GNU ac_path_SED and select it if it is found.
6303 # Check for GNU $ac_path_SED
6304 case `"$ac_path_SED" --version 2>&1` in
6305 *GNU*)
6306 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6308 ac_count=0
6309 $as_echo_n 0123456789 >"conftest.in"
6310 while :
6312 cat "conftest.in" "conftest.in" >"conftest.tmp"
6313 mv "conftest.tmp" "conftest.in"
6314 cp "conftest.in" "conftest.nl"
6315 $as_echo '' >> "conftest.nl"
6316 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6317 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6318 as_fn_arith $ac_count + 1 && ac_count=$as_val
6319 if test $ac_count -gt ${ac_path_SED_max-0}; then
6320 # Best one so far, save it but keep looking for a better one
6321 ac_cv_path_SED="$ac_path_SED"
6322 ac_path_SED_max=$ac_count
6324 # 10*(2^10) chars as input seems more than enough
6325 test $ac_count -gt 10 && break
6326 done
6327 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6328 esac
6330 $ac_path_SED_found && break 3
6331 done
6332 done
6333 done
6334 IFS=$as_save_IFS
6335 if test -z "$ac_cv_path_SED"; then
6336 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6338 else
6339 ac_cv_path_SED=$SED
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6344 $as_echo "$ac_cv_path_SED" >&6; }
6345 SED="$ac_cv_path_SED"
6346 rm -f conftest.sed
6348 test -z "$SED" && SED=sed
6349 Xsed="$SED -e 1s/^X//"
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6362 $as_echo_n "checking for fgrep... " >&6; }
6363 if ${ac_cv_path_FGREP+:} false; then :
6364 $as_echo_n "(cached) " >&6
6365 else
6366 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6367 then ac_cv_path_FGREP="$GREP -F"
6368 else
6369 if test -z "$FGREP"; then
6370 ac_path_FGREP_found=false
6371 # Loop through the user's path and test for each of PROGNAME-LIST
6372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6373 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6375 IFS=$as_save_IFS
6376 test -z "$as_dir" && as_dir=.
6377 for ac_prog in fgrep; do
6378 for ac_exec_ext in '' $ac_executable_extensions; do
6379 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6380 as_fn_executable_p "$ac_path_FGREP" || continue
6381 # Check for GNU ac_path_FGREP and select it if it is found.
6382 # Check for GNU $ac_path_FGREP
6383 case `"$ac_path_FGREP" --version 2>&1` in
6384 *GNU*)
6385 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6387 ac_count=0
6388 $as_echo_n 0123456789 >"conftest.in"
6389 while :
6391 cat "conftest.in" "conftest.in" >"conftest.tmp"
6392 mv "conftest.tmp" "conftest.in"
6393 cp "conftest.in" "conftest.nl"
6394 $as_echo 'FGREP' >> "conftest.nl"
6395 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6396 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6397 as_fn_arith $ac_count + 1 && ac_count=$as_val
6398 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6399 # Best one so far, save it but keep looking for a better one
6400 ac_cv_path_FGREP="$ac_path_FGREP"
6401 ac_path_FGREP_max=$ac_count
6403 # 10*(2^10) chars as input seems more than enough
6404 test $ac_count -gt 10 && break
6405 done
6406 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6407 esac
6409 $ac_path_FGREP_found && break 3
6410 done
6411 done
6412 done
6413 IFS=$as_save_IFS
6414 if test -z "$ac_cv_path_FGREP"; then
6415 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6417 else
6418 ac_cv_path_FGREP=$FGREP
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6424 $as_echo "$ac_cv_path_FGREP" >&6; }
6425 FGREP="$ac_cv_path_FGREP"
6428 test -z "$GREP" && GREP=grep
6448 # Check whether --with-gnu-ld was given.
6449 if test "${with_gnu_ld+set}" = set; then :
6450 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6451 else
6452 with_gnu_ld=no
6455 ac_prog=ld
6456 if test "$GCC" = yes; then
6457 # Check if gcc -print-prog-name=ld gives a path.
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6459 $as_echo_n "checking for ld used by $CC... " >&6; }
6460 case $host in
6461 *-*-mingw*)
6462 # gcc leaves a trailing carriage return which upsets mingw
6463 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6465 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6466 esac
6467 case $ac_prog in
6468 # Accept absolute paths.
6469 [\\/]* | ?:[\\/]*)
6470 re_direlt='/[^/][^/]*/\.\./'
6471 # Canonicalize the pathname of ld
6472 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6473 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6474 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6475 done
6476 test -z "$LD" && LD="$ac_prog"
6479 # If it fails, then pretend we aren't using GCC.
6480 ac_prog=ld
6483 # If it is relative, then search for the first ld in PATH.
6484 with_gnu_ld=unknown
6486 esac
6487 elif test "$with_gnu_ld" = yes; then
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6489 $as_echo_n "checking for GNU ld... " >&6; }
6490 else
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6492 $as_echo_n "checking for non-GNU ld... " >&6; }
6494 if ${lt_cv_path_LD+:} false; then :
6495 $as_echo_n "(cached) " >&6
6496 else
6497 if test -z "$LD"; then
6498 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6499 for ac_dir in $PATH; do
6500 IFS="$lt_save_ifs"
6501 test -z "$ac_dir" && ac_dir=.
6502 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6503 lt_cv_path_LD="$ac_dir/$ac_prog"
6504 # Check to see if the program is GNU ld. I'd rather use --version,
6505 # but apparently some variants of GNU ld only accept -v.
6506 # Break only if it was the GNU/non-GNU ld that we prefer.
6507 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6508 *GNU* | *'with BFD'*)
6509 test "$with_gnu_ld" != no && break
6512 test "$with_gnu_ld" != yes && break
6514 esac
6516 done
6517 IFS="$lt_save_ifs"
6518 else
6519 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6523 LD="$lt_cv_path_LD"
6524 if test -n "$LD"; then
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6526 $as_echo "$LD" >&6; }
6527 else
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6529 $as_echo "no" >&6; }
6531 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6533 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6534 if ${lt_cv_prog_gnu_ld+:} false; then :
6535 $as_echo_n "(cached) " >&6
6536 else
6537 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6538 case `$LD -v 2>&1 </dev/null` in
6539 *GNU* | *'with BFD'*)
6540 lt_cv_prog_gnu_ld=yes
6543 lt_cv_prog_gnu_ld=no
6545 esac
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6548 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6549 with_gnu_ld=$lt_cv_prog_gnu_ld
6559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6560 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6561 if ${lt_cv_path_NM+:} false; then :
6562 $as_echo_n "(cached) " >&6
6563 else
6564 if test -n "$NM"; then
6565 # Let the user override the test.
6566 lt_cv_path_NM="$NM"
6567 else
6568 lt_nm_to_check="${ac_tool_prefix}nm"
6569 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6570 lt_nm_to_check="$lt_nm_to_check nm"
6572 for lt_tmp_nm in $lt_nm_to_check; do
6573 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6574 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6575 IFS="$lt_save_ifs"
6576 test -z "$ac_dir" && ac_dir=.
6577 tmp_nm="$ac_dir/$lt_tmp_nm"
6578 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6579 # Check to see if the nm accepts a BSD-compat flag.
6580 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6581 # nm: unknown option "B" ignored
6582 # Tru64's nm complains that /dev/null is an invalid object file
6583 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6584 */dev/null* | *'Invalid file or object type'*)
6585 lt_cv_path_NM="$tmp_nm -B"
6586 break
6589 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6590 */dev/null*)
6591 lt_cv_path_NM="$tmp_nm -p"
6592 break
6595 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6596 continue # so that we can try to find one that supports BSD flags
6598 esac
6600 esac
6602 done
6603 IFS="$lt_save_ifs"
6604 done
6605 : ${lt_cv_path_NM=no}
6608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6609 $as_echo "$lt_cv_path_NM" >&6; }
6610 if test "$lt_cv_path_NM" != "no"; then
6611 NM="$lt_cv_path_NM"
6612 else
6613 # Didn't find any BSD compatible name lister, look for dumpbin.
6614 if test -n "$DUMPBIN"; then :
6615 # Let the user override the test.
6616 else
6617 if test -n "$ac_tool_prefix"; then
6618 for ac_prog in dumpbin "link -dump"
6620 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6621 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6623 $as_echo_n "checking for $ac_word... " >&6; }
6624 if ${ac_cv_prog_DUMPBIN+:} false; then :
6625 $as_echo_n "(cached) " >&6
6626 else
6627 if test -n "$DUMPBIN"; then
6628 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6629 else
6630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6631 for as_dir in $PATH
6633 IFS=$as_save_IFS
6634 test -z "$as_dir" && as_dir=.
6635 for ac_exec_ext in '' $ac_executable_extensions; do
6636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6637 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6639 break 2
6641 done
6642 done
6643 IFS=$as_save_IFS
6647 DUMPBIN=$ac_cv_prog_DUMPBIN
6648 if test -n "$DUMPBIN"; then
6649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6650 $as_echo "$DUMPBIN" >&6; }
6651 else
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6653 $as_echo "no" >&6; }
6657 test -n "$DUMPBIN" && break
6658 done
6660 if test -z "$DUMPBIN"; then
6661 ac_ct_DUMPBIN=$DUMPBIN
6662 for ac_prog in dumpbin "link -dump"
6664 # Extract the first word of "$ac_prog", so it can be a program name with args.
6665 set dummy $ac_prog; ac_word=$2
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6667 $as_echo_n "checking for $ac_word... " >&6; }
6668 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6669 $as_echo_n "(cached) " >&6
6670 else
6671 if test -n "$ac_ct_DUMPBIN"; then
6672 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6673 else
6674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6675 for as_dir in $PATH
6677 IFS=$as_save_IFS
6678 test -z "$as_dir" && as_dir=.
6679 for ac_exec_ext in '' $ac_executable_extensions; do
6680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6681 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6683 break 2
6685 done
6686 done
6687 IFS=$as_save_IFS
6691 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6692 if test -n "$ac_ct_DUMPBIN"; then
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6694 $as_echo "$ac_ct_DUMPBIN" >&6; }
6695 else
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6697 $as_echo "no" >&6; }
6701 test -n "$ac_ct_DUMPBIN" && break
6702 done
6704 if test "x$ac_ct_DUMPBIN" = x; then
6705 DUMPBIN=":"
6706 else
6707 case $cross_compiling:$ac_tool_warned in
6708 yes:)
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6710 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6711 ac_tool_warned=yes ;;
6712 esac
6713 DUMPBIN=$ac_ct_DUMPBIN
6717 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6718 *COFF*)
6719 DUMPBIN="$DUMPBIN -symbols"
6722 DUMPBIN=:
6724 esac
6727 if test "$DUMPBIN" != ":"; then
6728 NM="$DUMPBIN"
6731 test -z "$NM" && NM=nm
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6739 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6740 if ${lt_cv_nm_interface+:} false; then :
6741 $as_echo_n "(cached) " >&6
6742 else
6743 lt_cv_nm_interface="BSD nm"
6744 echo "int some_variable = 0;" > conftest.$ac_ext
6745 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6746 (eval "$ac_compile" 2>conftest.err)
6747 cat conftest.err >&5
6748 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6749 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6750 cat conftest.err >&5
6751 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6752 cat conftest.out >&5
6753 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6754 lt_cv_nm_interface="MS dumpbin"
6756 rm -f conftest*
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6759 $as_echo "$lt_cv_nm_interface" >&6; }
6761 # find the maximum length of command line arguments
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6763 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6764 if ${lt_cv_sys_max_cmd_len+:} false; then :
6765 $as_echo_n "(cached) " >&6
6766 else
6768 teststring="ABCD"
6770 case $build_os in
6771 msdosdjgpp*)
6772 # On DJGPP, this test can blow up pretty badly due to problems in libc
6773 # (any single argument exceeding 2000 bytes causes a buffer overrun
6774 # during glob expansion). Even if it were fixed, the result of this
6775 # check would be larger than it should be.
6776 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6779 gnu*)
6780 # Under GNU Hurd, this test is not required because there is
6781 # no limit to the length of command line arguments.
6782 # Libtool will interpret -1 as no limit whatsoever
6783 lt_cv_sys_max_cmd_len=-1;
6786 cygwin* | mingw* | cegcc*)
6787 # On Win9x/ME, this test blows up -- it succeeds, but takes
6788 # about 5 minutes as the teststring grows exponentially.
6789 # Worse, since 9x/ME are not pre-emptively multitasking,
6790 # you end up with a "frozen" computer, even though with patience
6791 # the test eventually succeeds (with a max line length of 256k).
6792 # Instead, let's just punt: use the minimum linelength reported by
6793 # all of the supported platforms: 8192 (on NT/2K/XP).
6794 lt_cv_sys_max_cmd_len=8192;
6797 mint*)
6798 # On MiNT this can take a long time and run out of memory.
6799 lt_cv_sys_max_cmd_len=8192;
6802 amigaos*)
6803 # On AmigaOS with pdksh, this test takes hours, literally.
6804 # So we just punt and use a minimum line length of 8192.
6805 lt_cv_sys_max_cmd_len=8192;
6808 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6809 # This has been around since 386BSD, at least. Likely further.
6810 if test -x /sbin/sysctl; then
6811 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6812 elif test -x /usr/sbin/sysctl; then
6813 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6814 else
6815 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6817 # And add a safety zone
6818 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6819 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6822 interix*)
6823 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6824 lt_cv_sys_max_cmd_len=196608
6827 os2*)
6828 # The test takes a long time on OS/2.
6829 lt_cv_sys_max_cmd_len=8192
6832 osf*)
6833 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6834 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6835 # nice to cause kernel panics so lets avoid the loop below.
6836 # First set a reasonable default.
6837 lt_cv_sys_max_cmd_len=16384
6839 if test -x /sbin/sysconfig; then
6840 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6841 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6842 esac
6845 sco3.2v5*)
6846 lt_cv_sys_max_cmd_len=102400
6848 sysv5* | sco5v6* | sysv4.2uw2*)
6849 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6850 if test -n "$kargmax"; then
6851 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6852 else
6853 lt_cv_sys_max_cmd_len=32768
6857 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6858 if test -n "$lt_cv_sys_max_cmd_len" && \
6859 test undefined != "$lt_cv_sys_max_cmd_len"; then
6860 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6861 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6862 else
6863 # Make teststring a little bigger before we do anything with it.
6864 # a 1K string should be a reasonable start.
6865 for i in 1 2 3 4 5 6 7 8 ; do
6866 teststring=$teststring$teststring
6867 done
6868 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6869 # If test is not a shell built-in, we'll probably end up computing a
6870 # maximum length that is only half of the actual maximum length, but
6871 # we can't tell.
6872 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6873 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6874 test $i != 17 # 1/2 MB should be enough
6876 i=`expr $i + 1`
6877 teststring=$teststring$teststring
6878 done
6879 # Only check the string length outside the loop.
6880 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6881 teststring=
6882 # Add a significant safety factor because C++ compilers can tack on
6883 # massive amounts of additional arguments before passing them to the
6884 # linker. It appears as though 1/2 is a usable value.
6885 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6888 esac
6892 if test -n $lt_cv_sys_max_cmd_len ; then
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6894 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6895 else
6896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6897 $as_echo "none" >&6; }
6899 max_cmd_len=$lt_cv_sys_max_cmd_len
6906 : ${CP="cp -f"}
6907 : ${MV="mv -f"}
6908 : ${RM="rm -f"}
6910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6911 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6912 # Try some XSI features
6913 xsi_shell=no
6914 ( _lt_dummy="a/b/c"
6915 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6916 = c,a/b,b/c, \
6917 && eval 'test $(( 1 + 1 )) -eq 2 \
6918 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6919 && xsi_shell=yes
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6921 $as_echo "$xsi_shell" >&6; }
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6925 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6926 lt_shell_append=no
6927 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6928 >/dev/null 2>&1 \
6929 && lt_shell_append=yes
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6931 $as_echo "$lt_shell_append" >&6; }
6934 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6935 lt_unset=unset
6936 else
6937 lt_unset=false
6944 # test EBCDIC or ASCII
6945 case `echo X|tr X '\101'` in
6946 A) # ASCII based system
6947 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6948 lt_SP2NL='tr \040 \012'
6949 lt_NL2SP='tr \015\012 \040\040'
6951 *) # EBCDIC based system
6952 lt_SP2NL='tr \100 \n'
6953 lt_NL2SP='tr \r\n \100\100'
6955 esac
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6966 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6967 if ${lt_cv_to_host_file_cmd+:} false; then :
6968 $as_echo_n "(cached) " >&6
6969 else
6970 case $host in
6971 *-*-mingw* )
6972 case $build in
6973 *-*-mingw* ) # actually msys
6974 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6976 *-*-cygwin* )
6977 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6979 * ) # otherwise, assume *nix
6980 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6982 esac
6984 *-*-cygwin* )
6985 case $build in
6986 *-*-mingw* ) # actually msys
6987 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6989 *-*-cygwin* )
6990 lt_cv_to_host_file_cmd=func_convert_file_noop
6992 * ) # otherwise, assume *nix
6993 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6995 esac
6997 * ) # unhandled hosts (and "normal" native builds)
6998 lt_cv_to_host_file_cmd=func_convert_file_noop
7000 esac
7004 to_host_file_cmd=$lt_cv_to_host_file_cmd
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7006 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7013 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7014 if ${lt_cv_to_tool_file_cmd+:} false; then :
7015 $as_echo_n "(cached) " >&6
7016 else
7017 #assume ordinary cross tools, or native build.
7018 lt_cv_to_tool_file_cmd=func_convert_file_noop
7019 case $host in
7020 *-*-mingw* )
7021 case $build in
7022 *-*-mingw* ) # actually msys
7023 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7025 esac
7027 esac
7031 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7033 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7040 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7041 if ${lt_cv_ld_reload_flag+:} false; then :
7042 $as_echo_n "(cached) " >&6
7043 else
7044 lt_cv_ld_reload_flag='-r'
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7047 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7048 reload_flag=$lt_cv_ld_reload_flag
7049 case $reload_flag in
7050 "" | " "*) ;;
7051 *) reload_flag=" $reload_flag" ;;
7052 esac
7053 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7054 case $host_os in
7055 cygwin* | mingw* | pw32* | cegcc*)
7056 if test "$GCC" != yes; then
7057 reload_cmds=false
7060 darwin*)
7061 if test "$GCC" = yes; then
7062 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7063 else
7064 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7067 esac
7077 if test -n "$ac_tool_prefix"; then
7078 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7079 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7081 $as_echo_n "checking for $ac_word... " >&6; }
7082 if ${ac_cv_prog_OBJDUMP+:} false; then :
7083 $as_echo_n "(cached) " >&6
7084 else
7085 if test -n "$OBJDUMP"; then
7086 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7087 else
7088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7089 for as_dir in $PATH
7091 IFS=$as_save_IFS
7092 test -z "$as_dir" && as_dir=.
7093 for ac_exec_ext in '' $ac_executable_extensions; do
7094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7095 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7097 break 2
7099 done
7100 done
7101 IFS=$as_save_IFS
7105 OBJDUMP=$ac_cv_prog_OBJDUMP
7106 if test -n "$OBJDUMP"; then
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7108 $as_echo "$OBJDUMP" >&6; }
7109 else
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7111 $as_echo "no" >&6; }
7116 if test -z "$ac_cv_prog_OBJDUMP"; then
7117 ac_ct_OBJDUMP=$OBJDUMP
7118 # Extract the first word of "objdump", so it can be a program name with args.
7119 set dummy objdump; ac_word=$2
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7121 $as_echo_n "checking for $ac_word... " >&6; }
7122 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7123 $as_echo_n "(cached) " >&6
7124 else
7125 if test -n "$ac_ct_OBJDUMP"; then
7126 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7127 else
7128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7129 for as_dir in $PATH
7131 IFS=$as_save_IFS
7132 test -z "$as_dir" && as_dir=.
7133 for ac_exec_ext in '' $ac_executable_extensions; do
7134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7135 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7137 break 2
7139 done
7140 done
7141 IFS=$as_save_IFS
7145 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7146 if test -n "$ac_ct_OBJDUMP"; then
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7148 $as_echo "$ac_ct_OBJDUMP" >&6; }
7149 else
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7151 $as_echo "no" >&6; }
7154 if test "x$ac_ct_OBJDUMP" = x; then
7155 OBJDUMP="false"
7156 else
7157 case $cross_compiling:$ac_tool_warned in
7158 yes:)
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7160 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7161 ac_tool_warned=yes ;;
7162 esac
7163 OBJDUMP=$ac_ct_OBJDUMP
7165 else
7166 OBJDUMP="$ac_cv_prog_OBJDUMP"
7169 test -z "$OBJDUMP" && OBJDUMP=objdump
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7177 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7178 if ${lt_cv_deplibs_check_method+:} false; then :
7179 $as_echo_n "(cached) " >&6
7180 else
7181 lt_cv_file_magic_cmd='$MAGIC_CMD'
7182 lt_cv_file_magic_test_file=
7183 lt_cv_deplibs_check_method='unknown'
7184 # Need to set the preceding variable on all platforms that support
7185 # interlibrary dependencies.
7186 # 'none' -- dependencies not supported.
7187 # `unknown' -- same as none, but documents that we really don't know.
7188 # 'pass_all' -- all dependencies passed with no checks.
7189 # 'test_compile' -- check by making test program.
7190 # 'file_magic [[regex]]' -- check by looking for files in library path
7191 # which responds to the $file_magic_cmd with a given extended regex.
7192 # If you have `file' or equivalent on your system and you're not sure
7193 # whether `pass_all' will *always* work, you probably want this one.
7195 case $host_os in
7196 aix[4-9]*)
7197 lt_cv_deplibs_check_method=pass_all
7200 beos*)
7201 lt_cv_deplibs_check_method=pass_all
7204 bsdi[45]*)
7205 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7206 lt_cv_file_magic_cmd='/usr/bin/file -L'
7207 lt_cv_file_magic_test_file=/shlib/libc.so
7210 cygwin*)
7211 # func_win32_libid is a shell function defined in ltmain.sh
7212 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7213 lt_cv_file_magic_cmd='func_win32_libid'
7216 mingw* | pw32*)
7217 # Base MSYS/MinGW do not provide the 'file' command needed by
7218 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7219 # unless we find 'file', for example because we are cross-compiling.
7220 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7221 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7222 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7223 lt_cv_file_magic_cmd='func_win32_libid'
7224 else
7225 # Keep this pattern in sync with the one in func_win32_libid.
7226 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7227 lt_cv_file_magic_cmd='$OBJDUMP -f'
7231 cegcc*)
7232 # use the weaker test based on 'objdump'. See mingw*.
7233 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7234 lt_cv_file_magic_cmd='$OBJDUMP -f'
7237 darwin* | rhapsody*)
7238 lt_cv_deplibs_check_method=pass_all
7241 freebsd* | dragonfly*)
7242 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7243 case $host_cpu in
7244 i*86 )
7245 # Not sure whether the presence of OpenBSD here was a mistake.
7246 # Let's accept both of them until this is cleared up.
7247 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7248 lt_cv_file_magic_cmd=/usr/bin/file
7249 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7251 esac
7252 else
7253 lt_cv_deplibs_check_method=pass_all
7257 haiku*)
7258 lt_cv_deplibs_check_method=pass_all
7261 hpux10.20* | hpux11*)
7262 lt_cv_file_magic_cmd=/usr/bin/file
7263 case $host_cpu in
7264 ia64*)
7265 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7266 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7268 hppa*64*)
7269 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]'
7270 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7273 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7274 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7276 esac
7279 interix[3-9]*)
7280 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7281 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7284 irix5* | irix6* | nonstopux*)
7285 case $LD in
7286 *-32|*"-32 ") libmagic=32-bit;;
7287 *-n32|*"-n32 ") libmagic=N32;;
7288 *-64|*"-64 ") libmagic=64-bit;;
7289 *) libmagic=never-match;;
7290 esac
7291 lt_cv_deplibs_check_method=pass_all
7294 # This must be glibc/ELF.
7295 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7296 lt_cv_deplibs_check_method=pass_all
7299 netbsd* | netbsdelf*-gnu)
7300 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7301 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7302 else
7303 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7307 newos6*)
7308 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7309 lt_cv_file_magic_cmd=/usr/bin/file
7310 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7313 *nto* | *qnx*)
7314 lt_cv_deplibs_check_method=pass_all
7317 openbsd*)
7318 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7319 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7320 else
7321 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7325 osf3* | osf4* | osf5*)
7326 lt_cv_deplibs_check_method=pass_all
7329 rdos*)
7330 lt_cv_deplibs_check_method=pass_all
7333 solaris*)
7334 lt_cv_deplibs_check_method=pass_all
7337 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7338 lt_cv_deplibs_check_method=pass_all
7341 sysv4 | sysv4.3*)
7342 case $host_vendor in
7343 motorola)
7344 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]'
7345 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7347 ncr)
7348 lt_cv_deplibs_check_method=pass_all
7350 sequent)
7351 lt_cv_file_magic_cmd='/bin/file'
7352 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7354 sni)
7355 lt_cv_file_magic_cmd='/bin/file'
7356 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7357 lt_cv_file_magic_test_file=/lib/libc.so
7359 siemens)
7360 lt_cv_deplibs_check_method=pass_all
7363 lt_cv_deplibs_check_method=pass_all
7365 esac
7368 tpf*)
7369 lt_cv_deplibs_check_method=pass_all
7371 esac
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7375 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7377 file_magic_glob=
7378 want_nocaseglob=no
7379 if test "$build" = "$host"; then
7380 case $host_os in
7381 mingw* | pw32*)
7382 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7383 want_nocaseglob=yes
7384 else
7385 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7388 esac
7391 file_magic_cmd=$lt_cv_file_magic_cmd
7392 deplibs_check_method=$lt_cv_deplibs_check_method
7393 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7416 if test -n "$ac_tool_prefix"; then
7417 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7418 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7420 $as_echo_n "checking for $ac_word... " >&6; }
7421 if ${ac_cv_prog_DLLTOOL+:} false; then :
7422 $as_echo_n "(cached) " >&6
7423 else
7424 if test -n "$DLLTOOL"; then
7425 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7426 else
7427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7428 for as_dir in $PATH
7430 IFS=$as_save_IFS
7431 test -z "$as_dir" && as_dir=.
7432 for ac_exec_ext in '' $ac_executable_extensions; do
7433 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7434 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7436 break 2
7438 done
7439 done
7440 IFS=$as_save_IFS
7444 DLLTOOL=$ac_cv_prog_DLLTOOL
7445 if test -n "$DLLTOOL"; then
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7447 $as_echo "$DLLTOOL" >&6; }
7448 else
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7450 $as_echo "no" >&6; }
7455 if test -z "$ac_cv_prog_DLLTOOL"; then
7456 ac_ct_DLLTOOL=$DLLTOOL
7457 # Extract the first word of "dlltool", so it can be a program name with args.
7458 set dummy dlltool; ac_word=$2
7459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7460 $as_echo_n "checking for $ac_word... " >&6; }
7461 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7462 $as_echo_n "(cached) " >&6
7463 else
7464 if test -n "$ac_ct_DLLTOOL"; then
7465 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7466 else
7467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7468 for as_dir in $PATH
7470 IFS=$as_save_IFS
7471 test -z "$as_dir" && as_dir=.
7472 for ac_exec_ext in '' $ac_executable_extensions; do
7473 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7474 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7476 break 2
7478 done
7479 done
7480 IFS=$as_save_IFS
7484 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7485 if test -n "$ac_ct_DLLTOOL"; then
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7487 $as_echo "$ac_ct_DLLTOOL" >&6; }
7488 else
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7490 $as_echo "no" >&6; }
7493 if test "x$ac_ct_DLLTOOL" = x; then
7494 DLLTOOL="false"
7495 else
7496 case $cross_compiling:$ac_tool_warned in
7497 yes:)
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7499 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7500 ac_tool_warned=yes ;;
7501 esac
7502 DLLTOOL=$ac_ct_DLLTOOL
7504 else
7505 DLLTOOL="$ac_cv_prog_DLLTOOL"
7508 test -z "$DLLTOOL" && DLLTOOL=dlltool
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7517 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7518 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7519 $as_echo_n "(cached) " >&6
7520 else
7521 lt_cv_sharedlib_from_linklib_cmd='unknown'
7523 case $host_os in
7524 cygwin* | mingw* | pw32* | cegcc*)
7525 # two different shell functions defined in ltmain.sh
7526 # decide which to use based on capabilities of $DLLTOOL
7527 case `$DLLTOOL --help 2>&1` in
7528 *--identify-strict*)
7529 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7532 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7534 esac
7537 # fallback: assume linklib IS sharedlib
7538 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7540 esac
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7544 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7545 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7546 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7554 if test -n "$ac_tool_prefix"; then
7555 for ac_prog in ar
7557 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7558 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7560 $as_echo_n "checking for $ac_word... " >&6; }
7561 if ${ac_cv_prog_AR+:} false; then :
7562 $as_echo_n "(cached) " >&6
7563 else
7564 if test -n "$AR"; then
7565 ac_cv_prog_AR="$AR" # Let the user override the test.
7566 else
7567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7568 for as_dir in $PATH
7570 IFS=$as_save_IFS
7571 test -z "$as_dir" && as_dir=.
7572 for ac_exec_ext in '' $ac_executable_extensions; do
7573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7574 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7576 break 2
7578 done
7579 done
7580 IFS=$as_save_IFS
7584 AR=$ac_cv_prog_AR
7585 if test -n "$AR"; then
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7587 $as_echo "$AR" >&6; }
7588 else
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7590 $as_echo "no" >&6; }
7594 test -n "$AR" && break
7595 done
7597 if test -z "$AR"; then
7598 ac_ct_AR=$AR
7599 for ac_prog in ar
7601 # Extract the first word of "$ac_prog", so it can be a program name with args.
7602 set dummy $ac_prog; ac_word=$2
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7604 $as_echo_n "checking for $ac_word... " >&6; }
7605 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7606 $as_echo_n "(cached) " >&6
7607 else
7608 if test -n "$ac_ct_AR"; then
7609 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7610 else
7611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7612 for as_dir in $PATH
7614 IFS=$as_save_IFS
7615 test -z "$as_dir" && as_dir=.
7616 for ac_exec_ext in '' $ac_executable_extensions; do
7617 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7618 ac_cv_prog_ac_ct_AR="$ac_prog"
7619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7620 break 2
7622 done
7623 done
7624 IFS=$as_save_IFS
7628 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7629 if test -n "$ac_ct_AR"; then
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7631 $as_echo "$ac_ct_AR" >&6; }
7632 else
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7634 $as_echo "no" >&6; }
7638 test -n "$ac_ct_AR" && break
7639 done
7641 if test "x$ac_ct_AR" = x; then
7642 AR="false"
7643 else
7644 case $cross_compiling:$ac_tool_warned in
7645 yes:)
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7647 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7648 ac_tool_warned=yes ;;
7649 esac
7650 AR=$ac_ct_AR
7654 : ${AR=ar}
7655 : ${AR_FLAGS=cru}
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7668 $as_echo_n "checking for archiver @FILE support... " >&6; }
7669 if ${lt_cv_ar_at_file+:} false; then :
7670 $as_echo_n "(cached) " >&6
7671 else
7672 lt_cv_ar_at_file=no
7673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7674 /* end confdefs.h. */
7677 main ()
7681 return 0;
7683 _ACEOF
7684 if ac_fn_c_try_compile "$LINENO"; then :
7685 echo conftest.$ac_objext > conftest.lst
7686 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7687 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7688 (eval $lt_ar_try) 2>&5
7689 ac_status=$?
7690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7691 test $ac_status = 0; }
7692 if test "$ac_status" -eq 0; then
7693 # Ensure the archiver fails upon bogus file names.
7694 rm -f conftest.$ac_objext libconftest.a
7695 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7696 (eval $lt_ar_try) 2>&5
7697 ac_status=$?
7698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7699 test $ac_status = 0; }
7700 if test "$ac_status" -ne 0; then
7701 lt_cv_ar_at_file=@
7704 rm -f conftest.* libconftest.a
7707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7711 $as_echo "$lt_cv_ar_at_file" >&6; }
7713 if test "x$lt_cv_ar_at_file" = xno; then
7714 archiver_list_spec=
7715 else
7716 archiver_list_spec=$lt_cv_ar_at_file
7725 if test -n "$ac_tool_prefix"; then
7726 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7727 set dummy ${ac_tool_prefix}strip; ac_word=$2
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7729 $as_echo_n "checking for $ac_word... " >&6; }
7730 if ${ac_cv_prog_STRIP+:} false; then :
7731 $as_echo_n "(cached) " >&6
7732 else
7733 if test -n "$STRIP"; then
7734 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7735 else
7736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7737 for as_dir in $PATH
7739 IFS=$as_save_IFS
7740 test -z "$as_dir" && as_dir=.
7741 for ac_exec_ext in '' $ac_executable_extensions; do
7742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7743 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7745 break 2
7747 done
7748 done
7749 IFS=$as_save_IFS
7753 STRIP=$ac_cv_prog_STRIP
7754 if test -n "$STRIP"; then
7755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7756 $as_echo "$STRIP" >&6; }
7757 else
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7759 $as_echo "no" >&6; }
7764 if test -z "$ac_cv_prog_STRIP"; then
7765 ac_ct_STRIP=$STRIP
7766 # Extract the first word of "strip", so it can be a program name with args.
7767 set dummy strip; ac_word=$2
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7769 $as_echo_n "checking for $ac_word... " >&6; }
7770 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7771 $as_echo_n "(cached) " >&6
7772 else
7773 if test -n "$ac_ct_STRIP"; then
7774 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7775 else
7776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7777 for as_dir in $PATH
7779 IFS=$as_save_IFS
7780 test -z "$as_dir" && as_dir=.
7781 for ac_exec_ext in '' $ac_executable_extensions; do
7782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7783 ac_cv_prog_ac_ct_STRIP="strip"
7784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7785 break 2
7787 done
7788 done
7789 IFS=$as_save_IFS
7793 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7794 if test -n "$ac_ct_STRIP"; then
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7796 $as_echo "$ac_ct_STRIP" >&6; }
7797 else
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7799 $as_echo "no" >&6; }
7802 if test "x$ac_ct_STRIP" = x; then
7803 STRIP=":"
7804 else
7805 case $cross_compiling:$ac_tool_warned in
7806 yes:)
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7808 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7809 ac_tool_warned=yes ;;
7810 esac
7811 STRIP=$ac_ct_STRIP
7813 else
7814 STRIP="$ac_cv_prog_STRIP"
7817 test -z "$STRIP" && STRIP=:
7824 if test -n "$ac_tool_prefix"; then
7825 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7826 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7828 $as_echo_n "checking for $ac_word... " >&6; }
7829 if ${ac_cv_prog_RANLIB+:} false; then :
7830 $as_echo_n "(cached) " >&6
7831 else
7832 if test -n "$RANLIB"; then
7833 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7834 else
7835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7836 for as_dir in $PATH
7838 IFS=$as_save_IFS
7839 test -z "$as_dir" && as_dir=.
7840 for ac_exec_ext in '' $ac_executable_extensions; do
7841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7842 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7844 break 2
7846 done
7847 done
7848 IFS=$as_save_IFS
7852 RANLIB=$ac_cv_prog_RANLIB
7853 if test -n "$RANLIB"; then
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7855 $as_echo "$RANLIB" >&6; }
7856 else
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7858 $as_echo "no" >&6; }
7863 if test -z "$ac_cv_prog_RANLIB"; then
7864 ac_ct_RANLIB=$RANLIB
7865 # Extract the first word of "ranlib", so it can be a program name with args.
7866 set dummy ranlib; ac_word=$2
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7868 $as_echo_n "checking for $ac_word... " >&6; }
7869 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7870 $as_echo_n "(cached) " >&6
7871 else
7872 if test -n "$ac_ct_RANLIB"; then
7873 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7874 else
7875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7876 for as_dir in $PATH
7878 IFS=$as_save_IFS
7879 test -z "$as_dir" && as_dir=.
7880 for ac_exec_ext in '' $ac_executable_extensions; do
7881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7882 ac_cv_prog_ac_ct_RANLIB="ranlib"
7883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7884 break 2
7886 done
7887 done
7888 IFS=$as_save_IFS
7892 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7893 if test -n "$ac_ct_RANLIB"; then
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7895 $as_echo "$ac_ct_RANLIB" >&6; }
7896 else
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7898 $as_echo "no" >&6; }
7901 if test "x$ac_ct_RANLIB" = x; then
7902 RANLIB=":"
7903 else
7904 case $cross_compiling:$ac_tool_warned in
7905 yes:)
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7907 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7908 ac_tool_warned=yes ;;
7909 esac
7910 RANLIB=$ac_ct_RANLIB
7912 else
7913 RANLIB="$ac_cv_prog_RANLIB"
7916 test -z "$RANLIB" && RANLIB=:
7923 # Determine commands to create old-style static archives.
7924 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7925 old_postinstall_cmds='chmod 644 $oldlib'
7926 old_postuninstall_cmds=
7928 if test -n "$RANLIB"; then
7929 case $host_os in
7930 openbsd*)
7931 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7934 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7936 esac
7937 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7940 case $host_os in
7941 darwin*)
7942 lock_old_archive_extraction=yes ;;
7944 lock_old_archive_extraction=no ;;
7945 esac
7985 # If no C compiler was specified, use CC.
7986 LTCC=${LTCC-"$CC"}
7988 # If no C compiler flags were specified, use CFLAGS.
7989 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7991 # Allow CC to be a program name with arguments.
7992 compiler=$CC
7995 # Check for command to grab the raw symbol name followed by C symbol from nm.
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7997 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7998 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7999 $as_echo_n "(cached) " >&6
8000 else
8002 # These are sane defaults that work on at least a few old systems.
8003 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8005 # Character class describing NM global symbol codes.
8006 symcode='[BCDEGRST]'
8008 # Regexp to match symbols that can be accessed directly from C.
8009 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8011 # Define system-specific variables.
8012 case $host_os in
8013 aix*)
8014 symcode='[BCDT]'
8016 cygwin* | mingw* | pw32* | cegcc*)
8017 symcode='[ABCDGISTW]'
8019 hpux*)
8020 if test "$host_cpu" = ia64; then
8021 symcode='[ABCDEGRST]'
8024 irix* | nonstopux*)
8025 symcode='[BCDEGRST]'
8027 osf*)
8028 symcode='[BCDEGQRST]'
8030 solaris*)
8031 symcode='[BDRT]'
8033 sco3.2v5*)
8034 symcode='[DT]'
8036 sysv4.2uw2*)
8037 symcode='[DT]'
8039 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8040 symcode='[ABDT]'
8042 sysv4)
8043 symcode='[DFNSTU]'
8045 esac
8047 # If we're using GNU nm, then use its standard symbol codes.
8048 case `$NM -V 2>&1` in
8049 *GNU* | *'with BFD'*)
8050 symcode='[ABCDGIRSTW]' ;;
8051 esac
8053 # Transform an extracted symbol line into a proper C declaration.
8054 # Some systems (esp. on ia64) link data and code symbols differently,
8055 # so use this general approach.
8056 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8058 # Transform an extracted symbol line into symbol name and symbol address
8059 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
8060 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'"
8062 # Handle CRLF in mingw tool chain
8063 opt_cr=
8064 case $build_os in
8065 mingw*)
8066 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8068 esac
8070 # Try without a prefix underscore, then with it.
8071 for ac_symprfx in "" "_"; do
8073 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8074 symxfrm="\\1 $ac_symprfx\\2 \\2"
8076 # Write the raw and C identifiers.
8077 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8078 # Fake it for dumpbin and say T for any non-static function
8079 # and D for any global variable.
8080 # Also find C++ and __fastcall symbols from MSVC++,
8081 # which start with @ or ?.
8082 lt_cv_sys_global_symbol_pipe="$AWK '"\
8083 " {last_section=section; section=\$ 3};"\
8084 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8085 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8086 " \$ 0!~/External *\|/{next};"\
8087 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8088 " {if(hide[section]) next};"\
8089 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8090 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8091 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
8092 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8093 " ' prfx=^$ac_symprfx"
8094 else
8095 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8097 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8099 # Check to see that the pipe works correctly.
8100 pipe_works=no
8102 rm -f conftest*
8103 cat > conftest.$ac_ext <<_LT_EOF
8104 #ifdef __cplusplus
8105 extern "C" {
8106 #endif
8107 char nm_test_var;
8108 void nm_test_func(void);
8109 void nm_test_func(void){}
8110 #ifdef __cplusplus
8112 #endif
8113 int main(){nm_test_var='a';nm_test_func();return(0);}
8114 _LT_EOF
8116 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8117 (eval $ac_compile) 2>&5
8118 ac_status=$?
8119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8120 test $ac_status = 0; }; then
8121 # Now try to grab the symbols.
8122 nlist=conftest.nm
8123 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8124 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8125 ac_status=$?
8126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8127 test $ac_status = 0; } && test -s "$nlist"; then
8128 # Try sorting and uniquifying the output.
8129 if sort "$nlist" | uniq > "$nlist"T; then
8130 mv -f "$nlist"T "$nlist"
8131 else
8132 rm -f "$nlist"T
8135 # Make sure that we snagged all the symbols we need.
8136 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8137 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8138 cat <<_LT_EOF > conftest.$ac_ext
8139 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
8140 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
8141 /* DATA imports from DLLs on WIN32 con't be const, because runtime
8142 relocations are performed -- see ld's documentation on pseudo-relocs. */
8143 # define LT_DLSYM_CONST
8144 #elif defined(__osf__)
8145 /* This system does not cope well with relocations in const data. */
8146 # define LT_DLSYM_CONST
8147 #else
8148 # define LT_DLSYM_CONST const
8149 #endif
8151 #ifdef __cplusplus
8152 extern "C" {
8153 #endif
8155 _LT_EOF
8156 # Now generate the symbol file.
8157 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8159 cat <<_LT_EOF >> conftest.$ac_ext
8161 /* The mapping between symbol names and symbols. */
8162 LT_DLSYM_CONST struct {
8163 const char *name;
8164 void *address;
8166 lt__PROGRAM__LTX_preloaded_symbols[] =
8168 { "@PROGRAM@", (void *) 0 },
8169 _LT_EOF
8170 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8171 cat <<\_LT_EOF >> conftest.$ac_ext
8172 {0, (void *) 0}
8175 /* This works around a problem in FreeBSD linker */
8176 #ifdef FREEBSD_WORKAROUND
8177 static const void *lt_preloaded_setup() {
8178 return lt__PROGRAM__LTX_preloaded_symbols;
8180 #endif
8182 #ifdef __cplusplus
8184 #endif
8185 _LT_EOF
8186 # Now try linking the two files.
8187 mv conftest.$ac_objext conftstm.$ac_objext
8188 lt_globsym_save_LIBS=$LIBS
8189 lt_globsym_save_CFLAGS=$CFLAGS
8190 LIBS="conftstm.$ac_objext"
8191 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8192 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8193 (eval $ac_link) 2>&5
8194 ac_status=$?
8195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8196 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8197 pipe_works=yes
8199 LIBS=$lt_globsym_save_LIBS
8200 CFLAGS=$lt_globsym_save_CFLAGS
8201 else
8202 echo "cannot find nm_test_func in $nlist" >&5
8204 else
8205 echo "cannot find nm_test_var in $nlist" >&5
8207 else
8208 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8210 else
8211 echo "$progname: failed program was:" >&5
8212 cat conftest.$ac_ext >&5
8214 rm -rf conftest* conftst*
8216 # Do not use the global_symbol_pipe unless it works.
8217 if test "$pipe_works" = yes; then
8218 break
8219 else
8220 lt_cv_sys_global_symbol_pipe=
8222 done
8226 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8227 lt_cv_sys_global_symbol_to_cdecl=
8229 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8231 $as_echo "failed" >&6; }
8232 else
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8234 $as_echo "ok" >&6; }
8237 # Response file support.
8238 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8239 nm_file_list_spec='@'
8240 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8241 nm_file_list_spec='@'
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8271 $as_echo_n "checking for sysroot... " >&6; }
8273 # Check whether --with-sysroot was given.
8274 if test "${with_sysroot+set}" = set; then :
8275 withval=$with_sysroot;
8276 else
8277 with_sysroot=no
8281 lt_sysroot=
8282 case ${with_sysroot} in #(
8283 yes)
8284 if test "$GCC" = yes; then
8285 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8287 ;; #(
8289 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8290 ;; #(
8291 no|'')
8292 ;; #(
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8295 $as_echo "${with_sysroot}" >&6; }
8296 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8298 esac
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8301 $as_echo "${lt_sysroot:-no}" >&6; }
8307 # Check whether --enable-libtool-lock was given.
8308 if test "${enable_libtool_lock+set}" = set; then :
8309 enableval=$enable_libtool_lock;
8312 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8314 # Some flags need to be propagated to the compiler or linker for good
8315 # libtool support.
8316 case $host in
8317 ia64-*-hpux*)
8318 # Find out which ABI we are using.
8319 echo 'int i;' > conftest.$ac_ext
8320 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8321 (eval $ac_compile) 2>&5
8322 ac_status=$?
8323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8324 test $ac_status = 0; }; then
8325 case `/usr/bin/file conftest.$ac_objext` in
8326 *ELF-32*)
8327 HPUX_IA64_MODE="32"
8329 *ELF-64*)
8330 HPUX_IA64_MODE="64"
8332 esac
8334 rm -rf conftest*
8336 *-*-irix6*)
8337 # Find out which ABI we are using.
8338 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8339 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8340 (eval $ac_compile) 2>&5
8341 ac_status=$?
8342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8343 test $ac_status = 0; }; then
8344 if test "$lt_cv_prog_gnu_ld" = yes; then
8345 case `/usr/bin/file conftest.$ac_objext` in
8346 *32-bit*)
8347 LD="${LD-ld} -melf32bsmip"
8349 *N32*)
8350 LD="${LD-ld} -melf32bmipn32"
8352 *64-bit*)
8353 LD="${LD-ld} -melf64bmip"
8355 esac
8356 else
8357 case `/usr/bin/file conftest.$ac_objext` in
8358 *32-bit*)
8359 LD="${LD-ld} -32"
8361 *N32*)
8362 LD="${LD-ld} -n32"
8364 *64-bit*)
8365 LD="${LD-ld} -64"
8367 esac
8370 rm -rf conftest*
8373 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8374 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8375 # Find out which ABI we are using.
8376 echo 'int i;' > conftest.$ac_ext
8377 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8378 (eval $ac_compile) 2>&5
8379 ac_status=$?
8380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8381 test $ac_status = 0; }; then
8382 case `/usr/bin/file conftest.o` in
8383 *32-bit*)
8384 case $host in
8385 x86_64-*kfreebsd*-gnu)
8386 LD="${LD-ld} -m elf_i386_fbsd"
8388 x86_64-*linux*)
8389 case `/usr/bin/file conftest.o` in
8390 *x86-64*)
8391 LD="${LD-ld} -m elf32_x86_64"
8394 LD="${LD-ld} -m elf_i386"
8396 esac
8398 powerpc64le-*)
8399 LD="${LD-ld} -m elf32lppclinux"
8401 powerpc64-*)
8402 LD="${LD-ld} -m elf32ppclinux"
8404 s390x-*linux*)
8405 LD="${LD-ld} -m elf_s390"
8407 sparc64-*linux*)
8408 LD="${LD-ld} -m elf32_sparc"
8410 esac
8412 *64-bit*)
8413 case $host in
8414 x86_64-*kfreebsd*-gnu)
8415 LD="${LD-ld} -m elf_x86_64_fbsd"
8417 x86_64-*linux*)
8418 LD="${LD-ld} -m elf_x86_64"
8420 powerpcle-*)
8421 LD="${LD-ld} -m elf64lppc"
8423 powerpc-*)
8424 LD="${LD-ld} -m elf64ppc"
8426 s390*-*linux*|s390*-*tpf*)
8427 LD="${LD-ld} -m elf64_s390"
8429 sparc*-*linux*)
8430 LD="${LD-ld} -m elf64_sparc"
8432 esac
8434 esac
8436 rm -rf conftest*
8439 *-*-sco3.2v5*)
8440 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8441 SAVE_CFLAGS="$CFLAGS"
8442 CFLAGS="$CFLAGS -belf"
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8444 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8445 if ${lt_cv_cc_needs_belf+:} false; then :
8446 $as_echo_n "(cached) " >&6
8447 else
8448 ac_ext=c
8449 ac_cpp='$CPP $CPPFLAGS'
8450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8455 /* end confdefs.h. */
8458 main ()
8462 return 0;
8464 _ACEOF
8465 if ac_fn_c_try_link "$LINENO"; then :
8466 lt_cv_cc_needs_belf=yes
8467 else
8468 lt_cv_cc_needs_belf=no
8470 rm -f core conftest.err conftest.$ac_objext \
8471 conftest$ac_exeext conftest.$ac_ext
8472 ac_ext=c
8473 ac_cpp='$CPP $CPPFLAGS'
8474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8480 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8481 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8482 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8483 CFLAGS="$SAVE_CFLAGS"
8486 *-*solaris*)
8487 # Find out which ABI we are using.
8488 echo 'int i;' > conftest.$ac_ext
8489 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8490 (eval $ac_compile) 2>&5
8491 ac_status=$?
8492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8493 test $ac_status = 0; }; then
8494 case `/usr/bin/file conftest.o` in
8495 *64-bit*)
8496 case $lt_cv_prog_gnu_ld in
8497 yes*)
8498 case $host in
8499 i?86-*-solaris*)
8500 LD="${LD-ld} -m elf_x86_64"
8502 sparc*-*-solaris*)
8503 LD="${LD-ld} -m elf64_sparc"
8505 esac
8506 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8507 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8508 LD="${LD-ld}_sol2"
8512 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8513 LD="${LD-ld} -64"
8516 esac
8518 esac
8520 rm -rf conftest*
8522 esac
8524 need_locks="$enable_libtool_lock"
8526 if test -n "$ac_tool_prefix"; then
8527 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8528 set dummy ${ac_tool_prefix}mt; ac_word=$2
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8530 $as_echo_n "checking for $ac_word... " >&6; }
8531 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8532 $as_echo_n "(cached) " >&6
8533 else
8534 if test -n "$MANIFEST_TOOL"; then
8535 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8536 else
8537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8538 for as_dir in $PATH
8540 IFS=$as_save_IFS
8541 test -z "$as_dir" && as_dir=.
8542 for ac_exec_ext in '' $ac_executable_extensions; do
8543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8544 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8546 break 2
8548 done
8549 done
8550 IFS=$as_save_IFS
8554 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8555 if test -n "$MANIFEST_TOOL"; then
8556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8557 $as_echo "$MANIFEST_TOOL" >&6; }
8558 else
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8560 $as_echo "no" >&6; }
8565 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8566 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8567 # Extract the first word of "mt", so it can be a program name with args.
8568 set dummy mt; ac_word=$2
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8570 $as_echo_n "checking for $ac_word... " >&6; }
8571 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8572 $as_echo_n "(cached) " >&6
8573 else
8574 if test -n "$ac_ct_MANIFEST_TOOL"; then
8575 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8576 else
8577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8578 for as_dir in $PATH
8580 IFS=$as_save_IFS
8581 test -z "$as_dir" && as_dir=.
8582 for ac_exec_ext in '' $ac_executable_extensions; do
8583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8584 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8586 break 2
8588 done
8589 done
8590 IFS=$as_save_IFS
8594 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8595 if test -n "$ac_ct_MANIFEST_TOOL"; then
8596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8597 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8598 else
8599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8600 $as_echo "no" >&6; }
8603 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8604 MANIFEST_TOOL=":"
8605 else
8606 case $cross_compiling:$ac_tool_warned in
8607 yes:)
8608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8609 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8610 ac_tool_warned=yes ;;
8611 esac
8612 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8614 else
8615 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8618 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8620 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8621 if ${lt_cv_path_mainfest_tool+:} false; then :
8622 $as_echo_n "(cached) " >&6
8623 else
8624 lt_cv_path_mainfest_tool=no
8625 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8626 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8627 cat conftest.err >&5
8628 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8629 lt_cv_path_mainfest_tool=yes
8631 rm -f conftest*
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8634 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8635 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8636 MANIFEST_TOOL=:
8644 case $host_os in
8645 rhapsody* | darwin*)
8646 if test -n "$ac_tool_prefix"; then
8647 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8648 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8650 $as_echo_n "checking for $ac_word... " >&6; }
8651 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8652 $as_echo_n "(cached) " >&6
8653 else
8654 if test -n "$DSYMUTIL"; then
8655 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8656 else
8657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8658 for as_dir in $PATH
8660 IFS=$as_save_IFS
8661 test -z "$as_dir" && as_dir=.
8662 for ac_exec_ext in '' $ac_executable_extensions; do
8663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8664 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8666 break 2
8668 done
8669 done
8670 IFS=$as_save_IFS
8674 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8675 if test -n "$DSYMUTIL"; then
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8677 $as_echo "$DSYMUTIL" >&6; }
8678 else
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8680 $as_echo "no" >&6; }
8685 if test -z "$ac_cv_prog_DSYMUTIL"; then
8686 ac_ct_DSYMUTIL=$DSYMUTIL
8687 # Extract the first word of "dsymutil", so it can be a program name with args.
8688 set dummy dsymutil; ac_word=$2
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8690 $as_echo_n "checking for $ac_word... " >&6; }
8691 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8692 $as_echo_n "(cached) " >&6
8693 else
8694 if test -n "$ac_ct_DSYMUTIL"; then
8695 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8696 else
8697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8698 for as_dir in $PATH
8700 IFS=$as_save_IFS
8701 test -z "$as_dir" && as_dir=.
8702 for ac_exec_ext in '' $ac_executable_extensions; do
8703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8704 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8706 break 2
8708 done
8709 done
8710 IFS=$as_save_IFS
8714 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8715 if test -n "$ac_ct_DSYMUTIL"; then
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8717 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8718 else
8719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8720 $as_echo "no" >&6; }
8723 if test "x$ac_ct_DSYMUTIL" = x; then
8724 DSYMUTIL=":"
8725 else
8726 case $cross_compiling:$ac_tool_warned in
8727 yes:)
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8729 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8730 ac_tool_warned=yes ;;
8731 esac
8732 DSYMUTIL=$ac_ct_DSYMUTIL
8734 else
8735 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8738 if test -n "$ac_tool_prefix"; then
8739 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8740 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8742 $as_echo_n "checking for $ac_word... " >&6; }
8743 if ${ac_cv_prog_NMEDIT+:} false; then :
8744 $as_echo_n "(cached) " >&6
8745 else
8746 if test -n "$NMEDIT"; then
8747 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8748 else
8749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8750 for as_dir in $PATH
8752 IFS=$as_save_IFS
8753 test -z "$as_dir" && as_dir=.
8754 for ac_exec_ext in '' $ac_executable_extensions; do
8755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8756 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8758 break 2
8760 done
8761 done
8762 IFS=$as_save_IFS
8766 NMEDIT=$ac_cv_prog_NMEDIT
8767 if test -n "$NMEDIT"; then
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8769 $as_echo "$NMEDIT" >&6; }
8770 else
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8772 $as_echo "no" >&6; }
8777 if test -z "$ac_cv_prog_NMEDIT"; then
8778 ac_ct_NMEDIT=$NMEDIT
8779 # Extract the first word of "nmedit", so it can be a program name with args.
8780 set dummy nmedit; ac_word=$2
8781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8782 $as_echo_n "checking for $ac_word... " >&6; }
8783 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8784 $as_echo_n "(cached) " >&6
8785 else
8786 if test -n "$ac_ct_NMEDIT"; then
8787 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8788 else
8789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8790 for as_dir in $PATH
8792 IFS=$as_save_IFS
8793 test -z "$as_dir" && as_dir=.
8794 for ac_exec_ext in '' $ac_executable_extensions; do
8795 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8796 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8798 break 2
8800 done
8801 done
8802 IFS=$as_save_IFS
8806 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8807 if test -n "$ac_ct_NMEDIT"; then
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8809 $as_echo "$ac_ct_NMEDIT" >&6; }
8810 else
8811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8812 $as_echo "no" >&6; }
8815 if test "x$ac_ct_NMEDIT" = x; then
8816 NMEDIT=":"
8817 else
8818 case $cross_compiling:$ac_tool_warned in
8819 yes:)
8820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8821 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8822 ac_tool_warned=yes ;;
8823 esac
8824 NMEDIT=$ac_ct_NMEDIT
8826 else
8827 NMEDIT="$ac_cv_prog_NMEDIT"
8830 if test -n "$ac_tool_prefix"; then
8831 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8832 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8834 $as_echo_n "checking for $ac_word... " >&6; }
8835 if ${ac_cv_prog_LIPO+:} false; then :
8836 $as_echo_n "(cached) " >&6
8837 else
8838 if test -n "$LIPO"; then
8839 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8840 else
8841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8842 for as_dir in $PATH
8844 IFS=$as_save_IFS
8845 test -z "$as_dir" && as_dir=.
8846 for ac_exec_ext in '' $ac_executable_extensions; do
8847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8848 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8850 break 2
8852 done
8853 done
8854 IFS=$as_save_IFS
8858 LIPO=$ac_cv_prog_LIPO
8859 if test -n "$LIPO"; then
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8861 $as_echo "$LIPO" >&6; }
8862 else
8863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8864 $as_echo "no" >&6; }
8869 if test -z "$ac_cv_prog_LIPO"; then
8870 ac_ct_LIPO=$LIPO
8871 # Extract the first word of "lipo", so it can be a program name with args.
8872 set dummy lipo; ac_word=$2
8873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8874 $as_echo_n "checking for $ac_word... " >&6; }
8875 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8876 $as_echo_n "(cached) " >&6
8877 else
8878 if test -n "$ac_ct_LIPO"; then
8879 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8880 else
8881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8882 for as_dir in $PATH
8884 IFS=$as_save_IFS
8885 test -z "$as_dir" && as_dir=.
8886 for ac_exec_ext in '' $ac_executable_extensions; do
8887 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8888 ac_cv_prog_ac_ct_LIPO="lipo"
8889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8890 break 2
8892 done
8893 done
8894 IFS=$as_save_IFS
8898 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8899 if test -n "$ac_ct_LIPO"; then
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8901 $as_echo "$ac_ct_LIPO" >&6; }
8902 else
8903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8904 $as_echo "no" >&6; }
8907 if test "x$ac_ct_LIPO" = x; then
8908 LIPO=":"
8909 else
8910 case $cross_compiling:$ac_tool_warned in
8911 yes:)
8912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8913 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8914 ac_tool_warned=yes ;;
8915 esac
8916 LIPO=$ac_ct_LIPO
8918 else
8919 LIPO="$ac_cv_prog_LIPO"
8922 if test -n "$ac_tool_prefix"; then
8923 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8924 set dummy ${ac_tool_prefix}otool; ac_word=$2
8925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8926 $as_echo_n "checking for $ac_word... " >&6; }
8927 if ${ac_cv_prog_OTOOL+:} false; then :
8928 $as_echo_n "(cached) " >&6
8929 else
8930 if test -n "$OTOOL"; then
8931 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8932 else
8933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8934 for as_dir in $PATH
8936 IFS=$as_save_IFS
8937 test -z "$as_dir" && as_dir=.
8938 for ac_exec_ext in '' $ac_executable_extensions; do
8939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8940 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8942 break 2
8944 done
8945 done
8946 IFS=$as_save_IFS
8950 OTOOL=$ac_cv_prog_OTOOL
8951 if test -n "$OTOOL"; then
8952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8953 $as_echo "$OTOOL" >&6; }
8954 else
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8956 $as_echo "no" >&6; }
8961 if test -z "$ac_cv_prog_OTOOL"; then
8962 ac_ct_OTOOL=$OTOOL
8963 # Extract the first word of "otool", so it can be a program name with args.
8964 set dummy otool; ac_word=$2
8965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8966 $as_echo_n "checking for $ac_word... " >&6; }
8967 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8968 $as_echo_n "(cached) " >&6
8969 else
8970 if test -n "$ac_ct_OTOOL"; then
8971 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8972 else
8973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8974 for as_dir in $PATH
8976 IFS=$as_save_IFS
8977 test -z "$as_dir" && as_dir=.
8978 for ac_exec_ext in '' $ac_executable_extensions; do
8979 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8980 ac_cv_prog_ac_ct_OTOOL="otool"
8981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8982 break 2
8984 done
8985 done
8986 IFS=$as_save_IFS
8990 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8991 if test -n "$ac_ct_OTOOL"; then
8992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8993 $as_echo "$ac_ct_OTOOL" >&6; }
8994 else
8995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8996 $as_echo "no" >&6; }
8999 if test "x$ac_ct_OTOOL" = x; then
9000 OTOOL=":"
9001 else
9002 case $cross_compiling:$ac_tool_warned in
9003 yes:)
9004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9005 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9006 ac_tool_warned=yes ;;
9007 esac
9008 OTOOL=$ac_ct_OTOOL
9010 else
9011 OTOOL="$ac_cv_prog_OTOOL"
9014 if test -n "$ac_tool_prefix"; then
9015 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9016 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9018 $as_echo_n "checking for $ac_word... " >&6; }
9019 if ${ac_cv_prog_OTOOL64+:} false; then :
9020 $as_echo_n "(cached) " >&6
9021 else
9022 if test -n "$OTOOL64"; then
9023 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9024 else
9025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9026 for as_dir in $PATH
9028 IFS=$as_save_IFS
9029 test -z "$as_dir" && as_dir=.
9030 for ac_exec_ext in '' $ac_executable_extensions; do
9031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9032 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9034 break 2
9036 done
9037 done
9038 IFS=$as_save_IFS
9042 OTOOL64=$ac_cv_prog_OTOOL64
9043 if test -n "$OTOOL64"; then
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9045 $as_echo "$OTOOL64" >&6; }
9046 else
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9048 $as_echo "no" >&6; }
9053 if test -z "$ac_cv_prog_OTOOL64"; then
9054 ac_ct_OTOOL64=$OTOOL64
9055 # Extract the first word of "otool64", so it can be a program name with args.
9056 set dummy otool64; ac_word=$2
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9058 $as_echo_n "checking for $ac_word... " >&6; }
9059 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9060 $as_echo_n "(cached) " >&6
9061 else
9062 if test -n "$ac_ct_OTOOL64"; then
9063 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9064 else
9065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9066 for as_dir in $PATH
9068 IFS=$as_save_IFS
9069 test -z "$as_dir" && as_dir=.
9070 for ac_exec_ext in '' $ac_executable_extensions; do
9071 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9072 ac_cv_prog_ac_ct_OTOOL64="otool64"
9073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9074 break 2
9076 done
9077 done
9078 IFS=$as_save_IFS
9082 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9083 if test -n "$ac_ct_OTOOL64"; then
9084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9085 $as_echo "$ac_ct_OTOOL64" >&6; }
9086 else
9087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9088 $as_echo "no" >&6; }
9091 if test "x$ac_ct_OTOOL64" = x; then
9092 OTOOL64=":"
9093 else
9094 case $cross_compiling:$ac_tool_warned in
9095 yes:)
9096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9097 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9098 ac_tool_warned=yes ;;
9099 esac
9100 OTOOL64=$ac_ct_OTOOL64
9102 else
9103 OTOOL64="$ac_cv_prog_OTOOL64"
9132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9133 $as_echo_n "checking for -single_module linker flag... " >&6; }
9134 if ${lt_cv_apple_cc_single_mod+:} false; then :
9135 $as_echo_n "(cached) " >&6
9136 else
9137 lt_cv_apple_cc_single_mod=no
9138 if test -z "${LT_MULTI_MODULE}"; then
9139 # By default we will add the -single_module flag. You can override
9140 # by either setting the environment variable LT_MULTI_MODULE
9141 # non-empty at configure time, or by adding -multi_module to the
9142 # link flags.
9143 rm -rf libconftest.dylib*
9144 echo "int foo(void){return 1;}" > conftest.c
9145 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9146 -dynamiclib -Wl,-single_module conftest.c" >&5
9147 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9148 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9149 _lt_result=$?
9150 # If there is a non-empty error log, and "single_module"
9151 # appears in it, assume the flag caused a linker warning
9152 if test -s conftest.err && $GREP single_module conftest.err; then
9153 cat conftest.err >&5
9154 # Otherwise, if the output was created with a 0 exit code from
9155 # the compiler, it worked.
9156 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
9157 lt_cv_apple_cc_single_mod=yes
9158 else
9159 cat conftest.err >&5
9161 rm -rf libconftest.dylib*
9162 rm -f conftest.*
9165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9166 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9169 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9170 if ${lt_cv_ld_exported_symbols_list+:} false; then :
9171 $as_echo_n "(cached) " >&6
9172 else
9173 lt_cv_ld_exported_symbols_list=no
9174 save_LDFLAGS=$LDFLAGS
9175 echo "_main" > conftest.sym
9176 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9178 /* end confdefs.h. */
9181 main ()
9185 return 0;
9187 _ACEOF
9188 if ac_fn_c_try_link "$LINENO"; then :
9189 lt_cv_ld_exported_symbols_list=yes
9190 else
9191 lt_cv_ld_exported_symbols_list=no
9193 rm -f core conftest.err conftest.$ac_objext \
9194 conftest$ac_exeext conftest.$ac_ext
9195 LDFLAGS="$save_LDFLAGS"
9198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9199 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9202 $as_echo_n "checking for -force_load linker flag... " >&6; }
9203 if ${lt_cv_ld_force_load+:} false; then :
9204 $as_echo_n "(cached) " >&6
9205 else
9206 lt_cv_ld_force_load=no
9207 cat > conftest.c << _LT_EOF
9208 int forced_loaded() { return 2;}
9209 _LT_EOF
9210 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9211 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9212 echo "$AR cru libconftest.a conftest.o" >&5
9213 $AR cru libconftest.a conftest.o 2>&5
9214 echo "$RANLIB libconftest.a" >&5
9215 $RANLIB libconftest.a 2>&5
9216 cat > conftest.c << _LT_EOF
9217 int main() { return 0;}
9218 _LT_EOF
9219 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9220 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9221 _lt_result=$?
9222 if test -s conftest.err && $GREP force_load conftest.err; then
9223 cat conftest.err >&5
9224 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
9225 lt_cv_ld_force_load=yes
9226 else
9227 cat conftest.err >&5
9229 rm -f conftest.err libconftest.a conftest conftest.c
9230 rm -rf conftest.dSYM
9233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9234 $as_echo "$lt_cv_ld_force_load" >&6; }
9235 case $host_os in
9236 rhapsody* | darwin1.[012])
9237 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9238 darwin1.*)
9239 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9240 darwin*) # darwin 5.x on
9241 # if running on 10.5 or later, the deployment target defaults
9242 # to the OS version, if on x86, and 10.4, the deployment
9243 # target defaults to 10.4. Don't you love it?
9244 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9245 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9246 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9247 10.[012]*)
9248 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9249 10.*)
9250 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9251 esac
9253 esac
9254 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9255 _lt_dar_single_mod='$single_module'
9257 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9258 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9259 else
9260 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9262 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9263 _lt_dsymutil='~$DSYMUTIL $lib || :'
9264 else
9265 _lt_dsymutil=
9268 esac
9270 for ac_header in dlfcn.h
9271 do :
9272 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9274 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9275 cat >>confdefs.h <<_ACEOF
9276 #define HAVE_DLFCN_H 1
9277 _ACEOF
9281 done
9287 # Set options
9288 enable_win32_dll=yes
9290 case $host in
9291 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
9292 if test -n "$ac_tool_prefix"; then
9293 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
9294 set dummy ${ac_tool_prefix}as; ac_word=$2
9295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9296 $as_echo_n "checking for $ac_word... " >&6; }
9297 if ${ac_cv_prog_AS+:} false; then :
9298 $as_echo_n "(cached) " >&6
9299 else
9300 if test -n "$AS"; then
9301 ac_cv_prog_AS="$AS" # Let the user override the test.
9302 else
9303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9304 for as_dir in $PATH
9306 IFS=$as_save_IFS
9307 test -z "$as_dir" && as_dir=.
9308 for ac_exec_ext in '' $ac_executable_extensions; do
9309 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9310 ac_cv_prog_AS="${ac_tool_prefix}as"
9311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9312 break 2
9314 done
9315 done
9316 IFS=$as_save_IFS
9320 AS=$ac_cv_prog_AS
9321 if test -n "$AS"; then
9322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
9323 $as_echo "$AS" >&6; }
9324 else
9325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9326 $as_echo "no" >&6; }
9331 if test -z "$ac_cv_prog_AS"; then
9332 ac_ct_AS=$AS
9333 # Extract the first word of "as", so it can be a program name with args.
9334 set dummy as; ac_word=$2
9335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9336 $as_echo_n "checking for $ac_word... " >&6; }
9337 if ${ac_cv_prog_ac_ct_AS+:} false; then :
9338 $as_echo_n "(cached) " >&6
9339 else
9340 if test -n "$ac_ct_AS"; then
9341 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
9342 else
9343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9344 for as_dir in $PATH
9346 IFS=$as_save_IFS
9347 test -z "$as_dir" && as_dir=.
9348 for ac_exec_ext in '' $ac_executable_extensions; do
9349 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9350 ac_cv_prog_ac_ct_AS="as"
9351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9352 break 2
9354 done
9355 done
9356 IFS=$as_save_IFS
9360 ac_ct_AS=$ac_cv_prog_ac_ct_AS
9361 if test -n "$ac_ct_AS"; then
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
9363 $as_echo "$ac_ct_AS" >&6; }
9364 else
9365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9366 $as_echo "no" >&6; }
9369 if test "x$ac_ct_AS" = x; then
9370 AS="false"
9371 else
9372 case $cross_compiling:$ac_tool_warned in
9373 yes:)
9374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9375 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9376 ac_tool_warned=yes ;;
9377 esac
9378 AS=$ac_ct_AS
9380 else
9381 AS="$ac_cv_prog_AS"
9384 if test -n "$ac_tool_prefix"; then
9385 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9386 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9388 $as_echo_n "checking for $ac_word... " >&6; }
9389 if ${ac_cv_prog_DLLTOOL+:} false; then :
9390 $as_echo_n "(cached) " >&6
9391 else
9392 if test -n "$DLLTOOL"; then
9393 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9394 else
9395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9396 for as_dir in $PATH
9398 IFS=$as_save_IFS
9399 test -z "$as_dir" && as_dir=.
9400 for ac_exec_ext in '' $ac_executable_extensions; do
9401 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9402 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9404 break 2
9406 done
9407 done
9408 IFS=$as_save_IFS
9412 DLLTOOL=$ac_cv_prog_DLLTOOL
9413 if test -n "$DLLTOOL"; then
9414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9415 $as_echo "$DLLTOOL" >&6; }
9416 else
9417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9418 $as_echo "no" >&6; }
9423 if test -z "$ac_cv_prog_DLLTOOL"; then
9424 ac_ct_DLLTOOL=$DLLTOOL
9425 # Extract the first word of "dlltool", so it can be a program name with args.
9426 set dummy dlltool; ac_word=$2
9427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9428 $as_echo_n "checking for $ac_word... " >&6; }
9429 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
9430 $as_echo_n "(cached) " >&6
9431 else
9432 if test -n "$ac_ct_DLLTOOL"; then
9433 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9434 else
9435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9436 for as_dir in $PATH
9438 IFS=$as_save_IFS
9439 test -z "$as_dir" && as_dir=.
9440 for ac_exec_ext in '' $ac_executable_extensions; do
9441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9442 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9444 break 2
9446 done
9447 done
9448 IFS=$as_save_IFS
9452 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9453 if test -n "$ac_ct_DLLTOOL"; then
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9455 $as_echo "$ac_ct_DLLTOOL" >&6; }
9456 else
9457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9458 $as_echo "no" >&6; }
9461 if test "x$ac_ct_DLLTOOL" = x; then
9462 DLLTOOL="false"
9463 else
9464 case $cross_compiling:$ac_tool_warned in
9465 yes:)
9466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9467 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9468 ac_tool_warned=yes ;;
9469 esac
9470 DLLTOOL=$ac_ct_DLLTOOL
9472 else
9473 DLLTOOL="$ac_cv_prog_DLLTOOL"
9476 if test -n "$ac_tool_prefix"; then
9477 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9478 set dummy ${ac_tool_prefix}objdump; ac_word=$2
9479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9480 $as_echo_n "checking for $ac_word... " >&6; }
9481 if ${ac_cv_prog_OBJDUMP+:} false; then :
9482 $as_echo_n "(cached) " >&6
9483 else
9484 if test -n "$OBJDUMP"; then
9485 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9486 else
9487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9488 for as_dir in $PATH
9490 IFS=$as_save_IFS
9491 test -z "$as_dir" && as_dir=.
9492 for ac_exec_ext in '' $ac_executable_extensions; do
9493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9494 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9496 break 2
9498 done
9499 done
9500 IFS=$as_save_IFS
9504 OBJDUMP=$ac_cv_prog_OBJDUMP
9505 if test -n "$OBJDUMP"; then
9506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9507 $as_echo "$OBJDUMP" >&6; }
9508 else
9509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9510 $as_echo "no" >&6; }
9515 if test -z "$ac_cv_prog_OBJDUMP"; then
9516 ac_ct_OBJDUMP=$OBJDUMP
9517 # Extract the first word of "objdump", so it can be a program name with args.
9518 set dummy objdump; ac_word=$2
9519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9520 $as_echo_n "checking for $ac_word... " >&6; }
9521 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
9522 $as_echo_n "(cached) " >&6
9523 else
9524 if test -n "$ac_ct_OBJDUMP"; then
9525 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9526 else
9527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9528 for as_dir in $PATH
9530 IFS=$as_save_IFS
9531 test -z "$as_dir" && as_dir=.
9532 for ac_exec_ext in '' $ac_executable_extensions; do
9533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9534 ac_cv_prog_ac_ct_OBJDUMP="objdump"
9535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9536 break 2
9538 done
9539 done
9540 IFS=$as_save_IFS
9544 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9545 if test -n "$ac_ct_OBJDUMP"; then
9546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9547 $as_echo "$ac_ct_OBJDUMP" >&6; }
9548 else
9549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9550 $as_echo "no" >&6; }
9553 if test "x$ac_ct_OBJDUMP" = x; then
9554 OBJDUMP="false"
9555 else
9556 case $cross_compiling:$ac_tool_warned in
9557 yes:)
9558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9559 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9560 ac_tool_warned=yes ;;
9561 esac
9562 OBJDUMP=$ac_ct_OBJDUMP
9564 else
9565 OBJDUMP="$ac_cv_prog_OBJDUMP"
9569 esac
9571 test -z "$AS" && AS=as
9577 test -z "$DLLTOOL" && DLLTOOL=dlltool
9583 test -z "$OBJDUMP" && OBJDUMP=objdump
9591 enable_dlopen=no
9595 # Check whether --enable-shared was given.
9596 if test "${enable_shared+set}" = set; then :
9597 enableval=$enable_shared; p=${PACKAGE-default}
9598 case $enableval in
9599 yes) enable_shared=yes ;;
9600 no) enable_shared=no ;;
9602 enable_shared=no
9603 # Look at the argument we got. We use all the common list separators.
9604 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9605 for pkg in $enableval; do
9606 IFS="$lt_save_ifs"
9607 if test "X$pkg" = "X$p"; then
9608 enable_shared=yes
9610 done
9611 IFS="$lt_save_ifs"
9613 esac
9614 else
9615 enable_shared=yes
9626 # Check whether --enable-static was given.
9627 if test "${enable_static+set}" = set; then :
9628 enableval=$enable_static; p=${PACKAGE-default}
9629 case $enableval in
9630 yes) enable_static=yes ;;
9631 no) enable_static=no ;;
9633 enable_static=no
9634 # Look at the argument we got. We use all the common list separators.
9635 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9636 for pkg in $enableval; do
9637 IFS="$lt_save_ifs"
9638 if test "X$pkg" = "X$p"; then
9639 enable_static=yes
9641 done
9642 IFS="$lt_save_ifs"
9644 esac
9645 else
9646 enable_static=yes
9658 # Check whether --with-pic was given.
9659 if test "${with_pic+set}" = set; then :
9660 withval=$with_pic; lt_p=${PACKAGE-default}
9661 case $withval in
9662 yes|no) pic_mode=$withval ;;
9664 pic_mode=default
9665 # Look at the argument we got. We use all the common list separators.
9666 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9667 for lt_pkg in $withval; do
9668 IFS="$lt_save_ifs"
9669 if test "X$lt_pkg" = "X$lt_p"; then
9670 pic_mode=yes
9672 done
9673 IFS="$lt_save_ifs"
9675 esac
9676 else
9677 pic_mode=default
9681 test -z "$pic_mode" && pic_mode=default
9689 # Check whether --enable-fast-install was given.
9690 if test "${enable_fast_install+set}" = set; then :
9691 enableval=$enable_fast_install; p=${PACKAGE-default}
9692 case $enableval in
9693 yes) enable_fast_install=yes ;;
9694 no) enable_fast_install=no ;;
9696 enable_fast_install=no
9697 # Look at the argument we got. We use all the common list separators.
9698 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9699 for pkg in $enableval; do
9700 IFS="$lt_save_ifs"
9701 if test "X$pkg" = "X$p"; then
9702 enable_fast_install=yes
9704 done
9705 IFS="$lt_save_ifs"
9707 esac
9708 else
9709 enable_fast_install=yes
9722 # This can be used to rebuild libtool when needed
9723 LIBTOOL_DEPS="$ltmain"
9725 # Always use our own libtool.
9726 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9757 test -z "$LN_S" && LN_S="ln -s"
9772 if test -n "${ZSH_VERSION+set}" ; then
9773 setopt NO_GLOB_SUBST
9776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9777 $as_echo_n "checking for objdir... " >&6; }
9778 if ${lt_cv_objdir+:} false; then :
9779 $as_echo_n "(cached) " >&6
9780 else
9781 rm -f .libs 2>/dev/null
9782 mkdir .libs 2>/dev/null
9783 if test -d .libs; then
9784 lt_cv_objdir=.libs
9785 else
9786 # MS-DOS does not allow filenames that begin with a dot.
9787 lt_cv_objdir=_libs
9789 rmdir .libs 2>/dev/null
9791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9792 $as_echo "$lt_cv_objdir" >&6; }
9793 objdir=$lt_cv_objdir
9799 cat >>confdefs.h <<_ACEOF
9800 #define LT_OBJDIR "$lt_cv_objdir/"
9801 _ACEOF
9806 case $host_os in
9807 aix3*)
9808 # AIX sometimes has problems with the GCC collect2 program. For some
9809 # reason, if we set the COLLECT_NAMES environment variable, the problems
9810 # vanish in a puff of smoke.
9811 if test "X${COLLECT_NAMES+set}" != Xset; then
9812 COLLECT_NAMES=
9813 export COLLECT_NAMES
9816 esac
9818 # Global variables:
9819 ofile=libtool
9820 can_build_shared=yes
9822 # All known linkers require a `.a' archive for static linking (except MSVC,
9823 # which needs '.lib').
9824 libext=a
9826 with_gnu_ld="$lt_cv_prog_gnu_ld"
9828 old_CC="$CC"
9829 old_CFLAGS="$CFLAGS"
9831 # Set sane defaults for various variables
9832 test -z "$CC" && CC=cc
9833 test -z "$LTCC" && LTCC=$CC
9834 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9835 test -z "$LD" && LD=ld
9836 test -z "$ac_objext" && ac_objext=o
9838 for cc_temp in $compiler""; do
9839 case $cc_temp in
9840 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9841 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9842 \-*) ;;
9843 *) break;;
9844 esac
9845 done
9846 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9849 # Only perform the check for file, if the check method requires it
9850 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9851 case $deplibs_check_method in
9852 file_magic*)
9853 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9855 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9856 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9857 $as_echo_n "(cached) " >&6
9858 else
9859 case $MAGIC_CMD in
9860 [\\/*] | ?:[\\/]*)
9861 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9864 lt_save_MAGIC_CMD="$MAGIC_CMD"
9865 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9866 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9867 for ac_dir in $ac_dummy; do
9868 IFS="$lt_save_ifs"
9869 test -z "$ac_dir" && ac_dir=.
9870 if test -f $ac_dir/${ac_tool_prefix}file; then
9871 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9872 if test -n "$file_magic_test_file"; then
9873 case $deplibs_check_method in
9874 "file_magic "*)
9875 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9876 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9877 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9878 $EGREP "$file_magic_regex" > /dev/null; then
9880 else
9881 cat <<_LT_EOF 1>&2
9883 *** Warning: the command libtool uses to detect shared libraries,
9884 *** $file_magic_cmd, produces output that libtool cannot recognize.
9885 *** The result is that libtool may fail to recognize shared libraries
9886 *** as such. This will affect the creation of libtool libraries that
9887 *** depend on shared libraries, but programs linked with such libtool
9888 *** libraries will work regardless of this problem. Nevertheless, you
9889 *** may want to report the problem to your system manager and/or to
9890 *** bug-libtool@gnu.org
9892 _LT_EOF
9893 fi ;;
9894 esac
9896 break
9898 done
9899 IFS="$lt_save_ifs"
9900 MAGIC_CMD="$lt_save_MAGIC_CMD"
9902 esac
9905 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9906 if test -n "$MAGIC_CMD"; then
9907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9908 $as_echo "$MAGIC_CMD" >&6; }
9909 else
9910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9911 $as_echo "no" >&6; }
9918 if test -z "$lt_cv_path_MAGIC_CMD"; then
9919 if test -n "$ac_tool_prefix"; then
9920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9921 $as_echo_n "checking for file... " >&6; }
9922 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9923 $as_echo_n "(cached) " >&6
9924 else
9925 case $MAGIC_CMD in
9926 [\\/*] | ?:[\\/]*)
9927 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9930 lt_save_MAGIC_CMD="$MAGIC_CMD"
9931 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9932 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9933 for ac_dir in $ac_dummy; do
9934 IFS="$lt_save_ifs"
9935 test -z "$ac_dir" && ac_dir=.
9936 if test -f $ac_dir/file; then
9937 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9938 if test -n "$file_magic_test_file"; then
9939 case $deplibs_check_method in
9940 "file_magic "*)
9941 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9942 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9943 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9944 $EGREP "$file_magic_regex" > /dev/null; then
9946 else
9947 cat <<_LT_EOF 1>&2
9949 *** Warning: the command libtool uses to detect shared libraries,
9950 *** $file_magic_cmd, produces output that libtool cannot recognize.
9951 *** The result is that libtool may fail to recognize shared libraries
9952 *** as such. This will affect the creation of libtool libraries that
9953 *** depend on shared libraries, but programs linked with such libtool
9954 *** libraries will work regardless of this problem. Nevertheless, you
9955 *** may want to report the problem to your system manager and/or to
9956 *** bug-libtool@gnu.org
9958 _LT_EOF
9959 fi ;;
9960 esac
9962 break
9964 done
9965 IFS="$lt_save_ifs"
9966 MAGIC_CMD="$lt_save_MAGIC_CMD"
9968 esac
9971 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9972 if test -n "$MAGIC_CMD"; then
9973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9974 $as_echo "$MAGIC_CMD" >&6; }
9975 else
9976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9977 $as_echo "no" >&6; }
9981 else
9982 MAGIC_CMD=:
9988 esac
9990 # Use C for the default configuration in the libtool script
9992 lt_save_CC="$CC"
9993 ac_ext=c
9994 ac_cpp='$CPP $CPPFLAGS'
9995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10000 # Source file extension for C test sources.
10001 ac_ext=c
10003 # Object file extension for compiled C test sources.
10004 objext=o
10005 objext=$objext
10007 # Code to be used in simple compile tests
10008 lt_simple_compile_test_code="int some_variable = 0;"
10010 # Code to be used in simple link tests
10011 lt_simple_link_test_code='int main(){return(0);}'
10019 # If no C compiler was specified, use CC.
10020 LTCC=${LTCC-"$CC"}
10022 # If no C compiler flags were specified, use CFLAGS.
10023 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10025 # Allow CC to be a program name with arguments.
10026 compiler=$CC
10028 # Save the default compiler, since it gets overwritten when the other
10029 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10030 compiler_DEFAULT=$CC
10032 # save warnings/boilerplate of simple test code
10033 ac_outfile=conftest.$ac_objext
10034 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10035 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10036 _lt_compiler_boilerplate=`cat conftest.err`
10037 $RM conftest*
10039 ac_outfile=conftest.$ac_objext
10040 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10041 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10042 _lt_linker_boilerplate=`cat conftest.err`
10043 $RM -r conftest*
10046 ## CAVEAT EMPTOR:
10047 ## There is no encapsulation within the following macros, do not change
10048 ## the running order or otherwise move them around unless you know exactly
10049 ## what you are doing...
10050 if test -n "$compiler"; then
10052 lt_prog_compiler_no_builtin_flag=
10054 if test "$GCC" = yes; then
10055 case $cc_basename in
10056 nvcc*)
10057 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10059 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10060 esac
10062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10063 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10064 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10065 $as_echo_n "(cached) " >&6
10066 else
10067 lt_cv_prog_compiler_rtti_exceptions=no
10068 ac_outfile=conftest.$ac_objext
10069 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10070 lt_compiler_flag="-fno-rtti -fno-exceptions"
10071 # Insert the option either (1) after the last *FLAGS variable, or
10072 # (2) before a word containing "conftest.", or (3) at the end.
10073 # Note that $ac_compile itself does not contain backslashes and begins
10074 # with a dollar sign (not a hyphen), so the echo should work correctly.
10075 # The option is referenced via a variable to avoid confusing sed.
10076 lt_compile=`echo "$ac_compile" | $SED \
10077 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10078 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10079 -e 's:$: $lt_compiler_flag:'`
10080 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10081 (eval "$lt_compile" 2>conftest.err)
10082 ac_status=$?
10083 cat conftest.err >&5
10084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10085 if (exit $ac_status) && test -s "$ac_outfile"; then
10086 # The compiler can only warn and ignore the option if not recognized
10087 # So say no if there are warnings other than the usual output.
10088 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10089 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10090 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10091 lt_cv_prog_compiler_rtti_exceptions=yes
10094 $RM conftest*
10097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10098 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10100 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10101 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10102 else
10113 lt_prog_compiler_wl=
10114 lt_prog_compiler_pic=
10115 lt_prog_compiler_static=
10118 if test "$GCC" = yes; then
10119 lt_prog_compiler_wl='-Wl,'
10120 lt_prog_compiler_static='-static'
10122 case $host_os in
10123 aix*)
10124 # All AIX code is PIC.
10125 if test "$host_cpu" = ia64; then
10126 # AIX 5 now supports IA64 processor
10127 lt_prog_compiler_static='-Bstatic'
10131 amigaos*)
10132 case $host_cpu in
10133 powerpc)
10134 # see comment about AmigaOS4 .so support
10135 lt_prog_compiler_pic='-fPIC'
10137 m68k)
10138 # FIXME: we need at least 68020 code to build shared libraries, but
10139 # adding the `-m68020' flag to GCC prevents building anything better,
10140 # like `-m68040'.
10141 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10143 esac
10146 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10147 # PIC is the default for these OSes.
10150 mingw* | cygwin* | pw32* | os2* | cegcc*)
10151 # This hack is so that the source file can tell whether it is being
10152 # built for inclusion in a dll (and should export symbols for example).
10153 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10154 # (--disable-auto-import) libraries
10155 lt_prog_compiler_pic='-DDLL_EXPORT'
10158 darwin* | rhapsody*)
10159 # PIC is the default on this platform
10160 # Common symbols not allowed in MH_DYLIB files
10161 lt_prog_compiler_pic='-fno-common'
10164 haiku*)
10165 # PIC is the default for Haiku.
10166 # The "-static" flag exists, but is broken.
10167 lt_prog_compiler_static=
10170 hpux*)
10171 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10172 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10173 # sets the default TLS model and affects inlining.
10174 case $host_cpu in
10175 hppa*64*)
10176 # +Z the default
10179 lt_prog_compiler_pic='-fPIC'
10181 esac
10184 interix[3-9]*)
10185 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10186 # Instead, we relocate shared libraries at runtime.
10189 msdosdjgpp*)
10190 # Just because we use GCC doesn't mean we suddenly get shared libraries
10191 # on systems that don't support them.
10192 lt_prog_compiler_can_build_shared=no
10193 enable_shared=no
10196 *nto* | *qnx*)
10197 # QNX uses GNU C++, but need to define -shared option too, otherwise
10198 # it will coredump.
10199 lt_prog_compiler_pic='-fPIC -shared'
10202 sysv4*MP*)
10203 if test -d /usr/nec; then
10204 lt_prog_compiler_pic=-Kconform_pic
10209 lt_prog_compiler_pic='-fPIC'
10211 esac
10213 case $cc_basename in
10214 nvcc*) # Cuda Compiler Driver 2.2
10215 lt_prog_compiler_wl='-Xlinker '
10216 if test -n "$lt_prog_compiler_pic"; then
10217 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10220 esac
10221 else
10222 # PORTME Check for flag to pass linker flags through the system compiler.
10223 case $host_os in
10224 aix*)
10225 lt_prog_compiler_wl='-Wl,'
10226 if test "$host_cpu" = ia64; then
10227 # AIX 5 now supports IA64 processor
10228 lt_prog_compiler_static='-Bstatic'
10229 else
10230 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10234 mingw* | cygwin* | pw32* | os2* | cegcc*)
10235 # This hack is so that the source file can tell whether it is being
10236 # built for inclusion in a dll (and should export symbols for example).
10237 lt_prog_compiler_pic='-DDLL_EXPORT'
10240 hpux9* | hpux10* | hpux11*)
10241 lt_prog_compiler_wl='-Wl,'
10242 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10243 # not for PA HP-UX.
10244 case $host_cpu in
10245 hppa*64*|ia64*)
10246 # +Z the default
10249 lt_prog_compiler_pic='+Z'
10251 esac
10252 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10253 lt_prog_compiler_static='${wl}-a ${wl}archive'
10256 irix5* | irix6* | nonstopux*)
10257 lt_prog_compiler_wl='-Wl,'
10258 # PIC (with -KPIC) is the default.
10259 lt_prog_compiler_static='-non_shared'
10262 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10263 case $cc_basename in
10264 # old Intel for x86_64 which still supported -KPIC.
10265 ecc*)
10266 lt_prog_compiler_wl='-Wl,'
10267 lt_prog_compiler_pic='-KPIC'
10268 lt_prog_compiler_static='-static'
10270 # icc used to be incompatible with GCC.
10271 # ICC 10 doesn't accept -KPIC any more.
10272 icc* | ifort*)
10273 lt_prog_compiler_wl='-Wl,'
10274 lt_prog_compiler_pic='-fPIC'
10275 lt_prog_compiler_static='-static'
10277 # Lahey Fortran 8.1.
10278 lf95*)
10279 lt_prog_compiler_wl='-Wl,'
10280 lt_prog_compiler_pic='--shared'
10281 lt_prog_compiler_static='--static'
10283 nagfor*)
10284 # NAG Fortran compiler
10285 lt_prog_compiler_wl='-Wl,-Wl,,'
10286 lt_prog_compiler_pic='-PIC'
10287 lt_prog_compiler_static='-Bstatic'
10289 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10290 # Portland Group compilers (*not* the Pentium gcc compiler,
10291 # which looks to be a dead project)
10292 lt_prog_compiler_wl='-Wl,'
10293 lt_prog_compiler_pic='-fpic'
10294 lt_prog_compiler_static='-Bstatic'
10296 ccc*)
10297 lt_prog_compiler_wl='-Wl,'
10298 # All Alpha code is PIC.
10299 lt_prog_compiler_static='-non_shared'
10301 xl* | bgxl* | bgf* | mpixl*)
10302 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10303 lt_prog_compiler_wl='-Wl,'
10304 lt_prog_compiler_pic='-qpic'
10305 lt_prog_compiler_static='-qstaticlink'
10308 case `$CC -V 2>&1 | sed 5q` in
10309 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10310 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10311 lt_prog_compiler_pic='-KPIC'
10312 lt_prog_compiler_static='-Bstatic'
10313 lt_prog_compiler_wl=''
10315 *Sun\ F* | *Sun*Fortran*)
10316 lt_prog_compiler_pic='-KPIC'
10317 lt_prog_compiler_static='-Bstatic'
10318 lt_prog_compiler_wl='-Qoption ld '
10320 *Sun\ C*)
10321 # Sun C 5.9
10322 lt_prog_compiler_pic='-KPIC'
10323 lt_prog_compiler_static='-Bstatic'
10324 lt_prog_compiler_wl='-Wl,'
10326 *Intel*\ [CF]*Compiler*)
10327 lt_prog_compiler_wl='-Wl,'
10328 lt_prog_compiler_pic='-fPIC'
10329 lt_prog_compiler_static='-static'
10331 *Portland\ Group*)
10332 lt_prog_compiler_wl='-Wl,'
10333 lt_prog_compiler_pic='-fpic'
10334 lt_prog_compiler_static='-Bstatic'
10336 esac
10338 esac
10341 newsos6)
10342 lt_prog_compiler_pic='-KPIC'
10343 lt_prog_compiler_static='-Bstatic'
10346 *nto* | *qnx*)
10347 # QNX uses GNU C++, but need to define -shared option too, otherwise
10348 # it will coredump.
10349 lt_prog_compiler_pic='-fPIC -shared'
10352 osf3* | osf4* | osf5*)
10353 lt_prog_compiler_wl='-Wl,'
10354 # All OSF/1 code is PIC.
10355 lt_prog_compiler_static='-non_shared'
10358 rdos*)
10359 lt_prog_compiler_static='-non_shared'
10362 solaris*)
10363 lt_prog_compiler_pic='-KPIC'
10364 lt_prog_compiler_static='-Bstatic'
10365 case $cc_basename in
10366 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10367 lt_prog_compiler_wl='-Qoption ld ';;
10369 lt_prog_compiler_wl='-Wl,';;
10370 esac
10373 sunos4*)
10374 lt_prog_compiler_wl='-Qoption ld '
10375 lt_prog_compiler_pic='-PIC'
10376 lt_prog_compiler_static='-Bstatic'
10379 sysv4 | sysv4.2uw2* | sysv4.3*)
10380 lt_prog_compiler_wl='-Wl,'
10381 lt_prog_compiler_pic='-KPIC'
10382 lt_prog_compiler_static='-Bstatic'
10385 sysv4*MP*)
10386 if test -d /usr/nec ;then
10387 lt_prog_compiler_pic='-Kconform_pic'
10388 lt_prog_compiler_static='-Bstatic'
10392 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10393 lt_prog_compiler_wl='-Wl,'
10394 lt_prog_compiler_pic='-KPIC'
10395 lt_prog_compiler_static='-Bstatic'
10398 unicos*)
10399 lt_prog_compiler_wl='-Wl,'
10400 lt_prog_compiler_can_build_shared=no
10403 uts4*)
10404 lt_prog_compiler_pic='-pic'
10405 lt_prog_compiler_static='-Bstatic'
10409 lt_prog_compiler_can_build_shared=no
10411 esac
10414 case $host_os in
10415 # For platforms which do not support PIC, -DPIC is meaningless:
10416 *djgpp*)
10417 lt_prog_compiler_pic=
10420 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10422 esac
10424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10425 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10426 if ${lt_cv_prog_compiler_pic+:} false; then :
10427 $as_echo_n "(cached) " >&6
10428 else
10429 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10432 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10433 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10436 # Check to make sure the PIC flag actually works.
10438 if test -n "$lt_prog_compiler_pic"; then
10439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10440 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10441 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10442 $as_echo_n "(cached) " >&6
10443 else
10444 lt_cv_prog_compiler_pic_works=no
10445 ac_outfile=conftest.$ac_objext
10446 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10447 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10448 # Insert the option either (1) after the last *FLAGS variable, or
10449 # (2) before a word containing "conftest.", or (3) at the end.
10450 # Note that $ac_compile itself does not contain backslashes and begins
10451 # with a dollar sign (not a hyphen), so the echo should work correctly.
10452 # The option is referenced via a variable to avoid confusing sed.
10453 lt_compile=`echo "$ac_compile" | $SED \
10454 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10455 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10456 -e 's:$: $lt_compiler_flag:'`
10457 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10458 (eval "$lt_compile" 2>conftest.err)
10459 ac_status=$?
10460 cat conftest.err >&5
10461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10462 if (exit $ac_status) && test -s "$ac_outfile"; then
10463 # The compiler can only warn and ignore the option if not recognized
10464 # So say no if there are warnings other than the usual output.
10465 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10466 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10467 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10468 lt_cv_prog_compiler_pic_works=yes
10471 $RM conftest*
10474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10475 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10477 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10478 case $lt_prog_compiler_pic in
10479 "" | " "*) ;;
10480 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10481 esac
10482 else
10483 lt_prog_compiler_pic=
10484 lt_prog_compiler_can_build_shared=no
10500 # Check to make sure the static flag actually works.
10502 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10504 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10505 if ${lt_cv_prog_compiler_static_works+:} false; then :
10506 $as_echo_n "(cached) " >&6
10507 else
10508 lt_cv_prog_compiler_static_works=no
10509 save_LDFLAGS="$LDFLAGS"
10510 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10511 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10512 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10513 # The linker can only warn and ignore the option if not recognized
10514 # So say no if there are warnings
10515 if test -s conftest.err; then
10516 # Append any errors to the config.log.
10517 cat conftest.err 1>&5
10518 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10519 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10520 if diff conftest.exp conftest.er2 >/dev/null; then
10521 lt_cv_prog_compiler_static_works=yes
10523 else
10524 lt_cv_prog_compiler_static_works=yes
10527 $RM -r conftest*
10528 LDFLAGS="$save_LDFLAGS"
10531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10532 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10534 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10536 else
10537 lt_prog_compiler_static=
10546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10547 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10548 if ${lt_cv_prog_compiler_c_o+:} false; then :
10549 $as_echo_n "(cached) " >&6
10550 else
10551 lt_cv_prog_compiler_c_o=no
10552 $RM -r conftest 2>/dev/null
10553 mkdir conftest
10554 cd conftest
10555 mkdir out
10556 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10558 lt_compiler_flag="-o out/conftest2.$ac_objext"
10559 # Insert the option either (1) after the last *FLAGS variable, or
10560 # (2) before a word containing "conftest.", or (3) at the end.
10561 # Note that $ac_compile itself does not contain backslashes and begins
10562 # with a dollar sign (not a hyphen), so the echo should work correctly.
10563 lt_compile=`echo "$ac_compile" | $SED \
10564 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10565 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10566 -e 's:$: $lt_compiler_flag:'`
10567 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10568 (eval "$lt_compile" 2>out/conftest.err)
10569 ac_status=$?
10570 cat out/conftest.err >&5
10571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10572 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10573 then
10574 # The compiler can only warn and ignore the option if not recognized
10575 # So say no if there are warnings
10576 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10577 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10578 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10579 lt_cv_prog_compiler_c_o=yes
10582 chmod u+w . 2>&5
10583 $RM conftest*
10584 # SGI C++ compiler will create directory out/ii_files/ for
10585 # template instantiation
10586 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10587 $RM out/* && rmdir out
10588 cd ..
10589 $RM -r conftest
10590 $RM conftest*
10593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10594 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10602 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10603 if ${lt_cv_prog_compiler_c_o+:} false; then :
10604 $as_echo_n "(cached) " >&6
10605 else
10606 lt_cv_prog_compiler_c_o=no
10607 $RM -r conftest 2>/dev/null
10608 mkdir conftest
10609 cd conftest
10610 mkdir out
10611 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10613 lt_compiler_flag="-o out/conftest2.$ac_objext"
10614 # Insert the option either (1) after the last *FLAGS variable, or
10615 # (2) before a word containing "conftest.", or (3) at the end.
10616 # Note that $ac_compile itself does not contain backslashes and begins
10617 # with a dollar sign (not a hyphen), so the echo should work correctly.
10618 lt_compile=`echo "$ac_compile" | $SED \
10619 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10620 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10621 -e 's:$: $lt_compiler_flag:'`
10622 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10623 (eval "$lt_compile" 2>out/conftest.err)
10624 ac_status=$?
10625 cat out/conftest.err >&5
10626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10627 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10628 then
10629 # The compiler can only warn and ignore the option if not recognized
10630 # So say no if there are warnings
10631 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10632 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10633 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10634 lt_cv_prog_compiler_c_o=yes
10637 chmod u+w . 2>&5
10638 $RM conftest*
10639 # SGI C++ compiler will create directory out/ii_files/ for
10640 # template instantiation
10641 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10642 $RM out/* && rmdir out
10643 cd ..
10644 $RM -r conftest
10645 $RM conftest*
10648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10649 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10654 hard_links="nottested"
10655 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10656 # do not overwrite the value of need_locks provided by the user
10657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10658 $as_echo_n "checking if we can lock with hard links... " >&6; }
10659 hard_links=yes
10660 $RM conftest*
10661 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10662 touch conftest.a
10663 ln conftest.a conftest.b 2>&5 || hard_links=no
10664 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10666 $as_echo "$hard_links" >&6; }
10667 if test "$hard_links" = no; then
10668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10669 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10670 need_locks=warn
10672 else
10673 need_locks=no
10681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10682 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10684 runpath_var=
10685 allow_undefined_flag=
10686 always_export_symbols=no
10687 archive_cmds=
10688 archive_expsym_cmds=
10689 compiler_needs_object=no
10690 enable_shared_with_static_runtimes=no
10691 export_dynamic_flag_spec=
10692 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10693 hardcode_automatic=no
10694 hardcode_direct=no
10695 hardcode_direct_absolute=no
10696 hardcode_libdir_flag_spec=
10697 hardcode_libdir_separator=
10698 hardcode_minus_L=no
10699 hardcode_shlibpath_var=unsupported
10700 inherit_rpath=no
10701 link_all_deplibs=unknown
10702 module_cmds=
10703 module_expsym_cmds=
10704 old_archive_from_new_cmds=
10705 old_archive_from_expsyms_cmds=
10706 thread_safe_flag_spec=
10707 whole_archive_flag_spec=
10708 # include_expsyms should be a list of space-separated symbols to be *always*
10709 # included in the symbol list
10710 include_expsyms=
10711 # exclude_expsyms can be an extended regexp of symbols to exclude
10712 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10713 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10714 # as well as any symbol that contains `d'.
10715 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10716 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10717 # platforms (ab)use it in PIC code, but their linkers get confused if
10718 # the symbol is explicitly referenced. Since portable code cannot
10719 # rely on this symbol name, it's probably fine to never include it in
10720 # preloaded symbol tables.
10721 # Exclude shared library initialization/finalization symbols.
10722 extract_expsyms_cmds=
10724 case $host_os in
10725 cygwin* | mingw* | pw32* | cegcc*)
10726 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10727 # When not using gcc, we currently assume that we are using
10728 # Microsoft Visual C++.
10729 if test "$GCC" != yes; then
10730 with_gnu_ld=no
10733 interix*)
10734 # we just hope/assume this is gcc and not c89 (= MSVC++)
10735 with_gnu_ld=yes
10737 openbsd*)
10738 with_gnu_ld=no
10740 linux* | k*bsd*-gnu | gnu*)
10741 link_all_deplibs=no
10743 esac
10745 ld_shlibs=yes
10747 # On some targets, GNU ld is compatible enough with the native linker
10748 # that we're better off using the native interface for both.
10749 lt_use_gnu_ld_interface=no
10750 if test "$with_gnu_ld" = yes; then
10751 case $host_os in
10752 aix*)
10753 # The AIX port of GNU ld has always aspired to compatibility
10754 # with the native linker. However, as the warning in the GNU ld
10755 # block says, versions before 2.19.5* couldn't really create working
10756 # shared libraries, regardless of the interface used.
10757 case `$LD -v 2>&1` in
10758 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10759 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10760 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10762 lt_use_gnu_ld_interface=yes
10764 esac
10767 lt_use_gnu_ld_interface=yes
10769 esac
10772 if test "$lt_use_gnu_ld_interface" = yes; then
10773 # If archive_cmds runs LD, not CC, wlarc should be empty
10774 wlarc='${wl}'
10776 # Set some defaults for GNU ld with shared library support. These
10777 # are reset later if shared libraries are not supported. Putting them
10778 # here allows them to be overridden if necessary.
10779 runpath_var=LD_RUN_PATH
10780 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10781 export_dynamic_flag_spec='${wl}--export-dynamic'
10782 # ancient GNU ld didn't support --whole-archive et. al.
10783 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10784 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10785 else
10786 whole_archive_flag_spec=
10788 supports_anon_versioning=no
10789 case `$LD -v 2>&1` in
10790 *GNU\ gold*) supports_anon_versioning=yes ;;
10791 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10792 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10793 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10794 *\ 2.11.*) ;; # other 2.11 versions
10795 *) supports_anon_versioning=yes ;;
10796 esac
10798 # See if GNU ld supports shared libraries.
10799 case $host_os in
10800 aix[3-9]*)
10801 # On AIX/PPC, the GNU linker is very broken
10802 if test "$host_cpu" != ia64; then
10803 ld_shlibs=no
10804 cat <<_LT_EOF 1>&2
10806 *** Warning: the GNU linker, at least up to release 2.19, is reported
10807 *** to be unable to reliably create shared libraries on AIX.
10808 *** Therefore, libtool is disabling shared libraries support. If you
10809 *** really care for shared libraries, you may want to install binutils
10810 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10811 *** You will then need to restart the configuration process.
10813 _LT_EOF
10817 amigaos*)
10818 case $host_cpu in
10819 powerpc)
10820 # see comment about AmigaOS4 .so support
10821 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10822 archive_expsym_cmds=''
10824 m68k)
10825 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)'
10826 hardcode_libdir_flag_spec='-L$libdir'
10827 hardcode_minus_L=yes
10829 esac
10832 beos*)
10833 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10834 allow_undefined_flag=unsupported
10835 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10836 # support --undefined. This deserves some investigation. FIXME
10837 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10838 else
10839 ld_shlibs=no
10843 cygwin* | mingw* | pw32* | cegcc*)
10844 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10845 # as there is no search path for DLLs.
10846 hardcode_libdir_flag_spec='-L$libdir'
10847 export_dynamic_flag_spec='${wl}--export-all-symbols'
10848 allow_undefined_flag=unsupported
10849 always_export_symbols=no
10850 enable_shared_with_static_runtimes=yes
10851 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'
10852 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10854 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10855 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10856 # If the export-symbols file already is a .def file (1st line
10857 # is EXPORTS), use it as is; otherwise, prepend...
10858 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10859 cp $export_symbols $output_objdir/$soname.def;
10860 else
10861 echo EXPORTS > $output_objdir/$soname.def;
10862 cat $export_symbols >> $output_objdir/$soname.def;
10864 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10865 else
10866 ld_shlibs=no
10870 haiku*)
10871 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10872 link_all_deplibs=yes
10875 interix[3-9]*)
10876 hardcode_direct=no
10877 hardcode_shlibpath_var=no
10878 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10879 export_dynamic_flag_spec='${wl}-E'
10880 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10881 # Instead, shared libraries are loaded at an image base (0x10000000 by
10882 # default) and relocated if they conflict, which is a slow very memory
10883 # consuming and fragmenting process. To avoid this, we pick a random,
10884 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10885 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10886 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10887 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'
10890 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10891 tmp_diet=no
10892 if test "$host_os" = linux-dietlibc; then
10893 case $cc_basename in
10894 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10895 esac
10897 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10898 && test "$tmp_diet" = no
10899 then
10900 tmp_addflag=' $pic_flag'
10901 tmp_sharedflag='-shared'
10902 case $cc_basename,$host_cpu in
10903 pgcc*) # Portland Group C compiler
10904 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'
10905 tmp_addflag=' $pic_flag'
10907 pgf77* | pgf90* | pgf95* | pgfortran*)
10908 # Portland Group f77 and f90 compilers
10909 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'
10910 tmp_addflag=' $pic_flag -Mnomain' ;;
10911 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10912 tmp_addflag=' -i_dynamic' ;;
10913 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10914 tmp_addflag=' -i_dynamic -nofor_main' ;;
10915 ifc* | ifort*) # Intel Fortran compiler
10916 tmp_addflag=' -nofor_main' ;;
10917 lf95*) # Lahey Fortran 8.1
10918 whole_archive_flag_spec=
10919 tmp_sharedflag='--shared' ;;
10920 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10921 tmp_sharedflag='-qmkshrobj'
10922 tmp_addflag= ;;
10923 nvcc*) # Cuda Compiler Driver 2.2
10924 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'
10925 compiler_needs_object=yes
10927 esac
10928 case `$CC -V 2>&1 | sed 5q` in
10929 *Sun\ C*) # Sun C 5.9
10930 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'
10931 compiler_needs_object=yes
10932 tmp_sharedflag='-G' ;;
10933 *Sun\ F*) # Sun Fortran 8.3
10934 tmp_sharedflag='-G' ;;
10935 esac
10936 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10938 if test "x$supports_anon_versioning" = xyes; then
10939 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10940 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10941 echo "local: *; };" >> $output_objdir/$libname.ver~
10942 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10945 case $cc_basename in
10946 xlf* | bgf* | bgxlf* | mpixlf*)
10947 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10948 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10949 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10950 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10951 if test "x$supports_anon_versioning" = xyes; then
10952 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10953 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10954 echo "local: *; };" >> $output_objdir/$libname.ver~
10955 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10958 esac
10959 else
10960 ld_shlibs=no
10964 netbsd* | netbsdelf*-gnu)
10965 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10966 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10967 wlarc=
10968 else
10969 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10970 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10974 solaris*)
10975 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10976 ld_shlibs=no
10977 cat <<_LT_EOF 1>&2
10979 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10980 *** create shared libraries on Solaris systems. Therefore, libtool
10981 *** is disabling shared libraries support. We urge you to upgrade GNU
10982 *** binutils to release 2.9.1 or newer. Another option is to modify
10983 *** your PATH or compiler configuration so that the native linker is
10984 *** used, and then restart.
10986 _LT_EOF
10987 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10988 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10989 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10990 else
10991 ld_shlibs=no
10995 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10996 case `$LD -v 2>&1` in
10997 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10998 ld_shlibs=no
10999 cat <<_LT_EOF 1>&2
11001 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11002 *** reliably create shared libraries on SCO systems. Therefore, libtool
11003 *** is disabling shared libraries support. We urge you to upgrade GNU
11004 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11005 *** your PATH or compiler configuration so that the native linker is
11006 *** used, and then restart.
11008 _LT_EOF
11011 # For security reasons, it is highly recommended that you always
11012 # use absolute paths for naming shared libraries, and exclude the
11013 # DT_RUNPATH tag from executables and libraries. But doing so
11014 # requires that you compile everything twice, which is a pain.
11015 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11016 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11017 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11018 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11019 else
11020 ld_shlibs=no
11023 esac
11026 sunos4*)
11027 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11028 wlarc=
11029 hardcode_direct=yes
11030 hardcode_shlibpath_var=no
11034 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11035 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11036 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11037 else
11038 ld_shlibs=no
11041 esac
11043 if test "$ld_shlibs" = no; then
11044 runpath_var=
11045 hardcode_libdir_flag_spec=
11046 export_dynamic_flag_spec=
11047 whole_archive_flag_spec=
11049 else
11050 # PORTME fill in a description of your system's linker (not GNU ld)
11051 case $host_os in
11052 aix3*)
11053 allow_undefined_flag=unsupported
11054 always_export_symbols=yes
11055 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'
11056 # Note: this linker hardcodes the directories in LIBPATH if there
11057 # are no directories specified by -L.
11058 hardcode_minus_L=yes
11059 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11060 # Neither direct hardcoding nor static linking is supported with a
11061 # broken collect2.
11062 hardcode_direct=unsupported
11066 aix[4-9]*)
11067 if test "$host_cpu" = ia64; then
11068 # On IA64, the linker does run time linking by default, so we don't
11069 # have to do anything special.
11070 aix_use_runtimelinking=no
11071 exp_sym_flag='-Bexport'
11072 no_entry_flag=""
11073 else
11074 # If we're using GNU nm, then we don't want the "-C" option.
11075 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11076 # Also, AIX nm treats weak defined symbols like other global
11077 # defined symbols, whereas GNU nm marks them as "W".
11078 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11079 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'
11080 else
11081 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'
11083 aix_use_runtimelinking=no
11085 # Test if we are trying to use run time linking or normal
11086 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11087 # need to do runtime linking.
11088 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11089 for ld_flag in $LDFLAGS; do
11090 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11091 aix_use_runtimelinking=yes
11092 break
11094 done
11096 esac
11098 exp_sym_flag='-bexport'
11099 no_entry_flag='-bnoentry'
11102 # When large executables or shared objects are built, AIX ld can
11103 # have problems creating the table of contents. If linking a library
11104 # or program results in "error TOC overflow" add -mminimal-toc to
11105 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11106 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11108 archive_cmds=''
11109 hardcode_direct=yes
11110 hardcode_direct_absolute=yes
11111 hardcode_libdir_separator=':'
11112 link_all_deplibs=yes
11113 file_list_spec='${wl}-f,'
11115 if test "$GCC" = yes; then
11116 case $host_os in aix4.[012]|aix4.[012].*)
11117 # We only want to do this on AIX 4.2 and lower, the check
11118 # below for broken collect2 doesn't work under 4.3+
11119 collect2name=`${CC} -print-prog-name=collect2`
11120 if test -f "$collect2name" &&
11121 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11122 then
11123 # We have reworked collect2
11125 else
11126 # We have old collect2
11127 hardcode_direct=unsupported
11128 # It fails to find uninstalled libraries when the uninstalled
11129 # path is not listed in the libpath. Setting hardcode_minus_L
11130 # to unsupported forces relinking
11131 hardcode_minus_L=yes
11132 hardcode_libdir_flag_spec='-L$libdir'
11133 hardcode_libdir_separator=
11136 esac
11137 shared_flag='-shared'
11138 if test "$aix_use_runtimelinking" = yes; then
11139 shared_flag="$shared_flag "'${wl}-G'
11141 link_all_deplibs=no
11142 else
11143 # not using gcc
11144 if test "$host_cpu" = ia64; then
11145 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11146 # chokes on -Wl,-G. The following line is correct:
11147 shared_flag='-G'
11148 else
11149 if test "$aix_use_runtimelinking" = yes; then
11150 shared_flag='${wl}-G'
11151 else
11152 shared_flag='${wl}-bM:SRE'
11157 export_dynamic_flag_spec='${wl}-bexpall'
11158 # It seems that -bexpall does not export symbols beginning with
11159 # underscore (_), so it is better to generate a list of symbols to export.
11160 always_export_symbols=yes
11161 if test "$aix_use_runtimelinking" = yes; then
11162 # Warning - without using the other runtime loading flags (-brtl),
11163 # -berok will link without error, but may produce a broken library.
11164 allow_undefined_flag='-berok'
11165 # Determine the default libpath from the value encoded in an
11166 # empty executable.
11167 if test "${lt_cv_aix_libpath+set}" = set; then
11168 aix_libpath=$lt_cv_aix_libpath
11169 else
11170 if ${lt_cv_aix_libpath_+:} false; then :
11171 $as_echo_n "(cached) " >&6
11172 else
11173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11174 /* end confdefs.h. */
11177 main ()
11181 return 0;
11183 _ACEOF
11184 if ac_fn_c_try_link "$LINENO"; then :
11186 lt_aix_libpath_sed='
11187 /Import File Strings/,/^$/ {
11188 /^0/ {
11189 s/^0 *\([^ ]*\) *$/\1/
11193 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11194 # Check for a 64-bit object if we didn't find anything.
11195 if test -z "$lt_cv_aix_libpath_"; then
11196 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11199 rm -f core conftest.err conftest.$ac_objext \
11200 conftest$ac_exeext conftest.$ac_ext
11201 if test -z "$lt_cv_aix_libpath_"; then
11202 lt_cv_aix_libpath_="/usr/lib:/lib"
11207 aix_libpath=$lt_cv_aix_libpath_
11210 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11211 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"
11212 else
11213 if test "$host_cpu" = ia64; then
11214 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11215 allow_undefined_flag="-z nodefs"
11216 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"
11217 else
11218 # Determine the default libpath from the value encoded in an
11219 # empty executable.
11220 if test "${lt_cv_aix_libpath+set}" = set; then
11221 aix_libpath=$lt_cv_aix_libpath
11222 else
11223 if ${lt_cv_aix_libpath_+:} false; then :
11224 $as_echo_n "(cached) " >&6
11225 else
11226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11227 /* end confdefs.h. */
11230 main ()
11234 return 0;
11236 _ACEOF
11237 if ac_fn_c_try_link "$LINENO"; then :
11239 lt_aix_libpath_sed='
11240 /Import File Strings/,/^$/ {
11241 /^0/ {
11242 s/^0 *\([^ ]*\) *$/\1/
11246 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11247 # Check for a 64-bit object if we didn't find anything.
11248 if test -z "$lt_cv_aix_libpath_"; then
11249 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11252 rm -f core conftest.err conftest.$ac_objext \
11253 conftest$ac_exeext conftest.$ac_ext
11254 if test -z "$lt_cv_aix_libpath_"; then
11255 lt_cv_aix_libpath_="/usr/lib:/lib"
11260 aix_libpath=$lt_cv_aix_libpath_
11263 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11264 # Warning - without using the other run time loading flags,
11265 # -berok will link without error, but may produce a broken library.
11266 no_undefined_flag=' ${wl}-bernotok'
11267 allow_undefined_flag=' ${wl}-berok'
11268 if test "$with_gnu_ld" = yes; then
11269 # We only use this code for GNU lds that support --whole-archive.
11270 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11271 else
11272 # Exported symbols can be pulled into shared objects from archives
11273 whole_archive_flag_spec='$convenience'
11275 archive_cmds_need_lc=yes
11276 # This is similar to how AIX traditionally builds its shared libraries.
11277 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'
11282 amigaos*)
11283 case $host_cpu in
11284 powerpc)
11285 # see comment about AmigaOS4 .so support
11286 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11287 archive_expsym_cmds=''
11289 m68k)
11290 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)'
11291 hardcode_libdir_flag_spec='-L$libdir'
11292 hardcode_minus_L=yes
11294 esac
11297 bsdi[45]*)
11298 export_dynamic_flag_spec=-rdynamic
11301 cygwin* | mingw* | pw32* | cegcc*)
11302 # When not using gcc, we currently assume that we are using
11303 # Microsoft Visual C++.
11304 # hardcode_libdir_flag_spec is actually meaningless, as there is
11305 # no search path for DLLs.
11306 case $cc_basename in
11307 cl*)
11308 # Native MSVC
11309 hardcode_libdir_flag_spec=' '
11310 allow_undefined_flag=unsupported
11311 always_export_symbols=yes
11312 file_list_spec='@'
11313 # Tell ltmain to make .lib files, not .a files.
11314 libext=lib
11315 # Tell ltmain to make .dll files, not .so files.
11316 shrext_cmds=".dll"
11317 # FIXME: Setting linknames here is a bad hack.
11318 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
11319 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11320 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
11321 else
11322 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
11324 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11325 linknames='
11326 # The linker will not automatically build a static lib if we build a DLL.
11327 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11328 enable_shared_with_static_runtimes=yes
11329 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11330 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11331 # Don't use ranlib
11332 old_postinstall_cmds='chmod 644 $oldlib'
11333 postlink_cmds='lt_outputfile="@OUTPUT@"~
11334 lt_tool_outputfile="@TOOL_OUTPUT@"~
11335 case $lt_outputfile in
11336 *.exe|*.EXE) ;;
11338 lt_outputfile="$lt_outputfile.exe"
11339 lt_tool_outputfile="$lt_tool_outputfile.exe"
11341 esac~
11342 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
11343 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11344 $RM "$lt_outputfile.manifest";
11348 # Assume MSVC wrapper
11349 hardcode_libdir_flag_spec=' '
11350 allow_undefined_flag=unsupported
11351 # Tell ltmain to make .lib files, not .a files.
11352 libext=lib
11353 # Tell ltmain to make .dll files, not .so files.
11354 shrext_cmds=".dll"
11355 # FIXME: Setting linknames here is a bad hack.
11356 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11357 # The linker will automatically build a .lib file if we build a DLL.
11358 old_archive_from_new_cmds='true'
11359 # FIXME: Should let the user specify the lib program.
11360 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11361 enable_shared_with_static_runtimes=yes
11363 esac
11366 darwin* | rhapsody*)
11369 archive_cmds_need_lc=no
11370 hardcode_direct=no
11371 hardcode_automatic=yes
11372 hardcode_shlibpath_var=unsupported
11373 if test "$lt_cv_ld_force_load" = "yes"; then
11374 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\"`'
11376 else
11377 whole_archive_flag_spec=''
11379 link_all_deplibs=yes
11380 allow_undefined_flag="$_lt_dar_allow_undefined"
11381 case $cc_basename in
11382 ifort*) _lt_dar_can_shared=yes ;;
11383 *) _lt_dar_can_shared=$GCC ;;
11384 esac
11385 if test "$_lt_dar_can_shared" = "yes"; then
11386 output_verbose_link_cmd=func_echo_all
11387 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11388 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11389 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}"
11390 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}"
11392 else
11393 ld_shlibs=no
11398 dgux*)
11399 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11400 hardcode_libdir_flag_spec='-L$libdir'
11401 hardcode_shlibpath_var=no
11404 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11405 # support. Future versions do this automatically, but an explicit c++rt0.o
11406 # does not break anything, and helps significantly (at the cost of a little
11407 # extra space).
11408 freebsd2.2*)
11409 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11410 hardcode_libdir_flag_spec='-R$libdir'
11411 hardcode_direct=yes
11412 hardcode_shlibpath_var=no
11415 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11416 freebsd2.*)
11417 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11418 hardcode_direct=yes
11419 hardcode_minus_L=yes
11420 hardcode_shlibpath_var=no
11423 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11424 freebsd* | dragonfly*)
11425 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11426 hardcode_libdir_flag_spec='-R$libdir'
11427 hardcode_direct=yes
11428 hardcode_shlibpath_var=no
11431 hpux9*)
11432 if test "$GCC" = yes; then
11433 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'
11434 else
11435 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'
11437 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11438 hardcode_libdir_separator=:
11439 hardcode_direct=yes
11441 # hardcode_minus_L: Not really in the search PATH,
11442 # but as the default location of the library.
11443 hardcode_minus_L=yes
11444 export_dynamic_flag_spec='${wl}-E'
11447 hpux10*)
11448 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11449 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11450 else
11451 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11453 if test "$with_gnu_ld" = no; then
11454 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11455 hardcode_libdir_separator=:
11456 hardcode_direct=yes
11457 hardcode_direct_absolute=yes
11458 export_dynamic_flag_spec='${wl}-E'
11459 # hardcode_minus_L: Not really in the search PATH,
11460 # but as the default location of the library.
11461 hardcode_minus_L=yes
11465 hpux11*)
11466 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11467 case $host_cpu in
11468 hppa*64*)
11469 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11471 ia64*)
11472 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11475 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11477 esac
11478 else
11479 case $host_cpu in
11480 hppa*64*)
11481 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11483 ia64*)
11484 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11488 # Older versions of the 11.00 compiler do not understand -b yet
11489 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11491 $as_echo_n "checking if $CC understands -b... " >&6; }
11492 if ${lt_cv_prog_compiler__b+:} false; then :
11493 $as_echo_n "(cached) " >&6
11494 else
11495 lt_cv_prog_compiler__b=no
11496 save_LDFLAGS="$LDFLAGS"
11497 LDFLAGS="$LDFLAGS -b"
11498 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11499 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11500 # The linker can only warn and ignore the option if not recognized
11501 # So say no if there are warnings
11502 if test -s conftest.err; then
11503 # Append any errors to the config.log.
11504 cat conftest.err 1>&5
11505 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11506 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11507 if diff conftest.exp conftest.er2 >/dev/null; then
11508 lt_cv_prog_compiler__b=yes
11510 else
11511 lt_cv_prog_compiler__b=yes
11514 $RM -r conftest*
11515 LDFLAGS="$save_LDFLAGS"
11518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11519 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11521 if test x"$lt_cv_prog_compiler__b" = xyes; then
11522 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11523 else
11524 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11528 esac
11530 if test "$with_gnu_ld" = no; then
11531 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11532 hardcode_libdir_separator=:
11534 case $host_cpu in
11535 hppa*64*|ia64*)
11536 hardcode_direct=no
11537 hardcode_shlibpath_var=no
11540 hardcode_direct=yes
11541 hardcode_direct_absolute=yes
11542 export_dynamic_flag_spec='${wl}-E'
11544 # hardcode_minus_L: Not really in the search PATH,
11545 # but as the default location of the library.
11546 hardcode_minus_L=yes
11548 esac
11552 irix5* | irix6* | nonstopux*)
11553 if test "$GCC" = yes; then
11554 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'
11555 # Try to use the -exported_symbol ld option, if it does not
11556 # work, assume that -exports_file does not work either and
11557 # implicitly export all symbols.
11558 # This should be the same for all languages, so no per-tag cache variable.
11559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11560 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11561 if ${lt_cv_irix_exported_symbol+:} false; then :
11562 $as_echo_n "(cached) " >&6
11563 else
11564 save_LDFLAGS="$LDFLAGS"
11565 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11567 /* end confdefs.h. */
11568 int foo (void) { return 0; }
11569 _ACEOF
11570 if ac_fn_c_try_link "$LINENO"; then :
11571 lt_cv_irix_exported_symbol=yes
11572 else
11573 lt_cv_irix_exported_symbol=no
11575 rm -f core conftest.err conftest.$ac_objext \
11576 conftest$ac_exeext conftest.$ac_ext
11577 LDFLAGS="$save_LDFLAGS"
11579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11580 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11581 if test "$lt_cv_irix_exported_symbol" = yes; then
11582 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'
11584 else
11585 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'
11586 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'
11588 archive_cmds_need_lc='no'
11589 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11590 hardcode_libdir_separator=:
11591 inherit_rpath=yes
11592 link_all_deplibs=yes
11595 netbsd* | netbsdelf*-gnu)
11596 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11597 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11598 else
11599 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11601 hardcode_libdir_flag_spec='-R$libdir'
11602 hardcode_direct=yes
11603 hardcode_shlibpath_var=no
11606 newsos6)
11607 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11608 hardcode_direct=yes
11609 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11610 hardcode_libdir_separator=:
11611 hardcode_shlibpath_var=no
11614 *nto* | *qnx*)
11617 openbsd*)
11618 if test -f /usr/libexec/ld.so; then
11619 hardcode_direct=yes
11620 hardcode_shlibpath_var=no
11621 hardcode_direct_absolute=yes
11622 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11623 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11624 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11625 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11626 export_dynamic_flag_spec='${wl}-E'
11627 else
11628 case $host_os in
11629 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11630 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11631 hardcode_libdir_flag_spec='-R$libdir'
11634 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11635 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11637 esac
11639 else
11640 ld_shlibs=no
11644 os2*)
11645 hardcode_libdir_flag_spec='-L$libdir'
11646 hardcode_minus_L=yes
11647 allow_undefined_flag=unsupported
11648 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'
11649 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11652 osf3*)
11653 if test "$GCC" = yes; then
11654 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11655 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'
11656 else
11657 allow_undefined_flag=' -expect_unresolved \*'
11658 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'
11660 archive_cmds_need_lc='no'
11661 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11662 hardcode_libdir_separator=:
11665 osf4* | osf5*) # as osf3* with the addition of -msym flag
11666 if test "$GCC" = yes; then
11667 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11668 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'
11669 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11670 else
11671 allow_undefined_flag=' -expect_unresolved \*'
11672 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'
11673 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~
11674 $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'
11676 # Both c and cxx compiler support -rpath directly
11677 hardcode_libdir_flag_spec='-rpath $libdir'
11679 archive_cmds_need_lc='no'
11680 hardcode_libdir_separator=:
11683 solaris*)
11684 no_undefined_flag=' -z defs'
11685 if test "$GCC" = yes; then
11686 wlarc='${wl}'
11687 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11688 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11689 $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'
11690 else
11691 case `$CC -V 2>&1` in
11692 *"Compilers 5.0"*)
11693 wlarc=''
11694 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11695 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11696 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11699 wlarc='${wl}'
11700 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11701 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11702 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11704 esac
11706 hardcode_libdir_flag_spec='-R$libdir'
11707 hardcode_shlibpath_var=no
11708 case $host_os in
11709 solaris2.[0-5] | solaris2.[0-5].*) ;;
11711 # The compiler driver will combine and reorder linker options,
11712 # but understands `-z linker_flag'. GCC discards it without `$wl',
11713 # but is careful enough not to reorder.
11714 # Supported since Solaris 2.6 (maybe 2.5.1?)
11715 if test "$GCC" = yes; then
11716 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11717 else
11718 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11721 esac
11722 link_all_deplibs=yes
11725 sunos4*)
11726 if test "x$host_vendor" = xsequent; then
11727 # Use $CC to link under sequent, because it throws in some extra .o
11728 # files that make .init and .fini sections work.
11729 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11730 else
11731 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11733 hardcode_libdir_flag_spec='-L$libdir'
11734 hardcode_direct=yes
11735 hardcode_minus_L=yes
11736 hardcode_shlibpath_var=no
11739 sysv4)
11740 case $host_vendor in
11741 sni)
11742 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11743 hardcode_direct=yes # is this really true???
11745 siemens)
11746 ## LD is ld it makes a PLAMLIB
11747 ## CC just makes a GrossModule.
11748 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11749 reload_cmds='$CC -r -o $output$reload_objs'
11750 hardcode_direct=no
11752 motorola)
11753 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11754 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11756 esac
11757 runpath_var='LD_RUN_PATH'
11758 hardcode_shlibpath_var=no
11761 sysv4.3*)
11762 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11763 hardcode_shlibpath_var=no
11764 export_dynamic_flag_spec='-Bexport'
11767 sysv4*MP*)
11768 if test -d /usr/nec; then
11769 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11770 hardcode_shlibpath_var=no
11771 runpath_var=LD_RUN_PATH
11772 hardcode_runpath_var=yes
11773 ld_shlibs=yes
11777 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11778 no_undefined_flag='${wl}-z,text'
11779 archive_cmds_need_lc=no
11780 hardcode_shlibpath_var=no
11781 runpath_var='LD_RUN_PATH'
11783 if test "$GCC" = yes; then
11784 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11785 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11786 else
11787 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11788 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11792 sysv5* | sco3.2v5* | sco5v6*)
11793 # Note: We can NOT use -z defs as we might desire, because we do not
11794 # link with -lc, and that would cause any symbols used from libc to
11795 # always be unresolved, which means just about no library would
11796 # ever link correctly. If we're not using GNU ld we use -z text
11797 # though, which does catch some bad symbols but isn't as heavy-handed
11798 # as -z defs.
11799 no_undefined_flag='${wl}-z,text'
11800 allow_undefined_flag='${wl}-z,nodefs'
11801 archive_cmds_need_lc=no
11802 hardcode_shlibpath_var=no
11803 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11804 hardcode_libdir_separator=':'
11805 link_all_deplibs=yes
11806 export_dynamic_flag_spec='${wl}-Bexport'
11807 runpath_var='LD_RUN_PATH'
11809 if test "$GCC" = yes; then
11810 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11811 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11812 else
11813 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11814 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11818 uts4*)
11819 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11820 hardcode_libdir_flag_spec='-L$libdir'
11821 hardcode_shlibpath_var=no
11825 ld_shlibs=no
11827 esac
11829 if test x$host_vendor = xsni; then
11830 case $host in
11831 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11832 export_dynamic_flag_spec='${wl}-Blargedynsym'
11834 esac
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11839 $as_echo "$ld_shlibs" >&6; }
11840 test "$ld_shlibs" = no && can_build_shared=no
11842 with_gnu_ld=$with_gnu_ld
11859 # Do we need to explicitly link libc?
11861 case "x$archive_cmds_need_lc" in
11862 x|xyes)
11863 # Assume -lc should be added
11864 archive_cmds_need_lc=yes
11866 if test "$enable_shared" = yes && test "$GCC" = yes; then
11867 case $archive_cmds in
11868 *'~'*)
11869 # FIXME: we may have to deal with multi-command sequences.
11871 '$CC '*)
11872 # Test whether the compiler implicitly links with -lc since on some
11873 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11874 # to ld, don't add -lc before -lgcc.
11875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11876 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11877 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11878 $as_echo_n "(cached) " >&6
11879 else
11880 $RM conftest*
11881 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11883 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11884 (eval $ac_compile) 2>&5
11885 ac_status=$?
11886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11887 test $ac_status = 0; } 2>conftest.err; then
11888 soname=conftest
11889 lib=conftest
11890 libobjs=conftest.$ac_objext
11891 deplibs=
11892 wl=$lt_prog_compiler_wl
11893 pic_flag=$lt_prog_compiler_pic
11894 compiler_flags=-v
11895 linker_flags=-v
11896 verstring=
11897 output_objdir=.
11898 libname=conftest
11899 lt_save_allow_undefined_flag=$allow_undefined_flag
11900 allow_undefined_flag=
11901 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11902 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11903 ac_status=$?
11904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11905 test $ac_status = 0; }
11906 then
11907 lt_cv_archive_cmds_need_lc=no
11908 else
11909 lt_cv_archive_cmds_need_lc=yes
11911 allow_undefined_flag=$lt_save_allow_undefined_flag
11912 else
11913 cat conftest.err 1>&5
11915 $RM conftest*
11918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11919 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11920 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11922 esac
11925 esac
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12079 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12081 if test "$GCC" = yes; then
12082 case $host_os in
12083 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12084 *) lt_awk_arg="/^libraries:/" ;;
12085 esac
12086 case $host_os in
12087 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
12088 *) lt_sed_strip_eq="s,=/,/,g" ;;
12089 esac
12090 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12091 case $lt_search_path_spec in
12092 *\;*)
12093 # if the path contains ";" then we assume it to be the separator
12094 # otherwise default to the standard path separator (i.e. ":") - it is
12095 # assumed that no part of a normal pathname contains ";" but that should
12096 # okay in the real world where ";" in dirpaths is itself problematic.
12097 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12100 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12102 esac
12103 # Ok, now we have the path, separated by spaces, we can step through it
12104 # and add multilib dir if necessary.
12105 lt_tmp_lt_search_path_spec=
12106 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12107 for lt_sys_path in $lt_search_path_spec; do
12108 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12109 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12110 else
12111 test -d "$lt_sys_path" && \
12112 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12114 done
12115 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12116 BEGIN {RS=" "; FS="/|\n";} {
12117 lt_foo="";
12118 lt_count=0;
12119 for (lt_i = NF; lt_i > 0; lt_i--) {
12120 if ($lt_i != "" && $lt_i != ".") {
12121 if ($lt_i == "..") {
12122 lt_count++;
12123 } else {
12124 if (lt_count == 0) {
12125 lt_foo="/" $lt_i lt_foo;
12126 } else {
12127 lt_count--;
12132 if (lt_foo != "") { lt_freq[lt_foo]++; }
12133 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12135 # AWK program above erroneously prepends '/' to C:/dos/paths
12136 # for these hosts.
12137 case $host_os in
12138 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12139 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
12140 esac
12141 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12142 else
12143 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12145 library_names_spec=
12146 libname_spec='lib$name'
12147 soname_spec=
12148 shrext_cmds=".so"
12149 postinstall_cmds=
12150 postuninstall_cmds=
12151 finish_cmds=
12152 finish_eval=
12153 shlibpath_var=
12154 shlibpath_overrides_runpath=unknown
12155 version_type=none
12156 dynamic_linker="$host_os ld.so"
12157 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12158 need_lib_prefix=unknown
12159 hardcode_into_libs=no
12161 # when you set need_version to no, make sure it does not cause -set_version
12162 # flags to be left without arguments
12163 need_version=unknown
12165 case $host_os in
12166 aix3*)
12167 version_type=linux # correct to gnu/linux during the next big refactor
12168 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12169 shlibpath_var=LIBPATH
12171 # AIX 3 has no versioning support, so we append a major version to the name.
12172 soname_spec='${libname}${release}${shared_ext}$major'
12175 aix[4-9]*)
12176 version_type=linux # correct to gnu/linux during the next big refactor
12177 need_lib_prefix=no
12178 need_version=no
12179 hardcode_into_libs=yes
12180 if test "$host_cpu" = ia64; then
12181 # AIX 5 supports IA64
12182 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12183 shlibpath_var=LD_LIBRARY_PATH
12184 else
12185 # With GCC up to 2.95.x, collect2 would create an import file
12186 # for dependence libraries. The import file would start with
12187 # the line `#! .'. This would cause the generated library to
12188 # depend on `.', always an invalid library. This was fixed in
12189 # development snapshots of GCC prior to 3.0.
12190 case $host_os in
12191 aix4 | aix4.[01] | aix4.[01].*)
12192 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12193 echo ' yes '
12194 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12196 else
12197 can_build_shared=no
12200 esac
12201 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12202 # soname into executable. Probably we can add versioning support to
12203 # collect2, so additional links can be useful in future.
12204 if test "$aix_use_runtimelinking" = yes; then
12205 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12206 # instead of lib<name>.a to let people know that these are not
12207 # typical AIX shared libraries.
12208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12209 else
12210 # We preserve .a as extension for shared libraries through AIX4.2
12211 # and later when we are not doing run time linking.
12212 library_names_spec='${libname}${release}.a $libname.a'
12213 soname_spec='${libname}${release}${shared_ext}$major'
12215 shlibpath_var=LIBPATH
12219 amigaos*)
12220 case $host_cpu in
12221 powerpc)
12222 # Since July 2007 AmigaOS4 officially supports .so libraries.
12223 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12226 m68k)
12227 library_names_spec='$libname.ixlibrary $libname.a'
12228 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12229 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'
12231 esac
12234 beos*)
12235 library_names_spec='${libname}${shared_ext}'
12236 dynamic_linker="$host_os ld.so"
12237 shlibpath_var=LIBRARY_PATH
12240 bsdi[45]*)
12241 version_type=linux # correct to gnu/linux during the next big refactor
12242 need_version=no
12243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12244 soname_spec='${libname}${release}${shared_ext}$major'
12245 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12246 shlibpath_var=LD_LIBRARY_PATH
12247 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12248 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12249 # the default ld.so.conf also contains /usr/contrib/lib and
12250 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12251 # libtool to hard-code these into programs
12254 cygwin* | mingw* | pw32* | cegcc*)
12255 version_type=windows
12256 shrext_cmds=".dll"
12257 need_version=no
12258 need_lib_prefix=no
12260 case $GCC,$cc_basename in
12261 yes,*)
12262 # gcc
12263 library_names_spec='$libname.dll.a'
12264 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12265 postinstall_cmds='base_file=`basename \${file}`~
12266 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12267 dldir=$destdir/`dirname \$dlpath`~
12268 test -d \$dldir || mkdir -p \$dldir~
12269 $install_prog $dir/$dlname \$dldir/$dlname~
12270 chmod a+x \$dldir/$dlname~
12271 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12272 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12274 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12275 dlpath=$dir/\$dldll~
12276 $RM \$dlpath'
12277 shlibpath_overrides_runpath=yes
12279 case $host_os in
12280 cygwin*)
12281 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12282 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12284 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12286 mingw* | cegcc*)
12287 # MinGW DLLs use traditional 'lib' prefix
12288 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12290 pw32*)
12291 # pw32 DLLs use 'pw' prefix rather than 'lib'
12292 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12294 esac
12295 dynamic_linker='Win32 ld.exe'
12298 *,cl*)
12299 # Native MSVC
12300 libname_spec='$name'
12301 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12302 library_names_spec='${libname}.dll.lib'
12304 case $build_os in
12305 mingw*)
12306 sys_lib_search_path_spec=
12307 lt_save_ifs=$IFS
12308 IFS=';'
12309 for lt_path in $LIB
12311 IFS=$lt_save_ifs
12312 # Let DOS variable expansion print the short 8.3 style file name.
12313 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12314 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12315 done
12316 IFS=$lt_save_ifs
12317 # Convert to MSYS style.
12318 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12320 cygwin*)
12321 # Convert to unix form, then to dos form, then back to unix form
12322 # but this time dos style (no spaces!) so that the unix form looks
12323 # like /cygdrive/c/PROGRA~1:/cygdr...
12324 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12325 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12326 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12329 sys_lib_search_path_spec="$LIB"
12330 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12331 # It is most probably a Windows format PATH.
12332 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12333 else
12334 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12336 # FIXME: find the short name or the path components, as spaces are
12337 # common. (e.g. "Program Files" -> "PROGRA~1")
12339 esac
12341 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12342 postinstall_cmds='base_file=`basename \${file}`~
12343 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12344 dldir=$destdir/`dirname \$dlpath`~
12345 test -d \$dldir || mkdir -p \$dldir~
12346 $install_prog $dir/$dlname \$dldir/$dlname'
12347 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12348 dlpath=$dir/\$dldll~
12349 $RM \$dlpath'
12350 shlibpath_overrides_runpath=yes
12351 dynamic_linker='Win32 link.exe'
12355 # Assume MSVC wrapper
12356 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12357 dynamic_linker='Win32 ld.exe'
12359 esac
12360 # FIXME: first we should search . and the directory the executable is in
12361 shlibpath_var=PATH
12364 darwin* | rhapsody*)
12365 dynamic_linker="$host_os dyld"
12366 version_type=darwin
12367 need_lib_prefix=no
12368 need_version=no
12369 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12370 soname_spec='${libname}${release}${major}$shared_ext'
12371 shlibpath_overrides_runpath=yes
12372 shlibpath_var=DYLD_LIBRARY_PATH
12373 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12375 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12376 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12379 dgux*)
12380 version_type=linux # correct to gnu/linux during the next big refactor
12381 need_lib_prefix=no
12382 need_version=no
12383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12384 soname_spec='${libname}${release}${shared_ext}$major'
12385 shlibpath_var=LD_LIBRARY_PATH
12388 freebsd* | dragonfly*)
12389 # DragonFly does not have aout. When/if they implement a new
12390 # versioning mechanism, adjust this.
12391 if test -x /usr/bin/objformat; then
12392 objformat=`/usr/bin/objformat`
12393 else
12394 case $host_os in
12395 freebsd[23].*) objformat=aout ;;
12396 *) objformat=elf ;;
12397 esac
12399 version_type=freebsd-$objformat
12400 case $version_type in
12401 freebsd-elf*)
12402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12403 need_version=no
12404 need_lib_prefix=no
12406 freebsd-*)
12407 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12408 need_version=yes
12410 esac
12411 shlibpath_var=LD_LIBRARY_PATH
12412 case $host_os in
12413 freebsd2.*)
12414 shlibpath_overrides_runpath=yes
12416 freebsd3.[01]* | freebsdelf3.[01]*)
12417 shlibpath_overrides_runpath=yes
12418 hardcode_into_libs=yes
12420 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12421 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12422 shlibpath_overrides_runpath=no
12423 hardcode_into_libs=yes
12425 *) # from 4.6 on, and DragonFly
12426 shlibpath_overrides_runpath=yes
12427 hardcode_into_libs=yes
12429 esac
12432 haiku*)
12433 version_type=linux # correct to gnu/linux during the next big refactor
12434 need_lib_prefix=no
12435 need_version=no
12436 dynamic_linker="$host_os runtime_loader"
12437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12438 soname_spec='${libname}${release}${shared_ext}$major'
12439 shlibpath_var=LIBRARY_PATH
12440 shlibpath_overrides_runpath=yes
12441 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12442 hardcode_into_libs=yes
12445 hpux9* | hpux10* | hpux11*)
12446 # Give a soname corresponding to the major version so that dld.sl refuses to
12447 # link against other versions.
12448 version_type=sunos
12449 need_lib_prefix=no
12450 need_version=no
12451 case $host_cpu in
12452 ia64*)
12453 shrext_cmds='.so'
12454 hardcode_into_libs=yes
12455 dynamic_linker="$host_os dld.so"
12456 shlibpath_var=LD_LIBRARY_PATH
12457 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12459 soname_spec='${libname}${release}${shared_ext}$major'
12460 if test "X$HPUX_IA64_MODE" = X32; then
12461 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12462 else
12463 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12465 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12467 hppa*64*)
12468 shrext_cmds='.sl'
12469 hardcode_into_libs=yes
12470 dynamic_linker="$host_os dld.sl"
12471 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12472 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12474 soname_spec='${libname}${release}${shared_ext}$major'
12475 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12476 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12479 shrext_cmds='.sl'
12480 dynamic_linker="$host_os dld.sl"
12481 shlibpath_var=SHLIB_PATH
12482 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12484 soname_spec='${libname}${release}${shared_ext}$major'
12486 esac
12487 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12488 postinstall_cmds='chmod 555 $lib'
12489 # or fails outright, so override atomically:
12490 install_override_mode=555
12493 interix[3-9]*)
12494 version_type=linux # correct to gnu/linux during the next big refactor
12495 need_lib_prefix=no
12496 need_version=no
12497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12498 soname_spec='${libname}${release}${shared_ext}$major'
12499 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12500 shlibpath_var=LD_LIBRARY_PATH
12501 shlibpath_overrides_runpath=no
12502 hardcode_into_libs=yes
12505 irix5* | irix6* | nonstopux*)
12506 case $host_os in
12507 nonstopux*) version_type=nonstopux ;;
12509 if test "$lt_cv_prog_gnu_ld" = yes; then
12510 version_type=linux # correct to gnu/linux during the next big refactor
12511 else
12512 version_type=irix
12513 fi ;;
12514 esac
12515 need_lib_prefix=no
12516 need_version=no
12517 soname_spec='${libname}${release}${shared_ext}$major'
12518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12519 case $host_os in
12520 irix5* | nonstopux*)
12521 libsuff= shlibsuff=
12524 case $LD in # libtool.m4 will add one of these switches to LD
12525 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12526 libsuff= shlibsuff= libmagic=32-bit;;
12527 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12528 libsuff=32 shlibsuff=N32 libmagic=N32;;
12529 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12530 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12531 *) libsuff= shlibsuff= libmagic=never-match;;
12532 esac
12534 esac
12535 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12536 shlibpath_overrides_runpath=no
12537 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12538 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12539 hardcode_into_libs=yes
12542 # No shared lib support for Linux oldld, aout, or coff.
12543 linux*oldld* | linux*aout* | linux*coff*)
12544 dynamic_linker=no
12547 # This must be glibc/ELF.
12548 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12549 version_type=linux # correct to gnu/linux during the next big refactor
12550 need_lib_prefix=no
12551 need_version=no
12552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12553 soname_spec='${libname}${release}${shared_ext}$major'
12554 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12555 shlibpath_var=LD_LIBRARY_PATH
12556 shlibpath_overrides_runpath=no
12558 # Some binutils ld are patched to set DT_RUNPATH
12559 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12560 $as_echo_n "(cached) " >&6
12561 else
12562 lt_cv_shlibpath_overrides_runpath=no
12563 save_LDFLAGS=$LDFLAGS
12564 save_libdir=$libdir
12565 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12566 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12568 /* end confdefs.h. */
12571 main ()
12575 return 0;
12577 _ACEOF
12578 if ac_fn_c_try_link "$LINENO"; then :
12579 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12580 lt_cv_shlibpath_overrides_runpath=yes
12583 rm -f core conftest.err conftest.$ac_objext \
12584 conftest$ac_exeext conftest.$ac_ext
12585 LDFLAGS=$save_LDFLAGS
12586 libdir=$save_libdir
12590 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12592 # This implies no fast_install, which is unacceptable.
12593 # Some rework will be needed to allow for fast_install
12594 # before this can be enabled.
12595 hardcode_into_libs=yes
12597 # Append ld.so.conf contents to the search path
12598 if test -f /etc/ld.so.conf; then
12599 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' ' '`
12600 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12603 # We used to test for /lib/ld.so.1 and disable shared libraries on
12604 # powerpc, because MkLinux only supported shared libraries with the
12605 # GNU dynamic linker. Since this was broken with cross compilers,
12606 # most powerpc-linux boxes support dynamic linking these days and
12607 # people can always --disable-shared, the test was removed, and we
12608 # assume the GNU/Linux dynamic linker is in use.
12609 dynamic_linker='GNU/Linux ld.so'
12612 netbsdelf*-gnu)
12613 version_type=linux
12614 need_lib_prefix=no
12615 need_version=no
12616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12617 soname_spec='${libname}${release}${shared_ext}$major'
12618 shlibpath_var=LD_LIBRARY_PATH
12619 shlibpath_overrides_runpath=no
12620 hardcode_into_libs=yes
12621 dynamic_linker='NetBSD ld.elf_so'
12624 netbsd*)
12625 version_type=sunos
12626 need_lib_prefix=no
12627 need_version=no
12628 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12630 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12631 dynamic_linker='NetBSD (a.out) ld.so'
12632 else
12633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12634 soname_spec='${libname}${release}${shared_ext}$major'
12635 dynamic_linker='NetBSD ld.elf_so'
12637 shlibpath_var=LD_LIBRARY_PATH
12638 shlibpath_overrides_runpath=yes
12639 hardcode_into_libs=yes
12642 newsos6)
12643 version_type=linux # correct to gnu/linux during the next big refactor
12644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12645 shlibpath_var=LD_LIBRARY_PATH
12646 shlibpath_overrides_runpath=yes
12649 *nto* | *qnx*)
12650 version_type=qnx
12651 need_lib_prefix=no
12652 need_version=no
12653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12654 soname_spec='${libname}${release}${shared_ext}$major'
12655 shlibpath_var=LD_LIBRARY_PATH
12656 shlibpath_overrides_runpath=no
12657 hardcode_into_libs=yes
12658 dynamic_linker='ldqnx.so'
12661 openbsd*)
12662 version_type=sunos
12663 sys_lib_dlsearch_path_spec="/usr/lib"
12664 need_lib_prefix=no
12665 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12666 case $host_os in
12667 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12668 *) need_version=no ;;
12669 esac
12670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12671 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12672 shlibpath_var=LD_LIBRARY_PATH
12673 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12674 case $host_os in
12675 openbsd2.[89] | openbsd2.[89].*)
12676 shlibpath_overrides_runpath=no
12679 shlibpath_overrides_runpath=yes
12681 esac
12682 else
12683 shlibpath_overrides_runpath=yes
12687 os2*)
12688 libname_spec='$name'
12689 shrext_cmds=".dll"
12690 need_lib_prefix=no
12691 library_names_spec='$libname${shared_ext} $libname.a'
12692 dynamic_linker='OS/2 ld.exe'
12693 shlibpath_var=LIBPATH
12696 osf3* | osf4* | osf5*)
12697 version_type=osf
12698 need_lib_prefix=no
12699 need_version=no
12700 soname_spec='${libname}${release}${shared_ext}$major'
12701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12702 shlibpath_var=LD_LIBRARY_PATH
12703 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12704 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12707 rdos*)
12708 dynamic_linker=no
12711 solaris*)
12712 version_type=linux # correct to gnu/linux during the next big refactor
12713 need_lib_prefix=no
12714 need_version=no
12715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12716 soname_spec='${libname}${release}${shared_ext}$major'
12717 shlibpath_var=LD_LIBRARY_PATH
12718 shlibpath_overrides_runpath=yes
12719 hardcode_into_libs=yes
12720 # ldd complains unless libraries are executable
12721 postinstall_cmds='chmod +x $lib'
12724 sunos4*)
12725 version_type=sunos
12726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12727 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12728 shlibpath_var=LD_LIBRARY_PATH
12729 shlibpath_overrides_runpath=yes
12730 if test "$with_gnu_ld" = yes; then
12731 need_lib_prefix=no
12733 need_version=yes
12736 sysv4 | sysv4.3*)
12737 version_type=linux # correct to gnu/linux during the next big refactor
12738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12739 soname_spec='${libname}${release}${shared_ext}$major'
12740 shlibpath_var=LD_LIBRARY_PATH
12741 case $host_vendor in
12742 sni)
12743 shlibpath_overrides_runpath=no
12744 need_lib_prefix=no
12745 runpath_var=LD_RUN_PATH
12747 siemens)
12748 need_lib_prefix=no
12750 motorola)
12751 need_lib_prefix=no
12752 need_version=no
12753 shlibpath_overrides_runpath=no
12754 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12756 esac
12759 sysv4*MP*)
12760 if test -d /usr/nec ;then
12761 version_type=linux # correct to gnu/linux during the next big refactor
12762 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12763 soname_spec='$libname${shared_ext}.$major'
12764 shlibpath_var=LD_LIBRARY_PATH
12768 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12769 version_type=freebsd-elf
12770 need_lib_prefix=no
12771 need_version=no
12772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12773 soname_spec='${libname}${release}${shared_ext}$major'
12774 shlibpath_var=LD_LIBRARY_PATH
12775 shlibpath_overrides_runpath=yes
12776 hardcode_into_libs=yes
12777 if test "$with_gnu_ld" = yes; then
12778 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12779 else
12780 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12781 case $host_os in
12782 sco3.2v5*)
12783 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12785 esac
12787 sys_lib_dlsearch_path_spec='/usr/lib'
12790 tpf*)
12791 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12792 version_type=linux # correct to gnu/linux during the next big refactor
12793 need_lib_prefix=no
12794 need_version=no
12795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12796 shlibpath_var=LD_LIBRARY_PATH
12797 shlibpath_overrides_runpath=no
12798 hardcode_into_libs=yes
12801 uts4*)
12802 version_type=linux # correct to gnu/linux during the next big refactor
12803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12804 soname_spec='${libname}${release}${shared_ext}$major'
12805 shlibpath_var=LD_LIBRARY_PATH
12809 dynamic_linker=no
12811 esac
12812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12813 $as_echo "$dynamic_linker" >&6; }
12814 test "$dynamic_linker" = no && can_build_shared=no
12816 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12817 if test "$GCC" = yes; then
12818 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12821 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12822 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12824 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12825 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12920 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12921 hardcode_action=
12922 if test -n "$hardcode_libdir_flag_spec" ||
12923 test -n "$runpath_var" ||
12924 test "X$hardcode_automatic" = "Xyes" ; then
12926 # We can hardcode non-existent directories.
12927 if test "$hardcode_direct" != no &&
12928 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12929 # have to relink, otherwise we might link with an installed library
12930 # when we should be linking with a yet-to-be-installed one
12931 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12932 test "$hardcode_minus_L" != no; then
12933 # Linking always hardcodes the temporary library directory.
12934 hardcode_action=relink
12935 else
12936 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12937 hardcode_action=immediate
12939 else
12940 # We cannot hardcode anything, or else we can only hardcode existing
12941 # directories.
12942 hardcode_action=unsupported
12944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12945 $as_echo "$hardcode_action" >&6; }
12947 if test "$hardcode_action" = relink ||
12948 test "$inherit_rpath" = yes; then
12949 # Fast installation is not supported
12950 enable_fast_install=no
12951 elif test "$shlibpath_overrides_runpath" = yes ||
12952 test "$enable_shared" = no; then
12953 # Fast installation is not necessary
12954 enable_fast_install=needless
12962 if test "x$enable_dlopen" != xyes; then
12963 enable_dlopen=unknown
12964 enable_dlopen_self=unknown
12965 enable_dlopen_self_static=unknown
12966 else
12967 lt_cv_dlopen=no
12968 lt_cv_dlopen_libs=
12970 case $host_os in
12971 beos*)
12972 lt_cv_dlopen="load_add_on"
12973 lt_cv_dlopen_libs=
12974 lt_cv_dlopen_self=yes
12977 mingw* | pw32* | cegcc*)
12978 lt_cv_dlopen="LoadLibrary"
12979 lt_cv_dlopen_libs=
12982 cygwin*)
12983 lt_cv_dlopen="dlopen"
12984 lt_cv_dlopen_libs=
12987 darwin*)
12988 # if libdl is installed we need to link against it
12989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12990 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12991 if ${ac_cv_lib_dl_dlopen+:} false; then :
12992 $as_echo_n "(cached) " >&6
12993 else
12994 ac_check_lib_save_LIBS=$LIBS
12995 LIBS="-ldl $LIBS"
12996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12997 /* end confdefs.h. */
12999 /* Override any GCC internal prototype to avoid an error.
13000 Use char because int might match the return type of a GCC
13001 builtin and then its argument prototype would still apply. */
13002 #ifdef __cplusplus
13003 extern "C"
13004 #endif
13005 char dlopen ();
13007 main ()
13009 return dlopen ();
13011 return 0;
13013 _ACEOF
13014 if ac_fn_c_try_link "$LINENO"; then :
13015 ac_cv_lib_dl_dlopen=yes
13016 else
13017 ac_cv_lib_dl_dlopen=no
13019 rm -f core conftest.err conftest.$ac_objext \
13020 conftest$ac_exeext conftest.$ac_ext
13021 LIBS=$ac_check_lib_save_LIBS
13023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13024 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13025 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13026 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13027 else
13029 lt_cv_dlopen="dyld"
13030 lt_cv_dlopen_libs=
13031 lt_cv_dlopen_self=yes
13038 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13039 if test "x$ac_cv_func_shl_load" = xyes; then :
13040 lt_cv_dlopen="shl_load"
13041 else
13042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13043 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13044 if ${ac_cv_lib_dld_shl_load+:} false; then :
13045 $as_echo_n "(cached) " >&6
13046 else
13047 ac_check_lib_save_LIBS=$LIBS
13048 LIBS="-ldld $LIBS"
13049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13050 /* end confdefs.h. */
13052 /* Override any GCC internal prototype to avoid an error.
13053 Use char because int might match the return type of a GCC
13054 builtin and then its argument prototype would still apply. */
13055 #ifdef __cplusplus
13056 extern "C"
13057 #endif
13058 char shl_load ();
13060 main ()
13062 return shl_load ();
13064 return 0;
13066 _ACEOF
13067 if ac_fn_c_try_link "$LINENO"; then :
13068 ac_cv_lib_dld_shl_load=yes
13069 else
13070 ac_cv_lib_dld_shl_load=no
13072 rm -f core conftest.err conftest.$ac_objext \
13073 conftest$ac_exeext conftest.$ac_ext
13074 LIBS=$ac_check_lib_save_LIBS
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13077 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13078 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13079 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13080 else
13081 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13082 if test "x$ac_cv_func_dlopen" = xyes; then :
13083 lt_cv_dlopen="dlopen"
13084 else
13085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13086 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13087 if ${ac_cv_lib_dl_dlopen+:} false; then :
13088 $as_echo_n "(cached) " >&6
13089 else
13090 ac_check_lib_save_LIBS=$LIBS
13091 LIBS="-ldl $LIBS"
13092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13093 /* end confdefs.h. */
13095 /* Override any GCC internal prototype to avoid an error.
13096 Use char because int might match the return type of a GCC
13097 builtin and then its argument prototype would still apply. */
13098 #ifdef __cplusplus
13099 extern "C"
13100 #endif
13101 char dlopen ();
13103 main ()
13105 return dlopen ();
13107 return 0;
13109 _ACEOF
13110 if ac_fn_c_try_link "$LINENO"; then :
13111 ac_cv_lib_dl_dlopen=yes
13112 else
13113 ac_cv_lib_dl_dlopen=no
13115 rm -f core conftest.err conftest.$ac_objext \
13116 conftest$ac_exeext conftest.$ac_ext
13117 LIBS=$ac_check_lib_save_LIBS
13119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13120 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13121 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13122 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13123 else
13124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13125 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13126 if ${ac_cv_lib_svld_dlopen+:} false; then :
13127 $as_echo_n "(cached) " >&6
13128 else
13129 ac_check_lib_save_LIBS=$LIBS
13130 LIBS="-lsvld $LIBS"
13131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13132 /* end confdefs.h. */
13134 /* Override any GCC internal prototype to avoid an error.
13135 Use char because int might match the return type of a GCC
13136 builtin and then its argument prototype would still apply. */
13137 #ifdef __cplusplus
13138 extern "C"
13139 #endif
13140 char dlopen ();
13142 main ()
13144 return dlopen ();
13146 return 0;
13148 _ACEOF
13149 if ac_fn_c_try_link "$LINENO"; then :
13150 ac_cv_lib_svld_dlopen=yes
13151 else
13152 ac_cv_lib_svld_dlopen=no
13154 rm -f core conftest.err conftest.$ac_objext \
13155 conftest$ac_exeext conftest.$ac_ext
13156 LIBS=$ac_check_lib_save_LIBS
13158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13159 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13160 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13161 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13162 else
13163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13164 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13165 if ${ac_cv_lib_dld_dld_link+:} false; then :
13166 $as_echo_n "(cached) " >&6
13167 else
13168 ac_check_lib_save_LIBS=$LIBS
13169 LIBS="-ldld $LIBS"
13170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13171 /* end confdefs.h. */
13173 /* Override any GCC internal prototype to avoid an error.
13174 Use char because int might match the return type of a GCC
13175 builtin and then its argument prototype would still apply. */
13176 #ifdef __cplusplus
13177 extern "C"
13178 #endif
13179 char dld_link ();
13181 main ()
13183 return dld_link ();
13185 return 0;
13187 _ACEOF
13188 if ac_fn_c_try_link "$LINENO"; then :
13189 ac_cv_lib_dld_dld_link=yes
13190 else
13191 ac_cv_lib_dld_dld_link=no
13193 rm -f core conftest.err conftest.$ac_objext \
13194 conftest$ac_exeext conftest.$ac_ext
13195 LIBS=$ac_check_lib_save_LIBS
13197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13198 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13199 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13200 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13219 esac
13221 if test "x$lt_cv_dlopen" != xno; then
13222 enable_dlopen=yes
13223 else
13224 enable_dlopen=no
13227 case $lt_cv_dlopen in
13228 dlopen)
13229 save_CPPFLAGS="$CPPFLAGS"
13230 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13232 save_LDFLAGS="$LDFLAGS"
13233 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13235 save_LIBS="$LIBS"
13236 LIBS="$lt_cv_dlopen_libs $LIBS"
13238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13239 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13240 if ${lt_cv_dlopen_self+:} false; then :
13241 $as_echo_n "(cached) " >&6
13242 else
13243 if test "$cross_compiling" = yes; then :
13244 lt_cv_dlopen_self=cross
13245 else
13246 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13247 lt_status=$lt_dlunknown
13248 cat > conftest.$ac_ext <<_LT_EOF
13249 #line $LINENO "configure"
13250 #include "confdefs.h"
13252 #if HAVE_DLFCN_H
13253 #include <dlfcn.h>
13254 #endif
13256 #include <stdio.h>
13258 #ifdef RTLD_GLOBAL
13259 # define LT_DLGLOBAL RTLD_GLOBAL
13260 #else
13261 # ifdef DL_GLOBAL
13262 # define LT_DLGLOBAL DL_GLOBAL
13263 # else
13264 # define LT_DLGLOBAL 0
13265 # endif
13266 #endif
13268 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13269 find out it does not work in some platform. */
13270 #ifndef LT_DLLAZY_OR_NOW
13271 # ifdef RTLD_LAZY
13272 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13273 # else
13274 # ifdef DL_LAZY
13275 # define LT_DLLAZY_OR_NOW DL_LAZY
13276 # else
13277 # ifdef RTLD_NOW
13278 # define LT_DLLAZY_OR_NOW RTLD_NOW
13279 # else
13280 # ifdef DL_NOW
13281 # define LT_DLLAZY_OR_NOW DL_NOW
13282 # else
13283 # define LT_DLLAZY_OR_NOW 0
13284 # endif
13285 # endif
13286 # endif
13287 # endif
13288 #endif
13290 /* When -fvisbility=hidden is used, assume the code has been annotated
13291 correspondingly for the symbols needed. */
13292 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13293 int fnord () __attribute__((visibility("default")));
13294 #endif
13296 int fnord () { return 42; }
13297 int main ()
13299 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13300 int status = $lt_dlunknown;
13302 if (self)
13304 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13305 else
13307 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13308 else puts (dlerror ());
13310 /* dlclose (self); */
13312 else
13313 puts (dlerror ());
13315 return status;
13317 _LT_EOF
13318 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13319 (eval $ac_link) 2>&5
13320 ac_status=$?
13321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13322 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13323 (./conftest; exit; ) >&5 2>/dev/null
13324 lt_status=$?
13325 case x$lt_status in
13326 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13327 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13328 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13329 esac
13330 else :
13331 # compilation failed
13332 lt_cv_dlopen_self=no
13335 rm -fr conftest*
13339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13340 $as_echo "$lt_cv_dlopen_self" >&6; }
13342 if test "x$lt_cv_dlopen_self" = xyes; then
13343 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13345 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13346 if ${lt_cv_dlopen_self_static+:} false; then :
13347 $as_echo_n "(cached) " >&6
13348 else
13349 if test "$cross_compiling" = yes; then :
13350 lt_cv_dlopen_self_static=cross
13351 else
13352 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13353 lt_status=$lt_dlunknown
13354 cat > conftest.$ac_ext <<_LT_EOF
13355 #line $LINENO "configure"
13356 #include "confdefs.h"
13358 #if HAVE_DLFCN_H
13359 #include <dlfcn.h>
13360 #endif
13362 #include <stdio.h>
13364 #ifdef RTLD_GLOBAL
13365 # define LT_DLGLOBAL RTLD_GLOBAL
13366 #else
13367 # ifdef DL_GLOBAL
13368 # define LT_DLGLOBAL DL_GLOBAL
13369 # else
13370 # define LT_DLGLOBAL 0
13371 # endif
13372 #endif
13374 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13375 find out it does not work in some platform. */
13376 #ifndef LT_DLLAZY_OR_NOW
13377 # ifdef RTLD_LAZY
13378 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13379 # else
13380 # ifdef DL_LAZY
13381 # define LT_DLLAZY_OR_NOW DL_LAZY
13382 # else
13383 # ifdef RTLD_NOW
13384 # define LT_DLLAZY_OR_NOW RTLD_NOW
13385 # else
13386 # ifdef DL_NOW
13387 # define LT_DLLAZY_OR_NOW DL_NOW
13388 # else
13389 # define LT_DLLAZY_OR_NOW 0
13390 # endif
13391 # endif
13392 # endif
13393 # endif
13394 #endif
13396 /* When -fvisbility=hidden is used, assume the code has been annotated
13397 correspondingly for the symbols needed. */
13398 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13399 int fnord () __attribute__((visibility("default")));
13400 #endif
13402 int fnord () { return 42; }
13403 int main ()
13405 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13406 int status = $lt_dlunknown;
13408 if (self)
13410 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13411 else
13413 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13414 else puts (dlerror ());
13416 /* dlclose (self); */
13418 else
13419 puts (dlerror ());
13421 return status;
13423 _LT_EOF
13424 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13425 (eval $ac_link) 2>&5
13426 ac_status=$?
13427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13428 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13429 (./conftest; exit; ) >&5 2>/dev/null
13430 lt_status=$?
13431 case x$lt_status in
13432 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13433 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13434 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13435 esac
13436 else :
13437 # compilation failed
13438 lt_cv_dlopen_self_static=no
13441 rm -fr conftest*
13445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13446 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13449 CPPFLAGS="$save_CPPFLAGS"
13450 LDFLAGS="$save_LDFLAGS"
13451 LIBS="$save_LIBS"
13453 esac
13455 case $lt_cv_dlopen_self in
13456 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13457 *) enable_dlopen_self=unknown ;;
13458 esac
13460 case $lt_cv_dlopen_self_static in
13461 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13462 *) enable_dlopen_self_static=unknown ;;
13463 esac
13482 striplib=
13483 old_striplib=
13484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13485 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13486 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13487 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13488 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13490 $as_echo "yes" >&6; }
13491 else
13492 # FIXME - insert some real tests, host_os isn't really good enough
13493 case $host_os in
13494 darwin*)
13495 if test -n "$STRIP" ; then
13496 striplib="$STRIP -x"
13497 old_striplib="$STRIP -S"
13498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13499 $as_echo "yes" >&6; }
13500 else
13501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13502 $as_echo "no" >&6; }
13506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13507 $as_echo "no" >&6; }
13509 esac
13523 # Report which library types will actually be built
13524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13525 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13527 $as_echo "$can_build_shared" >&6; }
13529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13530 $as_echo_n "checking whether to build shared libraries... " >&6; }
13531 test "$can_build_shared" = "no" && enable_shared=no
13533 # On AIX, shared libraries and static libraries use the same namespace, and
13534 # are all built from PIC.
13535 case $host_os in
13536 aix3*)
13537 test "$enable_shared" = yes && enable_static=no
13538 if test -n "$RANLIB"; then
13539 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13540 postinstall_cmds='$RANLIB $lib'
13544 aix[4-9]*)
13545 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13546 test "$enable_shared" = yes && enable_static=no
13549 esac
13550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13551 $as_echo "$enable_shared" >&6; }
13553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13554 $as_echo_n "checking whether to build static libraries... " >&6; }
13555 # Make sure either enable_shared or enable_static is yes.
13556 test "$enable_shared" = yes || enable_static=yes
13557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13558 $as_echo "$enable_static" >&6; }
13564 ac_ext=c
13565 ac_cpp='$CPP $CPPFLAGS'
13566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13570 CC="$lt_save_CC"
13586 ac_config_commands="$ac_config_commands libtool"
13591 # Only expand once:
13594 if test -n "$ac_tool_prefix"; then
13595 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
13596 set dummy ${ac_tool_prefix}windres; ac_word=$2
13597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13598 $as_echo_n "checking for $ac_word... " >&6; }
13599 if ${ac_cv_prog_RC+:} false; then :
13600 $as_echo_n "(cached) " >&6
13601 else
13602 if test -n "$RC"; then
13603 ac_cv_prog_RC="$RC" # Let the user override the test.
13604 else
13605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13606 for as_dir in $PATH
13608 IFS=$as_save_IFS
13609 test -z "$as_dir" && as_dir=.
13610 for ac_exec_ext in '' $ac_executable_extensions; do
13611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13612 ac_cv_prog_RC="${ac_tool_prefix}windres"
13613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13614 break 2
13616 done
13617 done
13618 IFS=$as_save_IFS
13622 RC=$ac_cv_prog_RC
13623 if test -n "$RC"; then
13624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
13625 $as_echo "$RC" >&6; }
13626 else
13627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13628 $as_echo "no" >&6; }
13633 if test -z "$ac_cv_prog_RC"; then
13634 ac_ct_RC=$RC
13635 # Extract the first word of "windres", so it can be a program name with args.
13636 set dummy windres; ac_word=$2
13637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13638 $as_echo_n "checking for $ac_word... " >&6; }
13639 if ${ac_cv_prog_ac_ct_RC+:} false; then :
13640 $as_echo_n "(cached) " >&6
13641 else
13642 if test -n "$ac_ct_RC"; then
13643 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
13644 else
13645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13646 for as_dir in $PATH
13648 IFS=$as_save_IFS
13649 test -z "$as_dir" && as_dir=.
13650 for ac_exec_ext in '' $ac_executable_extensions; do
13651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13652 ac_cv_prog_ac_ct_RC="windres"
13653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13654 break 2
13656 done
13657 done
13658 IFS=$as_save_IFS
13662 ac_ct_RC=$ac_cv_prog_ac_ct_RC
13663 if test -n "$ac_ct_RC"; then
13664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
13665 $as_echo "$ac_ct_RC" >&6; }
13666 else
13667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13668 $as_echo "no" >&6; }
13671 if test "x$ac_ct_RC" = x; then
13672 RC=""
13673 else
13674 case $cross_compiling:$ac_tool_warned in
13675 yes:)
13676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13677 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13678 ac_tool_warned=yes ;;
13679 esac
13680 RC=$ac_ct_RC
13682 else
13683 RC="$ac_cv_prog_RC"
13689 # Source file extension for RC test sources.
13690 ac_ext=rc
13692 # Object file extension for compiled RC test sources.
13693 objext=o
13694 objext_RC=$objext
13696 # Code to be used in simple compile tests
13697 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
13699 # Code to be used in simple link tests
13700 lt_simple_link_test_code="$lt_simple_compile_test_code"
13702 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13709 # If no C compiler was specified, use CC.
13710 LTCC=${LTCC-"$CC"}
13712 # If no C compiler flags were specified, use CFLAGS.
13713 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13715 # Allow CC to be a program name with arguments.
13716 compiler=$CC
13719 # save warnings/boilerplate of simple test code
13720 ac_outfile=conftest.$ac_objext
13721 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13722 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13723 _lt_compiler_boilerplate=`cat conftest.err`
13724 $RM conftest*
13726 ac_outfile=conftest.$ac_objext
13727 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13728 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13729 _lt_linker_boilerplate=`cat conftest.err`
13730 $RM -r conftest*
13733 # Allow CC to be a program name with arguments.
13734 lt_save_CC="$CC"
13735 lt_save_CFLAGS=$CFLAGS
13736 lt_save_GCC=$GCC
13737 GCC=
13738 CC=${RC-"windres"}
13739 CFLAGS=
13740 compiler=$CC
13741 compiler_RC=$CC
13742 for cc_temp in $compiler""; do
13743 case $cc_temp in
13744 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13745 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13746 \-*) ;;
13747 *) break;;
13748 esac
13749 done
13750 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13752 lt_cv_prog_compiler_c_o_RC=yes
13754 if test -n "$compiler"; then
13761 GCC=$lt_save_GCC
13762 ac_ext=c
13763 ac_cpp='$CPP $CPPFLAGS'
13764 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13765 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13766 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13768 CC=$lt_save_CC
13769 CFLAGS=$lt_save_CFLAGS
13773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13774 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13775 if ${ac_cv_c_const+:} false; then :
13776 $as_echo_n "(cached) " >&6
13777 else
13778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13779 /* end confdefs.h. */
13782 main ()
13785 #ifndef __cplusplus
13786 /* Ultrix mips cc rejects this sort of thing. */
13787 typedef int charset[2];
13788 const charset cs = { 0, 0 };
13789 /* SunOS 4.1.1 cc rejects this. */
13790 char const *const *pcpcc;
13791 char **ppc;
13792 /* NEC SVR4.0.2 mips cc rejects this. */
13793 struct point {int x, y;};
13794 static struct point const zero = {0,0};
13795 /* AIX XL C 1.02.0.0 rejects this.
13796 It does not let you subtract one const X* pointer from another in
13797 an arm of an if-expression whose if-part is not a constant
13798 expression */
13799 const char *g = "string";
13800 pcpcc = &g + (g ? g-g : 0);
13801 /* HPUX 7.0 cc rejects these. */
13802 ++pcpcc;
13803 ppc = (char**) pcpcc;
13804 pcpcc = (char const *const *) ppc;
13805 { /* SCO 3.2v4 cc rejects this sort of thing. */
13806 char tx;
13807 char *t = &tx;
13808 char const *s = 0 ? (char *) 0 : (char const *) 0;
13810 *t++ = 0;
13811 if (s) return 0;
13813 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13814 int x[] = {25, 17};
13815 const int *foo = &x[0];
13816 ++foo;
13818 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13819 typedef const int *iptr;
13820 iptr p = 0;
13821 ++p;
13823 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
13824 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13825 struct s { int j; const int *ap[3]; } bx;
13826 struct s *b = &bx; b->j = 5;
13828 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13829 const int foo = 10;
13830 if (!foo) return 0;
13832 return !cs[0] && !zero.x;
13833 #endif
13836 return 0;
13838 _ACEOF
13839 if ac_fn_c_try_compile "$LINENO"; then :
13840 ac_cv_c_const=yes
13841 else
13842 ac_cv_c_const=no
13844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13847 $as_echo "$ac_cv_c_const" >&6; }
13848 if test $ac_cv_c_const = no; then
13850 $as_echo "#define const /**/" >>confdefs.h
13854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13855 $as_echo_n "checking for inline... " >&6; }
13856 if ${ac_cv_c_inline+:} false; then :
13857 $as_echo_n "(cached) " >&6
13858 else
13859 ac_cv_c_inline=no
13860 for ac_kw in inline __inline__ __inline; do
13861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13862 /* end confdefs.h. */
13863 #ifndef __cplusplus
13864 typedef int foo_t;
13865 static $ac_kw foo_t static_foo () {return 0; }
13866 $ac_kw foo_t foo () {return 0; }
13867 #endif
13869 _ACEOF
13870 if ac_fn_c_try_compile "$LINENO"; then :
13871 ac_cv_c_inline=$ac_kw
13873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13874 test "$ac_cv_c_inline" != no && break
13875 done
13878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13879 $as_echo "$ac_cv_c_inline" >&6; }
13881 case $ac_cv_c_inline in
13882 inline | yes) ;;
13884 case $ac_cv_c_inline in
13885 no) ac_val=;;
13886 *) ac_val=$ac_cv_c_inline;;
13887 esac
13888 cat >>confdefs.h <<_ACEOF
13889 #ifndef __cplusplus
13890 #define inline $ac_val
13891 #endif
13892 _ACEOF
13894 esac
13896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
13897 $as_echo_n "checking for working volatile... " >&6; }
13898 if ${ac_cv_c_volatile+:} false; then :
13899 $as_echo_n "(cached) " >&6
13900 else
13901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13902 /* end confdefs.h. */
13905 main ()
13908 volatile int x;
13909 int * volatile y = (int *) 0;
13910 return !x && !y;
13912 return 0;
13914 _ACEOF
13915 if ac_fn_c_try_compile "$LINENO"; then :
13916 ac_cv_c_volatile=yes
13917 else
13918 ac_cv_c_volatile=no
13920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
13923 $as_echo "$ac_cv_c_volatile" >&6; }
13924 if test $ac_cv_c_volatile = no; then
13926 $as_echo "#define volatile /**/" >>confdefs.h
13930 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
13931 if test "x$ac_cv_type_off_t" = xyes; then :
13933 else
13935 cat >>confdefs.h <<_ACEOF
13936 #define off_t long int
13937 _ACEOF
13941 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13942 if test "x$ac_cv_type_pid_t" = xyes; then :
13944 else
13946 cat >>confdefs.h <<_ACEOF
13947 #define pid_t int
13948 _ACEOF
13952 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13953 if test "x$ac_cv_type_size_t" = xyes; then :
13955 else
13957 cat >>confdefs.h <<_ACEOF
13958 #define size_t unsigned int
13959 _ACEOF
13963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
13964 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
13965 if ${ac_cv_type_uid_t+:} false; then :
13966 $as_echo_n "(cached) " >&6
13967 else
13968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13969 /* end confdefs.h. */
13970 #include <sys/types.h>
13972 _ACEOF
13973 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13974 $EGREP "uid_t" >/dev/null 2>&1; then :
13975 ac_cv_type_uid_t=yes
13976 else
13977 ac_cv_type_uid_t=no
13979 rm -f conftest*
13982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
13983 $as_echo "$ac_cv_type_uid_t" >&6; }
13984 if test $ac_cv_type_uid_t = no; then
13986 $as_echo "#define uid_t int" >>confdefs.h
13989 $as_echo "#define gid_t int" >>confdefs.h
13993 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
13994 case $ac_cv_c_int8_t in #(
13995 no|yes) ;; #(
13998 cat >>confdefs.h <<_ACEOF
13999 #define int8_t $ac_cv_c_int8_t
14000 _ACEOF
14002 esac
14004 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
14005 case $ac_cv_c_int16_t in #(
14006 no|yes) ;; #(
14009 cat >>confdefs.h <<_ACEOF
14010 #define int16_t $ac_cv_c_int16_t
14011 _ACEOF
14013 esac
14015 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
14016 case $ac_cv_c_int32_t in #(
14017 no|yes) ;; #(
14020 cat >>confdefs.h <<_ACEOF
14021 #define int32_t $ac_cv_c_int32_t
14022 _ACEOF
14024 esac
14026 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
14027 case $ac_cv_c_int64_t in #(
14028 no|yes) ;; #(
14031 cat >>confdefs.h <<_ACEOF
14032 #define int64_t $ac_cv_c_int64_t
14033 _ACEOF
14035 esac
14037 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
14038 case $ac_cv_c_uint8_t in #(
14039 no|yes) ;; #(
14042 $as_echo "#define _UINT8_T 1" >>confdefs.h
14045 cat >>confdefs.h <<_ACEOF
14046 #define uint8_t $ac_cv_c_uint8_t
14047 _ACEOF
14049 esac
14051 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
14052 case $ac_cv_c_uint16_t in #(
14053 no|yes) ;; #(
14057 cat >>confdefs.h <<_ACEOF
14058 #define uint16_t $ac_cv_c_uint16_t
14059 _ACEOF
14061 esac
14063 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
14064 case $ac_cv_c_uint32_t in #(
14065 no|yes) ;; #(
14068 $as_echo "#define _UINT32_T 1" >>confdefs.h
14071 cat >>confdefs.h <<_ACEOF
14072 #define uint32_t $ac_cv_c_uint32_t
14073 _ACEOF
14075 esac
14077 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
14078 case $ac_cv_c_uint64_t in #(
14079 no|yes) ;; #(
14082 $as_echo "#define _UINT64_T 1" >>confdefs.h
14085 cat >>confdefs.h <<_ACEOF
14086 #define uint64_t $ac_cv_c_uint64_t
14087 _ACEOF
14089 esac
14091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
14092 $as_echo_n "checking return type of signal handlers... " >&6; }
14093 if ${ac_cv_type_signal+:} false; then :
14094 $as_echo_n "(cached) " >&6
14095 else
14096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14097 /* end confdefs.h. */
14098 #include <sys/types.h>
14099 #include <signal.h>
14102 main ()
14104 return *(signal (0, 0)) (0) == 1;
14106 return 0;
14108 _ACEOF
14109 if ac_fn_c_try_compile "$LINENO"; then :
14110 ac_cv_type_signal=int
14111 else
14112 ac_cv_type_signal=void
14114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
14117 $as_echo "$ac_cv_type_signal" >&6; }
14119 cat >>confdefs.h <<_ACEOF
14120 #define RETSIGTYPE $ac_cv_type_signal
14121 _ACEOF
14124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C 1999 vararg macro support" >&5
14125 $as_echo_n "checking for ISO C 1999 vararg macro support... " >&6; }
14126 if ${ax_cv_cpp_vararg_macro_iso+:} false; then :
14127 $as_echo_n "(cached) " >&6
14128 else
14129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14130 /* end confdefs.h. */
14132 #define macro(a, ...) func(a, __VA_ARGS__)
14133 int func(int a, int b, int c);
14136 main ()
14139 int i = macro(1, 2, 3);
14143 return 0;
14145 _ACEOF
14146 if ac_fn_c_try_compile "$LINENO"; then :
14147 ax_cv_cpp_vararg_macro_iso=yes
14148 else
14149 ax_cv_cpp_vararg_macro_iso=no
14152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cpp_vararg_macro_iso" >&5
14156 $as_echo "$ax_cv_cpp_vararg_macro_iso" >&6; }
14157 if test "x$ax_cv_cpp_vararg_macro_iso" = xyes; then :
14159 $as_echo "#define HAVE_CPP_VARARG_MACRO_ISO 1" >>confdefs.h
14163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU GCC vararg macro support" >&5
14164 $as_echo_n "checking for GNU GCC vararg macro support... " >&6; }
14165 if ${ax_cv_cpp_vararg_macro_gcc+:} false; then :
14166 $as_echo_n "(cached) " >&6
14167 else
14168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14169 /* end confdefs.h. */
14171 #define macro(a, b...) func(a, b)
14172 int func(int a, int b, int c);
14175 main ()
14178 int i = macro(1, 2, 3);
14182 return 0;
14184 _ACEOF
14185 if ac_fn_c_try_compile "$LINENO"; then :
14186 ax_cv_cpp_vararg_macro_gcc=yes
14187 else
14188 ax_cv_cpp_vararg_macro_gcc=no
14191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cpp_vararg_macro_gcc" >&5
14195 $as_echo "$ax_cv_cpp_vararg_macro_gcc" >&6; }
14196 if test "x$ax_cv_cpp_vararg_macro_gcc" = xyes; then :
14198 $as_echo "#define HAVE_CPP_VARARG_MACRO_GCC 1" >>confdefs.h
14203 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
14204 #include <sys/types.h>
14205 #ifdef WIN32
14206 #include <ws2tcpip.h>
14207 #else
14208 #include <sys/socket.h>
14209 #endif
14213 if test "x$ac_cv_type_socklen_t" = xyes; then :
14215 else
14217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
14218 $as_echo_n "checking for socklen_t equivalent... " >&6; }
14219 if ${ax_cv_socklen_t_equiv+:} false; then :
14220 $as_echo_n "(cached) " >&6
14221 else
14223 #AS_CASE is not supported on <autoconf-2.60
14224 case "${host}" in
14225 *-mingw*) ax_cv_socklen_t_equiv=int ;;
14227 # Systems have either "struct sockaddr *" or
14228 # "void *" as the second argument to getpeername
14229 for arg2 in "struct sockaddr" void; do
14230 for t in int size_t unsigned long "unsigned long"; do
14231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14232 /* end confdefs.h. */
14234 #include <sys/types.h>
14235 #include <sys/socket.h>
14236 int getpeername (int, $arg2 *, $t *);
14239 main ()
14242 $t len;
14243 getpeername(0,0,&len);
14247 return 0;
14249 _ACEOF
14250 if ac_fn_c_try_compile "$LINENO"; then :
14251 ax_cv_socklen_t_equiv="$t"; break
14254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14255 done
14256 test -n "$ax_cv_socklen_t_equiv" && break
14257 done
14259 esac
14261 if ${ax_cv_socklen_t_equiv:+false} :; then :
14262 as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5
14263 else
14265 cat >>confdefs.h <<_ACEOF
14266 #define socklen_t $ax_cv_socklen_t_equiv
14267 _ACEOF
14273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_socklen_t_equiv" >&5
14274 $as_echo "$ax_cv_socklen_t_equiv" >&6; }
14280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler empty array size" >&5
14281 $as_echo_n "checking for C compiler empty array size... " >&6; }
14282 if ${ax_cv_c_empty_array+:} false; then :
14283 $as_echo_n "(cached) " >&6
14284 else
14285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14286 /* end confdefs.h. */
14289 main ()
14292 struct { int foo; int bar[0]; } mystruct;
14296 return 0;
14298 _ACEOF
14299 if ac_fn_c_try_compile "$LINENO"; then :
14300 ax_cv_c_empty_array=0
14301 else
14302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14303 /* end confdefs.h. */
14306 main ()
14309 struct { int foo; int bar[]; } mystruct;
14313 return 0;
14315 _ACEOF
14316 if ac_fn_c_try_compile "$LINENO"; then :
14317 ax_cv_c_empty_array=
14318 else
14319 as_fn_error $? "C compiler is unable to creaty empty arrays" "$LINENO" 5
14322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_empty_array" >&5
14329 $as_echo "$ax_cv_c_empty_array" >&6; }
14330 cat >>confdefs.h <<_ACEOF
14331 #define EMPTY_ARRAY_SIZE $ax_cv_c_empty_array
14332 _ACEOF
14334 # The cast to long int works around a bug in the HP C Compiler
14335 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14336 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14337 # This bug is HP SR number 8606223364.
14338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
14339 $as_echo_n "checking size of unsigned int... " >&6; }
14340 if ${ac_cv_sizeof_unsigned_int+:} false; then :
14341 $as_echo_n "(cached) " >&6
14342 else
14343 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
14345 else
14346 if test "$ac_cv_type_unsigned_int" = yes; then
14347 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14348 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14349 as_fn_error 77 "cannot compute sizeof (unsigned int)
14350 See \`config.log' for more details" "$LINENO" 5; }
14351 else
14352 ac_cv_sizeof_unsigned_int=0
14357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
14358 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
14362 cat >>confdefs.h <<_ACEOF
14363 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
14364 _ACEOF
14367 # The cast to long int works around a bug in the HP C Compiler
14368 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14369 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14370 # This bug is HP SR number 8606223364.
14371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
14372 $as_echo_n "checking size of unsigned long... " >&6; }
14373 if ${ac_cv_sizeof_unsigned_long+:} false; then :
14374 $as_echo_n "(cached) " >&6
14375 else
14376 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
14378 else
14379 if test "$ac_cv_type_unsigned_long" = yes; then
14380 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14381 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14382 as_fn_error 77 "cannot compute sizeof (unsigned long)
14383 See \`config.log' for more details" "$LINENO" 5; }
14384 else
14385 ac_cv_sizeof_unsigned_long=0
14390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
14391 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
14395 cat >>confdefs.h <<_ACEOF
14396 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
14397 _ACEOF
14400 for ac_header in \
14401 stdio.h stdarg.h stdbool.h limits.h \
14402 time.h errno.h fcntl.h io.h direct.h \
14403 ctype.h sys/types.h sys/socket.h \
14404 signal.h unistd.h dlfcn.h \
14405 netinet/in.h netinet/in_systm.h \
14406 netinet/tcp.h arpa/inet.h netdb.h \
14407 windows.h winsock2.h ws2tcpip.h \
14409 do :
14410 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14411 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14412 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14413 cat >>confdefs.h <<_ACEOF
14414 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14415 _ACEOF
14419 done
14421 for ac_header in \
14422 sys/time.h sys/ioctl.h sys/stat.h \
14423 sys/mman.h sys/file.h sys/wait.h \
14424 unistd.h signal.h libgen.h stropts.h \
14425 syslog.h pwd.h grp.h \
14426 sys/sockio.h sys/uio.h linux/sockios.h \
14427 linux/types.h sys/poll.h sys/epoll.h err.h \
14429 do :
14430 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14431 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14432 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14433 cat >>confdefs.h <<_ACEOF
14434 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14435 _ACEOF
14439 done
14442 SOCKET_INCLUDES="
14443 #ifdef HAVE_STDLIB_H
14444 #include <stdlib.h>
14445 #endif
14446 #ifdef HAVE_SYS_TYPES_H
14447 #include <sys/types.h>
14448 #endif
14449 #ifdef HAVE_SYS_SOCKET_H
14450 #include <sys/socket.h>
14451 #endif
14452 #ifdef HAVE_NETINET_IN_H
14453 #include <netinet/in.h>
14454 #endif
14455 #ifdef HAVE_WINDOWS_H
14456 #include <windows.h>
14457 #endif
14458 #ifdef HAVE_WINSOCK2_H
14459 #include <winsock2.h>
14460 #endif
14461 #ifdef HAVE_WS2TCPIP_H
14462 #include <ws2tcpip.h>
14463 #endif
14464 #ifdef HAVE_NETINET_IN_SYSTM_H
14465 #include <netinet/in_systm.h>
14466 #endif
14467 #ifdef HAVE_NETINET_IP_H
14468 #include <netinet/ip.h>
14469 #endif
14472 for ac_header in net/if.h netinet/ip.h resolv.h sys/un.h net/if_utun.h sys/kern_control.h
14473 do :
14474 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14475 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "${SOCKET_INCLUDES}
14478 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14479 cat >>confdefs.h <<_ACEOF
14480 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14481 _ACEOF
14485 done
14488 ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "${SOCKET_INCLUDES}
14491 if test "x$ac_cv_type_in_addr_t" = xyes; then :
14493 cat >>confdefs.h <<_ACEOF
14494 #define HAVE_IN_ADDR_T 1
14495 _ACEOF
14498 else
14500 $as_echo "#define in_addr_t uint32_t" >>confdefs.h
14504 ac_fn_c_check_type "$LINENO" "struct iphdr" "ac_cv_type_struct_iphdr" "${SOCKET_INCLUDES}
14507 if test "x$ac_cv_type_struct_iphdr" = xyes; then :
14509 $as_echo "#define HAVE_IPHDR 1" >>confdefs.h
14513 ac_fn_c_check_type "$LINENO" "struct sock_extended_err" "ac_cv_type_struct_sock_extended_err" "${SOCKET_INCLUDES}
14516 if test "x$ac_cv_type_struct_sock_extended_err" = xyes; then :
14518 $as_echo "#define HAVE_SOCK_EXTENDED_ERR 1" >>confdefs.h
14522 ac_fn_c_check_type "$LINENO" "struct msghdr" "ac_cv_type_struct_msghdr" "${SOCKET_INCLUDES}
14525 if test "x$ac_cv_type_struct_msghdr" = xyes; then :
14527 $as_echo "#define HAVE_MSGHDR 1" >>confdefs.h
14531 ac_fn_c_check_type "$LINENO" "struct cmsghdr" "ac_cv_type_struct_cmsghdr" "${SOCKET_INCLUDES}
14534 if test "x$ac_cv_type_struct_cmsghdr" = xyes; then :
14536 $as_echo "#define HAVE_CMSGHDR 1" >>confdefs.h
14540 ac_fn_c_check_type "$LINENO" "struct in_pktinfo" "ac_cv_type_struct_in_pktinfo" "${SOCKET_INCLUDES}
14543 if test "x$ac_cv_type_struct_in_pktinfo" = xyes; then :
14545 $as_echo "#define HAVE_IN_PKTINFO 1" >>confdefs.h
14549 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "${SOCKET_INCLUDES}
14552 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
14554 else
14555 as_fn_error $? "struct sockaddr_in6 not found, needed for ipv6 transport support." "$LINENO" 5
14558 ac_fn_c_check_decl "$LINENO" "SO_MARK" "ac_cv_have_decl_SO_MARK" "${SOCKET_INCLUDES}
14561 if test "x$ac_cv_have_decl_SO_MARK" = xyes; then :
14562 ac_have_decl=1
14563 else
14564 ac_have_decl=0
14567 cat >>confdefs.h <<_ACEOF
14568 #define HAVE_DECL_SO_MARK $ac_have_decl
14569 _ACEOF
14572 ac_fn_c_check_decl "$LINENO" "SIGHUP" "ac_cv_have_decl_SIGHUP" "
14573 #ifdef HAVE_SIGNAL_H
14574 #include <signal.h>
14575 #endif
14579 if test "x$ac_cv_have_decl_SIGHUP" = xyes; then :
14580 ac_have_decl=1
14581 else
14582 ac_have_decl=0
14585 cat >>confdefs.h <<_ACEOF
14586 #define HAVE_DECL_SIGHUP $ac_have_decl
14587 _ACEOF
14588 if test $ac_have_decl = 1; then :
14590 else
14592 $as_echo "#define SIGHUP 1" >>confdefs.h
14596 ac_fn_c_check_decl "$LINENO" "SIGINT" "ac_cv_have_decl_SIGINT" "
14597 #ifdef HAVE_SIGNAL_H
14598 #include <signal.h>
14599 #endif
14603 if test "x$ac_cv_have_decl_SIGINT" = xyes; then :
14604 ac_have_decl=1
14605 else
14606 ac_have_decl=0
14609 cat >>confdefs.h <<_ACEOF
14610 #define HAVE_DECL_SIGINT $ac_have_decl
14611 _ACEOF
14612 if test $ac_have_decl = 1; then :
14614 else
14616 $as_echo "#define SIGINT 2" >>confdefs.h
14620 ac_fn_c_check_decl "$LINENO" "SIGUSR1" "ac_cv_have_decl_SIGUSR1" "
14621 #ifdef HAVE_SIGNAL_H
14622 #include <signal.h>
14623 #endif
14627 if test "x$ac_cv_have_decl_SIGUSR1" = xyes; then :
14628 ac_have_decl=1
14629 else
14630 ac_have_decl=0
14633 cat >>confdefs.h <<_ACEOF
14634 #define HAVE_DECL_SIGUSR1 $ac_have_decl
14635 _ACEOF
14636 if test $ac_have_decl = 1; then :
14638 else
14640 $as_echo "#define SIGUSR1 10" >>confdefs.h
14644 ac_fn_c_check_decl "$LINENO" "SIGUSR2" "ac_cv_have_decl_SIGUSR2" "
14645 #ifdef HAVE_SIGNAL_H
14646 #include <signal.h>
14647 #endif
14651 if test "x$ac_cv_have_decl_SIGUSR2" = xyes; then :
14652 ac_have_decl=1
14653 else
14654 ac_have_decl=0
14657 cat >>confdefs.h <<_ACEOF
14658 #define HAVE_DECL_SIGUSR2 $ac_have_decl
14659 _ACEOF
14660 if test $ac_have_decl = 1; then :
14662 else
14664 $as_echo "#define SIGUSR2 12" >>confdefs.h
14668 ac_fn_c_check_decl "$LINENO" "SIGTERM" "ac_cv_have_decl_SIGTERM" "
14669 #ifdef HAVE_SIGNAL_H
14670 #include <signal.h>
14671 #endif
14675 if test "x$ac_cv_have_decl_SIGTERM" = xyes; then :
14676 ac_have_decl=1
14677 else
14678 ac_have_decl=0
14681 cat >>confdefs.h <<_ACEOF
14682 #define HAVE_DECL_SIGTERM $ac_have_decl
14683 _ACEOF
14684 if test $ac_have_decl = 1; then :
14686 else
14688 $as_echo "#define SIGTERM 15" >>confdefs.h
14693 for ac_header in vfork.h
14694 do :
14695 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
14696 if test "x$ac_cv_header_vfork_h" = xyes; then :
14697 cat >>confdefs.h <<_ACEOF
14698 #define HAVE_VFORK_H 1
14699 _ACEOF
14703 done
14705 for ac_func in fork vfork
14706 do :
14707 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14708 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14709 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14710 cat >>confdefs.h <<_ACEOF
14711 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14712 _ACEOF
14715 done
14717 if test "x$ac_cv_func_fork" = xyes; then
14718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14719 $as_echo_n "checking for working fork... " >&6; }
14720 if ${ac_cv_func_fork_works+:} false; then :
14721 $as_echo_n "(cached) " >&6
14722 else
14723 if test "$cross_compiling" = yes; then :
14724 ac_cv_func_fork_works=cross
14725 else
14726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14727 /* end confdefs.h. */
14728 $ac_includes_default
14730 main ()
14733 /* By Ruediger Kuhlmann. */
14734 return fork () < 0;
14737 return 0;
14739 _ACEOF
14740 if ac_fn_c_try_run "$LINENO"; then :
14741 ac_cv_func_fork_works=yes
14742 else
14743 ac_cv_func_fork_works=no
14745 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14746 conftest.$ac_objext conftest.beam conftest.$ac_ext
14750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14751 $as_echo "$ac_cv_func_fork_works" >&6; }
14753 else
14754 ac_cv_func_fork_works=$ac_cv_func_fork
14756 if test "x$ac_cv_func_fork_works" = xcross; then
14757 case $host in
14758 *-*-amigaos* | *-*-msdosdjgpp*)
14759 # Override, as these systems have only a dummy fork() stub
14760 ac_cv_func_fork_works=no
14763 ac_cv_func_fork_works=yes
14765 esac
14766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14767 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14769 ac_cv_func_vfork_works=$ac_cv_func_vfork
14770 if test "x$ac_cv_func_vfork" = xyes; then
14771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14772 $as_echo_n "checking for working vfork... " >&6; }
14773 if ${ac_cv_func_vfork_works+:} false; then :
14774 $as_echo_n "(cached) " >&6
14775 else
14776 if test "$cross_compiling" = yes; then :
14777 ac_cv_func_vfork_works=cross
14778 else
14779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14780 /* end confdefs.h. */
14781 /* Thanks to Paul Eggert for this test. */
14782 $ac_includes_default
14783 #include <sys/wait.h>
14784 #ifdef HAVE_VFORK_H
14785 # include <vfork.h>
14786 #endif
14787 /* On some sparc systems, changes by the child to local and incoming
14788 argument registers are propagated back to the parent. The compiler
14789 is told about this with #include <vfork.h>, but some compilers
14790 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
14791 static variable whose address is put into a register that is
14792 clobbered by the vfork. */
14793 static void
14794 #ifdef __cplusplus
14795 sparc_address_test (int arg)
14796 # else
14797 sparc_address_test (arg) int arg;
14798 #endif
14800 static pid_t child;
14801 if (!child) {
14802 child = vfork ();
14803 if (child < 0) {
14804 perror ("vfork");
14805 _exit(2);
14807 if (!child) {
14808 arg = getpid();
14809 write(-1, "", 0);
14810 _exit (arg);
14816 main ()
14818 pid_t parent = getpid ();
14819 pid_t child;
14821 sparc_address_test (0);
14823 child = vfork ();
14825 if (child == 0) {
14826 /* Here is another test for sparc vfork register problems. This
14827 test uses lots of local variables, at least as many local
14828 variables as main has allocated so far including compiler
14829 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
14830 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
14831 reuse the register of parent for one of the local variables,
14832 since it will think that parent can't possibly be used any more
14833 in this routine. Assigning to the local variable will thus
14834 munge parent in the parent process. */
14835 pid_t
14836 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14837 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14838 /* Convince the compiler that p..p7 are live; otherwise, it might
14839 use the same hardware register for all 8 local variables. */
14840 if (p != p1 || p != p2 || p != p3 || p != p4
14841 || p != p5 || p != p6 || p != p7)
14842 _exit(1);
14844 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14845 from child file descriptors. If the child closes a descriptor
14846 before it execs or exits, this munges the parent's descriptor
14847 as well. Test for this by closing stdout in the child. */
14848 _exit(close(fileno(stdout)) != 0);
14849 } else {
14850 int status;
14851 struct stat st;
14853 while (wait(&status) != child)
14855 return (
14856 /* Was there some problem with vforking? */
14857 child < 0
14859 /* Did the child fail? (This shouldn't happen.) */
14860 || status
14862 /* Did the vfork/compiler bug occur? */
14863 || parent != getpid()
14865 /* Did the file descriptor bug occur? */
14866 || fstat(fileno(stdout), &st) != 0
14870 _ACEOF
14871 if ac_fn_c_try_run "$LINENO"; then :
14872 ac_cv_func_vfork_works=yes
14873 else
14874 ac_cv_func_vfork_works=no
14876 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14877 conftest.$ac_objext conftest.beam conftest.$ac_ext
14881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
14882 $as_echo "$ac_cv_func_vfork_works" >&6; }
14885 if test "x$ac_cv_func_fork_works" = xcross; then
14886 ac_cv_func_vfork_works=$ac_cv_func_vfork
14887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14888 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14891 if test "x$ac_cv_func_vfork_works" = xyes; then
14893 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
14895 else
14897 $as_echo "#define vfork fork" >>confdefs.h
14900 if test "x$ac_cv_func_fork_works" = xyes; then
14902 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
14907 for ac_func in \
14908 daemon chroot getpwnam setuid nice system getpid dup dup2 \
14909 getpass strerror syslog openlog mlockall getgrnam setgid \
14910 setgroups stat flock readv writev time gettimeofday \
14911 ctime memset vsnprintf strdup \
14912 setsid chdir putenv getpeername unlink \
14913 chsize ftruncate execve getpeereid umask basename dirname access \
14914 epoll_create \
14916 do :
14917 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14918 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14919 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14920 cat >>confdefs.h <<_ACEOF
14921 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14922 _ACEOF
14925 done
14928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14929 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14930 if ${ac_cv_lib_dl_dlopen+:} false; then :
14931 $as_echo_n "(cached) " >&6
14932 else
14933 ac_check_lib_save_LIBS=$LIBS
14934 LIBS="-ldl $LIBS"
14935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14936 /* end confdefs.h. */
14938 /* Override any GCC internal prototype to avoid an error.
14939 Use char because int might match the return type of a GCC
14940 builtin and then its argument prototype would still apply. */
14941 #ifdef __cplusplus
14942 extern "C"
14943 #endif
14944 char dlopen ();
14946 main ()
14948 return dlopen ();
14950 return 0;
14952 _ACEOF
14953 if ac_fn_c_try_link "$LINENO"; then :
14954 ac_cv_lib_dl_dlopen=yes
14955 else
14956 ac_cv_lib_dl_dlopen=no
14958 rm -f core conftest.err conftest.$ac_objext \
14959 conftest$ac_exeext conftest.$ac_ext
14960 LIBS=$ac_check_lib_save_LIBS
14962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14963 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14964 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14965 DL_LIBS="-ldl"
14971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lnsl" >&5
14972 $as_echo_n "checking for inet_ntoa in -lnsl... " >&6; }
14973 if ${ac_cv_lib_nsl_inet_ntoa+:} false; then :
14974 $as_echo_n "(cached) " >&6
14975 else
14976 ac_check_lib_save_LIBS=$LIBS
14977 LIBS="-lnsl $LIBS"
14978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14979 /* end confdefs.h. */
14981 /* Override any GCC internal prototype to avoid an error.
14982 Use char because int might match the return type of a GCC
14983 builtin and then its argument prototype would still apply. */
14984 #ifdef __cplusplus
14985 extern "C"
14986 #endif
14987 char inet_ntoa ();
14989 main ()
14991 return inet_ntoa ();
14993 return 0;
14995 _ACEOF
14996 if ac_fn_c_try_link "$LINENO"; then :
14997 ac_cv_lib_nsl_inet_ntoa=yes
14998 else
14999 ac_cv_lib_nsl_inet_ntoa=no
15001 rm -f core conftest.err conftest.$ac_objext \
15002 conftest$ac_exeext conftest.$ac_ext
15003 LIBS=$ac_check_lib_save_LIBS
15005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_ntoa" >&5
15006 $as_echo "$ac_cv_lib_nsl_inet_ntoa" >&6; }
15007 if test "x$ac_cv_lib_nsl_inet_ntoa" = xyes; then :
15008 SOCKETS_LIBS="${SOCKETS_LIBS} -lnsl"
15012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
15013 $as_echo_n "checking for socket in -lsocket... " >&6; }
15014 if ${ac_cv_lib_socket_socket+:} false; then :
15015 $as_echo_n "(cached) " >&6
15016 else
15017 ac_check_lib_save_LIBS=$LIBS
15018 LIBS="-lsocket $LIBS"
15019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15020 /* end confdefs.h. */
15022 /* Override any GCC internal prototype to avoid an error.
15023 Use char because int might match the return type of a GCC
15024 builtin and then its argument prototype would still apply. */
15025 #ifdef __cplusplus
15026 extern "C"
15027 #endif
15028 char socket ();
15030 main ()
15032 return socket ();
15034 return 0;
15036 _ACEOF
15037 if ac_fn_c_try_link "$LINENO"; then :
15038 ac_cv_lib_socket_socket=yes
15039 else
15040 ac_cv_lib_socket_socket=no
15042 rm -f core conftest.err conftest.$ac_objext \
15043 conftest$ac_exeext conftest.$ac_ext
15044 LIBS=$ac_check_lib_save_LIBS
15046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
15047 $as_echo "$ac_cv_lib_socket_socket" >&6; }
15048 if test "x$ac_cv_lib_socket_socket" = xyes; then :
15049 SOCKETS_LIBS="${SOCKETS_LIBS} -lsocket"
15053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lresolv" >&5
15054 $as_echo_n "checking for gethostbyname in -lresolv... " >&6; }
15055 if ${ac_cv_lib_resolv_gethostbyname+:} false; then :
15056 $as_echo_n "(cached) " >&6
15057 else
15058 ac_check_lib_save_LIBS=$LIBS
15059 LIBS="-lresolv $LIBS"
15060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15061 /* end confdefs.h. */
15063 /* Override any GCC internal prototype to avoid an error.
15064 Use char because int might match the return type of a GCC
15065 builtin and then its argument prototype would still apply. */
15066 #ifdef __cplusplus
15067 extern "C"
15068 #endif
15069 char gethostbyname ();
15071 main ()
15073 return gethostbyname ();
15075 return 0;
15077 _ACEOF
15078 if ac_fn_c_try_link "$LINENO"; then :
15079 ac_cv_lib_resolv_gethostbyname=yes
15080 else
15081 ac_cv_lib_resolv_gethostbyname=no
15083 rm -f core conftest.err conftest.$ac_objext \
15084 conftest$ac_exeext conftest.$ac_ext
15085 LIBS=$ac_check_lib_save_LIBS
15087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_gethostbyname" >&5
15088 $as_echo "$ac_cv_lib_resolv_gethostbyname" >&6; }
15089 if test "x$ac_cv_lib_resolv_gethostbyname" = xyes; then :
15090 SOCKETS_LIBS="${SOCKETS_LIBS} -lresolv"
15096 old_LIBS="${LIBS}"
15097 LIBS="${LIBS} ${SOCKETS_LIBS}"
15098 for ac_func in sendmsg recvmsg inet_ntop inet_pton
15099 do :
15100 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15101 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15102 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15103 cat >>confdefs.h <<_ACEOF
15104 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15105 _ACEOF
15108 done
15110 # Windows use stdcall for winsock so we cannot auto detect these
15113 if test "${WIN32}" = "yes"; then
15116 $as_echo "#define HAVE_SOCKET 1" >>confdefs.h
15120 $as_echo "#define HAVE_RECV 1" >>confdefs.h
15124 $as_echo "#define HAVE_RECVFROM 1" >>confdefs.h
15128 $as_echo "#define HAVE_SEND 1" >>confdefs.h
15132 $as_echo "#define HAVE_SENDTO 1" >>confdefs.h
15136 $as_echo "#define HAVE_LISTEN 1" >>confdefs.h
15140 $as_echo "#define HAVE_ACCEPT 1" >>confdefs.h
15144 $as_echo "#define HAVE_CONNECT 1" >>confdefs.h
15148 $as_echo "#define HAVE_BIND 1" >>confdefs.h
15152 $as_echo "#define HAVE_SELECT 1" >>confdefs.h
15156 $as_echo "#define HAVE_GETHOSTBYNAME 1" >>confdefs.h
15160 $as_echo "#define HAVE_INET_NTOA 1" >>confdefs.h
15164 $as_echo "#define HAVE_SETSOCKOPT 1" >>confdefs.h
15168 $as_echo "#define HAVE_GETSOCKOPT 1" >>confdefs.h
15172 $as_echo "#define HAVE_GETSOCKNAME 1" >>confdefs.h
15176 $as_echo "#define HAVE_POLL 1" >>confdefs.h
15179 else
15180 for ac_func in socket recv recvfrom send sendto listen accept connect bind select gethostbyname inet_ntoa
15181 do :
15182 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15183 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15184 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15185 cat >>confdefs.h <<_ACEOF
15186 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15187 _ACEOF
15189 else
15190 as_fn_error $? "Required library function not found" "$LINENO" 5
15193 done
15195 for ac_func in setsockopt getsockopt getsockname poll
15196 do :
15197 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15198 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15199 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15200 cat >>confdefs.h <<_ACEOF
15201 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15202 _ACEOF
15205 done
15208 LIBS="${old_LIBS}"
15210 # we assume res_init() always exist, but need to find out *where*...
15211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __res_init" >&5
15212 $as_echo_n "checking for library containing __res_init... " >&6; }
15213 if ${ac_cv_search___res_init+:} false; then :
15214 $as_echo_n "(cached) " >&6
15215 else
15216 ac_func_search_save_LIBS=$LIBS
15217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15218 /* end confdefs.h. */
15220 /* Override any GCC internal prototype to avoid an error.
15221 Use char because int might match the return type of a GCC
15222 builtin and then its argument prototype would still apply. */
15223 #ifdef __cplusplus
15224 extern "C"
15225 #endif
15226 char __res_init ();
15228 main ()
15230 return __res_init ();
15232 return 0;
15234 _ACEOF
15235 for ac_lib in '' resolv bind; do
15236 if test -z "$ac_lib"; then
15237 ac_res="none required"
15238 else
15239 ac_res=-l$ac_lib
15240 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15242 if ac_fn_c_try_link "$LINENO"; then :
15243 ac_cv_search___res_init=$ac_res
15245 rm -f core conftest.err conftest.$ac_objext \
15246 conftest$ac_exeext
15247 if ${ac_cv_search___res_init+:} false; then :
15248 break
15250 done
15251 if ${ac_cv_search___res_init+:} false; then :
15253 else
15254 ac_cv_search___res_init=no
15256 rm conftest.$ac_ext
15257 LIBS=$ac_func_search_save_LIBS
15259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___res_init" >&5
15260 $as_echo "$ac_cv_search___res_init" >&6; }
15261 ac_res=$ac_cv_search___res_init
15262 if test "$ac_res" != no; then :
15263 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15265 else
15266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_init" >&5
15267 $as_echo_n "checking for library containing res_9_init... " >&6; }
15268 if ${ac_cv_search_res_9_init+:} false; then :
15269 $as_echo_n "(cached) " >&6
15270 else
15271 ac_func_search_save_LIBS=$LIBS
15272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15273 /* end confdefs.h. */
15275 /* Override any GCC internal prototype to avoid an error.
15276 Use char because int might match the return type of a GCC
15277 builtin and then its argument prototype would still apply. */
15278 #ifdef __cplusplus
15279 extern "C"
15280 #endif
15281 char res_9_init ();
15283 main ()
15285 return res_9_init ();
15287 return 0;
15289 _ACEOF
15290 for ac_lib in '' resolv bind; do
15291 if test -z "$ac_lib"; then
15292 ac_res="none required"
15293 else
15294 ac_res=-l$ac_lib
15295 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15297 if ac_fn_c_try_link "$LINENO"; then :
15298 ac_cv_search_res_9_init=$ac_res
15300 rm -f core conftest.err conftest.$ac_objext \
15301 conftest$ac_exeext
15302 if ${ac_cv_search_res_9_init+:} false; then :
15303 break
15305 done
15306 if ${ac_cv_search_res_9_init+:} false; then :
15308 else
15309 ac_cv_search_res_9_init=no
15311 rm conftest.$ac_ext
15312 LIBS=$ac_func_search_save_LIBS
15314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_init" >&5
15315 $as_echo "$ac_cv_search_res_9_init" >&6; }
15316 ac_res=$ac_cv_search_res_9_init
15317 if test "$ac_res" != no; then :
15318 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15320 else
15321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_init" >&5
15322 $as_echo_n "checking for library containing res_init... " >&6; }
15323 if ${ac_cv_search_res_init+:} false; then :
15324 $as_echo_n "(cached) " >&6
15325 else
15326 ac_func_search_save_LIBS=$LIBS
15327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15328 /* end confdefs.h. */
15330 /* Override any GCC internal prototype to avoid an error.
15331 Use char because int might match the return type of a GCC
15332 builtin and then its argument prototype would still apply. */
15333 #ifdef __cplusplus
15334 extern "C"
15335 #endif
15336 char res_init ();
15338 main ()
15340 return res_init ();
15342 return 0;
15344 _ACEOF
15345 for ac_lib in '' resolv bind; do
15346 if test -z "$ac_lib"; then
15347 ac_res="none required"
15348 else
15349 ac_res=-l$ac_lib
15350 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15352 if ac_fn_c_try_link "$LINENO"; then :
15353 ac_cv_search_res_init=$ac_res
15355 rm -f core conftest.err conftest.$ac_objext \
15356 conftest$ac_exeext
15357 if ${ac_cv_search_res_init+:} false; then :
15358 break
15360 done
15361 if ${ac_cv_search_res_init+:} false; then :
15363 else
15364 ac_cv_search_res_init=no
15366 rm conftest.$ac_ext
15367 LIBS=$ac_func_search_save_LIBS
15369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_init" >&5
15370 $as_echo "$ac_cv_search_res_init" >&6; }
15371 ac_res=$ac_cv_search_res_init
15372 if test "$ac_res" != no; then :
15373 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15383 old_CFLAGS="${CFLAGS}"
15384 CFLAGS="${CFLAGS} ${TAP_CFLAGS}"
15385 for ac_header in \
15386 net/if_tun.h net/tun/if_tun.h \
15387 linux/if_tun.h \
15388 tap-windows.h \
15390 do :
15391 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15392 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15393 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15394 cat >>confdefs.h <<_ACEOF
15395 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15396 _ACEOF
15397 have_tap_header="yes"
15401 done
15403 ac_fn_c_check_decl "$LINENO" "TUNSETPERSIST" "ac_cv_have_decl_TUNSETPERSIST" "
15404 #ifdef HAVE_LINUX_IF_TUN_H
15405 #include <linux/if_tun.h>
15406 #endif
15410 if test "x$ac_cv_have_decl_TUNSETPERSIST" = xyes; then :
15411 ac_have_decl=1
15412 else
15413 ac_have_decl=0
15416 cat >>confdefs.h <<_ACEOF
15417 #define HAVE_DECL_TUNSETPERSIST $ac_have_decl
15418 _ACEOF
15419 if test $ac_have_decl = 1; then :
15421 $as_echo "#define ENABLE_FEATURE_TUN_PERSIST 1" >>confdefs.h
15425 CFLAGS="${old_CFLAGS}"
15426 test "${have_tap_header}" = "yes" || as_fn_error $? "no tap header could be found" "$LINENO" 5
15428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setcon in -lselinux" >&5
15429 $as_echo_n "checking for setcon in -lselinux... " >&6; }
15430 if ${ac_cv_lib_selinux_setcon+:} false; then :
15431 $as_echo_n "(cached) " >&6
15432 else
15433 ac_check_lib_save_LIBS=$LIBS
15434 LIBS="-lselinux $LIBS"
15435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15436 /* end confdefs.h. */
15438 /* Override any GCC internal prototype to avoid an error.
15439 Use char because int might match the return type of a GCC
15440 builtin and then its argument prototype would still apply. */
15441 #ifdef __cplusplus
15442 extern "C"
15443 #endif
15444 char setcon ();
15446 main ()
15448 return setcon ();
15450 return 0;
15452 _ACEOF
15453 if ac_fn_c_try_link "$LINENO"; then :
15454 ac_cv_lib_selinux_setcon=yes
15455 else
15456 ac_cv_lib_selinux_setcon=no
15458 rm -f core conftest.err conftest.$ac_objext \
15459 conftest$ac_exeext conftest.$ac_ext
15460 LIBS=$ac_check_lib_save_LIBS
15462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_setcon" >&5
15463 $as_echo "$ac_cv_lib_selinux_setcon" >&6; }
15464 if test "x$ac_cv_lib_selinux_setcon" = xyes; then :
15465 SELINUX_LIBS="-lselinux"
15473 if test -z "${LIBPAM_LIBS}"; then
15474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
15475 $as_echo_n "checking for pam_start in -lpam... " >&6; }
15476 if ${ac_cv_lib_pam_pam_start+:} false; then :
15477 $as_echo_n "(cached) " >&6
15478 else
15479 ac_check_lib_save_LIBS=$LIBS
15480 LIBS="-lpam $LIBS"
15481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15482 /* end confdefs.h. */
15484 /* Override any GCC internal prototype to avoid an error.
15485 Use char because int might match the return type of a GCC
15486 builtin and then its argument prototype would still apply. */
15487 #ifdef __cplusplus
15488 extern "C"
15489 #endif
15490 char pam_start ();
15492 main ()
15494 return pam_start ();
15496 return 0;
15498 _ACEOF
15499 if ac_fn_c_try_link "$LINENO"; then :
15500 ac_cv_lib_pam_pam_start=yes
15501 else
15502 ac_cv_lib_pam_pam_start=no
15504 rm -f core conftest.err conftest.$ac_objext \
15505 conftest$ac_exeext conftest.$ac_ext
15506 LIBS=$ac_check_lib_save_LIBS
15508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
15509 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
15510 if test "x$ac_cv_lib_pam_pam_start" = xyes; then :
15511 LIBPAM_LIBS="-lpam"
15517 case "${with_mem_check}" in
15518 valgrind)
15519 ac_fn_c_check_header_mongrel "$LINENO" "valgrind/memcheck.h" "ac_cv_header_valgrind_memcheck_h" "$ac_includes_default"
15520 if test "x$ac_cv_header_valgrind_memcheck_h" = xyes; then :
15522 CFLAGS="${CFLAGS} -g -fno-inline"
15524 $as_echo "#define USE_VALGRIND 1" >>confdefs.h
15527 else
15528 as_fn_error $? "valgrind headers not found." "$LINENO" 5
15534 dmalloc)
15535 ac_fn_c_check_header_mongrel "$LINENO" "dmalloc.h" "ac_cv_header_dmalloc_h" "$ac_includes_default"
15536 if test "x$ac_cv_header_dmalloc_h" = xyes; then :
15537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc in -ldmalloc" >&5
15538 $as_echo_n "checking for malloc in -ldmalloc... " >&6; }
15539 if ${ac_cv_lib_dmalloc_malloc+:} false; then :
15540 $as_echo_n "(cached) " >&6
15541 else
15542 ac_check_lib_save_LIBS=$LIBS
15543 LIBS="-ldmalloc $LIBS"
15544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15545 /* end confdefs.h. */
15547 /* Override any GCC internal prototype to avoid an error.
15548 Use char because int might match the return type of a GCC
15549 builtin and then its argument prototype would still apply. */
15550 #ifdef __cplusplus
15551 extern "C"
15552 #endif
15553 char malloc ();
15555 main ()
15557 return malloc ();
15559 return 0;
15561 _ACEOF
15562 if ac_fn_c_try_link "$LINENO"; then :
15563 ac_cv_lib_dmalloc_malloc=yes
15564 else
15565 ac_cv_lib_dmalloc_malloc=no
15567 rm -f core conftest.err conftest.$ac_objext \
15568 conftest$ac_exeext conftest.$ac_ext
15569 LIBS=$ac_check_lib_save_LIBS
15571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dmalloc_malloc" >&5
15572 $as_echo "$ac_cv_lib_dmalloc_malloc" >&6; }
15573 if test "x$ac_cv_lib_dmalloc_malloc" = xyes; then :
15575 LIBS="${LIBS} -ldmalloc"
15577 $as_echo "#define DMALLOC 1" >>confdefs.h
15580 else
15581 as_fn_error $? "dmalloc library not found." "$LINENO" 5
15585 else
15586 as_fn_error $? "dmalloc headers not found." "$LINENO" 5
15592 ssl)
15593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRYPTO_mem_ctrl in -lssl" >&5
15594 $as_echo_n "checking for CRYPTO_mem_ctrl in -lssl... " >&6; }
15595 if ${ac_cv_lib_ssl_CRYPTO_mem_ctrl+:} false; then :
15596 $as_echo_n "(cached) " >&6
15597 else
15598 ac_check_lib_save_LIBS=$LIBS
15599 LIBS="-lssl $LIBS"
15600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15601 /* end confdefs.h. */
15603 /* Override any GCC internal prototype to avoid an error.
15604 Use char because int might match the return type of a GCC
15605 builtin and then its argument prototype would still apply. */
15606 #ifdef __cplusplus
15607 extern "C"
15608 #endif
15609 char CRYPTO_mem_ctrl ();
15611 main ()
15613 return CRYPTO_mem_ctrl ();
15615 return 0;
15617 _ACEOF
15618 if ac_fn_c_try_link "$LINENO"; then :
15619 ac_cv_lib_ssl_CRYPTO_mem_ctrl=yes
15620 else
15621 ac_cv_lib_ssl_CRYPTO_mem_ctrl=no
15623 rm -f core conftest.err conftest.$ac_objext \
15624 conftest$ac_exeext conftest.$ac_ext
15625 LIBS=$ac_check_lib_save_LIBS
15627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_CRYPTO_mem_ctrl" >&5
15628 $as_echo "$ac_cv_lib_ssl_CRYPTO_mem_ctrl" >&6; }
15629 if test "x$ac_cv_lib_ssl_CRYPTO_mem_ctrl" = xyes; then :
15632 $as_echo "#define CRYPTO_MDEBUG 1" >>confdefs.h
15634 { $as_echo "$as_me:${as_lineno-$LINENO}: NOTE: OpenSSL library must be compiled with CRYPTO_MDEBUG" >&5
15635 $as_echo "$as_me: NOTE: OpenSSL library must be compiled with CRYPTO_MDEBUG" >&6;}
15637 else
15638 as_fn_error $? "Memory Debugging function in OpenSSL library not found." "$LINENO" 5
15643 esac
15646 pkg_failed=no
15647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKCS11_HELPER" >&5
15648 $as_echo_n "checking for PKCS11_HELPER... " >&6; }
15650 if test -n "$PKCS11_HELPER_CFLAGS"; then
15651 pkg_cv_PKCS11_HELPER_CFLAGS="$PKCS11_HELPER_CFLAGS"
15652 elif test -n "$PKG_CONFIG"; then
15653 if test -n "$PKG_CONFIG" && \
15654 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpkcs11-helper-1 >= 1.11\""; } >&5
15655 ($PKG_CONFIG --exists --print-errors "libpkcs11-helper-1 >= 1.11") 2>&5
15656 ac_status=$?
15657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15658 test $ac_status = 0; }; then
15659 pkg_cv_PKCS11_HELPER_CFLAGS=`$PKG_CONFIG --cflags "libpkcs11-helper-1 >= 1.11" 2>/dev/null`
15660 test "x$?" != "x0" && pkg_failed=yes
15661 else
15662 pkg_failed=yes
15664 else
15665 pkg_failed=untried
15667 if test -n "$PKCS11_HELPER_LIBS"; then
15668 pkg_cv_PKCS11_HELPER_LIBS="$PKCS11_HELPER_LIBS"
15669 elif test -n "$PKG_CONFIG"; then
15670 if test -n "$PKG_CONFIG" && \
15671 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpkcs11-helper-1 >= 1.11\""; } >&5
15672 ($PKG_CONFIG --exists --print-errors "libpkcs11-helper-1 >= 1.11") 2>&5
15673 ac_status=$?
15674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15675 test $ac_status = 0; }; then
15676 pkg_cv_PKCS11_HELPER_LIBS=`$PKG_CONFIG --libs "libpkcs11-helper-1 >= 1.11" 2>/dev/null`
15677 test "x$?" != "x0" && pkg_failed=yes
15678 else
15679 pkg_failed=yes
15681 else
15682 pkg_failed=untried
15687 if test $pkg_failed = yes; then
15688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15689 $as_echo "no" >&6; }
15691 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15692 _pkg_short_errors_supported=yes
15693 else
15694 _pkg_short_errors_supported=no
15696 if test $_pkg_short_errors_supported = yes; then
15697 PKCS11_HELPER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpkcs11-helper-1 >= 1.11" 2>&1`
15698 else
15699 PKCS11_HELPER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpkcs11-helper-1 >= 1.11" 2>&1`
15701 # Put the nasty error message in config.log where it belongs
15702 echo "$PKCS11_HELPER_PKG_ERRORS" >&5
15706 elif test $pkg_failed = untried; then
15707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15708 $as_echo "no" >&6; }
15711 else
15712 PKCS11_HELPER_CFLAGS=$pkg_cv_PKCS11_HELPER_CFLAGS
15713 PKCS11_HELPER_LIBS=$pkg_cv_PKCS11_HELPER_LIBS
15714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15715 $as_echo "yes" >&6; }
15716 have_pkcs11_helper="yes"
15720 pkg_failed=no
15721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL_CRYPTO" >&5
15722 $as_echo_n "checking for OPENSSL_CRYPTO... " >&6; }
15724 if test -n "$OPENSSL_CRYPTO_CFLAGS"; then
15725 pkg_cv_OPENSSL_CRYPTO_CFLAGS="$OPENSSL_CRYPTO_CFLAGS"
15726 elif test -n "$PKG_CONFIG"; then
15727 if test -n "$PKG_CONFIG" && \
15728 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcrypto >= 0.9.6\""; } >&5
15729 ($PKG_CONFIG --exists --print-errors "libcrypto >= 0.9.6") 2>&5
15730 ac_status=$?
15731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15732 test $ac_status = 0; }; then
15733 pkg_cv_OPENSSL_CRYPTO_CFLAGS=`$PKG_CONFIG --cflags "libcrypto >= 0.9.6" 2>/dev/null`
15734 test "x$?" != "x0" && pkg_failed=yes
15735 else
15736 pkg_failed=yes
15738 else
15739 pkg_failed=untried
15741 if test -n "$OPENSSL_CRYPTO_LIBS"; then
15742 pkg_cv_OPENSSL_CRYPTO_LIBS="$OPENSSL_CRYPTO_LIBS"
15743 elif test -n "$PKG_CONFIG"; then
15744 if test -n "$PKG_CONFIG" && \
15745 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcrypto >= 0.9.6\""; } >&5
15746 ($PKG_CONFIG --exists --print-errors "libcrypto >= 0.9.6") 2>&5
15747 ac_status=$?
15748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15749 test $ac_status = 0; }; then
15750 pkg_cv_OPENSSL_CRYPTO_LIBS=`$PKG_CONFIG --libs "libcrypto >= 0.9.6" 2>/dev/null`
15751 test "x$?" != "x0" && pkg_failed=yes
15752 else
15753 pkg_failed=yes
15755 else
15756 pkg_failed=untried
15761 if test $pkg_failed = yes; then
15762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15763 $as_echo "no" >&6; }
15765 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15766 _pkg_short_errors_supported=yes
15767 else
15768 _pkg_short_errors_supported=no
15770 if test $_pkg_short_errors_supported = yes; then
15771 OPENSSL_CRYPTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcrypto >= 0.9.6" 2>&1`
15772 else
15773 OPENSSL_CRYPTO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcrypto >= 0.9.6" 2>&1`
15775 # Put the nasty error message in config.log where it belongs
15776 echo "$OPENSSL_CRYPTO_PKG_ERRORS" >&5
15778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_new in -lcrypto" >&5
15779 $as_echo_n "checking for RSA_new in -lcrypto... " >&6; }
15780 if ${ac_cv_lib_crypto_RSA_new+:} false; then :
15781 $as_echo_n "(cached) " >&6
15782 else
15783 ac_check_lib_save_LIBS=$LIBS
15784 LIBS="-lcrypto $LIBS"
15785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15786 /* end confdefs.h. */
15788 /* Override any GCC internal prototype to avoid an error.
15789 Use char because int might match the return type of a GCC
15790 builtin and then its argument prototype would still apply. */
15791 #ifdef __cplusplus
15792 extern "C"
15793 #endif
15794 char RSA_new ();
15796 main ()
15798 return RSA_new ();
15800 return 0;
15802 _ACEOF
15803 if ac_fn_c_try_link "$LINENO"; then :
15804 ac_cv_lib_crypto_RSA_new=yes
15805 else
15806 ac_cv_lib_crypto_RSA_new=no
15808 rm -f core conftest.err conftest.$ac_objext \
15809 conftest$ac_exeext conftest.$ac_ext
15810 LIBS=$ac_check_lib_save_LIBS
15812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_new" >&5
15813 $as_echo "$ac_cv_lib_crypto_RSA_new" >&6; }
15814 if test "x$ac_cv_lib_crypto_RSA_new" = xyes; then :
15816 have_openssl_crypto="yes"
15817 OPENSSL_CRYPTO_LIBS="-lcrypto"
15823 elif test $pkg_failed = untried; then
15824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15825 $as_echo "no" >&6; }
15826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_new in -lcrypto" >&5
15827 $as_echo_n "checking for RSA_new in -lcrypto... " >&6; }
15828 if ${ac_cv_lib_crypto_RSA_new+:} false; then :
15829 $as_echo_n "(cached) " >&6
15830 else
15831 ac_check_lib_save_LIBS=$LIBS
15832 LIBS="-lcrypto $LIBS"
15833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15834 /* end confdefs.h. */
15836 /* Override any GCC internal prototype to avoid an error.
15837 Use char because int might match the return type of a GCC
15838 builtin and then its argument prototype would still apply. */
15839 #ifdef __cplusplus
15840 extern "C"
15841 #endif
15842 char RSA_new ();
15844 main ()
15846 return RSA_new ();
15848 return 0;
15850 _ACEOF
15851 if ac_fn_c_try_link "$LINENO"; then :
15852 ac_cv_lib_crypto_RSA_new=yes
15853 else
15854 ac_cv_lib_crypto_RSA_new=no
15856 rm -f core conftest.err conftest.$ac_objext \
15857 conftest$ac_exeext conftest.$ac_ext
15858 LIBS=$ac_check_lib_save_LIBS
15860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_new" >&5
15861 $as_echo "$ac_cv_lib_crypto_RSA_new" >&6; }
15862 if test "x$ac_cv_lib_crypto_RSA_new" = xyes; then :
15864 have_openssl_crypto="yes"
15865 OPENSSL_CRYPTO_LIBS="-lcrypto"
15871 else
15872 OPENSSL_CRYPTO_CFLAGS=$pkg_cv_OPENSSL_CRYPTO_CFLAGS
15873 OPENSSL_CRYPTO_LIBS=$pkg_cv_OPENSSL_CRYPTO_LIBS
15874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15875 $as_echo "yes" >&6; }
15876 have_openssl_crypto="yes"
15880 pkg_failed=no
15881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL_SSL" >&5
15882 $as_echo_n "checking for OPENSSL_SSL... " >&6; }
15884 if test -n "$OPENSSL_SSL_CFLAGS"; then
15885 pkg_cv_OPENSSL_SSL_CFLAGS="$OPENSSL_SSL_CFLAGS"
15886 elif test -n "$PKG_CONFIG"; then
15887 if test -n "$PKG_CONFIG" && \
15888 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libssl >= 0.9.6\""; } >&5
15889 ($PKG_CONFIG --exists --print-errors "libssl >= 0.9.6") 2>&5
15890 ac_status=$?
15891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15892 test $ac_status = 0; }; then
15893 pkg_cv_OPENSSL_SSL_CFLAGS=`$PKG_CONFIG --cflags "libssl >= 0.9.6" 2>/dev/null`
15894 test "x$?" != "x0" && pkg_failed=yes
15895 else
15896 pkg_failed=yes
15898 else
15899 pkg_failed=untried
15901 if test -n "$OPENSSL_SSL_LIBS"; then
15902 pkg_cv_OPENSSL_SSL_LIBS="$OPENSSL_SSL_LIBS"
15903 elif test -n "$PKG_CONFIG"; then
15904 if test -n "$PKG_CONFIG" && \
15905 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libssl >= 0.9.6\""; } >&5
15906 ($PKG_CONFIG --exists --print-errors "libssl >= 0.9.6") 2>&5
15907 ac_status=$?
15908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15909 test $ac_status = 0; }; then
15910 pkg_cv_OPENSSL_SSL_LIBS=`$PKG_CONFIG --libs "libssl >= 0.9.6" 2>/dev/null`
15911 test "x$?" != "x0" && pkg_failed=yes
15912 else
15913 pkg_failed=yes
15915 else
15916 pkg_failed=untried
15921 if test $pkg_failed = yes; then
15922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15923 $as_echo "no" >&6; }
15925 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15926 _pkg_short_errors_supported=yes
15927 else
15928 _pkg_short_errors_supported=no
15930 if test $_pkg_short_errors_supported = yes; then
15931 OPENSSL_SSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libssl >= 0.9.6" 2>&1`
15932 else
15933 OPENSSL_SSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libssl >= 0.9.6" 2>&1`
15935 # Put the nasty error message in config.log where it belongs
15936 echo "$OPENSSL_SSL_PKG_ERRORS" >&5
15938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_CTX_new in -lssl" >&5
15939 $as_echo_n "checking for SSL_CTX_new in -lssl... " >&6; }
15940 if ${ac_cv_lib_ssl_SSL_CTX_new+:} false; then :
15941 $as_echo_n "(cached) " >&6
15942 else
15943 ac_check_lib_save_LIBS=$LIBS
15944 LIBS="-lssl -lcrypto
15945 $LIBS"
15946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15947 /* end confdefs.h. */
15949 /* Override any GCC internal prototype to avoid an error.
15950 Use char because int might match the return type of a GCC
15951 builtin and then its argument prototype would still apply. */
15952 #ifdef __cplusplus
15953 extern "C"
15954 #endif
15955 char SSL_CTX_new ();
15957 main ()
15959 return SSL_CTX_new ();
15961 return 0;
15963 _ACEOF
15964 if ac_fn_c_try_link "$LINENO"; then :
15965 ac_cv_lib_ssl_SSL_CTX_new=yes
15966 else
15967 ac_cv_lib_ssl_SSL_CTX_new=no
15969 rm -f core conftest.err conftest.$ac_objext \
15970 conftest$ac_exeext conftest.$ac_ext
15971 LIBS=$ac_check_lib_save_LIBS
15973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_CTX_new" >&5
15974 $as_echo "$ac_cv_lib_ssl_SSL_CTX_new" >&6; }
15975 if test "x$ac_cv_lib_ssl_SSL_CTX_new" = xyes; then :
15977 have_openssl_ssl="yes"
15978 OPENSSL_SSL_LIBS="-lssl"
15983 elif test $pkg_failed = untried; then
15984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15985 $as_echo "no" >&6; }
15986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_CTX_new in -lssl" >&5
15987 $as_echo_n "checking for SSL_CTX_new in -lssl... " >&6; }
15988 if ${ac_cv_lib_ssl_SSL_CTX_new+:} false; then :
15989 $as_echo_n "(cached) " >&6
15990 else
15991 ac_check_lib_save_LIBS=$LIBS
15992 LIBS="-lssl -lcrypto
15993 $LIBS"
15994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15995 /* end confdefs.h. */
15997 /* Override any GCC internal prototype to avoid an error.
15998 Use char because int might match the return type of a GCC
15999 builtin and then its argument prototype would still apply. */
16000 #ifdef __cplusplus
16001 extern "C"
16002 #endif
16003 char SSL_CTX_new ();
16005 main ()
16007 return SSL_CTX_new ();
16009 return 0;
16011 _ACEOF
16012 if ac_fn_c_try_link "$LINENO"; then :
16013 ac_cv_lib_ssl_SSL_CTX_new=yes
16014 else
16015 ac_cv_lib_ssl_SSL_CTX_new=no
16017 rm -f core conftest.err conftest.$ac_objext \
16018 conftest$ac_exeext conftest.$ac_ext
16019 LIBS=$ac_check_lib_save_LIBS
16021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_CTX_new" >&5
16022 $as_echo "$ac_cv_lib_ssl_SSL_CTX_new" >&6; }
16023 if test "x$ac_cv_lib_ssl_SSL_CTX_new" = xyes; then :
16025 have_openssl_ssl="yes"
16026 OPENSSL_SSL_LIBS="-lssl"
16031 else
16032 OPENSSL_SSL_CFLAGS=$pkg_cv_OPENSSL_SSL_CFLAGS
16033 OPENSSL_SSL_LIBS=$pkg_cv_OPENSSL_SSL_LIBS
16034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16035 $as_echo "yes" >&6; }
16036 have_openssl_ssl="yes"
16039 if test "${have_openssl_crypto}" = "yes"; then
16040 saved_CFLAGS="${CFLAGS}"
16041 saved_LIBS="${LIBS}"
16042 CFLAGS="${CFLAGS} ${OPENSSL_CRYPTO_CFLAGS}"
16043 LIBS="${LIBS} ${OPENSSL_CRYPTO_LIBS}"
16044 for ac_func in EVP_CIPHER_CTX_set_key_length
16045 do :
16046 ac_fn_c_check_func "$LINENO" "EVP_CIPHER_CTX_set_key_length" "ac_cv_func_EVP_CIPHER_CTX_set_key_length"
16047 if test "x$ac_cv_func_EVP_CIPHER_CTX_set_key_length" = xyes; then :
16048 cat >>confdefs.h <<_ACEOF
16049 #define HAVE_EVP_CIPHER_CTX_SET_KEY_LENGTH 1
16050 _ACEOF
16053 done
16055 have_openssl_engine="yes"
16056 for ac_func in \
16057 ENGINE_load_builtin_engines \
16058 ENGINE_register_all_complete \
16059 ENGINE_cleanup \
16061 do :
16062 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16063 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16064 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16065 cat >>confdefs.h <<_ACEOF
16066 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16067 _ACEOF
16069 else
16070 have_openssl_engine="no"; break
16073 done
16076 CFLAGS="${saved_CFLAGS}"
16077 LIBS="${saved_LIBS}"
16082 have_polarssl_ssl="yes"
16083 have_polarssl_crypto="yes"
16084 if test -z "${POLARSSL_LIBS}"; then
16085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl_init in -lpolarssl" >&5
16086 $as_echo_n "checking for ssl_init in -lpolarssl... " >&6; }
16087 if ${ac_cv_lib_polarssl_ssl_init+:} false; then :
16088 $as_echo_n "(cached) " >&6
16089 else
16090 ac_check_lib_save_LIBS=$LIBS
16091 LIBS="-lpolarssl ${PKCS11_HELPER_LIBS}
16092 $LIBS"
16093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16094 /* end confdefs.h. */
16096 /* Override any GCC internal prototype to avoid an error.
16097 Use char because int might match the return type of a GCC
16098 builtin and then its argument prototype would still apply. */
16099 #ifdef __cplusplus
16100 extern "C"
16101 #endif
16102 char ssl_init ();
16104 main ()
16106 return ssl_init ();
16108 return 0;
16110 _ACEOF
16111 if ac_fn_c_try_link "$LINENO"; then :
16112 ac_cv_lib_polarssl_ssl_init=yes
16113 else
16114 ac_cv_lib_polarssl_ssl_init=no
16116 rm -f core conftest.err conftest.$ac_objext \
16117 conftest$ac_exeext conftest.$ac_ext
16118 LIBS=$ac_check_lib_save_LIBS
16120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_polarssl_ssl_init" >&5
16121 $as_echo "$ac_cv_lib_polarssl_ssl_init" >&6; }
16122 if test "x$ac_cv_lib_polarssl_ssl_init" = xyes; then :
16123 POLARSSL_LIBS="-lpolarssl"
16124 else
16126 have_polarssl_ssl="no"
16127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aes_crypt_cbc in -lpolarssl" >&5
16128 $as_echo_n "checking for aes_crypt_cbc in -lpolarssl... " >&6; }
16129 if ${ac_cv_lib_polarssl_aes_crypt_cbc+:} false; then :
16130 $as_echo_n "(cached) " >&6
16131 else
16132 ac_check_lib_save_LIBS=$LIBS
16133 LIBS="-lpolarssl ${PKCS11_HELPER_LIBS}
16134 $LIBS"
16135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16136 /* end confdefs.h. */
16138 /* Override any GCC internal prototype to avoid an error.
16139 Use char because int might match the return type of a GCC
16140 builtin and then its argument prototype would still apply. */
16141 #ifdef __cplusplus
16142 extern "C"
16143 #endif
16144 char aes_crypt_cbc ();
16146 main ()
16148 return aes_crypt_cbc ();
16150 return 0;
16152 _ACEOF
16153 if ac_fn_c_try_link "$LINENO"; then :
16154 ac_cv_lib_polarssl_aes_crypt_cbc=yes
16155 else
16156 ac_cv_lib_polarssl_aes_crypt_cbc=no
16158 rm -f core conftest.err conftest.$ac_objext \
16159 conftest$ac_exeext conftest.$ac_ext
16160 LIBS=$ac_check_lib_save_LIBS
16162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_polarssl_aes_crypt_cbc" >&5
16163 $as_echo "$ac_cv_lib_polarssl_aes_crypt_cbc" >&6; }
16164 if test "x$ac_cv_lib_polarssl_aes_crypt_cbc" = xyes; then :
16165 cat >>confdefs.h <<_ACEOF
16166 #define HAVE_LIBPOLARSSL 1
16167 _ACEOF
16169 LIBS="-lpolarssl $LIBS"
16171 else
16172 have_polarssl_crypto="no"
16180 if test "${with_crypto_library}" = "polarssl" ; then
16181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking polarssl version" >&5
16182 $as_echo_n "checking polarssl version... " >&6; }
16183 old_CFLAGS="${CFLAGS}"
16184 CFLAGS="${POLARSSL_CFLAGS} ${CFLAGS}"
16185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16186 /* end confdefs.h. */
16188 #include <polarssl/version.h>
16191 main ()
16194 #if POLARSSL_VERSION_NUMBER < 0x01020A00 || POLARSSL_VERSION_NUMBER >= 0x01030000
16195 #error invalid version
16196 #endif
16200 return 0;
16202 _ACEOF
16203 if ac_fn_c_try_compile "$LINENO"; then :
16204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
16205 $as_echo "ok" >&6; }
16206 else
16207 as_fn_error $? "PolarSSL 1.2.x required and must be 1.2.10 or later" "$LINENO" 5
16210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16212 polarssl_with_pkcs11="no"
16213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16214 /* end confdefs.h. */
16216 #include <polarssl/config.h>
16219 main ()
16222 #ifndef POLARSSL_PKCS11_C
16223 #error pkcs11 wrapper missing
16224 #endif
16228 return 0;
16230 _ACEOF
16231 if ac_fn_c_try_compile "$LINENO"; then :
16232 polarssl_with_pkcs11="yes"
16234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16235 CFLAGS="${old_CFLAGS}"
16237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking polarssl pkcs11 support" >&5
16238 $as_echo_n "checking polarssl pkcs11 support... " >&6; }
16239 if test "${enable_pkcs11}" = "yes"; then
16240 if test "${polarssl_with_pkcs11}" = "yes"; then
16241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
16242 $as_echo "ok" >&6; }
16243 else
16244 as_fn_error $? "polarssl has no pkcs11 wrapper compiled in" "$LINENO" 5
16246 else
16247 if test "${polarssl_with_pkcs11}" != "yes"; then
16248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
16249 $as_echo "ok" >&6; }
16250 else
16251 as_fn_error $? "PolarSSL compiled with PKCS11, while OpenVPN is not" "$LINENO" 5
16259 have_lzo="yes"
16260 if test -z "${LZO_LIBS}"; then
16261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzo1x_1_15_compress in -llzo2" >&5
16262 $as_echo_n "checking for lzo1x_1_15_compress in -llzo2... " >&6; }
16263 if ${ac_cv_lib_lzo2_lzo1x_1_15_compress+:} false; then :
16264 $as_echo_n "(cached) " >&6
16265 else
16266 ac_check_lib_save_LIBS=$LIBS
16267 LIBS="-llzo2 $LIBS"
16268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16269 /* end confdefs.h. */
16271 /* Override any GCC internal prototype to avoid an error.
16272 Use char because int might match the return type of a GCC
16273 builtin and then its argument prototype would still apply. */
16274 #ifdef __cplusplus
16275 extern "C"
16276 #endif
16277 char lzo1x_1_15_compress ();
16279 main ()
16281 return lzo1x_1_15_compress ();
16283 return 0;
16285 _ACEOF
16286 if ac_fn_c_try_link "$LINENO"; then :
16287 ac_cv_lib_lzo2_lzo1x_1_15_compress=yes
16288 else
16289 ac_cv_lib_lzo2_lzo1x_1_15_compress=no
16291 rm -f core conftest.err conftest.$ac_objext \
16292 conftest$ac_exeext conftest.$ac_ext
16293 LIBS=$ac_check_lib_save_LIBS
16295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzo2_lzo1x_1_15_compress" >&5
16296 $as_echo "$ac_cv_lib_lzo2_lzo1x_1_15_compress" >&6; }
16297 if test "x$ac_cv_lib_lzo2_lzo1x_1_15_compress" = xyes; then :
16298 LZO_LIBS="-llzo2"
16299 else
16300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzo1x_1_15_compress in -llzo" >&5
16301 $as_echo_n "checking for lzo1x_1_15_compress in -llzo... " >&6; }
16302 if ${ac_cv_lib_lzo_lzo1x_1_15_compress+:} false; then :
16303 $as_echo_n "(cached) " >&6
16304 else
16305 ac_check_lib_save_LIBS=$LIBS
16306 LIBS="-llzo $LIBS"
16307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16308 /* end confdefs.h. */
16310 /* Override any GCC internal prototype to avoid an error.
16311 Use char because int might match the return type of a GCC
16312 builtin and then its argument prototype would still apply. */
16313 #ifdef __cplusplus
16314 extern "C"
16315 #endif
16316 char lzo1x_1_15_compress ();
16318 main ()
16320 return lzo1x_1_15_compress ();
16322 return 0;
16324 _ACEOF
16325 if ac_fn_c_try_link "$LINENO"; then :
16326 ac_cv_lib_lzo_lzo1x_1_15_compress=yes
16327 else
16328 ac_cv_lib_lzo_lzo1x_1_15_compress=no
16330 rm -f core conftest.err conftest.$ac_objext \
16331 conftest$ac_exeext conftest.$ac_ext
16332 LIBS=$ac_check_lib_save_LIBS
16334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzo_lzo1x_1_15_compress" >&5
16335 $as_echo "$ac_cv_lib_lzo_lzo1x_1_15_compress" >&6; }
16336 if test "x$ac_cv_lib_lzo_lzo1x_1_15_compress" = xyes; then :
16337 LZO_LIBS="-llzo"
16338 else
16339 have_lzo="no"
16347 if test "${have_lzo}" = "yes"; then
16348 saved_CFLAGS="${CFLAGS}"
16349 CFLAGS="${CFLAGS} ${LZO_CFLAGS}"
16350 for ac_header in lzo/lzoutil.h
16351 do :
16352 ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzoutil.h" "ac_cv_header_lzo_lzoutil_h" "$ac_includes_default"
16353 if test "x$ac_cv_header_lzo_lzoutil_h" = xyes; then :
16354 cat >>confdefs.h <<_ACEOF
16355 #define HAVE_LZO_LZOUTIL_H 1
16356 _ACEOF
16358 else
16359 for ac_header in lzoutil.h
16360 do :
16361 ac_fn_c_check_header_mongrel "$LINENO" "lzoutil.h" "ac_cv_header_lzoutil_h" "$ac_includes_default"
16362 if test "x$ac_cv_header_lzoutil_h" = xyes; then :
16363 cat >>confdefs.h <<_ACEOF
16364 #define HAVE_LZOUTIL_H 1
16365 _ACEOF
16367 else
16368 as_fn_error $? "lzoutil.h is missing" "$LINENO" 5
16372 done
16377 done
16379 for ac_header in lzo/lzo1x.h
16380 do :
16381 ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzo1x.h" "ac_cv_header_lzo_lzo1x_h" "$ac_includes_default"
16382 if test "x$ac_cv_header_lzo_lzo1x_h" = xyes; then :
16383 cat >>confdefs.h <<_ACEOF
16384 #define HAVE_LZO_LZO1X_H 1
16385 _ACEOF
16387 else
16388 for ac_header in lzo1x.h
16389 do :
16390 ac_fn_c_check_header_mongrel "$LINENO" "lzo1x.h" "ac_cv_header_lzo1x_h" "$ac_includes_default"
16391 if test "x$ac_cv_header_lzo1x_h" = xyes; then :
16392 cat >>confdefs.h <<_ACEOF
16393 #define HAVE_LZO1X_H 1
16394 _ACEOF
16396 else
16397 as_fn_error $? "lzo1x.h is missing" "$LINENO" 5
16401 done
16406 done
16408 CFLAGS="${saved_CFLAGS}"
16413 if test "$enable_systemd" = "yes" ; then
16415 pkg_failed=no
16416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsystemd" >&5
16417 $as_echo_n "checking for libsystemd... " >&6; }
16419 if test -n "$libsystemd_CFLAGS"; then
16420 pkg_cv_libsystemd_CFLAGS="$libsystemd_CFLAGS"
16421 elif test -n "$PKG_CONFIG"; then
16422 if test -n "$PKG_CONFIG" && \
16423 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd libsystemd\""; } >&5
16424 ($PKG_CONFIG --exists --print-errors "systemd libsystemd") 2>&5
16425 ac_status=$?
16426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16427 test $ac_status = 0; }; then
16428 pkg_cv_libsystemd_CFLAGS=`$PKG_CONFIG --cflags "systemd libsystemd" 2>/dev/null`
16429 test "x$?" != "x0" && pkg_failed=yes
16430 else
16431 pkg_failed=yes
16433 else
16434 pkg_failed=untried
16436 if test -n "$libsystemd_LIBS"; then
16437 pkg_cv_libsystemd_LIBS="$libsystemd_LIBS"
16438 elif test -n "$PKG_CONFIG"; then
16439 if test -n "$PKG_CONFIG" && \
16440 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd libsystemd\""; } >&5
16441 ($PKG_CONFIG --exists --print-errors "systemd libsystemd") 2>&5
16442 ac_status=$?
16443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16444 test $ac_status = 0; }; then
16445 pkg_cv_libsystemd_LIBS=`$PKG_CONFIG --libs "systemd libsystemd" 2>/dev/null`
16446 test "x$?" != "x0" && pkg_failed=yes
16447 else
16448 pkg_failed=yes
16450 else
16451 pkg_failed=untried
16456 if test $pkg_failed = yes; then
16457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16458 $as_echo "no" >&6; }
16460 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16461 _pkg_short_errors_supported=yes
16462 else
16463 _pkg_short_errors_supported=no
16465 if test $_pkg_short_errors_supported = yes; then
16466 libsystemd_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "systemd libsystemd" 2>&1`
16467 else
16468 libsystemd_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "systemd libsystemd" 2>&1`
16470 # Put the nasty error message in config.log where it belongs
16471 echo "$libsystemd_PKG_ERRORS" >&5
16474 pkg_failed=no
16475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsystemd" >&5
16476 $as_echo_n "checking for libsystemd... " >&6; }
16478 if test -n "$libsystemd_CFLAGS"; then
16479 pkg_cv_libsystemd_CFLAGS="$libsystemd_CFLAGS"
16480 elif test -n "$PKG_CONFIG"; then
16481 if test -n "$PKG_CONFIG" && \
16482 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
16483 ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
16484 ac_status=$?
16485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16486 test $ac_status = 0; }; then
16487 pkg_cv_libsystemd_CFLAGS=`$PKG_CONFIG --cflags "libsystemd-daemon" 2>/dev/null`
16488 test "x$?" != "x0" && pkg_failed=yes
16489 else
16490 pkg_failed=yes
16492 else
16493 pkg_failed=untried
16495 if test -n "$libsystemd_LIBS"; then
16496 pkg_cv_libsystemd_LIBS="$libsystemd_LIBS"
16497 elif test -n "$PKG_CONFIG"; then
16498 if test -n "$PKG_CONFIG" && \
16499 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
16500 ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
16501 ac_status=$?
16502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16503 test $ac_status = 0; }; then
16504 pkg_cv_libsystemd_LIBS=`$PKG_CONFIG --libs "libsystemd-daemon" 2>/dev/null`
16505 test "x$?" != "x0" && pkg_failed=yes
16506 else
16507 pkg_failed=yes
16509 else
16510 pkg_failed=untried
16515 if test $pkg_failed = yes; then
16516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16517 $as_echo "no" >&6; }
16519 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16520 _pkg_short_errors_supported=yes
16521 else
16522 _pkg_short_errors_supported=no
16524 if test $_pkg_short_errors_supported = yes; then
16525 libsystemd_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
16526 else
16527 libsystemd_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
16529 # Put the nasty error message in config.log where it belongs
16530 echo "$libsystemd_PKG_ERRORS" >&5
16532 as_fn_error $? "Package requirements (libsystemd-daemon) were not met:
16534 $libsystemd_PKG_ERRORS
16536 Consider adjusting the PKG_CONFIG_PATH environment variable if you
16537 installed software in a non-standard prefix.
16539 Alternatively, you may set the environment variables libsystemd_CFLAGS
16540 and libsystemd_LIBS to avoid the need to call pkg-config.
16541 See the pkg-config man page for more details." "$LINENO" 5
16542 elif test $pkg_failed = untried; then
16543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16544 $as_echo "no" >&6; }
16545 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16546 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16547 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
16548 is in your PATH or set the PKG_CONFIG environment variable to the full
16549 path to pkg-config.
16551 Alternatively, you may set the environment variables libsystemd_CFLAGS
16552 and libsystemd_LIBS to avoid the need to call pkg-config.
16553 See the pkg-config man page for more details.
16555 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16556 See \`config.log' for more details" "$LINENO" 5; }
16557 else
16558 libsystemd_CFLAGS=$pkg_cv_libsystemd_CFLAGS
16559 libsystemd_LIBS=$pkg_cv_libsystemd_LIBS
16560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16561 $as_echo "yes" >&6; }
16565 elif test $pkg_failed = untried; then
16566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16567 $as_echo "no" >&6; }
16569 pkg_failed=no
16570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsystemd" >&5
16571 $as_echo_n "checking for libsystemd... " >&6; }
16573 if test -n "$libsystemd_CFLAGS"; then
16574 pkg_cv_libsystemd_CFLAGS="$libsystemd_CFLAGS"
16575 elif test -n "$PKG_CONFIG"; then
16576 if test -n "$PKG_CONFIG" && \
16577 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
16578 ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
16579 ac_status=$?
16580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16581 test $ac_status = 0; }; then
16582 pkg_cv_libsystemd_CFLAGS=`$PKG_CONFIG --cflags "libsystemd-daemon" 2>/dev/null`
16583 test "x$?" != "x0" && pkg_failed=yes
16584 else
16585 pkg_failed=yes
16587 else
16588 pkg_failed=untried
16590 if test -n "$libsystemd_LIBS"; then
16591 pkg_cv_libsystemd_LIBS="$libsystemd_LIBS"
16592 elif test -n "$PKG_CONFIG"; then
16593 if test -n "$PKG_CONFIG" && \
16594 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
16595 ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
16596 ac_status=$?
16597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16598 test $ac_status = 0; }; then
16599 pkg_cv_libsystemd_LIBS=`$PKG_CONFIG --libs "libsystemd-daemon" 2>/dev/null`
16600 test "x$?" != "x0" && pkg_failed=yes
16601 else
16602 pkg_failed=yes
16604 else
16605 pkg_failed=untried
16610 if test $pkg_failed = yes; then
16611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16612 $as_echo "no" >&6; }
16614 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16615 _pkg_short_errors_supported=yes
16616 else
16617 _pkg_short_errors_supported=no
16619 if test $_pkg_short_errors_supported = yes; then
16620 libsystemd_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
16621 else
16622 libsystemd_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
16624 # Put the nasty error message in config.log where it belongs
16625 echo "$libsystemd_PKG_ERRORS" >&5
16627 as_fn_error $? "Package requirements (libsystemd-daemon) were not met:
16629 $libsystemd_PKG_ERRORS
16631 Consider adjusting the PKG_CONFIG_PATH environment variable if you
16632 installed software in a non-standard prefix.
16634 Alternatively, you may set the environment variables libsystemd_CFLAGS
16635 and libsystemd_LIBS to avoid the need to call pkg-config.
16636 See the pkg-config man page for more details." "$LINENO" 5
16637 elif test $pkg_failed = untried; then
16638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16639 $as_echo "no" >&6; }
16640 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16641 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16642 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
16643 is in your PATH or set the PKG_CONFIG environment variable to the full
16644 path to pkg-config.
16646 Alternatively, you may set the environment variables libsystemd_CFLAGS
16647 and libsystemd_LIBS to avoid the need to call pkg-config.
16648 See the pkg-config man page for more details.
16650 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16651 See \`config.log' for more details" "$LINENO" 5; }
16652 else
16653 libsystemd_CFLAGS=$pkg_cv_libsystemd_CFLAGS
16654 libsystemd_LIBS=$pkg_cv_libsystemd_LIBS
16655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16656 $as_echo "yes" >&6; }
16660 else
16661 libsystemd_CFLAGS=$pkg_cv_libsystemd_CFLAGS
16662 libsystemd_LIBS=$pkg_cv_libsystemd_LIBS
16663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16664 $as_echo "yes" >&6; }
16667 for ac_header in systemd/sd-daemon.h
16668 do :
16669 ac_fn_c_check_header_mongrel "$LINENO" "systemd/sd-daemon.h" "ac_cv_header_systemd_sd_daemon_h" "$ac_includes_default"
16670 if test "x$ac_cv_header_systemd_sd_daemon_h" = xyes; then :
16671 cat >>confdefs.h <<_ACEOF
16672 #define HAVE_SYSTEMD_SD_DAEMON_H 1
16673 _ACEOF
16675 else
16677 as_fn_error $? "systemd development headers not found." "$LINENO" 5
16681 done
16684 saved_LIBS="${LIBS}"
16685 LIBS="${LIBS} ${libsystemd_LIBS}"
16686 for ac_func in sd_booted
16687 do :
16688 ac_fn_c_check_func "$LINENO" "sd_booted" "ac_cv_func_sd_booted"
16689 if test "x$ac_cv_func_sd_booted" = xyes; then :
16690 cat >>confdefs.h <<_ACEOF
16691 #define HAVE_SD_BOOTED 1
16692 _ACEOF
16694 else
16695 as_fn_error $? "systemd library is missing sd_booted()" "$LINENO" 5
16697 done
16699 OPTIONAL_SYSTEMD_LIBS="${libsystemd_LIBS}"
16701 $as_echo "#define ENABLE_SYSTEMD 1" >>confdefs.h
16703 LIBS="${saved_LIBS}"
16707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking git checkout" >&5
16708 $as_echo_n "checking git checkout... " >&6; }
16709 GIT_CHECKOUT="no"
16710 if test -n "${GIT}" -a -d "${srcdir}/.git"; then
16712 $as_echo "#define HAVE_CONFIG_VERSION_H 1" >>confdefs.h
16714 GIT_CHECKOUT="yes"
16716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${GIT_CHECKOUT}" >&5
16717 $as_echo "${GIT_CHECKOUT}" >&6; }
16719 if test -n "${SP_PLATFORM_WINDOWS}"; then
16721 cat >>confdefs.h <<_ACEOF
16722 #define PATH_SEPARATOR '\\\\'
16723 _ACEOF
16726 cat >>confdefs.h <<_ACEOF
16727 #define PATH_SEPARATOR_STR "\\\\"
16728 _ACEOF
16730 else
16732 cat >>confdefs.h <<_ACEOF
16733 #define PATH_SEPARATOR '/'
16734 _ACEOF
16737 cat >>confdefs.h <<_ACEOF
16738 #define PATH_SEPARATOR_STR "/"
16739 _ACEOF
16743 if test "${enable_x509_alt_username}" = "yes"; then
16744 if test "${with_crypto_library}" = "polarssl" ; then
16745 as_fn_error $? "PolarSSL does not support the --x509-username-field feature" "$LINENO" 5
16749 $as_echo "#define ENABLE_X509ALTUSERNAME 1" >>confdefs.h
16753 test "${ac_cv_header_sys_uio_h}" = "yes" &&
16754 $as_echo "#define HAVE_IOVEC 1" >>confdefs.h
16756 test "${enable_multi}" = "yes" &&
16757 $as_echo "#define ENABLE_CLIENT_SERVER 1" >>confdefs.h
16759 test "${enable_server}" = "no" &&
16760 $as_echo "#define ENABLE_CLIENT_ONLY 1" >>confdefs.h
16762 test "${enable_management}" = "yes" &&
16763 $as_echo "#define ENABLE_MANAGEMENT 1" >>confdefs.h
16765 test "${enable_socks}" = "yes" &&
16766 $as_echo "#define ENABLE_SOCKS 1" >>confdefs.h
16768 test "${enable_http_proxy}" = "yes" &&
16769 $as_echo "#define ENABLE_HTTP_PROXY 1" >>confdefs.h
16771 test "${enable_multihome}" = "yes" &&
16772 $as_echo "#define ENABLE_MULTIHOME 1" >>confdefs.h
16774 test "${enable_debug}" = "yes" &&
16775 $as_echo "#define ENABLE_DEBUG 1" >>confdefs.h
16777 test "${enable_small}" = "yes" &&
16778 $as_echo "#define ENABLE_SMALL 1" >>confdefs.h
16780 test "${enable_fragment}" = "yes" &&
16781 $as_echo "#define ENABLE_FRAGMENT 1" >>confdefs.h
16783 test "${enable_port_share}" = "yes" &&
16784 $as_echo "#define ENABLE_PORT_SHARE 1" >>confdefs.h
16786 test "${enable_def_auth}" = "yes" &&
16787 $as_echo "#define ENABLE_DEF_AUTH 1" >>confdefs.h
16789 test "${enable_pf}" = "yes" &&
16790 $as_echo "#define ENABLE_PF 1" >>confdefs.h
16792 test "${enable_strict_options}" = "yes" &&
16793 $as_echo "#define ENABLE_STRICT_OPTIONS_CHECK 1" >>confdefs.h
16795 test "${enable_password_save}" = "yes" &&
16796 $as_echo "#define ENABLE_PASSWORD_SAVE 1" >>confdefs.h
16799 case "${with_crypto_library}" in
16800 openssl)
16801 have_crypto_crypto="${have_openssl_crypto}"
16802 have_crypto_ssl="${have_openssl_ssl}"
16803 CRYPTO_CRYPTO_CFLAGS="${OPENSSL_CRYPTO_CFLAGS}"
16804 CRYPTO_CRYPTO_LIBS="${OPENSSL_CRYPTO_LIBS}"
16805 CRYPTO_SSL_CFLAGS="${OPENSSL_SSL_CFLAGS}"
16806 CRYPTO_SSL_LIBS="${OPENSSL_SSL_LIBS}"
16808 $as_echo "#define ENABLE_CRYPTO_OPENSSL 1" >>confdefs.h
16810 test "${have_openssl_engine}" = "yes" &&
16811 $as_echo "#define HAVE_OPENSSL_ENGINE 1" >>confdefs.h
16814 polarssl)
16815 have_crypto_crypto="${have_polarssl_crypto}"
16816 have_crypto_ssl="${have_polarssl_ssl}"
16817 CRYPTO_CRYPTO_CFLAGS="${POLARSSL_CFLAGS}"
16818 CRYPTO_CRYPTO_LIBS="${POLARSSL_LIBS}"
16820 $as_echo "#define ENABLE_CRYPTO_POLARSSL 1" >>confdefs.h
16823 esac
16825 if test "${enable_ssl}" = "yes"; then
16826 test "${enable_crypto}" != "yes" && as_fn_error $? "crypto must be enabled for ssl" "$LINENO" 5
16827 test "${have_crypto_ssl}" != "yes" && as_fn_error $? "${with_ssl_library} ssl is required but missing" "$LINENO" 5
16828 OPTIONAL_CRYPTO_CFLAGS="${OPTIONAL_CRYPTO_CFLAGS} ${CRYPTO_SSL_CFLAGS}"
16829 OPTIONAL_CRYPTO_LIBS="${OPTIONAL_CRYPTO_LIBS} ${CRYPTO_SSL_LIBS}"
16831 $as_echo "#define ENABLE_SSL 1" >>confdefs.h
16835 if test "${enable_crypto}" = "yes"; then
16836 test "${have_crypto_crypto}" != "yes" && as_fn_error $? "${with_crypto_library} crypto is required but missing" "$LINENO" 5
16837 test "${enable_crypto_ofb_cfb}" = "yes" &&
16838 $as_echo "#define ENABLE_OFB_CFB_MODE 1" >>confdefs.h
16840 OPTIONAL_CRYPTO_CFLAGS="${OPTIONAL_CRYPTO_CFLAGS} ${CRYPTO_CRYPTO_CFLAGS}"
16841 OPTIONAL_CRYPTO_LIBS="${OPTIONAL_CRYPTO_LIBS} ${CRYPTO_CRYPTO_LIBS}"
16843 $as_echo "#define ENABLE_CRYPTO 1" >>confdefs.h
16847 if test "${enable_plugins}" = "yes"; then
16848 OPTIONAL_DL_LIBS="${DL_LIBS}"
16850 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
16852 else
16853 enable_plugin_auth_pam="no"
16854 enable_plugin_down_root="no"
16857 if test "${enable_iproute2}" = "yes"; then
16858 test -z "${IPROUTE}" && as_fn_error $? "ip utility is required but missing" "$LINENO" 5
16860 $as_echo "#define ENABLE_IPROUTE 1" >>confdefs.h
16862 else
16863 if test "${WIN32}" != "yes"; then
16864 test -z "${ROUTE}" && as_fn_error $? "route utility is required but missing" "$LINENO" 5
16865 test -z "${IFCONFIG}" && as_fn_error $? "ifconfig utility is required but missing" "$LINENO" 5
16869 if test "${enable_selinux}" = "yes"; then
16870 test -z "${SELINUX_LIBS}" && as_fn_error $? "libselinux required but missing" "$LINENO" 5
16871 OPTIONAL_SELINUX_LIBS="${SELINUX_LIBS}"
16873 $as_echo "#define ENABLE_SELINUX 1" >>confdefs.h
16877 if test "${enable_lzo}" = "yes"; then
16878 test "${have_lzo}" != "yes" && as_fn_error $? "lzo enabled but missing" "$LINENO" 5
16879 OPTIONAL_LZO_CFLAGS="${LZO_CFLAGS}"
16880 OPTIONAL_LZO_LIBS="${LZO_LIBS}"
16882 $as_echo "#define ENABLE_LZO 1" >>confdefs.h
16885 if test "${enable_lzo_stub}" = "yes"; then
16886 test "${enable_lzo}" = "yes" && as_fn_error $? "Cannot have both lzo stub and lzo enabled" "$LINENO" 5
16888 $as_echo "#define ENABLE_LZO_STUB 1" >>confdefs.h
16891 $as_echo "#define ENABLE_LZO 1" >>confdefs.h
16895 if test "${enable_pkcs11}" = "yes"; then
16896 test "${have_pkcs11_helper}" != "yes" && as_fn_error $? "PKCS11 enabled but libpkcs11-helper is missing" "$LINENO" 5
16897 test "${enable_ssl}" != "yes" && as_fn_error $? "PKCS11 can be enabled only if SSL is enabled" "$LINENO" 5
16898 OPTIONAL_PKCS11_HELPER_CFLAGS="${PKCS11_HELPER_CFLAGS}"
16899 OPTIONAL_PKCS11_HELPER_LIBS="${PKCS11_HELPER_LIBS}"
16901 $as_echo "#define ENABLE_PKCS11 1" >>confdefs.h
16904 pkg_failed=no
16905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for P11KIT" >&5
16906 $as_echo_n "checking for P11KIT... " >&6; }
16908 if test -n "$P11KIT_CFLAGS"; then
16909 pkg_cv_P11KIT_CFLAGS="$P11KIT_CFLAGS"
16910 elif test -n "$PKG_CONFIG"; then
16911 if test -n "$PKG_CONFIG" && \
16912 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"p11-kit-1\""; } >&5
16913 ($PKG_CONFIG --exists --print-errors "p11-kit-1") 2>&5
16914 ac_status=$?
16915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16916 test $ac_status = 0; }; then
16917 pkg_cv_P11KIT_CFLAGS=`$PKG_CONFIG --cflags "p11-kit-1" 2>/dev/null`
16918 test "x$?" != "x0" && pkg_failed=yes
16919 else
16920 pkg_failed=yes
16922 else
16923 pkg_failed=untried
16925 if test -n "$P11KIT_LIBS"; then
16926 pkg_cv_P11KIT_LIBS="$P11KIT_LIBS"
16927 elif test -n "$PKG_CONFIG"; then
16928 if test -n "$PKG_CONFIG" && \
16929 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"p11-kit-1\""; } >&5
16930 ($PKG_CONFIG --exists --print-errors "p11-kit-1") 2>&5
16931 ac_status=$?
16932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16933 test $ac_status = 0; }; then
16934 pkg_cv_P11KIT_LIBS=`$PKG_CONFIG --libs "p11-kit-1" 2>/dev/null`
16935 test "x$?" != "x0" && pkg_failed=yes
16936 else
16937 pkg_failed=yes
16939 else
16940 pkg_failed=untried
16945 if test $pkg_failed = yes; then
16946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16947 $as_echo "no" >&6; }
16949 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16950 _pkg_short_errors_supported=yes
16951 else
16952 _pkg_short_errors_supported=no
16954 if test $_pkg_short_errors_supported = yes; then
16955 P11KIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "p11-kit-1" 2>&1`
16956 else
16957 P11KIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "p11-kit-1" 2>&1`
16959 # Put the nasty error message in config.log where it belongs
16960 echo "$P11KIT_PKG_ERRORS" >&5
16964 elif test $pkg_failed = untried; then
16965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16966 $as_echo "no" >&6; }
16969 else
16970 P11KIT_CFLAGS=$pkg_cv_P11KIT_CFLAGS
16971 P11KIT_LIBS=$pkg_cv_P11KIT_LIBS
16972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16973 $as_echo "yes" >&6; }
16974 proxy_module="`$PKG_CONFIG --variable=proxy_module p11-kit-1`"
16976 cat >>confdefs.h <<_ACEOF
16977 #define DEFAULT_PKCS11_MODULE "${proxy_module}"
16978 _ACEOF
16983 if test "${enable_pedantic}" = "yes"; then
16984 enable_strict="yes"
16985 CFLAGS="${CFLAGS} -pedantic"
16986 test "${WIN32}" != "yes" && CFLAGS="${CFLAGS} -ansi"
16988 if test "${enable_strict}" = "yes"; then
16989 CFLAGS="${CFLAGS} -Wall -Wno-unused-parameter -Wno-unused-function"
16992 if test "${WIN32}" = "yes"; then
16993 test -z "${MAN2HTML}" && as_fn_error $? "man2html is required for win32" "$LINENO" 5
16996 if test "${enable_plugin_auth_pam}" = "yes"; then
16997 PLUGIN_AUTH_PAM_CFLAGS="${LIBPAM_CFLAGS}"
16998 if test "${enable_pam_dlopen}" = "yes"; then
17000 $as_echo "#define USE_PAM_DLOPEN 1" >>confdefs.h
17002 PLUGIN_AUTH_PAM_LIBS="${DL_LIBS}"
17003 else
17004 test -z "${LIBPAM_LIBS}" && as_fn_error $? "libpam required but missing" "$LINENO" 5
17005 PLUGIN_AUTH_PAM_LIBS="${LIBPAM_LIBS}"
17009 CONFIGURE_DEFINES="`set | grep '^enable_.*=' ; set | grep '^with_.*='`"
17011 cat >>confdefs.h <<_ACEOF
17012 #define CONFIGURE_DEFINES "`echo ${CONFIGURE_DEFINES}`"
17013 _ACEOF
17016 TAP_WIN_COMPONENT_ID="tap0901"
17017 TAP_WIN_MIN_MAJOR="9"
17018 TAP_WIN_MIN_MINOR="9"
17020 cat >>confdefs.h <<_ACEOF
17021 #define TAP_WIN_COMPONENT_ID "${TAP_WIN_COMPONENT_ID}"
17022 _ACEOF
17025 cat >>confdefs.h <<_ACEOF
17026 #define TAP_WIN_MIN_MAJOR ${TAP_WIN_MIN_MAJOR}
17027 _ACEOF
17030 cat >>confdefs.h <<_ACEOF
17031 #define TAP_WIN_MIN_MINOR ${TAP_WIN_MIN_MINOR}
17032 _ACEOF
17051 if test "${WIN32}" = "yes"; then
17052 WIN32_TRUE=
17053 WIN32_FALSE='#'
17054 else
17055 WIN32_TRUE='#'
17056 WIN32_FALSE=
17059 if test "${GIT_CHECKOUT}" = "yes"; then
17060 GIT_CHECKOUT_TRUE=
17061 GIT_CHECKOUT_FALSE='#'
17062 else
17063 GIT_CHECKOUT_TRUE='#'
17064 GIT_CHECKOUT_FALSE=
17067 if test "${enable_plugin_auth_pam}" = "yes"; then
17068 ENABLE_PLUGIN_AUTH_PAM_TRUE=
17069 ENABLE_PLUGIN_AUTH_PAM_FALSE='#'
17070 else
17071 ENABLE_PLUGIN_AUTH_PAM_TRUE='#'
17072 ENABLE_PLUGIN_AUTH_PAM_FALSE=
17075 if test "${enable_plugin_down_root}" = "yes"; then
17076 ENABLE_PLUGIN_DOWN_ROOT_TRUE=
17077 ENABLE_PLUGIN_DOWN_ROOT_FALSE='#'
17078 else
17079 ENABLE_PLUGIN_DOWN_ROOT_TRUE='#'
17080 ENABLE_PLUGIN_DOWN_ROOT_FALSE=
17084 plugindir="${with_plugindir}"
17085 sampledir="\$(docdir)/sample"
17089 ac_config_files="$ac_config_files version.sh Makefile build/Makefile build/msvc/Makefile build/msvc/msvc-generate/Makefile distro/Makefile distro/rpm/Makefile distro/rpm/openvpn.spec include/Makefile src/Makefile src/compat/Makefile src/openvpn/Makefile src/openvpnserv/Makefile src/plugins/Makefile src/plugins/auth-pam/Makefile src/plugins/down-root/Makefile tests/Makefile sample/Makefile doc/Makefile"
17091 ac_config_files="$ac_config_files tests/t_client.sh"
17093 cat >confcache <<\_ACEOF
17094 # This file is a shell script that caches the results of configure
17095 # tests run on this system so they can be shared between configure
17096 # scripts and configure runs, see configure's option --config-cache.
17097 # It is not useful on other systems. If it contains results you don't
17098 # want to keep, you may remove or edit it.
17100 # config.status only pays attention to the cache file if you give it
17101 # the --recheck option to rerun configure.
17103 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17104 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17105 # following values.
17107 _ACEOF
17109 # The following way of writing the cache mishandles newlines in values,
17110 # but we know of no workaround that is simple, portable, and efficient.
17111 # So, we kill variables containing newlines.
17112 # Ultrix sh set writes to stderr and can't be redirected directly,
17113 # and sets the high bit in the cache file unless we assign to the vars.
17115 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17116 eval ac_val=\$$ac_var
17117 case $ac_val in #(
17118 *${as_nl}*)
17119 case $ac_var in #(
17120 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17121 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17122 esac
17123 case $ac_var in #(
17124 _ | IFS | as_nl) ;; #(
17125 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17126 *) { eval $ac_var=; unset $ac_var;} ;;
17127 esac ;;
17128 esac
17129 done
17131 (set) 2>&1 |
17132 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17133 *${as_nl}ac_space=\ *)
17134 # `set' does not quote correctly, so add quotes: double-quote
17135 # substitution turns \\\\ into \\, and sed turns \\ into \.
17136 sed -n \
17137 "s/'/'\\\\''/g;
17138 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17139 ;; #(
17141 # `set' quotes correctly as required by POSIX, so do not add quotes.
17142 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17144 esac |
17145 sort
17147 sed '
17148 /^ac_cv_env_/b end
17149 t clear
17150 :clear
17151 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17152 t end
17153 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17154 :end' >>confcache
17155 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17156 if test -w "$cache_file"; then
17157 if test "x$cache_file" != "x/dev/null"; then
17158 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17159 $as_echo "$as_me: updating cache $cache_file" >&6;}
17160 if test ! -f "$cache_file" || test -h "$cache_file"; then
17161 cat confcache >"$cache_file"
17162 else
17163 case $cache_file in #(
17164 */* | ?:*)
17165 mv -f confcache "$cache_file"$$ &&
17166 mv -f "$cache_file"$$ "$cache_file" ;; #(
17168 mv -f confcache "$cache_file" ;;
17169 esac
17172 else
17173 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17174 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17177 rm -f confcache
17179 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17180 # Let make expand exec_prefix.
17181 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17183 DEFS=-DHAVE_CONFIG_H
17185 ac_libobjs=
17186 ac_ltlibobjs=
17188 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17189 # 1. Remove the extension, and $U if already installed.
17190 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17191 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17192 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17193 # will be set to the directory where LIBOBJS objects are built.
17194 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17195 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17196 done
17197 LIBOBJS=$ac_libobjs
17199 LTLIBOBJS=$ac_ltlibobjs
17202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17203 $as_echo_n "checking that generated files are newer than configure... " >&6; }
17204 if test -n "$am_sleep_pid"; then
17205 # Hide warnings about reused PIDs.
17206 wait $am_sleep_pid 2>/dev/null
17208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17209 $as_echo "done" >&6; }
17210 if test -n "$EXEEXT"; then
17211 am__EXEEXT_TRUE=
17212 am__EXEEXT_FALSE='#'
17213 else
17214 am__EXEEXT_TRUE='#'
17215 am__EXEEXT_FALSE=
17218 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17219 as_fn_error $? "conditional \"AMDEP\" was never defined.
17220 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17222 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17223 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17224 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17226 if test -z "${WIN32_TRUE}" && test -z "${WIN32_FALSE}"; then
17227 as_fn_error $? "conditional \"WIN32\" was never defined.
17228 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17230 if test -z "${GIT_CHECKOUT_TRUE}" && test -z "${GIT_CHECKOUT_FALSE}"; then
17231 as_fn_error $? "conditional \"GIT_CHECKOUT\" was never defined.
17232 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17234 if test -z "${ENABLE_PLUGIN_AUTH_PAM_TRUE}" && test -z "${ENABLE_PLUGIN_AUTH_PAM_FALSE}"; then
17235 as_fn_error $? "conditional \"ENABLE_PLUGIN_AUTH_PAM\" was never defined.
17236 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17238 if test -z "${ENABLE_PLUGIN_DOWN_ROOT_TRUE}" && test -z "${ENABLE_PLUGIN_DOWN_ROOT_FALSE}"; then
17239 as_fn_error $? "conditional \"ENABLE_PLUGIN_DOWN_ROOT\" was never defined.
17240 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17243 : "${CONFIG_STATUS=./config.status}"
17244 ac_write_fail=0
17245 ac_clean_files_save=$ac_clean_files
17246 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17247 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17248 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17249 as_write_fail=0
17250 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17251 #! $SHELL
17252 # Generated by $as_me.
17253 # Run this file to recreate the current configuration.
17254 # Compiler output produced by configure, useful for debugging
17255 # configure, is in config.log if it exists.
17257 debug=false
17258 ac_cs_recheck=false
17259 ac_cs_silent=false
17261 SHELL=\${CONFIG_SHELL-$SHELL}
17262 export SHELL
17263 _ASEOF
17264 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17265 ## -------------------- ##
17266 ## M4sh Initialization. ##
17267 ## -------------------- ##
17269 # Be more Bourne compatible
17270 DUALCASE=1; export DUALCASE # for MKS sh
17271 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17272 emulate sh
17273 NULLCMD=:
17274 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17275 # is contrary to our usage. Disable this feature.
17276 alias -g '${1+"$@"}'='"$@"'
17277 setopt NO_GLOB_SUBST
17278 else
17279 case `(set -o) 2>/dev/null` in #(
17280 *posix*) :
17281 set -o posix ;; #(
17282 *) :
17284 esac
17288 as_nl='
17290 export as_nl
17291 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17292 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17293 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17294 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17295 # Prefer a ksh shell builtin over an external printf program on Solaris,
17296 # but without wasting forks for bash or zsh.
17297 if test -z "$BASH_VERSION$ZSH_VERSION" \
17298 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17299 as_echo='print -r --'
17300 as_echo_n='print -rn --'
17301 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17302 as_echo='printf %s\n'
17303 as_echo_n='printf %s'
17304 else
17305 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17306 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17307 as_echo_n='/usr/ucb/echo -n'
17308 else
17309 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17310 as_echo_n_body='eval
17311 arg=$1;
17312 case $arg in #(
17313 *"$as_nl"*)
17314 expr "X$arg" : "X\\(.*\\)$as_nl";
17315 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17316 esac;
17317 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17319 export as_echo_n_body
17320 as_echo_n='sh -c $as_echo_n_body as_echo'
17322 export as_echo_body
17323 as_echo='sh -c $as_echo_body as_echo'
17326 # The user is always right.
17327 if test "${PATH_SEPARATOR+set}" != set; then
17328 PATH_SEPARATOR=:
17329 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17330 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17331 PATH_SEPARATOR=';'
17336 # IFS
17337 # We need space, tab and new line, in precisely that order. Quoting is
17338 # there to prevent editors from complaining about space-tab.
17339 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17340 # splitting by setting IFS to empty value.)
17341 IFS=" "" $as_nl"
17343 # Find who we are. Look in the path if we contain no directory separator.
17344 as_myself=
17345 case $0 in #((
17346 *[\\/]* ) as_myself=$0 ;;
17347 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17348 for as_dir in $PATH
17350 IFS=$as_save_IFS
17351 test -z "$as_dir" && as_dir=.
17352 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17353 done
17354 IFS=$as_save_IFS
17357 esac
17358 # We did not find ourselves, most probably we were run as `sh COMMAND'
17359 # in which case we are not to be found in the path.
17360 if test "x$as_myself" = x; then
17361 as_myself=$0
17363 if test ! -f "$as_myself"; then
17364 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17365 exit 1
17368 # Unset variables that we do not need and which cause bugs (e.g. in
17369 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17370 # suppresses any "Segmentation fault" message there. '((' could
17371 # trigger a bug in pdksh 5.2.14.
17372 for as_var in BASH_ENV ENV MAIL MAILPATH
17373 do eval test x\${$as_var+set} = xset \
17374 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17375 done
17376 PS1='$ '
17377 PS2='> '
17378 PS4='+ '
17380 # NLS nuisances.
17381 LC_ALL=C
17382 export LC_ALL
17383 LANGUAGE=C
17384 export LANGUAGE
17386 # CDPATH.
17387 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17390 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17391 # ----------------------------------------
17392 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17393 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17394 # script with STATUS, using 1 if that was 0.
17395 as_fn_error ()
17397 as_status=$1; test $as_status -eq 0 && as_status=1
17398 if test "$4"; then
17399 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17400 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17402 $as_echo "$as_me: error: $2" >&2
17403 as_fn_exit $as_status
17404 } # as_fn_error
17407 # as_fn_set_status STATUS
17408 # -----------------------
17409 # Set $? to STATUS, without forking.
17410 as_fn_set_status ()
17412 return $1
17413 } # as_fn_set_status
17415 # as_fn_exit STATUS
17416 # -----------------
17417 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17418 as_fn_exit ()
17420 set +e
17421 as_fn_set_status $1
17422 exit $1
17423 } # as_fn_exit
17425 # as_fn_unset ax_cv_socklen_t_equiv
17426 # ---------------------------------
17427 # Portably unset VAR.
17428 as_fn_unset ()
17430 { eval $1=; unset $1;}
17432 as_unset=as_fn_unset
17433 # as_fn_append ax_cv_socklen_t_equiv VALUE
17434 # ----------------------------------------
17435 # Append the text in VALUE to the end of the definition contained in VAR. Take
17436 # advantage of any shell optimizations that allow amortized linear growth over
17437 # repeated appends, instead of the typical quadratic growth present in naive
17438 # implementations.
17439 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17440 eval 'as_fn_append ()
17442 eval $1+=\$2
17444 else
17445 as_fn_append ()
17447 eval $1=\$$1\$2
17449 fi # as_fn_append
17451 # as_fn_arith ARG...
17452 # ------------------
17453 # Perform arithmetic evaluation on the ARGs, and store the result in the
17454 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17455 # must be portable across $(()) and expr.
17456 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17457 eval 'as_fn_arith ()
17459 as_val=$(( $* ))
17461 else
17462 as_fn_arith ()
17464 as_val=`expr "$@" || test $? -eq 1`
17466 fi # as_fn_arith
17469 if expr a : '\(a\)' >/dev/null 2>&1 &&
17470 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17471 as_expr=expr
17472 else
17473 as_expr=false
17476 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17477 as_basename=basename
17478 else
17479 as_basename=false
17482 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17483 as_dirname=dirname
17484 else
17485 as_dirname=false
17488 as_me=`$as_basename -- "$0" ||
17489 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17490 X"$0" : 'X\(//\)$' \| \
17491 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17492 $as_echo X/"$0" |
17493 sed '/^.*\/\([^/][^/]*\)\/*$/{
17494 s//\1/
17497 /^X\/\(\/\/\)$/{
17498 s//\1/
17501 /^X\/\(\/\).*/{
17502 s//\1/
17505 s/.*/./; q'`
17507 # Avoid depending upon Character Ranges.
17508 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17509 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17510 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17511 as_cr_digits='0123456789'
17512 as_cr_alnum=$as_cr_Letters$as_cr_digits
17514 ECHO_C= ECHO_N= ECHO_T=
17515 case `echo -n x` in #(((((
17516 -n*)
17517 case `echo 'xy\c'` in
17518 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17519 xy) ECHO_C='\c';;
17520 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17521 ECHO_T=' ';;
17522 esac;;
17524 ECHO_N='-n';;
17525 esac
17527 rm -f conf$$ conf$$.exe conf$$.file
17528 if test -d conf$$.dir; then
17529 rm -f conf$$.dir/conf$$.file
17530 else
17531 rm -f conf$$.dir
17532 mkdir conf$$.dir 2>/dev/null
17534 if (echo >conf$$.file) 2>/dev/null; then
17535 if ln -s conf$$.file conf$$ 2>/dev/null; then
17536 as_ln_s='ln -s'
17537 # ... but there are two gotchas:
17538 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17539 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17540 # In both cases, we have to default to `cp -pR'.
17541 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17542 as_ln_s='cp -pR'
17543 elif ln conf$$.file conf$$ 2>/dev/null; then
17544 as_ln_s=ln
17545 else
17546 as_ln_s='cp -pR'
17548 else
17549 as_ln_s='cp -pR'
17551 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17552 rmdir conf$$.dir 2>/dev/null
17555 # as_fn_mkdir_p
17556 # -------------
17557 # Create "$as_dir" as a directory, including parents if necessary.
17558 as_fn_mkdir_p ()
17561 case $as_dir in #(
17562 -*) as_dir=./$as_dir;;
17563 esac
17564 test -d "$as_dir" || eval $as_mkdir_p || {
17565 as_dirs=
17566 while :; do
17567 case $as_dir in #(
17568 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17569 *) as_qdir=$as_dir;;
17570 esac
17571 as_dirs="'$as_qdir' $as_dirs"
17572 as_dir=`$as_dirname -- "$as_dir" ||
17573 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17574 X"$as_dir" : 'X\(//\)[^/]' \| \
17575 X"$as_dir" : 'X\(//\)$' \| \
17576 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17577 $as_echo X"$as_dir" |
17578 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17579 s//\1/
17582 /^X\(\/\/\)[^/].*/{
17583 s//\1/
17586 /^X\(\/\/\)$/{
17587 s//\1/
17590 /^X\(\/\).*/{
17591 s//\1/
17594 s/.*/./; q'`
17595 test -d "$as_dir" && break
17596 done
17597 test -z "$as_dirs" || eval "mkdir $as_dirs"
17598 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17601 } # as_fn_mkdir_p
17602 if mkdir -p . 2>/dev/null; then
17603 as_mkdir_p='mkdir -p "$as_dir"'
17604 else
17605 test -d ./-p && rmdir ./-p
17606 as_mkdir_p=false
17610 # as_fn_executable_p FILE
17611 # -----------------------
17612 # Test if FILE is an executable regular file.
17613 as_fn_executable_p ()
17615 test -f "$1" && test -x "$1"
17616 } # as_fn_executable_p
17617 as_test_x='test -x'
17618 as_executable_p=as_fn_executable_p
17620 # Sed expression to map a string onto a valid CPP name.
17621 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17623 # Sed expression to map a string onto a valid variable name.
17624 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17627 exec 6>&1
17628 ## ----------------------------------- ##
17629 ## Main body of $CONFIG_STATUS script. ##
17630 ## ----------------------------------- ##
17631 _ASEOF
17632 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17634 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17635 # Save the log message, to keep $0 and so on meaningful, and to
17636 # report actual input values of CONFIG_FILES etc. instead of their
17637 # values after options handling.
17638 ac_log="
17639 This file was extended by OpenVPN $as_me 2.3.7, which was
17640 generated by GNU Autoconf 2.69. Invocation command line was
17642 CONFIG_FILES = $CONFIG_FILES
17643 CONFIG_HEADERS = $CONFIG_HEADERS
17644 CONFIG_LINKS = $CONFIG_LINKS
17645 CONFIG_COMMANDS = $CONFIG_COMMANDS
17646 $ $0 $@
17648 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17651 _ACEOF
17653 case $ac_config_files in *"
17654 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17655 esac
17657 case $ac_config_headers in *"
17658 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17659 esac
17662 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17663 # Files that config.status was made for.
17664 config_files="$ac_config_files"
17665 config_headers="$ac_config_headers"
17666 config_commands="$ac_config_commands"
17668 _ACEOF
17670 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17671 ac_cs_usage="\
17672 \`$as_me' instantiates files and other configuration actions
17673 from templates according to the current configuration. Unless the files
17674 and actions are specified as TAGs, all are instantiated by default.
17676 Usage: $0 [OPTION]... [TAG]...
17678 -h, --help print this help, then exit
17679 -V, --version print version number and configuration settings, then exit
17680 --config print configuration, then exit
17681 -q, --quiet, --silent
17682 do not print progress messages
17683 -d, --debug don't remove temporary files
17684 --recheck update $as_me by reconfiguring in the same conditions
17685 --file=FILE[:TEMPLATE]
17686 instantiate the configuration file FILE
17687 --header=FILE[:TEMPLATE]
17688 instantiate the configuration header FILE
17690 Configuration files:
17691 $config_files
17693 Configuration headers:
17694 $config_headers
17696 Configuration commands:
17697 $config_commands
17699 Report bugs to <openvpn-users@lists.sourceforge.net>."
17701 _ACEOF
17702 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17703 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17704 ac_cs_version="\\
17705 OpenVPN config.status 2.3.7
17706 configured by $0, generated by GNU Autoconf 2.69,
17707 with options \\"\$ac_cs_config\\"
17709 Copyright (C) 2012 Free Software Foundation, Inc.
17710 This config.status script is free software; the Free Software Foundation
17711 gives unlimited permission to copy, distribute and modify it."
17713 ac_pwd='$ac_pwd'
17714 srcdir='$srcdir'
17715 INSTALL='$INSTALL'
17716 MKDIR_P='$MKDIR_P'
17717 AWK='$AWK'
17718 test -n "\$AWK" || AWK=awk
17719 _ACEOF
17721 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17722 # The default lists apply if the user does not specify any file.
17723 ac_need_defaults=:
17724 while test $# != 0
17726 case $1 in
17727 --*=?*)
17728 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17729 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17730 ac_shift=:
17732 --*=)
17733 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17734 ac_optarg=
17735 ac_shift=:
17738 ac_option=$1
17739 ac_optarg=$2
17740 ac_shift=shift
17742 esac
17744 case $ac_option in
17745 # Handling of the options.
17746 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17747 ac_cs_recheck=: ;;
17748 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17749 $as_echo "$ac_cs_version"; exit ;;
17750 --config | --confi | --conf | --con | --co | --c )
17751 $as_echo "$ac_cs_config"; exit ;;
17752 --debug | --debu | --deb | --de | --d | -d )
17753 debug=: ;;
17754 --file | --fil | --fi | --f )
17755 $ac_shift
17756 case $ac_optarg in
17757 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17758 '') as_fn_error $? "missing file argument" ;;
17759 esac
17760 as_fn_append CONFIG_FILES " '$ac_optarg'"
17761 ac_need_defaults=false;;
17762 --header | --heade | --head | --hea )
17763 $ac_shift
17764 case $ac_optarg in
17765 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17766 esac
17767 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17768 ac_need_defaults=false;;
17769 --he | --h)
17770 # Conflict between --help and --header
17771 as_fn_error $? "ambiguous option: \`$1'
17772 Try \`$0 --help' for more information.";;
17773 --help | --hel | -h )
17774 $as_echo "$ac_cs_usage"; exit ;;
17775 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17776 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17777 ac_cs_silent=: ;;
17779 # This is an error.
17780 -*) as_fn_error $? "unrecognized option: \`$1'
17781 Try \`$0 --help' for more information." ;;
17783 *) as_fn_append ac_config_targets " $1"
17784 ac_need_defaults=false ;;
17786 esac
17787 shift
17788 done
17790 ac_configure_extra_args=
17792 if $ac_cs_silent; then
17793 exec 6>/dev/null
17794 ac_configure_extra_args="$ac_configure_extra_args --silent"
17797 _ACEOF
17798 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17799 if \$ac_cs_recheck; then
17800 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17801 shift
17802 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17803 CONFIG_SHELL='$SHELL'
17804 export CONFIG_SHELL
17805 exec "\$@"
17808 _ACEOF
17809 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17810 exec 5>>config.log
17812 echo
17813 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17814 ## Running $as_me. ##
17815 _ASBOX
17816 $as_echo "$ac_log"
17817 } >&5
17819 _ACEOF
17820 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17822 # INIT-COMMANDS
17824 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17827 # The HP-UX ksh and POSIX shell print the target directory to stdout
17828 # if CDPATH is set.
17829 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17831 sed_quote_subst='$sed_quote_subst'
17832 double_quote_subst='$double_quote_subst'
17833 delay_variable_subst='$delay_variable_subst'
17834 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17835 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17836 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
17837 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17838 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17839 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17840 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17841 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17842 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17843 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17844 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17845 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17846 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17847 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17848 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17849 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17850 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17851 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17852 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17853 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17854 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17855 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17856 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17857 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17858 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17859 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17860 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17861 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17862 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17863 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17864 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17865 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17866 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17867 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17868 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17869 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17870 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17871 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17872 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17873 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17874 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17875 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17876 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17877 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17878 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17879 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17880 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17881 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17882 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17883 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17884 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17885 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17886 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17887 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17888 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17889 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17890 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17891 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"`'
17892 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17893 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17894 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17895 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17896 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17897 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17898 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17899 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17900 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17901 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17902 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17903 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17904 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17905 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17906 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17907 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17908 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17909 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17910 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17911 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17912 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17913 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17914 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17915 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17916 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17917 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17918 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17919 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17920 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17921 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17922 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17923 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17924 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17925 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17926 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17927 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17928 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17929 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17930 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17931 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17932 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17933 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17934 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17935 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17936 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17937 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17938 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17939 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17940 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17941 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17942 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17943 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17944 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17945 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17946 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17947 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17948 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17949 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17950 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17951 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17952 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17953 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17954 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17955 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17956 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17957 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17958 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17959 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17960 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17961 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17962 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17963 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17964 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17965 LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
17966 reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
17967 reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
17968 old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
17969 compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
17970 GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
17971 lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
17972 lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
17973 lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
17974 lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
17975 lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
17976 archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
17977 enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
17978 export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
17979 whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
17980 compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
17981 old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
17982 old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
17983 archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
17984 archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
17985 module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
17986 module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
17987 with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
17988 allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
17989 no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
17990 hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
17991 hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
17992 hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
17993 hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
17994 hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
17995 hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
17996 hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
17997 inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
17998 link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
17999 always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
18000 export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
18001 exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
18002 include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
18003 prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
18004 postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
18005 file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
18006 hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
18008 LTCC='$LTCC'
18009 LTCFLAGS='$LTCFLAGS'
18010 compiler='$compiler_DEFAULT'
18012 # A function that is used when there is no print builtin or printf.
18013 func_fallback_echo ()
18015 eval 'cat <<_LTECHO_EOF
18017 _LTECHO_EOF'
18020 # Quote evaled strings.
18021 for var in AS \
18022 DLLTOOL \
18023 OBJDUMP \
18024 SHELL \
18025 ECHO \
18026 PATH_SEPARATOR \
18027 SED \
18028 GREP \
18029 EGREP \
18030 FGREP \
18031 LD \
18032 NM \
18033 LN_S \
18034 lt_SP2NL \
18035 lt_NL2SP \
18036 reload_flag \
18037 deplibs_check_method \
18038 file_magic_cmd \
18039 file_magic_glob \
18040 want_nocaseglob \
18041 sharedlib_from_linklib_cmd \
18042 AR \
18043 AR_FLAGS \
18044 archiver_list_spec \
18045 STRIP \
18046 RANLIB \
18047 CC \
18048 CFLAGS \
18049 compiler \
18050 lt_cv_sys_global_symbol_pipe \
18051 lt_cv_sys_global_symbol_to_cdecl \
18052 lt_cv_sys_global_symbol_to_c_name_address \
18053 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18054 nm_file_list_spec \
18055 lt_prog_compiler_no_builtin_flag \
18056 lt_prog_compiler_pic \
18057 lt_prog_compiler_wl \
18058 lt_prog_compiler_static \
18059 lt_cv_prog_compiler_c_o \
18060 need_locks \
18061 MANIFEST_TOOL \
18062 DSYMUTIL \
18063 NMEDIT \
18064 LIPO \
18065 OTOOL \
18066 OTOOL64 \
18067 shrext_cmds \
18068 export_dynamic_flag_spec \
18069 whole_archive_flag_spec \
18070 compiler_needs_object \
18071 with_gnu_ld \
18072 allow_undefined_flag \
18073 no_undefined_flag \
18074 hardcode_libdir_flag_spec \
18075 hardcode_libdir_separator \
18076 exclude_expsyms \
18077 include_expsyms \
18078 file_list_spec \
18079 variables_saved_for_relink \
18080 libname_spec \
18081 library_names_spec \
18082 soname_spec \
18083 install_override_mode \
18084 finish_eval \
18085 old_striplib \
18086 striplib \
18087 LD_RC \
18088 reload_flag_RC \
18089 compiler_RC \
18090 lt_prog_compiler_no_builtin_flag_RC \
18091 lt_prog_compiler_pic_RC \
18092 lt_prog_compiler_wl_RC \
18093 lt_prog_compiler_static_RC \
18094 lt_cv_prog_compiler_c_o_RC \
18095 export_dynamic_flag_spec_RC \
18096 whole_archive_flag_spec_RC \
18097 compiler_needs_object_RC \
18098 with_gnu_ld_RC \
18099 allow_undefined_flag_RC \
18100 no_undefined_flag_RC \
18101 hardcode_libdir_flag_spec_RC \
18102 hardcode_libdir_separator_RC \
18103 exclude_expsyms_RC \
18104 include_expsyms_RC \
18105 file_list_spec_RC; do
18106 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18107 *[\\\\\\\`\\"\\\$]*)
18108 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18111 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18113 esac
18114 done
18116 # Double-quote double-evaled strings.
18117 for var in reload_cmds \
18118 old_postinstall_cmds \
18119 old_postuninstall_cmds \
18120 old_archive_cmds \
18121 extract_expsyms_cmds \
18122 old_archive_from_new_cmds \
18123 old_archive_from_expsyms_cmds \
18124 archive_cmds \
18125 archive_expsym_cmds \
18126 module_cmds \
18127 module_expsym_cmds \
18128 export_symbols_cmds \
18129 prelink_cmds \
18130 postlink_cmds \
18131 postinstall_cmds \
18132 postuninstall_cmds \
18133 finish_cmds \
18134 sys_lib_search_path_spec \
18135 sys_lib_dlsearch_path_spec \
18136 reload_cmds_RC \
18137 old_archive_cmds_RC \
18138 old_archive_from_new_cmds_RC \
18139 old_archive_from_expsyms_cmds_RC \
18140 archive_cmds_RC \
18141 archive_expsym_cmds_RC \
18142 module_cmds_RC \
18143 module_expsym_cmds_RC \
18144 export_symbols_cmds_RC \
18145 prelink_cmds_RC \
18146 postlink_cmds_RC; do
18147 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18148 *[\\\\\\\`\\"\\\$]*)
18149 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18152 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18154 esac
18155 done
18157 ac_aux_dir='$ac_aux_dir'
18158 xsi_shell='$xsi_shell'
18159 lt_shell_append='$lt_shell_append'
18161 # See if we are running on zsh, and set the options which allow our
18162 # commands through without removal of \ escapes INIT.
18163 if test -n "\${ZSH_VERSION+set}" ; then
18164 setopt NO_GLOB_SUBST
18168 PACKAGE='$PACKAGE'
18169 VERSION='$VERSION'
18170 TIMESTAMP='$TIMESTAMP'
18171 RM='$RM'
18172 ofile='$ofile'
18179 _ACEOF
18181 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18183 # Handling of arguments.
18184 for ac_config_target in $ac_config_targets
18186 case $ac_config_target in
18187 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18188 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18189 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18190 "version.sh") CONFIG_FILES="$CONFIG_FILES version.sh" ;;
18191 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18192 "build/Makefile") CONFIG_FILES="$CONFIG_FILES build/Makefile" ;;
18193 "build/msvc/Makefile") CONFIG_FILES="$CONFIG_FILES build/msvc/Makefile" ;;
18194 "build/msvc/msvc-generate/Makefile") CONFIG_FILES="$CONFIG_FILES build/msvc/msvc-generate/Makefile" ;;
18195 "distro/Makefile") CONFIG_FILES="$CONFIG_FILES distro/Makefile" ;;
18196 "distro/rpm/Makefile") CONFIG_FILES="$CONFIG_FILES distro/rpm/Makefile" ;;
18197 "distro/rpm/openvpn.spec") CONFIG_FILES="$CONFIG_FILES distro/rpm/openvpn.spec" ;;
18198 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
18199 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18200 "src/compat/Makefile") CONFIG_FILES="$CONFIG_FILES src/compat/Makefile" ;;
18201 "src/openvpn/Makefile") CONFIG_FILES="$CONFIG_FILES src/openvpn/Makefile" ;;
18202 "src/openvpnserv/Makefile") CONFIG_FILES="$CONFIG_FILES src/openvpnserv/Makefile" ;;
18203 "src/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/Makefile" ;;
18204 "src/plugins/auth-pam/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/auth-pam/Makefile" ;;
18205 "src/plugins/down-root/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/down-root/Makefile" ;;
18206 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
18207 "sample/Makefile") CONFIG_FILES="$CONFIG_FILES sample/Makefile" ;;
18208 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18209 "tests/t_client.sh") CONFIG_FILES="$CONFIG_FILES tests/t_client.sh" ;;
18211 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18212 esac
18213 done
18216 # If the user did not use the arguments to specify the items to instantiate,
18217 # then the envvar interface is used. Set only those that are not.
18218 # We use the long form for the default assignment because of an extremely
18219 # bizarre bug on SunOS 4.1.3.
18220 if $ac_need_defaults; then
18221 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18222 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18223 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18226 # Have a temporary directory for convenience. Make it in the build tree
18227 # simply because there is no reason against having it here, and in addition,
18228 # creating and moving files from /tmp can sometimes cause problems.
18229 # Hook for its removal unless debugging.
18230 # Note that there is a small window in which the directory will not be cleaned:
18231 # after its creation but before its name has been assigned to `$tmp'.
18232 $debug ||
18234 tmp= ac_tmp=
18235 trap 'exit_status=$?
18236 : "${ac_tmp:=$tmp}"
18237 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18239 trap 'as_fn_exit 1' 1 2 13 15
18241 # Create a (secure) tmp directory for tmp files.
18244 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18245 test -d "$tmp"
18246 } ||
18248 tmp=./conf$$-$RANDOM
18249 (umask 077 && mkdir "$tmp")
18250 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18251 ac_tmp=$tmp
18253 # Set up the scripts for CONFIG_FILES section.
18254 # No need to generate them if there are no CONFIG_FILES.
18255 # This happens for instance with `./config.status config.h'.
18256 if test -n "$CONFIG_FILES"; then
18259 ac_cr=`echo X | tr X '\015'`
18260 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18261 # But we know of no other shell where ac_cr would be empty at this
18262 # point, so we can use a bashism as a fallback.
18263 if test "x$ac_cr" = x; then
18264 eval ac_cr=\$\'\\r\'
18266 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18267 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18268 ac_cs_awk_cr='\\r'
18269 else
18270 ac_cs_awk_cr=$ac_cr
18273 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18274 _ACEOF
18278 echo "cat >conf$$subs.awk <<_ACEOF" &&
18279 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18280 echo "_ACEOF"
18281 } >conf$$subs.sh ||
18282 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18283 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18284 ac_delim='%!_!# '
18285 for ac_last_try in false false false false false :; do
18286 . ./conf$$subs.sh ||
18287 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18289 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18290 if test $ac_delim_n = $ac_delim_num; then
18291 break
18292 elif $ac_last_try; then
18293 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18294 else
18295 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18297 done
18298 rm -f conf$$subs.sh
18300 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18301 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18302 _ACEOF
18303 sed -n '
18305 s/^/S["/; s/!.*/"]=/
18308 s/^[^!]*!//
18309 :repl
18310 t repl
18311 s/'"$ac_delim"'$//
18312 t delim
18315 s/\(.\{148\}\)..*/\1/
18316 t more1
18317 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18320 b repl
18321 :more1
18322 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18325 s/.\{148\}//
18326 t nl
18327 :delim
18329 s/\(.\{148\}\)..*/\1/
18330 t more2
18331 s/["\\]/\\&/g; s/^/"/; s/$/"/
18334 :more2
18335 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18338 s/.\{148\}//
18339 t delim
18340 ' <conf$$subs.awk | sed '
18341 /^[^""]/{
18343 s/\n//
18345 ' >>$CONFIG_STATUS || ac_write_fail=1
18346 rm -f conf$$subs.awk
18347 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18348 _ACAWK
18349 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18350 for (key in S) S_is_set[key] = 1
18351 FS = "\a"
18355 line = $ 0
18356 nfields = split(line, field, "@")
18357 substed = 0
18358 len = length(field[1])
18359 for (i = 2; i < nfields; i++) {
18360 key = field[i]
18361 keylen = length(key)
18362 if (S_is_set[key]) {
18363 value = S[key]
18364 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18365 len += length(value) + length(field[++i])
18366 substed = 1
18367 } else
18368 len += 1 + keylen
18371 print line
18374 _ACAWK
18375 _ACEOF
18376 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18377 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18378 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18379 else
18381 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18382 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18383 _ACEOF
18385 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18386 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18387 # trailing colons and then remove the whole line if VPATH becomes empty
18388 # (actually we leave an empty line to preserve line numbers).
18389 if test "x$srcdir" = x.; then
18390 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18392 s///
18393 s/^/:/
18394 s/[ ]*$/:/
18395 s/:\$(srcdir):/:/g
18396 s/:\${srcdir}:/:/g
18397 s/:@srcdir@:/:/g
18398 s/^:*//
18399 s/:*$//
18401 s/\(=[ ]*\).*/\1/
18403 s/\n//
18404 s/^[^=]*=[ ]*$//
18408 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18409 fi # test -n "$CONFIG_FILES"
18411 # Set up the scripts for CONFIG_HEADERS section.
18412 # No need to generate them if there are no CONFIG_HEADERS.
18413 # This happens for instance with `./config.status Makefile'.
18414 if test -n "$CONFIG_HEADERS"; then
18415 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18416 BEGIN {
18417 _ACEOF
18419 # Transform confdefs.h into an awk script `defines.awk', embedded as
18420 # here-document in config.status, that substitutes the proper values into
18421 # config.h.in to produce config.h.
18423 # Create a delimiter string that does not exist in confdefs.h, to ease
18424 # handling of long lines.
18425 ac_delim='%!_!# '
18426 for ac_last_try in false false :; do
18427 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18428 if test -z "$ac_tt"; then
18429 break
18430 elif $ac_last_try; then
18431 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18432 else
18433 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18435 done
18437 # For the awk script, D is an array of macro values keyed by name,
18438 # likewise P contains macro parameters if any. Preserve backslash
18439 # newline sequences.
18441 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18442 sed -n '
18443 s/.\{148\}/&'"$ac_delim"'/g
18444 t rset
18445 :rset
18446 s/^[ ]*#[ ]*define[ ][ ]*/ /
18447 t def
18449 :def
18450 s/\\$//
18451 t bsnl
18452 s/["\\]/\\&/g
18453 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18454 D["\1"]=" \3"/p
18455 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18457 :bsnl
18458 s/["\\]/\\&/g
18459 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18460 D["\1"]=" \3\\\\\\n"\\/p
18461 t cont
18462 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18463 t cont
18465 :cont
18467 s/.\{148\}/&'"$ac_delim"'/g
18468 t clear
18469 :clear
18470 s/\\$//
18471 t bsnlc
18472 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18474 :bsnlc
18475 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18476 b cont
18477 ' <confdefs.h | sed '
18478 s/'"$ac_delim"'/"\\\
18479 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18481 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18482 for (key in D) D_is_set[key] = 1
18483 FS = "\a"
18485 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18486 line = \$ 0
18487 split(line, arg, " ")
18488 if (arg[1] == "#") {
18489 defundef = arg[2]
18490 mac1 = arg[3]
18491 } else {
18492 defundef = substr(arg[1], 2)
18493 mac1 = arg[2]
18495 split(mac1, mac2, "(") #)
18496 macro = mac2[1]
18497 prefix = substr(line, 1, index(line, defundef) - 1)
18498 if (D_is_set[macro]) {
18499 # Preserve the white space surrounding the "#".
18500 print prefix "define", macro P[macro] D[macro]
18501 next
18502 } else {
18503 # Replace #undef with comments. This is necessary, for example,
18504 # in the case of _POSIX_SOURCE, which is predefined and required
18505 # on some systems where configure will not decide to define it.
18506 if (defundef == "undef") {
18507 print "/*", prefix defundef, macro, "*/"
18508 next
18512 { print }
18513 _ACAWK
18514 _ACEOF
18515 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18516 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18517 fi # test -n "$CONFIG_HEADERS"
18520 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18521 shift
18522 for ac_tag
18524 case $ac_tag in
18525 :[FHLC]) ac_mode=$ac_tag; continue;;
18526 esac
18527 case $ac_mode$ac_tag in
18528 :[FHL]*:*);;
18529 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18530 :[FH]-) ac_tag=-:-;;
18531 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18532 esac
18533 ac_save_IFS=$IFS
18534 IFS=:
18535 set x $ac_tag
18536 IFS=$ac_save_IFS
18537 shift
18538 ac_file=$1
18539 shift
18541 case $ac_mode in
18542 :L) ac_source=$1;;
18543 :[FH])
18544 ac_file_inputs=
18545 for ac_f
18547 case $ac_f in
18548 -) ac_f="$ac_tmp/stdin";;
18549 *) # Look for the file first in the build tree, then in the source tree
18550 # (if the path is not absolute). The absolute path cannot be DOS-style,
18551 # because $ac_f cannot contain `:'.
18552 test -f "$ac_f" ||
18553 case $ac_f in
18554 [\\/$]*) false;;
18555 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18556 esac ||
18557 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18558 esac
18559 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18560 as_fn_append ac_file_inputs " '$ac_f'"
18561 done
18563 # Let's still pretend it is `configure' which instantiates (i.e., don't
18564 # use $as_me), people would be surprised to read:
18565 # /* config.h. Generated by config.status. */
18566 configure_input='Generated from '`
18567 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18568 `' by configure.'
18569 if test x"$ac_file" != x-; then
18570 configure_input="$ac_file. $configure_input"
18571 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18572 $as_echo "$as_me: creating $ac_file" >&6;}
18574 # Neutralize special characters interpreted by sed in replacement strings.
18575 case $configure_input in #(
18576 *\&* | *\|* | *\\* )
18577 ac_sed_conf_input=`$as_echo "$configure_input" |
18578 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18579 *) ac_sed_conf_input=$configure_input;;
18580 esac
18582 case $ac_tag in
18583 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18584 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18585 esac
18587 esac
18589 ac_dir=`$as_dirname -- "$ac_file" ||
18590 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18591 X"$ac_file" : 'X\(//\)[^/]' \| \
18592 X"$ac_file" : 'X\(//\)$' \| \
18593 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18594 $as_echo X"$ac_file" |
18595 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18596 s//\1/
18599 /^X\(\/\/\)[^/].*/{
18600 s//\1/
18603 /^X\(\/\/\)$/{
18604 s//\1/
18607 /^X\(\/\).*/{
18608 s//\1/
18611 s/.*/./; q'`
18612 as_dir="$ac_dir"; as_fn_mkdir_p
18613 ac_builddir=.
18615 case "$ac_dir" in
18616 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18618 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18619 # A ".." for each directory in $ac_dir_suffix.
18620 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18621 case $ac_top_builddir_sub in
18622 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18623 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18624 esac ;;
18625 esac
18626 ac_abs_top_builddir=$ac_pwd
18627 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18628 # for backward compatibility:
18629 ac_top_builddir=$ac_top_build_prefix
18631 case $srcdir in
18632 .) # We are building in place.
18633 ac_srcdir=.
18634 ac_top_srcdir=$ac_top_builddir_sub
18635 ac_abs_top_srcdir=$ac_pwd ;;
18636 [\\/]* | ?:[\\/]* ) # Absolute name.
18637 ac_srcdir=$srcdir$ac_dir_suffix;
18638 ac_top_srcdir=$srcdir
18639 ac_abs_top_srcdir=$srcdir ;;
18640 *) # Relative name.
18641 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18642 ac_top_srcdir=$ac_top_build_prefix$srcdir
18643 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18644 esac
18645 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18648 case $ac_mode in
18651 # CONFIG_FILE
18654 case $INSTALL in
18655 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18656 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18657 esac
18658 ac_MKDIR_P=$MKDIR_P
18659 case $MKDIR_P in
18660 [\\/$]* | ?:[\\/]* ) ;;
18661 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18662 esac
18663 _ACEOF
18665 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18666 # If the template does not know about datarootdir, expand it.
18667 # FIXME: This hack should be removed a few years after 2.60.
18668 ac_datarootdir_hack=; ac_datarootdir_seen=
18669 ac_sed_dataroot='
18670 /datarootdir/ {
18674 /@datadir@/p
18675 /@docdir@/p
18676 /@infodir@/p
18677 /@localedir@/p
18678 /@mandir@/p'
18679 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18680 *datarootdir*) ac_datarootdir_seen=yes;;
18681 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18683 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18684 _ACEOF
18685 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18686 ac_datarootdir_hack='
18687 s&@datadir@&$datadir&g
18688 s&@docdir@&$docdir&g
18689 s&@infodir@&$infodir&g
18690 s&@localedir@&$localedir&g
18691 s&@mandir@&$mandir&g
18692 s&\\\${datarootdir}&$datarootdir&g' ;;
18693 esac
18694 _ACEOF
18696 # Neutralize VPATH when `$srcdir' = `.'.
18697 # Shell code in configure.ac might set extrasub.
18698 # FIXME: do we really want to maintain this feature?
18699 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18700 ac_sed_extra="$ac_vpsub
18701 $extrasub
18702 _ACEOF
18703 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18705 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18706 s|@configure_input@|$ac_sed_conf_input|;t t
18707 s&@top_builddir@&$ac_top_builddir_sub&;t t
18708 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18709 s&@srcdir@&$ac_srcdir&;t t
18710 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18711 s&@top_srcdir@&$ac_top_srcdir&;t t
18712 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18713 s&@builddir@&$ac_builddir&;t t
18714 s&@abs_builddir@&$ac_abs_builddir&;t t
18715 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18716 s&@INSTALL@&$ac_INSTALL&;t t
18717 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18718 $ac_datarootdir_hack
18720 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18721 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18723 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18724 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18725 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18726 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18728 which seems to be undefined. Please make sure it is defined" >&5
18729 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18730 which seems to be undefined. Please make sure it is defined" >&2;}
18732 rm -f "$ac_tmp/stdin"
18733 case $ac_file in
18734 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18735 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18736 esac \
18737 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18741 # CONFIG_HEADER
18743 if test x"$ac_file" != x-; then
18745 $as_echo "/* $configure_input */" \
18746 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18747 } >"$ac_tmp/config.h" \
18748 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18749 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18750 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18751 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18752 else
18753 rm -f "$ac_file"
18754 mv "$ac_tmp/config.h" "$ac_file" \
18755 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18757 else
18758 $as_echo "/* $configure_input */" \
18759 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18760 || as_fn_error $? "could not create -" "$LINENO" 5
18762 # Compute "$ac_file"'s index in $config_headers.
18763 _am_arg="$ac_file"
18764 _am_stamp_count=1
18765 for _am_header in $config_headers :; do
18766 case $_am_header in
18767 $_am_arg | $_am_arg:* )
18768 break ;;
18770 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18771 esac
18772 done
18773 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18774 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18775 X"$_am_arg" : 'X\(//\)[^/]' \| \
18776 X"$_am_arg" : 'X\(//\)$' \| \
18777 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18778 $as_echo X"$_am_arg" |
18779 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18780 s//\1/
18783 /^X\(\/\/\)[^/].*/{
18784 s//\1/
18787 /^X\(\/\/\)$/{
18788 s//\1/
18791 /^X\(\/\).*/{
18792 s//\1/
18795 s/.*/./; q'`/stamp-h$_am_stamp_count
18798 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18799 $as_echo "$as_me: executing $ac_file commands" >&6;}
18801 esac
18804 case $ac_file$ac_mode in
18805 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18806 # Older Autoconf quotes --file arguments for eval, but not when files
18807 # are listed without --file. Let's play safe and only enable the eval
18808 # if we detect the quoting.
18809 case $CONFIG_FILES in
18810 *\'*) eval set x "$CONFIG_FILES" ;;
18811 *) set x $CONFIG_FILES ;;
18812 esac
18813 shift
18814 for mf
18816 # Strip MF so we end up with the name of the file.
18817 mf=`echo "$mf" | sed -e 's/:.*$//'`
18818 # Check whether this is an Automake generated Makefile or not.
18819 # We used to match only the files named 'Makefile.in', but
18820 # some people rename them; so instead we look at the file content.
18821 # Grep'ing the first line is not enough: some people post-process
18822 # each Makefile.in and add a new line on top of each file to say so.
18823 # Grep'ing the whole file is not good either: AIX grep has a line
18824 # limit of 2048, but all sed's we know have understand at least 4000.
18825 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18826 dirpart=`$as_dirname -- "$mf" ||
18827 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18828 X"$mf" : 'X\(//\)[^/]' \| \
18829 X"$mf" : 'X\(//\)$' \| \
18830 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18831 $as_echo X"$mf" |
18832 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18833 s//\1/
18836 /^X\(\/\/\)[^/].*/{
18837 s//\1/
18840 /^X\(\/\/\)$/{
18841 s//\1/
18844 /^X\(\/\).*/{
18845 s//\1/
18848 s/.*/./; q'`
18849 else
18850 continue
18852 # Extract the definition of DEPDIR, am__include, and am__quote
18853 # from the Makefile without running 'make'.
18854 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18855 test -z "$DEPDIR" && continue
18856 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18857 test -z "$am__include" && continue
18858 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18859 # Find all dependency output files, they are included files with
18860 # $(DEPDIR) in their names. We invoke sed twice because it is the
18861 # simplest approach to changing $(DEPDIR) to its actual value in the
18862 # expansion.
18863 for file in `sed -n "
18864 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18865 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18866 # Make sure the directory exists.
18867 test -f "$dirpart/$file" && continue
18868 fdir=`$as_dirname -- "$file" ||
18869 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18870 X"$file" : 'X\(//\)[^/]' \| \
18871 X"$file" : 'X\(//\)$' \| \
18872 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18873 $as_echo X"$file" |
18874 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18875 s//\1/
18878 /^X\(\/\/\)[^/].*/{
18879 s//\1/
18882 /^X\(\/\/\)$/{
18883 s//\1/
18886 /^X\(\/\).*/{
18887 s//\1/
18890 s/.*/./; q'`
18891 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18892 # echo "creating $dirpart/$file"
18893 echo '# dummy' > "$dirpart/$file"
18894 done
18895 done
18898 "libtool":C)
18900 # See if we are running on zsh, and set the options which allow our
18901 # commands through without removal of \ escapes.
18902 if test -n "${ZSH_VERSION+set}" ; then
18903 setopt NO_GLOB_SUBST
18906 cfgfile="${ofile}T"
18907 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18908 $RM "$cfgfile"
18910 cat <<_LT_EOF >> "$cfgfile"
18911 #! $SHELL
18913 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18914 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18915 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18916 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18918 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18919 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
18920 # Foundation, Inc.
18921 # Written by Gordon Matzigkeit, 1996
18923 # This file is part of GNU Libtool.
18925 # GNU Libtool is free software; you can redistribute it and/or
18926 # modify it under the terms of the GNU General Public License as
18927 # published by the Free Software Foundation; either version 2 of
18928 # the License, or (at your option) any later version.
18930 # As a special exception to the GNU General Public License,
18931 # if you distribute this file as part of a program or library that
18932 # is built using GNU Libtool, you may include this file under the
18933 # same distribution terms that you use for the rest of that program.
18935 # GNU Libtool is distributed in the hope that it will be useful,
18936 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18937 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18938 # GNU General Public License for more details.
18940 # You should have received a copy of the GNU General Public License
18941 # along with GNU Libtool; see the file COPYING. If not, a copy
18942 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18943 # obtained by writing to the Free Software Foundation, Inc.,
18944 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18947 # The names of the tagged configurations supported by this script.
18948 available_tags="RC "
18950 # ### BEGIN LIBTOOL CONFIG
18952 # Which release of libtool.m4 was used?
18953 macro_version=$macro_version
18954 macro_revision=$macro_revision
18956 # Assembler program.
18957 AS=$lt_AS
18959 # DLL creation program.
18960 DLLTOOL=$lt_DLLTOOL
18962 # Object dumper program.
18963 OBJDUMP=$lt_OBJDUMP
18965 # Whether or not to build shared libraries.
18966 build_libtool_libs=$enable_shared
18968 # Whether or not to build static libraries.
18969 build_old_libs=$enable_static
18971 # What type of objects to build.
18972 pic_mode=$pic_mode
18974 # Whether or not to optimize for fast installation.
18975 fast_install=$enable_fast_install
18977 # Shell to use when invoking shell scripts.
18978 SHELL=$lt_SHELL
18980 # An echo program that protects backslashes.
18981 ECHO=$lt_ECHO
18983 # The PATH separator for the build system.
18984 PATH_SEPARATOR=$lt_PATH_SEPARATOR
18986 # The host system.
18987 host_alias=$host_alias
18988 host=$host
18989 host_os=$host_os
18991 # The build system.
18992 build_alias=$build_alias
18993 build=$build
18994 build_os=$build_os
18996 # A sed program that does not truncate output.
18997 SED=$lt_SED
18999 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19000 Xsed="\$SED -e 1s/^X//"
19002 # A grep program that handles long lines.
19003 GREP=$lt_GREP
19005 # An ERE matcher.
19006 EGREP=$lt_EGREP
19008 # A literal string matcher.
19009 FGREP=$lt_FGREP
19011 # A BSD- or MS-compatible name lister.
19012 NM=$lt_NM
19014 # Whether we need soft or hard links.
19015 LN_S=$lt_LN_S
19017 # What is the maximum length of a command?
19018 max_cmd_len=$max_cmd_len
19020 # Object file suffix (normally "o").
19021 objext=$ac_objext
19023 # Executable file suffix (normally "").
19024 exeext=$exeext
19026 # whether the shell understands "unset".
19027 lt_unset=$lt_unset
19029 # turn spaces into newlines.
19030 SP2NL=$lt_lt_SP2NL
19032 # turn newlines into spaces.
19033 NL2SP=$lt_lt_NL2SP
19035 # convert \$build file names to \$host format.
19036 to_host_file_cmd=$lt_cv_to_host_file_cmd
19038 # convert \$build files to toolchain format.
19039 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19041 # Method to check whether dependent libraries are shared objects.
19042 deplibs_check_method=$lt_deplibs_check_method
19044 # Command to use when deplibs_check_method = "file_magic".
19045 file_magic_cmd=$lt_file_magic_cmd
19047 # How to find potential files when deplibs_check_method = "file_magic".
19048 file_magic_glob=$lt_file_magic_glob
19050 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19051 want_nocaseglob=$lt_want_nocaseglob
19053 # Command to associate shared and link libraries.
19054 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19056 # The archiver.
19057 AR=$lt_AR
19059 # Flags to create an archive.
19060 AR_FLAGS=$lt_AR_FLAGS
19062 # How to feed a file listing to the archiver.
19063 archiver_list_spec=$lt_archiver_list_spec
19065 # A symbol stripping program.
19066 STRIP=$lt_STRIP
19068 # Commands used to install an old-style archive.
19069 RANLIB=$lt_RANLIB
19070 old_postinstall_cmds=$lt_old_postinstall_cmds
19071 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19073 # Whether to use a lock for old archive extraction.
19074 lock_old_archive_extraction=$lock_old_archive_extraction
19076 # A C compiler.
19077 LTCC=$lt_CC
19079 # LTCC compiler flags.
19080 LTCFLAGS=$lt_CFLAGS
19082 # Take the output of nm and produce a listing of raw symbols and C names.
19083 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19085 # Transform the output of nm in a proper C declaration.
19086 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19088 # Transform the output of nm in a C name address pair.
19089 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19091 # Transform the output of nm in a C name address pair when lib prefix is needed.
19092 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19094 # Specify filename containing input files for \$NM.
19095 nm_file_list_spec=$lt_nm_file_list_spec
19097 # The root where to search for dependent libraries,and in which our libraries should be installed.
19098 lt_sysroot=$lt_sysroot
19100 # The name of the directory that contains temporary libtool files.
19101 objdir=$objdir
19103 # Used to examine libraries when file_magic_cmd begins with "file".
19104 MAGIC_CMD=$MAGIC_CMD
19106 # Must we lock files when doing compilation?
19107 need_locks=$lt_need_locks
19109 # Manifest tool.
19110 MANIFEST_TOOL=$lt_MANIFEST_TOOL
19112 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19113 DSYMUTIL=$lt_DSYMUTIL
19115 # Tool to change global to local symbols on Mac OS X.
19116 NMEDIT=$lt_NMEDIT
19118 # Tool to manipulate fat objects and archives on Mac OS X.
19119 LIPO=$lt_LIPO
19121 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19122 OTOOL=$lt_OTOOL
19124 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19125 OTOOL64=$lt_OTOOL64
19127 # Old archive suffix (normally "a").
19128 libext=$libext
19130 # Shared library suffix (normally ".so").
19131 shrext_cmds=$lt_shrext_cmds
19133 # The commands to extract the exported symbol list from a shared archive.
19134 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19136 # Variables whose values should be saved in libtool wrapper scripts and
19137 # restored at link time.
19138 variables_saved_for_relink=$lt_variables_saved_for_relink
19140 # Do we need the "lib" prefix for modules?
19141 need_lib_prefix=$need_lib_prefix
19143 # Do we need a version for libraries?
19144 need_version=$need_version
19146 # Library versioning type.
19147 version_type=$version_type
19149 # Shared library runtime path variable.
19150 runpath_var=$runpath_var
19152 # Shared library path variable.
19153 shlibpath_var=$shlibpath_var
19155 # Is shlibpath searched before the hard-coded library search path?
19156 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19158 # Format of library name prefix.
19159 libname_spec=$lt_libname_spec
19161 # List of archive names. First name is the real one, the rest are links.
19162 # The last name is the one that the linker finds with -lNAME
19163 library_names_spec=$lt_library_names_spec
19165 # The coded name of the library, if different from the real name.
19166 soname_spec=$lt_soname_spec
19168 # Permission mode override for installation of shared libraries.
19169 install_override_mode=$lt_install_override_mode
19171 # Command to use after installation of a shared archive.
19172 postinstall_cmds=$lt_postinstall_cmds
19174 # Command to use after uninstallation of a shared archive.
19175 postuninstall_cmds=$lt_postuninstall_cmds
19177 # Commands used to finish a libtool library installation in a directory.
19178 finish_cmds=$lt_finish_cmds
19180 # As "finish_cmds", except a single script fragment to be evaled but
19181 # not shown.
19182 finish_eval=$lt_finish_eval
19184 # Whether we should hardcode library paths into libraries.
19185 hardcode_into_libs=$hardcode_into_libs
19187 # Compile-time system search path for libraries.
19188 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19190 # Run-time system search path for libraries.
19191 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19193 # Whether dlopen is supported.
19194 dlopen_support=$enable_dlopen
19196 # Whether dlopen of programs is supported.
19197 dlopen_self=$enable_dlopen_self
19199 # Whether dlopen of statically linked programs is supported.
19200 dlopen_self_static=$enable_dlopen_self_static
19202 # Commands to strip libraries.
19203 old_striplib=$lt_old_striplib
19204 striplib=$lt_striplib
19207 # The linker used to build libraries.
19208 LD=$lt_LD
19210 # How to create reloadable object files.
19211 reload_flag=$lt_reload_flag
19212 reload_cmds=$lt_reload_cmds
19214 # Commands used to build an old-style archive.
19215 old_archive_cmds=$lt_old_archive_cmds
19217 # A language specific compiler.
19218 CC=$lt_compiler
19220 # Is the compiler the GNU compiler?
19221 with_gcc=$GCC
19223 # Compiler flag to turn off builtin functions.
19224 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19226 # Additional compiler flags for building library objects.
19227 pic_flag=$lt_lt_prog_compiler_pic
19229 # How to pass a linker flag through the compiler.
19230 wl=$lt_lt_prog_compiler_wl
19232 # Compiler flag to prevent dynamic linking.
19233 link_static_flag=$lt_lt_prog_compiler_static
19235 # Does compiler simultaneously support -c and -o options?
19236 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19238 # Whether or not to add -lc for building shared libraries.
19239 build_libtool_need_lc=$archive_cmds_need_lc
19241 # Whether or not to disallow shared libs when runtime libs are static.
19242 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19244 # Compiler flag to allow reflexive dlopens.
19245 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19247 # Compiler flag to generate shared objects directly from archives.
19248 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19250 # Whether the compiler copes with passing no objects directly.
19251 compiler_needs_object=$lt_compiler_needs_object
19253 # Create an old-style archive from a shared archive.
19254 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19256 # Create a temporary old-style archive to link instead of a shared archive.
19257 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19259 # Commands used to build a shared archive.
19260 archive_cmds=$lt_archive_cmds
19261 archive_expsym_cmds=$lt_archive_expsym_cmds
19263 # Commands used to build a loadable module if different from building
19264 # a shared archive.
19265 module_cmds=$lt_module_cmds
19266 module_expsym_cmds=$lt_module_expsym_cmds
19268 # Whether we are building with GNU ld or not.
19269 with_gnu_ld=$lt_with_gnu_ld
19271 # Flag that allows shared libraries with undefined symbols to be built.
19272 allow_undefined_flag=$lt_allow_undefined_flag
19274 # Flag that enforces no undefined symbols.
19275 no_undefined_flag=$lt_no_undefined_flag
19277 # Flag to hardcode \$libdir into a binary during linking.
19278 # This must work even if \$libdir does not exist
19279 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19281 # Whether we need a single "-rpath" flag with a separated argument.
19282 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19284 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19285 # DIR into the resulting binary.
19286 hardcode_direct=$hardcode_direct
19288 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19289 # DIR into the resulting binary and the resulting library dependency is
19290 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19291 # library is relocated.
19292 hardcode_direct_absolute=$hardcode_direct_absolute
19294 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19295 # into the resulting binary.
19296 hardcode_minus_L=$hardcode_minus_L
19298 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19299 # into the resulting binary.
19300 hardcode_shlibpath_var=$hardcode_shlibpath_var
19302 # Set to "yes" if building a shared library automatically hardcodes DIR
19303 # into the library and all subsequent libraries and executables linked
19304 # against it.
19305 hardcode_automatic=$hardcode_automatic
19307 # Set to yes if linker adds runtime paths of dependent libraries
19308 # to runtime path list.
19309 inherit_rpath=$inherit_rpath
19311 # Whether libtool must link a program against all its dependency libraries.
19312 link_all_deplibs=$link_all_deplibs
19314 # Set to "yes" if exported symbols are required.
19315 always_export_symbols=$always_export_symbols
19317 # The commands to list exported symbols.
19318 export_symbols_cmds=$lt_export_symbols_cmds
19320 # Symbols that should not be listed in the preloaded symbols.
19321 exclude_expsyms=$lt_exclude_expsyms
19323 # Symbols that must always be exported.
19324 include_expsyms=$lt_include_expsyms
19326 # Commands necessary for linking programs (against libraries) with templates.
19327 prelink_cmds=$lt_prelink_cmds
19329 # Commands necessary for finishing linking programs.
19330 postlink_cmds=$lt_postlink_cmds
19332 # Specify filename containing input files.
19333 file_list_spec=$lt_file_list_spec
19335 # How to hardcode a shared library path into an executable.
19336 hardcode_action=$hardcode_action
19338 # ### END LIBTOOL CONFIG
19340 _LT_EOF
19342 case $host_os in
19343 aix3*)
19344 cat <<\_LT_EOF >> "$cfgfile"
19345 # AIX sometimes has problems with the GCC collect2 program. For some
19346 # reason, if we set the COLLECT_NAMES environment variable, the problems
19347 # vanish in a puff of smoke.
19348 if test "X${COLLECT_NAMES+set}" != Xset; then
19349 COLLECT_NAMES=
19350 export COLLECT_NAMES
19352 _LT_EOF
19354 esac
19357 ltmain="$ac_aux_dir/ltmain.sh"
19360 # We use sed instead of cat because bash on DJGPP gets confused if
19361 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19362 # text mode, it properly converts lines to CR/LF. This bash problem
19363 # is reportedly fixed, but why not run on old versions too?
19364 sed '$q' "$ltmain" >> "$cfgfile" \
19365 || (rm -f "$cfgfile"; exit 1)
19367 if test x"$xsi_shell" = xyes; then
19368 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
19369 func_dirname ()\
19371 \ case ${1} in\
19372 \ */*) func_dirname_result="${1%/*}${2}" ;;\
19373 \ * ) func_dirname_result="${3}" ;;\
19374 \ esac\
19375 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
19376 && mv -f "$cfgfile.tmp" "$cfgfile" \
19377 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19378 test 0 -eq $? || _lt_function_replace_fail=:
19381 sed -e '/^func_basename ()$/,/^} # func_basename /c\
19382 func_basename ()\
19384 \ func_basename_result="${1##*/}"\
19385 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
19386 && mv -f "$cfgfile.tmp" "$cfgfile" \
19387 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19388 test 0 -eq $? || _lt_function_replace_fail=:
19391 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
19392 func_dirname_and_basename ()\
19394 \ case ${1} in\
19395 \ */*) func_dirname_result="${1%/*}${2}" ;;\
19396 \ * ) func_dirname_result="${3}" ;;\
19397 \ esac\
19398 \ func_basename_result="${1##*/}"\
19399 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
19400 && mv -f "$cfgfile.tmp" "$cfgfile" \
19401 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19402 test 0 -eq $? || _lt_function_replace_fail=:
19405 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
19406 func_stripname ()\
19408 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
19409 \ # positional parameters, so assign one to ordinary parameter first.\
19410 \ func_stripname_result=${3}\
19411 \ func_stripname_result=${func_stripname_result#"${1}"}\
19412 \ func_stripname_result=${func_stripname_result%"${2}"}\
19413 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
19414 && mv -f "$cfgfile.tmp" "$cfgfile" \
19415 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19416 test 0 -eq $? || _lt_function_replace_fail=:
19419 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
19420 func_split_long_opt ()\
19422 \ func_split_long_opt_name=${1%%=*}\
19423 \ func_split_long_opt_arg=${1#*=}\
19424 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
19425 && mv -f "$cfgfile.tmp" "$cfgfile" \
19426 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19427 test 0 -eq $? || _lt_function_replace_fail=:
19430 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
19431 func_split_short_opt ()\
19433 \ func_split_short_opt_arg=${1#??}\
19434 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
19435 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
19436 && mv -f "$cfgfile.tmp" "$cfgfile" \
19437 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19438 test 0 -eq $? || _lt_function_replace_fail=:
19441 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
19442 func_lo2o ()\
19444 \ case ${1} in\
19445 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
19446 \ *) func_lo2o_result=${1} ;;\
19447 \ esac\
19448 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
19449 && mv -f "$cfgfile.tmp" "$cfgfile" \
19450 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19451 test 0 -eq $? || _lt_function_replace_fail=:
19454 sed -e '/^func_xform ()$/,/^} # func_xform /c\
19455 func_xform ()\
19457 func_xform_result=${1%.*}.lo\
19458 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
19459 && mv -f "$cfgfile.tmp" "$cfgfile" \
19460 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19461 test 0 -eq $? || _lt_function_replace_fail=:
19464 sed -e '/^func_arith ()$/,/^} # func_arith /c\
19465 func_arith ()\
19467 func_arith_result=$(( $* ))\
19468 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
19469 && mv -f "$cfgfile.tmp" "$cfgfile" \
19470 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19471 test 0 -eq $? || _lt_function_replace_fail=:
19474 sed -e '/^func_len ()$/,/^} # func_len /c\
19475 func_len ()\
19477 func_len_result=${#1}\
19478 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
19479 && mv -f "$cfgfile.tmp" "$cfgfile" \
19480 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19481 test 0 -eq $? || _lt_function_replace_fail=:
19485 if test x"$lt_shell_append" = xyes; then
19486 sed -e '/^func_append ()$/,/^} # func_append /c\
19487 func_append ()\
19489 eval "${1}+=\\${2}"\
19490 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
19491 && mv -f "$cfgfile.tmp" "$cfgfile" \
19492 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19493 test 0 -eq $? || _lt_function_replace_fail=:
19496 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
19497 func_append_quoted ()\
19499 \ func_quote_for_eval "${2}"\
19500 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
19501 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
19502 && mv -f "$cfgfile.tmp" "$cfgfile" \
19503 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19504 test 0 -eq $? || _lt_function_replace_fail=:
19507 # Save a `func_append' function call where possible by direct use of '+='
19508 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
19509 && mv -f "$cfgfile.tmp" "$cfgfile" \
19510 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19511 test 0 -eq $? || _lt_function_replace_fail=:
19512 else
19513 # Save a `func_append' function call even when '+=' is not available
19514 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
19515 && mv -f "$cfgfile.tmp" "$cfgfile" \
19516 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19517 test 0 -eq $? || _lt_function_replace_fail=:
19520 if test x"$_lt_function_replace_fail" = x":"; then
19521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
19522 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
19526 mv -f "$cfgfile" "$ofile" ||
19527 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19528 chmod +x "$ofile"
19531 cat <<_LT_EOF >> "$ofile"
19533 # ### BEGIN LIBTOOL TAG CONFIG: RC
19535 # The linker used to build libraries.
19536 LD=$lt_LD_RC
19538 # How to create reloadable object files.
19539 reload_flag=$lt_reload_flag_RC
19540 reload_cmds=$lt_reload_cmds_RC
19542 # Commands used to build an old-style archive.
19543 old_archive_cmds=$lt_old_archive_cmds_RC
19545 # A language specific compiler.
19546 CC=$lt_compiler_RC
19548 # Is the compiler the GNU compiler?
19549 with_gcc=$GCC_RC
19551 # Compiler flag to turn off builtin functions.
19552 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19554 # Additional compiler flags for building library objects.
19555 pic_flag=$lt_lt_prog_compiler_pic_RC
19557 # How to pass a linker flag through the compiler.
19558 wl=$lt_lt_prog_compiler_wl_RC
19560 # Compiler flag to prevent dynamic linking.
19561 link_static_flag=$lt_lt_prog_compiler_static_RC
19563 # Does compiler simultaneously support -c and -o options?
19564 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19566 # Whether or not to add -lc for building shared libraries.
19567 build_libtool_need_lc=$archive_cmds_need_lc_RC
19569 # Whether or not to disallow shared libs when runtime libs are static.
19570 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19572 # Compiler flag to allow reflexive dlopens.
19573 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19575 # Compiler flag to generate shared objects directly from archives.
19576 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19578 # Whether the compiler copes with passing no objects directly.
19579 compiler_needs_object=$lt_compiler_needs_object_RC
19581 # Create an old-style archive from a shared archive.
19582 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19584 # Create a temporary old-style archive to link instead of a shared archive.
19585 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19587 # Commands used to build a shared archive.
19588 archive_cmds=$lt_archive_cmds_RC
19589 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19591 # Commands used to build a loadable module if different from building
19592 # a shared archive.
19593 module_cmds=$lt_module_cmds_RC
19594 module_expsym_cmds=$lt_module_expsym_cmds_RC
19596 # Whether we are building with GNU ld or not.
19597 with_gnu_ld=$lt_with_gnu_ld_RC
19599 # Flag that allows shared libraries with undefined symbols to be built.
19600 allow_undefined_flag=$lt_allow_undefined_flag_RC
19602 # Flag that enforces no undefined symbols.
19603 no_undefined_flag=$lt_no_undefined_flag_RC
19605 # Flag to hardcode \$libdir into a binary during linking.
19606 # This must work even if \$libdir does not exist
19607 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19609 # Whether we need a single "-rpath" flag with a separated argument.
19610 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19612 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19613 # DIR into the resulting binary.
19614 hardcode_direct=$hardcode_direct_RC
19616 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19617 # DIR into the resulting binary and the resulting library dependency is
19618 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19619 # library is relocated.
19620 hardcode_direct_absolute=$hardcode_direct_absolute_RC
19622 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19623 # into the resulting binary.
19624 hardcode_minus_L=$hardcode_minus_L_RC
19626 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19627 # into the resulting binary.
19628 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19630 # Set to "yes" if building a shared library automatically hardcodes DIR
19631 # into the library and all subsequent libraries and executables linked
19632 # against it.
19633 hardcode_automatic=$hardcode_automatic_RC
19635 # Set to yes if linker adds runtime paths of dependent libraries
19636 # to runtime path list.
19637 inherit_rpath=$inherit_rpath_RC
19639 # Whether libtool must link a program against all its dependency libraries.
19640 link_all_deplibs=$link_all_deplibs_RC
19642 # Set to "yes" if exported symbols are required.
19643 always_export_symbols=$always_export_symbols_RC
19645 # The commands to list exported symbols.
19646 export_symbols_cmds=$lt_export_symbols_cmds_RC
19648 # Symbols that should not be listed in the preloaded symbols.
19649 exclude_expsyms=$lt_exclude_expsyms_RC
19651 # Symbols that must always be exported.
19652 include_expsyms=$lt_include_expsyms_RC
19654 # Commands necessary for linking programs (against libraries) with templates.
19655 prelink_cmds=$lt_prelink_cmds_RC
19657 # Commands necessary for finishing linking programs.
19658 postlink_cmds=$lt_postlink_cmds_RC
19660 # Specify filename containing input files.
19661 file_list_spec=$lt_file_list_spec_RC
19663 # How to hardcode a shared library path into an executable.
19664 hardcode_action=$hardcode_action_RC
19666 # ### END LIBTOOL TAG CONFIG: RC
19667 _LT_EOF
19670 "tests/t_client.sh":F) chmod +x tests/t_client.sh ;;
19672 esac
19673 done # for ac_tag
19676 as_fn_exit 0
19677 _ACEOF
19678 ac_clean_files=$ac_clean_files_save
19680 test $ac_write_fail = 0 ||
19681 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19684 # configure is writing to config.log, and then calls config.status.
19685 # config.status does its own redirection, appending to config.log.
19686 # Unfortunately, on DOS this fails, as config.log is still kept open
19687 # by configure, so config.status won't be able to write to it; its
19688 # output is simply discarded. So we exec the FD to /dev/null,
19689 # effectively closing config.log, so it can be properly (re)opened and
19690 # appended to by config.status. When coming back to configure, we
19691 # need to make the FD available again.
19692 if test "$no_create" != yes; then
19693 ac_cs_success=:
19694 ac_config_status_args=
19695 test "$silent" = yes &&
19696 ac_config_status_args="$ac_config_status_args --quiet"
19697 exec 5>/dev/null
19698 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19699 exec 5>>config.log
19700 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19701 # would make configure fail if this is the last instruction.
19702 $ac_cs_success || as_fn_exit 1
19704 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19706 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}