OpenVPN: Update to version 2.3.2. Solves TLS security bug.
[tomato.git] / release / src / router / openvpn / configure
blobe1f1c8e418152d96c8b44dea29916a9a2d51f529
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for OpenVPN 2.3.2.
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.2'
594 PACKAGE_STRING='OpenVPN 2.3.2'
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_LZO_LIBS
654 OPTIONAL_LZO_CFLAGS
655 OPTIONAL_CRYPTO_LIBS
656 OPTIONAL_CRYPTO_CFLAGS
657 OPTIONAL_SELINUX_LIBS
658 OPTIONAL_DL_LIBS
659 TAP_WIN_MIN_MINOR
660 TAP_WIN_MIN_MAJOR
661 TAP_WIN_COMPONENT_ID
662 LZO_LIBS
663 LZO_CFLAGS
664 POLARSSL_LIBS
665 POLARSSL_CFLAGS
666 OPENSSL_SSL_LIBS
667 OPENSSL_SSL_CFLAGS
668 OPENSSL_CRYPTO_LIBS
669 OPENSSL_CRYPTO_CFLAGS
670 PKCS11_HELPER_LIBS
671 PKCS11_HELPER_CFLAGS
672 LIBPAM_LIBS
673 LIBPAM_CFLAGS
674 SELINUX_LIBS
675 TAP_CFLAGS
676 SOCKETS_LIBS
677 DL_LIBS
679 OTOOL64
680 OTOOL
681 LIPO
682 NMEDIT
683 DSYMUTIL
684 MANIFEST_TOOL
685 RANLIB
686 ac_ct_AR
689 ac_ct_DUMPBIN
690 DUMPBIN
692 FGREP
693 LIBTOOL
694 OBJDUMP
695 DLLTOOL
698 MAN2HTML
699 NETSTAT
700 IPROUTE
701 ROUTE
702 IFCONFIG
704 LN_S
705 PKG_CONFIG_LIBDIR
706 PKG_CONFIG_PATH
707 PKG_CONFIG
708 EGREP
709 GREP
711 am__fastdepCC_FALSE
712 am__fastdepCC_TRUE
713 CCDEPMODE
714 am__nodep
715 AMDEPBACKSLASH
716 AMDEP_FALSE
717 AMDEP_TRUE
718 am__quote
719 am__include
720 DEPDIR
721 OBJEXT
722 EXEEXT
723 ac_ct_CC
724 CPPFLAGS
725 LDFLAGS
726 CFLAGS
728 host_os
729 host_vendor
730 host_cpu
731 host
732 build_os
733 build_vendor
734 build_cpu
735 build
736 am__untar
737 am__tar
738 AMTAR
739 am__leading_dot
740 SET_MAKE
742 mkdir_p
743 MKDIR_P
744 INSTALL_STRIP_PROGRAM
745 STRIP
746 install_sh
747 MAKEINFO
748 AUTOHEADER
749 AUTOMAKE
750 AUTOCONF
751 ACLOCAL
752 VERSION
753 PACKAGE
754 CYGPATH_W
755 am__isrc
756 INSTALL_DATA
757 INSTALL_SCRIPT
758 INSTALL_PROGRAM
759 target_alias
760 host_alias
761 build_alias
762 LIBS
763 ECHO_T
764 ECHO_N
765 ECHO_C
766 DEFS
767 mandir
768 localedir
769 libdir
770 psdir
771 pdfdir
772 dvidir
773 htmldir
774 infodir
775 docdir
776 oldincludedir
777 includedir
778 localstatedir
779 sharedstatedir
780 sysconfdir
781 datadir
782 datarootdir
783 libexecdir
784 sbindir
785 bindir
786 program_transform_name
787 prefix
788 exec_prefix
789 PACKAGE_URL
790 PACKAGE_BUGREPORT
791 PACKAGE_STRING
792 PACKAGE_VERSION
793 PACKAGE_TARNAME
794 PACKAGE_NAME
795 PATH_SEPARATOR
796 SHELL'
797 ac_subst_files=''
798 ac_user_opts='
799 enable_option_checking
800 enable_dependency_tracking
801 enable_lzo
802 enable_lzo_stub
803 enable_crypto
804 enable_ssl
805 enable_x509_alt_username
806 enable_multi
807 enable_server
808 enable_plugins
809 enable_eurephia
810 enable_management
811 enable_pkcs11
812 enable_socks
813 enable_http_proxy
814 enable_fragment
815 enable_multihome
816 enable_port_share
817 enable_debug
818 enable_small
819 enable_password_save
820 enable_iproute2
821 enable_def_auth
822 enable_pf
823 enable_plugin_auth_pam
824 enable_plugin_down_root
825 enable_pam_dlopen
826 enable_strict
827 enable_pedantic
828 enable_strict_options
829 enable_selinux
830 enable_systemd
831 with_special_build
832 with_mem_check
833 with_crypto_library
834 with_plugindir
835 enable_shared
836 enable_static
837 with_pic
838 enable_fast_install
839 with_gnu_ld
840 with_sysroot
841 enable_libtool_lock
843 ac_precious_vars='build_alias
844 host_alias
845 target_alias
847 CFLAGS
848 LDFLAGS
849 LIBS
850 CPPFLAGS
852 PKG_CONFIG
853 PKG_CONFIG_PATH
854 PKG_CONFIG_LIBDIR
855 IFCONFIG
856 ROUTE
857 IPROUTE
858 NETSTAT
859 MAN2HTML
861 TAP_CFLAGS
862 LIBPAM_CFLAGS
863 LIBPAM_LIBS
864 PKCS11_HELPER_CFLAGS
865 PKCS11_HELPER_LIBS
866 OPENSSL_CRYPTO_CFLAGS
867 OPENSSL_CRYPTO_LIBS
868 OPENSSL_SSL_CFLAGS
869 OPENSSL_SSL_LIBS
870 POLARSSL_CFLAGS
871 POLARSSL_LIBS
872 LZO_CFLAGS
873 LZO_LIBS'
876 # Initialize some variables set by options.
877 ac_init_help=
878 ac_init_version=false
879 ac_unrecognized_opts=
880 ac_unrecognized_sep=
881 # The variables have the same names as the options, with
882 # dashes changed to underlines.
883 cache_file=/dev/null
884 exec_prefix=NONE
885 no_create=
886 no_recursion=
887 prefix=NONE
888 program_prefix=NONE
889 program_suffix=NONE
890 program_transform_name=s,x,x,
891 silent=
892 site=
893 srcdir=
894 verbose=
895 x_includes=NONE
896 x_libraries=NONE
898 # Installation directory options.
899 # These are left unexpanded so users can "make install exec_prefix=/foo"
900 # and all the variables that are supposed to be based on exec_prefix
901 # by default will actually change.
902 # Use braces instead of parens because sh, perl, etc. also accept them.
903 # (The list follows the same order as the GNU Coding Standards.)
904 bindir='${exec_prefix}/bin'
905 sbindir='${exec_prefix}/sbin'
906 libexecdir='${exec_prefix}/libexec'
907 datarootdir='${prefix}/share'
908 datadir='${datarootdir}'
909 sysconfdir='${prefix}/etc'
910 sharedstatedir='${prefix}/com'
911 localstatedir='${prefix}/var'
912 includedir='${prefix}/include'
913 oldincludedir='/usr/include'
914 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
915 infodir='${datarootdir}/info'
916 htmldir='${docdir}'
917 dvidir='${docdir}'
918 pdfdir='${docdir}'
919 psdir='${docdir}'
920 libdir='${exec_prefix}/lib'
921 localedir='${datarootdir}/locale'
922 mandir='${datarootdir}/man'
924 ac_prev=
925 ac_dashdash=
926 for ac_option
928 # If the previous option needs an argument, assign it.
929 if test -n "$ac_prev"; then
930 eval $ac_prev=\$ac_option
931 ac_prev=
932 continue
935 case $ac_option in
936 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
937 *=) ac_optarg= ;;
938 *) ac_optarg=yes ;;
939 esac
941 # Accept the important Cygnus configure options, so we can diagnose typos.
943 case $ac_dashdash$ac_option in
945 ac_dashdash=yes ;;
947 -bindir | --bindir | --bindi | --bind | --bin | --bi)
948 ac_prev=bindir ;;
949 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
950 bindir=$ac_optarg ;;
952 -build | --build | --buil | --bui | --bu)
953 ac_prev=build_alias ;;
954 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
955 build_alias=$ac_optarg ;;
957 -cache-file | --cache-file | --cache-fil | --cache-fi \
958 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
959 ac_prev=cache_file ;;
960 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
961 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
962 cache_file=$ac_optarg ;;
964 --config-cache | -C)
965 cache_file=config.cache ;;
967 -datadir | --datadir | --datadi | --datad)
968 ac_prev=datadir ;;
969 -datadir=* | --datadir=* | --datadi=* | --datad=*)
970 datadir=$ac_optarg ;;
972 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
973 | --dataroo | --dataro | --datar)
974 ac_prev=datarootdir ;;
975 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
976 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
977 datarootdir=$ac_optarg ;;
979 -disable-* | --disable-*)
980 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
981 # Reject names that are not valid shell variable names.
982 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
983 as_fn_error $? "invalid feature name: $ac_useropt"
984 ac_useropt_orig=$ac_useropt
985 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
986 case $ac_user_opts in
988 "enable_$ac_useropt"
989 "*) ;;
990 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
991 ac_unrecognized_sep=', ';;
992 esac
993 eval enable_$ac_useropt=no ;;
995 -docdir | --docdir | --docdi | --doc | --do)
996 ac_prev=docdir ;;
997 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
998 docdir=$ac_optarg ;;
1000 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1001 ac_prev=dvidir ;;
1002 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1003 dvidir=$ac_optarg ;;
1005 -enable-* | --enable-*)
1006 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1007 # Reject names that are not valid shell variable names.
1008 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1009 as_fn_error $? "invalid feature name: $ac_useropt"
1010 ac_useropt_orig=$ac_useropt
1011 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1012 case $ac_user_opts in
1014 "enable_$ac_useropt"
1015 "*) ;;
1016 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1017 ac_unrecognized_sep=', ';;
1018 esac
1019 eval enable_$ac_useropt=\$ac_optarg ;;
1021 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1022 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1023 | --exec | --exe | --ex)
1024 ac_prev=exec_prefix ;;
1025 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1026 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1027 | --exec=* | --exe=* | --ex=*)
1028 exec_prefix=$ac_optarg ;;
1030 -gas | --gas | --ga | --g)
1031 # Obsolete; use --with-gas.
1032 with_gas=yes ;;
1034 -help | --help | --hel | --he | -h)
1035 ac_init_help=long ;;
1036 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1037 ac_init_help=recursive ;;
1038 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1039 ac_init_help=short ;;
1041 -host | --host | --hos | --ho)
1042 ac_prev=host_alias ;;
1043 -host=* | --host=* | --hos=* | --ho=*)
1044 host_alias=$ac_optarg ;;
1046 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1047 ac_prev=htmldir ;;
1048 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1049 | --ht=*)
1050 htmldir=$ac_optarg ;;
1052 -includedir | --includedir | --includedi | --included | --include \
1053 | --includ | --inclu | --incl | --inc)
1054 ac_prev=includedir ;;
1055 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1056 | --includ=* | --inclu=* | --incl=* | --inc=*)
1057 includedir=$ac_optarg ;;
1059 -infodir | --infodir | --infodi | --infod | --info | --inf)
1060 ac_prev=infodir ;;
1061 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1062 infodir=$ac_optarg ;;
1064 -libdir | --libdir | --libdi | --libd)
1065 ac_prev=libdir ;;
1066 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1067 libdir=$ac_optarg ;;
1069 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1070 | --libexe | --libex | --libe)
1071 ac_prev=libexecdir ;;
1072 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1073 | --libexe=* | --libex=* | --libe=*)
1074 libexecdir=$ac_optarg ;;
1076 -localedir | --localedir | --localedi | --localed | --locale)
1077 ac_prev=localedir ;;
1078 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1079 localedir=$ac_optarg ;;
1081 -localstatedir | --localstatedir | --localstatedi | --localstated \
1082 | --localstate | --localstat | --localsta | --localst | --locals)
1083 ac_prev=localstatedir ;;
1084 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1085 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1086 localstatedir=$ac_optarg ;;
1088 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1089 ac_prev=mandir ;;
1090 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1091 mandir=$ac_optarg ;;
1093 -nfp | --nfp | --nf)
1094 # Obsolete; use --without-fp.
1095 with_fp=no ;;
1097 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1098 | --no-cr | --no-c | -n)
1099 no_create=yes ;;
1101 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1102 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1103 no_recursion=yes ;;
1105 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1106 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1107 | --oldin | --oldi | --old | --ol | --o)
1108 ac_prev=oldincludedir ;;
1109 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1110 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1111 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1112 oldincludedir=$ac_optarg ;;
1114 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1115 ac_prev=prefix ;;
1116 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1117 prefix=$ac_optarg ;;
1119 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1120 | --program-pre | --program-pr | --program-p)
1121 ac_prev=program_prefix ;;
1122 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1123 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1124 program_prefix=$ac_optarg ;;
1126 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1127 | --program-suf | --program-su | --program-s)
1128 ac_prev=program_suffix ;;
1129 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1130 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1131 program_suffix=$ac_optarg ;;
1133 -program-transform-name | --program-transform-name \
1134 | --program-transform-nam | --program-transform-na \
1135 | --program-transform-n | --program-transform- \
1136 | --program-transform | --program-transfor \
1137 | --program-transfo | --program-transf \
1138 | --program-trans | --program-tran \
1139 | --progr-tra | --program-tr | --program-t)
1140 ac_prev=program_transform_name ;;
1141 -program-transform-name=* | --program-transform-name=* \
1142 | --program-transform-nam=* | --program-transform-na=* \
1143 | --program-transform-n=* | --program-transform-=* \
1144 | --program-transform=* | --program-transfor=* \
1145 | --program-transfo=* | --program-transf=* \
1146 | --program-trans=* | --program-tran=* \
1147 | --progr-tra=* | --program-tr=* | --program-t=*)
1148 program_transform_name=$ac_optarg ;;
1150 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1151 ac_prev=pdfdir ;;
1152 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1153 pdfdir=$ac_optarg ;;
1155 -psdir | --psdir | --psdi | --psd | --ps)
1156 ac_prev=psdir ;;
1157 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1158 psdir=$ac_optarg ;;
1160 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1161 | -silent | --silent | --silen | --sile | --sil)
1162 silent=yes ;;
1164 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1165 ac_prev=sbindir ;;
1166 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1167 | --sbi=* | --sb=*)
1168 sbindir=$ac_optarg ;;
1170 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1171 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1172 | --sharedst | --shareds | --shared | --share | --shar \
1173 | --sha | --sh)
1174 ac_prev=sharedstatedir ;;
1175 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1176 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1177 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1178 | --sha=* | --sh=*)
1179 sharedstatedir=$ac_optarg ;;
1181 -site | --site | --sit)
1182 ac_prev=site ;;
1183 -site=* | --site=* | --sit=*)
1184 site=$ac_optarg ;;
1186 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1187 ac_prev=srcdir ;;
1188 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1189 srcdir=$ac_optarg ;;
1191 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1192 | --syscon | --sysco | --sysc | --sys | --sy)
1193 ac_prev=sysconfdir ;;
1194 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1195 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1196 sysconfdir=$ac_optarg ;;
1198 -target | --target | --targe | --targ | --tar | --ta | --t)
1199 ac_prev=target_alias ;;
1200 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1201 target_alias=$ac_optarg ;;
1203 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1204 verbose=yes ;;
1206 -version | --version | --versio | --versi | --vers | -V)
1207 ac_init_version=: ;;
1209 -with-* | --with-*)
1210 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1211 # Reject names that are not valid shell variable names.
1212 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1213 as_fn_error $? "invalid package name: $ac_useropt"
1214 ac_useropt_orig=$ac_useropt
1215 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1216 case $ac_user_opts in
1218 "with_$ac_useropt"
1219 "*) ;;
1220 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1221 ac_unrecognized_sep=', ';;
1222 esac
1223 eval with_$ac_useropt=\$ac_optarg ;;
1225 -without-* | --without-*)
1226 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
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--without-$ac_useropt_orig"
1237 ac_unrecognized_sep=', ';;
1238 esac
1239 eval with_$ac_useropt=no ;;
1241 --x)
1242 # Obsolete; use --with-x.
1243 with_x=yes ;;
1245 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1246 | --x-incl | --x-inc | --x-in | --x-i)
1247 ac_prev=x_includes ;;
1248 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1249 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1250 x_includes=$ac_optarg ;;
1252 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1253 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1254 ac_prev=x_libraries ;;
1255 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1256 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1257 x_libraries=$ac_optarg ;;
1259 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1260 Try \`$0 --help' for more information"
1263 *=*)
1264 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1265 # Reject names that are not valid shell variable names.
1266 case $ac_envvar in #(
1267 '' | [0-9]* | *[!_$as_cr_alnum]* )
1268 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1269 esac
1270 eval $ac_envvar=\$ac_optarg
1271 export $ac_envvar ;;
1274 # FIXME: should be removed in autoconf 3.0.
1275 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1276 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1277 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1278 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1281 esac
1282 done
1284 if test -n "$ac_prev"; then
1285 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1286 as_fn_error $? "missing argument to $ac_option"
1289 if test -n "$ac_unrecognized_opts"; then
1290 case $enable_option_checking in
1291 no) ;;
1292 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1293 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1294 esac
1297 # Check all directory arguments for consistency.
1298 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1299 datadir sysconfdir sharedstatedir localstatedir includedir \
1300 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1301 libdir localedir mandir
1303 eval ac_val=\$$ac_var
1304 # Remove trailing slashes.
1305 case $ac_val in
1306 */ )
1307 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1308 eval $ac_var=\$ac_val;;
1309 esac
1310 # Be sure to have absolute directory names.
1311 case $ac_val in
1312 [\\/$]* | ?:[\\/]* ) continue;;
1313 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1314 esac
1315 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1316 done
1318 # There might be people who depend on the old broken behavior: `$host'
1319 # used to hold the argument of --host etc.
1320 # FIXME: To remove some day.
1321 build=$build_alias
1322 host=$host_alias
1323 target=$target_alias
1325 # FIXME: To remove some day.
1326 if test "x$host_alias" != x; then
1327 if test "x$build_alias" = x; then
1328 cross_compiling=maybe
1329 elif test "x$build_alias" != "x$host_alias"; then
1330 cross_compiling=yes
1334 ac_tool_prefix=
1335 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1337 test "$silent" = yes && exec 6>/dev/null
1340 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1341 ac_ls_di=`ls -di .` &&
1342 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1343 as_fn_error $? "working directory cannot be determined"
1344 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1345 as_fn_error $? "pwd does not report name of working directory"
1348 # Find the source files, if location was not specified.
1349 if test -z "$srcdir"; then
1350 ac_srcdir_defaulted=yes
1351 # Try the directory containing this script, then the parent directory.
1352 ac_confdir=`$as_dirname -- "$as_myself" ||
1353 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1354 X"$as_myself" : 'X\(//\)[^/]' \| \
1355 X"$as_myself" : 'X\(//\)$' \| \
1356 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1357 $as_echo X"$as_myself" |
1358 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1359 s//\1/
1362 /^X\(\/\/\)[^/].*/{
1363 s//\1/
1366 /^X\(\/\/\)$/{
1367 s//\1/
1370 /^X\(\/\).*/{
1371 s//\1/
1374 s/.*/./; q'`
1375 srcdir=$ac_confdir
1376 if test ! -r "$srcdir/$ac_unique_file"; then
1377 srcdir=..
1379 else
1380 ac_srcdir_defaulted=no
1382 if test ! -r "$srcdir/$ac_unique_file"; then
1383 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1384 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1386 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1387 ac_abs_confdir=`(
1388 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1389 pwd)`
1390 # When building in place, set srcdir=.
1391 if test "$ac_abs_confdir" = "$ac_pwd"; then
1392 srcdir=.
1394 # Remove unnecessary trailing slashes from srcdir.
1395 # Double slashes in file names in object file debugging info
1396 # mess up M-x gdb in Emacs.
1397 case $srcdir in
1398 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1399 esac
1400 for ac_var in $ac_precious_vars; do
1401 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1402 eval ac_env_${ac_var}_value=\$${ac_var}
1403 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1404 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1405 done
1408 # Report the --help message.
1410 if test "$ac_init_help" = "long"; then
1411 # Omit some internal or obsolete options to make the list less imposing.
1412 # This message is too long to be a string in the A/UX 3.1 sh.
1413 cat <<_ACEOF
1414 \`configure' configures OpenVPN 2.3.2 to adapt to many kinds of systems.
1416 Usage: $0 [OPTION]... [VAR=VALUE]...
1418 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1419 VAR=VALUE. See below for descriptions of some of the useful variables.
1421 Defaults for the options are specified in brackets.
1423 Configuration:
1424 -h, --help display this help and exit
1425 --help=short display options specific to this package
1426 --help=recursive display the short help of all the included packages
1427 -V, --version display version information and exit
1428 -q, --quiet, --silent do not print \`checking ...' messages
1429 --cache-file=FILE cache test results in FILE [disabled]
1430 -C, --config-cache alias for \`--cache-file=config.cache'
1431 -n, --no-create do not create output files
1432 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1434 Installation directories:
1435 --prefix=PREFIX install architecture-independent files in PREFIX
1436 [$ac_default_prefix]
1437 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1438 [PREFIX]
1440 By default, \`make install' will install all the files in
1441 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1442 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1443 for instance \`--prefix=\$HOME'.
1445 For better control, use the options below.
1447 Fine tuning of the installation directories:
1448 --bindir=DIR user executables [EPREFIX/bin]
1449 --sbindir=DIR system admin executables [EPREFIX/sbin]
1450 --libexecdir=DIR program executables [EPREFIX/libexec]
1451 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1452 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1453 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1454 --libdir=DIR object code libraries [EPREFIX/lib]
1455 --includedir=DIR C header files [PREFIX/include]
1456 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1457 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1458 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1459 --infodir=DIR info documentation [DATAROOTDIR/info]
1460 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1461 --mandir=DIR man documentation [DATAROOTDIR/man]
1462 --docdir=DIR documentation root [DATAROOTDIR/doc/openvpn]
1463 --htmldir=DIR html documentation [DOCDIR]
1464 --dvidir=DIR dvi documentation [DOCDIR]
1465 --pdfdir=DIR pdf documentation [DOCDIR]
1466 --psdir=DIR ps documentation [DOCDIR]
1467 _ACEOF
1469 cat <<\_ACEOF
1471 Program names:
1472 --program-prefix=PREFIX prepend PREFIX to installed program names
1473 --program-suffix=SUFFIX append SUFFIX to installed program names
1474 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1476 System types:
1477 --build=BUILD configure for building on BUILD [guessed]
1478 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1479 _ACEOF
1482 if test -n "$ac_init_help"; then
1483 case $ac_init_help in
1484 short | recursive ) echo "Configuration of OpenVPN 2.3.2:";;
1485 esac
1486 cat <<\_ACEOF
1488 Optional Features:
1489 --disable-option-checking ignore unrecognized --enable/--with options
1490 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1491 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1492 --disable-dependency-tracking speeds up one-time build
1493 --enable-dependency-tracking do not reject slow dependency extractors
1494 --disable-lzo disable LZO compression support [default=yes]
1495 --enable-lzo-stub don't compile LZO compression support but still
1496 allow limited interoperability with LZO-enabled
1497 peers [default=no]
1498 --disable-crypto disable crypto support [default=yes]
1499 --disable-ssl disable SSL support for TLS-based key exchange
1500 [default=yes]
1501 --enable-x509-alt-username
1502 enable the --x509-username-field feature
1503 [default=no]
1504 --disable-multi disable client/server support (--mode server +
1505 client mode) [default=yes]
1506 --disable-server disable server support only (but retain client
1507 support) [default=yes]
1508 --disable-plugins disable plug-in support [default=yes]
1509 --disable-eurephia disable support for the eurephia plug-in
1510 [default=yes]
1511 --disable-management disable management server support [default=yes]
1512 --enable-pkcs11 enable pkcs11 support [default=no]
1513 --disable-socks disable Socks support [default=yes]
1514 --disable-http-proxy disable HTTP proxy support [default=yes]
1515 --disable-fragment disable internal fragmentation support (--fragment)
1516 [default=yes]
1517 --disable-multihome disable multi-homed UDP server support (--multihome)
1518 [default=yes]
1519 --disable-port-share disable TCP server port-share support (--port-share)
1520 [default=yes]
1521 --disable-debug disable debugging support (disable gremlin and verb
1522 7+ messages) [default=yes]
1523 --enable-small enable smaller executable size (disable OCC, usage
1524 message, and verb 4 parm list) [default=yes]
1525 --enable-password-save allow --askpass and --auth-user-pass passwords to be
1526 read from a file [default=yes]
1527 --enable-iproute2 enable support for iproute2 [default=no]
1528 --disable-def-auth disable deferred authentication [default=yes]
1529 --disable-pf disable internal packet filter [default=yes]
1530 --disable-plugin-auth-pam
1531 disable auth-pam plugin [default=platform specific]
1532 --disable-plugin-down-root
1533 disable down-root plugin [default=platform specific]
1534 --enable-pam-dlopen dlopen libpam [default=no]
1535 --enable-strict enable strict compiler warnings (debugging option)
1536 [default=no]
1537 --enable-pedantic enable pedantic compiler warnings, will not generate
1538 a working executable (debugging option) [default=no]
1539 --enable-strict-options enable strict options check between peers (debugging
1540 option) [default=no]
1541 --enable-selinux enable SELinux support [default=no]
1542 --enable-systemd enable systemd suppport [default=no]
1543 --enable-shared[=PKGS] build shared libraries [default=yes]
1544 --enable-static[=PKGS] build static libraries [default=yes]
1545 --enable-fast-install[=PKGS]
1546 optimize for fast installation [default=yes]
1547 --disable-libtool-lock avoid locking (might break parallel builds)
1549 Optional Packages:
1550 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1551 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1552 --with-special-build=STRING
1553 specify special build string
1554 --with-mem-check=TYPE build with debug memory checking,
1555 TYPE=no|dmalloc|valgrind|ssl [default=no]
1556 --with-crypto-library=library
1557 build with the given crypto library,
1558 TYPE=openssl|polarssl [default=openssl]
1559 --with-plugindir plugin directory [default=LIBDIR/openvpn]
1560 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1561 both]
1562 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1563 --with-sysroot=DIR Search for dependent libraries within DIR
1564 (or the compiler's sysroot if not specified).
1566 Some influential environment variables:
1567 CC C compiler command
1568 CFLAGS C compiler flags
1569 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1570 nonstandard directory <lib dir>
1571 LIBS libraries to pass to the linker, e.g. -l<library>
1572 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1573 you have headers in a nonstandard directory <include dir>
1574 CPP C preprocessor
1575 PKG_CONFIG path to pkg-config utility
1576 PKG_CONFIG_PATH
1577 directories to add to pkg-config's search path
1578 PKG_CONFIG_LIBDIR
1579 path overriding pkg-config's built-in search path
1580 IFCONFIG full path to ipconfig utility
1581 ROUTE full path to route utility
1582 IPROUTE full path to ip utility
1583 NETSTAT path to netstat utility
1584 MAN2HTML path to man2html utility
1585 GIT path to git utility
1586 TAP_CFLAGS C compiler flags for tap
1587 LIBPAM_CFLAGS
1588 C compiler flags for libpam
1589 LIBPAM_LIBS linker flags for libpam
1590 PKCS11_HELPER_CFLAGS
1591 C compiler flags for PKCS11_HELPER, overriding pkg-config
1592 PKCS11_HELPER_LIBS
1593 linker flags for PKCS11_HELPER, overriding pkg-config
1594 OPENSSL_CRYPTO_CFLAGS
1595 C compiler flags for OPENSSL_CRYPTO, overriding pkg-config
1596 OPENSSL_CRYPTO_LIBS
1597 linker flags for OPENSSL_CRYPTO, overriding pkg-config
1598 OPENSSL_SSL_CFLAGS
1599 C compiler flags for OPENSSL_SSL, overriding pkg-config
1600 OPENSSL_SSL_LIBS
1601 linker flags for OPENSSL_SSL, overriding pkg-config
1602 POLARSSL_CFLAGS
1603 C compiler flags for polarssl
1604 POLARSSL_LIBS
1605 linker flags for polarssl
1606 LZO_CFLAGS C compiler flags for lzo
1607 LZO_LIBS linker flags for lzo
1609 Use these variables to override the choices made by `configure' or to help
1610 it to find libraries and programs with nonstandard names/locations.
1612 Report bugs to <openvpn-users@lists.sourceforge.net>.
1613 _ACEOF
1614 ac_status=$?
1617 if test "$ac_init_help" = "recursive"; then
1618 # If there are subdirs, report their specific --help.
1619 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1620 test -d "$ac_dir" ||
1621 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1622 continue
1623 ac_builddir=.
1625 case "$ac_dir" in
1626 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1628 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1629 # A ".." for each directory in $ac_dir_suffix.
1630 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1631 case $ac_top_builddir_sub in
1632 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1633 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1634 esac ;;
1635 esac
1636 ac_abs_top_builddir=$ac_pwd
1637 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1638 # for backward compatibility:
1639 ac_top_builddir=$ac_top_build_prefix
1641 case $srcdir in
1642 .) # We are building in place.
1643 ac_srcdir=.
1644 ac_top_srcdir=$ac_top_builddir_sub
1645 ac_abs_top_srcdir=$ac_pwd ;;
1646 [\\/]* | ?:[\\/]* ) # Absolute name.
1647 ac_srcdir=$srcdir$ac_dir_suffix;
1648 ac_top_srcdir=$srcdir
1649 ac_abs_top_srcdir=$srcdir ;;
1650 *) # Relative name.
1651 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1652 ac_top_srcdir=$ac_top_build_prefix$srcdir
1653 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1654 esac
1655 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1657 cd "$ac_dir" || { ac_status=$?; continue; }
1658 # Check for guested configure.
1659 if test -f "$ac_srcdir/configure.gnu"; then
1660 echo &&
1661 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1662 elif test -f "$ac_srcdir/configure"; then
1663 echo &&
1664 $SHELL "$ac_srcdir/configure" --help=recursive
1665 else
1666 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1667 fi || ac_status=$?
1668 cd "$ac_pwd" || { ac_status=$?; break; }
1669 done
1672 test -n "$ac_init_help" && exit $ac_status
1673 if $ac_init_version; then
1674 cat <<\_ACEOF
1675 OpenVPN configure 2.3.2
1676 generated by GNU Autoconf 2.69
1678 Copyright (C) 2012 Free Software Foundation, Inc.
1679 This configure script is free software; the Free Software Foundation
1680 gives unlimited permission to copy, distribute and modify it.
1681 _ACEOF
1682 exit
1685 ## ------------------------ ##
1686 ## Autoconf initialization. ##
1687 ## ------------------------ ##
1689 # ac_fn_c_try_compile LINENO
1690 # --------------------------
1691 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1692 ac_fn_c_try_compile ()
1694 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1695 rm -f conftest.$ac_objext
1696 if { { ac_try="$ac_compile"
1697 case "(($ac_try" in
1698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1699 *) ac_try_echo=$ac_try;;
1700 esac
1701 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1702 $as_echo "$ac_try_echo"; } >&5
1703 (eval "$ac_compile") 2>conftest.err
1704 ac_status=$?
1705 if test -s conftest.err; then
1706 grep -v '^ *+' conftest.err >conftest.er1
1707 cat conftest.er1 >&5
1708 mv -f conftest.er1 conftest.err
1710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1711 test $ac_status = 0; } && {
1712 test -z "$ac_c_werror_flag" ||
1713 test ! -s conftest.err
1714 } && test -s conftest.$ac_objext; then :
1715 ac_retval=0
1716 else
1717 $as_echo "$as_me: failed program was:" >&5
1718 sed 's/^/| /' conftest.$ac_ext >&5
1720 ac_retval=1
1722 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1723 as_fn_set_status $ac_retval
1725 } # ac_fn_c_try_compile
1727 # ac_fn_c_try_cpp LINENO
1728 # ----------------------
1729 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1730 ac_fn_c_try_cpp ()
1732 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1733 if { { ac_try="$ac_cpp conftest.$ac_ext"
1734 case "(($ac_try" in
1735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1736 *) ac_try_echo=$ac_try;;
1737 esac
1738 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1739 $as_echo "$ac_try_echo"; } >&5
1740 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1741 ac_status=$?
1742 if test -s conftest.err; then
1743 grep -v '^ *+' conftest.err >conftest.er1
1744 cat conftest.er1 >&5
1745 mv -f conftest.er1 conftest.err
1747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1748 test $ac_status = 0; } > conftest.i && {
1749 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1750 test ! -s conftest.err
1751 }; then :
1752 ac_retval=0
1753 else
1754 $as_echo "$as_me: failed program was:" >&5
1755 sed 's/^/| /' conftest.$ac_ext >&5
1757 ac_retval=1
1759 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1760 as_fn_set_status $ac_retval
1762 } # ac_fn_c_try_cpp
1764 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1765 # -------------------------------------------------------
1766 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1767 # the include files in INCLUDES and setting the cache variable VAR
1768 # accordingly.
1769 ac_fn_c_check_header_mongrel ()
1771 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1772 if eval \${$3+:} false; then :
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1774 $as_echo_n "checking for $2... " >&6; }
1775 if eval \${$3+:} false; then :
1776 $as_echo_n "(cached) " >&6
1778 eval ac_res=\$$3
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1780 $as_echo "$ac_res" >&6; }
1781 else
1782 # Is the header compilable?
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1784 $as_echo_n "checking $2 usability... " >&6; }
1785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1786 /* end confdefs.h. */
1788 #include <$2>
1789 _ACEOF
1790 if ac_fn_c_try_compile "$LINENO"; then :
1791 ac_header_compiler=yes
1792 else
1793 ac_header_compiler=no
1795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1797 $as_echo "$ac_header_compiler" >&6; }
1799 # Is the header present?
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1801 $as_echo_n "checking $2 presence... " >&6; }
1802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1803 /* end confdefs.h. */
1804 #include <$2>
1805 _ACEOF
1806 if ac_fn_c_try_cpp "$LINENO"; then :
1807 ac_header_preproc=yes
1808 else
1809 ac_header_preproc=no
1811 rm -f conftest.err conftest.i conftest.$ac_ext
1812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1813 $as_echo "$ac_header_preproc" >&6; }
1815 # So? What about this header?
1816 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1817 yes:no: )
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1819 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1821 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1823 no:yes:* )
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1825 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1827 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1829 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1831 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1833 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1834 ( $as_echo "## -------------------------------------------------- ##
1835 ## Report this to openvpn-users@lists.sourceforge.net ##
1836 ## -------------------------------------------------- ##"
1837 ) | sed "s/^/$as_me: WARNING: /" >&2
1839 esac
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1841 $as_echo_n "checking for $2... " >&6; }
1842 if eval \${$3+:} false; then :
1843 $as_echo_n "(cached) " >&6
1844 else
1845 eval "$3=\$ac_header_compiler"
1847 eval ac_res=\$$3
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1849 $as_echo "$ac_res" >&6; }
1851 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1853 } # ac_fn_c_check_header_mongrel
1855 # ac_fn_c_try_run LINENO
1856 # ----------------------
1857 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1858 # that executables *can* be run.
1859 ac_fn_c_try_run ()
1861 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1862 if { { ac_try="$ac_link"
1863 case "(($ac_try" in
1864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1865 *) ac_try_echo=$ac_try;;
1866 esac
1867 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1868 $as_echo "$ac_try_echo"; } >&5
1869 (eval "$ac_link") 2>&5
1870 ac_status=$?
1871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1872 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1873 { { case "(($ac_try" in
1874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1875 *) ac_try_echo=$ac_try;;
1876 esac
1877 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1878 $as_echo "$ac_try_echo"; } >&5
1879 (eval "$ac_try") 2>&5
1880 ac_status=$?
1881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1882 test $ac_status = 0; }; }; then :
1883 ac_retval=0
1884 else
1885 $as_echo "$as_me: program exited with status $ac_status" >&5
1886 $as_echo "$as_me: failed program was:" >&5
1887 sed 's/^/| /' conftest.$ac_ext >&5
1889 ac_retval=$ac_status
1891 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1892 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1893 as_fn_set_status $ac_retval
1895 } # ac_fn_c_try_run
1897 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1898 # -------------------------------------------------------
1899 # Tests whether HEADER exists and can be compiled using the include files in
1900 # INCLUDES, setting the cache variable VAR accordingly.
1901 ac_fn_c_check_header_compile ()
1903 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1905 $as_echo_n "checking for $2... " >&6; }
1906 if eval \${$3+:} false; then :
1907 $as_echo_n "(cached) " >&6
1908 else
1909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1910 /* end confdefs.h. */
1912 #include <$2>
1913 _ACEOF
1914 if ac_fn_c_try_compile "$LINENO"; then :
1915 eval "$3=yes"
1916 else
1917 eval "$3=no"
1919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1921 eval ac_res=\$$3
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1923 $as_echo "$ac_res" >&6; }
1924 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1926 } # ac_fn_c_check_header_compile
1928 # ac_fn_c_try_link LINENO
1929 # -----------------------
1930 # Try to link conftest.$ac_ext, and return whether this succeeded.
1931 ac_fn_c_try_link ()
1933 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1934 rm -f conftest.$ac_objext conftest$ac_exeext
1935 if { { ac_try="$ac_link"
1936 case "(($ac_try" in
1937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1938 *) ac_try_echo=$ac_try;;
1939 esac
1940 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1941 $as_echo "$ac_try_echo"; } >&5
1942 (eval "$ac_link") 2>conftest.err
1943 ac_status=$?
1944 if test -s conftest.err; then
1945 grep -v '^ *+' conftest.err >conftest.er1
1946 cat conftest.er1 >&5
1947 mv -f conftest.er1 conftest.err
1949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1950 test $ac_status = 0; } && {
1951 test -z "$ac_c_werror_flag" ||
1952 test ! -s conftest.err
1953 } && test -s conftest$ac_exeext && {
1954 test "$cross_compiling" = yes ||
1955 test -x conftest$ac_exeext
1956 }; then :
1957 ac_retval=0
1958 else
1959 $as_echo "$as_me: failed program was:" >&5
1960 sed 's/^/| /' conftest.$ac_ext >&5
1962 ac_retval=1
1964 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1965 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1966 # interfere with the next link command; also delete a directory that is
1967 # left behind by Apple's compiler. We do this before executing the actions.
1968 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1969 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1970 as_fn_set_status $ac_retval
1972 } # ac_fn_c_try_link
1974 # ac_fn_c_check_func LINENO FUNC VAR
1975 # ----------------------------------
1976 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1977 ac_fn_c_check_func ()
1979 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1981 $as_echo_n "checking for $2... " >&6; }
1982 if eval \${$3+:} false; then :
1983 $as_echo_n "(cached) " >&6
1984 else
1985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1986 /* end confdefs.h. */
1987 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1988 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1989 #define $2 innocuous_$2
1991 /* System header to define __stub macros and hopefully few prototypes,
1992 which can conflict with char $2 (); below.
1993 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1994 <limits.h> exists even on freestanding compilers. */
1996 #ifdef __STDC__
1997 # include <limits.h>
1998 #else
1999 # include <assert.h>
2000 #endif
2002 #undef $2
2004 /* Override any GCC internal prototype to avoid an error.
2005 Use char because int might match the return type of a GCC
2006 builtin and then its argument prototype would still apply. */
2007 #ifdef __cplusplus
2008 extern "C"
2009 #endif
2010 char $2 ();
2011 /* The GNU C library defines this for functions which it implements
2012 to always fail with ENOSYS. Some functions are actually named
2013 something starting with __ and the normal name is an alias. */
2014 #if defined __stub_$2 || defined __stub___$2
2015 choke me
2016 #endif
2019 main ()
2021 return $2 ();
2023 return 0;
2025 _ACEOF
2026 if ac_fn_c_try_link "$LINENO"; then :
2027 eval "$3=yes"
2028 else
2029 eval "$3=no"
2031 rm -f core conftest.err conftest.$ac_objext \
2032 conftest$ac_exeext conftest.$ac_ext
2034 eval ac_res=\$$3
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2036 $as_echo "$ac_res" >&6; }
2037 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2039 } # ac_fn_c_check_func
2041 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2042 # -------------------------------------------
2043 # Tests whether TYPE exists after having included INCLUDES, setting cache
2044 # variable VAR accordingly.
2045 ac_fn_c_check_type ()
2047 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2049 $as_echo_n "checking for $2... " >&6; }
2050 if eval \${$3+:} false; then :
2051 $as_echo_n "(cached) " >&6
2052 else
2053 eval "$3=no"
2054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2055 /* end confdefs.h. */
2058 main ()
2060 if (sizeof ($2))
2061 return 0;
2063 return 0;
2065 _ACEOF
2066 if ac_fn_c_try_compile "$LINENO"; then :
2067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2068 /* end confdefs.h. */
2071 main ()
2073 if (sizeof (($2)))
2074 return 0;
2076 return 0;
2078 _ACEOF
2079 if ac_fn_c_try_compile "$LINENO"; then :
2081 else
2082 eval "$3=yes"
2084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2088 eval ac_res=\$$3
2089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2090 $as_echo "$ac_res" >&6; }
2091 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2093 } # ac_fn_c_check_type
2095 # ac_fn_c_find_intX_t LINENO BITS VAR
2096 # -----------------------------------
2097 # Finds a signed integer type with width BITS, setting cache variable VAR
2098 # accordingly.
2099 ac_fn_c_find_intX_t ()
2101 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2103 $as_echo_n "checking for int$2_t... " >&6; }
2104 if eval \${$3+:} false; then :
2105 $as_echo_n "(cached) " >&6
2106 else
2107 eval "$3=no"
2108 # Order is important - never check a type that is potentially smaller
2109 # than half of the expected target width.
2110 for ac_type in int$2_t 'int' 'long int' \
2111 'long long int' 'short int' 'signed char'; do
2112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2113 /* end confdefs.h. */
2114 $ac_includes_default
2115 enum { N = $2 / 2 - 1 };
2117 main ()
2119 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2120 test_array [0] = 0;
2121 return test_array [0];
2124 return 0;
2126 _ACEOF
2127 if ac_fn_c_try_compile "$LINENO"; then :
2128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2129 /* end confdefs.h. */
2130 $ac_includes_default
2131 enum { N = $2 / 2 - 1 };
2133 main ()
2135 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2136 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2137 test_array [0] = 0;
2138 return test_array [0];
2141 return 0;
2143 _ACEOF
2144 if ac_fn_c_try_compile "$LINENO"; then :
2146 else
2147 case $ac_type in #(
2148 int$2_t) :
2149 eval "$3=yes" ;; #(
2150 *) :
2151 eval "$3=\$ac_type" ;;
2152 esac
2154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2157 if eval test \"x\$"$3"\" = x"no"; then :
2159 else
2160 break
2162 done
2164 eval ac_res=\$$3
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2166 $as_echo "$ac_res" >&6; }
2167 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2169 } # ac_fn_c_find_intX_t
2171 # ac_fn_c_find_uintX_t LINENO BITS VAR
2172 # ------------------------------------
2173 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2174 # accordingly.
2175 ac_fn_c_find_uintX_t ()
2177 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2179 $as_echo_n "checking for uint$2_t... " >&6; }
2180 if eval \${$3+:} false; then :
2181 $as_echo_n "(cached) " >&6
2182 else
2183 eval "$3=no"
2184 # Order is important - never check a type that is potentially smaller
2185 # than half of the expected target width.
2186 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2187 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2189 /* end confdefs.h. */
2190 $ac_includes_default
2192 main ()
2194 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2195 test_array [0] = 0;
2196 return test_array [0];
2199 return 0;
2201 _ACEOF
2202 if ac_fn_c_try_compile "$LINENO"; then :
2203 case $ac_type in #(
2204 uint$2_t) :
2205 eval "$3=yes" ;; #(
2206 *) :
2207 eval "$3=\$ac_type" ;;
2208 esac
2210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2211 if eval test \"x\$"$3"\" = x"no"; then :
2213 else
2214 break
2216 done
2218 eval ac_res=\$$3
2219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2220 $as_echo "$ac_res" >&6; }
2221 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2223 } # ac_fn_c_find_uintX_t
2225 # ac_fn_c_compute_int LINENO EXPR ax_cv_socklen_t_equiv INCLUDES
2226 # --------------------------------------------------------------
2227 # Tries to find the compile-time value of EXPR in a program that includes
2228 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2229 # computed
2230 ac_fn_c_compute_int ()
2232 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2233 if test "$cross_compiling" = yes; then
2234 # Depending upon the size, compute the lo and hi bounds.
2235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2236 /* end confdefs.h. */
2239 main ()
2241 static int test_array [1 - 2 * !(($2) >= 0)];
2242 test_array [0] = 0;
2243 return test_array [0];
2246 return 0;
2248 _ACEOF
2249 if ac_fn_c_try_compile "$LINENO"; then :
2250 ac_lo=0 ac_mid=0
2251 while :; do
2252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2253 /* end confdefs.h. */
2256 main ()
2258 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2259 test_array [0] = 0;
2260 return test_array [0];
2263 return 0;
2265 _ACEOF
2266 if ac_fn_c_try_compile "$LINENO"; then :
2267 ac_hi=$ac_mid; break
2268 else
2269 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2270 if test $ac_lo -le $ac_mid; then
2271 ac_lo= ac_hi=
2272 break
2274 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2277 done
2278 else
2279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2280 /* end confdefs.h. */
2283 main ()
2285 static int test_array [1 - 2 * !(($2) < 0)];
2286 test_array [0] = 0;
2287 return test_array [0];
2290 return 0;
2292 _ACEOF
2293 if ac_fn_c_try_compile "$LINENO"; then :
2294 ac_hi=-1 ac_mid=-1
2295 while :; do
2296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2297 /* end confdefs.h. */
2300 main ()
2302 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2303 test_array [0] = 0;
2304 return test_array [0];
2307 return 0;
2309 _ACEOF
2310 if ac_fn_c_try_compile "$LINENO"; then :
2311 ac_lo=$ac_mid; break
2312 else
2313 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2314 if test $ac_mid -le $ac_hi; then
2315 ac_lo= ac_hi=
2316 break
2318 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2321 done
2322 else
2323 ac_lo= ac_hi=
2325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2328 # Binary search between lo and hi bounds.
2329 while test "x$ac_lo" != "x$ac_hi"; do
2330 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2332 /* end confdefs.h. */
2335 main ()
2337 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2338 test_array [0] = 0;
2339 return test_array [0];
2342 return 0;
2344 _ACEOF
2345 if ac_fn_c_try_compile "$LINENO"; then :
2346 ac_hi=$ac_mid
2347 else
2348 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2351 done
2352 case $ac_lo in #((
2353 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2354 '') ac_retval=1 ;;
2355 esac
2356 else
2357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2358 /* end confdefs.h. */
2360 static long int longval () { return $2; }
2361 static unsigned long int ulongval () { return $2; }
2362 #include <stdio.h>
2363 #include <stdlib.h>
2365 main ()
2368 FILE *f = fopen ("conftest.val", "w");
2369 if (! f)
2370 return 1;
2371 if (($2) < 0)
2373 long int i = longval ();
2374 if (i != ($2))
2375 return 1;
2376 fprintf (f, "%ld", i);
2378 else
2380 unsigned long int i = ulongval ();
2381 if (i != ($2))
2382 return 1;
2383 fprintf (f, "%lu", i);
2385 /* Do not output a trailing newline, as this causes \r\n confusion
2386 on some platforms. */
2387 return ferror (f) || fclose (f) != 0;
2390 return 0;
2392 _ACEOF
2393 if ac_fn_c_try_run "$LINENO"; then :
2394 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2395 else
2396 ac_retval=1
2398 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2399 conftest.$ac_objext conftest.beam conftest.$ac_ext
2400 rm -f conftest.val
2403 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2404 as_fn_set_status $ac_retval
2406 } # ac_fn_c_compute_int
2408 # ac_fn_c_check_decl LINENO SYMBOL ax_cv_socklen_t_equiv INCLUDES
2409 # ---------------------------------------------------------------
2410 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2411 # accordingly.
2412 ac_fn_c_check_decl ()
2414 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2415 as_decl_name=`echo $2|sed 's/ *(.*//'`
2416 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2418 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2419 if eval \${$3+:} false; then :
2420 $as_echo_n "(cached) " >&6
2421 else
2422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2423 /* end confdefs.h. */
2426 main ()
2428 #ifndef $as_decl_name
2429 #ifdef __cplusplus
2430 (void) $as_decl_use;
2431 #else
2432 (void) $as_decl_name;
2433 #endif
2434 #endif
2437 return 0;
2439 _ACEOF
2440 if ac_fn_c_try_compile "$LINENO"; then :
2441 eval "$3=yes"
2442 else
2443 eval "$3=no"
2445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2447 eval ac_res=\$$3
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2449 $as_echo "$ac_res" >&6; }
2450 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2452 } # ac_fn_c_check_decl
2453 cat >config.log <<_ACEOF
2454 This file contains any messages produced by compilers while
2455 running configure, to aid debugging if configure makes a mistake.
2457 It was created by OpenVPN $as_me 2.3.2, which was
2458 generated by GNU Autoconf 2.69. Invocation command line was
2460 $ $0 $@
2462 _ACEOF
2463 exec 5>>config.log
2465 cat <<_ASUNAME
2466 ## --------- ##
2467 ## Platform. ##
2468 ## --------- ##
2470 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2471 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2472 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2473 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2474 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2476 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2477 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2479 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2480 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2481 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2482 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2483 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2484 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2485 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2487 _ASUNAME
2489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2490 for as_dir in $PATH
2492 IFS=$as_save_IFS
2493 test -z "$as_dir" && as_dir=.
2494 $as_echo "PATH: $as_dir"
2495 done
2496 IFS=$as_save_IFS
2498 } >&5
2500 cat >&5 <<_ACEOF
2503 ## ----------- ##
2504 ## Core tests. ##
2505 ## ----------- ##
2507 _ACEOF
2510 # Keep a trace of the command line.
2511 # Strip out --no-create and --no-recursion so they do not pile up.
2512 # Strip out --silent because we don't want to record it for future runs.
2513 # Also quote any args containing shell meta-characters.
2514 # Make two passes to allow for proper duplicate-argument suppression.
2515 ac_configure_args=
2516 ac_configure_args0=
2517 ac_configure_args1=
2518 ac_must_keep_next=false
2519 for ac_pass in 1 2
2521 for ac_arg
2523 case $ac_arg in
2524 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2525 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2526 | -silent | --silent | --silen | --sile | --sil)
2527 continue ;;
2528 *\'*)
2529 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2530 esac
2531 case $ac_pass in
2532 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2534 as_fn_append ac_configure_args1 " '$ac_arg'"
2535 if test $ac_must_keep_next = true; then
2536 ac_must_keep_next=false # Got value, back to normal.
2537 else
2538 case $ac_arg in
2539 *=* | --config-cache | -C | -disable-* | --disable-* \
2540 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2541 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2542 | -with-* | --with-* | -without-* | --without-* | --x)
2543 case "$ac_configure_args0 " in
2544 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2545 esac
2547 -* ) ac_must_keep_next=true ;;
2548 esac
2550 as_fn_append ac_configure_args " '$ac_arg'"
2552 esac
2553 done
2554 done
2555 { ac_configure_args0=; unset ac_configure_args0;}
2556 { ac_configure_args1=; unset ac_configure_args1;}
2558 # When interrupted or exit'd, cleanup temporary files, and complete
2559 # config.log. We remove comments because anyway the quotes in there
2560 # would cause problems or look ugly.
2561 # WARNING: Use '\'' to represent an apostrophe within the trap.
2562 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2563 trap 'exit_status=$?
2564 # Save into config.log some information that might help in debugging.
2566 echo
2568 $as_echo "## ---------------- ##
2569 ## Cache variables. ##
2570 ## ---------------- ##"
2571 echo
2572 # The following way of writing the cache mishandles newlines in values,
2574 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2575 eval ac_val=\$$ac_var
2576 case $ac_val in #(
2577 *${as_nl}*)
2578 case $ac_var in #(
2579 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2580 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2581 esac
2582 case $ac_var in #(
2583 _ | IFS | as_nl) ;; #(
2584 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2585 *) { eval $ac_var=; unset $ac_var;} ;;
2586 esac ;;
2587 esac
2588 done
2589 (set) 2>&1 |
2590 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2591 *${as_nl}ac_space=\ *)
2592 sed -n \
2593 "s/'\''/'\''\\\\'\'''\''/g;
2594 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2595 ;; #(
2597 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2599 esac |
2600 sort
2602 echo
2604 $as_echo "## ----------------- ##
2605 ## Output variables. ##
2606 ## ----------------- ##"
2607 echo
2608 for ac_var in $ac_subst_vars
2610 eval ac_val=\$$ac_var
2611 case $ac_val in
2612 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2613 esac
2614 $as_echo "$ac_var='\''$ac_val'\''"
2615 done | sort
2616 echo
2618 if test -n "$ac_subst_files"; then
2619 $as_echo "## ------------------- ##
2620 ## File substitutions. ##
2621 ## ------------------- ##"
2622 echo
2623 for ac_var in $ac_subst_files
2625 eval ac_val=\$$ac_var
2626 case $ac_val in
2627 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2628 esac
2629 $as_echo "$ac_var='\''$ac_val'\''"
2630 done | sort
2631 echo
2634 if test -s confdefs.h; then
2635 $as_echo "## ----------- ##
2636 ## confdefs.h. ##
2637 ## ----------- ##"
2638 echo
2639 cat confdefs.h
2640 echo
2642 test "$ac_signal" != 0 &&
2643 $as_echo "$as_me: caught signal $ac_signal"
2644 $as_echo "$as_me: exit $exit_status"
2645 } >&5
2646 rm -f core *.core core.conftest.* &&
2647 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2648 exit $exit_status
2650 for ac_signal in 1 2 13 15; do
2651 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2652 done
2653 ac_signal=0
2655 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2656 rm -f -r conftest* confdefs.h
2658 $as_echo "/* confdefs.h */" > confdefs.h
2660 # Predefined preprocessor variables.
2662 cat >>confdefs.h <<_ACEOF
2663 #define PACKAGE_NAME "$PACKAGE_NAME"
2664 _ACEOF
2666 cat >>confdefs.h <<_ACEOF
2667 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2668 _ACEOF
2670 cat >>confdefs.h <<_ACEOF
2671 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2672 _ACEOF
2674 cat >>confdefs.h <<_ACEOF
2675 #define PACKAGE_STRING "$PACKAGE_STRING"
2676 _ACEOF
2678 cat >>confdefs.h <<_ACEOF
2679 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2680 _ACEOF
2682 cat >>confdefs.h <<_ACEOF
2683 #define PACKAGE_URL "$PACKAGE_URL"
2684 _ACEOF
2687 # Let the site file select an alternate cache file if it wants to.
2688 # Prefer an explicitly selected file to automatically selected ones.
2689 ac_site_file1=NONE
2690 ac_site_file2=NONE
2691 if test -n "$CONFIG_SITE"; then
2692 # We do not want a PATH search for config.site.
2693 case $CONFIG_SITE in #((
2694 -*) ac_site_file1=./$CONFIG_SITE;;
2695 */*) ac_site_file1=$CONFIG_SITE;;
2696 *) ac_site_file1=./$CONFIG_SITE;;
2697 esac
2698 elif test "x$prefix" != xNONE; then
2699 ac_site_file1=$prefix/share/config.site
2700 ac_site_file2=$prefix/etc/config.site
2701 else
2702 ac_site_file1=$ac_default_prefix/share/config.site
2703 ac_site_file2=$ac_default_prefix/etc/config.site
2705 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2707 test "x$ac_site_file" = xNONE && continue
2708 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2710 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2711 sed 's/^/| /' "$ac_site_file" >&5
2712 . "$ac_site_file" \
2713 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2714 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2715 as_fn_error $? "failed to load site script $ac_site_file
2716 See \`config.log' for more details" "$LINENO" 5; }
2718 done
2720 if test -r "$cache_file"; then
2721 # Some versions of bash will fail to source /dev/null (special files
2722 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2723 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2725 $as_echo "$as_me: loading cache $cache_file" >&6;}
2726 case $cache_file in
2727 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2728 *) . "./$cache_file";;
2729 esac
2731 else
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2733 $as_echo "$as_me: creating cache $cache_file" >&6;}
2734 >$cache_file
2737 # Check that the precious variables saved in the cache have kept the same
2738 # value.
2739 ac_cache_corrupted=false
2740 for ac_var in $ac_precious_vars; do
2741 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2742 eval ac_new_set=\$ac_env_${ac_var}_set
2743 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2744 eval ac_new_val=\$ac_env_${ac_var}_value
2745 case $ac_old_set,$ac_new_set in
2746 set,)
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2748 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2749 ac_cache_corrupted=: ;;
2750 ,set)
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2752 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2753 ac_cache_corrupted=: ;;
2754 ,);;
2756 if test "x$ac_old_val" != "x$ac_new_val"; then
2757 # differences in whitespace do not lead to failure.
2758 ac_old_val_w=`echo x $ac_old_val`
2759 ac_new_val_w=`echo x $ac_new_val`
2760 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2762 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2763 ac_cache_corrupted=:
2764 else
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2766 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2767 eval $ac_var=\$ac_old_val
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2770 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2772 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2773 fi;;
2774 esac
2775 # Pass precious variables to config.status.
2776 if test "$ac_new_set" = set; then
2777 case $ac_new_val in
2778 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2779 *) ac_arg=$ac_var=$ac_new_val ;;
2780 esac
2781 case " $ac_configure_args " in
2782 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2783 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2784 esac
2786 done
2787 if $ac_cache_corrupted; then
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2789 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2791 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2792 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2794 ## -------------------- ##
2795 ## Main body of script. ##
2796 ## -------------------- ##
2798 ac_ext=c
2799 ac_cpp='$CPP $CPPFLAGS'
2800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2811 if test -z "${docdir}"; then
2812 docdir="\$(datadir)/doc/\$(PACKAGE_NAME)"
2815 if test -z "${htmldir}"; then
2816 htmldir="\$(docdir)"
2821 $as_echo "#define OPENVPN_VERSION_RESOURCE 2,3,2,0" >>confdefs.h
2824 ac_aux_dir=
2825 for ac_dir in . "$srcdir"/.; do
2826 if test -f "$ac_dir/install-sh"; then
2827 ac_aux_dir=$ac_dir
2828 ac_install_sh="$ac_aux_dir/install-sh -c"
2829 break
2830 elif test -f "$ac_dir/install.sh"; then
2831 ac_aux_dir=$ac_dir
2832 ac_install_sh="$ac_aux_dir/install.sh -c"
2833 break
2834 elif test -f "$ac_dir/shtool"; then
2835 ac_aux_dir=$ac_dir
2836 ac_install_sh="$ac_aux_dir/shtool install -c"
2837 break
2839 done
2840 if test -z "$ac_aux_dir"; then
2841 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2844 # These three variables are undocumented and unsupported,
2845 # and are intended to be withdrawn in a future Autoconf release.
2846 # They can cause serious problems if a builder's source tree is in a directory
2847 # whose full name contains unusual characters.
2848 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2849 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2850 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2853 ac_config_headers="$ac_config_headers config.h"
2857 am__api_version='1.11'
2859 # Find a good install program. We prefer a C program (faster),
2860 # so one script is as good as another. But avoid the broken or
2861 # incompatible versions:
2862 # SysV /etc/install, /usr/sbin/install
2863 # SunOS /usr/etc/install
2864 # IRIX /sbin/install
2865 # AIX /bin/install
2866 # AmigaOS /C/install, which installs bootblocks on floppy discs
2867 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2868 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2869 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2870 # OS/2's system install, which has a completely different semantic
2871 # ./install, which can be erroneously created by make from ./install.sh.
2872 # Reject install programs that cannot install multiple files.
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2874 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2875 if test -z "$INSTALL"; then
2876 if ${ac_cv_path_install+:} false; then :
2877 $as_echo_n "(cached) " >&6
2878 else
2879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2880 for as_dir in $PATH
2882 IFS=$as_save_IFS
2883 test -z "$as_dir" && as_dir=.
2884 # Account for people who put trailing slashes in PATH elements.
2885 case $as_dir/ in #((
2886 ./ | .// | /[cC]/* | \
2887 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2888 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2889 /usr/ucb/* ) ;;
2891 # OSF1 and SCO ODT 3.0 have their own names for install.
2892 # Don't use installbsd from OSF since it installs stuff as root
2893 # by default.
2894 for ac_prog in ginstall scoinst install; do
2895 for ac_exec_ext in '' $ac_executable_extensions; do
2896 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2897 if test $ac_prog = install &&
2898 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2899 # AIX install. It has an incompatible calling convention.
2901 elif test $ac_prog = install &&
2902 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2903 # program-specific install script used by HP pwplus--don't use.
2905 else
2906 rm -rf conftest.one conftest.two conftest.dir
2907 echo one > conftest.one
2908 echo two > conftest.two
2909 mkdir conftest.dir
2910 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2911 test -s conftest.one && test -s conftest.two &&
2912 test -s conftest.dir/conftest.one &&
2913 test -s conftest.dir/conftest.two
2914 then
2915 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2916 break 3
2920 done
2921 done
2923 esac
2925 done
2926 IFS=$as_save_IFS
2928 rm -rf conftest.one conftest.two conftest.dir
2931 if test "${ac_cv_path_install+set}" = set; then
2932 INSTALL=$ac_cv_path_install
2933 else
2934 # As a last resort, use the slow shell script. Don't cache a
2935 # value for INSTALL within a source directory, because that will
2936 # break other packages using the cache if that directory is
2937 # removed, or if the value is a relative name.
2938 INSTALL=$ac_install_sh
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2942 $as_echo "$INSTALL" >&6; }
2944 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2945 # It thinks the first close brace ends the variable substitution.
2946 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2948 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2950 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2953 $as_echo_n "checking whether build environment is sane... " >&6; }
2954 # Just in case
2955 sleep 1
2956 echo timestamp > conftest.file
2957 # Reject unsafe characters in $srcdir or the absolute working directory
2958 # name. Accept space and tab only in the latter.
2959 am_lf='
2961 case `pwd` in
2962 *[\\\"\#\$\&\'\`$am_lf]*)
2963 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2964 esac
2965 case $srcdir in
2966 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2967 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2968 esac
2970 # Do `set' in a subshell so we don't clobber the current shell's
2971 # arguments. Must try -L first in case configure is actually a
2972 # symlink; some systems play weird games with the mod time of symlinks
2973 # (eg FreeBSD returns the mod time of the symlink's containing
2974 # directory).
2975 if (
2976 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2977 if test "$*" = "X"; then
2978 # -L didn't work.
2979 set X `ls -t "$srcdir/configure" conftest.file`
2981 rm -f conftest.file
2982 if test "$*" != "X $srcdir/configure conftest.file" \
2983 && test "$*" != "X conftest.file $srcdir/configure"; then
2985 # If neither matched, then we have a broken ls. This can happen
2986 # if, for instance, CONFIG_SHELL is bash and it inherits a
2987 # broken ls alias from the environment. This has actually
2988 # happened. Such a system could not be considered "sane".
2989 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2990 alias in your environment" "$LINENO" 5
2993 test "$2" = conftest.file
2995 then
2996 # Ok.
2998 else
2999 as_fn_error $? "newly created file is older than distributed files!
3000 Check your system clock" "$LINENO" 5
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3003 $as_echo "yes" >&6; }
3004 test "$program_prefix" != NONE &&
3005 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3006 # Use a double $ so make ignores it.
3007 test "$program_suffix" != NONE &&
3008 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3009 # Double any \ or $.
3010 # By default was `s,x,x', remove it if useless.
3011 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3012 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3014 # expand $ac_aux_dir to an absolute path
3015 am_aux_dir=`cd $ac_aux_dir && pwd`
3017 if test x"${MISSING+set}" != xset; then
3018 case $am_aux_dir in
3019 *\ * | *\ *)
3020 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3022 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3023 esac
3025 # Use eval to expand $SHELL
3026 if eval "$MISSING --run true"; then
3027 am_missing_run="$MISSING --run "
3028 else
3029 am_missing_run=
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3031 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3034 if test x"${install_sh}" != xset; then
3035 case $am_aux_dir in
3036 *\ * | *\ *)
3037 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3039 install_sh="\${SHELL} $am_aux_dir/install-sh"
3040 esac
3043 # Installed binaries are usually stripped using `strip' when the user
3044 # run `make install-strip'. However `strip' might not be the right
3045 # tool to use in cross-compilation environments, therefore Automake
3046 # will honor the `STRIP' environment variable to overrule this program.
3047 if test "$cross_compiling" != no; then
3048 if test -n "$ac_tool_prefix"; then
3049 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3050 set dummy ${ac_tool_prefix}strip; ac_word=$2
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3052 $as_echo_n "checking for $ac_word... " >&6; }
3053 if ${ac_cv_prog_STRIP+:} false; then :
3054 $as_echo_n "(cached) " >&6
3055 else
3056 if test -n "$STRIP"; then
3057 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3058 else
3059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3060 for as_dir in $PATH
3062 IFS=$as_save_IFS
3063 test -z "$as_dir" && as_dir=.
3064 for ac_exec_ext in '' $ac_executable_extensions; do
3065 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3066 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3068 break 2
3070 done
3071 done
3072 IFS=$as_save_IFS
3076 STRIP=$ac_cv_prog_STRIP
3077 if test -n "$STRIP"; then
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3079 $as_echo "$STRIP" >&6; }
3080 else
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3082 $as_echo "no" >&6; }
3087 if test -z "$ac_cv_prog_STRIP"; then
3088 ac_ct_STRIP=$STRIP
3089 # Extract the first word of "strip", so it can be a program name with args.
3090 set dummy strip; ac_word=$2
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3092 $as_echo_n "checking for $ac_word... " >&6; }
3093 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3094 $as_echo_n "(cached) " >&6
3095 else
3096 if test -n "$ac_ct_STRIP"; then
3097 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3098 else
3099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3100 for as_dir in $PATH
3102 IFS=$as_save_IFS
3103 test -z "$as_dir" && as_dir=.
3104 for ac_exec_ext in '' $ac_executable_extensions; do
3105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3106 ac_cv_prog_ac_ct_STRIP="strip"
3107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3108 break 2
3110 done
3111 done
3112 IFS=$as_save_IFS
3116 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3117 if test -n "$ac_ct_STRIP"; then
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3119 $as_echo "$ac_ct_STRIP" >&6; }
3120 else
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3122 $as_echo "no" >&6; }
3125 if test "x$ac_ct_STRIP" = x; then
3126 STRIP=":"
3127 else
3128 case $cross_compiling:$ac_tool_warned in
3129 yes:)
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3131 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3132 ac_tool_warned=yes ;;
3133 esac
3134 STRIP=$ac_ct_STRIP
3136 else
3137 STRIP="$ac_cv_prog_STRIP"
3141 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3144 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3145 if test -z "$MKDIR_P"; then
3146 if ${ac_cv_path_mkdir+:} false; then :
3147 $as_echo_n "(cached) " >&6
3148 else
3149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3150 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3152 IFS=$as_save_IFS
3153 test -z "$as_dir" && as_dir=.
3154 for ac_prog in mkdir gmkdir; do
3155 for ac_exec_ext in '' $ac_executable_extensions; do
3156 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3157 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3158 'mkdir (GNU coreutils) '* | \
3159 'mkdir (coreutils) '* | \
3160 'mkdir (fileutils) '4.1*)
3161 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3162 break 3;;
3163 esac
3164 done
3165 done
3166 done
3167 IFS=$as_save_IFS
3171 test -d ./--version && rmdir ./--version
3172 if test "${ac_cv_path_mkdir+set}" = set; then
3173 MKDIR_P="$ac_cv_path_mkdir -p"
3174 else
3175 # As a last resort, use the slow shell script. Don't cache a
3176 # value for MKDIR_P within a source directory, because that will
3177 # break other packages using the cache if that directory is
3178 # removed, or if the value is a relative name.
3179 MKDIR_P="$ac_install_sh -d"
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3183 $as_echo "$MKDIR_P" >&6; }
3185 mkdir_p="$MKDIR_P"
3186 case $mkdir_p in
3187 [\\/$]* | ?:[\\/]*) ;;
3188 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3189 esac
3191 for ac_prog in gawk mawk nawk awk
3193 # Extract the first word of "$ac_prog", so it can be a program name with args.
3194 set dummy $ac_prog; ac_word=$2
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3196 $as_echo_n "checking for $ac_word... " >&6; }
3197 if ${ac_cv_prog_AWK+:} false; then :
3198 $as_echo_n "(cached) " >&6
3199 else
3200 if test -n "$AWK"; then
3201 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3202 else
3203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3204 for as_dir in $PATH
3206 IFS=$as_save_IFS
3207 test -z "$as_dir" && as_dir=.
3208 for ac_exec_ext in '' $ac_executable_extensions; do
3209 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3210 ac_cv_prog_AWK="$ac_prog"
3211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3212 break 2
3214 done
3215 done
3216 IFS=$as_save_IFS
3220 AWK=$ac_cv_prog_AWK
3221 if test -n "$AWK"; then
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3223 $as_echo "$AWK" >&6; }
3224 else
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3226 $as_echo "no" >&6; }
3230 test -n "$AWK" && break
3231 done
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3234 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3235 set x ${MAKE-make}
3236 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3237 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3238 $as_echo_n "(cached) " >&6
3239 else
3240 cat >conftest.make <<\_ACEOF
3241 SHELL = /bin/sh
3242 all:
3243 @echo '@@@%%%=$(MAKE)=@@@%%%'
3244 _ACEOF
3245 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3246 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3247 *@@@%%%=?*=@@@%%%*)
3248 eval ac_cv_prog_make_${ac_make}_set=yes;;
3250 eval ac_cv_prog_make_${ac_make}_set=no;;
3251 esac
3252 rm -f conftest.make
3254 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3256 $as_echo "yes" >&6; }
3257 SET_MAKE=
3258 else
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3260 $as_echo "no" >&6; }
3261 SET_MAKE="MAKE=${MAKE-make}"
3264 rm -rf .tst 2>/dev/null
3265 mkdir .tst 2>/dev/null
3266 if test -d .tst; then
3267 am__leading_dot=.
3268 else
3269 am__leading_dot=_
3271 rmdir .tst 2>/dev/null
3273 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3274 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3275 # is not polluted with repeated "-I."
3276 am__isrc=' -I$(srcdir)'
3277 # test to see if srcdir already configured
3278 if test -f $srcdir/config.status; then
3279 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3283 # test whether we have cygpath
3284 if test -z "$CYGPATH_W"; then
3285 if (cygpath --version) >/dev/null 2>/dev/null; then
3286 CYGPATH_W='cygpath -w'
3287 else
3288 CYGPATH_W=echo
3293 # Define the identity of the package.
3294 PACKAGE='openvpn'
3295 VERSION='2.3.2'
3298 cat >>confdefs.h <<_ACEOF
3299 #define PACKAGE "$PACKAGE"
3300 _ACEOF
3303 cat >>confdefs.h <<_ACEOF
3304 #define VERSION "$VERSION"
3305 _ACEOF
3307 # Some tools Automake needs.
3309 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3312 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3315 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3318 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3321 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3323 # We need awk for the "check" target. The system "awk" is bad on
3324 # some platforms.
3325 # Always define AMTAR for backward compatibility. Yes, it's still used
3326 # in the wild :-( We should find a proper way to deprecate it ...
3327 AMTAR='$${TAR-tar}'
3329 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3335 # Make sure we can run config.sub.
3336 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3337 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3340 $as_echo_n "checking build system type... " >&6; }
3341 if ${ac_cv_build+:} false; then :
3342 $as_echo_n "(cached) " >&6
3343 else
3344 ac_build_alias=$build_alias
3345 test "x$ac_build_alias" = x &&
3346 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3347 test "x$ac_build_alias" = x &&
3348 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3349 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3350 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3354 $as_echo "$ac_cv_build" >&6; }
3355 case $ac_cv_build in
3356 *-*-*) ;;
3357 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3358 esac
3359 build=$ac_cv_build
3360 ac_save_IFS=$IFS; IFS='-'
3361 set x $ac_cv_build
3362 shift
3363 build_cpu=$1
3364 build_vendor=$2
3365 shift; shift
3366 # Remember, the first character of IFS is used to create $*,
3367 # except with old shells:
3368 build_os=$*
3369 IFS=$ac_save_IFS
3370 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3374 $as_echo_n "checking host system type... " >&6; }
3375 if ${ac_cv_host+:} false; then :
3376 $as_echo_n "(cached) " >&6
3377 else
3378 if test "x$host_alias" = x; then
3379 ac_cv_host=$ac_cv_build
3380 else
3381 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3382 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3387 $as_echo "$ac_cv_host" >&6; }
3388 case $ac_cv_host in
3389 *-*-*) ;;
3390 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3391 esac
3392 host=$ac_cv_host
3393 ac_save_IFS=$IFS; IFS='-'
3394 set x $ac_cv_host
3395 shift
3396 host_cpu=$1
3397 host_vendor=$2
3398 shift; shift
3399 # Remember, the first character of IFS is used to create $*,
3400 # except with old shells:
3401 host_os=$*
3402 IFS=$ac_save_IFS
3403 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3406 DEPDIR="${am__leading_dot}deps"
3408 ac_config_commands="$ac_config_commands depfiles"
3411 am_make=${MAKE-make}
3412 cat > confinc << 'END'
3413 am__doit:
3414 @echo this is the am__doit target
3415 .PHONY: am__doit
3417 # If we don't find an include directive, just comment out the code.
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3419 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3420 am__include="#"
3421 am__quote=
3422 _am_result=none
3423 # First try GNU make style include.
3424 echo "include confinc" > confmf
3425 # Ignore all kinds of additional output from `make'.
3426 case `$am_make -s -f confmf 2> /dev/null` in #(
3427 *the\ am__doit\ target*)
3428 am__include=include
3429 am__quote=
3430 _am_result=GNU
3432 esac
3433 # Now try BSD make style include.
3434 if test "$am__include" = "#"; then
3435 echo '.include "confinc"' > confmf
3436 case `$am_make -s -f confmf 2> /dev/null` in #(
3437 *the\ am__doit\ target*)
3438 am__include=.include
3439 am__quote="\""
3440 _am_result=BSD
3442 esac
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3447 $as_echo "$_am_result" >&6; }
3448 rm -f confinc confmf
3450 # Check whether --enable-dependency-tracking was given.
3451 if test "${enable_dependency_tracking+set}" = set; then :
3452 enableval=$enable_dependency_tracking;
3455 if test "x$enable_dependency_tracking" != xno; then
3456 am_depcomp="$ac_aux_dir/depcomp"
3457 AMDEPBACKSLASH='\'
3458 am__nodep='_no'
3460 if test "x$enable_dependency_tracking" != xno; then
3461 AMDEP_TRUE=
3462 AMDEP_FALSE='#'
3463 else
3464 AMDEP_TRUE='#'
3465 AMDEP_FALSE=
3469 ac_ext=c
3470 ac_cpp='$CPP $CPPFLAGS'
3471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3474 if test -n "$ac_tool_prefix"; then
3475 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3476 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3478 $as_echo_n "checking for $ac_word... " >&6; }
3479 if ${ac_cv_prog_CC+:} false; then :
3480 $as_echo_n "(cached) " >&6
3481 else
3482 if test -n "$CC"; then
3483 ac_cv_prog_CC="$CC" # Let the user override the test.
3484 else
3485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3486 for as_dir in $PATH
3488 IFS=$as_save_IFS
3489 test -z "$as_dir" && as_dir=.
3490 for ac_exec_ext in '' $ac_executable_extensions; do
3491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3492 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3494 break 2
3496 done
3497 done
3498 IFS=$as_save_IFS
3502 CC=$ac_cv_prog_CC
3503 if test -n "$CC"; then
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3505 $as_echo "$CC" >&6; }
3506 else
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3508 $as_echo "no" >&6; }
3513 if test -z "$ac_cv_prog_CC"; then
3514 ac_ct_CC=$CC
3515 # Extract the first word of "gcc", so it can be a program name with args.
3516 set dummy gcc; ac_word=$2
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3518 $as_echo_n "checking for $ac_word... " >&6; }
3519 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3520 $as_echo_n "(cached) " >&6
3521 else
3522 if test -n "$ac_ct_CC"; then
3523 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3524 else
3525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3526 for as_dir in $PATH
3528 IFS=$as_save_IFS
3529 test -z "$as_dir" && as_dir=.
3530 for ac_exec_ext in '' $ac_executable_extensions; do
3531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3532 ac_cv_prog_ac_ct_CC="gcc"
3533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3534 break 2
3536 done
3537 done
3538 IFS=$as_save_IFS
3542 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3543 if test -n "$ac_ct_CC"; then
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3545 $as_echo "$ac_ct_CC" >&6; }
3546 else
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3548 $as_echo "no" >&6; }
3551 if test "x$ac_ct_CC" = x; then
3552 CC=""
3553 else
3554 case $cross_compiling:$ac_tool_warned in
3555 yes:)
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3557 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3558 ac_tool_warned=yes ;;
3559 esac
3560 CC=$ac_ct_CC
3562 else
3563 CC="$ac_cv_prog_CC"
3566 if test -z "$CC"; then
3567 if test -n "$ac_tool_prefix"; then
3568 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3569 set dummy ${ac_tool_prefix}cc; ac_word=$2
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3571 $as_echo_n "checking for $ac_word... " >&6; }
3572 if ${ac_cv_prog_CC+:} false; then :
3573 $as_echo_n "(cached) " >&6
3574 else
3575 if test -n "$CC"; then
3576 ac_cv_prog_CC="$CC" # Let the user override the test.
3577 else
3578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3579 for as_dir in $PATH
3581 IFS=$as_save_IFS
3582 test -z "$as_dir" && as_dir=.
3583 for ac_exec_ext in '' $ac_executable_extensions; do
3584 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3585 ac_cv_prog_CC="${ac_tool_prefix}cc"
3586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3587 break 2
3589 done
3590 done
3591 IFS=$as_save_IFS
3595 CC=$ac_cv_prog_CC
3596 if test -n "$CC"; then
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3598 $as_echo "$CC" >&6; }
3599 else
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3601 $as_echo "no" >&6; }
3607 if test -z "$CC"; then
3608 # Extract the first word of "cc", so it can be a program name with args.
3609 set dummy cc; ac_word=$2
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3611 $as_echo_n "checking for $ac_word... " >&6; }
3612 if ${ac_cv_prog_CC+:} false; then :
3613 $as_echo_n "(cached) " >&6
3614 else
3615 if test -n "$CC"; then
3616 ac_cv_prog_CC="$CC" # Let the user override the test.
3617 else
3618 ac_prog_rejected=no
3619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3620 for as_dir in $PATH
3622 IFS=$as_save_IFS
3623 test -z "$as_dir" && as_dir=.
3624 for ac_exec_ext in '' $ac_executable_extensions; do
3625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3626 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3627 ac_prog_rejected=yes
3628 continue
3630 ac_cv_prog_CC="cc"
3631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3632 break 2
3634 done
3635 done
3636 IFS=$as_save_IFS
3638 if test $ac_prog_rejected = yes; then
3639 # We found a bogon in the path, so make sure we never use it.
3640 set dummy $ac_cv_prog_CC
3641 shift
3642 if test $# != 0; then
3643 # We chose a different compiler from the bogus one.
3644 # However, it has the same basename, so the bogon will be chosen
3645 # first if we set CC to just the basename; use the full file name.
3646 shift
3647 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3652 CC=$ac_cv_prog_CC
3653 if test -n "$CC"; then
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3655 $as_echo "$CC" >&6; }
3656 else
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3658 $as_echo "no" >&6; }
3663 if test -z "$CC"; then
3664 if test -n "$ac_tool_prefix"; then
3665 for ac_prog in cl.exe
3667 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3668 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3670 $as_echo_n "checking for $ac_word... " >&6; }
3671 if ${ac_cv_prog_CC+:} false; then :
3672 $as_echo_n "(cached) " >&6
3673 else
3674 if test -n "$CC"; then
3675 ac_cv_prog_CC="$CC" # Let the user override the test.
3676 else
3677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3678 for as_dir in $PATH
3680 IFS=$as_save_IFS
3681 test -z "$as_dir" && as_dir=.
3682 for ac_exec_ext in '' $ac_executable_extensions; do
3683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3684 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3686 break 2
3688 done
3689 done
3690 IFS=$as_save_IFS
3694 CC=$ac_cv_prog_CC
3695 if test -n "$CC"; then
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3697 $as_echo "$CC" >&6; }
3698 else
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3700 $as_echo "no" >&6; }
3704 test -n "$CC" && break
3705 done
3707 if test -z "$CC"; then
3708 ac_ct_CC=$CC
3709 for ac_prog in cl.exe
3711 # Extract the first word of "$ac_prog", so it can be a program name with args.
3712 set dummy $ac_prog; ac_word=$2
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3714 $as_echo_n "checking for $ac_word... " >&6; }
3715 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3716 $as_echo_n "(cached) " >&6
3717 else
3718 if test -n "$ac_ct_CC"; then
3719 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3720 else
3721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3722 for as_dir in $PATH
3724 IFS=$as_save_IFS
3725 test -z "$as_dir" && as_dir=.
3726 for ac_exec_ext in '' $ac_executable_extensions; do
3727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3728 ac_cv_prog_ac_ct_CC="$ac_prog"
3729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3730 break 2
3732 done
3733 done
3734 IFS=$as_save_IFS
3738 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3739 if test -n "$ac_ct_CC"; then
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3741 $as_echo "$ac_ct_CC" >&6; }
3742 else
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3744 $as_echo "no" >&6; }
3748 test -n "$ac_ct_CC" && break
3749 done
3751 if test "x$ac_ct_CC" = x; then
3752 CC=""
3753 else
3754 case $cross_compiling:$ac_tool_warned in
3755 yes:)
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3757 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3758 ac_tool_warned=yes ;;
3759 esac
3760 CC=$ac_ct_CC
3767 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3768 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3769 as_fn_error $? "no acceptable C compiler found in \$PATH
3770 See \`config.log' for more details" "$LINENO" 5; }
3772 # Provide some information about the compiler.
3773 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3774 set X $ac_compile
3775 ac_compiler=$2
3776 for ac_option in --version -v -V -qversion; do
3777 { { ac_try="$ac_compiler $ac_option >&5"
3778 case "(($ac_try" in
3779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3780 *) ac_try_echo=$ac_try;;
3781 esac
3782 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3783 $as_echo "$ac_try_echo"; } >&5
3784 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3785 ac_status=$?
3786 if test -s conftest.err; then
3787 sed '10a\
3788 ... rest of stderr output deleted ...
3789 10q' conftest.err >conftest.er1
3790 cat conftest.er1 >&5
3792 rm -f conftest.er1 conftest.err
3793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3794 test $ac_status = 0; }
3795 done
3797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3798 /* end confdefs.h. */
3801 main ()
3805 return 0;
3807 _ACEOF
3808 ac_clean_files_save=$ac_clean_files
3809 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3810 # Try to create an executable without -o first, disregard a.out.
3811 # It will help us diagnose broken compilers, and finding out an intuition
3812 # of exeext.
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3814 $as_echo_n "checking whether the C compiler works... " >&6; }
3815 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3817 # The possible output files:
3818 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3820 ac_rmfiles=
3821 for ac_file in $ac_files
3823 case $ac_file in
3824 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3825 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3826 esac
3827 done
3828 rm -f $ac_rmfiles
3830 if { { ac_try="$ac_link_default"
3831 case "(($ac_try" in
3832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3833 *) ac_try_echo=$ac_try;;
3834 esac
3835 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3836 $as_echo "$ac_try_echo"; } >&5
3837 (eval "$ac_link_default") 2>&5
3838 ac_status=$?
3839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3840 test $ac_status = 0; }; then :
3841 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3842 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3843 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3844 # so that the user can short-circuit this test for compilers unknown to
3845 # Autoconf.
3846 for ac_file in $ac_files ''
3848 test -f "$ac_file" || continue
3849 case $ac_file in
3850 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3852 [ab].out )
3853 # We found the default executable, but exeext='' is most
3854 # certainly right.
3855 break;;
3856 *.* )
3857 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3858 then :; else
3859 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3861 # We set ac_cv_exeext here because the later test for it is not
3862 # safe: cross compilers may not add the suffix if given an `-o'
3863 # argument, so we may need to know it at that point already.
3864 # Even if this section looks crufty: it has the advantage of
3865 # actually working.
3866 break;;
3868 break;;
3869 esac
3870 done
3871 test "$ac_cv_exeext" = no && ac_cv_exeext=
3873 else
3874 ac_file=''
3876 if test -z "$ac_file"; then :
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3878 $as_echo "no" >&6; }
3879 $as_echo "$as_me: failed program was:" >&5
3880 sed 's/^/| /' conftest.$ac_ext >&5
3882 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3883 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3884 as_fn_error 77 "C compiler cannot create executables
3885 See \`config.log' for more details" "$LINENO" 5; }
3886 else
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3888 $as_echo "yes" >&6; }
3890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3891 $as_echo_n "checking for C compiler default output file name... " >&6; }
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3893 $as_echo "$ac_file" >&6; }
3894 ac_exeext=$ac_cv_exeext
3896 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3897 ac_clean_files=$ac_clean_files_save
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3899 $as_echo_n "checking for suffix of executables... " >&6; }
3900 if { { ac_try="$ac_link"
3901 case "(($ac_try" in
3902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3903 *) ac_try_echo=$ac_try;;
3904 esac
3905 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3906 $as_echo "$ac_try_echo"; } >&5
3907 (eval "$ac_link") 2>&5
3908 ac_status=$?
3909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3910 test $ac_status = 0; }; then :
3911 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3912 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3913 # work properly (i.e., refer to `conftest.exe'), while it won't with
3914 # `rm'.
3915 for ac_file in conftest.exe conftest conftest.*; do
3916 test -f "$ac_file" || continue
3917 case $ac_file in
3918 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3919 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3920 break;;
3921 * ) break;;
3922 esac
3923 done
3924 else
3925 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3926 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3927 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3928 See \`config.log' for more details" "$LINENO" 5; }
3930 rm -f conftest conftest$ac_cv_exeext
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3932 $as_echo "$ac_cv_exeext" >&6; }
3934 rm -f conftest.$ac_ext
3935 EXEEXT=$ac_cv_exeext
3936 ac_exeext=$EXEEXT
3937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3938 /* end confdefs.h. */
3939 #include <stdio.h>
3941 main ()
3943 FILE *f = fopen ("conftest.out", "w");
3944 return ferror (f) || fclose (f) != 0;
3947 return 0;
3949 _ACEOF
3950 ac_clean_files="$ac_clean_files conftest.out"
3951 # Check that the compiler produces executables we can run. If not, either
3952 # the compiler is broken, or we cross compile.
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3954 $as_echo_n "checking whether we are cross compiling... " >&6; }
3955 if test "$cross_compiling" != yes; then
3956 { { ac_try="$ac_link"
3957 case "(($ac_try" in
3958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3959 *) ac_try_echo=$ac_try;;
3960 esac
3961 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3962 $as_echo "$ac_try_echo"; } >&5
3963 (eval "$ac_link") 2>&5
3964 ac_status=$?
3965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3966 test $ac_status = 0; }
3967 if { ac_try='./conftest$ac_cv_exeext'
3968 { { case "(($ac_try" in
3969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3970 *) ac_try_echo=$ac_try;;
3971 esac
3972 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3973 $as_echo "$ac_try_echo"; } >&5
3974 (eval "$ac_try") 2>&5
3975 ac_status=$?
3976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3977 test $ac_status = 0; }; }; then
3978 cross_compiling=no
3979 else
3980 if test "$cross_compiling" = maybe; then
3981 cross_compiling=yes
3982 else
3983 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3984 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3985 as_fn_error $? "cannot run C compiled programs.
3986 If you meant to cross compile, use \`--host'.
3987 See \`config.log' for more details" "$LINENO" 5; }
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3992 $as_echo "$cross_compiling" >&6; }
3994 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3995 ac_clean_files=$ac_clean_files_save
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3997 $as_echo_n "checking for suffix of object files... " >&6; }
3998 if ${ac_cv_objext+:} false; then :
3999 $as_echo_n "(cached) " >&6
4000 else
4001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4002 /* end confdefs.h. */
4005 main ()
4009 return 0;
4011 _ACEOF
4012 rm -f conftest.o conftest.obj
4013 if { { ac_try="$ac_compile"
4014 case "(($ac_try" in
4015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4016 *) ac_try_echo=$ac_try;;
4017 esac
4018 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4019 $as_echo "$ac_try_echo"; } >&5
4020 (eval "$ac_compile") 2>&5
4021 ac_status=$?
4022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4023 test $ac_status = 0; }; then :
4024 for ac_file in conftest.o conftest.obj conftest.*; do
4025 test -f "$ac_file" || continue;
4026 case $ac_file in
4027 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4028 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4029 break;;
4030 esac
4031 done
4032 else
4033 $as_echo "$as_me: failed program was:" >&5
4034 sed 's/^/| /' conftest.$ac_ext >&5
4036 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4037 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4038 as_fn_error $? "cannot compute suffix of object files: cannot compile
4039 See \`config.log' for more details" "$LINENO" 5; }
4041 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4044 $as_echo "$ac_cv_objext" >&6; }
4045 OBJEXT=$ac_cv_objext
4046 ac_objext=$OBJEXT
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4048 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4049 if ${ac_cv_c_compiler_gnu+:} false; then :
4050 $as_echo_n "(cached) " >&6
4051 else
4052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4053 /* end confdefs.h. */
4056 main ()
4058 #ifndef __GNUC__
4059 choke me
4060 #endif
4063 return 0;
4065 _ACEOF
4066 if ac_fn_c_try_compile "$LINENO"; then :
4067 ac_compiler_gnu=yes
4068 else
4069 ac_compiler_gnu=no
4071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4072 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4076 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4077 if test $ac_compiler_gnu = yes; then
4078 GCC=yes
4079 else
4080 GCC=
4082 ac_test_CFLAGS=${CFLAGS+set}
4083 ac_save_CFLAGS=$CFLAGS
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4085 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4086 if ${ac_cv_prog_cc_g+:} false; then :
4087 $as_echo_n "(cached) " >&6
4088 else
4089 ac_save_c_werror_flag=$ac_c_werror_flag
4090 ac_c_werror_flag=yes
4091 ac_cv_prog_cc_g=no
4092 CFLAGS="-g"
4093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4094 /* end confdefs.h. */
4097 main ()
4101 return 0;
4103 _ACEOF
4104 if ac_fn_c_try_compile "$LINENO"; then :
4105 ac_cv_prog_cc_g=yes
4106 else
4107 CFLAGS=""
4108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4109 /* end confdefs.h. */
4112 main ()
4116 return 0;
4118 _ACEOF
4119 if ac_fn_c_try_compile "$LINENO"; then :
4121 else
4122 ac_c_werror_flag=$ac_save_c_werror_flag
4123 CFLAGS="-g"
4124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4125 /* end confdefs.h. */
4128 main ()
4132 return 0;
4134 _ACEOF
4135 if ac_fn_c_try_compile "$LINENO"; then :
4136 ac_cv_prog_cc_g=yes
4138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4143 ac_c_werror_flag=$ac_save_c_werror_flag
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4146 $as_echo "$ac_cv_prog_cc_g" >&6; }
4147 if test "$ac_test_CFLAGS" = set; then
4148 CFLAGS=$ac_save_CFLAGS
4149 elif test $ac_cv_prog_cc_g = yes; then
4150 if test "$GCC" = yes; then
4151 CFLAGS="-g -O2"
4152 else
4153 CFLAGS="-g"
4155 else
4156 if test "$GCC" = yes; then
4157 CFLAGS="-O2"
4158 else
4159 CFLAGS=
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4163 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4164 if ${ac_cv_prog_cc_c89+:} false; then :
4165 $as_echo_n "(cached) " >&6
4166 else
4167 ac_cv_prog_cc_c89=no
4168 ac_save_CC=$CC
4169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4170 /* end confdefs.h. */
4171 #include <stdarg.h>
4172 #include <stdio.h>
4173 struct stat;
4174 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4175 struct buf { int x; };
4176 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4177 static char *e (p, i)
4178 char **p;
4179 int i;
4181 return p[i];
4183 static char *f (char * (*g) (char **, int), char **p, ...)
4185 char *s;
4186 va_list v;
4187 va_start (v,p);
4188 s = g (p, va_arg (v,int));
4189 va_end (v);
4190 return s;
4193 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4194 function prototypes and stuff, but not '\xHH' hex character constants.
4195 These don't provoke an error unfortunately, instead are silently treated
4196 as 'x'. The following induces an error, until -std is added to get
4197 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4198 array size at least. It's necessary to write '\x00'==0 to get something
4199 that's true only with -std. */
4200 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4202 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4203 inside strings and character constants. */
4204 #define FOO(x) 'x'
4205 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4207 int test (int i, double x);
4208 struct s1 {int (*f) (int a);};
4209 struct s2 {int (*f) (double a);};
4210 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4211 int argc;
4212 char **argv;
4214 main ()
4216 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4218 return 0;
4220 _ACEOF
4221 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4222 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4224 CC="$ac_save_CC $ac_arg"
4225 if ac_fn_c_try_compile "$LINENO"; then :
4226 ac_cv_prog_cc_c89=$ac_arg
4228 rm -f core conftest.err conftest.$ac_objext
4229 test "x$ac_cv_prog_cc_c89" != "xno" && break
4230 done
4231 rm -f conftest.$ac_ext
4232 CC=$ac_save_CC
4235 # AC_CACHE_VAL
4236 case "x$ac_cv_prog_cc_c89" in
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4239 $as_echo "none needed" >&6; } ;;
4240 xno)
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4242 $as_echo "unsupported" >&6; } ;;
4244 CC="$CC $ac_cv_prog_cc_c89"
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4246 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4247 esac
4248 if test "x$ac_cv_prog_cc_c89" != xno; then :
4252 ac_ext=c
4253 ac_cpp='$CPP $CPPFLAGS'
4254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4258 depcc="$CC" am_compiler_list=
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4261 $as_echo_n "checking dependency style of $depcc... " >&6; }
4262 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4263 $as_echo_n "(cached) " >&6
4264 else
4265 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4266 # We make a subdir and do the tests there. Otherwise we can end up
4267 # making bogus files that we don't know about and never remove. For
4268 # instance it was reported that on HP-UX the gcc test will end up
4269 # making a dummy file named `D' -- because `-MD' means `put the output
4270 # in D'.
4271 rm -rf conftest.dir
4272 mkdir conftest.dir
4273 # Copy depcomp to subdir because otherwise we won't find it if we're
4274 # using a relative directory.
4275 cp "$am_depcomp" conftest.dir
4276 cd conftest.dir
4277 # We will build objects and dependencies in a subdirectory because
4278 # it helps to detect inapplicable dependency modes. For instance
4279 # both Tru64's cc and ICC support -MD to output dependencies as a
4280 # side effect of compilation, but ICC will put the dependencies in
4281 # the current directory while Tru64 will put them in the object
4282 # directory.
4283 mkdir sub
4285 am_cv_CC_dependencies_compiler_type=none
4286 if test "$am_compiler_list" = ""; then
4287 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4289 am__universal=false
4290 case " $depcc " in #(
4291 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4292 esac
4294 for depmode in $am_compiler_list; do
4295 # Setup a source with many dependencies, because some compilers
4296 # like to wrap large dependency lists on column 80 (with \), and
4297 # we should not choose a depcomp mode which is confused by this.
4299 # We need to recreate these files for each test, as the compiler may
4300 # overwrite some of them when testing with obscure command lines.
4301 # This happens at least with the AIX C compiler.
4302 : > sub/conftest.c
4303 for i in 1 2 3 4 5 6; do
4304 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4305 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4306 # Solaris 8's {/usr,}/bin/sh.
4307 touch sub/conftst$i.h
4308 done
4309 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4311 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4312 # mode. It turns out that the SunPro C++ compiler does not properly
4313 # handle `-M -o', and we need to detect this. Also, some Intel
4314 # versions had trouble with output in subdirs
4315 am__obj=sub/conftest.${OBJEXT-o}
4316 am__minus_obj="-o $am__obj"
4317 case $depmode in
4318 gcc)
4319 # This depmode causes a compiler race in universal mode.
4320 test "$am__universal" = false || continue
4322 nosideeffect)
4323 # after this tag, mechanisms are not by side-effect, so they'll
4324 # only be used when explicitly requested
4325 if test "x$enable_dependency_tracking" = xyes; then
4326 continue
4327 else
4328 break
4331 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4332 # This compiler won't grok `-c -o', but also, the minuso test has
4333 # not run yet. These depmodes are late enough in the game, and
4334 # so weak that their functioning should not be impacted.
4335 am__obj=conftest.${OBJEXT-o}
4336 am__minus_obj=
4338 none) break ;;
4339 esac
4340 if depmode=$depmode \
4341 source=sub/conftest.c object=$am__obj \
4342 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4343 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4344 >/dev/null 2>conftest.err &&
4345 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4346 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4347 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4348 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4349 # icc doesn't choke on unknown options, it will just issue warnings
4350 # or remarks (even with -Werror). So we grep stderr for any message
4351 # that says an option was ignored or not supported.
4352 # When given -MP, icc 7.0 and 7.1 complain thusly:
4353 # icc: Command line warning: ignoring option '-M'; no argument required
4354 # The diagnosis changed in icc 8.0:
4355 # icc: Command line remark: option '-MP' not supported
4356 if (grep 'ignoring option' conftest.err ||
4357 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4358 am_cv_CC_dependencies_compiler_type=$depmode
4359 break
4362 done
4364 cd ..
4365 rm -rf conftest.dir
4366 else
4367 am_cv_CC_dependencies_compiler_type=none
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4372 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4373 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4376 test "x$enable_dependency_tracking" != xno \
4377 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4378 am__fastdepCC_TRUE=
4379 am__fastdepCC_FALSE='#'
4380 else
4381 am__fastdepCC_TRUE='#'
4382 am__fastdepCC_FALSE=
4387 ac_ext=c
4388 ac_cpp='$CPP $CPPFLAGS'
4389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4393 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4394 # On Suns, sometimes $CPP names a directory.
4395 if test -n "$CPP" && test -d "$CPP"; then
4396 CPP=
4398 if test -z "$CPP"; then
4399 if ${ac_cv_prog_CPP+:} false; then :
4400 $as_echo_n "(cached) " >&6
4401 else
4402 # Double quotes because CPP needs to be expanded
4403 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4405 ac_preproc_ok=false
4406 for ac_c_preproc_warn_flag in '' yes
4408 # Use a header file that comes with gcc, so configuring glibc
4409 # with a fresh cross-compiler works.
4410 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4411 # <limits.h> exists even on freestanding compilers.
4412 # On the NeXT, cc -E runs the code through the compiler's parser,
4413 # not just through cpp. "Syntax error" is here to catch this case.
4414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4415 /* end confdefs.h. */
4416 #ifdef __STDC__
4417 # include <limits.h>
4418 #else
4419 # include <assert.h>
4420 #endif
4421 Syntax error
4422 _ACEOF
4423 if ac_fn_c_try_cpp "$LINENO"; then :
4425 else
4426 # Broken: fails on valid input.
4427 continue
4429 rm -f conftest.err conftest.i conftest.$ac_ext
4431 # OK, works on sane cases. Now check whether nonexistent headers
4432 # can be detected and how.
4433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4434 /* end confdefs.h. */
4435 #include <ac_nonexistent.h>
4436 _ACEOF
4437 if ac_fn_c_try_cpp "$LINENO"; then :
4438 # Broken: success on invalid input.
4439 continue
4440 else
4441 # Passes both tests.
4442 ac_preproc_ok=:
4443 break
4445 rm -f conftest.err conftest.i conftest.$ac_ext
4447 done
4448 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4449 rm -f conftest.i conftest.err conftest.$ac_ext
4450 if $ac_preproc_ok; then :
4451 break
4454 done
4455 ac_cv_prog_CPP=$CPP
4458 CPP=$ac_cv_prog_CPP
4459 else
4460 ac_cv_prog_CPP=$CPP
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4463 $as_echo "$CPP" >&6; }
4464 ac_preproc_ok=false
4465 for ac_c_preproc_warn_flag in '' yes
4467 # Use a header file that comes with gcc, so configuring glibc
4468 # with a fresh cross-compiler works.
4469 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4470 # <limits.h> exists even on freestanding compilers.
4471 # On the NeXT, cc -E runs the code through the compiler's parser,
4472 # not just through cpp. "Syntax error" is here to catch this case.
4473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4474 /* end confdefs.h. */
4475 #ifdef __STDC__
4476 # include <limits.h>
4477 #else
4478 # include <assert.h>
4479 #endif
4480 Syntax error
4481 _ACEOF
4482 if ac_fn_c_try_cpp "$LINENO"; then :
4484 else
4485 # Broken: fails on valid input.
4486 continue
4488 rm -f conftest.err conftest.i conftest.$ac_ext
4490 # OK, works on sane cases. Now check whether nonexistent headers
4491 # can be detected and how.
4492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4493 /* end confdefs.h. */
4494 #include <ac_nonexistent.h>
4495 _ACEOF
4496 if ac_fn_c_try_cpp "$LINENO"; then :
4497 # Broken: success on invalid input.
4498 continue
4499 else
4500 # Passes both tests.
4501 ac_preproc_ok=:
4502 break
4504 rm -f conftest.err conftest.i conftest.$ac_ext
4506 done
4507 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4508 rm -f conftest.i conftest.err conftest.$ac_ext
4509 if $ac_preproc_ok; then :
4511 else
4512 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4513 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4514 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4515 See \`config.log' for more details" "$LINENO" 5; }
4518 ac_ext=c
4519 ac_cpp='$CPP $CPPFLAGS'
4520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4526 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4527 if ${ac_cv_path_GREP+:} false; then :
4528 $as_echo_n "(cached) " >&6
4529 else
4530 if test -z "$GREP"; then
4531 ac_path_GREP_found=false
4532 # Loop through the user's path and test for each of PROGNAME-LIST
4533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4534 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4536 IFS=$as_save_IFS
4537 test -z "$as_dir" && as_dir=.
4538 for ac_prog in grep ggrep; do
4539 for ac_exec_ext in '' $ac_executable_extensions; do
4540 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4541 as_fn_executable_p "$ac_path_GREP" || continue
4542 # Check for GNU ac_path_GREP and select it if it is found.
4543 # Check for GNU $ac_path_GREP
4544 case `"$ac_path_GREP" --version 2>&1` in
4545 *GNU*)
4546 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4548 ac_count=0
4549 $as_echo_n 0123456789 >"conftest.in"
4550 while :
4552 cat "conftest.in" "conftest.in" >"conftest.tmp"
4553 mv "conftest.tmp" "conftest.in"
4554 cp "conftest.in" "conftest.nl"
4555 $as_echo 'GREP' >> "conftest.nl"
4556 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4557 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4558 as_fn_arith $ac_count + 1 && ac_count=$as_val
4559 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4560 # Best one so far, save it but keep looking for a better one
4561 ac_cv_path_GREP="$ac_path_GREP"
4562 ac_path_GREP_max=$ac_count
4564 # 10*(2^10) chars as input seems more than enough
4565 test $ac_count -gt 10 && break
4566 done
4567 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4568 esac
4570 $ac_path_GREP_found && break 3
4571 done
4572 done
4573 done
4574 IFS=$as_save_IFS
4575 if test -z "$ac_cv_path_GREP"; then
4576 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4578 else
4579 ac_cv_path_GREP=$GREP
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4584 $as_echo "$ac_cv_path_GREP" >&6; }
4585 GREP="$ac_cv_path_GREP"
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4589 $as_echo_n "checking for egrep... " >&6; }
4590 if ${ac_cv_path_EGREP+:} false; then :
4591 $as_echo_n "(cached) " >&6
4592 else
4593 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4594 then ac_cv_path_EGREP="$GREP -E"
4595 else
4596 if test -z "$EGREP"; then
4597 ac_path_EGREP_found=false
4598 # Loop through the user's path and test for each of PROGNAME-LIST
4599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4600 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4602 IFS=$as_save_IFS
4603 test -z "$as_dir" && as_dir=.
4604 for ac_prog in egrep; do
4605 for ac_exec_ext in '' $ac_executable_extensions; do
4606 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4607 as_fn_executable_p "$ac_path_EGREP" || continue
4608 # Check for GNU ac_path_EGREP and select it if it is found.
4609 # Check for GNU $ac_path_EGREP
4610 case `"$ac_path_EGREP" --version 2>&1` in
4611 *GNU*)
4612 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4614 ac_count=0
4615 $as_echo_n 0123456789 >"conftest.in"
4616 while :
4618 cat "conftest.in" "conftest.in" >"conftest.tmp"
4619 mv "conftest.tmp" "conftest.in"
4620 cp "conftest.in" "conftest.nl"
4621 $as_echo 'EGREP' >> "conftest.nl"
4622 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4623 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4624 as_fn_arith $ac_count + 1 && ac_count=$as_val
4625 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4626 # Best one so far, save it but keep looking for a better one
4627 ac_cv_path_EGREP="$ac_path_EGREP"
4628 ac_path_EGREP_max=$ac_count
4630 # 10*(2^10) chars as input seems more than enough
4631 test $ac_count -gt 10 && break
4632 done
4633 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4634 esac
4636 $ac_path_EGREP_found && break 3
4637 done
4638 done
4639 done
4640 IFS=$as_save_IFS
4641 if test -z "$ac_cv_path_EGREP"; then
4642 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4644 else
4645 ac_cv_path_EGREP=$EGREP
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4651 $as_echo "$ac_cv_path_EGREP" >&6; }
4652 EGREP="$ac_cv_path_EGREP"
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4656 $as_echo_n "checking for ANSI C header files... " >&6; }
4657 if ${ac_cv_header_stdc+:} false; then :
4658 $as_echo_n "(cached) " >&6
4659 else
4660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4661 /* end confdefs.h. */
4662 #include <stdlib.h>
4663 #include <stdarg.h>
4664 #include <string.h>
4665 #include <float.h>
4668 main ()
4672 return 0;
4674 _ACEOF
4675 if ac_fn_c_try_compile "$LINENO"; then :
4676 ac_cv_header_stdc=yes
4677 else
4678 ac_cv_header_stdc=no
4680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4682 if test $ac_cv_header_stdc = yes; then
4683 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4685 /* end confdefs.h. */
4686 #include <string.h>
4688 _ACEOF
4689 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4690 $EGREP "memchr" >/dev/null 2>&1; then :
4692 else
4693 ac_cv_header_stdc=no
4695 rm -f conftest*
4699 if test $ac_cv_header_stdc = yes; then
4700 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4702 /* end confdefs.h. */
4703 #include <stdlib.h>
4705 _ACEOF
4706 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4707 $EGREP "free" >/dev/null 2>&1; then :
4709 else
4710 ac_cv_header_stdc=no
4712 rm -f conftest*
4716 if test $ac_cv_header_stdc = yes; then
4717 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4718 if test "$cross_compiling" = yes; then :
4720 else
4721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4722 /* end confdefs.h. */
4723 #include <ctype.h>
4724 #include <stdlib.h>
4725 #if ((' ' & 0x0FF) == 0x020)
4726 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4727 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4728 #else
4729 # define ISLOWER(c) \
4730 (('a' <= (c) && (c) <= 'i') \
4731 || ('j' <= (c) && (c) <= 'r') \
4732 || ('s' <= (c) && (c) <= 'z'))
4733 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4734 #endif
4736 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4738 main ()
4740 int i;
4741 for (i = 0; i < 256; i++)
4742 if (XOR (islower (i), ISLOWER (i))
4743 || toupper (i) != TOUPPER (i))
4744 return 2;
4745 return 0;
4747 _ACEOF
4748 if ac_fn_c_try_run "$LINENO"; then :
4750 else
4751 ac_cv_header_stdc=no
4753 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4754 conftest.$ac_objext conftest.beam conftest.$ac_ext
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4760 $as_echo "$ac_cv_header_stdc" >&6; }
4761 if test $ac_cv_header_stdc = yes; then
4763 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4767 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4768 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4769 inttypes.h stdint.h unistd.h
4770 do :
4771 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4772 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4774 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4775 cat >>confdefs.h <<_ACEOF
4776 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4777 _ACEOF
4781 done
4785 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4786 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4787 MINIX=yes
4788 else
4789 MINIX=
4793 if test "$MINIX" = yes; then
4795 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4798 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4801 $as_echo "#define _MINIX 1" >>confdefs.h
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4807 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4808 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4809 $as_echo_n "(cached) " >&6
4810 else
4811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4812 /* end confdefs.h. */
4814 # define __EXTENSIONS__ 1
4815 $ac_includes_default
4817 main ()
4821 return 0;
4823 _ACEOF
4824 if ac_fn_c_try_compile "$LINENO"; then :
4825 ac_cv_safe_to_define___extensions__=yes
4826 else
4827 ac_cv_safe_to_define___extensions__=no
4829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4832 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4833 test $ac_cv_safe_to_define___extensions__ = yes &&
4834 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4836 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4838 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4840 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4842 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4846 # Check whether --enable-lzo was given.
4847 if test "${enable_lzo+set}" = set; then :
4848 enableval=$enable_lzo;
4849 else
4850 enable_lzo="yes"
4855 # Check whether --enable-lzo-stub was given.
4856 if test "${enable_lzo_stub+set}" = set; then :
4857 enableval=$enable_lzo_stub;
4858 else
4859 enable_lzo_stub="no"
4864 # Check whether --enable-crypto was given.
4865 if test "${enable_crypto+set}" = set; then :
4866 enableval=$enable_crypto;
4867 else
4868 enable_crypto="yes"
4873 # Check whether --enable-ssl was given.
4874 if test "${enable_ssl+set}" = set; then :
4875 enableval=$enable_ssl;
4876 else
4877 enable_ssl="yes"
4882 # Check whether --enable-x509-alt-username was given.
4883 if test "${enable_x509_alt_username+set}" = set; then :
4884 enableval=$enable_x509_alt_username;
4885 else
4886 enable_x509_alt_username="no"
4891 # Check whether --enable-multi was given.
4892 if test "${enable_multi+set}" = set; then :
4893 enableval=$enable_multi;
4894 else
4895 enable_multi="yes"
4900 # Check whether --enable-server was given.
4901 if test "${enable_server+set}" = set; then :
4902 enableval=$enable_server;
4903 else
4904 enable_server="yes"
4909 # Check whether --enable-plugins was given.
4910 if test "${enable_plugins+set}" = set; then :
4911 enableval=$enable_plugins;
4912 else
4913 enable_plugins="yes"
4918 # Check whether --enable-eurephia was given.
4919 if test "${enable_eurephia+set}" = set; then :
4920 enableval=$enable_eurephia;
4921 else
4922 enable_eurephia="yes"
4927 # Check whether --enable-management was given.
4928 if test "${enable_management+set}" = set; then :
4929 enableval=$enable_management;
4930 else
4931 enable_management="yes"
4936 # Check whether --enable-pkcs11 was given.
4937 if test "${enable_pkcs11+set}" = set; then :
4938 enableval=$enable_pkcs11;
4939 else
4940 enable_pkcs11="no"
4945 # Check whether --enable-socks was given.
4946 if test "${enable_socks+set}" = set; then :
4947 enableval=$enable_socks;
4948 else
4949 enable_socks="yes"
4954 # Check whether --enable-http-proxy was given.
4955 if test "${enable_http_proxy+set}" = set; then :
4956 enableval=$enable_http_proxy;
4957 else
4958 enable_http_proxy="yes"
4963 # Check whether --enable-fragment was given.
4964 if test "${enable_fragment+set}" = set; then :
4965 enableval=$enable_fragment;
4966 else
4967 enable_fragment="yes"
4972 # Check whether --enable-multihome was given.
4973 if test "${enable_multihome+set}" = set; then :
4974 enableval=$enable_multihome;
4975 else
4976 enable_multihome="yes"
4981 # Check whether --enable-port-share was given.
4982 if test "${enable_port_share+set}" = set; then :
4983 enableval=$enable_port_share;
4984 else
4985 enable_port_share="yes"
4990 # Check whether --enable-debug was given.
4991 if test "${enable_debug+set}" = set; then :
4992 enableval=$enable_debug;
4993 else
4994 enable_debug="yes"
4999 # Check whether --enable-small was given.
5000 if test "${enable_small+set}" = set; then :
5001 enableval=$enable_small;
5002 else
5003 enable_small="no"
5008 # Check whether --enable-password-save was given.
5009 if test "${enable_password_save+set}" = set; then :
5010 enableval=$enable_password_save;
5011 else
5012 enable_password_save="no"
5017 # Check whether --enable-iproute2 was given.
5018 if test "${enable_iproute2+set}" = set; then :
5019 enableval=$enable_iproute2;
5020 else
5021 enable_iproute2="no"
5026 # Check whether --enable-def-auth was given.
5027 if test "${enable_def_auth+set}" = set; then :
5028 enableval=$enable_def_auth;
5029 else
5030 enable_def_auth="yes"
5035 # Check whether --enable-pf was given.
5036 if test "${enable_pf+set}" = set; then :
5037 enableval=$enable_pf;
5038 else
5039 enable_pf="yes"
5044 # Check whether --enable-plugin-auth-pam was given.
5045 if test "${enable_plugin_auth_pam+set}" = set; then :
5046 enableval=$enable_plugin_auth_pam;
5047 else
5049 case "$host" in
5050 *-*-openbsd*) enable_plugin_auth_pam="no";;
5051 *-mingw*) enable_plugin_auth_pam="no";;
5052 *) enable_plugin_auth_pam="yes";;
5053 esac
5059 # Check whether --enable-plugin-down-root was given.
5060 if test "${enable_plugin_down_root+set}" = set; then :
5061 enableval=$enable_plugin_down_root;
5062 else
5064 case "$host" in
5065 *-mingw*) enable_plugin_down_root="no";;
5066 *) enable_plugin_down_root="yes";;
5067 esac
5073 # Check whether --enable-pam-dlopen was given.
5074 if test "${enable_pam_dlopen+set}" = set; then :
5075 enableval=$enable_pam_dlopen;
5076 else
5077 enable_pam_dlopen="no"
5082 # Check whether --enable-strict was given.
5083 if test "${enable_strict+set}" = set; then :
5084 enableval=$enable_strict;
5085 else
5086 enable_strict="no"
5091 # Check whether --enable-pedantic was given.
5092 if test "${enable_pedantic+set}" = set; then :
5093 enableval=$enable_pedantic;
5094 else
5095 enable_pedantic="no"
5100 # Check whether --enable-strict-options was given.
5101 if test "${enable_strict_options+set}" = set; then :
5102 enableval=$enable_strict_options;
5103 else
5104 enable_strict_options="no"
5109 # Check whether --enable-selinux was given.
5110 if test "${enable_selinux+set}" = set; then :
5111 enableval=$enable_selinux;
5112 else
5113 enable_selinux="no"
5118 # Check whether --enable-systemd was given.
5119 if test "${enable_systemd+set}" = set; then :
5120 enableval=$enable_systemd;
5121 else
5122 enable_systemd="no"
5128 # Check whether --with-special-build was given.
5129 if test "${with_special_build+set}" = set; then :
5130 withval=$with_special_build; test -n "${withval}" &&
5131 cat >>confdefs.h <<_ACEOF
5132 #define CONFIGURE_SPECIAL_BUILD "${withval}"
5133 _ACEOF
5140 # Check whether --with-mem-check was given.
5141 if test "${with_mem_check+set}" = set; then :
5142 withval=$with_mem_check;
5143 case "${withval}" in
5144 dmalloc|valgrind|ssl|no) ;;
5145 *) as_fn_error $? "bad value ${withval} for --mem-check" "$LINENO" 5 ;;
5146 esac
5148 else
5149 with_mem_check="no"
5155 # Check whether --with-crypto-library was given.
5156 if test "${with_crypto_library+set}" = set; then :
5157 withval=$with_crypto_library;
5158 case "${withval}" in
5159 openssl|polarssl) ;;
5160 *) as_fn_error $? "bad value ${withval} for --with-crypto-library" "$LINENO" 5 ;;
5161 esac
5163 else
5164 with_crypto_library="openssl"
5170 # Check whether --with-plugindir was given.
5171 if test "${with_plugindir+set}" = set; then :
5172 withval=$with_plugindir;
5173 else
5174 with_plugindir="\$(libdir)/openvpn/plugins"
5181 cat >>confdefs.h <<_ACEOF
5182 #define TARGET_ALIAS "${host}"
5183 _ACEOF
5185 case "$host" in
5186 *-*-linux*)
5188 $as_echo "#define TARGET_LINUX 1" >>confdefs.h
5191 cat >>confdefs.h <<_ACEOF
5192 #define TARGET_PREFIX "L"
5193 _ACEOF
5196 *-*-solaris*)
5198 $as_echo "#define TARGET_SOLARIS 1" >>confdefs.h
5201 cat >>confdefs.h <<_ACEOF
5202 #define TARGET_PREFIX "S"
5203 _ACEOF
5206 *-*-openbsd*)
5208 $as_echo "#define TARGET_OPENBSD 1" >>confdefs.h
5211 cat >>confdefs.h <<_ACEOF
5212 #define TARGET_PREFIX "O"
5213 _ACEOF
5216 *-*-freebsd*)
5218 $as_echo "#define TARGET_FREEBSD 1" >>confdefs.h
5221 cat >>confdefs.h <<_ACEOF
5222 #define TARGET_PREFIX "F"
5223 _ACEOF
5226 *-*-netbsd*)
5228 $as_echo "#define TARGET_NETBSD 1" >>confdefs.h
5231 cat >>confdefs.h <<_ACEOF
5232 #define TARGET_PREFIX "N"
5233 _ACEOF
5236 *-*-darwin*)
5238 $as_echo "#define TARGET_DARWIN 1" >>confdefs.h
5241 cat >>confdefs.h <<_ACEOF
5242 #define TARGET_PREFIX "M"
5243 _ACEOF
5245 have_tap_header="yes"
5246 CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
5248 *-mingw*)
5250 $as_echo "#define TARGET_WIN32 1" >>confdefs.h
5253 cat >>confdefs.h <<_ACEOF
5254 #define TARGET_PREFIX "W"
5255 _ACEOF
5257 CPPFLAGS="${CPPFLAGS} -DWIN32_LEAN_AND_MEAN"
5258 CPPFLAGS="${CPPFLAGS} -DNTDDI_VERSION=NTDDI_WINXP -D_WIN32_WINNT=_WIN32_WINNT_WINXP"
5259 WIN32=yes
5261 *-*-dragonfly*)
5263 $as_echo "#define TARGET_DRAGONFLY 1" >>confdefs.h
5266 cat >>confdefs.h <<_ACEOF
5267 #define TARGET_PREFIX "D"
5268 _ACEOF
5273 cat >>confdefs.h <<_ACEOF
5274 #define TARGET_PREFIX "X"
5275 _ACEOF
5277 have_tap_header="yes"
5279 esac
5288 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5289 if test -n "$ac_tool_prefix"; then
5290 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5291 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5293 $as_echo_n "checking for $ac_word... " >&6; }
5294 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5295 $as_echo_n "(cached) " >&6
5296 else
5297 case $PKG_CONFIG in
5298 [\\/]* | ?:[\\/]*)
5299 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5303 for as_dir in $PATH
5305 IFS=$as_save_IFS
5306 test -z "$as_dir" && as_dir=.
5307 for ac_exec_ext in '' $ac_executable_extensions; do
5308 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5309 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5311 break 2
5313 done
5314 done
5315 IFS=$as_save_IFS
5318 esac
5320 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5321 if test -n "$PKG_CONFIG"; then
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5323 $as_echo "$PKG_CONFIG" >&6; }
5324 else
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5326 $as_echo "no" >&6; }
5331 if test -z "$ac_cv_path_PKG_CONFIG"; then
5332 ac_pt_PKG_CONFIG=$PKG_CONFIG
5333 # Extract the first word of "pkg-config", so it can be a program name with args.
5334 set dummy pkg-config; ac_word=$2
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5336 $as_echo_n "checking for $ac_word... " >&6; }
5337 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5338 $as_echo_n "(cached) " >&6
5339 else
5340 case $ac_pt_PKG_CONFIG in
5341 [\\/]* | ?:[\\/]*)
5342 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5346 for as_dir in $PATH
5348 IFS=$as_save_IFS
5349 test -z "$as_dir" && as_dir=.
5350 for ac_exec_ext in '' $ac_executable_extensions; do
5351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5352 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5354 break 2
5356 done
5357 done
5358 IFS=$as_save_IFS
5361 esac
5363 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5364 if test -n "$ac_pt_PKG_CONFIG"; then
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5366 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5367 else
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5369 $as_echo "no" >&6; }
5372 if test "x$ac_pt_PKG_CONFIG" = x; then
5373 PKG_CONFIG=""
5374 else
5375 case $cross_compiling:$ac_tool_warned in
5376 yes:)
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5378 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5379 ac_tool_warned=yes ;;
5380 esac
5381 PKG_CONFIG=$ac_pt_PKG_CONFIG
5383 else
5384 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5388 if test -n "$PKG_CONFIG"; then
5389 _pkg_min_version=0.9.0
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5391 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5392 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5394 $as_echo "yes" >&6; }
5395 else
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5397 $as_echo "no" >&6; }
5398 PKG_CONFIG=""
5401 ac_ext=c
5402 ac_cpp='$CPP $CPPFLAGS'
5403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5407 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5408 # On Suns, sometimes $CPP names a directory.
5409 if test -n "$CPP" && test -d "$CPP"; then
5410 CPP=
5412 if test -z "$CPP"; then
5413 if ${ac_cv_prog_CPP+:} false; then :
5414 $as_echo_n "(cached) " >&6
5415 else
5416 # Double quotes because CPP needs to be expanded
5417 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5419 ac_preproc_ok=false
5420 for ac_c_preproc_warn_flag in '' yes
5422 # Use a header file that comes with gcc, so configuring glibc
5423 # with a fresh cross-compiler works.
5424 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5425 # <limits.h> exists even on freestanding compilers.
5426 # On the NeXT, cc -E runs the code through the compiler's parser,
5427 # not just through cpp. "Syntax error" is here to catch this case.
5428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5429 /* end confdefs.h. */
5430 #ifdef __STDC__
5431 # include <limits.h>
5432 #else
5433 # include <assert.h>
5434 #endif
5435 Syntax error
5436 _ACEOF
5437 if ac_fn_c_try_cpp "$LINENO"; then :
5439 else
5440 # Broken: fails on valid input.
5441 continue
5443 rm -f conftest.err conftest.i conftest.$ac_ext
5445 # OK, works on sane cases. Now check whether nonexistent headers
5446 # can be detected and how.
5447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5448 /* end confdefs.h. */
5449 #include <ac_nonexistent.h>
5450 _ACEOF
5451 if ac_fn_c_try_cpp "$LINENO"; then :
5452 # Broken: success on invalid input.
5453 continue
5454 else
5455 # Passes both tests.
5456 ac_preproc_ok=:
5457 break
5459 rm -f conftest.err conftest.i conftest.$ac_ext
5461 done
5462 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5463 rm -f conftest.i conftest.err conftest.$ac_ext
5464 if $ac_preproc_ok; then :
5465 break
5468 done
5469 ac_cv_prog_CPP=$CPP
5472 CPP=$ac_cv_prog_CPP
5473 else
5474 ac_cv_prog_CPP=$CPP
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5477 $as_echo "$CPP" >&6; }
5478 ac_preproc_ok=false
5479 for ac_c_preproc_warn_flag in '' yes
5481 # Use a header file that comes with gcc, so configuring glibc
5482 # with a fresh cross-compiler works.
5483 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5484 # <limits.h> exists even on freestanding compilers.
5485 # On the NeXT, cc -E runs the code through the compiler's parser,
5486 # not just through cpp. "Syntax error" is here to catch this case.
5487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5488 /* end confdefs.h. */
5489 #ifdef __STDC__
5490 # include <limits.h>
5491 #else
5492 # include <assert.h>
5493 #endif
5494 Syntax error
5495 _ACEOF
5496 if ac_fn_c_try_cpp "$LINENO"; then :
5498 else
5499 # Broken: fails on valid input.
5500 continue
5502 rm -f conftest.err conftest.i conftest.$ac_ext
5504 # OK, works on sane cases. Now check whether nonexistent headers
5505 # can be detected and how.
5506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5507 /* end confdefs.h. */
5508 #include <ac_nonexistent.h>
5509 _ACEOF
5510 if ac_fn_c_try_cpp "$LINENO"; then :
5511 # Broken: success on invalid input.
5512 continue
5513 else
5514 # Passes both tests.
5515 ac_preproc_ok=:
5516 break
5518 rm -f conftest.err conftest.i conftest.$ac_ext
5520 done
5521 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5522 rm -f conftest.i conftest.err conftest.$ac_ext
5523 if $ac_preproc_ok; then :
5525 else
5526 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5527 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5528 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5529 See \`config.log' for more details" "$LINENO" 5; }
5532 ac_ext=c
5533 ac_cpp='$CPP $CPPFLAGS'
5534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5540 $as_echo_n "checking whether ln -s works... " >&6; }
5541 LN_S=$as_ln_s
5542 if test "$LN_S" = "ln -s"; then
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5544 $as_echo "yes" >&6; }
5545 else
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5547 $as_echo "no, using $LN_S" >&6; }
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5551 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5552 if ${ac_cv_path_SED+:} false; then :
5553 $as_echo_n "(cached) " >&6
5554 else
5555 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5556 for ac_i in 1 2 3 4 5 6 7; do
5557 ac_script="$ac_script$as_nl$ac_script"
5558 done
5559 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5560 { ac_script=; unset ac_script;}
5561 if test -z "$SED"; then
5562 ac_path_SED_found=false
5563 # Loop through the user's path and test for each of PROGNAME-LIST
5564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5565 for as_dir in $PATH
5567 IFS=$as_save_IFS
5568 test -z "$as_dir" && as_dir=.
5569 for ac_prog in sed gsed; do
5570 for ac_exec_ext in '' $ac_executable_extensions; do
5571 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5572 as_fn_executable_p "$ac_path_SED" || continue
5573 # Check for GNU ac_path_SED and select it if it is found.
5574 # Check for GNU $ac_path_SED
5575 case `"$ac_path_SED" --version 2>&1` in
5576 *GNU*)
5577 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5579 ac_count=0
5580 $as_echo_n 0123456789 >"conftest.in"
5581 while :
5583 cat "conftest.in" "conftest.in" >"conftest.tmp"
5584 mv "conftest.tmp" "conftest.in"
5585 cp "conftest.in" "conftest.nl"
5586 $as_echo '' >> "conftest.nl"
5587 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5588 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5589 as_fn_arith $ac_count + 1 && ac_count=$as_val
5590 if test $ac_count -gt ${ac_path_SED_max-0}; then
5591 # Best one so far, save it but keep looking for a better one
5592 ac_cv_path_SED="$ac_path_SED"
5593 ac_path_SED_max=$ac_count
5595 # 10*(2^10) chars as input seems more than enough
5596 test $ac_count -gt 10 && break
5597 done
5598 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5599 esac
5601 $ac_path_SED_found && break 3
5602 done
5603 done
5604 done
5605 IFS=$as_save_IFS
5606 if test -z "$ac_cv_path_SED"; then
5607 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5609 else
5610 ac_cv_path_SED=$SED
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5615 $as_echo "$ac_cv_path_SED" >&6; }
5616 SED="$ac_cv_path_SED"
5617 rm -f conftest.sed
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5620 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5621 set x ${MAKE-make}
5622 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5623 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5624 $as_echo_n "(cached) " >&6
5625 else
5626 cat >conftest.make <<\_ACEOF
5627 SHELL = /bin/sh
5628 all:
5629 @echo '@@@%%%=$(MAKE)=@@@%%%'
5630 _ACEOF
5631 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5632 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5633 *@@@%%%=?*=@@@%%%*)
5634 eval ac_cv_prog_make_${ac_make}_set=yes;;
5636 eval ac_cv_prog_make_${ac_make}_set=no;;
5637 esac
5638 rm -f conftest.make
5640 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5642 $as_echo "yes" >&6; }
5643 SET_MAKE=
5644 else
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5646 $as_echo "no" >&6; }
5647 SET_MAKE="MAKE=${MAKE-make}"
5654 # tests
5657 for ac_prog in ifconfig
5659 # Extract the first word of "$ac_prog", so it can be a program name with args.
5660 set dummy $ac_prog; ac_word=$2
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5662 $as_echo_n "checking for $ac_word... " >&6; }
5663 if ${ac_cv_path_IFCONFIG+:} false; then :
5664 $as_echo_n "(cached) " >&6
5665 else
5666 case $IFCONFIG in
5667 [\\/]* | ?:[\\/]*)
5668 ac_cv_path_IFCONFIG="$IFCONFIG" # Let the user override the test with a path.
5671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5672 as_dummy="$PATH:/usr/local/sbin:/usr/sbin:/sbin"
5673 for as_dir in $as_dummy
5675 IFS=$as_save_IFS
5676 test -z "$as_dir" && as_dir=.
5677 for ac_exec_ext in '' $ac_executable_extensions; do
5678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5679 ac_cv_path_IFCONFIG="$as_dir/$ac_word$ac_exec_ext"
5680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5681 break 2
5683 done
5684 done
5685 IFS=$as_save_IFS
5688 esac
5690 IFCONFIG=$ac_cv_path_IFCONFIG
5691 if test -n "$IFCONFIG"; then
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IFCONFIG" >&5
5693 $as_echo "$IFCONFIG" >&6; }
5694 else
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5696 $as_echo "no" >&6; }
5700 test -n "$IFCONFIG" && break
5701 done
5703 for ac_prog in route
5705 # Extract the first word of "$ac_prog", so it can be a program name with args.
5706 set dummy $ac_prog; ac_word=$2
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5708 $as_echo_n "checking for $ac_word... " >&6; }
5709 if ${ac_cv_path_ROUTE+:} false; then :
5710 $as_echo_n "(cached) " >&6
5711 else
5712 case $ROUTE in
5713 [\\/]* | ?:[\\/]*)
5714 ac_cv_path_ROUTE="$ROUTE" # Let the user override the test with a path.
5717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5718 as_dummy="$PATH:/usr/local/sbin:/usr/sbin:/sbin"
5719 for as_dir in $as_dummy
5721 IFS=$as_save_IFS
5722 test -z "$as_dir" && as_dir=.
5723 for ac_exec_ext in '' $ac_executable_extensions; do
5724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5725 ac_cv_path_ROUTE="$as_dir/$ac_word$ac_exec_ext"
5726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5727 break 2
5729 done
5730 done
5731 IFS=$as_save_IFS
5734 esac
5736 ROUTE=$ac_cv_path_ROUTE
5737 if test -n "$ROUTE"; then
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ROUTE" >&5
5739 $as_echo "$ROUTE" >&6; }
5740 else
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5742 $as_echo "no" >&6; }
5746 test -n "$ROUTE" && break
5747 done
5749 for ac_prog in ip
5751 # Extract the first word of "$ac_prog", so it can be a program name with args.
5752 set dummy $ac_prog; ac_word=$2
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5754 $as_echo_n "checking for $ac_word... " >&6; }
5755 if ${ac_cv_path_IPROUTE+:} false; then :
5756 $as_echo_n "(cached) " >&6
5757 else
5758 case $IPROUTE in
5759 [\\/]* | ?:[\\/]*)
5760 ac_cv_path_IPROUTE="$IPROUTE" # Let the user override the test with a path.
5763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5764 as_dummy="$PATH:/usr/local/sbin:/usr/sbin:/sbin"
5765 for as_dir in $as_dummy
5767 IFS=$as_save_IFS
5768 test -z "$as_dir" && as_dir=.
5769 for ac_exec_ext in '' $ac_executable_extensions; do
5770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5771 ac_cv_path_IPROUTE="$as_dir/$ac_word$ac_exec_ext"
5772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5773 break 2
5775 done
5776 done
5777 IFS=$as_save_IFS
5780 esac
5782 IPROUTE=$ac_cv_path_IPROUTE
5783 if test -n "$IPROUTE"; then
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPROUTE" >&5
5785 $as_echo "$IPROUTE" >&6; }
5786 else
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5788 $as_echo "no" >&6; }
5792 test -n "$IPROUTE" && break
5793 done
5795 for ac_prog in netstat
5797 # Extract the first word of "$ac_prog", so it can be a program name with args.
5798 set dummy $ac_prog; ac_word=$2
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5800 $as_echo_n "checking for $ac_word... " >&6; }
5801 if ${ac_cv_prog_NETSTAT+:} false; then :
5802 $as_echo_n "(cached) " >&6
5803 else
5804 if test -n "$NETSTAT"; then
5805 ac_cv_prog_NETSTAT="$NETSTAT" # Let the user override the test.
5806 else
5807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5808 as_dummy="$PATH:/usr/local/sbin:/usr/sbin:/sbin:/etc"
5809 for as_dir in $as_dummy
5811 IFS=$as_save_IFS
5812 test -z "$as_dir" && as_dir=.
5813 for ac_exec_ext in '' $ac_executable_extensions; do
5814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5815 ac_cv_prog_NETSTAT="$ac_prog"
5816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5817 break 2
5819 done
5820 done
5821 IFS=$as_save_IFS
5825 NETSTAT=$ac_cv_prog_NETSTAT
5826 if test -n "$NETSTAT"; then
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NETSTAT" >&5
5828 $as_echo "$NETSTAT" >&6; }
5829 else
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5831 $as_echo "no" >&6; }
5835 test -n "$NETSTAT" && break
5836 done
5837 test -n "$NETSTAT" || NETSTAT="netstat"
5838 # tests
5839 for ac_prog in man2html
5841 # Extract the first word of "$ac_prog", so it can be a program name with args.
5842 set dummy $ac_prog; ac_word=$2
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5844 $as_echo_n "checking for $ac_word... " >&6; }
5845 if ${ac_cv_prog_MAN2HTML+:} false; then :
5846 $as_echo_n "(cached) " >&6
5847 else
5848 if test -n "$MAN2HTML"; then
5849 ac_cv_prog_MAN2HTML="$MAN2HTML" # Let the user override the test.
5850 else
5851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5852 for as_dir in $PATH
5854 IFS=$as_save_IFS
5855 test -z "$as_dir" && as_dir=.
5856 for ac_exec_ext in '' $ac_executable_extensions; do
5857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5858 ac_cv_prog_MAN2HTML="$ac_prog"
5859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5860 break 2
5862 done
5863 done
5864 IFS=$as_save_IFS
5868 MAN2HTML=$ac_cv_prog_MAN2HTML
5869 if test -n "$MAN2HTML"; then
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAN2HTML" >&5
5871 $as_echo "$MAN2HTML" >&6; }
5872 else
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5874 $as_echo "no" >&6; }
5878 test -n "$MAN2HTML" && break
5879 done
5881 for ac_prog in git
5883 # Extract the first word of "$ac_prog", so it can be a program name with args.
5884 set dummy $ac_prog; ac_word=$2
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5886 $as_echo_n "checking for $ac_word... " >&6; }
5887 if ${ac_cv_prog_GIT+:} false; then :
5888 $as_echo_n "(cached) " >&6
5889 else
5890 if test -n "$GIT"; then
5891 ac_cv_prog_GIT="$GIT" # Let the user override the test.
5892 else
5893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5894 for as_dir in $PATH
5896 IFS=$as_save_IFS
5897 test -z "$as_dir" && as_dir=.
5898 for ac_exec_ext in '' $ac_executable_extensions; do
5899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5900 ac_cv_prog_GIT="$ac_prog"
5901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5902 break 2
5904 done
5905 done
5906 IFS=$as_save_IFS
5910 GIT=$ac_cv_prog_GIT
5911 if test -n "$GIT"; then
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
5913 $as_echo "$GIT" >&6; }
5914 else
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5916 $as_echo "no" >&6; }
5920 test -n "$GIT" && break
5921 done
5922 # optional
5924 cat >>confdefs.h <<_ACEOF
5925 #define IFCONFIG_PATH "$IFCONFIG"
5926 _ACEOF
5929 cat >>confdefs.h <<_ACEOF
5930 #define IPROUTE_PATH "$IPROUTE"
5931 _ACEOF
5934 cat >>confdefs.h <<_ACEOF
5935 #define ROUTE_PATH "$ROUTE"
5936 _ACEOF
5940 # Libtool
5943 case `pwd` in
5944 *\ * | *\ *)
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5946 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5947 esac
5951 macro_version='2.4.2'
5952 macro_revision='1.3337'
5966 ltmain="$ac_aux_dir/ltmain.sh"
5968 # Backslashify metacharacters that are still active within
5969 # double-quoted strings.
5970 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5972 # Same as above, but do not quote variable references.
5973 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5975 # Sed substitution to delay expansion of an escaped shell variable in a
5976 # double_quote_subst'ed string.
5977 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5979 # Sed substitution to delay expansion of an escaped single quote.
5980 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5982 # Sed substitution to avoid accidental globbing in evaled expressions
5983 no_glob_subst='s/\*/\\\*/g'
5985 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5986 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5987 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5990 $as_echo_n "checking how to print strings... " >&6; }
5991 # Test print first, because it will be a builtin if present.
5992 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5993 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5994 ECHO='print -r --'
5995 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5996 ECHO='printf %s\n'
5997 else
5998 # Use this function as a fallback that always works.
5999 func_fallback_echo ()
6001 eval 'cat <<_LTECHO_EOF
6003 _LTECHO_EOF'
6005 ECHO='func_fallback_echo'
6008 # func_echo_all arg...
6009 # Invoke $ECHO with all args, space-separated.
6010 func_echo_all ()
6012 $ECHO ""
6015 case "$ECHO" in
6016 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6017 $as_echo "printf" >&6; } ;;
6018 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6019 $as_echo "print -r" >&6; } ;;
6020 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6021 $as_echo "cat" >&6; } ;;
6022 esac
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6038 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6039 if ${ac_cv_path_SED+:} false; then :
6040 $as_echo_n "(cached) " >&6
6041 else
6042 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6043 for ac_i in 1 2 3 4 5 6 7; do
6044 ac_script="$ac_script$as_nl$ac_script"
6045 done
6046 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6047 { ac_script=; unset ac_script;}
6048 if test -z "$SED"; then
6049 ac_path_SED_found=false
6050 # Loop through the user's path and test for each of PROGNAME-LIST
6051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6052 for as_dir in $PATH
6054 IFS=$as_save_IFS
6055 test -z "$as_dir" && as_dir=.
6056 for ac_prog in sed gsed; do
6057 for ac_exec_ext in '' $ac_executable_extensions; do
6058 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6059 as_fn_executable_p "$ac_path_SED" || continue
6060 # Check for GNU ac_path_SED and select it if it is found.
6061 # Check for GNU $ac_path_SED
6062 case `"$ac_path_SED" --version 2>&1` in
6063 *GNU*)
6064 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6066 ac_count=0
6067 $as_echo_n 0123456789 >"conftest.in"
6068 while :
6070 cat "conftest.in" "conftest.in" >"conftest.tmp"
6071 mv "conftest.tmp" "conftest.in"
6072 cp "conftest.in" "conftest.nl"
6073 $as_echo '' >> "conftest.nl"
6074 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6075 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6076 as_fn_arith $ac_count + 1 && ac_count=$as_val
6077 if test $ac_count -gt ${ac_path_SED_max-0}; then
6078 # Best one so far, save it but keep looking for a better one
6079 ac_cv_path_SED="$ac_path_SED"
6080 ac_path_SED_max=$ac_count
6082 # 10*(2^10) chars as input seems more than enough
6083 test $ac_count -gt 10 && break
6084 done
6085 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6086 esac
6088 $ac_path_SED_found && break 3
6089 done
6090 done
6091 done
6092 IFS=$as_save_IFS
6093 if test -z "$ac_cv_path_SED"; then
6094 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6096 else
6097 ac_cv_path_SED=$SED
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6102 $as_echo "$ac_cv_path_SED" >&6; }
6103 SED="$ac_cv_path_SED"
6104 rm -f conftest.sed
6106 test -z "$SED" && SED=sed
6107 Xsed="$SED -e 1s/^X//"
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6120 $as_echo_n "checking for fgrep... " >&6; }
6121 if ${ac_cv_path_FGREP+:} false; then :
6122 $as_echo_n "(cached) " >&6
6123 else
6124 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6125 then ac_cv_path_FGREP="$GREP -F"
6126 else
6127 if test -z "$FGREP"; then
6128 ac_path_FGREP_found=false
6129 # Loop through the user's path and test for each of PROGNAME-LIST
6130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6131 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6133 IFS=$as_save_IFS
6134 test -z "$as_dir" && as_dir=.
6135 for ac_prog in fgrep; do
6136 for ac_exec_ext in '' $ac_executable_extensions; do
6137 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6138 as_fn_executable_p "$ac_path_FGREP" || continue
6139 # Check for GNU ac_path_FGREP and select it if it is found.
6140 # Check for GNU $ac_path_FGREP
6141 case `"$ac_path_FGREP" --version 2>&1` in
6142 *GNU*)
6143 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6145 ac_count=0
6146 $as_echo_n 0123456789 >"conftest.in"
6147 while :
6149 cat "conftest.in" "conftest.in" >"conftest.tmp"
6150 mv "conftest.tmp" "conftest.in"
6151 cp "conftest.in" "conftest.nl"
6152 $as_echo 'FGREP' >> "conftest.nl"
6153 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6154 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6155 as_fn_arith $ac_count + 1 && ac_count=$as_val
6156 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6157 # Best one so far, save it but keep looking for a better one
6158 ac_cv_path_FGREP="$ac_path_FGREP"
6159 ac_path_FGREP_max=$ac_count
6161 # 10*(2^10) chars as input seems more than enough
6162 test $ac_count -gt 10 && break
6163 done
6164 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6165 esac
6167 $ac_path_FGREP_found && break 3
6168 done
6169 done
6170 done
6171 IFS=$as_save_IFS
6172 if test -z "$ac_cv_path_FGREP"; then
6173 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6175 else
6176 ac_cv_path_FGREP=$FGREP
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6182 $as_echo "$ac_cv_path_FGREP" >&6; }
6183 FGREP="$ac_cv_path_FGREP"
6186 test -z "$GREP" && GREP=grep
6206 # Check whether --with-gnu-ld was given.
6207 if test "${with_gnu_ld+set}" = set; then :
6208 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6209 else
6210 with_gnu_ld=no
6213 ac_prog=ld
6214 if test "$GCC" = yes; then
6215 # Check if gcc -print-prog-name=ld gives a path.
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6217 $as_echo_n "checking for ld used by $CC... " >&6; }
6218 case $host in
6219 *-*-mingw*)
6220 # gcc leaves a trailing carriage return which upsets mingw
6221 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6223 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6224 esac
6225 case $ac_prog in
6226 # Accept absolute paths.
6227 [\\/]* | ?:[\\/]*)
6228 re_direlt='/[^/][^/]*/\.\./'
6229 # Canonicalize the pathname of ld
6230 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6231 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6232 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6233 done
6234 test -z "$LD" && LD="$ac_prog"
6237 # If it fails, then pretend we aren't using GCC.
6238 ac_prog=ld
6241 # If it is relative, then search for the first ld in PATH.
6242 with_gnu_ld=unknown
6244 esac
6245 elif test "$with_gnu_ld" = yes; then
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6247 $as_echo_n "checking for GNU ld... " >&6; }
6248 else
6249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6250 $as_echo_n "checking for non-GNU ld... " >&6; }
6252 if ${lt_cv_path_LD+:} false; then :
6253 $as_echo_n "(cached) " >&6
6254 else
6255 if test -z "$LD"; then
6256 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6257 for ac_dir in $PATH; do
6258 IFS="$lt_save_ifs"
6259 test -z "$ac_dir" && ac_dir=.
6260 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6261 lt_cv_path_LD="$ac_dir/$ac_prog"
6262 # Check to see if the program is GNU ld. I'd rather use --version,
6263 # but apparently some variants of GNU ld only accept -v.
6264 # Break only if it was the GNU/non-GNU ld that we prefer.
6265 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6266 *GNU* | *'with BFD'*)
6267 test "$with_gnu_ld" != no && break
6270 test "$with_gnu_ld" != yes && break
6272 esac
6274 done
6275 IFS="$lt_save_ifs"
6276 else
6277 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6281 LD="$lt_cv_path_LD"
6282 if test -n "$LD"; then
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6284 $as_echo "$LD" >&6; }
6285 else
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6287 $as_echo "no" >&6; }
6289 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6291 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6292 if ${lt_cv_prog_gnu_ld+:} false; then :
6293 $as_echo_n "(cached) " >&6
6294 else
6295 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6296 case `$LD -v 2>&1 </dev/null` in
6297 *GNU* | *'with BFD'*)
6298 lt_cv_prog_gnu_ld=yes
6301 lt_cv_prog_gnu_ld=no
6303 esac
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6306 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6307 with_gnu_ld=$lt_cv_prog_gnu_ld
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6318 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6319 if ${lt_cv_path_NM+:} false; then :
6320 $as_echo_n "(cached) " >&6
6321 else
6322 if test -n "$NM"; then
6323 # Let the user override the test.
6324 lt_cv_path_NM="$NM"
6325 else
6326 lt_nm_to_check="${ac_tool_prefix}nm"
6327 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6328 lt_nm_to_check="$lt_nm_to_check nm"
6330 for lt_tmp_nm in $lt_nm_to_check; do
6331 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6332 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6333 IFS="$lt_save_ifs"
6334 test -z "$ac_dir" && ac_dir=.
6335 tmp_nm="$ac_dir/$lt_tmp_nm"
6336 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6337 # Check to see if the nm accepts a BSD-compat flag.
6338 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6339 # nm: unknown option "B" ignored
6340 # Tru64's nm complains that /dev/null is an invalid object file
6341 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6342 */dev/null* | *'Invalid file or object type'*)
6343 lt_cv_path_NM="$tmp_nm -B"
6344 break
6347 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6348 */dev/null*)
6349 lt_cv_path_NM="$tmp_nm -p"
6350 break
6353 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6354 continue # so that we can try to find one that supports BSD flags
6356 esac
6358 esac
6360 done
6361 IFS="$lt_save_ifs"
6362 done
6363 : ${lt_cv_path_NM=no}
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6367 $as_echo "$lt_cv_path_NM" >&6; }
6368 if test "$lt_cv_path_NM" != "no"; then
6369 NM="$lt_cv_path_NM"
6370 else
6371 # Didn't find any BSD compatible name lister, look for dumpbin.
6372 if test -n "$DUMPBIN"; then :
6373 # Let the user override the test.
6374 else
6375 if test -n "$ac_tool_prefix"; then
6376 for ac_prog in dumpbin "link -dump"
6378 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6379 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6381 $as_echo_n "checking for $ac_word... " >&6; }
6382 if ${ac_cv_prog_DUMPBIN+:} false; then :
6383 $as_echo_n "(cached) " >&6
6384 else
6385 if test -n "$DUMPBIN"; then
6386 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6387 else
6388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6389 for as_dir in $PATH
6391 IFS=$as_save_IFS
6392 test -z "$as_dir" && as_dir=.
6393 for ac_exec_ext in '' $ac_executable_extensions; do
6394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6395 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6397 break 2
6399 done
6400 done
6401 IFS=$as_save_IFS
6405 DUMPBIN=$ac_cv_prog_DUMPBIN
6406 if test -n "$DUMPBIN"; then
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6408 $as_echo "$DUMPBIN" >&6; }
6409 else
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6411 $as_echo "no" >&6; }
6415 test -n "$DUMPBIN" && break
6416 done
6418 if test -z "$DUMPBIN"; then
6419 ac_ct_DUMPBIN=$DUMPBIN
6420 for ac_prog in dumpbin "link -dump"
6422 # Extract the first word of "$ac_prog", so it can be a program name with args.
6423 set dummy $ac_prog; ac_word=$2
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6425 $as_echo_n "checking for $ac_word... " >&6; }
6426 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6427 $as_echo_n "(cached) " >&6
6428 else
6429 if test -n "$ac_ct_DUMPBIN"; then
6430 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6431 else
6432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6433 for as_dir in $PATH
6435 IFS=$as_save_IFS
6436 test -z "$as_dir" && as_dir=.
6437 for ac_exec_ext in '' $ac_executable_extensions; do
6438 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6439 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6441 break 2
6443 done
6444 done
6445 IFS=$as_save_IFS
6449 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6450 if test -n "$ac_ct_DUMPBIN"; then
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6452 $as_echo "$ac_ct_DUMPBIN" >&6; }
6453 else
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6455 $as_echo "no" >&6; }
6459 test -n "$ac_ct_DUMPBIN" && break
6460 done
6462 if test "x$ac_ct_DUMPBIN" = x; then
6463 DUMPBIN=":"
6464 else
6465 case $cross_compiling:$ac_tool_warned in
6466 yes:)
6467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6468 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6469 ac_tool_warned=yes ;;
6470 esac
6471 DUMPBIN=$ac_ct_DUMPBIN
6475 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6476 *COFF*)
6477 DUMPBIN="$DUMPBIN -symbols"
6480 DUMPBIN=:
6482 esac
6485 if test "$DUMPBIN" != ":"; then
6486 NM="$DUMPBIN"
6489 test -z "$NM" && NM=nm
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6497 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6498 if ${lt_cv_nm_interface+:} false; then :
6499 $as_echo_n "(cached) " >&6
6500 else
6501 lt_cv_nm_interface="BSD nm"
6502 echo "int some_variable = 0;" > conftest.$ac_ext
6503 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6504 (eval "$ac_compile" 2>conftest.err)
6505 cat conftest.err >&5
6506 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6507 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6508 cat conftest.err >&5
6509 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6510 cat conftest.out >&5
6511 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6512 lt_cv_nm_interface="MS dumpbin"
6514 rm -f conftest*
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6517 $as_echo "$lt_cv_nm_interface" >&6; }
6519 # find the maximum length of command line arguments
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6521 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6522 if ${lt_cv_sys_max_cmd_len+:} false; then :
6523 $as_echo_n "(cached) " >&6
6524 else
6526 teststring="ABCD"
6528 case $build_os in
6529 msdosdjgpp*)
6530 # On DJGPP, this test can blow up pretty badly due to problems in libc
6531 # (any single argument exceeding 2000 bytes causes a buffer overrun
6532 # during glob expansion). Even if it were fixed, the result of this
6533 # check would be larger than it should be.
6534 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6537 gnu*)
6538 # Under GNU Hurd, this test is not required because there is
6539 # no limit to the length of command line arguments.
6540 # Libtool will interpret -1 as no limit whatsoever
6541 lt_cv_sys_max_cmd_len=-1;
6544 cygwin* | mingw* | cegcc*)
6545 # On Win9x/ME, this test blows up -- it succeeds, but takes
6546 # about 5 minutes as the teststring grows exponentially.
6547 # Worse, since 9x/ME are not pre-emptively multitasking,
6548 # you end up with a "frozen" computer, even though with patience
6549 # the test eventually succeeds (with a max line length of 256k).
6550 # Instead, let's just punt: use the minimum linelength reported by
6551 # all of the supported platforms: 8192 (on NT/2K/XP).
6552 lt_cv_sys_max_cmd_len=8192;
6555 mint*)
6556 # On MiNT this can take a long time and run out of memory.
6557 lt_cv_sys_max_cmd_len=8192;
6560 amigaos*)
6561 # On AmigaOS with pdksh, this test takes hours, literally.
6562 # So we just punt and use a minimum line length of 8192.
6563 lt_cv_sys_max_cmd_len=8192;
6566 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6567 # This has been around since 386BSD, at least. Likely further.
6568 if test -x /sbin/sysctl; then
6569 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6570 elif test -x /usr/sbin/sysctl; then
6571 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6572 else
6573 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6575 # And add a safety zone
6576 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6577 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6580 interix*)
6581 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6582 lt_cv_sys_max_cmd_len=196608
6585 os2*)
6586 # The test takes a long time on OS/2.
6587 lt_cv_sys_max_cmd_len=8192
6590 osf*)
6591 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6592 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6593 # nice to cause kernel panics so lets avoid the loop below.
6594 # First set a reasonable default.
6595 lt_cv_sys_max_cmd_len=16384
6597 if test -x /sbin/sysconfig; then
6598 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6599 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6600 esac
6603 sco3.2v5*)
6604 lt_cv_sys_max_cmd_len=102400
6606 sysv5* | sco5v6* | sysv4.2uw2*)
6607 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6608 if test -n "$kargmax"; then
6609 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6610 else
6611 lt_cv_sys_max_cmd_len=32768
6615 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6616 if test -n "$lt_cv_sys_max_cmd_len"; then
6617 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6618 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6619 else
6620 # Make teststring a little bigger before we do anything with it.
6621 # a 1K string should be a reasonable start.
6622 for i in 1 2 3 4 5 6 7 8 ; do
6623 teststring=$teststring$teststring
6624 done
6625 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6626 # If test is not a shell built-in, we'll probably end up computing a
6627 # maximum length that is only half of the actual maximum length, but
6628 # we can't tell.
6629 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6630 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6631 test $i != 17 # 1/2 MB should be enough
6633 i=`expr $i + 1`
6634 teststring=$teststring$teststring
6635 done
6636 # Only check the string length outside the loop.
6637 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6638 teststring=
6639 # Add a significant safety factor because C++ compilers can tack on
6640 # massive amounts of additional arguments before passing them to the
6641 # linker. It appears as though 1/2 is a usable value.
6642 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6645 esac
6649 if test -n $lt_cv_sys_max_cmd_len ; then
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6651 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6652 else
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6654 $as_echo "none" >&6; }
6656 max_cmd_len=$lt_cv_sys_max_cmd_len
6663 : ${CP="cp -f"}
6664 : ${MV="mv -f"}
6665 : ${RM="rm -f"}
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6668 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6669 # Try some XSI features
6670 xsi_shell=no
6671 ( _lt_dummy="a/b/c"
6672 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6673 = c,a/b,b/c, \
6674 && eval 'test $(( 1 + 1 )) -eq 2 \
6675 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6676 && xsi_shell=yes
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6678 $as_echo "$xsi_shell" >&6; }
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6682 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6683 lt_shell_append=no
6684 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6685 >/dev/null 2>&1 \
6686 && lt_shell_append=yes
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6688 $as_echo "$lt_shell_append" >&6; }
6691 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6692 lt_unset=unset
6693 else
6694 lt_unset=false
6701 # test EBCDIC or ASCII
6702 case `echo X|tr X '\101'` in
6703 A) # ASCII based system
6704 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6705 lt_SP2NL='tr \040 \012'
6706 lt_NL2SP='tr \015\012 \040\040'
6708 *) # EBCDIC based system
6709 lt_SP2NL='tr \100 \n'
6710 lt_NL2SP='tr \r\n \100\100'
6712 esac
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6723 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6724 if ${lt_cv_to_host_file_cmd+:} false; then :
6725 $as_echo_n "(cached) " >&6
6726 else
6727 case $host in
6728 *-*-mingw* )
6729 case $build in
6730 *-*-mingw* ) # actually msys
6731 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6733 *-*-cygwin* )
6734 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6736 * ) # otherwise, assume *nix
6737 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6739 esac
6741 *-*-cygwin* )
6742 case $build in
6743 *-*-mingw* ) # actually msys
6744 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6746 *-*-cygwin* )
6747 lt_cv_to_host_file_cmd=func_convert_file_noop
6749 * ) # otherwise, assume *nix
6750 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6752 esac
6754 * ) # unhandled hosts (and "normal" native builds)
6755 lt_cv_to_host_file_cmd=func_convert_file_noop
6757 esac
6761 to_host_file_cmd=$lt_cv_to_host_file_cmd
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6763 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6770 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6771 if ${lt_cv_to_tool_file_cmd+:} false; then :
6772 $as_echo_n "(cached) " >&6
6773 else
6774 #assume ordinary cross tools, or native build.
6775 lt_cv_to_tool_file_cmd=func_convert_file_noop
6776 case $host in
6777 *-*-mingw* )
6778 case $build in
6779 *-*-mingw* ) # actually msys
6780 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6782 esac
6784 esac
6788 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6790 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6797 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6798 if ${lt_cv_ld_reload_flag+:} false; then :
6799 $as_echo_n "(cached) " >&6
6800 else
6801 lt_cv_ld_reload_flag='-r'
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6804 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6805 reload_flag=$lt_cv_ld_reload_flag
6806 case $reload_flag in
6807 "" | " "*) ;;
6808 *) reload_flag=" $reload_flag" ;;
6809 esac
6810 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6811 case $host_os in
6812 cygwin* | mingw* | pw32* | cegcc*)
6813 if test "$GCC" != yes; then
6814 reload_cmds=false
6817 darwin*)
6818 if test "$GCC" = yes; then
6819 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6820 else
6821 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6824 esac
6834 if test -n "$ac_tool_prefix"; then
6835 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6836 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6838 $as_echo_n "checking for $ac_word... " >&6; }
6839 if ${ac_cv_prog_OBJDUMP+:} false; then :
6840 $as_echo_n "(cached) " >&6
6841 else
6842 if test -n "$OBJDUMP"; then
6843 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6844 else
6845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6846 for as_dir in $PATH
6848 IFS=$as_save_IFS
6849 test -z "$as_dir" && as_dir=.
6850 for ac_exec_ext in '' $ac_executable_extensions; do
6851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6852 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6854 break 2
6856 done
6857 done
6858 IFS=$as_save_IFS
6862 OBJDUMP=$ac_cv_prog_OBJDUMP
6863 if test -n "$OBJDUMP"; then
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6865 $as_echo "$OBJDUMP" >&6; }
6866 else
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6868 $as_echo "no" >&6; }
6873 if test -z "$ac_cv_prog_OBJDUMP"; then
6874 ac_ct_OBJDUMP=$OBJDUMP
6875 # Extract the first word of "objdump", so it can be a program name with args.
6876 set dummy objdump; ac_word=$2
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6878 $as_echo_n "checking for $ac_word... " >&6; }
6879 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6880 $as_echo_n "(cached) " >&6
6881 else
6882 if test -n "$ac_ct_OBJDUMP"; then
6883 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6884 else
6885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6886 for as_dir in $PATH
6888 IFS=$as_save_IFS
6889 test -z "$as_dir" && as_dir=.
6890 for ac_exec_ext in '' $ac_executable_extensions; do
6891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6892 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6894 break 2
6896 done
6897 done
6898 IFS=$as_save_IFS
6902 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6903 if test -n "$ac_ct_OBJDUMP"; then
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6905 $as_echo "$ac_ct_OBJDUMP" >&6; }
6906 else
6907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6908 $as_echo "no" >&6; }
6911 if test "x$ac_ct_OBJDUMP" = x; then
6912 OBJDUMP="false"
6913 else
6914 case $cross_compiling:$ac_tool_warned in
6915 yes:)
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6917 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6918 ac_tool_warned=yes ;;
6919 esac
6920 OBJDUMP=$ac_ct_OBJDUMP
6922 else
6923 OBJDUMP="$ac_cv_prog_OBJDUMP"
6926 test -z "$OBJDUMP" && OBJDUMP=objdump
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6934 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6935 if ${lt_cv_deplibs_check_method+:} false; then :
6936 $as_echo_n "(cached) " >&6
6937 else
6938 lt_cv_file_magic_cmd='$MAGIC_CMD'
6939 lt_cv_file_magic_test_file=
6940 lt_cv_deplibs_check_method='unknown'
6941 # Need to set the preceding variable on all platforms that support
6942 # interlibrary dependencies.
6943 # 'none' -- dependencies not supported.
6944 # `unknown' -- same as none, but documents that we really don't know.
6945 # 'pass_all' -- all dependencies passed with no checks.
6946 # 'test_compile' -- check by making test program.
6947 # 'file_magic [[regex]]' -- check by looking for files in library path
6948 # which responds to the $file_magic_cmd with a given extended regex.
6949 # If you have `file' or equivalent on your system and you're not sure
6950 # whether `pass_all' will *always* work, you probably want this one.
6952 case $host_os in
6953 aix[4-9]*)
6954 lt_cv_deplibs_check_method=pass_all
6957 beos*)
6958 lt_cv_deplibs_check_method=pass_all
6961 bsdi[45]*)
6962 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6963 lt_cv_file_magic_cmd='/usr/bin/file -L'
6964 lt_cv_file_magic_test_file=/shlib/libc.so
6967 cygwin*)
6968 # func_win32_libid is a shell function defined in ltmain.sh
6969 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6970 lt_cv_file_magic_cmd='func_win32_libid'
6973 mingw* | pw32*)
6974 # Base MSYS/MinGW do not provide the 'file' command needed by
6975 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6976 # unless we find 'file', for example because we are cross-compiling.
6977 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6978 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6979 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6980 lt_cv_file_magic_cmd='func_win32_libid'
6981 else
6982 # Keep this pattern in sync with the one in func_win32_libid.
6983 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6984 lt_cv_file_magic_cmd='$OBJDUMP -f'
6988 cegcc*)
6989 # use the weaker test based on 'objdump'. See mingw*.
6990 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6991 lt_cv_file_magic_cmd='$OBJDUMP -f'
6994 darwin* | rhapsody*)
6995 lt_cv_deplibs_check_method=pass_all
6998 freebsd* | dragonfly*)
6999 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7000 case $host_cpu in
7001 i*86 )
7002 # Not sure whether the presence of OpenBSD here was a mistake.
7003 # Let's accept both of them until this is cleared up.
7004 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7005 lt_cv_file_magic_cmd=/usr/bin/file
7006 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7008 esac
7009 else
7010 lt_cv_deplibs_check_method=pass_all
7014 gnu*)
7015 lt_cv_deplibs_check_method=pass_all
7018 haiku*)
7019 lt_cv_deplibs_check_method=pass_all
7022 hpux10.20* | hpux11*)
7023 lt_cv_file_magic_cmd=/usr/bin/file
7024 case $host_cpu in
7025 ia64*)
7026 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7027 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7029 hppa*64*)
7030 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]'
7031 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7034 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7035 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7037 esac
7040 interix[3-9]*)
7041 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7042 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7045 irix5* | irix6* | nonstopux*)
7046 case $LD in
7047 *-32|*"-32 ") libmagic=32-bit;;
7048 *-n32|*"-n32 ") libmagic=N32;;
7049 *-64|*"-64 ") libmagic=64-bit;;
7050 *) libmagic=never-match;;
7051 esac
7052 lt_cv_deplibs_check_method=pass_all
7055 # This must be glibc/ELF.
7056 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7057 lt_cv_deplibs_check_method=pass_all
7060 netbsd* | netbsdelf*-gnu)
7061 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7062 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7063 else
7064 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7068 newos6*)
7069 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7070 lt_cv_file_magic_cmd=/usr/bin/file
7071 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7074 *nto* | *qnx*)
7075 lt_cv_deplibs_check_method=pass_all
7078 openbsd*)
7079 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7080 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7081 else
7082 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7086 osf3* | osf4* | osf5*)
7087 lt_cv_deplibs_check_method=pass_all
7090 rdos*)
7091 lt_cv_deplibs_check_method=pass_all
7094 solaris*)
7095 lt_cv_deplibs_check_method=pass_all
7098 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7099 lt_cv_deplibs_check_method=pass_all
7102 sysv4 | sysv4.3*)
7103 case $host_vendor in
7104 motorola)
7105 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]'
7106 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7108 ncr)
7109 lt_cv_deplibs_check_method=pass_all
7111 sequent)
7112 lt_cv_file_magic_cmd='/bin/file'
7113 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7115 sni)
7116 lt_cv_file_magic_cmd='/bin/file'
7117 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7118 lt_cv_file_magic_test_file=/lib/libc.so
7120 siemens)
7121 lt_cv_deplibs_check_method=pass_all
7124 lt_cv_deplibs_check_method=pass_all
7126 esac
7129 tpf*)
7130 lt_cv_deplibs_check_method=pass_all
7132 esac
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7136 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7138 file_magic_glob=
7139 want_nocaseglob=no
7140 if test "$build" = "$host"; then
7141 case $host_os in
7142 mingw* | pw32*)
7143 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7144 want_nocaseglob=yes
7145 else
7146 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7149 esac
7152 file_magic_cmd=$lt_cv_file_magic_cmd
7153 deplibs_check_method=$lt_cv_deplibs_check_method
7154 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7177 if test -n "$ac_tool_prefix"; then
7178 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7179 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7181 $as_echo_n "checking for $ac_word... " >&6; }
7182 if ${ac_cv_prog_DLLTOOL+:} false; then :
7183 $as_echo_n "(cached) " >&6
7184 else
7185 if test -n "$DLLTOOL"; then
7186 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7187 else
7188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7189 for as_dir in $PATH
7191 IFS=$as_save_IFS
7192 test -z "$as_dir" && as_dir=.
7193 for ac_exec_ext in '' $ac_executable_extensions; do
7194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7195 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7197 break 2
7199 done
7200 done
7201 IFS=$as_save_IFS
7205 DLLTOOL=$ac_cv_prog_DLLTOOL
7206 if test -n "$DLLTOOL"; then
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7208 $as_echo "$DLLTOOL" >&6; }
7209 else
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7211 $as_echo "no" >&6; }
7216 if test -z "$ac_cv_prog_DLLTOOL"; then
7217 ac_ct_DLLTOOL=$DLLTOOL
7218 # Extract the first word of "dlltool", so it can be a program name with args.
7219 set dummy dlltool; ac_word=$2
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7221 $as_echo_n "checking for $ac_word... " >&6; }
7222 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7223 $as_echo_n "(cached) " >&6
7224 else
7225 if test -n "$ac_ct_DLLTOOL"; then
7226 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7227 else
7228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7229 for as_dir in $PATH
7231 IFS=$as_save_IFS
7232 test -z "$as_dir" && as_dir=.
7233 for ac_exec_ext in '' $ac_executable_extensions; do
7234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7235 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7237 break 2
7239 done
7240 done
7241 IFS=$as_save_IFS
7245 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7246 if test -n "$ac_ct_DLLTOOL"; then
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7248 $as_echo "$ac_ct_DLLTOOL" >&6; }
7249 else
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7251 $as_echo "no" >&6; }
7254 if test "x$ac_ct_DLLTOOL" = x; then
7255 DLLTOOL="false"
7256 else
7257 case $cross_compiling:$ac_tool_warned in
7258 yes:)
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7260 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7261 ac_tool_warned=yes ;;
7262 esac
7263 DLLTOOL=$ac_ct_DLLTOOL
7265 else
7266 DLLTOOL="$ac_cv_prog_DLLTOOL"
7269 test -z "$DLLTOOL" && DLLTOOL=dlltool
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7278 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7279 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7280 $as_echo_n "(cached) " >&6
7281 else
7282 lt_cv_sharedlib_from_linklib_cmd='unknown'
7284 case $host_os in
7285 cygwin* | mingw* | pw32* | cegcc*)
7286 # two different shell functions defined in ltmain.sh
7287 # decide which to use based on capabilities of $DLLTOOL
7288 case `$DLLTOOL --help 2>&1` in
7289 *--identify-strict*)
7290 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7293 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7295 esac
7298 # fallback: assume linklib IS sharedlib
7299 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7301 esac
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7305 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7306 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7307 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7315 if test -n "$ac_tool_prefix"; then
7316 for ac_prog in ar
7318 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7319 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7321 $as_echo_n "checking for $ac_word... " >&6; }
7322 if ${ac_cv_prog_AR+:} false; then :
7323 $as_echo_n "(cached) " >&6
7324 else
7325 if test -n "$AR"; then
7326 ac_cv_prog_AR="$AR" # Let the user override the test.
7327 else
7328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7329 for as_dir in $PATH
7331 IFS=$as_save_IFS
7332 test -z "$as_dir" && as_dir=.
7333 for ac_exec_ext in '' $ac_executable_extensions; do
7334 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7335 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7337 break 2
7339 done
7340 done
7341 IFS=$as_save_IFS
7345 AR=$ac_cv_prog_AR
7346 if test -n "$AR"; then
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7348 $as_echo "$AR" >&6; }
7349 else
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7351 $as_echo "no" >&6; }
7355 test -n "$AR" && break
7356 done
7358 if test -z "$AR"; then
7359 ac_ct_AR=$AR
7360 for ac_prog in ar
7362 # Extract the first word of "$ac_prog", so it can be a program name with args.
7363 set dummy $ac_prog; ac_word=$2
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7365 $as_echo_n "checking for $ac_word... " >&6; }
7366 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7367 $as_echo_n "(cached) " >&6
7368 else
7369 if test -n "$ac_ct_AR"; then
7370 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7371 else
7372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7373 for as_dir in $PATH
7375 IFS=$as_save_IFS
7376 test -z "$as_dir" && as_dir=.
7377 for ac_exec_ext in '' $ac_executable_extensions; do
7378 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7379 ac_cv_prog_ac_ct_AR="$ac_prog"
7380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7381 break 2
7383 done
7384 done
7385 IFS=$as_save_IFS
7389 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7390 if test -n "$ac_ct_AR"; then
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7392 $as_echo "$ac_ct_AR" >&6; }
7393 else
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7395 $as_echo "no" >&6; }
7399 test -n "$ac_ct_AR" && break
7400 done
7402 if test "x$ac_ct_AR" = x; then
7403 AR="false"
7404 else
7405 case $cross_compiling:$ac_tool_warned in
7406 yes:)
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7408 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7409 ac_tool_warned=yes ;;
7410 esac
7411 AR=$ac_ct_AR
7415 : ${AR=ar}
7416 : ${AR_FLAGS=cru}
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7429 $as_echo_n "checking for archiver @FILE support... " >&6; }
7430 if ${lt_cv_ar_at_file+:} false; then :
7431 $as_echo_n "(cached) " >&6
7432 else
7433 lt_cv_ar_at_file=no
7434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7435 /* end confdefs.h. */
7438 main ()
7442 return 0;
7444 _ACEOF
7445 if ac_fn_c_try_compile "$LINENO"; then :
7446 echo conftest.$ac_objext > conftest.lst
7447 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7448 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7449 (eval $lt_ar_try) 2>&5
7450 ac_status=$?
7451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7452 test $ac_status = 0; }
7453 if test "$ac_status" -eq 0; then
7454 # Ensure the archiver fails upon bogus file names.
7455 rm -f conftest.$ac_objext libconftest.a
7456 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7457 (eval $lt_ar_try) 2>&5
7458 ac_status=$?
7459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7460 test $ac_status = 0; }
7461 if test "$ac_status" -ne 0; then
7462 lt_cv_ar_at_file=@
7465 rm -f conftest.* libconftest.a
7468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7472 $as_echo "$lt_cv_ar_at_file" >&6; }
7474 if test "x$lt_cv_ar_at_file" = xno; then
7475 archiver_list_spec=
7476 else
7477 archiver_list_spec=$lt_cv_ar_at_file
7486 if test -n "$ac_tool_prefix"; then
7487 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7488 set dummy ${ac_tool_prefix}strip; ac_word=$2
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7490 $as_echo_n "checking for $ac_word... " >&6; }
7491 if ${ac_cv_prog_STRIP+:} false; then :
7492 $as_echo_n "(cached) " >&6
7493 else
7494 if test -n "$STRIP"; then
7495 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7496 else
7497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7498 for as_dir in $PATH
7500 IFS=$as_save_IFS
7501 test -z "$as_dir" && as_dir=.
7502 for ac_exec_ext in '' $ac_executable_extensions; do
7503 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7504 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7506 break 2
7508 done
7509 done
7510 IFS=$as_save_IFS
7514 STRIP=$ac_cv_prog_STRIP
7515 if test -n "$STRIP"; then
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7517 $as_echo "$STRIP" >&6; }
7518 else
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7520 $as_echo "no" >&6; }
7525 if test -z "$ac_cv_prog_STRIP"; then
7526 ac_ct_STRIP=$STRIP
7527 # Extract the first word of "strip", so it can be a program name with args.
7528 set dummy strip; ac_word=$2
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7530 $as_echo_n "checking for $ac_word... " >&6; }
7531 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7532 $as_echo_n "(cached) " >&6
7533 else
7534 if test -n "$ac_ct_STRIP"; then
7535 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7536 else
7537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7538 for as_dir in $PATH
7540 IFS=$as_save_IFS
7541 test -z "$as_dir" && as_dir=.
7542 for ac_exec_ext in '' $ac_executable_extensions; do
7543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7544 ac_cv_prog_ac_ct_STRIP="strip"
7545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7546 break 2
7548 done
7549 done
7550 IFS=$as_save_IFS
7554 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7555 if test -n "$ac_ct_STRIP"; then
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7557 $as_echo "$ac_ct_STRIP" >&6; }
7558 else
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7560 $as_echo "no" >&6; }
7563 if test "x$ac_ct_STRIP" = x; then
7564 STRIP=":"
7565 else
7566 case $cross_compiling:$ac_tool_warned in
7567 yes:)
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7569 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7570 ac_tool_warned=yes ;;
7571 esac
7572 STRIP=$ac_ct_STRIP
7574 else
7575 STRIP="$ac_cv_prog_STRIP"
7578 test -z "$STRIP" && STRIP=:
7585 if test -n "$ac_tool_prefix"; then
7586 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7587 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7589 $as_echo_n "checking for $ac_word... " >&6; }
7590 if ${ac_cv_prog_RANLIB+:} false; then :
7591 $as_echo_n "(cached) " >&6
7592 else
7593 if test -n "$RANLIB"; then
7594 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7595 else
7596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7597 for as_dir in $PATH
7599 IFS=$as_save_IFS
7600 test -z "$as_dir" && as_dir=.
7601 for ac_exec_ext in '' $ac_executable_extensions; do
7602 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7603 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7605 break 2
7607 done
7608 done
7609 IFS=$as_save_IFS
7613 RANLIB=$ac_cv_prog_RANLIB
7614 if test -n "$RANLIB"; then
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7616 $as_echo "$RANLIB" >&6; }
7617 else
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7619 $as_echo "no" >&6; }
7624 if test -z "$ac_cv_prog_RANLIB"; then
7625 ac_ct_RANLIB=$RANLIB
7626 # Extract the first word of "ranlib", so it can be a program name with args.
7627 set dummy ranlib; ac_word=$2
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7629 $as_echo_n "checking for $ac_word... " >&6; }
7630 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7631 $as_echo_n "(cached) " >&6
7632 else
7633 if test -n "$ac_ct_RANLIB"; then
7634 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7635 else
7636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7637 for as_dir in $PATH
7639 IFS=$as_save_IFS
7640 test -z "$as_dir" && as_dir=.
7641 for ac_exec_ext in '' $ac_executable_extensions; do
7642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7643 ac_cv_prog_ac_ct_RANLIB="ranlib"
7644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7645 break 2
7647 done
7648 done
7649 IFS=$as_save_IFS
7653 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7654 if test -n "$ac_ct_RANLIB"; then
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7656 $as_echo "$ac_ct_RANLIB" >&6; }
7657 else
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7659 $as_echo "no" >&6; }
7662 if test "x$ac_ct_RANLIB" = x; then
7663 RANLIB=":"
7664 else
7665 case $cross_compiling:$ac_tool_warned in
7666 yes:)
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7668 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7669 ac_tool_warned=yes ;;
7670 esac
7671 RANLIB=$ac_ct_RANLIB
7673 else
7674 RANLIB="$ac_cv_prog_RANLIB"
7677 test -z "$RANLIB" && RANLIB=:
7684 # Determine commands to create old-style static archives.
7685 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7686 old_postinstall_cmds='chmod 644 $oldlib'
7687 old_postuninstall_cmds=
7689 if test -n "$RANLIB"; then
7690 case $host_os in
7691 openbsd*)
7692 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7695 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7697 esac
7698 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7701 case $host_os in
7702 darwin*)
7703 lock_old_archive_extraction=yes ;;
7705 lock_old_archive_extraction=no ;;
7706 esac
7746 # If no C compiler was specified, use CC.
7747 LTCC=${LTCC-"$CC"}
7749 # If no C compiler flags were specified, use CFLAGS.
7750 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7752 # Allow CC to be a program name with arguments.
7753 compiler=$CC
7756 # Check for command to grab the raw symbol name followed by C symbol from nm.
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7758 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7759 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7760 $as_echo_n "(cached) " >&6
7761 else
7763 # These are sane defaults that work on at least a few old systems.
7764 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7766 # Character class describing NM global symbol codes.
7767 symcode='[BCDEGRST]'
7769 # Regexp to match symbols that can be accessed directly from C.
7770 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7772 # Define system-specific variables.
7773 case $host_os in
7774 aix*)
7775 symcode='[BCDT]'
7777 cygwin* | mingw* | pw32* | cegcc*)
7778 symcode='[ABCDGISTW]'
7780 hpux*)
7781 if test "$host_cpu" = ia64; then
7782 symcode='[ABCDEGRST]'
7785 irix* | nonstopux*)
7786 symcode='[BCDEGRST]'
7788 osf*)
7789 symcode='[BCDEGQRST]'
7791 solaris*)
7792 symcode='[BDRT]'
7794 sco3.2v5*)
7795 symcode='[DT]'
7797 sysv4.2uw2*)
7798 symcode='[DT]'
7800 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7801 symcode='[ABDT]'
7803 sysv4)
7804 symcode='[DFNSTU]'
7806 esac
7808 # If we're using GNU nm, then use its standard symbol codes.
7809 case `$NM -V 2>&1` in
7810 *GNU* | *'with BFD'*)
7811 symcode='[ABCDGIRSTW]' ;;
7812 esac
7814 # Transform an extracted symbol line into a proper C declaration.
7815 # Some systems (esp. on ia64) link data and code symbols differently,
7816 # so use this general approach.
7817 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7819 # Transform an extracted symbol line into symbol name and symbol address
7820 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7821 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'"
7823 # Handle CRLF in mingw tool chain
7824 opt_cr=
7825 case $build_os in
7826 mingw*)
7827 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7829 esac
7831 # Try without a prefix underscore, then with it.
7832 for ac_symprfx in "" "_"; do
7834 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7835 symxfrm="\\1 $ac_symprfx\\2 \\2"
7837 # Write the raw and C identifiers.
7838 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7839 # Fake it for dumpbin and say T for any non-static function
7840 # and D for any global variable.
7841 # Also find C++ and __fastcall symbols from MSVC++,
7842 # which start with @ or ?.
7843 lt_cv_sys_global_symbol_pipe="$AWK '"\
7844 " {last_section=section; section=\$ 3};"\
7845 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7846 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7847 " \$ 0!~/External *\|/{next};"\
7848 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7849 " {if(hide[section]) next};"\
7850 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7851 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7852 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7853 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7854 " ' prfx=^$ac_symprfx"
7855 else
7856 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7858 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7860 # Check to see that the pipe works correctly.
7861 pipe_works=no
7863 rm -f conftest*
7864 cat > conftest.$ac_ext <<_LT_EOF
7865 #ifdef __cplusplus
7866 extern "C" {
7867 #endif
7868 char nm_test_var;
7869 void nm_test_func(void);
7870 void nm_test_func(void){}
7871 #ifdef __cplusplus
7873 #endif
7874 int main(){nm_test_var='a';nm_test_func();return(0);}
7875 _LT_EOF
7877 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7878 (eval $ac_compile) 2>&5
7879 ac_status=$?
7880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7881 test $ac_status = 0; }; then
7882 # Now try to grab the symbols.
7883 nlist=conftest.nm
7884 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7885 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7886 ac_status=$?
7887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7888 test $ac_status = 0; } && test -s "$nlist"; then
7889 # Try sorting and uniquifying the output.
7890 if sort "$nlist" | uniq > "$nlist"T; then
7891 mv -f "$nlist"T "$nlist"
7892 else
7893 rm -f "$nlist"T
7896 # Make sure that we snagged all the symbols we need.
7897 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7898 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7899 cat <<_LT_EOF > conftest.$ac_ext
7900 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7901 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7902 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7903 relocations are performed -- see ld's documentation on pseudo-relocs. */
7904 # define LT_DLSYM_CONST
7905 #elif defined(__osf__)
7906 /* This system does not cope well with relocations in const data. */
7907 # define LT_DLSYM_CONST
7908 #else
7909 # define LT_DLSYM_CONST const
7910 #endif
7912 #ifdef __cplusplus
7913 extern "C" {
7914 #endif
7916 _LT_EOF
7917 # Now generate the symbol file.
7918 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7920 cat <<_LT_EOF >> conftest.$ac_ext
7922 /* The mapping between symbol names and symbols. */
7923 LT_DLSYM_CONST struct {
7924 const char *name;
7925 void *address;
7927 lt__PROGRAM__LTX_preloaded_symbols[] =
7929 { "@PROGRAM@", (void *) 0 },
7930 _LT_EOF
7931 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7932 cat <<\_LT_EOF >> conftest.$ac_ext
7933 {0, (void *) 0}
7936 /* This works around a problem in FreeBSD linker */
7937 #ifdef FREEBSD_WORKAROUND
7938 static const void *lt_preloaded_setup() {
7939 return lt__PROGRAM__LTX_preloaded_symbols;
7941 #endif
7943 #ifdef __cplusplus
7945 #endif
7946 _LT_EOF
7947 # Now try linking the two files.
7948 mv conftest.$ac_objext conftstm.$ac_objext
7949 lt_globsym_save_LIBS=$LIBS
7950 lt_globsym_save_CFLAGS=$CFLAGS
7951 LIBS="conftstm.$ac_objext"
7952 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7953 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7954 (eval $ac_link) 2>&5
7955 ac_status=$?
7956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7957 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7958 pipe_works=yes
7960 LIBS=$lt_globsym_save_LIBS
7961 CFLAGS=$lt_globsym_save_CFLAGS
7962 else
7963 echo "cannot find nm_test_func in $nlist" >&5
7965 else
7966 echo "cannot find nm_test_var in $nlist" >&5
7968 else
7969 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7971 else
7972 echo "$progname: failed program was:" >&5
7973 cat conftest.$ac_ext >&5
7975 rm -rf conftest* conftst*
7977 # Do not use the global_symbol_pipe unless it works.
7978 if test "$pipe_works" = yes; then
7979 break
7980 else
7981 lt_cv_sys_global_symbol_pipe=
7983 done
7987 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7988 lt_cv_sys_global_symbol_to_cdecl=
7990 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7992 $as_echo "failed" >&6; }
7993 else
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7995 $as_echo "ok" >&6; }
7998 # Response file support.
7999 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8000 nm_file_list_spec='@'
8001 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8002 nm_file_list_spec='@'
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8032 $as_echo_n "checking for sysroot... " >&6; }
8034 # Check whether --with-sysroot was given.
8035 if test "${with_sysroot+set}" = set; then :
8036 withval=$with_sysroot;
8037 else
8038 with_sysroot=no
8042 lt_sysroot=
8043 case ${with_sysroot} in #(
8044 yes)
8045 if test "$GCC" = yes; then
8046 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8048 ;; #(
8050 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8051 ;; #(
8052 no|'')
8053 ;; #(
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8056 $as_echo "${with_sysroot}" >&6; }
8057 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8059 esac
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8062 $as_echo "${lt_sysroot:-no}" >&6; }
8068 # Check whether --enable-libtool-lock was given.
8069 if test "${enable_libtool_lock+set}" = set; then :
8070 enableval=$enable_libtool_lock;
8073 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8075 # Some flags need to be propagated to the compiler or linker for good
8076 # libtool support.
8077 case $host in
8078 ia64-*-hpux*)
8079 # Find out which ABI we are using.
8080 echo 'int i;' > conftest.$ac_ext
8081 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8082 (eval $ac_compile) 2>&5
8083 ac_status=$?
8084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8085 test $ac_status = 0; }; then
8086 case `/usr/bin/file conftest.$ac_objext` in
8087 *ELF-32*)
8088 HPUX_IA64_MODE="32"
8090 *ELF-64*)
8091 HPUX_IA64_MODE="64"
8093 esac
8095 rm -rf conftest*
8097 *-*-irix6*)
8098 # Find out which ABI we are using.
8099 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8100 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8101 (eval $ac_compile) 2>&5
8102 ac_status=$?
8103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8104 test $ac_status = 0; }; then
8105 if test "$lt_cv_prog_gnu_ld" = yes; then
8106 case `/usr/bin/file conftest.$ac_objext` in
8107 *32-bit*)
8108 LD="${LD-ld} -melf32bsmip"
8110 *N32*)
8111 LD="${LD-ld} -melf32bmipn32"
8113 *64-bit*)
8114 LD="${LD-ld} -melf64bmip"
8116 esac
8117 else
8118 case `/usr/bin/file conftest.$ac_objext` in
8119 *32-bit*)
8120 LD="${LD-ld} -32"
8122 *N32*)
8123 LD="${LD-ld} -n32"
8125 *64-bit*)
8126 LD="${LD-ld} -64"
8128 esac
8131 rm -rf conftest*
8134 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8135 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8136 # Find out which ABI we are using.
8137 echo 'int i;' > conftest.$ac_ext
8138 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8139 (eval $ac_compile) 2>&5
8140 ac_status=$?
8141 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8142 test $ac_status = 0; }; then
8143 case `/usr/bin/file conftest.o` in
8144 *32-bit*)
8145 case $host in
8146 x86_64-*kfreebsd*-gnu)
8147 LD="${LD-ld} -m elf_i386_fbsd"
8149 x86_64-*linux*)
8150 LD="${LD-ld} -m elf_i386"
8152 ppc64-*linux*|powerpc64-*linux*)
8153 LD="${LD-ld} -m elf32ppclinux"
8155 s390x-*linux*)
8156 LD="${LD-ld} -m elf_s390"
8158 sparc64-*linux*)
8159 LD="${LD-ld} -m elf32_sparc"
8161 esac
8163 *64-bit*)
8164 case $host in
8165 x86_64-*kfreebsd*-gnu)
8166 LD="${LD-ld} -m elf_x86_64_fbsd"
8168 x86_64-*linux*)
8169 LD="${LD-ld} -m elf_x86_64"
8171 ppc*-*linux*|powerpc*-*linux*)
8172 LD="${LD-ld} -m elf64ppc"
8174 s390*-*linux*|s390*-*tpf*)
8175 LD="${LD-ld} -m elf64_s390"
8177 sparc*-*linux*)
8178 LD="${LD-ld} -m elf64_sparc"
8180 esac
8182 esac
8184 rm -rf conftest*
8187 *-*-sco3.2v5*)
8188 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8189 SAVE_CFLAGS="$CFLAGS"
8190 CFLAGS="$CFLAGS -belf"
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8192 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8193 if ${lt_cv_cc_needs_belf+:} false; then :
8194 $as_echo_n "(cached) " >&6
8195 else
8196 ac_ext=c
8197 ac_cpp='$CPP $CPPFLAGS'
8198 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8199 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8200 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8203 /* end confdefs.h. */
8206 main ()
8210 return 0;
8212 _ACEOF
8213 if ac_fn_c_try_link "$LINENO"; then :
8214 lt_cv_cc_needs_belf=yes
8215 else
8216 lt_cv_cc_needs_belf=no
8218 rm -f core conftest.err conftest.$ac_objext \
8219 conftest$ac_exeext conftest.$ac_ext
8220 ac_ext=c
8221 ac_cpp='$CPP $CPPFLAGS'
8222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8228 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8229 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8230 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8231 CFLAGS="$SAVE_CFLAGS"
8234 *-*solaris*)
8235 # Find out which ABI we are using.
8236 echo 'int i;' > conftest.$ac_ext
8237 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8238 (eval $ac_compile) 2>&5
8239 ac_status=$?
8240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8241 test $ac_status = 0; }; then
8242 case `/usr/bin/file conftest.o` in
8243 *64-bit*)
8244 case $lt_cv_prog_gnu_ld in
8245 yes*)
8246 case $host in
8247 i?86-*-solaris*)
8248 LD="${LD-ld} -m elf_x86_64"
8250 sparc*-*-solaris*)
8251 LD="${LD-ld} -m elf64_sparc"
8253 esac
8254 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8255 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8256 LD="${LD-ld}_sol2"
8260 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8261 LD="${LD-ld} -64"
8264 esac
8266 esac
8268 rm -rf conftest*
8270 esac
8272 need_locks="$enable_libtool_lock"
8274 if test -n "$ac_tool_prefix"; then
8275 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8276 set dummy ${ac_tool_prefix}mt; ac_word=$2
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8278 $as_echo_n "checking for $ac_word... " >&6; }
8279 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8280 $as_echo_n "(cached) " >&6
8281 else
8282 if test -n "$MANIFEST_TOOL"; then
8283 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8284 else
8285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8286 for as_dir in $PATH
8288 IFS=$as_save_IFS
8289 test -z "$as_dir" && as_dir=.
8290 for ac_exec_ext in '' $ac_executable_extensions; do
8291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8292 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8294 break 2
8296 done
8297 done
8298 IFS=$as_save_IFS
8302 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8303 if test -n "$MANIFEST_TOOL"; then
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8305 $as_echo "$MANIFEST_TOOL" >&6; }
8306 else
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8308 $as_echo "no" >&6; }
8313 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8314 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8315 # Extract the first word of "mt", so it can be a program name with args.
8316 set dummy mt; ac_word=$2
8317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8318 $as_echo_n "checking for $ac_word... " >&6; }
8319 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8320 $as_echo_n "(cached) " >&6
8321 else
8322 if test -n "$ac_ct_MANIFEST_TOOL"; then
8323 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8324 else
8325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8326 for as_dir in $PATH
8328 IFS=$as_save_IFS
8329 test -z "$as_dir" && as_dir=.
8330 for ac_exec_ext in '' $ac_executable_extensions; do
8331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8332 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8334 break 2
8336 done
8337 done
8338 IFS=$as_save_IFS
8342 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8343 if test -n "$ac_ct_MANIFEST_TOOL"; then
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8345 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8346 else
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8348 $as_echo "no" >&6; }
8351 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8352 MANIFEST_TOOL=":"
8353 else
8354 case $cross_compiling:$ac_tool_warned in
8355 yes:)
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8357 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8358 ac_tool_warned=yes ;;
8359 esac
8360 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8362 else
8363 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8366 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8368 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8369 if ${lt_cv_path_mainfest_tool+:} false; then :
8370 $as_echo_n "(cached) " >&6
8371 else
8372 lt_cv_path_mainfest_tool=no
8373 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8374 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8375 cat conftest.err >&5
8376 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8377 lt_cv_path_mainfest_tool=yes
8379 rm -f conftest*
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8382 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8383 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8384 MANIFEST_TOOL=:
8392 case $host_os in
8393 rhapsody* | darwin*)
8394 if test -n "$ac_tool_prefix"; then
8395 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8396 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8398 $as_echo_n "checking for $ac_word... " >&6; }
8399 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8400 $as_echo_n "(cached) " >&6
8401 else
8402 if test -n "$DSYMUTIL"; then
8403 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8404 else
8405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8406 for as_dir in $PATH
8408 IFS=$as_save_IFS
8409 test -z "$as_dir" && as_dir=.
8410 for ac_exec_ext in '' $ac_executable_extensions; do
8411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8412 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8414 break 2
8416 done
8417 done
8418 IFS=$as_save_IFS
8422 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8423 if test -n "$DSYMUTIL"; then
8424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8425 $as_echo "$DSYMUTIL" >&6; }
8426 else
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8428 $as_echo "no" >&6; }
8433 if test -z "$ac_cv_prog_DSYMUTIL"; then
8434 ac_ct_DSYMUTIL=$DSYMUTIL
8435 # Extract the first word of "dsymutil", so it can be a program name with args.
8436 set dummy dsymutil; ac_word=$2
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8438 $as_echo_n "checking for $ac_word... " >&6; }
8439 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8440 $as_echo_n "(cached) " >&6
8441 else
8442 if test -n "$ac_ct_DSYMUTIL"; then
8443 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8444 else
8445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8446 for as_dir in $PATH
8448 IFS=$as_save_IFS
8449 test -z "$as_dir" && as_dir=.
8450 for ac_exec_ext in '' $ac_executable_extensions; do
8451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8452 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8454 break 2
8456 done
8457 done
8458 IFS=$as_save_IFS
8462 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8463 if test -n "$ac_ct_DSYMUTIL"; then
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8465 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8466 else
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8468 $as_echo "no" >&6; }
8471 if test "x$ac_ct_DSYMUTIL" = x; then
8472 DSYMUTIL=":"
8473 else
8474 case $cross_compiling:$ac_tool_warned in
8475 yes:)
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8477 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8478 ac_tool_warned=yes ;;
8479 esac
8480 DSYMUTIL=$ac_ct_DSYMUTIL
8482 else
8483 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8486 if test -n "$ac_tool_prefix"; then
8487 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8488 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8490 $as_echo_n "checking for $ac_word... " >&6; }
8491 if ${ac_cv_prog_NMEDIT+:} false; then :
8492 $as_echo_n "(cached) " >&6
8493 else
8494 if test -n "$NMEDIT"; then
8495 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8496 else
8497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8498 for as_dir in $PATH
8500 IFS=$as_save_IFS
8501 test -z "$as_dir" && as_dir=.
8502 for ac_exec_ext in '' $ac_executable_extensions; do
8503 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8504 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8506 break 2
8508 done
8509 done
8510 IFS=$as_save_IFS
8514 NMEDIT=$ac_cv_prog_NMEDIT
8515 if test -n "$NMEDIT"; then
8516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8517 $as_echo "$NMEDIT" >&6; }
8518 else
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8520 $as_echo "no" >&6; }
8525 if test -z "$ac_cv_prog_NMEDIT"; then
8526 ac_ct_NMEDIT=$NMEDIT
8527 # Extract the first word of "nmedit", so it can be a program name with args.
8528 set dummy nmedit; 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_ac_ct_NMEDIT+:} false; then :
8532 $as_echo_n "(cached) " >&6
8533 else
8534 if test -n "$ac_ct_NMEDIT"; then
8535 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # 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_ac_ct_NMEDIT="nmedit"
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 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8555 if test -n "$ac_ct_NMEDIT"; then
8556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8557 $as_echo "$ac_ct_NMEDIT" >&6; }
8558 else
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8560 $as_echo "no" >&6; }
8563 if test "x$ac_ct_NMEDIT" = x; then
8564 NMEDIT=":"
8565 else
8566 case $cross_compiling:$ac_tool_warned in
8567 yes:)
8568 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8569 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8570 ac_tool_warned=yes ;;
8571 esac
8572 NMEDIT=$ac_ct_NMEDIT
8574 else
8575 NMEDIT="$ac_cv_prog_NMEDIT"
8578 if test -n "$ac_tool_prefix"; then
8579 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8580 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8582 $as_echo_n "checking for $ac_word... " >&6; }
8583 if ${ac_cv_prog_LIPO+:} false; then :
8584 $as_echo_n "(cached) " >&6
8585 else
8586 if test -n "$LIPO"; then
8587 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8588 else
8589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8590 for as_dir in $PATH
8592 IFS=$as_save_IFS
8593 test -z "$as_dir" && as_dir=.
8594 for ac_exec_ext in '' $ac_executable_extensions; do
8595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8596 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8598 break 2
8600 done
8601 done
8602 IFS=$as_save_IFS
8606 LIPO=$ac_cv_prog_LIPO
8607 if test -n "$LIPO"; then
8608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8609 $as_echo "$LIPO" >&6; }
8610 else
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8612 $as_echo "no" >&6; }
8617 if test -z "$ac_cv_prog_LIPO"; then
8618 ac_ct_LIPO=$LIPO
8619 # Extract the first word of "lipo", so it can be a program name with args.
8620 set dummy lipo; ac_word=$2
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8622 $as_echo_n "checking for $ac_word... " >&6; }
8623 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8624 $as_echo_n "(cached) " >&6
8625 else
8626 if test -n "$ac_ct_LIPO"; then
8627 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8628 else
8629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8630 for as_dir in $PATH
8632 IFS=$as_save_IFS
8633 test -z "$as_dir" && as_dir=.
8634 for ac_exec_ext in '' $ac_executable_extensions; do
8635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8636 ac_cv_prog_ac_ct_LIPO="lipo"
8637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8638 break 2
8640 done
8641 done
8642 IFS=$as_save_IFS
8646 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8647 if test -n "$ac_ct_LIPO"; then
8648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8649 $as_echo "$ac_ct_LIPO" >&6; }
8650 else
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8652 $as_echo "no" >&6; }
8655 if test "x$ac_ct_LIPO" = x; then
8656 LIPO=":"
8657 else
8658 case $cross_compiling:$ac_tool_warned in
8659 yes:)
8660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8661 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8662 ac_tool_warned=yes ;;
8663 esac
8664 LIPO=$ac_ct_LIPO
8666 else
8667 LIPO="$ac_cv_prog_LIPO"
8670 if test -n "$ac_tool_prefix"; then
8671 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8672 set dummy ${ac_tool_prefix}otool; ac_word=$2
8673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8674 $as_echo_n "checking for $ac_word... " >&6; }
8675 if ${ac_cv_prog_OTOOL+:} false; then :
8676 $as_echo_n "(cached) " >&6
8677 else
8678 if test -n "$OTOOL"; then
8679 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8680 else
8681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8682 for as_dir in $PATH
8684 IFS=$as_save_IFS
8685 test -z "$as_dir" && as_dir=.
8686 for ac_exec_ext in '' $ac_executable_extensions; do
8687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8688 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8690 break 2
8692 done
8693 done
8694 IFS=$as_save_IFS
8698 OTOOL=$ac_cv_prog_OTOOL
8699 if test -n "$OTOOL"; then
8700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8701 $as_echo "$OTOOL" >&6; }
8702 else
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8704 $as_echo "no" >&6; }
8709 if test -z "$ac_cv_prog_OTOOL"; then
8710 ac_ct_OTOOL=$OTOOL
8711 # Extract the first word of "otool", so it can be a program name with args.
8712 set dummy otool; ac_word=$2
8713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8714 $as_echo_n "checking for $ac_word... " >&6; }
8715 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8716 $as_echo_n "(cached) " >&6
8717 else
8718 if test -n "$ac_ct_OTOOL"; then
8719 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8720 else
8721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8722 for as_dir in $PATH
8724 IFS=$as_save_IFS
8725 test -z "$as_dir" && as_dir=.
8726 for ac_exec_ext in '' $ac_executable_extensions; do
8727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8728 ac_cv_prog_ac_ct_OTOOL="otool"
8729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8730 break 2
8732 done
8733 done
8734 IFS=$as_save_IFS
8738 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8739 if test -n "$ac_ct_OTOOL"; then
8740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8741 $as_echo "$ac_ct_OTOOL" >&6; }
8742 else
8743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8744 $as_echo "no" >&6; }
8747 if test "x$ac_ct_OTOOL" = x; then
8748 OTOOL=":"
8749 else
8750 case $cross_compiling:$ac_tool_warned in
8751 yes:)
8752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8753 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8754 ac_tool_warned=yes ;;
8755 esac
8756 OTOOL=$ac_ct_OTOOL
8758 else
8759 OTOOL="$ac_cv_prog_OTOOL"
8762 if test -n "$ac_tool_prefix"; then
8763 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8764 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8766 $as_echo_n "checking for $ac_word... " >&6; }
8767 if ${ac_cv_prog_OTOOL64+:} false; then :
8768 $as_echo_n "(cached) " >&6
8769 else
8770 if test -n "$OTOOL64"; then
8771 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8772 else
8773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8774 for as_dir in $PATH
8776 IFS=$as_save_IFS
8777 test -z "$as_dir" && as_dir=.
8778 for ac_exec_ext in '' $ac_executable_extensions; do
8779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8780 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8782 break 2
8784 done
8785 done
8786 IFS=$as_save_IFS
8790 OTOOL64=$ac_cv_prog_OTOOL64
8791 if test -n "$OTOOL64"; then
8792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8793 $as_echo "$OTOOL64" >&6; }
8794 else
8795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8796 $as_echo "no" >&6; }
8801 if test -z "$ac_cv_prog_OTOOL64"; then
8802 ac_ct_OTOOL64=$OTOOL64
8803 # Extract the first word of "otool64", so it can be a program name with args.
8804 set dummy otool64; ac_word=$2
8805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8806 $as_echo_n "checking for $ac_word... " >&6; }
8807 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8808 $as_echo_n "(cached) " >&6
8809 else
8810 if test -n "$ac_ct_OTOOL64"; then
8811 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8812 else
8813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8814 for as_dir in $PATH
8816 IFS=$as_save_IFS
8817 test -z "$as_dir" && as_dir=.
8818 for ac_exec_ext in '' $ac_executable_extensions; do
8819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8820 ac_cv_prog_ac_ct_OTOOL64="otool64"
8821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8822 break 2
8824 done
8825 done
8826 IFS=$as_save_IFS
8830 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8831 if test -n "$ac_ct_OTOOL64"; then
8832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8833 $as_echo "$ac_ct_OTOOL64" >&6; }
8834 else
8835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8836 $as_echo "no" >&6; }
8839 if test "x$ac_ct_OTOOL64" = x; then
8840 OTOOL64=":"
8841 else
8842 case $cross_compiling:$ac_tool_warned in
8843 yes:)
8844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8845 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8846 ac_tool_warned=yes ;;
8847 esac
8848 OTOOL64=$ac_ct_OTOOL64
8850 else
8851 OTOOL64="$ac_cv_prog_OTOOL64"
8880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8881 $as_echo_n "checking for -single_module linker flag... " >&6; }
8882 if ${lt_cv_apple_cc_single_mod+:} false; then :
8883 $as_echo_n "(cached) " >&6
8884 else
8885 lt_cv_apple_cc_single_mod=no
8886 if test -z "${LT_MULTI_MODULE}"; then
8887 # By default we will add the -single_module flag. You can override
8888 # by either setting the environment variable LT_MULTI_MODULE
8889 # non-empty at configure time, or by adding -multi_module to the
8890 # link flags.
8891 rm -rf libconftest.dylib*
8892 echo "int foo(void){return 1;}" > conftest.c
8893 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8894 -dynamiclib -Wl,-single_module conftest.c" >&5
8895 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8896 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8897 _lt_result=$?
8898 # If there is a non-empty error log, and "single_module"
8899 # appears in it, assume the flag caused a linker warning
8900 if test -s conftest.err && $GREP single_module conftest.err; then
8901 cat conftest.err >&5
8902 # Otherwise, if the output was created with a 0 exit code from
8903 # the compiler, it worked.
8904 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8905 lt_cv_apple_cc_single_mod=yes
8906 else
8907 cat conftest.err >&5
8909 rm -rf libconftest.dylib*
8910 rm -f conftest.*
8913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8914 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8917 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8918 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8919 $as_echo_n "(cached) " >&6
8920 else
8921 lt_cv_ld_exported_symbols_list=no
8922 save_LDFLAGS=$LDFLAGS
8923 echo "_main" > conftest.sym
8924 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8926 /* end confdefs.h. */
8929 main ()
8933 return 0;
8935 _ACEOF
8936 if ac_fn_c_try_link "$LINENO"; then :
8937 lt_cv_ld_exported_symbols_list=yes
8938 else
8939 lt_cv_ld_exported_symbols_list=no
8941 rm -f core conftest.err conftest.$ac_objext \
8942 conftest$ac_exeext conftest.$ac_ext
8943 LDFLAGS="$save_LDFLAGS"
8946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8947 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8950 $as_echo_n "checking for -force_load linker flag... " >&6; }
8951 if ${lt_cv_ld_force_load+:} false; then :
8952 $as_echo_n "(cached) " >&6
8953 else
8954 lt_cv_ld_force_load=no
8955 cat > conftest.c << _LT_EOF
8956 int forced_loaded() { return 2;}
8957 _LT_EOF
8958 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8959 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8960 echo "$AR cru libconftest.a conftest.o" >&5
8961 $AR cru libconftest.a conftest.o 2>&5
8962 echo "$RANLIB libconftest.a" >&5
8963 $RANLIB libconftest.a 2>&5
8964 cat > conftest.c << _LT_EOF
8965 int main() { return 0;}
8966 _LT_EOF
8967 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8968 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8969 _lt_result=$?
8970 if test -s conftest.err && $GREP force_load conftest.err; then
8971 cat conftest.err >&5
8972 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8973 lt_cv_ld_force_load=yes
8974 else
8975 cat conftest.err >&5
8977 rm -f conftest.err libconftest.a conftest conftest.c
8978 rm -rf conftest.dSYM
8981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8982 $as_echo "$lt_cv_ld_force_load" >&6; }
8983 case $host_os in
8984 rhapsody* | darwin1.[012])
8985 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8986 darwin1.*)
8987 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8988 darwin*) # darwin 5.x on
8989 # if running on 10.5 or later, the deployment target defaults
8990 # to the OS version, if on x86, and 10.4, the deployment
8991 # target defaults to 10.4. Don't you love it?
8992 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8993 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8994 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8995 10.[012]*)
8996 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8997 10.*)
8998 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8999 esac
9001 esac
9002 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9003 _lt_dar_single_mod='$single_module'
9005 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9006 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9007 else
9008 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9010 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9011 _lt_dsymutil='~$DSYMUTIL $lib || :'
9012 else
9013 _lt_dsymutil=
9016 esac
9018 for ac_header in dlfcn.h
9019 do :
9020 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9022 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9023 cat >>confdefs.h <<_ACEOF
9024 #define HAVE_DLFCN_H 1
9025 _ACEOF
9029 done
9035 # Set options
9036 enable_win32_dll=yes
9038 case $host in
9039 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
9040 if test -n "$ac_tool_prefix"; then
9041 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
9042 set dummy ${ac_tool_prefix}as; ac_word=$2
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9044 $as_echo_n "checking for $ac_word... " >&6; }
9045 if ${ac_cv_prog_AS+:} false; then :
9046 $as_echo_n "(cached) " >&6
9047 else
9048 if test -n "$AS"; then
9049 ac_cv_prog_AS="$AS" # Let the user override the test.
9050 else
9051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9052 for as_dir in $PATH
9054 IFS=$as_save_IFS
9055 test -z "$as_dir" && as_dir=.
9056 for ac_exec_ext in '' $ac_executable_extensions; do
9057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9058 ac_cv_prog_AS="${ac_tool_prefix}as"
9059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9060 break 2
9062 done
9063 done
9064 IFS=$as_save_IFS
9068 AS=$ac_cv_prog_AS
9069 if test -n "$AS"; then
9070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
9071 $as_echo "$AS" >&6; }
9072 else
9073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9074 $as_echo "no" >&6; }
9079 if test -z "$ac_cv_prog_AS"; then
9080 ac_ct_AS=$AS
9081 # Extract the first word of "as", so it can be a program name with args.
9082 set dummy as; ac_word=$2
9083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9084 $as_echo_n "checking for $ac_word... " >&6; }
9085 if ${ac_cv_prog_ac_ct_AS+:} false; then :
9086 $as_echo_n "(cached) " >&6
9087 else
9088 if test -n "$ac_ct_AS"; then
9089 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
9090 else
9091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9092 for as_dir in $PATH
9094 IFS=$as_save_IFS
9095 test -z "$as_dir" && as_dir=.
9096 for ac_exec_ext in '' $ac_executable_extensions; do
9097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9098 ac_cv_prog_ac_ct_AS="as"
9099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9100 break 2
9102 done
9103 done
9104 IFS=$as_save_IFS
9108 ac_ct_AS=$ac_cv_prog_ac_ct_AS
9109 if test -n "$ac_ct_AS"; then
9110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
9111 $as_echo "$ac_ct_AS" >&6; }
9112 else
9113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9114 $as_echo "no" >&6; }
9117 if test "x$ac_ct_AS" = x; then
9118 AS="false"
9119 else
9120 case $cross_compiling:$ac_tool_warned in
9121 yes:)
9122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9123 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9124 ac_tool_warned=yes ;;
9125 esac
9126 AS=$ac_ct_AS
9128 else
9129 AS="$ac_cv_prog_AS"
9132 if test -n "$ac_tool_prefix"; then
9133 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9134 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9136 $as_echo_n "checking for $ac_word... " >&6; }
9137 if ${ac_cv_prog_DLLTOOL+:} false; then :
9138 $as_echo_n "(cached) " >&6
9139 else
9140 if test -n "$DLLTOOL"; then
9141 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9142 else
9143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9144 for as_dir in $PATH
9146 IFS=$as_save_IFS
9147 test -z "$as_dir" && as_dir=.
9148 for ac_exec_ext in '' $ac_executable_extensions; do
9149 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9150 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9152 break 2
9154 done
9155 done
9156 IFS=$as_save_IFS
9160 DLLTOOL=$ac_cv_prog_DLLTOOL
9161 if test -n "$DLLTOOL"; then
9162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9163 $as_echo "$DLLTOOL" >&6; }
9164 else
9165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9166 $as_echo "no" >&6; }
9171 if test -z "$ac_cv_prog_DLLTOOL"; then
9172 ac_ct_DLLTOOL=$DLLTOOL
9173 # Extract the first word of "dlltool", so it can be a program name with args.
9174 set dummy dlltool; ac_word=$2
9175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9176 $as_echo_n "checking for $ac_word... " >&6; }
9177 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
9178 $as_echo_n "(cached) " >&6
9179 else
9180 if test -n "$ac_ct_DLLTOOL"; then
9181 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9182 else
9183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9184 for as_dir in $PATH
9186 IFS=$as_save_IFS
9187 test -z "$as_dir" && as_dir=.
9188 for ac_exec_ext in '' $ac_executable_extensions; do
9189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9190 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9192 break 2
9194 done
9195 done
9196 IFS=$as_save_IFS
9200 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9201 if test -n "$ac_ct_DLLTOOL"; then
9202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9203 $as_echo "$ac_ct_DLLTOOL" >&6; }
9204 else
9205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9206 $as_echo "no" >&6; }
9209 if test "x$ac_ct_DLLTOOL" = x; then
9210 DLLTOOL="false"
9211 else
9212 case $cross_compiling:$ac_tool_warned in
9213 yes:)
9214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9215 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9216 ac_tool_warned=yes ;;
9217 esac
9218 DLLTOOL=$ac_ct_DLLTOOL
9220 else
9221 DLLTOOL="$ac_cv_prog_DLLTOOL"
9224 if test -n "$ac_tool_prefix"; then
9225 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9226 set dummy ${ac_tool_prefix}objdump; ac_word=$2
9227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9228 $as_echo_n "checking for $ac_word... " >&6; }
9229 if ${ac_cv_prog_OBJDUMP+:} false; then :
9230 $as_echo_n "(cached) " >&6
9231 else
9232 if test -n "$OBJDUMP"; then
9233 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9234 else
9235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9236 for as_dir in $PATH
9238 IFS=$as_save_IFS
9239 test -z "$as_dir" && as_dir=.
9240 for ac_exec_ext in '' $ac_executable_extensions; do
9241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9242 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9244 break 2
9246 done
9247 done
9248 IFS=$as_save_IFS
9252 OBJDUMP=$ac_cv_prog_OBJDUMP
9253 if test -n "$OBJDUMP"; then
9254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9255 $as_echo "$OBJDUMP" >&6; }
9256 else
9257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9258 $as_echo "no" >&6; }
9263 if test -z "$ac_cv_prog_OBJDUMP"; then
9264 ac_ct_OBJDUMP=$OBJDUMP
9265 # Extract the first word of "objdump", so it can be a program name with args.
9266 set dummy objdump; ac_word=$2
9267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9268 $as_echo_n "checking for $ac_word... " >&6; }
9269 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
9270 $as_echo_n "(cached) " >&6
9271 else
9272 if test -n "$ac_ct_OBJDUMP"; then
9273 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9274 else
9275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9276 for as_dir in $PATH
9278 IFS=$as_save_IFS
9279 test -z "$as_dir" && as_dir=.
9280 for ac_exec_ext in '' $ac_executable_extensions; do
9281 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9282 ac_cv_prog_ac_ct_OBJDUMP="objdump"
9283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9284 break 2
9286 done
9287 done
9288 IFS=$as_save_IFS
9292 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9293 if test -n "$ac_ct_OBJDUMP"; then
9294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9295 $as_echo "$ac_ct_OBJDUMP" >&6; }
9296 else
9297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9298 $as_echo "no" >&6; }
9301 if test "x$ac_ct_OBJDUMP" = x; then
9302 OBJDUMP="false"
9303 else
9304 case $cross_compiling:$ac_tool_warned in
9305 yes:)
9306 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9307 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9308 ac_tool_warned=yes ;;
9309 esac
9310 OBJDUMP=$ac_ct_OBJDUMP
9312 else
9313 OBJDUMP="$ac_cv_prog_OBJDUMP"
9317 esac
9319 test -z "$AS" && AS=as
9325 test -z "$DLLTOOL" && DLLTOOL=dlltool
9331 test -z "$OBJDUMP" && OBJDUMP=objdump
9339 enable_dlopen=no
9343 # Check whether --enable-shared was given.
9344 if test "${enable_shared+set}" = set; then :
9345 enableval=$enable_shared; p=${PACKAGE-default}
9346 case $enableval in
9347 yes) enable_shared=yes ;;
9348 no) enable_shared=no ;;
9350 enable_shared=no
9351 # Look at the argument we got. We use all the common list separators.
9352 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9353 for pkg in $enableval; do
9354 IFS="$lt_save_ifs"
9355 if test "X$pkg" = "X$p"; then
9356 enable_shared=yes
9358 done
9359 IFS="$lt_save_ifs"
9361 esac
9362 else
9363 enable_shared=yes
9374 # Check whether --enable-static was given.
9375 if test "${enable_static+set}" = set; then :
9376 enableval=$enable_static; p=${PACKAGE-default}
9377 case $enableval in
9378 yes) enable_static=yes ;;
9379 no) enable_static=no ;;
9381 enable_static=no
9382 # Look at the argument we got. We use all the common list separators.
9383 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9384 for pkg in $enableval; do
9385 IFS="$lt_save_ifs"
9386 if test "X$pkg" = "X$p"; then
9387 enable_static=yes
9389 done
9390 IFS="$lt_save_ifs"
9392 esac
9393 else
9394 enable_static=yes
9406 # Check whether --with-pic was given.
9407 if test "${with_pic+set}" = set; then :
9408 withval=$with_pic; lt_p=${PACKAGE-default}
9409 case $withval in
9410 yes|no) pic_mode=$withval ;;
9412 pic_mode=default
9413 # Look at the argument we got. We use all the common list separators.
9414 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9415 for lt_pkg in $withval; do
9416 IFS="$lt_save_ifs"
9417 if test "X$lt_pkg" = "X$lt_p"; then
9418 pic_mode=yes
9420 done
9421 IFS="$lt_save_ifs"
9423 esac
9424 else
9425 pic_mode=default
9429 test -z "$pic_mode" && pic_mode=default
9437 # Check whether --enable-fast-install was given.
9438 if test "${enable_fast_install+set}" = set; then :
9439 enableval=$enable_fast_install; p=${PACKAGE-default}
9440 case $enableval in
9441 yes) enable_fast_install=yes ;;
9442 no) enable_fast_install=no ;;
9444 enable_fast_install=no
9445 # Look at the argument we got. We use all the common list separators.
9446 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9447 for pkg in $enableval; do
9448 IFS="$lt_save_ifs"
9449 if test "X$pkg" = "X$p"; then
9450 enable_fast_install=yes
9452 done
9453 IFS="$lt_save_ifs"
9455 esac
9456 else
9457 enable_fast_install=yes
9470 # This can be used to rebuild libtool when needed
9471 LIBTOOL_DEPS="$ltmain"
9473 # Always use our own libtool.
9474 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9505 test -z "$LN_S" && LN_S="ln -s"
9520 if test -n "${ZSH_VERSION+set}" ; then
9521 setopt NO_GLOB_SUBST
9524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9525 $as_echo_n "checking for objdir... " >&6; }
9526 if ${lt_cv_objdir+:} false; then :
9527 $as_echo_n "(cached) " >&6
9528 else
9529 rm -f .libs 2>/dev/null
9530 mkdir .libs 2>/dev/null
9531 if test -d .libs; then
9532 lt_cv_objdir=.libs
9533 else
9534 # MS-DOS does not allow filenames that begin with a dot.
9535 lt_cv_objdir=_libs
9537 rmdir .libs 2>/dev/null
9539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9540 $as_echo "$lt_cv_objdir" >&6; }
9541 objdir=$lt_cv_objdir
9547 cat >>confdefs.h <<_ACEOF
9548 #define LT_OBJDIR "$lt_cv_objdir/"
9549 _ACEOF
9554 case $host_os in
9555 aix3*)
9556 # AIX sometimes has problems with the GCC collect2 program. For some
9557 # reason, if we set the COLLECT_NAMES environment variable, the problems
9558 # vanish in a puff of smoke.
9559 if test "X${COLLECT_NAMES+set}" != Xset; then
9560 COLLECT_NAMES=
9561 export COLLECT_NAMES
9564 esac
9566 # Global variables:
9567 ofile=libtool
9568 can_build_shared=yes
9570 # All known linkers require a `.a' archive for static linking (except MSVC,
9571 # which needs '.lib').
9572 libext=a
9574 with_gnu_ld="$lt_cv_prog_gnu_ld"
9576 old_CC="$CC"
9577 old_CFLAGS="$CFLAGS"
9579 # Set sane defaults for various variables
9580 test -z "$CC" && CC=cc
9581 test -z "$LTCC" && LTCC=$CC
9582 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9583 test -z "$LD" && LD=ld
9584 test -z "$ac_objext" && ac_objext=o
9586 for cc_temp in $compiler""; do
9587 case $cc_temp in
9588 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9589 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9590 \-*) ;;
9591 *) break;;
9592 esac
9593 done
9594 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9597 # Only perform the check for file, if the check method requires it
9598 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9599 case $deplibs_check_method in
9600 file_magic*)
9601 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9603 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9604 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9605 $as_echo_n "(cached) " >&6
9606 else
9607 case $MAGIC_CMD in
9608 [\\/*] | ?:[\\/]*)
9609 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9612 lt_save_MAGIC_CMD="$MAGIC_CMD"
9613 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9614 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9615 for ac_dir in $ac_dummy; do
9616 IFS="$lt_save_ifs"
9617 test -z "$ac_dir" && ac_dir=.
9618 if test -f $ac_dir/${ac_tool_prefix}file; then
9619 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9620 if test -n "$file_magic_test_file"; then
9621 case $deplibs_check_method in
9622 "file_magic "*)
9623 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9624 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9625 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9626 $EGREP "$file_magic_regex" > /dev/null; then
9628 else
9629 cat <<_LT_EOF 1>&2
9631 *** Warning: the command libtool uses to detect shared libraries,
9632 *** $file_magic_cmd, produces output that libtool cannot recognize.
9633 *** The result is that libtool may fail to recognize shared libraries
9634 *** as such. This will affect the creation of libtool libraries that
9635 *** depend on shared libraries, but programs linked with such libtool
9636 *** libraries will work regardless of this problem. Nevertheless, you
9637 *** may want to report the problem to your system manager and/or to
9638 *** bug-libtool@gnu.org
9640 _LT_EOF
9641 fi ;;
9642 esac
9644 break
9646 done
9647 IFS="$lt_save_ifs"
9648 MAGIC_CMD="$lt_save_MAGIC_CMD"
9650 esac
9653 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9654 if test -n "$MAGIC_CMD"; then
9655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9656 $as_echo "$MAGIC_CMD" >&6; }
9657 else
9658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9659 $as_echo "no" >&6; }
9666 if test -z "$lt_cv_path_MAGIC_CMD"; then
9667 if test -n "$ac_tool_prefix"; then
9668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9669 $as_echo_n "checking for file... " >&6; }
9670 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9671 $as_echo_n "(cached) " >&6
9672 else
9673 case $MAGIC_CMD in
9674 [\\/*] | ?:[\\/]*)
9675 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9678 lt_save_MAGIC_CMD="$MAGIC_CMD"
9679 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9680 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9681 for ac_dir in $ac_dummy; do
9682 IFS="$lt_save_ifs"
9683 test -z "$ac_dir" && ac_dir=.
9684 if test -f $ac_dir/file; then
9685 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9686 if test -n "$file_magic_test_file"; then
9687 case $deplibs_check_method in
9688 "file_magic "*)
9689 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9690 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9691 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9692 $EGREP "$file_magic_regex" > /dev/null; then
9694 else
9695 cat <<_LT_EOF 1>&2
9697 *** Warning: the command libtool uses to detect shared libraries,
9698 *** $file_magic_cmd, produces output that libtool cannot recognize.
9699 *** The result is that libtool may fail to recognize shared libraries
9700 *** as such. This will affect the creation of libtool libraries that
9701 *** depend on shared libraries, but programs linked with such libtool
9702 *** libraries will work regardless of this problem. Nevertheless, you
9703 *** may want to report the problem to your system manager and/or to
9704 *** bug-libtool@gnu.org
9706 _LT_EOF
9707 fi ;;
9708 esac
9710 break
9712 done
9713 IFS="$lt_save_ifs"
9714 MAGIC_CMD="$lt_save_MAGIC_CMD"
9716 esac
9719 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9720 if test -n "$MAGIC_CMD"; then
9721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9722 $as_echo "$MAGIC_CMD" >&6; }
9723 else
9724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9725 $as_echo "no" >&6; }
9729 else
9730 MAGIC_CMD=:
9736 esac
9738 # Use C for the default configuration in the libtool script
9740 lt_save_CC="$CC"
9741 ac_ext=c
9742 ac_cpp='$CPP $CPPFLAGS'
9743 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9744 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9745 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9748 # Source file extension for C test sources.
9749 ac_ext=c
9751 # Object file extension for compiled C test sources.
9752 objext=o
9753 objext=$objext
9755 # Code to be used in simple compile tests
9756 lt_simple_compile_test_code="int some_variable = 0;"
9758 # Code to be used in simple link tests
9759 lt_simple_link_test_code='int main(){return(0);}'
9767 # If no C compiler was specified, use CC.
9768 LTCC=${LTCC-"$CC"}
9770 # If no C compiler flags were specified, use CFLAGS.
9771 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9773 # Allow CC to be a program name with arguments.
9774 compiler=$CC
9776 # Save the default compiler, since it gets overwritten when the other
9777 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9778 compiler_DEFAULT=$CC
9780 # save warnings/boilerplate of simple test code
9781 ac_outfile=conftest.$ac_objext
9782 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9783 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9784 _lt_compiler_boilerplate=`cat conftest.err`
9785 $RM conftest*
9787 ac_outfile=conftest.$ac_objext
9788 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9789 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9790 _lt_linker_boilerplate=`cat conftest.err`
9791 $RM -r conftest*
9794 ## CAVEAT EMPTOR:
9795 ## There is no encapsulation within the following macros, do not change
9796 ## the running order or otherwise move them around unless you know exactly
9797 ## what you are doing...
9798 if test -n "$compiler"; then
9800 lt_prog_compiler_no_builtin_flag=
9802 if test "$GCC" = yes; then
9803 case $cc_basename in
9804 nvcc*)
9805 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9807 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9808 esac
9810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9811 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9812 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9813 $as_echo_n "(cached) " >&6
9814 else
9815 lt_cv_prog_compiler_rtti_exceptions=no
9816 ac_outfile=conftest.$ac_objext
9817 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9818 lt_compiler_flag="-fno-rtti -fno-exceptions"
9819 # Insert the option either (1) after the last *FLAGS variable, or
9820 # (2) before a word containing "conftest.", or (3) at the end.
9821 # Note that $ac_compile itself does not contain backslashes and begins
9822 # with a dollar sign (not a hyphen), so the echo should work correctly.
9823 # The option is referenced via a variable to avoid confusing sed.
9824 lt_compile=`echo "$ac_compile" | $SED \
9825 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9826 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9827 -e 's:$: $lt_compiler_flag:'`
9828 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9829 (eval "$lt_compile" 2>conftest.err)
9830 ac_status=$?
9831 cat conftest.err >&5
9832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9833 if (exit $ac_status) && test -s "$ac_outfile"; then
9834 # The compiler can only warn and ignore the option if not recognized
9835 # So say no if there are warnings other than the usual output.
9836 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9837 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9838 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9839 lt_cv_prog_compiler_rtti_exceptions=yes
9842 $RM conftest*
9845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9846 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9848 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9849 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9850 else
9861 lt_prog_compiler_wl=
9862 lt_prog_compiler_pic=
9863 lt_prog_compiler_static=
9866 if test "$GCC" = yes; then
9867 lt_prog_compiler_wl='-Wl,'
9868 lt_prog_compiler_static='-static'
9870 case $host_os in
9871 aix*)
9872 # All AIX code is PIC.
9873 if test "$host_cpu" = ia64; then
9874 # AIX 5 now supports IA64 processor
9875 lt_prog_compiler_static='-Bstatic'
9879 amigaos*)
9880 case $host_cpu in
9881 powerpc)
9882 # see comment about AmigaOS4 .so support
9883 lt_prog_compiler_pic='-fPIC'
9885 m68k)
9886 # FIXME: we need at least 68020 code to build shared libraries, but
9887 # adding the `-m68020' flag to GCC prevents building anything better,
9888 # like `-m68040'.
9889 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9891 esac
9894 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9895 # PIC is the default for these OSes.
9898 mingw* | cygwin* | pw32* | os2* | cegcc*)
9899 # This hack is so that the source file can tell whether it is being
9900 # built for inclusion in a dll (and should export symbols for example).
9901 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9902 # (--disable-auto-import) libraries
9903 lt_prog_compiler_pic='-DDLL_EXPORT'
9906 darwin* | rhapsody*)
9907 # PIC is the default on this platform
9908 # Common symbols not allowed in MH_DYLIB files
9909 lt_prog_compiler_pic='-fno-common'
9912 haiku*)
9913 # PIC is the default for Haiku.
9914 # The "-static" flag exists, but is broken.
9915 lt_prog_compiler_static=
9918 hpux*)
9919 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9920 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9921 # sets the default TLS model and affects inlining.
9922 case $host_cpu in
9923 hppa*64*)
9924 # +Z the default
9927 lt_prog_compiler_pic='-fPIC'
9929 esac
9932 interix[3-9]*)
9933 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9934 # Instead, we relocate shared libraries at runtime.
9937 msdosdjgpp*)
9938 # Just because we use GCC doesn't mean we suddenly get shared libraries
9939 # on systems that don't support them.
9940 lt_prog_compiler_can_build_shared=no
9941 enable_shared=no
9944 *nto* | *qnx*)
9945 # QNX uses GNU C++, but need to define -shared option too, otherwise
9946 # it will coredump.
9947 lt_prog_compiler_pic='-fPIC -shared'
9950 sysv4*MP*)
9951 if test -d /usr/nec; then
9952 lt_prog_compiler_pic=-Kconform_pic
9957 lt_prog_compiler_pic='-fPIC'
9959 esac
9961 case $cc_basename in
9962 nvcc*) # Cuda Compiler Driver 2.2
9963 lt_prog_compiler_wl='-Xlinker '
9964 if test -n "$lt_prog_compiler_pic"; then
9965 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9968 esac
9969 else
9970 # PORTME Check for flag to pass linker flags through the system compiler.
9971 case $host_os in
9972 aix*)
9973 lt_prog_compiler_wl='-Wl,'
9974 if test "$host_cpu" = ia64; then
9975 # AIX 5 now supports IA64 processor
9976 lt_prog_compiler_static='-Bstatic'
9977 else
9978 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9982 mingw* | cygwin* | pw32* | os2* | cegcc*)
9983 # This hack is so that the source file can tell whether it is being
9984 # built for inclusion in a dll (and should export symbols for example).
9985 lt_prog_compiler_pic='-DDLL_EXPORT'
9988 hpux9* | hpux10* | hpux11*)
9989 lt_prog_compiler_wl='-Wl,'
9990 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9991 # not for PA HP-UX.
9992 case $host_cpu in
9993 hppa*64*|ia64*)
9994 # +Z the default
9997 lt_prog_compiler_pic='+Z'
9999 esac
10000 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10001 lt_prog_compiler_static='${wl}-a ${wl}archive'
10004 irix5* | irix6* | nonstopux*)
10005 lt_prog_compiler_wl='-Wl,'
10006 # PIC (with -KPIC) is the default.
10007 lt_prog_compiler_static='-non_shared'
10010 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10011 case $cc_basename in
10012 # old Intel for x86_64 which still supported -KPIC.
10013 ecc*)
10014 lt_prog_compiler_wl='-Wl,'
10015 lt_prog_compiler_pic='-KPIC'
10016 lt_prog_compiler_static='-static'
10018 # icc used to be incompatible with GCC.
10019 # ICC 10 doesn't accept -KPIC any more.
10020 icc* | ifort*)
10021 lt_prog_compiler_wl='-Wl,'
10022 lt_prog_compiler_pic='-fPIC'
10023 lt_prog_compiler_static='-static'
10025 # Lahey Fortran 8.1.
10026 lf95*)
10027 lt_prog_compiler_wl='-Wl,'
10028 lt_prog_compiler_pic='--shared'
10029 lt_prog_compiler_static='--static'
10031 nagfor*)
10032 # NAG Fortran compiler
10033 lt_prog_compiler_wl='-Wl,-Wl,,'
10034 lt_prog_compiler_pic='-PIC'
10035 lt_prog_compiler_static='-Bstatic'
10037 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10038 # Portland Group compilers (*not* the Pentium gcc compiler,
10039 # which looks to be a dead project)
10040 lt_prog_compiler_wl='-Wl,'
10041 lt_prog_compiler_pic='-fpic'
10042 lt_prog_compiler_static='-Bstatic'
10044 ccc*)
10045 lt_prog_compiler_wl='-Wl,'
10046 # All Alpha code is PIC.
10047 lt_prog_compiler_static='-non_shared'
10049 xl* | bgxl* | bgf* | mpixl*)
10050 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10051 lt_prog_compiler_wl='-Wl,'
10052 lt_prog_compiler_pic='-qpic'
10053 lt_prog_compiler_static='-qstaticlink'
10056 case `$CC -V 2>&1 | sed 5q` in
10057 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10058 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10059 lt_prog_compiler_pic='-KPIC'
10060 lt_prog_compiler_static='-Bstatic'
10061 lt_prog_compiler_wl=''
10063 *Sun\ F* | *Sun*Fortran*)
10064 lt_prog_compiler_pic='-KPIC'
10065 lt_prog_compiler_static='-Bstatic'
10066 lt_prog_compiler_wl='-Qoption ld '
10068 *Sun\ C*)
10069 # Sun C 5.9
10070 lt_prog_compiler_pic='-KPIC'
10071 lt_prog_compiler_static='-Bstatic'
10072 lt_prog_compiler_wl='-Wl,'
10074 *Intel*\ [CF]*Compiler*)
10075 lt_prog_compiler_wl='-Wl,'
10076 lt_prog_compiler_pic='-fPIC'
10077 lt_prog_compiler_static='-static'
10079 *Portland\ Group*)
10080 lt_prog_compiler_wl='-Wl,'
10081 lt_prog_compiler_pic='-fpic'
10082 lt_prog_compiler_static='-Bstatic'
10084 esac
10086 esac
10089 newsos6)
10090 lt_prog_compiler_pic='-KPIC'
10091 lt_prog_compiler_static='-Bstatic'
10094 *nto* | *qnx*)
10095 # QNX uses GNU C++, but need to define -shared option too, otherwise
10096 # it will coredump.
10097 lt_prog_compiler_pic='-fPIC -shared'
10100 osf3* | osf4* | osf5*)
10101 lt_prog_compiler_wl='-Wl,'
10102 # All OSF/1 code is PIC.
10103 lt_prog_compiler_static='-non_shared'
10106 rdos*)
10107 lt_prog_compiler_static='-non_shared'
10110 solaris*)
10111 lt_prog_compiler_pic='-KPIC'
10112 lt_prog_compiler_static='-Bstatic'
10113 case $cc_basename in
10114 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10115 lt_prog_compiler_wl='-Qoption ld ';;
10117 lt_prog_compiler_wl='-Wl,';;
10118 esac
10121 sunos4*)
10122 lt_prog_compiler_wl='-Qoption ld '
10123 lt_prog_compiler_pic='-PIC'
10124 lt_prog_compiler_static='-Bstatic'
10127 sysv4 | sysv4.2uw2* | sysv4.3*)
10128 lt_prog_compiler_wl='-Wl,'
10129 lt_prog_compiler_pic='-KPIC'
10130 lt_prog_compiler_static='-Bstatic'
10133 sysv4*MP*)
10134 if test -d /usr/nec ;then
10135 lt_prog_compiler_pic='-Kconform_pic'
10136 lt_prog_compiler_static='-Bstatic'
10140 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10141 lt_prog_compiler_wl='-Wl,'
10142 lt_prog_compiler_pic='-KPIC'
10143 lt_prog_compiler_static='-Bstatic'
10146 unicos*)
10147 lt_prog_compiler_wl='-Wl,'
10148 lt_prog_compiler_can_build_shared=no
10151 uts4*)
10152 lt_prog_compiler_pic='-pic'
10153 lt_prog_compiler_static='-Bstatic'
10157 lt_prog_compiler_can_build_shared=no
10159 esac
10162 case $host_os in
10163 # For platforms which do not support PIC, -DPIC is meaningless:
10164 *djgpp*)
10165 lt_prog_compiler_pic=
10168 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10170 esac
10172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10173 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10174 if ${lt_cv_prog_compiler_pic+:} false; then :
10175 $as_echo_n "(cached) " >&6
10176 else
10177 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10180 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10181 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10184 # Check to make sure the PIC flag actually works.
10186 if test -n "$lt_prog_compiler_pic"; then
10187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10188 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10189 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10190 $as_echo_n "(cached) " >&6
10191 else
10192 lt_cv_prog_compiler_pic_works=no
10193 ac_outfile=conftest.$ac_objext
10194 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10195 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10196 # Insert the option either (1) after the last *FLAGS variable, or
10197 # (2) before a word containing "conftest.", or (3) at the end.
10198 # Note that $ac_compile itself does not contain backslashes and begins
10199 # with a dollar sign (not a hyphen), so the echo should work correctly.
10200 # The option is referenced via a variable to avoid confusing sed.
10201 lt_compile=`echo "$ac_compile" | $SED \
10202 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10203 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10204 -e 's:$: $lt_compiler_flag:'`
10205 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10206 (eval "$lt_compile" 2>conftest.err)
10207 ac_status=$?
10208 cat conftest.err >&5
10209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10210 if (exit $ac_status) && test -s "$ac_outfile"; then
10211 # The compiler can only warn and ignore the option if not recognized
10212 # So say no if there are warnings other than the usual output.
10213 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10214 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10215 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10216 lt_cv_prog_compiler_pic_works=yes
10219 $RM conftest*
10222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10223 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10225 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10226 case $lt_prog_compiler_pic in
10227 "" | " "*) ;;
10228 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10229 esac
10230 else
10231 lt_prog_compiler_pic=
10232 lt_prog_compiler_can_build_shared=no
10248 # Check to make sure the static flag actually works.
10250 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10252 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10253 if ${lt_cv_prog_compiler_static_works+:} false; then :
10254 $as_echo_n "(cached) " >&6
10255 else
10256 lt_cv_prog_compiler_static_works=no
10257 save_LDFLAGS="$LDFLAGS"
10258 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10259 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10260 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10261 # The linker can only warn and ignore the option if not recognized
10262 # So say no if there are warnings
10263 if test -s conftest.err; then
10264 # Append any errors to the config.log.
10265 cat conftest.err 1>&5
10266 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10267 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10268 if diff conftest.exp conftest.er2 >/dev/null; then
10269 lt_cv_prog_compiler_static_works=yes
10271 else
10272 lt_cv_prog_compiler_static_works=yes
10275 $RM -r conftest*
10276 LDFLAGS="$save_LDFLAGS"
10279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10280 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10282 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10284 else
10285 lt_prog_compiler_static=
10294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10295 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10296 if ${lt_cv_prog_compiler_c_o+:} false; then :
10297 $as_echo_n "(cached) " >&6
10298 else
10299 lt_cv_prog_compiler_c_o=no
10300 $RM -r conftest 2>/dev/null
10301 mkdir conftest
10302 cd conftest
10303 mkdir out
10304 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10306 lt_compiler_flag="-o out/conftest2.$ac_objext"
10307 # Insert the option either (1) after the last *FLAGS variable, or
10308 # (2) before a word containing "conftest.", or (3) at the end.
10309 # Note that $ac_compile itself does not contain backslashes and begins
10310 # with a dollar sign (not a hyphen), so the echo should work correctly.
10311 lt_compile=`echo "$ac_compile" | $SED \
10312 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10313 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10314 -e 's:$: $lt_compiler_flag:'`
10315 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10316 (eval "$lt_compile" 2>out/conftest.err)
10317 ac_status=$?
10318 cat out/conftest.err >&5
10319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10320 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10321 then
10322 # The compiler can only warn and ignore the option if not recognized
10323 # So say no if there are warnings
10324 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10325 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10326 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10327 lt_cv_prog_compiler_c_o=yes
10330 chmod u+w . 2>&5
10331 $RM conftest*
10332 # SGI C++ compiler will create directory out/ii_files/ for
10333 # template instantiation
10334 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10335 $RM out/* && rmdir out
10336 cd ..
10337 $RM -r conftest
10338 $RM conftest*
10341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10342 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10350 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10351 if ${lt_cv_prog_compiler_c_o+:} false; then :
10352 $as_echo_n "(cached) " >&6
10353 else
10354 lt_cv_prog_compiler_c_o=no
10355 $RM -r conftest 2>/dev/null
10356 mkdir conftest
10357 cd conftest
10358 mkdir out
10359 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10361 lt_compiler_flag="-o out/conftest2.$ac_objext"
10362 # Insert the option either (1) after the last *FLAGS variable, or
10363 # (2) before a word containing "conftest.", or (3) at the end.
10364 # Note that $ac_compile itself does not contain backslashes and begins
10365 # with a dollar sign (not a hyphen), so the echo should work correctly.
10366 lt_compile=`echo "$ac_compile" | $SED \
10367 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10368 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10369 -e 's:$: $lt_compiler_flag:'`
10370 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10371 (eval "$lt_compile" 2>out/conftest.err)
10372 ac_status=$?
10373 cat out/conftest.err >&5
10374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10375 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10376 then
10377 # The compiler can only warn and ignore the option if not recognized
10378 # So say no if there are warnings
10379 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10380 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10381 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10382 lt_cv_prog_compiler_c_o=yes
10385 chmod u+w . 2>&5
10386 $RM conftest*
10387 # SGI C++ compiler will create directory out/ii_files/ for
10388 # template instantiation
10389 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10390 $RM out/* && rmdir out
10391 cd ..
10392 $RM -r conftest
10393 $RM conftest*
10396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10397 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10402 hard_links="nottested"
10403 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10404 # do not overwrite the value of need_locks provided by the user
10405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10406 $as_echo_n "checking if we can lock with hard links... " >&6; }
10407 hard_links=yes
10408 $RM conftest*
10409 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10410 touch conftest.a
10411 ln conftest.a conftest.b 2>&5 || hard_links=no
10412 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10414 $as_echo "$hard_links" >&6; }
10415 if test "$hard_links" = no; then
10416 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10417 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10418 need_locks=warn
10420 else
10421 need_locks=no
10429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10430 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10432 runpath_var=
10433 allow_undefined_flag=
10434 always_export_symbols=no
10435 archive_cmds=
10436 archive_expsym_cmds=
10437 compiler_needs_object=no
10438 enable_shared_with_static_runtimes=no
10439 export_dynamic_flag_spec=
10440 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10441 hardcode_automatic=no
10442 hardcode_direct=no
10443 hardcode_direct_absolute=no
10444 hardcode_libdir_flag_spec=
10445 hardcode_libdir_separator=
10446 hardcode_minus_L=no
10447 hardcode_shlibpath_var=unsupported
10448 inherit_rpath=no
10449 link_all_deplibs=unknown
10450 module_cmds=
10451 module_expsym_cmds=
10452 old_archive_from_new_cmds=
10453 old_archive_from_expsyms_cmds=
10454 thread_safe_flag_spec=
10455 whole_archive_flag_spec=
10456 # include_expsyms should be a list of space-separated symbols to be *always*
10457 # included in the symbol list
10458 include_expsyms=
10459 # exclude_expsyms can be an extended regexp of symbols to exclude
10460 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10461 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10462 # as well as any symbol that contains `d'.
10463 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10464 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10465 # platforms (ab)use it in PIC code, but their linkers get confused if
10466 # the symbol is explicitly referenced. Since portable code cannot
10467 # rely on this symbol name, it's probably fine to never include it in
10468 # preloaded symbol tables.
10469 # Exclude shared library initialization/finalization symbols.
10470 extract_expsyms_cmds=
10472 case $host_os in
10473 cygwin* | mingw* | pw32* | cegcc*)
10474 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10475 # When not using gcc, we currently assume that we are using
10476 # Microsoft Visual C++.
10477 if test "$GCC" != yes; then
10478 with_gnu_ld=no
10481 interix*)
10482 # we just hope/assume this is gcc and not c89 (= MSVC++)
10483 with_gnu_ld=yes
10485 openbsd*)
10486 with_gnu_ld=no
10488 linux* | k*bsd*-gnu | gnu*)
10489 link_all_deplibs=no
10491 esac
10493 ld_shlibs=yes
10495 # On some targets, GNU ld is compatible enough with the native linker
10496 # that we're better off using the native interface for both.
10497 lt_use_gnu_ld_interface=no
10498 if test "$with_gnu_ld" = yes; then
10499 case $host_os in
10500 aix*)
10501 # The AIX port of GNU ld has always aspired to compatibility
10502 # with the native linker. However, as the warning in the GNU ld
10503 # block says, versions before 2.19.5* couldn't really create working
10504 # shared libraries, regardless of the interface used.
10505 case `$LD -v 2>&1` in
10506 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10507 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10508 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10510 lt_use_gnu_ld_interface=yes
10512 esac
10515 lt_use_gnu_ld_interface=yes
10517 esac
10520 if test "$lt_use_gnu_ld_interface" = yes; then
10521 # If archive_cmds runs LD, not CC, wlarc should be empty
10522 wlarc='${wl}'
10524 # Set some defaults for GNU ld with shared library support. These
10525 # are reset later if shared libraries are not supported. Putting them
10526 # here allows them to be overridden if necessary.
10527 runpath_var=LD_RUN_PATH
10528 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10529 export_dynamic_flag_spec='${wl}--export-dynamic'
10530 # ancient GNU ld didn't support --whole-archive et. al.
10531 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10532 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10533 else
10534 whole_archive_flag_spec=
10536 supports_anon_versioning=no
10537 case `$LD -v 2>&1` in
10538 *GNU\ gold*) supports_anon_versioning=yes ;;
10539 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10540 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10541 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10542 *\ 2.11.*) ;; # other 2.11 versions
10543 *) supports_anon_versioning=yes ;;
10544 esac
10546 # See if GNU ld supports shared libraries.
10547 case $host_os in
10548 aix[3-9]*)
10549 # On AIX/PPC, the GNU linker is very broken
10550 if test "$host_cpu" != ia64; then
10551 ld_shlibs=no
10552 cat <<_LT_EOF 1>&2
10554 *** Warning: the GNU linker, at least up to release 2.19, is reported
10555 *** to be unable to reliably create shared libraries on AIX.
10556 *** Therefore, libtool is disabling shared libraries support. If you
10557 *** really care for shared libraries, you may want to install binutils
10558 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10559 *** You will then need to restart the configuration process.
10561 _LT_EOF
10565 amigaos*)
10566 case $host_cpu in
10567 powerpc)
10568 # see comment about AmigaOS4 .so support
10569 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10570 archive_expsym_cmds=''
10572 m68k)
10573 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)'
10574 hardcode_libdir_flag_spec='-L$libdir'
10575 hardcode_minus_L=yes
10577 esac
10580 beos*)
10581 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10582 allow_undefined_flag=unsupported
10583 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10584 # support --undefined. This deserves some investigation. FIXME
10585 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10586 else
10587 ld_shlibs=no
10591 cygwin* | mingw* | pw32* | cegcc*)
10592 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10593 # as there is no search path for DLLs.
10594 hardcode_libdir_flag_spec='-L$libdir'
10595 export_dynamic_flag_spec='${wl}--export-all-symbols'
10596 allow_undefined_flag=unsupported
10597 always_export_symbols=no
10598 enable_shared_with_static_runtimes=yes
10599 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'
10600 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10602 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10603 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10604 # If the export-symbols file already is a .def file (1st line
10605 # is EXPORTS), use it as is; otherwise, prepend...
10606 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10607 cp $export_symbols $output_objdir/$soname.def;
10608 else
10609 echo EXPORTS > $output_objdir/$soname.def;
10610 cat $export_symbols >> $output_objdir/$soname.def;
10612 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10613 else
10614 ld_shlibs=no
10618 haiku*)
10619 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10620 link_all_deplibs=yes
10623 interix[3-9]*)
10624 hardcode_direct=no
10625 hardcode_shlibpath_var=no
10626 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10627 export_dynamic_flag_spec='${wl}-E'
10628 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10629 # Instead, shared libraries are loaded at an image base (0x10000000 by
10630 # default) and relocated if they conflict, which is a slow very memory
10631 # consuming and fragmenting process. To avoid this, we pick a random,
10632 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10633 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10634 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10635 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'
10638 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10639 tmp_diet=no
10640 if test "$host_os" = linux-dietlibc; then
10641 case $cc_basename in
10642 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10643 esac
10645 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10646 && test "$tmp_diet" = no
10647 then
10648 tmp_addflag=' $pic_flag'
10649 tmp_sharedflag='-shared'
10650 case $cc_basename,$host_cpu in
10651 pgcc*) # Portland Group C compiler
10652 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'
10653 tmp_addflag=' $pic_flag'
10655 pgf77* | pgf90* | pgf95* | pgfortran*)
10656 # Portland Group f77 and f90 compilers
10657 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'
10658 tmp_addflag=' $pic_flag -Mnomain' ;;
10659 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10660 tmp_addflag=' -i_dynamic' ;;
10661 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10662 tmp_addflag=' -i_dynamic -nofor_main' ;;
10663 ifc* | ifort*) # Intel Fortran compiler
10664 tmp_addflag=' -nofor_main' ;;
10665 lf95*) # Lahey Fortran 8.1
10666 whole_archive_flag_spec=
10667 tmp_sharedflag='--shared' ;;
10668 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10669 tmp_sharedflag='-qmkshrobj'
10670 tmp_addflag= ;;
10671 nvcc*) # Cuda Compiler Driver 2.2
10672 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'
10673 compiler_needs_object=yes
10675 esac
10676 case `$CC -V 2>&1 | sed 5q` in
10677 *Sun\ C*) # Sun C 5.9
10678 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'
10679 compiler_needs_object=yes
10680 tmp_sharedflag='-G' ;;
10681 *Sun\ F*) # Sun Fortran 8.3
10682 tmp_sharedflag='-G' ;;
10683 esac
10684 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10686 if test "x$supports_anon_versioning" = xyes; then
10687 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10688 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10689 echo "local: *; };" >> $output_objdir/$libname.ver~
10690 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10693 case $cc_basename in
10694 xlf* | bgf* | bgxlf* | mpixlf*)
10695 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10696 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10697 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10698 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10699 if test "x$supports_anon_versioning" = xyes; then
10700 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10701 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10702 echo "local: *; };" >> $output_objdir/$libname.ver~
10703 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10706 esac
10707 else
10708 ld_shlibs=no
10712 netbsd* | netbsdelf*-gnu)
10713 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10714 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10715 wlarc=
10716 else
10717 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10718 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10722 solaris*)
10723 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10724 ld_shlibs=no
10725 cat <<_LT_EOF 1>&2
10727 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10728 *** create shared libraries on Solaris systems. Therefore, libtool
10729 *** is disabling shared libraries support. We urge you to upgrade GNU
10730 *** binutils to release 2.9.1 or newer. Another option is to modify
10731 *** your PATH or compiler configuration so that the native linker is
10732 *** used, and then restart.
10734 _LT_EOF
10735 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10736 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10737 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10738 else
10739 ld_shlibs=no
10743 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10744 case `$LD -v 2>&1` in
10745 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10746 ld_shlibs=no
10747 cat <<_LT_EOF 1>&2
10749 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10750 *** reliably create shared libraries on SCO systems. Therefore, libtool
10751 *** is disabling shared libraries support. We urge you to upgrade GNU
10752 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10753 *** your PATH or compiler configuration so that the native linker is
10754 *** used, and then restart.
10756 _LT_EOF
10759 # For security reasons, it is highly recommended that you always
10760 # use absolute paths for naming shared libraries, and exclude the
10761 # DT_RUNPATH tag from executables and libraries. But doing so
10762 # requires that you compile everything twice, which is a pain.
10763 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10764 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10765 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10766 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10767 else
10768 ld_shlibs=no
10771 esac
10774 sunos4*)
10775 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10776 wlarc=
10777 hardcode_direct=yes
10778 hardcode_shlibpath_var=no
10782 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10783 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10784 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10785 else
10786 ld_shlibs=no
10789 esac
10791 if test "$ld_shlibs" = no; then
10792 runpath_var=
10793 hardcode_libdir_flag_spec=
10794 export_dynamic_flag_spec=
10795 whole_archive_flag_spec=
10797 else
10798 # PORTME fill in a description of your system's linker (not GNU ld)
10799 case $host_os in
10800 aix3*)
10801 allow_undefined_flag=unsupported
10802 always_export_symbols=yes
10803 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'
10804 # Note: this linker hardcodes the directories in LIBPATH if there
10805 # are no directories specified by -L.
10806 hardcode_minus_L=yes
10807 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10808 # Neither direct hardcoding nor static linking is supported with a
10809 # broken collect2.
10810 hardcode_direct=unsupported
10814 aix[4-9]*)
10815 if test "$host_cpu" = ia64; then
10816 # On IA64, the linker does run time linking by default, so we don't
10817 # have to do anything special.
10818 aix_use_runtimelinking=no
10819 exp_sym_flag='-Bexport'
10820 no_entry_flag=""
10821 else
10822 # If we're using GNU nm, then we don't want the "-C" option.
10823 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10824 # Also, AIX nm treats weak defined symbols like other global
10825 # defined symbols, whereas GNU nm marks them as "W".
10826 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10827 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'
10828 else
10829 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'
10831 aix_use_runtimelinking=no
10833 # Test if we are trying to use run time linking or normal
10834 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10835 # need to do runtime linking.
10836 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10837 for ld_flag in $LDFLAGS; do
10838 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10839 aix_use_runtimelinking=yes
10840 break
10842 done
10844 esac
10846 exp_sym_flag='-bexport'
10847 no_entry_flag='-bnoentry'
10850 # When large executables or shared objects are built, AIX ld can
10851 # have problems creating the table of contents. If linking a library
10852 # or program results in "error TOC overflow" add -mminimal-toc to
10853 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10854 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10856 archive_cmds=''
10857 hardcode_direct=yes
10858 hardcode_direct_absolute=yes
10859 hardcode_libdir_separator=':'
10860 link_all_deplibs=yes
10861 file_list_spec='${wl}-f,'
10863 if test "$GCC" = yes; then
10864 case $host_os in aix4.[012]|aix4.[012].*)
10865 # We only want to do this on AIX 4.2 and lower, the check
10866 # below for broken collect2 doesn't work under 4.3+
10867 collect2name=`${CC} -print-prog-name=collect2`
10868 if test -f "$collect2name" &&
10869 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10870 then
10871 # We have reworked collect2
10873 else
10874 # We have old collect2
10875 hardcode_direct=unsupported
10876 # It fails to find uninstalled libraries when the uninstalled
10877 # path is not listed in the libpath. Setting hardcode_minus_L
10878 # to unsupported forces relinking
10879 hardcode_minus_L=yes
10880 hardcode_libdir_flag_spec='-L$libdir'
10881 hardcode_libdir_separator=
10884 esac
10885 shared_flag='-shared'
10886 if test "$aix_use_runtimelinking" = yes; then
10887 shared_flag="$shared_flag "'${wl}-G'
10889 link_all_deplibs=no
10890 else
10891 # not using gcc
10892 if test "$host_cpu" = ia64; then
10893 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10894 # chokes on -Wl,-G. The following line is correct:
10895 shared_flag='-G'
10896 else
10897 if test "$aix_use_runtimelinking" = yes; then
10898 shared_flag='${wl}-G'
10899 else
10900 shared_flag='${wl}-bM:SRE'
10905 export_dynamic_flag_spec='${wl}-bexpall'
10906 # It seems that -bexpall does not export symbols beginning with
10907 # underscore (_), so it is better to generate a list of symbols to export.
10908 always_export_symbols=yes
10909 if test "$aix_use_runtimelinking" = yes; then
10910 # Warning - without using the other runtime loading flags (-brtl),
10911 # -berok will link without error, but may produce a broken library.
10912 allow_undefined_flag='-berok'
10913 # Determine the default libpath from the value encoded in an
10914 # empty executable.
10915 if test "${lt_cv_aix_libpath+set}" = set; then
10916 aix_libpath=$lt_cv_aix_libpath
10917 else
10918 if ${lt_cv_aix_libpath_+:} false; then :
10919 $as_echo_n "(cached) " >&6
10920 else
10921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10922 /* end confdefs.h. */
10925 main ()
10929 return 0;
10931 _ACEOF
10932 if ac_fn_c_try_link "$LINENO"; then :
10934 lt_aix_libpath_sed='
10935 /Import File Strings/,/^$/ {
10936 /^0/ {
10937 s/^0 *\([^ ]*\) *$/\1/
10941 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10942 # Check for a 64-bit object if we didn't find anything.
10943 if test -z "$lt_cv_aix_libpath_"; then
10944 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10947 rm -f core conftest.err conftest.$ac_objext \
10948 conftest$ac_exeext conftest.$ac_ext
10949 if test -z "$lt_cv_aix_libpath_"; then
10950 lt_cv_aix_libpath_="/usr/lib:/lib"
10955 aix_libpath=$lt_cv_aix_libpath_
10958 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10959 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"
10960 else
10961 if test "$host_cpu" = ia64; then
10962 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10963 allow_undefined_flag="-z nodefs"
10964 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"
10965 else
10966 # Determine the default libpath from the value encoded in an
10967 # empty executable.
10968 if test "${lt_cv_aix_libpath+set}" = set; then
10969 aix_libpath=$lt_cv_aix_libpath
10970 else
10971 if ${lt_cv_aix_libpath_+:} false; then :
10972 $as_echo_n "(cached) " >&6
10973 else
10974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10975 /* end confdefs.h. */
10978 main ()
10982 return 0;
10984 _ACEOF
10985 if ac_fn_c_try_link "$LINENO"; then :
10987 lt_aix_libpath_sed='
10988 /Import File Strings/,/^$/ {
10989 /^0/ {
10990 s/^0 *\([^ ]*\) *$/\1/
10994 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10995 # Check for a 64-bit object if we didn't find anything.
10996 if test -z "$lt_cv_aix_libpath_"; then
10997 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11000 rm -f core conftest.err conftest.$ac_objext \
11001 conftest$ac_exeext conftest.$ac_ext
11002 if test -z "$lt_cv_aix_libpath_"; then
11003 lt_cv_aix_libpath_="/usr/lib:/lib"
11008 aix_libpath=$lt_cv_aix_libpath_
11011 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11012 # Warning - without using the other run time loading flags,
11013 # -berok will link without error, but may produce a broken library.
11014 no_undefined_flag=' ${wl}-bernotok'
11015 allow_undefined_flag=' ${wl}-berok'
11016 if test "$with_gnu_ld" = yes; then
11017 # We only use this code for GNU lds that support --whole-archive.
11018 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11019 else
11020 # Exported symbols can be pulled into shared objects from archives
11021 whole_archive_flag_spec='$convenience'
11023 archive_cmds_need_lc=yes
11024 # This is similar to how AIX traditionally builds its shared libraries.
11025 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'
11030 amigaos*)
11031 case $host_cpu in
11032 powerpc)
11033 # see comment about AmigaOS4 .so support
11034 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11035 archive_expsym_cmds=''
11037 m68k)
11038 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)'
11039 hardcode_libdir_flag_spec='-L$libdir'
11040 hardcode_minus_L=yes
11042 esac
11045 bsdi[45]*)
11046 export_dynamic_flag_spec=-rdynamic
11049 cygwin* | mingw* | pw32* | cegcc*)
11050 # When not using gcc, we currently assume that we are using
11051 # Microsoft Visual C++.
11052 # hardcode_libdir_flag_spec is actually meaningless, as there is
11053 # no search path for DLLs.
11054 case $cc_basename in
11055 cl*)
11056 # Native MSVC
11057 hardcode_libdir_flag_spec=' '
11058 allow_undefined_flag=unsupported
11059 always_export_symbols=yes
11060 file_list_spec='@'
11061 # Tell ltmain to make .lib files, not .a files.
11062 libext=lib
11063 # Tell ltmain to make .dll files, not .so files.
11064 shrext_cmds=".dll"
11065 # FIXME: Setting linknames here is a bad hack.
11066 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
11067 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11068 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
11069 else
11070 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
11072 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11073 linknames='
11074 # The linker will not automatically build a static lib if we build a DLL.
11075 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11076 enable_shared_with_static_runtimes=yes
11077 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11078 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11079 # Don't use ranlib
11080 old_postinstall_cmds='chmod 644 $oldlib'
11081 postlink_cmds='lt_outputfile="@OUTPUT@"~
11082 lt_tool_outputfile="@TOOL_OUTPUT@"~
11083 case $lt_outputfile in
11084 *.exe|*.EXE) ;;
11086 lt_outputfile="$lt_outputfile.exe"
11087 lt_tool_outputfile="$lt_tool_outputfile.exe"
11089 esac~
11090 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
11091 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11092 $RM "$lt_outputfile.manifest";
11096 # Assume MSVC wrapper
11097 hardcode_libdir_flag_spec=' '
11098 allow_undefined_flag=unsupported
11099 # Tell ltmain to make .lib files, not .a files.
11100 libext=lib
11101 # Tell ltmain to make .dll files, not .so files.
11102 shrext_cmds=".dll"
11103 # FIXME: Setting linknames here is a bad hack.
11104 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11105 # The linker will automatically build a .lib file if we build a DLL.
11106 old_archive_from_new_cmds='true'
11107 # FIXME: Should let the user specify the lib program.
11108 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11109 enable_shared_with_static_runtimes=yes
11111 esac
11114 darwin* | rhapsody*)
11117 archive_cmds_need_lc=no
11118 hardcode_direct=no
11119 hardcode_automatic=yes
11120 hardcode_shlibpath_var=unsupported
11121 if test "$lt_cv_ld_force_load" = "yes"; then
11122 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\"`'
11124 else
11125 whole_archive_flag_spec=''
11127 link_all_deplibs=yes
11128 allow_undefined_flag="$_lt_dar_allow_undefined"
11129 case $cc_basename in
11130 ifort*) _lt_dar_can_shared=yes ;;
11131 *) _lt_dar_can_shared=$GCC ;;
11132 esac
11133 if test "$_lt_dar_can_shared" = "yes"; then
11134 output_verbose_link_cmd=func_echo_all
11135 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11136 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11137 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}"
11138 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}"
11140 else
11141 ld_shlibs=no
11146 dgux*)
11147 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11148 hardcode_libdir_flag_spec='-L$libdir'
11149 hardcode_shlibpath_var=no
11152 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11153 # support. Future versions do this automatically, but an explicit c++rt0.o
11154 # does not break anything, and helps significantly (at the cost of a little
11155 # extra space).
11156 freebsd2.2*)
11157 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11158 hardcode_libdir_flag_spec='-R$libdir'
11159 hardcode_direct=yes
11160 hardcode_shlibpath_var=no
11163 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11164 freebsd2.*)
11165 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11166 hardcode_direct=yes
11167 hardcode_minus_L=yes
11168 hardcode_shlibpath_var=no
11171 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11172 freebsd* | dragonfly*)
11173 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11174 hardcode_libdir_flag_spec='-R$libdir'
11175 hardcode_direct=yes
11176 hardcode_shlibpath_var=no
11179 hpux9*)
11180 if test "$GCC" = yes; then
11181 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'
11182 else
11183 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'
11185 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11186 hardcode_libdir_separator=:
11187 hardcode_direct=yes
11189 # hardcode_minus_L: Not really in the search PATH,
11190 # but as the default location of the library.
11191 hardcode_minus_L=yes
11192 export_dynamic_flag_spec='${wl}-E'
11195 hpux10*)
11196 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11197 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11198 else
11199 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11201 if test "$with_gnu_ld" = no; then
11202 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11203 hardcode_libdir_separator=:
11204 hardcode_direct=yes
11205 hardcode_direct_absolute=yes
11206 export_dynamic_flag_spec='${wl}-E'
11207 # hardcode_minus_L: Not really in the search PATH,
11208 # but as the default location of the library.
11209 hardcode_minus_L=yes
11213 hpux11*)
11214 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11215 case $host_cpu in
11216 hppa*64*)
11217 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11219 ia64*)
11220 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11223 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11225 esac
11226 else
11227 case $host_cpu in
11228 hppa*64*)
11229 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11231 ia64*)
11232 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11236 # Older versions of the 11.00 compiler do not understand -b yet
11237 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11239 $as_echo_n "checking if $CC understands -b... " >&6; }
11240 if ${lt_cv_prog_compiler__b+:} false; then :
11241 $as_echo_n "(cached) " >&6
11242 else
11243 lt_cv_prog_compiler__b=no
11244 save_LDFLAGS="$LDFLAGS"
11245 LDFLAGS="$LDFLAGS -b"
11246 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11247 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11248 # The linker can only warn and ignore the option if not recognized
11249 # So say no if there are warnings
11250 if test -s conftest.err; then
11251 # Append any errors to the config.log.
11252 cat conftest.err 1>&5
11253 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11254 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11255 if diff conftest.exp conftest.er2 >/dev/null; then
11256 lt_cv_prog_compiler__b=yes
11258 else
11259 lt_cv_prog_compiler__b=yes
11262 $RM -r conftest*
11263 LDFLAGS="$save_LDFLAGS"
11266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11267 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11269 if test x"$lt_cv_prog_compiler__b" = xyes; then
11270 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11271 else
11272 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11276 esac
11278 if test "$with_gnu_ld" = no; then
11279 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11280 hardcode_libdir_separator=:
11282 case $host_cpu in
11283 hppa*64*|ia64*)
11284 hardcode_direct=no
11285 hardcode_shlibpath_var=no
11288 hardcode_direct=yes
11289 hardcode_direct_absolute=yes
11290 export_dynamic_flag_spec='${wl}-E'
11292 # hardcode_minus_L: Not really in the search PATH,
11293 # but as the default location of the library.
11294 hardcode_minus_L=yes
11296 esac
11300 irix5* | irix6* | nonstopux*)
11301 if test "$GCC" = yes; then
11302 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'
11303 # Try to use the -exported_symbol ld option, if it does not
11304 # work, assume that -exports_file does not work either and
11305 # implicitly export all symbols.
11306 # This should be the same for all languages, so no per-tag cache variable.
11307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11308 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11309 if ${lt_cv_irix_exported_symbol+:} false; then :
11310 $as_echo_n "(cached) " >&6
11311 else
11312 save_LDFLAGS="$LDFLAGS"
11313 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11315 /* end confdefs.h. */
11316 int foo (void) { return 0; }
11317 _ACEOF
11318 if ac_fn_c_try_link "$LINENO"; then :
11319 lt_cv_irix_exported_symbol=yes
11320 else
11321 lt_cv_irix_exported_symbol=no
11323 rm -f core conftest.err conftest.$ac_objext \
11324 conftest$ac_exeext conftest.$ac_ext
11325 LDFLAGS="$save_LDFLAGS"
11327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11328 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11329 if test "$lt_cv_irix_exported_symbol" = yes; then
11330 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'
11332 else
11333 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'
11334 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'
11336 archive_cmds_need_lc='no'
11337 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11338 hardcode_libdir_separator=:
11339 inherit_rpath=yes
11340 link_all_deplibs=yes
11343 netbsd* | netbsdelf*-gnu)
11344 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11345 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11346 else
11347 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11349 hardcode_libdir_flag_spec='-R$libdir'
11350 hardcode_direct=yes
11351 hardcode_shlibpath_var=no
11354 newsos6)
11355 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11356 hardcode_direct=yes
11357 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11358 hardcode_libdir_separator=:
11359 hardcode_shlibpath_var=no
11362 *nto* | *qnx*)
11365 openbsd*)
11366 if test -f /usr/libexec/ld.so; then
11367 hardcode_direct=yes
11368 hardcode_shlibpath_var=no
11369 hardcode_direct_absolute=yes
11370 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11371 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11372 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11373 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11374 export_dynamic_flag_spec='${wl}-E'
11375 else
11376 case $host_os in
11377 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11378 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11379 hardcode_libdir_flag_spec='-R$libdir'
11382 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11383 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11385 esac
11387 else
11388 ld_shlibs=no
11392 os2*)
11393 hardcode_libdir_flag_spec='-L$libdir'
11394 hardcode_minus_L=yes
11395 allow_undefined_flag=unsupported
11396 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'
11397 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11400 osf3*)
11401 if test "$GCC" = yes; then
11402 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11403 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'
11404 else
11405 allow_undefined_flag=' -expect_unresolved \*'
11406 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'
11408 archive_cmds_need_lc='no'
11409 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11410 hardcode_libdir_separator=:
11413 osf4* | osf5*) # as osf3* with the addition of -msym flag
11414 if test "$GCC" = yes; then
11415 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11416 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'
11417 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11418 else
11419 allow_undefined_flag=' -expect_unresolved \*'
11420 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'
11421 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~
11422 $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'
11424 # Both c and cxx compiler support -rpath directly
11425 hardcode_libdir_flag_spec='-rpath $libdir'
11427 archive_cmds_need_lc='no'
11428 hardcode_libdir_separator=:
11431 solaris*)
11432 no_undefined_flag=' -z defs'
11433 if test "$GCC" = yes; then
11434 wlarc='${wl}'
11435 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11436 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11437 $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'
11438 else
11439 case `$CC -V 2>&1` in
11440 *"Compilers 5.0"*)
11441 wlarc=''
11442 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11443 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11444 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11447 wlarc='${wl}'
11448 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11449 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11450 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11452 esac
11454 hardcode_libdir_flag_spec='-R$libdir'
11455 hardcode_shlibpath_var=no
11456 case $host_os in
11457 solaris2.[0-5] | solaris2.[0-5].*) ;;
11459 # The compiler driver will combine and reorder linker options,
11460 # but understands `-z linker_flag'. GCC discards it without `$wl',
11461 # but is careful enough not to reorder.
11462 # Supported since Solaris 2.6 (maybe 2.5.1?)
11463 if test "$GCC" = yes; then
11464 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11465 else
11466 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11469 esac
11470 link_all_deplibs=yes
11473 sunos4*)
11474 if test "x$host_vendor" = xsequent; then
11475 # Use $CC to link under sequent, because it throws in some extra .o
11476 # files that make .init and .fini sections work.
11477 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11478 else
11479 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11481 hardcode_libdir_flag_spec='-L$libdir'
11482 hardcode_direct=yes
11483 hardcode_minus_L=yes
11484 hardcode_shlibpath_var=no
11487 sysv4)
11488 case $host_vendor in
11489 sni)
11490 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11491 hardcode_direct=yes # is this really true???
11493 siemens)
11494 ## LD is ld it makes a PLAMLIB
11495 ## CC just makes a GrossModule.
11496 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11497 reload_cmds='$CC -r -o $output$reload_objs'
11498 hardcode_direct=no
11500 motorola)
11501 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11502 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11504 esac
11505 runpath_var='LD_RUN_PATH'
11506 hardcode_shlibpath_var=no
11509 sysv4.3*)
11510 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11511 hardcode_shlibpath_var=no
11512 export_dynamic_flag_spec='-Bexport'
11515 sysv4*MP*)
11516 if test -d /usr/nec; then
11517 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11518 hardcode_shlibpath_var=no
11519 runpath_var=LD_RUN_PATH
11520 hardcode_runpath_var=yes
11521 ld_shlibs=yes
11525 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11526 no_undefined_flag='${wl}-z,text'
11527 archive_cmds_need_lc=no
11528 hardcode_shlibpath_var=no
11529 runpath_var='LD_RUN_PATH'
11531 if test "$GCC" = yes; then
11532 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11533 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11534 else
11535 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11536 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11540 sysv5* | sco3.2v5* | sco5v6*)
11541 # Note: We can NOT use -z defs as we might desire, because we do not
11542 # link with -lc, and that would cause any symbols used from libc to
11543 # always be unresolved, which means just about no library would
11544 # ever link correctly. If we're not using GNU ld we use -z text
11545 # though, which does catch some bad symbols but isn't as heavy-handed
11546 # as -z defs.
11547 no_undefined_flag='${wl}-z,text'
11548 allow_undefined_flag='${wl}-z,nodefs'
11549 archive_cmds_need_lc=no
11550 hardcode_shlibpath_var=no
11551 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11552 hardcode_libdir_separator=':'
11553 link_all_deplibs=yes
11554 export_dynamic_flag_spec='${wl}-Bexport'
11555 runpath_var='LD_RUN_PATH'
11557 if test "$GCC" = yes; then
11558 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11559 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11560 else
11561 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11562 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11566 uts4*)
11567 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11568 hardcode_libdir_flag_spec='-L$libdir'
11569 hardcode_shlibpath_var=no
11573 ld_shlibs=no
11575 esac
11577 if test x$host_vendor = xsni; then
11578 case $host in
11579 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11580 export_dynamic_flag_spec='${wl}-Blargedynsym'
11582 esac
11586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11587 $as_echo "$ld_shlibs" >&6; }
11588 test "$ld_shlibs" = no && can_build_shared=no
11590 with_gnu_ld=$with_gnu_ld
11607 # Do we need to explicitly link libc?
11609 case "x$archive_cmds_need_lc" in
11610 x|xyes)
11611 # Assume -lc should be added
11612 archive_cmds_need_lc=yes
11614 if test "$enable_shared" = yes && test "$GCC" = yes; then
11615 case $archive_cmds in
11616 *'~'*)
11617 # FIXME: we may have to deal with multi-command sequences.
11619 '$CC '*)
11620 # Test whether the compiler implicitly links with -lc since on some
11621 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11622 # to ld, don't add -lc before -lgcc.
11623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11624 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11625 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11626 $as_echo_n "(cached) " >&6
11627 else
11628 $RM conftest*
11629 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11631 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11632 (eval $ac_compile) 2>&5
11633 ac_status=$?
11634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11635 test $ac_status = 0; } 2>conftest.err; then
11636 soname=conftest
11637 lib=conftest
11638 libobjs=conftest.$ac_objext
11639 deplibs=
11640 wl=$lt_prog_compiler_wl
11641 pic_flag=$lt_prog_compiler_pic
11642 compiler_flags=-v
11643 linker_flags=-v
11644 verstring=
11645 output_objdir=.
11646 libname=conftest
11647 lt_save_allow_undefined_flag=$allow_undefined_flag
11648 allow_undefined_flag=
11649 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11650 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11651 ac_status=$?
11652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11653 test $ac_status = 0; }
11654 then
11655 lt_cv_archive_cmds_need_lc=no
11656 else
11657 lt_cv_archive_cmds_need_lc=yes
11659 allow_undefined_flag=$lt_save_allow_undefined_flag
11660 else
11661 cat conftest.err 1>&5
11663 $RM conftest*
11666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11667 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11668 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11670 esac
11673 esac
11826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11827 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11829 if test "$GCC" = yes; then
11830 case $host_os in
11831 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11832 *) lt_awk_arg="/^libraries:/" ;;
11833 esac
11834 case $host_os in
11835 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11836 *) lt_sed_strip_eq="s,=/,/,g" ;;
11837 esac
11838 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11839 case $lt_search_path_spec in
11840 *\;*)
11841 # if the path contains ";" then we assume it to be the separator
11842 # otherwise default to the standard path separator (i.e. ":") - it is
11843 # assumed that no part of a normal pathname contains ";" but that should
11844 # okay in the real world where ";" in dirpaths is itself problematic.
11845 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11848 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11850 esac
11851 # Ok, now we have the path, separated by spaces, we can step through it
11852 # and add multilib dir if necessary.
11853 lt_tmp_lt_search_path_spec=
11854 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11855 for lt_sys_path in $lt_search_path_spec; do
11856 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11857 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11858 else
11859 test -d "$lt_sys_path" && \
11860 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11862 done
11863 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11864 BEGIN {RS=" "; FS="/|\n";} {
11865 lt_foo="";
11866 lt_count=0;
11867 for (lt_i = NF; lt_i > 0; lt_i--) {
11868 if ($lt_i != "" && $lt_i != ".") {
11869 if ($lt_i == "..") {
11870 lt_count++;
11871 } else {
11872 if (lt_count == 0) {
11873 lt_foo="/" $lt_i lt_foo;
11874 } else {
11875 lt_count--;
11880 if (lt_foo != "") { lt_freq[lt_foo]++; }
11881 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11883 # AWK program above erroneously prepends '/' to C:/dos/paths
11884 # for these hosts.
11885 case $host_os in
11886 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11887 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11888 esac
11889 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11890 else
11891 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11893 library_names_spec=
11894 libname_spec='lib$name'
11895 soname_spec=
11896 shrext_cmds=".so"
11897 postinstall_cmds=
11898 postuninstall_cmds=
11899 finish_cmds=
11900 finish_eval=
11901 shlibpath_var=
11902 shlibpath_overrides_runpath=unknown
11903 version_type=none
11904 dynamic_linker="$host_os ld.so"
11905 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11906 need_lib_prefix=unknown
11907 hardcode_into_libs=no
11909 # when you set need_version to no, make sure it does not cause -set_version
11910 # flags to be left without arguments
11911 need_version=unknown
11913 case $host_os in
11914 aix3*)
11915 version_type=linux # correct to gnu/linux during the next big refactor
11916 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11917 shlibpath_var=LIBPATH
11919 # AIX 3 has no versioning support, so we append a major version to the name.
11920 soname_spec='${libname}${release}${shared_ext}$major'
11923 aix[4-9]*)
11924 version_type=linux # correct to gnu/linux during the next big refactor
11925 need_lib_prefix=no
11926 need_version=no
11927 hardcode_into_libs=yes
11928 if test "$host_cpu" = ia64; then
11929 # AIX 5 supports IA64
11930 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11931 shlibpath_var=LD_LIBRARY_PATH
11932 else
11933 # With GCC up to 2.95.x, collect2 would create an import file
11934 # for dependence libraries. The import file would start with
11935 # the line `#! .'. This would cause the generated library to
11936 # depend on `.', always an invalid library. This was fixed in
11937 # development snapshots of GCC prior to 3.0.
11938 case $host_os in
11939 aix4 | aix4.[01] | aix4.[01].*)
11940 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11941 echo ' yes '
11942 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11944 else
11945 can_build_shared=no
11948 esac
11949 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11950 # soname into executable. Probably we can add versioning support to
11951 # collect2, so additional links can be useful in future.
11952 if test "$aix_use_runtimelinking" = yes; then
11953 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11954 # instead of lib<name>.a to let people know that these are not
11955 # typical AIX shared libraries.
11956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11957 else
11958 # We preserve .a as extension for shared libraries through AIX4.2
11959 # and later when we are not doing run time linking.
11960 library_names_spec='${libname}${release}.a $libname.a'
11961 soname_spec='${libname}${release}${shared_ext}$major'
11963 shlibpath_var=LIBPATH
11967 amigaos*)
11968 case $host_cpu in
11969 powerpc)
11970 # Since July 2007 AmigaOS4 officially supports .so libraries.
11971 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11974 m68k)
11975 library_names_spec='$libname.ixlibrary $libname.a'
11976 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11977 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'
11979 esac
11982 beos*)
11983 library_names_spec='${libname}${shared_ext}'
11984 dynamic_linker="$host_os ld.so"
11985 shlibpath_var=LIBRARY_PATH
11988 bsdi[45]*)
11989 version_type=linux # correct to gnu/linux during the next big refactor
11990 need_version=no
11991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11992 soname_spec='${libname}${release}${shared_ext}$major'
11993 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11994 shlibpath_var=LD_LIBRARY_PATH
11995 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11996 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11997 # the default ld.so.conf also contains /usr/contrib/lib and
11998 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11999 # libtool to hard-code these into programs
12002 cygwin* | mingw* | pw32* | cegcc*)
12003 version_type=windows
12004 shrext_cmds=".dll"
12005 need_version=no
12006 need_lib_prefix=no
12008 case $GCC,$cc_basename in
12009 yes,*)
12010 # gcc
12011 library_names_spec='$libname.dll.a'
12012 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12013 postinstall_cmds='base_file=`basename \${file}`~
12014 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12015 dldir=$destdir/`dirname \$dlpath`~
12016 test -d \$dldir || mkdir -p \$dldir~
12017 $install_prog $dir/$dlname \$dldir/$dlname~
12018 chmod a+x \$dldir/$dlname~
12019 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12020 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12022 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12023 dlpath=$dir/\$dldll~
12024 $RM \$dlpath'
12025 shlibpath_overrides_runpath=yes
12027 case $host_os in
12028 cygwin*)
12029 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12030 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12032 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12034 mingw* | cegcc*)
12035 # MinGW DLLs use traditional 'lib' prefix
12036 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12038 pw32*)
12039 # pw32 DLLs use 'pw' prefix rather than 'lib'
12040 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12042 esac
12043 dynamic_linker='Win32 ld.exe'
12046 *,cl*)
12047 # Native MSVC
12048 libname_spec='$name'
12049 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12050 library_names_spec='${libname}.dll.lib'
12052 case $build_os in
12053 mingw*)
12054 sys_lib_search_path_spec=
12055 lt_save_ifs=$IFS
12056 IFS=';'
12057 for lt_path in $LIB
12059 IFS=$lt_save_ifs
12060 # Let DOS variable expansion print the short 8.3 style file name.
12061 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12062 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12063 done
12064 IFS=$lt_save_ifs
12065 # Convert to MSYS style.
12066 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12068 cygwin*)
12069 # Convert to unix form, then to dos form, then back to unix form
12070 # but this time dos style (no spaces!) so that the unix form looks
12071 # like /cygdrive/c/PROGRA~1:/cygdr...
12072 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12073 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12074 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12077 sys_lib_search_path_spec="$LIB"
12078 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12079 # It is most probably a Windows format PATH.
12080 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12081 else
12082 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12084 # FIXME: find the short name or the path components, as spaces are
12085 # common. (e.g. "Program Files" -> "PROGRA~1")
12087 esac
12089 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12090 postinstall_cmds='base_file=`basename \${file}`~
12091 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12092 dldir=$destdir/`dirname \$dlpath`~
12093 test -d \$dldir || mkdir -p \$dldir~
12094 $install_prog $dir/$dlname \$dldir/$dlname'
12095 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12096 dlpath=$dir/\$dldll~
12097 $RM \$dlpath'
12098 shlibpath_overrides_runpath=yes
12099 dynamic_linker='Win32 link.exe'
12103 # Assume MSVC wrapper
12104 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12105 dynamic_linker='Win32 ld.exe'
12107 esac
12108 # FIXME: first we should search . and the directory the executable is in
12109 shlibpath_var=PATH
12112 darwin* | rhapsody*)
12113 dynamic_linker="$host_os dyld"
12114 version_type=darwin
12115 need_lib_prefix=no
12116 need_version=no
12117 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12118 soname_spec='${libname}${release}${major}$shared_ext'
12119 shlibpath_overrides_runpath=yes
12120 shlibpath_var=DYLD_LIBRARY_PATH
12121 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12123 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12124 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12127 dgux*)
12128 version_type=linux # correct to gnu/linux during the next big refactor
12129 need_lib_prefix=no
12130 need_version=no
12131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12132 soname_spec='${libname}${release}${shared_ext}$major'
12133 shlibpath_var=LD_LIBRARY_PATH
12136 freebsd* | dragonfly*)
12137 # DragonFly does not have aout. When/if they implement a new
12138 # versioning mechanism, adjust this.
12139 if test -x /usr/bin/objformat; then
12140 objformat=`/usr/bin/objformat`
12141 else
12142 case $host_os in
12143 freebsd[23].*) objformat=aout ;;
12144 *) objformat=elf ;;
12145 esac
12147 version_type=freebsd-$objformat
12148 case $version_type in
12149 freebsd-elf*)
12150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12151 need_version=no
12152 need_lib_prefix=no
12154 freebsd-*)
12155 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12156 need_version=yes
12158 esac
12159 shlibpath_var=LD_LIBRARY_PATH
12160 case $host_os in
12161 freebsd2.*)
12162 shlibpath_overrides_runpath=yes
12164 freebsd3.[01]* | freebsdelf3.[01]*)
12165 shlibpath_overrides_runpath=yes
12166 hardcode_into_libs=yes
12168 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12169 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12170 shlibpath_overrides_runpath=no
12171 hardcode_into_libs=yes
12173 *) # from 4.6 on, and DragonFly
12174 shlibpath_overrides_runpath=yes
12175 hardcode_into_libs=yes
12177 esac
12180 gnu*)
12181 version_type=linux # correct to gnu/linux during the next big refactor
12182 need_lib_prefix=no
12183 need_version=no
12184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12185 soname_spec='${libname}${release}${shared_ext}$major'
12186 shlibpath_var=LD_LIBRARY_PATH
12187 shlibpath_overrides_runpath=no
12188 hardcode_into_libs=yes
12191 haiku*)
12192 version_type=linux # correct to gnu/linux during the next big refactor
12193 need_lib_prefix=no
12194 need_version=no
12195 dynamic_linker="$host_os runtime_loader"
12196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12197 soname_spec='${libname}${release}${shared_ext}$major'
12198 shlibpath_var=LIBRARY_PATH
12199 shlibpath_overrides_runpath=yes
12200 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12201 hardcode_into_libs=yes
12204 hpux9* | hpux10* | hpux11*)
12205 # Give a soname corresponding to the major version so that dld.sl refuses to
12206 # link against other versions.
12207 version_type=sunos
12208 need_lib_prefix=no
12209 need_version=no
12210 case $host_cpu in
12211 ia64*)
12212 shrext_cmds='.so'
12213 hardcode_into_libs=yes
12214 dynamic_linker="$host_os dld.so"
12215 shlibpath_var=LD_LIBRARY_PATH
12216 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12218 soname_spec='${libname}${release}${shared_ext}$major'
12219 if test "X$HPUX_IA64_MODE" = X32; then
12220 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12221 else
12222 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12224 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12226 hppa*64*)
12227 shrext_cmds='.sl'
12228 hardcode_into_libs=yes
12229 dynamic_linker="$host_os dld.sl"
12230 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12231 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12233 soname_spec='${libname}${release}${shared_ext}$major'
12234 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12235 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12238 shrext_cmds='.sl'
12239 dynamic_linker="$host_os dld.sl"
12240 shlibpath_var=SHLIB_PATH
12241 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12243 soname_spec='${libname}${release}${shared_ext}$major'
12245 esac
12246 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12247 postinstall_cmds='chmod 555 $lib'
12248 # or fails outright, so override atomically:
12249 install_override_mode=555
12252 interix[3-9]*)
12253 version_type=linux # correct to gnu/linux during the next big refactor
12254 need_lib_prefix=no
12255 need_version=no
12256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12257 soname_spec='${libname}${release}${shared_ext}$major'
12258 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12259 shlibpath_var=LD_LIBRARY_PATH
12260 shlibpath_overrides_runpath=no
12261 hardcode_into_libs=yes
12264 irix5* | irix6* | nonstopux*)
12265 case $host_os in
12266 nonstopux*) version_type=nonstopux ;;
12268 if test "$lt_cv_prog_gnu_ld" = yes; then
12269 version_type=linux # correct to gnu/linux during the next big refactor
12270 else
12271 version_type=irix
12272 fi ;;
12273 esac
12274 need_lib_prefix=no
12275 need_version=no
12276 soname_spec='${libname}${release}${shared_ext}$major'
12277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12278 case $host_os in
12279 irix5* | nonstopux*)
12280 libsuff= shlibsuff=
12283 case $LD in # libtool.m4 will add one of these switches to LD
12284 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12285 libsuff= shlibsuff= libmagic=32-bit;;
12286 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12287 libsuff=32 shlibsuff=N32 libmagic=N32;;
12288 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12289 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12290 *) libsuff= shlibsuff= libmagic=never-match;;
12291 esac
12293 esac
12294 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12295 shlibpath_overrides_runpath=no
12296 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12297 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12298 hardcode_into_libs=yes
12301 # No shared lib support for Linux oldld, aout, or coff.
12302 linux*oldld* | linux*aout* | linux*coff*)
12303 dynamic_linker=no
12306 # This must be glibc/ELF.
12307 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12308 version_type=linux # correct to gnu/linux during the next big refactor
12309 need_lib_prefix=no
12310 need_version=no
12311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12312 soname_spec='${libname}${release}${shared_ext}$major'
12313 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12314 shlibpath_var=LD_LIBRARY_PATH
12315 shlibpath_overrides_runpath=no
12317 # Some binutils ld are patched to set DT_RUNPATH
12318 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12319 $as_echo_n "(cached) " >&6
12320 else
12321 lt_cv_shlibpath_overrides_runpath=no
12322 save_LDFLAGS=$LDFLAGS
12323 save_libdir=$libdir
12324 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12325 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12327 /* end confdefs.h. */
12330 main ()
12334 return 0;
12336 _ACEOF
12337 if ac_fn_c_try_link "$LINENO"; then :
12338 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12339 lt_cv_shlibpath_overrides_runpath=yes
12342 rm -f core conftest.err conftest.$ac_objext \
12343 conftest$ac_exeext conftest.$ac_ext
12344 LDFLAGS=$save_LDFLAGS
12345 libdir=$save_libdir
12349 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12351 # This implies no fast_install, which is unacceptable.
12352 # Some rework will be needed to allow for fast_install
12353 # before this can be enabled.
12354 hardcode_into_libs=yes
12356 # Append ld.so.conf contents to the search path
12357 if test -f /etc/ld.so.conf; then
12358 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' ' '`
12359 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12362 # We used to test for /lib/ld.so.1 and disable shared libraries on
12363 # powerpc, because MkLinux only supported shared libraries with the
12364 # GNU dynamic linker. Since this was broken with cross compilers,
12365 # most powerpc-linux boxes support dynamic linking these days and
12366 # people can always --disable-shared, the test was removed, and we
12367 # assume the GNU/Linux dynamic linker is in use.
12368 dynamic_linker='GNU/Linux ld.so'
12371 netbsdelf*-gnu)
12372 version_type=linux
12373 need_lib_prefix=no
12374 need_version=no
12375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12376 soname_spec='${libname}${release}${shared_ext}$major'
12377 shlibpath_var=LD_LIBRARY_PATH
12378 shlibpath_overrides_runpath=no
12379 hardcode_into_libs=yes
12380 dynamic_linker='NetBSD ld.elf_so'
12383 netbsd*)
12384 version_type=sunos
12385 need_lib_prefix=no
12386 need_version=no
12387 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12389 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12390 dynamic_linker='NetBSD (a.out) ld.so'
12391 else
12392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12393 soname_spec='${libname}${release}${shared_ext}$major'
12394 dynamic_linker='NetBSD ld.elf_so'
12396 shlibpath_var=LD_LIBRARY_PATH
12397 shlibpath_overrides_runpath=yes
12398 hardcode_into_libs=yes
12401 newsos6)
12402 version_type=linux # correct to gnu/linux during the next big refactor
12403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12404 shlibpath_var=LD_LIBRARY_PATH
12405 shlibpath_overrides_runpath=yes
12408 *nto* | *qnx*)
12409 version_type=qnx
12410 need_lib_prefix=no
12411 need_version=no
12412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12413 soname_spec='${libname}${release}${shared_ext}$major'
12414 shlibpath_var=LD_LIBRARY_PATH
12415 shlibpath_overrides_runpath=no
12416 hardcode_into_libs=yes
12417 dynamic_linker='ldqnx.so'
12420 openbsd*)
12421 version_type=sunos
12422 sys_lib_dlsearch_path_spec="/usr/lib"
12423 need_lib_prefix=no
12424 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12425 case $host_os in
12426 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12427 *) need_version=no ;;
12428 esac
12429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12430 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12431 shlibpath_var=LD_LIBRARY_PATH
12432 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12433 case $host_os in
12434 openbsd2.[89] | openbsd2.[89].*)
12435 shlibpath_overrides_runpath=no
12438 shlibpath_overrides_runpath=yes
12440 esac
12441 else
12442 shlibpath_overrides_runpath=yes
12446 os2*)
12447 libname_spec='$name'
12448 shrext_cmds=".dll"
12449 need_lib_prefix=no
12450 library_names_spec='$libname${shared_ext} $libname.a'
12451 dynamic_linker='OS/2 ld.exe'
12452 shlibpath_var=LIBPATH
12455 osf3* | osf4* | osf5*)
12456 version_type=osf
12457 need_lib_prefix=no
12458 need_version=no
12459 soname_spec='${libname}${release}${shared_ext}$major'
12460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12461 shlibpath_var=LD_LIBRARY_PATH
12462 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12463 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12466 rdos*)
12467 dynamic_linker=no
12470 solaris*)
12471 version_type=linux # correct to gnu/linux during the next big refactor
12472 need_lib_prefix=no
12473 need_version=no
12474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12475 soname_spec='${libname}${release}${shared_ext}$major'
12476 shlibpath_var=LD_LIBRARY_PATH
12477 shlibpath_overrides_runpath=yes
12478 hardcode_into_libs=yes
12479 # ldd complains unless libraries are executable
12480 postinstall_cmds='chmod +x $lib'
12483 sunos4*)
12484 version_type=sunos
12485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12486 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12487 shlibpath_var=LD_LIBRARY_PATH
12488 shlibpath_overrides_runpath=yes
12489 if test "$with_gnu_ld" = yes; then
12490 need_lib_prefix=no
12492 need_version=yes
12495 sysv4 | sysv4.3*)
12496 version_type=linux # correct to gnu/linux during the next big refactor
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 shlibpath_var=LD_LIBRARY_PATH
12500 case $host_vendor in
12501 sni)
12502 shlibpath_overrides_runpath=no
12503 need_lib_prefix=no
12504 runpath_var=LD_RUN_PATH
12506 siemens)
12507 need_lib_prefix=no
12509 motorola)
12510 need_lib_prefix=no
12511 need_version=no
12512 shlibpath_overrides_runpath=no
12513 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12515 esac
12518 sysv4*MP*)
12519 if test -d /usr/nec ;then
12520 version_type=linux # correct to gnu/linux during the next big refactor
12521 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12522 soname_spec='$libname${shared_ext}.$major'
12523 shlibpath_var=LD_LIBRARY_PATH
12527 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12528 version_type=freebsd-elf
12529 need_lib_prefix=no
12530 need_version=no
12531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12532 soname_spec='${libname}${release}${shared_ext}$major'
12533 shlibpath_var=LD_LIBRARY_PATH
12534 shlibpath_overrides_runpath=yes
12535 hardcode_into_libs=yes
12536 if test "$with_gnu_ld" = yes; then
12537 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12538 else
12539 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12540 case $host_os in
12541 sco3.2v5*)
12542 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12544 esac
12546 sys_lib_dlsearch_path_spec='/usr/lib'
12549 tpf*)
12550 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12551 version_type=linux # correct to gnu/linux during the next big refactor
12552 need_lib_prefix=no
12553 need_version=no
12554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12555 shlibpath_var=LD_LIBRARY_PATH
12556 shlibpath_overrides_runpath=no
12557 hardcode_into_libs=yes
12560 uts4*)
12561 version_type=linux # correct to gnu/linux during the next big refactor
12562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12563 soname_spec='${libname}${release}${shared_ext}$major'
12564 shlibpath_var=LD_LIBRARY_PATH
12568 dynamic_linker=no
12570 esac
12571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12572 $as_echo "$dynamic_linker" >&6; }
12573 test "$dynamic_linker" = no && can_build_shared=no
12575 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12576 if test "$GCC" = yes; then
12577 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12580 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12581 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12583 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12584 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12679 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12680 hardcode_action=
12681 if test -n "$hardcode_libdir_flag_spec" ||
12682 test -n "$runpath_var" ||
12683 test "X$hardcode_automatic" = "Xyes" ; then
12685 # We can hardcode non-existent directories.
12686 if test "$hardcode_direct" != no &&
12687 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12688 # have to relink, otherwise we might link with an installed library
12689 # when we should be linking with a yet-to-be-installed one
12690 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12691 test "$hardcode_minus_L" != no; then
12692 # Linking always hardcodes the temporary library directory.
12693 hardcode_action=relink
12694 else
12695 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12696 hardcode_action=immediate
12698 else
12699 # We cannot hardcode anything, or else we can only hardcode existing
12700 # directories.
12701 hardcode_action=unsupported
12703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12704 $as_echo "$hardcode_action" >&6; }
12706 if test "$hardcode_action" = relink ||
12707 test "$inherit_rpath" = yes; then
12708 # Fast installation is not supported
12709 enable_fast_install=no
12710 elif test "$shlibpath_overrides_runpath" = yes ||
12711 test "$enable_shared" = no; then
12712 # Fast installation is not necessary
12713 enable_fast_install=needless
12721 if test "x$enable_dlopen" != xyes; then
12722 enable_dlopen=unknown
12723 enable_dlopen_self=unknown
12724 enable_dlopen_self_static=unknown
12725 else
12726 lt_cv_dlopen=no
12727 lt_cv_dlopen_libs=
12729 case $host_os in
12730 beos*)
12731 lt_cv_dlopen="load_add_on"
12732 lt_cv_dlopen_libs=
12733 lt_cv_dlopen_self=yes
12736 mingw* | pw32* | cegcc*)
12737 lt_cv_dlopen="LoadLibrary"
12738 lt_cv_dlopen_libs=
12741 cygwin*)
12742 lt_cv_dlopen="dlopen"
12743 lt_cv_dlopen_libs=
12746 darwin*)
12747 # if libdl is installed we need to link against it
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12749 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12750 if ${ac_cv_lib_dl_dlopen+:} false; then :
12751 $as_echo_n "(cached) " >&6
12752 else
12753 ac_check_lib_save_LIBS=$LIBS
12754 LIBS="-ldl $LIBS"
12755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12756 /* end confdefs.h. */
12758 /* Override any GCC internal prototype to avoid an error.
12759 Use char because int might match the return type of a GCC
12760 builtin and then its argument prototype would still apply. */
12761 #ifdef __cplusplus
12762 extern "C"
12763 #endif
12764 char dlopen ();
12766 main ()
12768 return dlopen ();
12770 return 0;
12772 _ACEOF
12773 if ac_fn_c_try_link "$LINENO"; then :
12774 ac_cv_lib_dl_dlopen=yes
12775 else
12776 ac_cv_lib_dl_dlopen=no
12778 rm -f core conftest.err conftest.$ac_objext \
12779 conftest$ac_exeext conftest.$ac_ext
12780 LIBS=$ac_check_lib_save_LIBS
12782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12783 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12784 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12785 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12786 else
12788 lt_cv_dlopen="dyld"
12789 lt_cv_dlopen_libs=
12790 lt_cv_dlopen_self=yes
12797 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12798 if test "x$ac_cv_func_shl_load" = xyes; then :
12799 lt_cv_dlopen="shl_load"
12800 else
12801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12802 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12803 if ${ac_cv_lib_dld_shl_load+:} false; then :
12804 $as_echo_n "(cached) " >&6
12805 else
12806 ac_check_lib_save_LIBS=$LIBS
12807 LIBS="-ldld $LIBS"
12808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12809 /* end confdefs.h. */
12811 /* Override any GCC internal prototype to avoid an error.
12812 Use char because int might match the return type of a GCC
12813 builtin and then its argument prototype would still apply. */
12814 #ifdef __cplusplus
12815 extern "C"
12816 #endif
12817 char shl_load ();
12819 main ()
12821 return shl_load ();
12823 return 0;
12825 _ACEOF
12826 if ac_fn_c_try_link "$LINENO"; then :
12827 ac_cv_lib_dld_shl_load=yes
12828 else
12829 ac_cv_lib_dld_shl_load=no
12831 rm -f core conftest.err conftest.$ac_objext \
12832 conftest$ac_exeext conftest.$ac_ext
12833 LIBS=$ac_check_lib_save_LIBS
12835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12836 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12837 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12838 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12839 else
12840 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12841 if test "x$ac_cv_func_dlopen" = xyes; then :
12842 lt_cv_dlopen="dlopen"
12843 else
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12845 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12846 if ${ac_cv_lib_dl_dlopen+:} false; then :
12847 $as_echo_n "(cached) " >&6
12848 else
12849 ac_check_lib_save_LIBS=$LIBS
12850 LIBS="-ldl $LIBS"
12851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12852 /* end confdefs.h. */
12854 /* Override any GCC internal prototype to avoid an error.
12855 Use char because int might match the return type of a GCC
12856 builtin and then its argument prototype would still apply. */
12857 #ifdef __cplusplus
12858 extern "C"
12859 #endif
12860 char dlopen ();
12862 main ()
12864 return dlopen ();
12866 return 0;
12868 _ACEOF
12869 if ac_fn_c_try_link "$LINENO"; then :
12870 ac_cv_lib_dl_dlopen=yes
12871 else
12872 ac_cv_lib_dl_dlopen=no
12874 rm -f core conftest.err conftest.$ac_objext \
12875 conftest$ac_exeext conftest.$ac_ext
12876 LIBS=$ac_check_lib_save_LIBS
12878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12879 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12880 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12881 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12882 else
12883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12884 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12885 if ${ac_cv_lib_svld_dlopen+:} false; then :
12886 $as_echo_n "(cached) " >&6
12887 else
12888 ac_check_lib_save_LIBS=$LIBS
12889 LIBS="-lsvld $LIBS"
12890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12891 /* end confdefs.h. */
12893 /* Override any GCC internal prototype to avoid an error.
12894 Use char because int might match the return type of a GCC
12895 builtin and then its argument prototype would still apply. */
12896 #ifdef __cplusplus
12897 extern "C"
12898 #endif
12899 char dlopen ();
12901 main ()
12903 return dlopen ();
12905 return 0;
12907 _ACEOF
12908 if ac_fn_c_try_link "$LINENO"; then :
12909 ac_cv_lib_svld_dlopen=yes
12910 else
12911 ac_cv_lib_svld_dlopen=no
12913 rm -f core conftest.err conftest.$ac_objext \
12914 conftest$ac_exeext conftest.$ac_ext
12915 LIBS=$ac_check_lib_save_LIBS
12917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12918 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12919 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12920 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12921 else
12922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12923 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12924 if ${ac_cv_lib_dld_dld_link+:} false; then :
12925 $as_echo_n "(cached) " >&6
12926 else
12927 ac_check_lib_save_LIBS=$LIBS
12928 LIBS="-ldld $LIBS"
12929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12930 /* end confdefs.h. */
12932 /* Override any GCC internal prototype to avoid an error.
12933 Use char because int might match the return type of a GCC
12934 builtin and then its argument prototype would still apply. */
12935 #ifdef __cplusplus
12936 extern "C"
12937 #endif
12938 char dld_link ();
12940 main ()
12942 return dld_link ();
12944 return 0;
12946 _ACEOF
12947 if ac_fn_c_try_link "$LINENO"; then :
12948 ac_cv_lib_dld_dld_link=yes
12949 else
12950 ac_cv_lib_dld_dld_link=no
12952 rm -f core conftest.err conftest.$ac_objext \
12953 conftest$ac_exeext conftest.$ac_ext
12954 LIBS=$ac_check_lib_save_LIBS
12956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12957 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12958 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12959 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12978 esac
12980 if test "x$lt_cv_dlopen" != xno; then
12981 enable_dlopen=yes
12982 else
12983 enable_dlopen=no
12986 case $lt_cv_dlopen in
12987 dlopen)
12988 save_CPPFLAGS="$CPPFLAGS"
12989 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12991 save_LDFLAGS="$LDFLAGS"
12992 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12994 save_LIBS="$LIBS"
12995 LIBS="$lt_cv_dlopen_libs $LIBS"
12997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12998 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12999 if ${lt_cv_dlopen_self+:} false; then :
13000 $as_echo_n "(cached) " >&6
13001 else
13002 if test "$cross_compiling" = yes; then :
13003 lt_cv_dlopen_self=cross
13004 else
13005 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13006 lt_status=$lt_dlunknown
13007 cat > conftest.$ac_ext <<_LT_EOF
13008 #line $LINENO "configure"
13009 #include "confdefs.h"
13011 #if HAVE_DLFCN_H
13012 #include <dlfcn.h>
13013 #endif
13015 #include <stdio.h>
13017 #ifdef RTLD_GLOBAL
13018 # define LT_DLGLOBAL RTLD_GLOBAL
13019 #else
13020 # ifdef DL_GLOBAL
13021 # define LT_DLGLOBAL DL_GLOBAL
13022 # else
13023 # define LT_DLGLOBAL 0
13024 # endif
13025 #endif
13027 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13028 find out it does not work in some platform. */
13029 #ifndef LT_DLLAZY_OR_NOW
13030 # ifdef RTLD_LAZY
13031 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13032 # else
13033 # ifdef DL_LAZY
13034 # define LT_DLLAZY_OR_NOW DL_LAZY
13035 # else
13036 # ifdef RTLD_NOW
13037 # define LT_DLLAZY_OR_NOW RTLD_NOW
13038 # else
13039 # ifdef DL_NOW
13040 # define LT_DLLAZY_OR_NOW DL_NOW
13041 # else
13042 # define LT_DLLAZY_OR_NOW 0
13043 # endif
13044 # endif
13045 # endif
13046 # endif
13047 #endif
13049 /* When -fvisbility=hidden is used, assume the code has been annotated
13050 correspondingly for the symbols needed. */
13051 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13052 int fnord () __attribute__((visibility("default")));
13053 #endif
13055 int fnord () { return 42; }
13056 int main ()
13058 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13059 int status = $lt_dlunknown;
13061 if (self)
13063 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13064 else
13066 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13067 else puts (dlerror ());
13069 /* dlclose (self); */
13071 else
13072 puts (dlerror ());
13074 return status;
13076 _LT_EOF
13077 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13078 (eval $ac_link) 2>&5
13079 ac_status=$?
13080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13081 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13082 (./conftest; exit; ) >&5 2>/dev/null
13083 lt_status=$?
13084 case x$lt_status in
13085 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13086 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13087 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13088 esac
13089 else :
13090 # compilation failed
13091 lt_cv_dlopen_self=no
13094 rm -fr conftest*
13098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13099 $as_echo "$lt_cv_dlopen_self" >&6; }
13101 if test "x$lt_cv_dlopen_self" = xyes; then
13102 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13104 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13105 if ${lt_cv_dlopen_self_static+:} false; then :
13106 $as_echo_n "(cached) " >&6
13107 else
13108 if test "$cross_compiling" = yes; then :
13109 lt_cv_dlopen_self_static=cross
13110 else
13111 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13112 lt_status=$lt_dlunknown
13113 cat > conftest.$ac_ext <<_LT_EOF
13114 #line $LINENO "configure"
13115 #include "confdefs.h"
13117 #if HAVE_DLFCN_H
13118 #include <dlfcn.h>
13119 #endif
13121 #include <stdio.h>
13123 #ifdef RTLD_GLOBAL
13124 # define LT_DLGLOBAL RTLD_GLOBAL
13125 #else
13126 # ifdef DL_GLOBAL
13127 # define LT_DLGLOBAL DL_GLOBAL
13128 # else
13129 # define LT_DLGLOBAL 0
13130 # endif
13131 #endif
13133 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13134 find out it does not work in some platform. */
13135 #ifndef LT_DLLAZY_OR_NOW
13136 # ifdef RTLD_LAZY
13137 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13138 # else
13139 # ifdef DL_LAZY
13140 # define LT_DLLAZY_OR_NOW DL_LAZY
13141 # else
13142 # ifdef RTLD_NOW
13143 # define LT_DLLAZY_OR_NOW RTLD_NOW
13144 # else
13145 # ifdef DL_NOW
13146 # define LT_DLLAZY_OR_NOW DL_NOW
13147 # else
13148 # define LT_DLLAZY_OR_NOW 0
13149 # endif
13150 # endif
13151 # endif
13152 # endif
13153 #endif
13155 /* When -fvisbility=hidden is used, assume the code has been annotated
13156 correspondingly for the symbols needed. */
13157 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13158 int fnord () __attribute__((visibility("default")));
13159 #endif
13161 int fnord () { return 42; }
13162 int main ()
13164 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13165 int status = $lt_dlunknown;
13167 if (self)
13169 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13170 else
13172 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13173 else puts (dlerror ());
13175 /* dlclose (self); */
13177 else
13178 puts (dlerror ());
13180 return status;
13182 _LT_EOF
13183 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13184 (eval $ac_link) 2>&5
13185 ac_status=$?
13186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13187 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13188 (./conftest; exit; ) >&5 2>/dev/null
13189 lt_status=$?
13190 case x$lt_status in
13191 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13192 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13193 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13194 esac
13195 else :
13196 # compilation failed
13197 lt_cv_dlopen_self_static=no
13200 rm -fr conftest*
13204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13205 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13208 CPPFLAGS="$save_CPPFLAGS"
13209 LDFLAGS="$save_LDFLAGS"
13210 LIBS="$save_LIBS"
13212 esac
13214 case $lt_cv_dlopen_self in
13215 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13216 *) enable_dlopen_self=unknown ;;
13217 esac
13219 case $lt_cv_dlopen_self_static in
13220 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13221 *) enable_dlopen_self_static=unknown ;;
13222 esac
13241 striplib=
13242 old_striplib=
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13244 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13245 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13246 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13247 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13249 $as_echo "yes" >&6; }
13250 else
13251 # FIXME - insert some real tests, host_os isn't really good enough
13252 case $host_os in
13253 darwin*)
13254 if test -n "$STRIP" ; then
13255 striplib="$STRIP -x"
13256 old_striplib="$STRIP -S"
13257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13258 $as_echo "yes" >&6; }
13259 else
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13261 $as_echo "no" >&6; }
13265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13266 $as_echo "no" >&6; }
13268 esac
13282 # Report which library types will actually be built
13283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13284 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13286 $as_echo "$can_build_shared" >&6; }
13288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13289 $as_echo_n "checking whether to build shared libraries... " >&6; }
13290 test "$can_build_shared" = "no" && enable_shared=no
13292 # On AIX, shared libraries and static libraries use the same namespace, and
13293 # are all built from PIC.
13294 case $host_os in
13295 aix3*)
13296 test "$enable_shared" = yes && enable_static=no
13297 if test -n "$RANLIB"; then
13298 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13299 postinstall_cmds='$RANLIB $lib'
13303 aix[4-9]*)
13304 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13305 test "$enable_shared" = yes && enable_static=no
13308 esac
13309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13310 $as_echo "$enable_shared" >&6; }
13312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13313 $as_echo_n "checking whether to build static libraries... " >&6; }
13314 # Make sure either enable_shared or enable_static is yes.
13315 test "$enable_shared" = yes || enable_static=yes
13316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13317 $as_echo "$enable_static" >&6; }
13323 ac_ext=c
13324 ac_cpp='$CPP $CPPFLAGS'
13325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13329 CC="$lt_save_CC"
13345 ac_config_commands="$ac_config_commands libtool"
13350 # Only expand once:
13353 if test -n "$ac_tool_prefix"; then
13354 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
13355 set dummy ${ac_tool_prefix}windres; ac_word=$2
13356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13357 $as_echo_n "checking for $ac_word... " >&6; }
13358 if ${ac_cv_prog_RC+:} false; then :
13359 $as_echo_n "(cached) " >&6
13360 else
13361 if test -n "$RC"; then
13362 ac_cv_prog_RC="$RC" # Let the user override the test.
13363 else
13364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13365 for as_dir in $PATH
13367 IFS=$as_save_IFS
13368 test -z "$as_dir" && as_dir=.
13369 for ac_exec_ext in '' $ac_executable_extensions; do
13370 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13371 ac_cv_prog_RC="${ac_tool_prefix}windres"
13372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13373 break 2
13375 done
13376 done
13377 IFS=$as_save_IFS
13381 RC=$ac_cv_prog_RC
13382 if test -n "$RC"; then
13383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
13384 $as_echo "$RC" >&6; }
13385 else
13386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13387 $as_echo "no" >&6; }
13392 if test -z "$ac_cv_prog_RC"; then
13393 ac_ct_RC=$RC
13394 # Extract the first word of "windres", so it can be a program name with args.
13395 set dummy windres; ac_word=$2
13396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13397 $as_echo_n "checking for $ac_word... " >&6; }
13398 if ${ac_cv_prog_ac_ct_RC+:} false; then :
13399 $as_echo_n "(cached) " >&6
13400 else
13401 if test -n "$ac_ct_RC"; then
13402 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
13403 else
13404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13405 for as_dir in $PATH
13407 IFS=$as_save_IFS
13408 test -z "$as_dir" && as_dir=.
13409 for ac_exec_ext in '' $ac_executable_extensions; do
13410 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13411 ac_cv_prog_ac_ct_RC="windres"
13412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13413 break 2
13415 done
13416 done
13417 IFS=$as_save_IFS
13421 ac_ct_RC=$ac_cv_prog_ac_ct_RC
13422 if test -n "$ac_ct_RC"; then
13423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
13424 $as_echo "$ac_ct_RC" >&6; }
13425 else
13426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13427 $as_echo "no" >&6; }
13430 if test "x$ac_ct_RC" = x; then
13431 RC=""
13432 else
13433 case $cross_compiling:$ac_tool_warned in
13434 yes:)
13435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13436 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13437 ac_tool_warned=yes ;;
13438 esac
13439 RC=$ac_ct_RC
13441 else
13442 RC="$ac_cv_prog_RC"
13448 # Source file extension for RC test sources.
13449 ac_ext=rc
13451 # Object file extension for compiled RC test sources.
13452 objext=o
13453 objext_RC=$objext
13455 # Code to be used in simple compile tests
13456 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
13458 # Code to be used in simple link tests
13459 lt_simple_link_test_code="$lt_simple_compile_test_code"
13461 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13468 # If no C compiler was specified, use CC.
13469 LTCC=${LTCC-"$CC"}
13471 # If no C compiler flags were specified, use CFLAGS.
13472 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13474 # Allow CC to be a program name with arguments.
13475 compiler=$CC
13478 # save warnings/boilerplate of simple test code
13479 ac_outfile=conftest.$ac_objext
13480 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13481 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13482 _lt_compiler_boilerplate=`cat conftest.err`
13483 $RM conftest*
13485 ac_outfile=conftest.$ac_objext
13486 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13487 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13488 _lt_linker_boilerplate=`cat conftest.err`
13489 $RM -r conftest*
13492 # Allow CC to be a program name with arguments.
13493 lt_save_CC="$CC"
13494 lt_save_CFLAGS=$CFLAGS
13495 lt_save_GCC=$GCC
13496 GCC=
13497 CC=${RC-"windres"}
13498 CFLAGS=
13499 compiler=$CC
13500 compiler_RC=$CC
13501 for cc_temp in $compiler""; do
13502 case $cc_temp in
13503 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13504 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13505 \-*) ;;
13506 *) break;;
13507 esac
13508 done
13509 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13511 lt_cv_prog_compiler_c_o_RC=yes
13513 if test -n "$compiler"; then
13520 GCC=$lt_save_GCC
13521 ac_ext=c
13522 ac_cpp='$CPP $CPPFLAGS'
13523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13527 CC=$lt_save_CC
13528 CFLAGS=$lt_save_CFLAGS
13532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13533 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13534 if ${ac_cv_c_const+:} false; then :
13535 $as_echo_n "(cached) " >&6
13536 else
13537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13538 /* end confdefs.h. */
13541 main ()
13544 #ifndef __cplusplus
13545 /* Ultrix mips cc rejects this sort of thing. */
13546 typedef int charset[2];
13547 const charset cs = { 0, 0 };
13548 /* SunOS 4.1.1 cc rejects this. */
13549 char const *const *pcpcc;
13550 char **ppc;
13551 /* NEC SVR4.0.2 mips cc rejects this. */
13552 struct point {int x, y;};
13553 static struct point const zero = {0,0};
13554 /* AIX XL C 1.02.0.0 rejects this.
13555 It does not let you subtract one const X* pointer from another in
13556 an arm of an if-expression whose if-part is not a constant
13557 expression */
13558 const char *g = "string";
13559 pcpcc = &g + (g ? g-g : 0);
13560 /* HPUX 7.0 cc rejects these. */
13561 ++pcpcc;
13562 ppc = (char**) pcpcc;
13563 pcpcc = (char const *const *) ppc;
13564 { /* SCO 3.2v4 cc rejects this sort of thing. */
13565 char tx;
13566 char *t = &tx;
13567 char const *s = 0 ? (char *) 0 : (char const *) 0;
13569 *t++ = 0;
13570 if (s) return 0;
13572 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13573 int x[] = {25, 17};
13574 const int *foo = &x[0];
13575 ++foo;
13577 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13578 typedef const int *iptr;
13579 iptr p = 0;
13580 ++p;
13582 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
13583 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13584 struct s { int j; const int *ap[3]; } bx;
13585 struct s *b = &bx; b->j = 5;
13587 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13588 const int foo = 10;
13589 if (!foo) return 0;
13591 return !cs[0] && !zero.x;
13592 #endif
13595 return 0;
13597 _ACEOF
13598 if ac_fn_c_try_compile "$LINENO"; then :
13599 ac_cv_c_const=yes
13600 else
13601 ac_cv_c_const=no
13603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13606 $as_echo "$ac_cv_c_const" >&6; }
13607 if test $ac_cv_c_const = no; then
13609 $as_echo "#define const /**/" >>confdefs.h
13613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13614 $as_echo_n "checking for inline... " >&6; }
13615 if ${ac_cv_c_inline+:} false; then :
13616 $as_echo_n "(cached) " >&6
13617 else
13618 ac_cv_c_inline=no
13619 for ac_kw in inline __inline__ __inline; do
13620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13621 /* end confdefs.h. */
13622 #ifndef __cplusplus
13623 typedef int foo_t;
13624 static $ac_kw foo_t static_foo () {return 0; }
13625 $ac_kw foo_t foo () {return 0; }
13626 #endif
13628 _ACEOF
13629 if ac_fn_c_try_compile "$LINENO"; then :
13630 ac_cv_c_inline=$ac_kw
13632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13633 test "$ac_cv_c_inline" != no && break
13634 done
13637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13638 $as_echo "$ac_cv_c_inline" >&6; }
13640 case $ac_cv_c_inline in
13641 inline | yes) ;;
13643 case $ac_cv_c_inline in
13644 no) ac_val=;;
13645 *) ac_val=$ac_cv_c_inline;;
13646 esac
13647 cat >>confdefs.h <<_ACEOF
13648 #ifndef __cplusplus
13649 #define inline $ac_val
13650 #endif
13651 _ACEOF
13653 esac
13655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
13656 $as_echo_n "checking for working volatile... " >&6; }
13657 if ${ac_cv_c_volatile+:} false; then :
13658 $as_echo_n "(cached) " >&6
13659 else
13660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13661 /* end confdefs.h. */
13664 main ()
13667 volatile int x;
13668 int * volatile y = (int *) 0;
13669 return !x && !y;
13671 return 0;
13673 _ACEOF
13674 if ac_fn_c_try_compile "$LINENO"; then :
13675 ac_cv_c_volatile=yes
13676 else
13677 ac_cv_c_volatile=no
13679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
13682 $as_echo "$ac_cv_c_volatile" >&6; }
13683 if test $ac_cv_c_volatile = no; then
13685 $as_echo "#define volatile /**/" >>confdefs.h
13689 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
13690 if test "x$ac_cv_type_off_t" = xyes; then :
13692 else
13694 cat >>confdefs.h <<_ACEOF
13695 #define off_t long int
13696 _ACEOF
13700 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13701 if test "x$ac_cv_type_pid_t" = xyes; then :
13703 else
13705 cat >>confdefs.h <<_ACEOF
13706 #define pid_t int
13707 _ACEOF
13711 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13712 if test "x$ac_cv_type_size_t" = xyes; then :
13714 else
13716 cat >>confdefs.h <<_ACEOF
13717 #define size_t unsigned int
13718 _ACEOF
13722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
13723 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
13724 if ${ac_cv_type_uid_t+:} false; then :
13725 $as_echo_n "(cached) " >&6
13726 else
13727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13728 /* end confdefs.h. */
13729 #include <sys/types.h>
13731 _ACEOF
13732 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13733 $EGREP "uid_t" >/dev/null 2>&1; then :
13734 ac_cv_type_uid_t=yes
13735 else
13736 ac_cv_type_uid_t=no
13738 rm -f conftest*
13741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
13742 $as_echo "$ac_cv_type_uid_t" >&6; }
13743 if test $ac_cv_type_uid_t = no; then
13745 $as_echo "#define uid_t int" >>confdefs.h
13748 $as_echo "#define gid_t int" >>confdefs.h
13752 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
13753 case $ac_cv_c_int8_t in #(
13754 no|yes) ;; #(
13757 cat >>confdefs.h <<_ACEOF
13758 #define int8_t $ac_cv_c_int8_t
13759 _ACEOF
13761 esac
13763 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
13764 case $ac_cv_c_int16_t in #(
13765 no|yes) ;; #(
13768 cat >>confdefs.h <<_ACEOF
13769 #define int16_t $ac_cv_c_int16_t
13770 _ACEOF
13772 esac
13774 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
13775 case $ac_cv_c_int32_t in #(
13776 no|yes) ;; #(
13779 cat >>confdefs.h <<_ACEOF
13780 #define int32_t $ac_cv_c_int32_t
13781 _ACEOF
13783 esac
13785 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
13786 case $ac_cv_c_int64_t in #(
13787 no|yes) ;; #(
13790 cat >>confdefs.h <<_ACEOF
13791 #define int64_t $ac_cv_c_int64_t
13792 _ACEOF
13794 esac
13796 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
13797 case $ac_cv_c_uint8_t in #(
13798 no|yes) ;; #(
13801 $as_echo "#define _UINT8_T 1" >>confdefs.h
13804 cat >>confdefs.h <<_ACEOF
13805 #define uint8_t $ac_cv_c_uint8_t
13806 _ACEOF
13808 esac
13810 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
13811 case $ac_cv_c_uint16_t in #(
13812 no|yes) ;; #(
13816 cat >>confdefs.h <<_ACEOF
13817 #define uint16_t $ac_cv_c_uint16_t
13818 _ACEOF
13820 esac
13822 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
13823 case $ac_cv_c_uint32_t in #(
13824 no|yes) ;; #(
13827 $as_echo "#define _UINT32_T 1" >>confdefs.h
13830 cat >>confdefs.h <<_ACEOF
13831 #define uint32_t $ac_cv_c_uint32_t
13832 _ACEOF
13834 esac
13836 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
13837 case $ac_cv_c_uint64_t in #(
13838 no|yes) ;; #(
13841 $as_echo "#define _UINT64_T 1" >>confdefs.h
13844 cat >>confdefs.h <<_ACEOF
13845 #define uint64_t $ac_cv_c_uint64_t
13846 _ACEOF
13848 esac
13850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
13851 $as_echo_n "checking return type of signal handlers... " >&6; }
13852 if ${ac_cv_type_signal+:} false; then :
13853 $as_echo_n "(cached) " >&6
13854 else
13855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13856 /* end confdefs.h. */
13857 #include <sys/types.h>
13858 #include <signal.h>
13861 main ()
13863 return *(signal (0, 0)) (0) == 1;
13865 return 0;
13867 _ACEOF
13868 if ac_fn_c_try_compile "$LINENO"; then :
13869 ac_cv_type_signal=int
13870 else
13871 ac_cv_type_signal=void
13873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
13876 $as_echo "$ac_cv_type_signal" >&6; }
13878 cat >>confdefs.h <<_ACEOF
13879 #define RETSIGTYPE $ac_cv_type_signal
13880 _ACEOF
13883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C 1999 vararg macro support" >&5
13884 $as_echo_n "checking for ISO C 1999 vararg macro support... " >&6; }
13885 if ${ax_cv_cpp_vararg_macro_iso+:} false; then :
13886 $as_echo_n "(cached) " >&6
13887 else
13888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13889 /* end confdefs.h. */
13891 #define macro(a, ...) func(a, __VA_ARGS__)
13892 int func(int a, int b, int c);
13895 main ()
13898 int i = macro(1, 2, 3);
13902 return 0;
13904 _ACEOF
13905 if ac_fn_c_try_compile "$LINENO"; then :
13906 ax_cv_cpp_vararg_macro_iso=yes
13907 else
13908 ax_cv_cpp_vararg_macro_iso=no
13911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cpp_vararg_macro_iso" >&5
13915 $as_echo "$ax_cv_cpp_vararg_macro_iso" >&6; }
13916 if test "x$ax_cv_cpp_vararg_macro_iso" = xyes; then :
13918 $as_echo "#define HAVE_CPP_VARARG_MACRO_ISO 1" >>confdefs.h
13922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU GCC vararg macro support" >&5
13923 $as_echo_n "checking for GNU GCC vararg macro support... " >&6; }
13924 if ${ax_cv_cpp_vararg_macro_gcc+:} false; then :
13925 $as_echo_n "(cached) " >&6
13926 else
13927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13928 /* end confdefs.h. */
13930 #define macro(a, b...) func(a, b)
13931 int func(int a, int b, int c);
13934 main ()
13937 int i = macro(1, 2, 3);
13941 return 0;
13943 _ACEOF
13944 if ac_fn_c_try_compile "$LINENO"; then :
13945 ax_cv_cpp_vararg_macro_gcc=yes
13946 else
13947 ax_cv_cpp_vararg_macro_gcc=no
13950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cpp_vararg_macro_gcc" >&5
13954 $as_echo "$ax_cv_cpp_vararg_macro_gcc" >&6; }
13955 if test "x$ax_cv_cpp_vararg_macro_gcc" = xyes; then :
13957 $as_echo "#define HAVE_CPP_VARARG_MACRO_GCC 1" >>confdefs.h
13962 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
13963 #include <sys/types.h>
13964 #ifdef WIN32
13965 #include <ws2tcpip.h>
13966 #else
13967 #include <sys/socket.h>
13968 #endif
13972 if test "x$ac_cv_type_socklen_t" = xyes; then :
13974 else
13976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
13977 $as_echo_n "checking for socklen_t equivalent... " >&6; }
13978 if ${ax_cv_socklen_t_equiv+:} false; then :
13979 $as_echo_n "(cached) " >&6
13980 else
13982 #AS_CASE is not supported on <autoconf-2.60
13983 case "${host}" in
13984 *-mingw*) ax_cv_socklen_t_equiv=int ;;
13986 # Systems have either "struct sockaddr *" or
13987 # "void *" as the second argument to getpeername
13988 for arg2 in "struct sockaddr" void; do
13989 for t in int size_t unsigned long "unsigned long"; do
13990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13991 /* end confdefs.h. */
13993 #include <sys/types.h>
13994 #include <sys/socket.h>
13995 int getpeername (int, $arg2 *, $t *);
13998 main ()
14001 $t len;
14002 getpeername(0,0,&len);
14006 return 0;
14008 _ACEOF
14009 if ac_fn_c_try_compile "$LINENO"; then :
14010 ax_cv_socklen_t_equiv="$t"; break
14013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14014 done
14015 test -n "$ax_cv_socklen_t_equiv" && break
14016 done
14018 esac
14020 if ${ax_cv_socklen_t_equiv:+false} :; then :
14021 as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5
14022 else
14024 cat >>confdefs.h <<_ACEOF
14025 #define socklen_t $ax_cv_socklen_t_equiv
14026 _ACEOF
14032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_socklen_t_equiv" >&5
14033 $as_echo "$ax_cv_socklen_t_equiv" >&6; }
14039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler empty array size" >&5
14040 $as_echo_n "checking for C compiler empty array size... " >&6; }
14041 if ${ax_cv_c_empty_array+:} false; then :
14042 $as_echo_n "(cached) " >&6
14043 else
14044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14045 /* end confdefs.h. */
14048 main ()
14051 struct { int foo; int bar[0]; } mystruct;
14055 return 0;
14057 _ACEOF
14058 if ac_fn_c_try_compile "$LINENO"; then :
14059 ax_cv_c_empty_array=0
14060 else
14061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14062 /* end confdefs.h. */
14065 main ()
14068 struct { int foo; int bar[]; } mystruct;
14072 return 0;
14074 _ACEOF
14075 if ac_fn_c_try_compile "$LINENO"; then :
14076 ax_cv_c_empty_array=
14077 else
14078 as_fn_error $? "C compiler is unable to creaty empty arrays" "$LINENO" 5
14081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_empty_array" >&5
14088 $as_echo "$ax_cv_c_empty_array" >&6; }
14089 cat >>confdefs.h <<_ACEOF
14090 #define EMPTY_ARRAY_SIZE $ax_cv_c_empty_array
14091 _ACEOF
14093 # The cast to long int works around a bug in the HP C Compiler
14094 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14095 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14096 # This bug is HP SR number 8606223364.
14097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
14098 $as_echo_n "checking size of unsigned int... " >&6; }
14099 if ${ac_cv_sizeof_unsigned_int+:} false; then :
14100 $as_echo_n "(cached) " >&6
14101 else
14102 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
14104 else
14105 if test "$ac_cv_type_unsigned_int" = yes; then
14106 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14107 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14108 as_fn_error 77 "cannot compute sizeof (unsigned int)
14109 See \`config.log' for more details" "$LINENO" 5; }
14110 else
14111 ac_cv_sizeof_unsigned_int=0
14116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
14117 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
14121 cat >>confdefs.h <<_ACEOF
14122 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
14123 _ACEOF
14126 # The cast to long int works around a bug in the HP C Compiler
14127 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14128 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14129 # This bug is HP SR number 8606223364.
14130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
14131 $as_echo_n "checking size of unsigned long... " >&6; }
14132 if ${ac_cv_sizeof_unsigned_long+:} false; then :
14133 $as_echo_n "(cached) " >&6
14134 else
14135 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
14137 else
14138 if test "$ac_cv_type_unsigned_long" = yes; then
14139 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14140 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14141 as_fn_error 77 "cannot compute sizeof (unsigned long)
14142 See \`config.log' for more details" "$LINENO" 5; }
14143 else
14144 ac_cv_sizeof_unsigned_long=0
14149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
14150 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
14154 cat >>confdefs.h <<_ACEOF
14155 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
14156 _ACEOF
14159 for ac_header in \
14160 stdio.h stdarg.h stdbool.h limits.h \
14161 time.h errno.h fcntl.h io.h direct.h \
14162 ctype.h sys/types.h sys/socket.h \
14163 signal.h unistd.h dlfcn.h \
14164 netinet/in.h netinet/in_systm.h \
14165 netinet/tcp.h arpa/inet.h netdb.h \
14166 windows.h winsock2.h ws2tcpip.h \
14168 do :
14169 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14170 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14171 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14172 cat >>confdefs.h <<_ACEOF
14173 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14174 _ACEOF
14178 done
14180 for ac_header in \
14181 sys/time.h sys/ioctl.h sys/stat.h \
14182 sys/mman.h sys/file.h sys/wait.h \
14183 unistd.h signal.h libgen.h stropts.h \
14184 syslog.h pwd.h grp.h \
14185 sys/sockio.h sys/uio.h linux/sockios.h \
14186 linux/types.h sys/poll.h sys/epoll.h err.h \
14188 do :
14189 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14190 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14191 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14192 cat >>confdefs.h <<_ACEOF
14193 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14194 _ACEOF
14198 done
14201 SOCKET_INCLUDES="
14202 #ifdef HAVE_STDLIB_H
14203 #include <stdlib.h>
14204 #endif
14205 #ifdef HAVE_SYS_TYPES_H
14206 #include <sys/types.h>
14207 #endif
14208 #ifdef HAVE_SYS_SOCKET_H
14209 #include <sys/socket.h>
14210 #endif
14211 #ifdef HAVE_NETINET_IN_H
14212 #include <netinet/in.h>
14213 #endif
14214 #ifdef HAVE_WINDOWS_H
14215 #include <windows.h>
14216 #endif
14217 #ifdef HAVE_WINSOCK2_H
14218 #include <winsock2.h>
14219 #endif
14220 #ifdef HAVE_WS2TCPIP_H
14221 #include <ws2tcpip.h>
14222 #endif
14223 #ifdef HAVE_NETINET_IN_SYSTM_H
14224 #include <netinet/in_systm.h>
14225 #endif
14226 #ifdef HAVE_NETINET_IP_H
14227 #include <netinet/ip.h>
14228 #endif
14231 for ac_header in net/if.h netinet/ip.h netinet/if_ether.h resolv.h sys/un.h
14232 do :
14233 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14234 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "${SOCKET_INCLUDES}
14237 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14238 cat >>confdefs.h <<_ACEOF
14239 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14240 _ACEOF
14244 done
14247 ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "${SOCKET_INCLUDES}
14250 if test "x$ac_cv_type_in_addr_t" = xyes; then :
14252 cat >>confdefs.h <<_ACEOF
14253 #define HAVE_IN_ADDR_T 1
14254 _ACEOF
14257 else
14259 $as_echo "#define in_addr_t uint32_t" >>confdefs.h
14263 ac_fn_c_check_type "$LINENO" "struct iphdr" "ac_cv_type_struct_iphdr" "${SOCKET_INCLUDES}
14266 if test "x$ac_cv_type_struct_iphdr" = xyes; then :
14268 $as_echo "#define HAVE_IPHDR 1" >>confdefs.h
14272 ac_fn_c_check_type "$LINENO" "struct sock_extended_err" "ac_cv_type_struct_sock_extended_err" "${SOCKET_INCLUDES}
14275 if test "x$ac_cv_type_struct_sock_extended_err" = xyes; then :
14277 $as_echo "#define HAVE_SOCK_EXTENDED_ERR 1" >>confdefs.h
14281 ac_fn_c_check_type "$LINENO" "struct msghdr" "ac_cv_type_struct_msghdr" "${SOCKET_INCLUDES}
14284 if test "x$ac_cv_type_struct_msghdr" = xyes; then :
14286 $as_echo "#define HAVE_MSGHDR 1" >>confdefs.h
14290 ac_fn_c_check_type "$LINENO" "struct cmsghdr" "ac_cv_type_struct_cmsghdr" "${SOCKET_INCLUDES}
14293 if test "x$ac_cv_type_struct_cmsghdr" = xyes; then :
14295 $as_echo "#define HAVE_CMSGHDR 1" >>confdefs.h
14299 ac_fn_c_check_type "$LINENO" "struct in_pktinfo" "ac_cv_type_struct_in_pktinfo" "${SOCKET_INCLUDES}
14302 if test "x$ac_cv_type_struct_in_pktinfo" = xyes; then :
14304 $as_echo "#define HAVE_IN_PKTINFO 1" >>confdefs.h
14308 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "${SOCKET_INCLUDES}
14311 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
14313 else
14314 as_fn_error $? "struct sockaddr_in6 not found, needed for ipv6 transport support." "$LINENO" 5
14317 ac_fn_c_check_decl "$LINENO" "SO_MARK" "ac_cv_have_decl_SO_MARK" "${SOCKET_INCLUDES}
14320 if test "x$ac_cv_have_decl_SO_MARK" = xyes; then :
14321 ac_have_decl=1
14322 else
14323 ac_have_decl=0
14326 cat >>confdefs.h <<_ACEOF
14327 #define HAVE_DECL_SO_MARK $ac_have_decl
14328 _ACEOF
14331 ac_fn_c_check_decl "$LINENO" "SIGHUP" "ac_cv_have_decl_SIGHUP" "
14332 #ifdef HAVE_SIGNAL_H
14333 #include <signal.h>
14334 #endif
14338 if test "x$ac_cv_have_decl_SIGHUP" = xyes; then :
14339 ac_have_decl=1
14340 else
14341 ac_have_decl=0
14344 cat >>confdefs.h <<_ACEOF
14345 #define HAVE_DECL_SIGHUP $ac_have_decl
14346 _ACEOF
14347 if test $ac_have_decl = 1; then :
14349 else
14351 $as_echo "#define SIGHUP 1" >>confdefs.h
14355 ac_fn_c_check_decl "$LINENO" "SIGINT" "ac_cv_have_decl_SIGINT" "
14356 #ifdef HAVE_SIGNAL_H
14357 #include <signal.h>
14358 #endif
14362 if test "x$ac_cv_have_decl_SIGINT" = xyes; then :
14363 ac_have_decl=1
14364 else
14365 ac_have_decl=0
14368 cat >>confdefs.h <<_ACEOF
14369 #define HAVE_DECL_SIGINT $ac_have_decl
14370 _ACEOF
14371 if test $ac_have_decl = 1; then :
14373 else
14375 $as_echo "#define SIGINT 2" >>confdefs.h
14379 ac_fn_c_check_decl "$LINENO" "SIGUSR1" "ac_cv_have_decl_SIGUSR1" "
14380 #ifdef HAVE_SIGNAL_H
14381 #include <signal.h>
14382 #endif
14386 if test "x$ac_cv_have_decl_SIGUSR1" = xyes; then :
14387 ac_have_decl=1
14388 else
14389 ac_have_decl=0
14392 cat >>confdefs.h <<_ACEOF
14393 #define HAVE_DECL_SIGUSR1 $ac_have_decl
14394 _ACEOF
14395 if test $ac_have_decl = 1; then :
14397 else
14399 $as_echo "#define SIGUSR1 10" >>confdefs.h
14403 ac_fn_c_check_decl "$LINENO" "SIGUSR2" "ac_cv_have_decl_SIGUSR2" "
14404 #ifdef HAVE_SIGNAL_H
14405 #include <signal.h>
14406 #endif
14410 if test "x$ac_cv_have_decl_SIGUSR2" = xyes; then :
14411 ac_have_decl=1
14412 else
14413 ac_have_decl=0
14416 cat >>confdefs.h <<_ACEOF
14417 #define HAVE_DECL_SIGUSR2 $ac_have_decl
14418 _ACEOF
14419 if test $ac_have_decl = 1; then :
14421 else
14423 $as_echo "#define SIGUSR2 12" >>confdefs.h
14427 ac_fn_c_check_decl "$LINENO" "SIGTERM" "ac_cv_have_decl_SIGTERM" "
14428 #ifdef HAVE_SIGNAL_H
14429 #include <signal.h>
14430 #endif
14434 if test "x$ac_cv_have_decl_SIGTERM" = xyes; then :
14435 ac_have_decl=1
14436 else
14437 ac_have_decl=0
14440 cat >>confdefs.h <<_ACEOF
14441 #define HAVE_DECL_SIGTERM $ac_have_decl
14442 _ACEOF
14443 if test $ac_have_decl = 1; then :
14445 else
14447 $as_echo "#define SIGTERM 15" >>confdefs.h
14452 for ac_header in vfork.h
14453 do :
14454 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
14455 if test "x$ac_cv_header_vfork_h" = xyes; then :
14456 cat >>confdefs.h <<_ACEOF
14457 #define HAVE_VFORK_H 1
14458 _ACEOF
14462 done
14464 for ac_func in fork vfork
14465 do :
14466 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14467 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14468 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14469 cat >>confdefs.h <<_ACEOF
14470 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14471 _ACEOF
14474 done
14476 if test "x$ac_cv_func_fork" = xyes; then
14477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14478 $as_echo_n "checking for working fork... " >&6; }
14479 if ${ac_cv_func_fork_works+:} false; then :
14480 $as_echo_n "(cached) " >&6
14481 else
14482 if test "$cross_compiling" = yes; then :
14483 ac_cv_func_fork_works=cross
14484 else
14485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14486 /* end confdefs.h. */
14487 $ac_includes_default
14489 main ()
14492 /* By Ruediger Kuhlmann. */
14493 return fork () < 0;
14496 return 0;
14498 _ACEOF
14499 if ac_fn_c_try_run "$LINENO"; then :
14500 ac_cv_func_fork_works=yes
14501 else
14502 ac_cv_func_fork_works=no
14504 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14505 conftest.$ac_objext conftest.beam conftest.$ac_ext
14509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14510 $as_echo "$ac_cv_func_fork_works" >&6; }
14512 else
14513 ac_cv_func_fork_works=$ac_cv_func_fork
14515 if test "x$ac_cv_func_fork_works" = xcross; then
14516 case $host in
14517 *-*-amigaos* | *-*-msdosdjgpp*)
14518 # Override, as these systems have only a dummy fork() stub
14519 ac_cv_func_fork_works=no
14522 ac_cv_func_fork_works=yes
14524 esac
14525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14526 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14528 ac_cv_func_vfork_works=$ac_cv_func_vfork
14529 if test "x$ac_cv_func_vfork" = xyes; then
14530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14531 $as_echo_n "checking for working vfork... " >&6; }
14532 if ${ac_cv_func_vfork_works+:} false; then :
14533 $as_echo_n "(cached) " >&6
14534 else
14535 if test "$cross_compiling" = yes; then :
14536 ac_cv_func_vfork_works=cross
14537 else
14538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14539 /* end confdefs.h. */
14540 /* Thanks to Paul Eggert for this test. */
14541 $ac_includes_default
14542 #include <sys/wait.h>
14543 #ifdef HAVE_VFORK_H
14544 # include <vfork.h>
14545 #endif
14546 /* On some sparc systems, changes by the child to local and incoming
14547 argument registers are propagated back to the parent. The compiler
14548 is told about this with #include <vfork.h>, but some compilers
14549 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
14550 static variable whose address is put into a register that is
14551 clobbered by the vfork. */
14552 static void
14553 #ifdef __cplusplus
14554 sparc_address_test (int arg)
14555 # else
14556 sparc_address_test (arg) int arg;
14557 #endif
14559 static pid_t child;
14560 if (!child) {
14561 child = vfork ();
14562 if (child < 0) {
14563 perror ("vfork");
14564 _exit(2);
14566 if (!child) {
14567 arg = getpid();
14568 write(-1, "", 0);
14569 _exit (arg);
14575 main ()
14577 pid_t parent = getpid ();
14578 pid_t child;
14580 sparc_address_test (0);
14582 child = vfork ();
14584 if (child == 0) {
14585 /* Here is another test for sparc vfork register problems. This
14586 test uses lots of local variables, at least as many local
14587 variables as main has allocated so far including compiler
14588 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
14589 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
14590 reuse the register of parent for one of the local variables,
14591 since it will think that parent can't possibly be used any more
14592 in this routine. Assigning to the local variable will thus
14593 munge parent in the parent process. */
14594 pid_t
14595 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14596 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14597 /* Convince the compiler that p..p7 are live; otherwise, it might
14598 use the same hardware register for all 8 local variables. */
14599 if (p != p1 || p != p2 || p != p3 || p != p4
14600 || p != p5 || p != p6 || p != p7)
14601 _exit(1);
14603 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14604 from child file descriptors. If the child closes a descriptor
14605 before it execs or exits, this munges the parent's descriptor
14606 as well. Test for this by closing stdout in the child. */
14607 _exit(close(fileno(stdout)) != 0);
14608 } else {
14609 int status;
14610 struct stat st;
14612 while (wait(&status) != child)
14614 return (
14615 /* Was there some problem with vforking? */
14616 child < 0
14618 /* Did the child fail? (This shouldn't happen.) */
14619 || status
14621 /* Did the vfork/compiler bug occur? */
14622 || parent != getpid()
14624 /* Did the file descriptor bug occur? */
14625 || fstat(fileno(stdout), &st) != 0
14629 _ACEOF
14630 if ac_fn_c_try_run "$LINENO"; then :
14631 ac_cv_func_vfork_works=yes
14632 else
14633 ac_cv_func_vfork_works=no
14635 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14636 conftest.$ac_objext conftest.beam conftest.$ac_ext
14640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
14641 $as_echo "$ac_cv_func_vfork_works" >&6; }
14644 if test "x$ac_cv_func_fork_works" = xcross; then
14645 ac_cv_func_vfork_works=$ac_cv_func_vfork
14646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14647 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14650 if test "x$ac_cv_func_vfork_works" = xyes; then
14652 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
14654 else
14656 $as_echo "#define vfork fork" >>confdefs.h
14659 if test "x$ac_cv_func_fork_works" = xyes; then
14661 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
14666 for ac_func in \
14667 daemon chroot getpwnam setuid nice system getpid dup dup2 \
14668 getpass strerror syslog openlog mlockall getgrnam setgid \
14669 setgroups stat flock readv writev time gettimeofday \
14670 ctime memset vsnprintf strdup \
14671 setsid chdir putenv getpeername unlink \
14672 chsize ftruncate execve getpeereid umask basename dirname access \
14673 epoll_create \
14675 do :
14676 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14677 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14678 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14679 cat >>confdefs.h <<_ACEOF
14680 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14681 _ACEOF
14684 done
14687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14688 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14689 if ${ac_cv_lib_dl_dlopen+:} false; then :
14690 $as_echo_n "(cached) " >&6
14691 else
14692 ac_check_lib_save_LIBS=$LIBS
14693 LIBS="-ldl $LIBS"
14694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14695 /* end confdefs.h. */
14697 /* Override any GCC internal prototype to avoid an error.
14698 Use char because int might match the return type of a GCC
14699 builtin and then its argument prototype would still apply. */
14700 #ifdef __cplusplus
14701 extern "C"
14702 #endif
14703 char dlopen ();
14705 main ()
14707 return dlopen ();
14709 return 0;
14711 _ACEOF
14712 if ac_fn_c_try_link "$LINENO"; then :
14713 ac_cv_lib_dl_dlopen=yes
14714 else
14715 ac_cv_lib_dl_dlopen=no
14717 rm -f core conftest.err conftest.$ac_objext \
14718 conftest$ac_exeext conftest.$ac_ext
14719 LIBS=$ac_check_lib_save_LIBS
14721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14722 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14723 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14724 DL_LIBS="-ldl"
14730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lnsl" >&5
14731 $as_echo_n "checking for inet_ntoa in -lnsl... " >&6; }
14732 if ${ac_cv_lib_nsl_inet_ntoa+:} false; then :
14733 $as_echo_n "(cached) " >&6
14734 else
14735 ac_check_lib_save_LIBS=$LIBS
14736 LIBS="-lnsl $LIBS"
14737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14738 /* end confdefs.h. */
14740 /* Override any GCC internal prototype to avoid an error.
14741 Use char because int might match the return type of a GCC
14742 builtin and then its argument prototype would still apply. */
14743 #ifdef __cplusplus
14744 extern "C"
14745 #endif
14746 char inet_ntoa ();
14748 main ()
14750 return inet_ntoa ();
14752 return 0;
14754 _ACEOF
14755 if ac_fn_c_try_link "$LINENO"; then :
14756 ac_cv_lib_nsl_inet_ntoa=yes
14757 else
14758 ac_cv_lib_nsl_inet_ntoa=no
14760 rm -f core conftest.err conftest.$ac_objext \
14761 conftest$ac_exeext conftest.$ac_ext
14762 LIBS=$ac_check_lib_save_LIBS
14764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_ntoa" >&5
14765 $as_echo "$ac_cv_lib_nsl_inet_ntoa" >&6; }
14766 if test "x$ac_cv_lib_nsl_inet_ntoa" = xyes; then :
14767 SOCKETS_LIBS="${SOCKETS_LIBS} -lnsl"
14771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
14772 $as_echo_n "checking for socket in -lsocket... " >&6; }
14773 if ${ac_cv_lib_socket_socket+:} false; then :
14774 $as_echo_n "(cached) " >&6
14775 else
14776 ac_check_lib_save_LIBS=$LIBS
14777 LIBS="-lsocket $LIBS"
14778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14779 /* end confdefs.h. */
14781 /* Override any GCC internal prototype to avoid an error.
14782 Use char because int might match the return type of a GCC
14783 builtin and then its argument prototype would still apply. */
14784 #ifdef __cplusplus
14785 extern "C"
14786 #endif
14787 char socket ();
14789 main ()
14791 return socket ();
14793 return 0;
14795 _ACEOF
14796 if ac_fn_c_try_link "$LINENO"; then :
14797 ac_cv_lib_socket_socket=yes
14798 else
14799 ac_cv_lib_socket_socket=no
14801 rm -f core conftest.err conftest.$ac_objext \
14802 conftest$ac_exeext conftest.$ac_ext
14803 LIBS=$ac_check_lib_save_LIBS
14805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
14806 $as_echo "$ac_cv_lib_socket_socket" >&6; }
14807 if test "x$ac_cv_lib_socket_socket" = xyes; then :
14808 SOCKETS_LIBS="${SOCKETS_LIBS} -lsocket"
14812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lresolv" >&5
14813 $as_echo_n "checking for gethostbyname in -lresolv... " >&6; }
14814 if ${ac_cv_lib_resolv_gethostbyname+:} false; then :
14815 $as_echo_n "(cached) " >&6
14816 else
14817 ac_check_lib_save_LIBS=$LIBS
14818 LIBS="-lresolv $LIBS"
14819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14820 /* end confdefs.h. */
14822 /* Override any GCC internal prototype to avoid an error.
14823 Use char because int might match the return type of a GCC
14824 builtin and then its argument prototype would still apply. */
14825 #ifdef __cplusplus
14826 extern "C"
14827 #endif
14828 char gethostbyname ();
14830 main ()
14832 return gethostbyname ();
14834 return 0;
14836 _ACEOF
14837 if ac_fn_c_try_link "$LINENO"; then :
14838 ac_cv_lib_resolv_gethostbyname=yes
14839 else
14840 ac_cv_lib_resolv_gethostbyname=no
14842 rm -f core conftest.err conftest.$ac_objext \
14843 conftest$ac_exeext conftest.$ac_ext
14844 LIBS=$ac_check_lib_save_LIBS
14846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_gethostbyname" >&5
14847 $as_echo "$ac_cv_lib_resolv_gethostbyname" >&6; }
14848 if test "x$ac_cv_lib_resolv_gethostbyname" = xyes; then :
14849 SOCKETS_LIBS="${SOCKETS_LIBS} -lresolv"
14855 old_LIBS="${LIBS}"
14856 LIBS="${LIBS} ${SOCKETS_LIBS}"
14857 for ac_func in sendmsg recvmsg inet_ntop inet_pton
14858 do :
14859 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14860 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14861 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14862 cat >>confdefs.h <<_ACEOF
14863 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14864 _ACEOF
14867 done
14869 for ac_func in res_init
14870 do :
14871 ac_fn_c_check_func "$LINENO" "res_init" "ac_cv_func_res_init"
14872 if test "x$ac_cv_func_res_init" = xyes; then :
14873 cat >>confdefs.h <<_ACEOF
14874 #define HAVE_RES_INIT 1
14875 _ACEOF
14878 done
14880 # Windows use stdcall for winsock so we cannot auto detect these
14883 if test "${WIN32}" = "yes"; then
14886 $as_echo "#define HAVE_SOCKET 1" >>confdefs.h
14890 $as_echo "#define HAVE_RECV 1" >>confdefs.h
14894 $as_echo "#define HAVE_RECVFROM 1" >>confdefs.h
14898 $as_echo "#define HAVE_SEND 1" >>confdefs.h
14902 $as_echo "#define HAVE_SENDTO 1" >>confdefs.h
14906 $as_echo "#define HAVE_LISTEN 1" >>confdefs.h
14910 $as_echo "#define HAVE_ACCEPT 1" >>confdefs.h
14914 $as_echo "#define HAVE_CONNECT 1" >>confdefs.h
14918 $as_echo "#define HAVE_BIND 1" >>confdefs.h
14922 $as_echo "#define HAVE_SELECT 1" >>confdefs.h
14926 $as_echo "#define HAVE_GETHOSTBYNAME 1" >>confdefs.h
14930 $as_echo "#define HAVE_INET_NTOA 1" >>confdefs.h
14934 $as_echo "#define HAVE_SETSOCKOPT 1" >>confdefs.h
14938 $as_echo "#define HAVE_GETSOCKOPT 1" >>confdefs.h
14942 $as_echo "#define HAVE_GETSOCKNAME 1" >>confdefs.h
14946 $as_echo "#define HAVE_POLL 1" >>confdefs.h
14949 else
14950 for ac_func in socket recv recvfrom send sendto listen accept connect bind select gethostbyname inet_ntoa
14951 do :
14952 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14953 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14954 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14955 cat >>confdefs.h <<_ACEOF
14956 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14957 _ACEOF
14959 else
14960 as_fn_error $? "Required library function not found" "$LINENO" 5
14963 done
14965 for ac_func in setsockopt getsockopt getsockname poll
14966 do :
14967 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14968 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14969 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14970 cat >>confdefs.h <<_ACEOF
14971 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14972 _ACEOF
14975 done
14978 LIBS="${old_LIBS}"
14981 old_CFLAGS="${CFLAGS}"
14982 CFLAGS="${CFLAGS} ${TAP_CFLAGS}"
14983 for ac_header in \
14984 net/if_tun.h net/tun/if_tun.h \
14985 linux/if_tun.h \
14986 tap-windows.h \
14988 do :
14989 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14990 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14991 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14992 cat >>confdefs.h <<_ACEOF
14993 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14994 _ACEOF
14995 have_tap_header="yes"
14999 done
15001 ac_fn_c_check_decl "$LINENO" "TUNSETPERSIST" "ac_cv_have_decl_TUNSETPERSIST" "
15002 #ifdef HAVE_LINUX_IF_TUN_H
15003 #include <linux/if_tun.h>
15004 #endif
15008 if test "x$ac_cv_have_decl_TUNSETPERSIST" = xyes; then :
15009 ac_have_decl=1
15010 else
15011 ac_have_decl=0
15014 cat >>confdefs.h <<_ACEOF
15015 #define HAVE_DECL_TUNSETPERSIST $ac_have_decl
15016 _ACEOF
15017 if test $ac_have_decl = 1; then :
15019 $as_echo "#define ENABLE_FEATURE_TUN_PERSIST 1" >>confdefs.h
15023 CFLAGS="${old_CFLAGS}"
15024 test "${have_tap_header}" = "yes" || as_fn_error $? "no tap header could be found" "$LINENO" 5
15026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setcon in -lselinux" >&5
15027 $as_echo_n "checking for setcon in -lselinux... " >&6; }
15028 if ${ac_cv_lib_selinux_setcon+:} false; then :
15029 $as_echo_n "(cached) " >&6
15030 else
15031 ac_check_lib_save_LIBS=$LIBS
15032 LIBS="-lselinux $LIBS"
15033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15034 /* end confdefs.h. */
15036 /* Override any GCC internal prototype to avoid an error.
15037 Use char because int might match the return type of a GCC
15038 builtin and then its argument prototype would still apply. */
15039 #ifdef __cplusplus
15040 extern "C"
15041 #endif
15042 char setcon ();
15044 main ()
15046 return setcon ();
15048 return 0;
15050 _ACEOF
15051 if ac_fn_c_try_link "$LINENO"; then :
15052 ac_cv_lib_selinux_setcon=yes
15053 else
15054 ac_cv_lib_selinux_setcon=no
15056 rm -f core conftest.err conftest.$ac_objext \
15057 conftest$ac_exeext conftest.$ac_ext
15058 LIBS=$ac_check_lib_save_LIBS
15060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_setcon" >&5
15061 $as_echo "$ac_cv_lib_selinux_setcon" >&6; }
15062 if test "x$ac_cv_lib_selinux_setcon" = xyes; then :
15063 SELINUX_LIBS="-lselinux"
15071 if test -z "${LIBPAM_LIBS}"; then
15072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
15073 $as_echo_n "checking for pam_start in -lpam... " >&6; }
15074 if ${ac_cv_lib_pam_pam_start+:} false; then :
15075 $as_echo_n "(cached) " >&6
15076 else
15077 ac_check_lib_save_LIBS=$LIBS
15078 LIBS="-lpam $LIBS"
15079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15080 /* end confdefs.h. */
15082 /* Override any GCC internal prototype to avoid an error.
15083 Use char because int might match the return type of a GCC
15084 builtin and then its argument prototype would still apply. */
15085 #ifdef __cplusplus
15086 extern "C"
15087 #endif
15088 char pam_start ();
15090 main ()
15092 return pam_start ();
15094 return 0;
15096 _ACEOF
15097 if ac_fn_c_try_link "$LINENO"; then :
15098 ac_cv_lib_pam_pam_start=yes
15099 else
15100 ac_cv_lib_pam_pam_start=no
15102 rm -f core conftest.err conftest.$ac_objext \
15103 conftest$ac_exeext conftest.$ac_ext
15104 LIBS=$ac_check_lib_save_LIBS
15106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
15107 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
15108 if test "x$ac_cv_lib_pam_pam_start" = xyes; then :
15109 LIBPAM_LIBS="-lpam"
15115 case "${with_mem_check}" in
15116 valgrind)
15117 ac_fn_c_check_header_mongrel "$LINENO" "valgrind/memcheck.h" "ac_cv_header_valgrind_memcheck_h" "$ac_includes_default"
15118 if test "x$ac_cv_header_valgrind_memcheck_h" = xyes; then :
15120 CFLAGS="${CFLAGS} -g -fno-inline"
15122 $as_echo "#define USE_VALGRIND 1" >>confdefs.h
15125 else
15126 as_fn_error $? "valgrind headers not found." "$LINENO" 5
15132 dmalloc)
15133 ac_fn_c_check_header_mongrel "$LINENO" "dmalloc.h" "ac_cv_header_dmalloc_h" "$ac_includes_default"
15134 if test "x$ac_cv_header_dmalloc_h" = xyes; then :
15135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc in -ldmalloc" >&5
15136 $as_echo_n "checking for malloc in -ldmalloc... " >&6; }
15137 if ${ac_cv_lib_dmalloc_malloc+:} false; then :
15138 $as_echo_n "(cached) " >&6
15139 else
15140 ac_check_lib_save_LIBS=$LIBS
15141 LIBS="-ldmalloc $LIBS"
15142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15143 /* end confdefs.h. */
15145 /* Override any GCC internal prototype to avoid an error.
15146 Use char because int might match the return type of a GCC
15147 builtin and then its argument prototype would still apply. */
15148 #ifdef __cplusplus
15149 extern "C"
15150 #endif
15151 char malloc ();
15153 main ()
15155 return malloc ();
15157 return 0;
15159 _ACEOF
15160 if ac_fn_c_try_link "$LINENO"; then :
15161 ac_cv_lib_dmalloc_malloc=yes
15162 else
15163 ac_cv_lib_dmalloc_malloc=no
15165 rm -f core conftest.err conftest.$ac_objext \
15166 conftest$ac_exeext conftest.$ac_ext
15167 LIBS=$ac_check_lib_save_LIBS
15169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dmalloc_malloc" >&5
15170 $as_echo "$ac_cv_lib_dmalloc_malloc" >&6; }
15171 if test "x$ac_cv_lib_dmalloc_malloc" = xyes; then :
15173 LIBS="${LIBS} -ldmalloc"
15175 $as_echo "#define DMALLOC 1" >>confdefs.h
15178 else
15179 as_fn_error $? "dmalloc library not found." "$LINENO" 5
15183 else
15184 as_fn_error $? "dmalloc headers not found." "$LINENO" 5
15190 ssl)
15191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRYPTO_mem_ctrl in -lssl" >&5
15192 $as_echo_n "checking for CRYPTO_mem_ctrl in -lssl... " >&6; }
15193 if ${ac_cv_lib_ssl_CRYPTO_mem_ctrl+:} false; then :
15194 $as_echo_n "(cached) " >&6
15195 else
15196 ac_check_lib_save_LIBS=$LIBS
15197 LIBS="-lssl $LIBS"
15198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15199 /* end confdefs.h. */
15201 /* Override any GCC internal prototype to avoid an error.
15202 Use char because int might match the return type of a GCC
15203 builtin and then its argument prototype would still apply. */
15204 #ifdef __cplusplus
15205 extern "C"
15206 #endif
15207 char CRYPTO_mem_ctrl ();
15209 main ()
15211 return CRYPTO_mem_ctrl ();
15213 return 0;
15215 _ACEOF
15216 if ac_fn_c_try_link "$LINENO"; then :
15217 ac_cv_lib_ssl_CRYPTO_mem_ctrl=yes
15218 else
15219 ac_cv_lib_ssl_CRYPTO_mem_ctrl=no
15221 rm -f core conftest.err conftest.$ac_objext \
15222 conftest$ac_exeext conftest.$ac_ext
15223 LIBS=$ac_check_lib_save_LIBS
15225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_CRYPTO_mem_ctrl" >&5
15226 $as_echo "$ac_cv_lib_ssl_CRYPTO_mem_ctrl" >&6; }
15227 if test "x$ac_cv_lib_ssl_CRYPTO_mem_ctrl" = xyes; then :
15230 $as_echo "#define CRYPTO_MDEBUG 1" >>confdefs.h
15232 { $as_echo "$as_me:${as_lineno-$LINENO}: NOTE: OpenSSL library must be compiled with CRYPTO_MDEBUG" >&5
15233 $as_echo "$as_me: NOTE: OpenSSL library must be compiled with CRYPTO_MDEBUG" >&6;}
15235 else
15236 as_fn_error $? "Memory Debugging function in OpenSSL library not found." "$LINENO" 5
15241 esac
15244 pkg_failed=no
15245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKCS11_HELPER" >&5
15246 $as_echo_n "checking for PKCS11_HELPER... " >&6; }
15248 if test -n "$PKCS11_HELPER_CFLAGS"; then
15249 pkg_cv_PKCS11_HELPER_CFLAGS="$PKCS11_HELPER_CFLAGS"
15250 elif test -n "$PKG_CONFIG"; then
15251 if test -n "$PKG_CONFIG" && \
15252 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpkcs11-helper-1 >= 1.02\""; } >&5
15253 ($PKG_CONFIG --exists --print-errors "libpkcs11-helper-1 >= 1.02") 2>&5
15254 ac_status=$?
15255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15256 test $ac_status = 0; }; then
15257 pkg_cv_PKCS11_HELPER_CFLAGS=`$PKG_CONFIG --cflags "libpkcs11-helper-1 >= 1.02" 2>/dev/null`
15258 test "x$?" != "x0" && pkg_failed=yes
15259 else
15260 pkg_failed=yes
15262 else
15263 pkg_failed=untried
15265 if test -n "$PKCS11_HELPER_LIBS"; then
15266 pkg_cv_PKCS11_HELPER_LIBS="$PKCS11_HELPER_LIBS"
15267 elif test -n "$PKG_CONFIG"; then
15268 if test -n "$PKG_CONFIG" && \
15269 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpkcs11-helper-1 >= 1.02\""; } >&5
15270 ($PKG_CONFIG --exists --print-errors "libpkcs11-helper-1 >= 1.02") 2>&5
15271 ac_status=$?
15272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15273 test $ac_status = 0; }; then
15274 pkg_cv_PKCS11_HELPER_LIBS=`$PKG_CONFIG --libs "libpkcs11-helper-1 >= 1.02" 2>/dev/null`
15275 test "x$?" != "x0" && pkg_failed=yes
15276 else
15277 pkg_failed=yes
15279 else
15280 pkg_failed=untried
15285 if test $pkg_failed = yes; then
15286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15287 $as_echo "no" >&6; }
15289 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15290 _pkg_short_errors_supported=yes
15291 else
15292 _pkg_short_errors_supported=no
15294 if test $_pkg_short_errors_supported = yes; then
15295 PKCS11_HELPER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpkcs11-helper-1 >= 1.02" 2>&1`
15296 else
15297 PKCS11_HELPER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpkcs11-helper-1 >= 1.02" 2>&1`
15299 # Put the nasty error message in config.log where it belongs
15300 echo "$PKCS11_HELPER_PKG_ERRORS" >&5
15304 elif test $pkg_failed = untried; then
15305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15306 $as_echo "no" >&6; }
15309 else
15310 PKCS11_HELPER_CFLAGS=$pkg_cv_PKCS11_HELPER_CFLAGS
15311 PKCS11_HELPER_LIBS=$pkg_cv_PKCS11_HELPER_LIBS
15312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15313 $as_echo "yes" >&6; }
15314 have_pkcs11_helper="yes"
15318 pkg_failed=no
15319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL_CRYPTO" >&5
15320 $as_echo_n "checking for OPENSSL_CRYPTO... " >&6; }
15322 if test -n "$OPENSSL_CRYPTO_CFLAGS"; then
15323 pkg_cv_OPENSSL_CRYPTO_CFLAGS="$OPENSSL_CRYPTO_CFLAGS"
15324 elif test -n "$PKG_CONFIG"; then
15325 if test -n "$PKG_CONFIG" && \
15326 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcrypto >= 0.9.6\""; } >&5
15327 ($PKG_CONFIG --exists --print-errors "libcrypto >= 0.9.6") 2>&5
15328 ac_status=$?
15329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15330 test $ac_status = 0; }; then
15331 pkg_cv_OPENSSL_CRYPTO_CFLAGS=`$PKG_CONFIG --cflags "libcrypto >= 0.9.6" 2>/dev/null`
15332 test "x$?" != "x0" && pkg_failed=yes
15333 else
15334 pkg_failed=yes
15336 else
15337 pkg_failed=untried
15339 if test -n "$OPENSSL_CRYPTO_LIBS"; then
15340 pkg_cv_OPENSSL_CRYPTO_LIBS="$OPENSSL_CRYPTO_LIBS"
15341 elif test -n "$PKG_CONFIG"; then
15342 if test -n "$PKG_CONFIG" && \
15343 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcrypto >= 0.9.6\""; } >&5
15344 ($PKG_CONFIG --exists --print-errors "libcrypto >= 0.9.6") 2>&5
15345 ac_status=$?
15346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15347 test $ac_status = 0; }; then
15348 pkg_cv_OPENSSL_CRYPTO_LIBS=`$PKG_CONFIG --libs "libcrypto >= 0.9.6" 2>/dev/null`
15349 test "x$?" != "x0" && pkg_failed=yes
15350 else
15351 pkg_failed=yes
15353 else
15354 pkg_failed=untried
15359 if test $pkg_failed = yes; then
15360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15361 $as_echo "no" >&6; }
15363 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15364 _pkg_short_errors_supported=yes
15365 else
15366 _pkg_short_errors_supported=no
15368 if test $_pkg_short_errors_supported = yes; then
15369 OPENSSL_CRYPTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcrypto >= 0.9.6" 2>&1`
15370 else
15371 OPENSSL_CRYPTO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcrypto >= 0.9.6" 2>&1`
15373 # Put the nasty error message in config.log where it belongs
15374 echo "$OPENSSL_CRYPTO_PKG_ERRORS" >&5
15376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_new in -lcrypto" >&5
15377 $as_echo_n "checking for RSA_new in -lcrypto... " >&6; }
15378 if ${ac_cv_lib_crypto_RSA_new+:} false; then :
15379 $as_echo_n "(cached) " >&6
15380 else
15381 ac_check_lib_save_LIBS=$LIBS
15382 LIBS="-lcrypto $LIBS"
15383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15384 /* end confdefs.h. */
15386 /* Override any GCC internal prototype to avoid an error.
15387 Use char because int might match the return type of a GCC
15388 builtin and then its argument prototype would still apply. */
15389 #ifdef __cplusplus
15390 extern "C"
15391 #endif
15392 char RSA_new ();
15394 main ()
15396 return RSA_new ();
15398 return 0;
15400 _ACEOF
15401 if ac_fn_c_try_link "$LINENO"; then :
15402 ac_cv_lib_crypto_RSA_new=yes
15403 else
15404 ac_cv_lib_crypto_RSA_new=no
15406 rm -f core conftest.err conftest.$ac_objext \
15407 conftest$ac_exeext conftest.$ac_ext
15408 LIBS=$ac_check_lib_save_LIBS
15410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_new" >&5
15411 $as_echo "$ac_cv_lib_crypto_RSA_new" >&6; }
15412 if test "x$ac_cv_lib_crypto_RSA_new" = xyes; then :
15414 have_openssl_crypto="yes"
15415 OPENSSL_CRYPTO_LIBS="-lcrypto"
15421 elif test $pkg_failed = untried; then
15422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15423 $as_echo "no" >&6; }
15424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_new in -lcrypto" >&5
15425 $as_echo_n "checking for RSA_new in -lcrypto... " >&6; }
15426 if ${ac_cv_lib_crypto_RSA_new+:} false; then :
15427 $as_echo_n "(cached) " >&6
15428 else
15429 ac_check_lib_save_LIBS=$LIBS
15430 LIBS="-lcrypto $LIBS"
15431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15432 /* end confdefs.h. */
15434 /* Override any GCC internal prototype to avoid an error.
15435 Use char because int might match the return type of a GCC
15436 builtin and then its argument prototype would still apply. */
15437 #ifdef __cplusplus
15438 extern "C"
15439 #endif
15440 char RSA_new ();
15442 main ()
15444 return RSA_new ();
15446 return 0;
15448 _ACEOF
15449 if ac_fn_c_try_link "$LINENO"; then :
15450 ac_cv_lib_crypto_RSA_new=yes
15451 else
15452 ac_cv_lib_crypto_RSA_new=no
15454 rm -f core conftest.err conftest.$ac_objext \
15455 conftest$ac_exeext conftest.$ac_ext
15456 LIBS=$ac_check_lib_save_LIBS
15458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_new" >&5
15459 $as_echo "$ac_cv_lib_crypto_RSA_new" >&6; }
15460 if test "x$ac_cv_lib_crypto_RSA_new" = xyes; then :
15462 have_openssl_crypto="yes"
15463 OPENSSL_CRYPTO_LIBS="-lcrypto"
15469 else
15470 OPENSSL_CRYPTO_CFLAGS=$pkg_cv_OPENSSL_CRYPTO_CFLAGS
15471 OPENSSL_CRYPTO_LIBS=$pkg_cv_OPENSSL_CRYPTO_LIBS
15472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15473 $as_echo "yes" >&6; }
15474 have_openssl_crypto="yes"
15478 pkg_failed=no
15479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL_SSL" >&5
15480 $as_echo_n "checking for OPENSSL_SSL... " >&6; }
15482 if test -n "$OPENSSL_SSL_CFLAGS"; then
15483 pkg_cv_OPENSSL_SSL_CFLAGS="$OPENSSL_SSL_CFLAGS"
15484 elif test -n "$PKG_CONFIG"; then
15485 if test -n "$PKG_CONFIG" && \
15486 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libssl >= 0.9.6\""; } >&5
15487 ($PKG_CONFIG --exists --print-errors "libssl >= 0.9.6") 2>&5
15488 ac_status=$?
15489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15490 test $ac_status = 0; }; then
15491 pkg_cv_OPENSSL_SSL_CFLAGS=`$PKG_CONFIG --cflags "libssl >= 0.9.6" 2>/dev/null`
15492 test "x$?" != "x0" && pkg_failed=yes
15493 else
15494 pkg_failed=yes
15496 else
15497 pkg_failed=untried
15499 if test -n "$OPENSSL_SSL_LIBS"; then
15500 pkg_cv_OPENSSL_SSL_LIBS="$OPENSSL_SSL_LIBS"
15501 elif test -n "$PKG_CONFIG"; then
15502 if test -n "$PKG_CONFIG" && \
15503 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libssl >= 0.9.6\""; } >&5
15504 ($PKG_CONFIG --exists --print-errors "libssl >= 0.9.6") 2>&5
15505 ac_status=$?
15506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15507 test $ac_status = 0; }; then
15508 pkg_cv_OPENSSL_SSL_LIBS=`$PKG_CONFIG --libs "libssl >= 0.9.6" 2>/dev/null`
15509 test "x$?" != "x0" && pkg_failed=yes
15510 else
15511 pkg_failed=yes
15513 else
15514 pkg_failed=untried
15519 if test $pkg_failed = yes; then
15520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15521 $as_echo "no" >&6; }
15523 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15524 _pkg_short_errors_supported=yes
15525 else
15526 _pkg_short_errors_supported=no
15528 if test $_pkg_short_errors_supported = yes; then
15529 OPENSSL_SSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libssl >= 0.9.6" 2>&1`
15530 else
15531 OPENSSL_SSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libssl >= 0.9.6" 2>&1`
15533 # Put the nasty error message in config.log where it belongs
15534 echo "$OPENSSL_SSL_PKG_ERRORS" >&5
15536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_CTX_new in -lssl" >&5
15537 $as_echo_n "checking for SSL_CTX_new in -lssl... " >&6; }
15538 if ${ac_cv_lib_ssl_SSL_CTX_new+:} false; then :
15539 $as_echo_n "(cached) " >&6
15540 else
15541 ac_check_lib_save_LIBS=$LIBS
15542 LIBS="-lssl $LIBS"
15543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15544 /* end confdefs.h. */
15546 /* Override any GCC internal prototype to avoid an error.
15547 Use char because int might match the return type of a GCC
15548 builtin and then its argument prototype would still apply. */
15549 #ifdef __cplusplus
15550 extern "C"
15551 #endif
15552 char SSL_CTX_new ();
15554 main ()
15556 return SSL_CTX_new ();
15558 return 0;
15560 _ACEOF
15561 if ac_fn_c_try_link "$LINENO"; then :
15562 ac_cv_lib_ssl_SSL_CTX_new=yes
15563 else
15564 ac_cv_lib_ssl_SSL_CTX_new=no
15566 rm -f core conftest.err conftest.$ac_objext \
15567 conftest$ac_exeext conftest.$ac_ext
15568 LIBS=$ac_check_lib_save_LIBS
15570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_CTX_new" >&5
15571 $as_echo "$ac_cv_lib_ssl_SSL_CTX_new" >&6; }
15572 if test "x$ac_cv_lib_ssl_SSL_CTX_new" = xyes; then :
15574 have_openssl_ssl="yes"
15575 OPENSSL_SSL_LIBS="-lssl"
15581 elif test $pkg_failed = untried; then
15582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15583 $as_echo "no" >&6; }
15584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_CTX_new in -lssl" >&5
15585 $as_echo_n "checking for SSL_CTX_new in -lssl... " >&6; }
15586 if ${ac_cv_lib_ssl_SSL_CTX_new+:} false; then :
15587 $as_echo_n "(cached) " >&6
15588 else
15589 ac_check_lib_save_LIBS=$LIBS
15590 LIBS="-lssl $LIBS"
15591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15592 /* end confdefs.h. */
15594 /* Override any GCC internal prototype to avoid an error.
15595 Use char because int might match the return type of a GCC
15596 builtin and then its argument prototype would still apply. */
15597 #ifdef __cplusplus
15598 extern "C"
15599 #endif
15600 char SSL_CTX_new ();
15602 main ()
15604 return SSL_CTX_new ();
15606 return 0;
15608 _ACEOF
15609 if ac_fn_c_try_link "$LINENO"; then :
15610 ac_cv_lib_ssl_SSL_CTX_new=yes
15611 else
15612 ac_cv_lib_ssl_SSL_CTX_new=no
15614 rm -f core conftest.err conftest.$ac_objext \
15615 conftest$ac_exeext conftest.$ac_ext
15616 LIBS=$ac_check_lib_save_LIBS
15618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_CTX_new" >&5
15619 $as_echo "$ac_cv_lib_ssl_SSL_CTX_new" >&6; }
15620 if test "x$ac_cv_lib_ssl_SSL_CTX_new" = xyes; then :
15622 have_openssl_ssl="yes"
15623 OPENSSL_SSL_LIBS="-lssl"
15629 else
15630 OPENSSL_SSL_CFLAGS=$pkg_cv_OPENSSL_SSL_CFLAGS
15631 OPENSSL_SSL_LIBS=$pkg_cv_OPENSSL_SSL_LIBS
15632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15633 $as_echo "yes" >&6; }
15634 have_openssl_ssl="yes"
15637 if test "${have_openssl_crypto}" = "yes"; then
15638 saved_CFLAGS="${CFLAGS}"
15639 saved_LIBS="${LIBS}"
15640 CFLAGS="${CFLAGS} ${OPENSSL_CRYPTO_CFLAGS}"
15641 LIBS="${LIBS} ${OPENSSL_CRYPTO_LIBS}"
15642 for ac_func in EVP_CIPHER_CTX_set_key_length
15643 do :
15644 ac_fn_c_check_func "$LINENO" "EVP_CIPHER_CTX_set_key_length" "ac_cv_func_EVP_CIPHER_CTX_set_key_length"
15645 if test "x$ac_cv_func_EVP_CIPHER_CTX_set_key_length" = xyes; then :
15646 cat >>confdefs.h <<_ACEOF
15647 #define HAVE_EVP_CIPHER_CTX_SET_KEY_LENGTH 1
15648 _ACEOF
15651 done
15653 have_openssl_engine="yes"
15654 for ac_func in \
15655 ENGINE_load_builtin_engines \
15656 ENGINE_register_all_complete \
15657 ENGINE_cleanup \
15659 do :
15660 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15661 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15662 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15663 cat >>confdefs.h <<_ACEOF
15664 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15665 _ACEOF
15667 else
15668 have_openssl_engine="no"; break
15671 done
15674 CFLAGS="${saved_CFLAGS}"
15675 LIBS="${saved_LIBS}"
15680 have_polarssl_ssl="yes"
15681 have_polarssl_crypto="yes"
15682 if test -z "${POLARSSL_LIBS}"; then
15683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl_init in -lpolarssl" >&5
15684 $as_echo_n "checking for ssl_init in -lpolarssl... " >&6; }
15685 if ${ac_cv_lib_polarssl_ssl_init+:} false; then :
15686 $as_echo_n "(cached) " >&6
15687 else
15688 ac_check_lib_save_LIBS=$LIBS
15689 LIBS="-lpolarssl ${PKCS11_HELPER_LIBS}
15690 $LIBS"
15691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15692 /* end confdefs.h. */
15694 /* Override any GCC internal prototype to avoid an error.
15695 Use char because int might match the return type of a GCC
15696 builtin and then its argument prototype would still apply. */
15697 #ifdef __cplusplus
15698 extern "C"
15699 #endif
15700 char ssl_init ();
15702 main ()
15704 return ssl_init ();
15706 return 0;
15708 _ACEOF
15709 if ac_fn_c_try_link "$LINENO"; then :
15710 ac_cv_lib_polarssl_ssl_init=yes
15711 else
15712 ac_cv_lib_polarssl_ssl_init=no
15714 rm -f core conftest.err conftest.$ac_objext \
15715 conftest$ac_exeext conftest.$ac_ext
15716 LIBS=$ac_check_lib_save_LIBS
15718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_polarssl_ssl_init" >&5
15719 $as_echo "$ac_cv_lib_polarssl_ssl_init" >&6; }
15720 if test "x$ac_cv_lib_polarssl_ssl_init" = xyes; then :
15721 POLARSSL_LIBS="-lpolarssl"
15722 else
15724 have_polarssl_ssl="no"
15725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aes_crypt_cbc in -lpolarssl" >&5
15726 $as_echo_n "checking for aes_crypt_cbc in -lpolarssl... " >&6; }
15727 if ${ac_cv_lib_polarssl_aes_crypt_cbc+:} false; then :
15728 $as_echo_n "(cached) " >&6
15729 else
15730 ac_check_lib_save_LIBS=$LIBS
15731 LIBS="-lpolarssl ${PKCS11_HELPER_LIBS}
15732 $LIBS"
15733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15734 /* end confdefs.h. */
15736 /* Override any GCC internal prototype to avoid an error.
15737 Use char because int might match the return type of a GCC
15738 builtin and then its argument prototype would still apply. */
15739 #ifdef __cplusplus
15740 extern "C"
15741 #endif
15742 char aes_crypt_cbc ();
15744 main ()
15746 return aes_crypt_cbc ();
15748 return 0;
15750 _ACEOF
15751 if ac_fn_c_try_link "$LINENO"; then :
15752 ac_cv_lib_polarssl_aes_crypt_cbc=yes
15753 else
15754 ac_cv_lib_polarssl_aes_crypt_cbc=no
15756 rm -f core conftest.err conftest.$ac_objext \
15757 conftest$ac_exeext conftest.$ac_ext
15758 LIBS=$ac_check_lib_save_LIBS
15760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_polarssl_aes_crypt_cbc" >&5
15761 $as_echo "$ac_cv_lib_polarssl_aes_crypt_cbc" >&6; }
15762 if test "x$ac_cv_lib_polarssl_aes_crypt_cbc" = xyes; then :
15763 cat >>confdefs.h <<_ACEOF
15764 #define HAVE_LIBPOLARSSL 1
15765 _ACEOF
15767 LIBS="-lpolarssl $LIBS"
15769 else
15770 have_polarssl_crypto="no"
15778 if test "${with_crypto_library}" = "polarssl" ; then
15779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking polarssl version" >&5
15780 $as_echo_n "checking polarssl version... " >&6; }
15781 old_CFLAGS="${CFLAGS}"
15782 CFLAGS="${POLARSSL_CFLAGS} ${CFLAGS}"
15783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15784 /* end confdefs.h. */
15786 #include <polarssl/version.h>
15789 main ()
15792 #if POLARSSL_VERSION_NUMBER < 0x01020500
15793 #error invalid version
15794 #endif
15798 return 0;
15800 _ACEOF
15801 if ac_fn_c_try_compile "$LINENO"; then :
15802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
15803 $as_echo "ok" >&6; }
15804 else
15805 as_fn_error $? "PolarSSL 1.2.5 or newer required" "$LINENO" 5
15808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15810 polarssl_with_pkcs11="no"
15811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15812 /* end confdefs.h. */
15814 #include <polarssl/config.h>
15817 main ()
15820 #ifndef POLARSSL_PKCS11_C
15821 #error pkcs11 wrapper missing
15822 #endif
15826 return 0;
15828 _ACEOF
15829 if ac_fn_c_try_compile "$LINENO"; then :
15830 polarssl_with_pkcs11="yes"
15832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15833 CFLAGS="${old_CFLAGS}"
15835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking polarssl pkcs11 support" >&5
15836 $as_echo_n "checking polarssl pkcs11 support... " >&6; }
15837 if test "${enable_pkcs11}" = "yes"; then
15838 if test "${polarssl_with_pkcs11}" = "yes"; then
15839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
15840 $as_echo "ok" >&6; }
15841 else
15842 as_fn_error $? "polarssl has no pkcs11 wrapper compiled in" "$LINENO" 5
15844 else
15845 if test "${polarssl_with_pkcs11}" != "yes"; then
15846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
15847 $as_echo "ok" >&6; }
15848 else
15849 as_fn_error $? "PolarSSL compiled with PKCS11, while OpenVPN is not" "$LINENO" 5
15857 have_lzo="yes"
15858 if test -z "${LZO_LIBS}"; then
15859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzo1x_1_15_compress in -llzo2" >&5
15860 $as_echo_n "checking for lzo1x_1_15_compress in -llzo2... " >&6; }
15861 if ${ac_cv_lib_lzo2_lzo1x_1_15_compress+:} false; then :
15862 $as_echo_n "(cached) " >&6
15863 else
15864 ac_check_lib_save_LIBS=$LIBS
15865 LIBS="-llzo2 $LIBS"
15866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15867 /* end confdefs.h. */
15869 /* Override any GCC internal prototype to avoid an error.
15870 Use char because int might match the return type of a GCC
15871 builtin and then its argument prototype would still apply. */
15872 #ifdef __cplusplus
15873 extern "C"
15874 #endif
15875 char lzo1x_1_15_compress ();
15877 main ()
15879 return lzo1x_1_15_compress ();
15881 return 0;
15883 _ACEOF
15884 if ac_fn_c_try_link "$LINENO"; then :
15885 ac_cv_lib_lzo2_lzo1x_1_15_compress=yes
15886 else
15887 ac_cv_lib_lzo2_lzo1x_1_15_compress=no
15889 rm -f core conftest.err conftest.$ac_objext \
15890 conftest$ac_exeext conftest.$ac_ext
15891 LIBS=$ac_check_lib_save_LIBS
15893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzo2_lzo1x_1_15_compress" >&5
15894 $as_echo "$ac_cv_lib_lzo2_lzo1x_1_15_compress" >&6; }
15895 if test "x$ac_cv_lib_lzo2_lzo1x_1_15_compress" = xyes; then :
15896 LZO_LIBS="-llzo2"
15897 else
15898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzo1x_1_15_compress in -llzo" >&5
15899 $as_echo_n "checking for lzo1x_1_15_compress in -llzo... " >&6; }
15900 if ${ac_cv_lib_lzo_lzo1x_1_15_compress+:} false; then :
15901 $as_echo_n "(cached) " >&6
15902 else
15903 ac_check_lib_save_LIBS=$LIBS
15904 LIBS="-llzo $LIBS"
15905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15906 /* end confdefs.h. */
15908 /* Override any GCC internal prototype to avoid an error.
15909 Use char because int might match the return type of a GCC
15910 builtin and then its argument prototype would still apply. */
15911 #ifdef __cplusplus
15912 extern "C"
15913 #endif
15914 char lzo1x_1_15_compress ();
15916 main ()
15918 return lzo1x_1_15_compress ();
15920 return 0;
15922 _ACEOF
15923 if ac_fn_c_try_link "$LINENO"; then :
15924 ac_cv_lib_lzo_lzo1x_1_15_compress=yes
15925 else
15926 ac_cv_lib_lzo_lzo1x_1_15_compress=no
15928 rm -f core conftest.err conftest.$ac_objext \
15929 conftest$ac_exeext conftest.$ac_ext
15930 LIBS=$ac_check_lib_save_LIBS
15932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzo_lzo1x_1_15_compress" >&5
15933 $as_echo "$ac_cv_lib_lzo_lzo1x_1_15_compress" >&6; }
15934 if test "x$ac_cv_lib_lzo_lzo1x_1_15_compress" = xyes; then :
15935 LZO_LIBS="-llzo"
15936 else
15937 have_lzo="no"
15945 if test "${have_lzo}" = "yes"; then
15946 saved_CFLAGS="${CFLAGS}"
15947 CFLAGS="${CFLAGS} ${LZO_CFLAGS}"
15948 for ac_header in lzo/lzoutil.h
15949 do :
15950 ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzoutil.h" "ac_cv_header_lzo_lzoutil_h" "$ac_includes_default"
15951 if test "x$ac_cv_header_lzo_lzoutil_h" = xyes; then :
15952 cat >>confdefs.h <<_ACEOF
15953 #define HAVE_LZO_LZOUTIL_H 1
15954 _ACEOF
15956 else
15957 for ac_header in lzoutil.h
15958 do :
15959 ac_fn_c_check_header_mongrel "$LINENO" "lzoutil.h" "ac_cv_header_lzoutil_h" "$ac_includes_default"
15960 if test "x$ac_cv_header_lzoutil_h" = xyes; then :
15961 cat >>confdefs.h <<_ACEOF
15962 #define HAVE_LZOUTIL_H 1
15963 _ACEOF
15965 else
15966 as_fn_error $? "lzoutil.h is missing" "$LINENO" 5
15970 done
15975 done
15977 for ac_header in lzo/lzo1x.h
15978 do :
15979 ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzo1x.h" "ac_cv_header_lzo_lzo1x_h" "$ac_includes_default"
15980 if test "x$ac_cv_header_lzo_lzo1x_h" = xyes; then :
15981 cat >>confdefs.h <<_ACEOF
15982 #define HAVE_LZO_LZO1X_H 1
15983 _ACEOF
15985 else
15986 for ac_header in lzo1x.h
15987 do :
15988 ac_fn_c_check_header_mongrel "$LINENO" "lzo1x.h" "ac_cv_header_lzo1x_h" "$ac_includes_default"
15989 if test "x$ac_cv_header_lzo1x_h" = xyes; then :
15990 cat >>confdefs.h <<_ACEOF
15991 #define HAVE_LZO1X_H 1
15992 _ACEOF
15994 else
15995 as_fn_error $? "lzo1x.h is missing" "$LINENO" 5
15999 done
16004 done
16006 CFLAGS="${saved_CFLAGS}"
16009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking git checkout" >&5
16010 $as_echo_n "checking git checkout... " >&6; }
16011 GIT_CHECKOUT="no"
16012 if test -n "${GIT}" -a -d "${srcdir}/.git"; then
16014 $as_echo "#define HAVE_CONFIG_VERSION_H 1" >>confdefs.h
16016 GIT_CHECKOUT="yes"
16018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${GIT_CHECKOUT}" >&5
16019 $as_echo "${GIT_CHECKOUT}" >&6; }
16021 if test -n "${SP_PLATFORM_WINDOWS}"; then
16023 cat >>confdefs.h <<_ACEOF
16024 #define PATH_SEPARATOR '\\\\'
16025 _ACEOF
16028 cat >>confdefs.h <<_ACEOF
16029 #define PATH_SEPARATOR_STR "\\\\"
16030 _ACEOF
16032 else
16034 cat >>confdefs.h <<_ACEOF
16035 #define PATH_SEPARATOR '/'
16036 _ACEOF
16039 cat >>confdefs.h <<_ACEOF
16040 #define PATH_SEPARATOR_STR "/"
16041 _ACEOF
16045 if test "${enable_x509_alt_username}" = "yes"; then
16046 if test "${with_crypto_library}" = "polarssl" ; then
16047 as_fn_error $? "PolarSSL does not support the --x509-username-field feature" "$LINENO" 5
16051 $as_echo "#define ENABLE_X509ALTUSERNAME 1" >>confdefs.h
16055 test "${ac_cv_header_sys_uio_h}" = "yes" &&
16056 $as_echo "#define HAVE_IOVEC 1" >>confdefs.h
16058 test "${enable_multi}" = "yes" &&
16059 $as_echo "#define ENABLE_CLIENT_SERVER 1" >>confdefs.h
16061 test "${enable_server}" = "no" &&
16062 $as_echo "#define ENABLE_CLIENT_ONLY 1" >>confdefs.h
16064 test "${enable_management}" = "yes" &&
16065 $as_echo "#define ENABLE_MANAGEMENT 1" >>confdefs.h
16067 test "${enable_socks}" = "yes" &&
16068 $as_echo "#define ENABLE_SOCKS 1" >>confdefs.h
16070 test "${enable_http_proxy}" = "yes" &&
16071 $as_echo "#define ENABLE_HTTP_PROXY 1" >>confdefs.h
16073 test "${enable_multihome}" = "yes" &&
16074 $as_echo "#define ENABLE_MULTIHOME 1" >>confdefs.h
16076 test "${enable_debug}" = "yes" &&
16077 $as_echo "#define ENABLE_DEBUG 1" >>confdefs.h
16079 test "${enable_small}" = "yes" &&
16080 $as_echo "#define ENABLE_SMALL 1" >>confdefs.h
16082 test "${enable_fragment}" = "yes" &&
16083 $as_echo "#define ENABLE_FRAGMENT 1" >>confdefs.h
16085 test "${enable_port_share}" = "yes" &&
16086 $as_echo "#define ENABLE_PORT_SHARE 1" >>confdefs.h
16088 test "${enable_def_auth}" = "yes" &&
16089 $as_echo "#define ENABLE_DEF_AUTH 1" >>confdefs.h
16091 test "${enable_pf}" = "yes" &&
16092 $as_echo "#define ENABLE_PF 1" >>confdefs.h
16094 test "${enable_strict_options}" = "yes" &&
16095 $as_echo "#define ENABLE_STRICT_OPTIONS_CHECK 1" >>confdefs.h
16097 test "${enable_password_save}" = "yes" &&
16098 $as_echo "#define ENABLE_PASSWORD_SAVE 1" >>confdefs.h
16100 test "${enable_systemd}" = "yes" &&
16101 $as_echo "#define ENABLE_SYSTEMD 1" >>confdefs.h
16104 case "${with_crypto_library}" in
16105 openssl)
16106 have_crypto_crypto="${have_openssl_crypto}"
16107 have_crypto_ssl="${have_openssl_ssl}"
16108 CRYPTO_CRYPTO_CFLAGS="${OPENSSL_CRYPTO_CFLAGS}"
16109 CRYPTO_CRYPTO_LIBS="${OPENSSL_CRYPTO_LIBS}"
16110 CRYPTO_SSL_CFLAGS="${OPENSSL_SSL_CFLAGS}"
16111 CRYPTO_SSL_LIBS="${OPENSSL_SSL_LIBS}"
16113 $as_echo "#define ENABLE_CRYPTO_OPENSSL 1" >>confdefs.h
16115 test "${have_openssl_engine}" = "yes" &&
16116 $as_echo "#define HAVE_OPENSSL_ENGINE 1" >>confdefs.h
16119 polarssl)
16120 have_crypto_crypto="${have_polarssl_crypto}"
16121 have_crypto_ssl="${have_polarssl_ssl}"
16122 CRYPTO_CRYPTO_CFLAGS="${POLARSSL_CFLAGS}"
16123 CRYPTO_CRYPTO_LIBS="${POLARSSL_LIBS}"
16125 $as_echo "#define ENABLE_CRYPTO_POLARSSL 1" >>confdefs.h
16128 esac
16130 if test "${enable_ssl}" = "yes"; then
16131 test "${enable_crypto}" != "yes" && as_fn_error $? "crypto must be enabled for ssl" "$LINENO" 5
16132 test "${have_crypto_ssl}" != "yes" && as_fn_error $? "${with_ssl_library} ssl is required but missing" "$LINENO" 5
16133 OPTIONAL_CRYPTO_CFLAGS="${OPTIONAL_CRYPTO_CFLAGS} ${CRYPTO_SSL_CFLAGS}"
16134 OPTIONAL_CRYPTO_LIBS="${OPTIONAL_CRYPTO_LIBS} ${CRYPTO_SSL_LIBS}"
16136 $as_echo "#define ENABLE_SSL 1" >>confdefs.h
16140 if test "${enable_crypto}" = "yes"; then
16141 test "${have_crypto_crypto}" != "yes" && as_fn_error $? "${with_crypto_library} crypto is required but missing" "$LINENO" 5
16142 OPTIONAL_CRYPTO_CFLAGS="${OPTIONAL_CRYPTO_CFLAGS} ${CRYPTO_CRYPTO_CFLAGS}"
16143 OPTIONAL_CRYPTO_LIBS="${OPTIONAL_CRYPTO_LIBS} ${CRYPTO_CRYPTO_LIBS}"
16145 $as_echo "#define ENABLE_CRYPTO 1" >>confdefs.h
16149 if test "${enable_plugins}" = "yes"; then
16150 OPTIONAL_DL_LIBS="${DL_LIBS}"
16152 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
16154 test "${enable_eurephia}" = "yes" &&
16155 $as_echo "#define ENABLE_EUREPHIA 1" >>confdefs.h
16157 else
16158 enable_plugin_auth_pam="no"
16159 enable_plugin_down_root="no"
16162 if test "${enable_iproute2}" = "yes"; then
16163 test -z "${IPROUTE}" && as_fn_error $? "ip utility is required but missing" "$LINENO" 5
16165 $as_echo "#define ENABLE_IPROUTE 1" >>confdefs.h
16167 else
16168 if test "${WIN32}" != "yes"; then
16169 test -z "${ROUTE}" && as_fn_error $? "route utility is required but missing" "$LINENO" 5
16170 test -z "${IFCONFIG}" && as_fn_error $? "ifconfig utility is required but missing" "$LINENO" 5
16174 if test "${enable_selinux}" = "yes"; then
16175 test -z "${SELINUX_LIBS}" && as_fn_error $? "libselinux required but missing" "$LINENO" 5
16176 OPTIONAL_SELINUX_LIBS="${SELINUX_LIBS}"
16178 $as_echo "#define ENABLE_SELINUX 1" >>confdefs.h
16182 if test "${enable_lzo}" = "yes"; then
16183 test "${have_lzo}" != "yes" && as_fn_error $? "lzo enabled but missing" "$LINENO" 5
16184 OPTIONAL_LZO_CFLAGS="${LZO_CFLAGS}"
16185 OPTIONAL_LZO_LIBS="${LZO_LIBS}"
16187 $as_echo "#define ENABLE_LZO 1" >>confdefs.h
16190 if test "${enable_lzo_stub}" = "yes"; then
16191 test "${enable_lzo}" = "yes" && as_fn_error $? "Cannot have both lzo stub and lzo enabled" "$LINENO" 5
16193 $as_echo "#define ENABLE_LZO_STUB 1" >>confdefs.h
16196 $as_echo "#define ENABLE_LZO 1" >>confdefs.h
16200 if test "${enable_pkcs11}" = "yes"; then
16201 test "${have_pkcs11_helper}" != "yes" && as_fn_error $? "PKCS11 enabled but libpkcs11-helper is missing" "$LINENO" 5
16202 test "${enable_ssl}" != "yes" && as_fn_error $? "PKCS11 can be enabled only if SSL is enabled" "$LINENO" 5
16203 OPTIONAL_PKCS11_HELPER_CFLAGS="${PKCS11_HELPER_CFLAGS}"
16204 OPTIONAL_PKCS11_HELPER_LIBS="${PKCS11_HELPER_LIBS}"
16206 $as_echo "#define ENABLE_PKCS11 1" >>confdefs.h
16210 if test "${enable_pedantic}" = "yes"; then
16211 enable_strict="yes"
16212 CFLAGS="${CFLAGS} -pedantic"
16213 test "${WIN32}" != "yes" && CFLAGS="${CFLAGS} -ansi"
16215 if test "${enable_strict}" = "yes"; then
16216 CFLAGS="${CFLAGS} -Wall -Wno-unused-parameter -Wno-unused-function"
16219 if test "${WIN32}" = "yes"; then
16220 test -z "${MAN2HTML}" && as_fn_error $? "man2html is required for win32" "$LINENO" 5
16223 if test "${enable_plugin_auth_pam}" = "yes"; then
16224 PLUGIN_AUTH_PAM_CFLAGS="${LIBPAM_CFLAGS}"
16225 if test "${enable_pam_dlopen}" = "yes"; then
16227 $as_echo "#define USE_PAM_DLOPEN 1" >>confdefs.h
16229 PLUGIN_AUTH_PAM_LIBS="${DL_LIBS}"
16230 else
16231 test -z "${LIBPAM_LIBS}" && as_fn_error $? "libpam required but missing" "$LINENO" 5
16232 PLUGIN_AUTH_PAM_LIBS="${LIBPAM_LIBS}"
16236 CONFIGURE_DEFINES="`set | grep '^enable_.*=' ; set | grep '^with_.*='`"
16238 cat >>confdefs.h <<_ACEOF
16239 #define CONFIGURE_DEFINES "`echo ${CONFIGURE_DEFINES}`"
16240 _ACEOF
16243 TAP_WIN_COMPONENT_ID="tap0901"
16244 TAP_WIN_MIN_MAJOR="9"
16245 TAP_WIN_MIN_MINOR="9"
16247 cat >>confdefs.h <<_ACEOF
16248 #define TAP_WIN_COMPONENT_ID "${TAP_WIN_COMPONENT_ID}"
16249 _ACEOF
16252 cat >>confdefs.h <<_ACEOF
16253 #define TAP_WIN_MIN_MAJOR ${TAP_WIN_MIN_MAJOR}
16254 _ACEOF
16257 cat >>confdefs.h <<_ACEOF
16258 #define TAP_WIN_MIN_MINOR ${TAP_WIN_MIN_MINOR}
16259 _ACEOF
16277 if test "${WIN32}" = "yes"; then
16278 WIN32_TRUE=
16279 WIN32_FALSE='#'
16280 else
16281 WIN32_TRUE='#'
16282 WIN32_FALSE=
16285 if test "${GIT_CHECKOUT}" = "yes"; then
16286 GIT_CHECKOUT_TRUE=
16287 GIT_CHECKOUT_FALSE='#'
16288 else
16289 GIT_CHECKOUT_TRUE='#'
16290 GIT_CHECKOUT_FALSE=
16293 if test "${enable_plugin_auth_pam}" = "yes"; then
16294 ENABLE_PLUGIN_AUTH_PAM_TRUE=
16295 ENABLE_PLUGIN_AUTH_PAM_FALSE='#'
16296 else
16297 ENABLE_PLUGIN_AUTH_PAM_TRUE='#'
16298 ENABLE_PLUGIN_AUTH_PAM_FALSE=
16301 if test "${enable_plugin_down_root}" = "yes"; then
16302 ENABLE_PLUGIN_DOWN_ROOT_TRUE=
16303 ENABLE_PLUGIN_DOWN_ROOT_FALSE='#'
16304 else
16305 ENABLE_PLUGIN_DOWN_ROOT_TRUE='#'
16306 ENABLE_PLUGIN_DOWN_ROOT_FALSE=
16310 plugindir="${with_plugindir}"
16311 sampledir="\$(docdir)/sample"
16315 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"
16317 ac_config_files="$ac_config_files tests/t_client.sh"
16319 cat >confcache <<\_ACEOF
16320 # This file is a shell script that caches the results of configure
16321 # tests run on this system so they can be shared between configure
16322 # scripts and configure runs, see configure's option --config-cache.
16323 # It is not useful on other systems. If it contains results you don't
16324 # want to keep, you may remove or edit it.
16326 # config.status only pays attention to the cache file if you give it
16327 # the --recheck option to rerun configure.
16329 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16330 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16331 # following values.
16333 _ACEOF
16335 # The following way of writing the cache mishandles newlines in values,
16336 # but we know of no workaround that is simple, portable, and efficient.
16337 # So, we kill variables containing newlines.
16338 # Ultrix sh set writes to stderr and can't be redirected directly,
16339 # and sets the high bit in the cache file unless we assign to the vars.
16341 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16342 eval ac_val=\$$ac_var
16343 case $ac_val in #(
16344 *${as_nl}*)
16345 case $ac_var in #(
16346 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16347 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16348 esac
16349 case $ac_var in #(
16350 _ | IFS | as_nl) ;; #(
16351 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16352 *) { eval $ac_var=; unset $ac_var;} ;;
16353 esac ;;
16354 esac
16355 done
16357 (set) 2>&1 |
16358 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16359 *${as_nl}ac_space=\ *)
16360 # `set' does not quote correctly, so add quotes: double-quote
16361 # substitution turns \\\\ into \\, and sed turns \\ into \.
16362 sed -n \
16363 "s/'/'\\\\''/g;
16364 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16365 ;; #(
16367 # `set' quotes correctly as required by POSIX, so do not add quotes.
16368 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16370 esac |
16371 sort
16373 sed '
16374 /^ac_cv_env_/b end
16375 t clear
16376 :clear
16377 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16378 t end
16379 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16380 :end' >>confcache
16381 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16382 if test -w "$cache_file"; then
16383 if test "x$cache_file" != "x/dev/null"; then
16384 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16385 $as_echo "$as_me: updating cache $cache_file" >&6;}
16386 if test ! -f "$cache_file" || test -h "$cache_file"; then
16387 cat confcache >"$cache_file"
16388 else
16389 case $cache_file in #(
16390 */* | ?:*)
16391 mv -f confcache "$cache_file"$$ &&
16392 mv -f "$cache_file"$$ "$cache_file" ;; #(
16394 mv -f confcache "$cache_file" ;;
16395 esac
16398 else
16399 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16400 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16403 rm -f confcache
16405 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16406 # Let make expand exec_prefix.
16407 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16409 DEFS=-DHAVE_CONFIG_H
16411 ac_libobjs=
16412 ac_ltlibobjs=
16414 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16415 # 1. Remove the extension, and $U if already installed.
16416 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16417 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16418 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16419 # will be set to the directory where LIBOBJS objects are built.
16420 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16421 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16422 done
16423 LIBOBJS=$ac_libobjs
16425 LTLIBOBJS=$ac_ltlibobjs
16428 if test -n "$EXEEXT"; then
16429 am__EXEEXT_TRUE=
16430 am__EXEEXT_FALSE='#'
16431 else
16432 am__EXEEXT_TRUE='#'
16433 am__EXEEXT_FALSE=
16436 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16437 as_fn_error $? "conditional \"AMDEP\" was never defined.
16438 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16440 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16441 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16442 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16444 if test -z "${WIN32_TRUE}" && test -z "${WIN32_FALSE}"; then
16445 as_fn_error $? "conditional \"WIN32\" was never defined.
16446 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16448 if test -z "${GIT_CHECKOUT_TRUE}" && test -z "${GIT_CHECKOUT_FALSE}"; then
16449 as_fn_error $? "conditional \"GIT_CHECKOUT\" was never defined.
16450 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16452 if test -z "${ENABLE_PLUGIN_AUTH_PAM_TRUE}" && test -z "${ENABLE_PLUGIN_AUTH_PAM_FALSE}"; then
16453 as_fn_error $? "conditional \"ENABLE_PLUGIN_AUTH_PAM\" was never defined.
16454 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16456 if test -z "${ENABLE_PLUGIN_DOWN_ROOT_TRUE}" && test -z "${ENABLE_PLUGIN_DOWN_ROOT_FALSE}"; then
16457 as_fn_error $? "conditional \"ENABLE_PLUGIN_DOWN_ROOT\" was never defined.
16458 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16461 : "${CONFIG_STATUS=./config.status}"
16462 ac_write_fail=0
16463 ac_clean_files_save=$ac_clean_files
16464 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16465 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16466 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16467 as_write_fail=0
16468 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16469 #! $SHELL
16470 # Generated by $as_me.
16471 # Run this file to recreate the current configuration.
16472 # Compiler output produced by configure, useful for debugging
16473 # configure, is in config.log if it exists.
16475 debug=false
16476 ac_cs_recheck=false
16477 ac_cs_silent=false
16479 SHELL=\${CONFIG_SHELL-$SHELL}
16480 export SHELL
16481 _ASEOF
16482 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16483 ## -------------------- ##
16484 ## M4sh Initialization. ##
16485 ## -------------------- ##
16487 # Be more Bourne compatible
16488 DUALCASE=1; export DUALCASE # for MKS sh
16489 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16490 emulate sh
16491 NULLCMD=:
16492 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16493 # is contrary to our usage. Disable this feature.
16494 alias -g '${1+"$@"}'='"$@"'
16495 setopt NO_GLOB_SUBST
16496 else
16497 case `(set -o) 2>/dev/null` in #(
16498 *posix*) :
16499 set -o posix ;; #(
16500 *) :
16502 esac
16506 as_nl='
16508 export as_nl
16509 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16510 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16511 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16512 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16513 # Prefer a ksh shell builtin over an external printf program on Solaris,
16514 # but without wasting forks for bash or zsh.
16515 if test -z "$BASH_VERSION$ZSH_VERSION" \
16516 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16517 as_echo='print -r --'
16518 as_echo_n='print -rn --'
16519 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16520 as_echo='printf %s\n'
16521 as_echo_n='printf %s'
16522 else
16523 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16524 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16525 as_echo_n='/usr/ucb/echo -n'
16526 else
16527 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16528 as_echo_n_body='eval
16529 arg=$1;
16530 case $arg in #(
16531 *"$as_nl"*)
16532 expr "X$arg" : "X\\(.*\\)$as_nl";
16533 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16534 esac;
16535 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16537 export as_echo_n_body
16538 as_echo_n='sh -c $as_echo_n_body as_echo'
16540 export as_echo_body
16541 as_echo='sh -c $as_echo_body as_echo'
16544 # The user is always right.
16545 if test "${PATH_SEPARATOR+set}" != set; then
16546 PATH_SEPARATOR=:
16547 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16548 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16549 PATH_SEPARATOR=';'
16554 # IFS
16555 # We need space, tab and new line, in precisely that order. Quoting is
16556 # there to prevent editors from complaining about space-tab.
16557 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16558 # splitting by setting IFS to empty value.)
16559 IFS=" "" $as_nl"
16561 # Find who we are. Look in the path if we contain no directory separator.
16562 as_myself=
16563 case $0 in #((
16564 *[\\/]* ) as_myself=$0 ;;
16565 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16566 for as_dir in $PATH
16568 IFS=$as_save_IFS
16569 test -z "$as_dir" && as_dir=.
16570 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16571 done
16572 IFS=$as_save_IFS
16575 esac
16576 # We did not find ourselves, most probably we were run as `sh COMMAND'
16577 # in which case we are not to be found in the path.
16578 if test "x$as_myself" = x; then
16579 as_myself=$0
16581 if test ! -f "$as_myself"; then
16582 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16583 exit 1
16586 # Unset variables that we do not need and which cause bugs (e.g. in
16587 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16588 # suppresses any "Segmentation fault" message there. '((' could
16589 # trigger a bug in pdksh 5.2.14.
16590 for as_var in BASH_ENV ENV MAIL MAILPATH
16591 do eval test x\${$as_var+set} = xset \
16592 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16593 done
16594 PS1='$ '
16595 PS2='> '
16596 PS4='+ '
16598 # NLS nuisances.
16599 LC_ALL=C
16600 export LC_ALL
16601 LANGUAGE=C
16602 export LANGUAGE
16604 # CDPATH.
16605 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16608 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16609 # ----------------------------------------
16610 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16611 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16612 # script with STATUS, using 1 if that was 0.
16613 as_fn_error ()
16615 as_status=$1; test $as_status -eq 0 && as_status=1
16616 if test "$4"; then
16617 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16618 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16620 $as_echo "$as_me: error: $2" >&2
16621 as_fn_exit $as_status
16622 } # as_fn_error
16625 # as_fn_set_status STATUS
16626 # -----------------------
16627 # Set $? to STATUS, without forking.
16628 as_fn_set_status ()
16630 return $1
16631 } # as_fn_set_status
16633 # as_fn_exit STATUS
16634 # -----------------
16635 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16636 as_fn_exit ()
16638 set +e
16639 as_fn_set_status $1
16640 exit $1
16641 } # as_fn_exit
16643 # as_fn_unset ax_cv_socklen_t_equiv
16644 # ---------------------------------
16645 # Portably unset VAR.
16646 as_fn_unset ()
16648 { eval $1=; unset $1;}
16650 as_unset=as_fn_unset
16651 # as_fn_append ax_cv_socklen_t_equiv VALUE
16652 # ----------------------------------------
16653 # Append the text in VALUE to the end of the definition contained in VAR. Take
16654 # advantage of any shell optimizations that allow amortized linear growth over
16655 # repeated appends, instead of the typical quadratic growth present in naive
16656 # implementations.
16657 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16658 eval 'as_fn_append ()
16660 eval $1+=\$2
16662 else
16663 as_fn_append ()
16665 eval $1=\$$1\$2
16667 fi # as_fn_append
16669 # as_fn_arith ARG...
16670 # ------------------
16671 # Perform arithmetic evaluation on the ARGs, and store the result in the
16672 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16673 # must be portable across $(()) and expr.
16674 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16675 eval 'as_fn_arith ()
16677 as_val=$(( $* ))
16679 else
16680 as_fn_arith ()
16682 as_val=`expr "$@" || test $? -eq 1`
16684 fi # as_fn_arith
16687 if expr a : '\(a\)' >/dev/null 2>&1 &&
16688 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16689 as_expr=expr
16690 else
16691 as_expr=false
16694 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16695 as_basename=basename
16696 else
16697 as_basename=false
16700 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16701 as_dirname=dirname
16702 else
16703 as_dirname=false
16706 as_me=`$as_basename -- "$0" ||
16707 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16708 X"$0" : 'X\(//\)$' \| \
16709 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16710 $as_echo X/"$0" |
16711 sed '/^.*\/\([^/][^/]*\)\/*$/{
16712 s//\1/
16715 /^X\/\(\/\/\)$/{
16716 s//\1/
16719 /^X\/\(\/\).*/{
16720 s//\1/
16723 s/.*/./; q'`
16725 # Avoid depending upon Character Ranges.
16726 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16727 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16728 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16729 as_cr_digits='0123456789'
16730 as_cr_alnum=$as_cr_Letters$as_cr_digits
16732 ECHO_C= ECHO_N= ECHO_T=
16733 case `echo -n x` in #(((((
16734 -n*)
16735 case `echo 'xy\c'` in
16736 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16737 xy) ECHO_C='\c';;
16738 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16739 ECHO_T=' ';;
16740 esac;;
16742 ECHO_N='-n';;
16743 esac
16745 rm -f conf$$ conf$$.exe conf$$.file
16746 if test -d conf$$.dir; then
16747 rm -f conf$$.dir/conf$$.file
16748 else
16749 rm -f conf$$.dir
16750 mkdir conf$$.dir 2>/dev/null
16752 if (echo >conf$$.file) 2>/dev/null; then
16753 if ln -s conf$$.file conf$$ 2>/dev/null; then
16754 as_ln_s='ln -s'
16755 # ... but there are two gotchas:
16756 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16757 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16758 # In both cases, we have to default to `cp -pR'.
16759 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16760 as_ln_s='cp -pR'
16761 elif ln conf$$.file conf$$ 2>/dev/null; then
16762 as_ln_s=ln
16763 else
16764 as_ln_s='cp -pR'
16766 else
16767 as_ln_s='cp -pR'
16769 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16770 rmdir conf$$.dir 2>/dev/null
16773 # as_fn_mkdir_p
16774 # -------------
16775 # Create "$as_dir" as a directory, including parents if necessary.
16776 as_fn_mkdir_p ()
16779 case $as_dir in #(
16780 -*) as_dir=./$as_dir;;
16781 esac
16782 test -d "$as_dir" || eval $as_mkdir_p || {
16783 as_dirs=
16784 while :; do
16785 case $as_dir in #(
16786 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16787 *) as_qdir=$as_dir;;
16788 esac
16789 as_dirs="'$as_qdir' $as_dirs"
16790 as_dir=`$as_dirname -- "$as_dir" ||
16791 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16792 X"$as_dir" : 'X\(//\)[^/]' \| \
16793 X"$as_dir" : 'X\(//\)$' \| \
16794 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16795 $as_echo X"$as_dir" |
16796 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16797 s//\1/
16800 /^X\(\/\/\)[^/].*/{
16801 s//\1/
16804 /^X\(\/\/\)$/{
16805 s//\1/
16808 /^X\(\/\).*/{
16809 s//\1/
16812 s/.*/./; q'`
16813 test -d "$as_dir" && break
16814 done
16815 test -z "$as_dirs" || eval "mkdir $as_dirs"
16816 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16819 } # as_fn_mkdir_p
16820 if mkdir -p . 2>/dev/null; then
16821 as_mkdir_p='mkdir -p "$as_dir"'
16822 else
16823 test -d ./-p && rmdir ./-p
16824 as_mkdir_p=false
16828 # as_fn_executable_p FILE
16829 # -----------------------
16830 # Test if FILE is an executable regular file.
16831 as_fn_executable_p ()
16833 test -f "$1" && test -x "$1"
16834 } # as_fn_executable_p
16835 as_test_x='test -x'
16836 as_executable_p=as_fn_executable_p
16838 # Sed expression to map a string onto a valid CPP name.
16839 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16841 # Sed expression to map a string onto a valid variable name.
16842 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16845 exec 6>&1
16846 ## ----------------------------------- ##
16847 ## Main body of $CONFIG_STATUS script. ##
16848 ## ----------------------------------- ##
16849 _ASEOF
16850 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16852 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16853 # Save the log message, to keep $0 and so on meaningful, and to
16854 # report actual input values of CONFIG_FILES etc. instead of their
16855 # values after options handling.
16856 ac_log="
16857 This file was extended by OpenVPN $as_me 2.3.2, which was
16858 generated by GNU Autoconf 2.69. Invocation command line was
16860 CONFIG_FILES = $CONFIG_FILES
16861 CONFIG_HEADERS = $CONFIG_HEADERS
16862 CONFIG_LINKS = $CONFIG_LINKS
16863 CONFIG_COMMANDS = $CONFIG_COMMANDS
16864 $ $0 $@
16866 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16869 _ACEOF
16871 case $ac_config_files in *"
16872 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16873 esac
16875 case $ac_config_headers in *"
16876 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16877 esac
16880 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16881 # Files that config.status was made for.
16882 config_files="$ac_config_files"
16883 config_headers="$ac_config_headers"
16884 config_commands="$ac_config_commands"
16886 _ACEOF
16888 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16889 ac_cs_usage="\
16890 \`$as_me' instantiates files and other configuration actions
16891 from templates according to the current configuration. Unless the files
16892 and actions are specified as TAGs, all are instantiated by default.
16894 Usage: $0 [OPTION]... [TAG]...
16896 -h, --help print this help, then exit
16897 -V, --version print version number and configuration settings, then exit
16898 --config print configuration, then exit
16899 -q, --quiet, --silent
16900 do not print progress messages
16901 -d, --debug don't remove temporary files
16902 --recheck update $as_me by reconfiguring in the same conditions
16903 --file=FILE[:TEMPLATE]
16904 instantiate the configuration file FILE
16905 --header=FILE[:TEMPLATE]
16906 instantiate the configuration header FILE
16908 Configuration files:
16909 $config_files
16911 Configuration headers:
16912 $config_headers
16914 Configuration commands:
16915 $config_commands
16917 Report bugs to <openvpn-users@lists.sourceforge.net>."
16919 _ACEOF
16920 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16921 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16922 ac_cs_version="\\
16923 OpenVPN config.status 2.3.2
16924 configured by $0, generated by GNU Autoconf 2.69,
16925 with options \\"\$ac_cs_config\\"
16927 Copyright (C) 2012 Free Software Foundation, Inc.
16928 This config.status script is free software; the Free Software Foundation
16929 gives unlimited permission to copy, distribute and modify it."
16931 ac_pwd='$ac_pwd'
16932 srcdir='$srcdir'
16933 INSTALL='$INSTALL'
16934 MKDIR_P='$MKDIR_P'
16935 AWK='$AWK'
16936 test -n "\$AWK" || AWK=awk
16937 _ACEOF
16939 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16940 # The default lists apply if the user does not specify any file.
16941 ac_need_defaults=:
16942 while test $# != 0
16944 case $1 in
16945 --*=?*)
16946 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16947 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16948 ac_shift=:
16950 --*=)
16951 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16952 ac_optarg=
16953 ac_shift=:
16956 ac_option=$1
16957 ac_optarg=$2
16958 ac_shift=shift
16960 esac
16962 case $ac_option in
16963 # Handling of the options.
16964 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16965 ac_cs_recheck=: ;;
16966 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16967 $as_echo "$ac_cs_version"; exit ;;
16968 --config | --confi | --conf | --con | --co | --c )
16969 $as_echo "$ac_cs_config"; exit ;;
16970 --debug | --debu | --deb | --de | --d | -d )
16971 debug=: ;;
16972 --file | --fil | --fi | --f )
16973 $ac_shift
16974 case $ac_optarg in
16975 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16976 '') as_fn_error $? "missing file argument" ;;
16977 esac
16978 as_fn_append CONFIG_FILES " '$ac_optarg'"
16979 ac_need_defaults=false;;
16980 --header | --heade | --head | --hea )
16981 $ac_shift
16982 case $ac_optarg in
16983 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16984 esac
16985 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16986 ac_need_defaults=false;;
16987 --he | --h)
16988 # Conflict between --help and --header
16989 as_fn_error $? "ambiguous option: \`$1'
16990 Try \`$0 --help' for more information.";;
16991 --help | --hel | -h )
16992 $as_echo "$ac_cs_usage"; exit ;;
16993 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16994 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16995 ac_cs_silent=: ;;
16997 # This is an error.
16998 -*) as_fn_error $? "unrecognized option: \`$1'
16999 Try \`$0 --help' for more information." ;;
17001 *) as_fn_append ac_config_targets " $1"
17002 ac_need_defaults=false ;;
17004 esac
17005 shift
17006 done
17008 ac_configure_extra_args=
17010 if $ac_cs_silent; then
17011 exec 6>/dev/null
17012 ac_configure_extra_args="$ac_configure_extra_args --silent"
17015 _ACEOF
17016 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17017 if \$ac_cs_recheck; then
17018 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17019 shift
17020 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17021 CONFIG_SHELL='$SHELL'
17022 export CONFIG_SHELL
17023 exec "\$@"
17026 _ACEOF
17027 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17028 exec 5>>config.log
17030 echo
17031 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17032 ## Running $as_me. ##
17033 _ASBOX
17034 $as_echo "$ac_log"
17035 } >&5
17037 _ACEOF
17038 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17040 # INIT-COMMANDS
17042 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17045 # The HP-UX ksh and POSIX shell print the target directory to stdout
17046 # if CDPATH is set.
17047 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17049 sed_quote_subst='$sed_quote_subst'
17050 double_quote_subst='$double_quote_subst'
17051 delay_variable_subst='$delay_variable_subst'
17052 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17053 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17054 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
17055 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17056 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17057 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17058 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17059 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17060 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17061 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17062 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17063 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17064 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17065 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17066 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17067 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17068 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17069 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17070 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17071 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17072 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17073 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17074 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17075 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17076 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17077 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17078 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17079 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17080 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17081 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17082 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17083 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17084 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17085 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17086 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17087 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17088 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17089 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17090 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17091 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17092 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17093 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17094 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17095 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17096 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17097 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17098 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17099 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17100 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17101 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17102 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17103 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17104 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17105 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17106 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17107 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17108 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17109 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"`'
17110 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17111 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17112 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17113 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17114 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17115 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17116 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17117 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17118 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17119 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17120 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17121 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17122 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17123 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17124 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17125 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17126 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17127 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17128 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17129 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17130 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17131 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17132 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17133 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17134 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17135 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17136 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17137 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17138 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17139 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17140 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17141 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17142 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17143 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17144 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17145 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17146 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17147 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17148 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17149 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17150 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17151 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17152 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17153 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17154 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17155 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17156 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17157 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17158 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17159 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17160 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17161 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17162 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17163 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17164 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17165 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17166 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17167 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17168 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17169 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17170 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17171 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17172 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17173 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17174 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17175 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17176 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17177 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17178 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17179 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17180 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17181 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17182 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17183 LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
17184 reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
17185 reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
17186 old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
17187 compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
17188 GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
17189 lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
17190 lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
17191 lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
17192 lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
17193 lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
17194 archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
17195 enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
17196 export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
17197 whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
17198 compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
17199 old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
17200 old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
17201 archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
17202 archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
17203 module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
17204 module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
17205 with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
17206 allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
17207 no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
17208 hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
17209 hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
17210 hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
17211 hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
17212 hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
17213 hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
17214 hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
17215 inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
17216 link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
17217 always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
17218 export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
17219 exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
17220 include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
17221 prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
17222 postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
17223 file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
17224 hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
17226 LTCC='$LTCC'
17227 LTCFLAGS='$LTCFLAGS'
17228 compiler='$compiler_DEFAULT'
17230 # A function that is used when there is no print builtin or printf.
17231 func_fallback_echo ()
17233 eval 'cat <<_LTECHO_EOF
17235 _LTECHO_EOF'
17238 # Quote evaled strings.
17239 for var in AS \
17240 DLLTOOL \
17241 OBJDUMP \
17242 SHELL \
17243 ECHO \
17244 PATH_SEPARATOR \
17245 SED \
17246 GREP \
17247 EGREP \
17248 FGREP \
17249 LD \
17250 NM \
17251 LN_S \
17252 lt_SP2NL \
17253 lt_NL2SP \
17254 reload_flag \
17255 deplibs_check_method \
17256 file_magic_cmd \
17257 file_magic_glob \
17258 want_nocaseglob \
17259 sharedlib_from_linklib_cmd \
17260 AR \
17261 AR_FLAGS \
17262 archiver_list_spec \
17263 STRIP \
17264 RANLIB \
17265 CC \
17266 CFLAGS \
17267 compiler \
17268 lt_cv_sys_global_symbol_pipe \
17269 lt_cv_sys_global_symbol_to_cdecl \
17270 lt_cv_sys_global_symbol_to_c_name_address \
17271 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17272 nm_file_list_spec \
17273 lt_prog_compiler_no_builtin_flag \
17274 lt_prog_compiler_pic \
17275 lt_prog_compiler_wl \
17276 lt_prog_compiler_static \
17277 lt_cv_prog_compiler_c_o \
17278 need_locks \
17279 MANIFEST_TOOL \
17280 DSYMUTIL \
17281 NMEDIT \
17282 LIPO \
17283 OTOOL \
17284 OTOOL64 \
17285 shrext_cmds \
17286 export_dynamic_flag_spec \
17287 whole_archive_flag_spec \
17288 compiler_needs_object \
17289 with_gnu_ld \
17290 allow_undefined_flag \
17291 no_undefined_flag \
17292 hardcode_libdir_flag_spec \
17293 hardcode_libdir_separator \
17294 exclude_expsyms \
17295 include_expsyms \
17296 file_list_spec \
17297 variables_saved_for_relink \
17298 libname_spec \
17299 library_names_spec \
17300 soname_spec \
17301 install_override_mode \
17302 finish_eval \
17303 old_striplib \
17304 striplib \
17305 LD_RC \
17306 reload_flag_RC \
17307 compiler_RC \
17308 lt_prog_compiler_no_builtin_flag_RC \
17309 lt_prog_compiler_pic_RC \
17310 lt_prog_compiler_wl_RC \
17311 lt_prog_compiler_static_RC \
17312 lt_cv_prog_compiler_c_o_RC \
17313 export_dynamic_flag_spec_RC \
17314 whole_archive_flag_spec_RC \
17315 compiler_needs_object_RC \
17316 with_gnu_ld_RC \
17317 allow_undefined_flag_RC \
17318 no_undefined_flag_RC \
17319 hardcode_libdir_flag_spec_RC \
17320 hardcode_libdir_separator_RC \
17321 exclude_expsyms_RC \
17322 include_expsyms_RC \
17323 file_list_spec_RC; do
17324 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17325 *[\\\\\\\`\\"\\\$]*)
17326 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17329 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17331 esac
17332 done
17334 # Double-quote double-evaled strings.
17335 for var in reload_cmds \
17336 old_postinstall_cmds \
17337 old_postuninstall_cmds \
17338 old_archive_cmds \
17339 extract_expsyms_cmds \
17340 old_archive_from_new_cmds \
17341 old_archive_from_expsyms_cmds \
17342 archive_cmds \
17343 archive_expsym_cmds \
17344 module_cmds \
17345 module_expsym_cmds \
17346 export_symbols_cmds \
17347 prelink_cmds \
17348 postlink_cmds \
17349 postinstall_cmds \
17350 postuninstall_cmds \
17351 finish_cmds \
17352 sys_lib_search_path_spec \
17353 sys_lib_dlsearch_path_spec \
17354 reload_cmds_RC \
17355 old_archive_cmds_RC \
17356 old_archive_from_new_cmds_RC \
17357 old_archive_from_expsyms_cmds_RC \
17358 archive_cmds_RC \
17359 archive_expsym_cmds_RC \
17360 module_cmds_RC \
17361 module_expsym_cmds_RC \
17362 export_symbols_cmds_RC \
17363 prelink_cmds_RC \
17364 postlink_cmds_RC; do
17365 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17366 *[\\\\\\\`\\"\\\$]*)
17367 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17370 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17372 esac
17373 done
17375 ac_aux_dir='$ac_aux_dir'
17376 xsi_shell='$xsi_shell'
17377 lt_shell_append='$lt_shell_append'
17379 # See if we are running on zsh, and set the options which allow our
17380 # commands through without removal of \ escapes INIT.
17381 if test -n "\${ZSH_VERSION+set}" ; then
17382 setopt NO_GLOB_SUBST
17386 PACKAGE='$PACKAGE'
17387 VERSION='$VERSION'
17388 TIMESTAMP='$TIMESTAMP'
17389 RM='$RM'
17390 ofile='$ofile'
17397 _ACEOF
17399 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17401 # Handling of arguments.
17402 for ac_config_target in $ac_config_targets
17404 case $ac_config_target in
17405 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17406 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17407 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17408 "version.sh") CONFIG_FILES="$CONFIG_FILES version.sh" ;;
17409 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17410 "build/Makefile") CONFIG_FILES="$CONFIG_FILES build/Makefile" ;;
17411 "build/msvc/Makefile") CONFIG_FILES="$CONFIG_FILES build/msvc/Makefile" ;;
17412 "build/msvc/msvc-generate/Makefile") CONFIG_FILES="$CONFIG_FILES build/msvc/msvc-generate/Makefile" ;;
17413 "distro/Makefile") CONFIG_FILES="$CONFIG_FILES distro/Makefile" ;;
17414 "distro/rpm/Makefile") CONFIG_FILES="$CONFIG_FILES distro/rpm/Makefile" ;;
17415 "distro/rpm/openvpn.spec") CONFIG_FILES="$CONFIG_FILES distro/rpm/openvpn.spec" ;;
17416 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
17417 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17418 "src/compat/Makefile") CONFIG_FILES="$CONFIG_FILES src/compat/Makefile" ;;
17419 "src/openvpn/Makefile") CONFIG_FILES="$CONFIG_FILES src/openvpn/Makefile" ;;
17420 "src/openvpnserv/Makefile") CONFIG_FILES="$CONFIG_FILES src/openvpnserv/Makefile" ;;
17421 "src/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/Makefile" ;;
17422 "src/plugins/auth-pam/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/auth-pam/Makefile" ;;
17423 "src/plugins/down-root/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/down-root/Makefile" ;;
17424 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
17425 "sample/Makefile") CONFIG_FILES="$CONFIG_FILES sample/Makefile" ;;
17426 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17427 "tests/t_client.sh") CONFIG_FILES="$CONFIG_FILES tests/t_client.sh" ;;
17429 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17430 esac
17431 done
17434 # If the user did not use the arguments to specify the items to instantiate,
17435 # then the envvar interface is used. Set only those that are not.
17436 # We use the long form for the default assignment because of an extremely
17437 # bizarre bug on SunOS 4.1.3.
17438 if $ac_need_defaults; then
17439 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17440 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17441 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17444 # Have a temporary directory for convenience. Make it in the build tree
17445 # simply because there is no reason against having it here, and in addition,
17446 # creating and moving files from /tmp can sometimes cause problems.
17447 # Hook for its removal unless debugging.
17448 # Note that there is a small window in which the directory will not be cleaned:
17449 # after its creation but before its name has been assigned to `$tmp'.
17450 $debug ||
17452 tmp= ac_tmp=
17453 trap 'exit_status=$?
17454 : "${ac_tmp:=$tmp}"
17455 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17457 trap 'as_fn_exit 1' 1 2 13 15
17459 # Create a (secure) tmp directory for tmp files.
17462 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17463 test -d "$tmp"
17464 } ||
17466 tmp=./conf$$-$RANDOM
17467 (umask 077 && mkdir "$tmp")
17468 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17469 ac_tmp=$tmp
17471 # Set up the scripts for CONFIG_FILES section.
17472 # No need to generate them if there are no CONFIG_FILES.
17473 # This happens for instance with `./config.status config.h'.
17474 if test -n "$CONFIG_FILES"; then
17477 ac_cr=`echo X | tr X '\015'`
17478 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17479 # But we know of no other shell where ac_cr would be empty at this
17480 # point, so we can use a bashism as a fallback.
17481 if test "x$ac_cr" = x; then
17482 eval ac_cr=\$\'\\r\'
17484 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17485 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17486 ac_cs_awk_cr='\\r'
17487 else
17488 ac_cs_awk_cr=$ac_cr
17491 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17492 _ACEOF
17496 echo "cat >conf$$subs.awk <<_ACEOF" &&
17497 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17498 echo "_ACEOF"
17499 } >conf$$subs.sh ||
17500 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17501 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17502 ac_delim='%!_!# '
17503 for ac_last_try in false false false false false :; do
17504 . ./conf$$subs.sh ||
17505 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17507 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17508 if test $ac_delim_n = $ac_delim_num; then
17509 break
17510 elif $ac_last_try; then
17511 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17512 else
17513 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17515 done
17516 rm -f conf$$subs.sh
17518 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17519 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17520 _ACEOF
17521 sed -n '
17523 s/^/S["/; s/!.*/"]=/
17526 s/^[^!]*!//
17527 :repl
17528 t repl
17529 s/'"$ac_delim"'$//
17530 t delim
17533 s/\(.\{148\}\)..*/\1/
17534 t more1
17535 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17538 b repl
17539 :more1
17540 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17543 s/.\{148\}//
17544 t nl
17545 :delim
17547 s/\(.\{148\}\)..*/\1/
17548 t more2
17549 s/["\\]/\\&/g; s/^/"/; s/$/"/
17552 :more2
17553 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17556 s/.\{148\}//
17557 t delim
17558 ' <conf$$subs.awk | sed '
17559 /^[^""]/{
17561 s/\n//
17563 ' >>$CONFIG_STATUS || ac_write_fail=1
17564 rm -f conf$$subs.awk
17565 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17566 _ACAWK
17567 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17568 for (key in S) S_is_set[key] = 1
17569 FS = "\a"
17573 line = $ 0
17574 nfields = split(line, field, "@")
17575 substed = 0
17576 len = length(field[1])
17577 for (i = 2; i < nfields; i++) {
17578 key = field[i]
17579 keylen = length(key)
17580 if (S_is_set[key]) {
17581 value = S[key]
17582 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17583 len += length(value) + length(field[++i])
17584 substed = 1
17585 } else
17586 len += 1 + keylen
17589 print line
17592 _ACAWK
17593 _ACEOF
17594 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17595 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17596 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17597 else
17599 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17600 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17601 _ACEOF
17603 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17604 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17605 # trailing colons and then remove the whole line if VPATH becomes empty
17606 # (actually we leave an empty line to preserve line numbers).
17607 if test "x$srcdir" = x.; then
17608 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17610 s///
17611 s/^/:/
17612 s/[ ]*$/:/
17613 s/:\$(srcdir):/:/g
17614 s/:\${srcdir}:/:/g
17615 s/:@srcdir@:/:/g
17616 s/^:*//
17617 s/:*$//
17619 s/\(=[ ]*\).*/\1/
17621 s/\n//
17622 s/^[^=]*=[ ]*$//
17626 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17627 fi # test -n "$CONFIG_FILES"
17629 # Set up the scripts for CONFIG_HEADERS section.
17630 # No need to generate them if there are no CONFIG_HEADERS.
17631 # This happens for instance with `./config.status Makefile'.
17632 if test -n "$CONFIG_HEADERS"; then
17633 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17634 BEGIN {
17635 _ACEOF
17637 # Transform confdefs.h into an awk script `defines.awk', embedded as
17638 # here-document in config.status, that substitutes the proper values into
17639 # config.h.in to produce config.h.
17641 # Create a delimiter string that does not exist in confdefs.h, to ease
17642 # handling of long lines.
17643 ac_delim='%!_!# '
17644 for ac_last_try in false false :; do
17645 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17646 if test -z "$ac_tt"; then
17647 break
17648 elif $ac_last_try; then
17649 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17650 else
17651 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17653 done
17655 # For the awk script, D is an array of macro values keyed by name,
17656 # likewise P contains macro parameters if any. Preserve backslash
17657 # newline sequences.
17659 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17660 sed -n '
17661 s/.\{148\}/&'"$ac_delim"'/g
17662 t rset
17663 :rset
17664 s/^[ ]*#[ ]*define[ ][ ]*/ /
17665 t def
17667 :def
17668 s/\\$//
17669 t bsnl
17670 s/["\\]/\\&/g
17671 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17672 D["\1"]=" \3"/p
17673 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17675 :bsnl
17676 s/["\\]/\\&/g
17677 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17678 D["\1"]=" \3\\\\\\n"\\/p
17679 t cont
17680 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17681 t cont
17683 :cont
17685 s/.\{148\}/&'"$ac_delim"'/g
17686 t clear
17687 :clear
17688 s/\\$//
17689 t bsnlc
17690 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17692 :bsnlc
17693 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17694 b cont
17695 ' <confdefs.h | sed '
17696 s/'"$ac_delim"'/"\\\
17697 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17699 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17700 for (key in D) D_is_set[key] = 1
17701 FS = "\a"
17703 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17704 line = \$ 0
17705 split(line, arg, " ")
17706 if (arg[1] == "#") {
17707 defundef = arg[2]
17708 mac1 = arg[3]
17709 } else {
17710 defundef = substr(arg[1], 2)
17711 mac1 = arg[2]
17713 split(mac1, mac2, "(") #)
17714 macro = mac2[1]
17715 prefix = substr(line, 1, index(line, defundef) - 1)
17716 if (D_is_set[macro]) {
17717 # Preserve the white space surrounding the "#".
17718 print prefix "define", macro P[macro] D[macro]
17719 next
17720 } else {
17721 # Replace #undef with comments. This is necessary, for example,
17722 # in the case of _POSIX_SOURCE, which is predefined and required
17723 # on some systems where configure will not decide to define it.
17724 if (defundef == "undef") {
17725 print "/*", prefix defundef, macro, "*/"
17726 next
17730 { print }
17731 _ACAWK
17732 _ACEOF
17733 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17734 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17735 fi # test -n "$CONFIG_HEADERS"
17738 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17739 shift
17740 for ac_tag
17742 case $ac_tag in
17743 :[FHLC]) ac_mode=$ac_tag; continue;;
17744 esac
17745 case $ac_mode$ac_tag in
17746 :[FHL]*:*);;
17747 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17748 :[FH]-) ac_tag=-:-;;
17749 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17750 esac
17751 ac_save_IFS=$IFS
17752 IFS=:
17753 set x $ac_tag
17754 IFS=$ac_save_IFS
17755 shift
17756 ac_file=$1
17757 shift
17759 case $ac_mode in
17760 :L) ac_source=$1;;
17761 :[FH])
17762 ac_file_inputs=
17763 for ac_f
17765 case $ac_f in
17766 -) ac_f="$ac_tmp/stdin";;
17767 *) # Look for the file first in the build tree, then in the source tree
17768 # (if the path is not absolute). The absolute path cannot be DOS-style,
17769 # because $ac_f cannot contain `:'.
17770 test -f "$ac_f" ||
17771 case $ac_f in
17772 [\\/$]*) false;;
17773 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17774 esac ||
17775 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17776 esac
17777 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17778 as_fn_append ac_file_inputs " '$ac_f'"
17779 done
17781 # Let's still pretend it is `configure' which instantiates (i.e., don't
17782 # use $as_me), people would be surprised to read:
17783 # /* config.h. Generated by config.status. */
17784 configure_input='Generated from '`
17785 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17786 `' by configure.'
17787 if test x"$ac_file" != x-; then
17788 configure_input="$ac_file. $configure_input"
17789 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17790 $as_echo "$as_me: creating $ac_file" >&6;}
17792 # Neutralize special characters interpreted by sed in replacement strings.
17793 case $configure_input in #(
17794 *\&* | *\|* | *\\* )
17795 ac_sed_conf_input=`$as_echo "$configure_input" |
17796 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17797 *) ac_sed_conf_input=$configure_input;;
17798 esac
17800 case $ac_tag in
17801 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17802 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17803 esac
17805 esac
17807 ac_dir=`$as_dirname -- "$ac_file" ||
17808 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17809 X"$ac_file" : 'X\(//\)[^/]' \| \
17810 X"$ac_file" : 'X\(//\)$' \| \
17811 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17812 $as_echo X"$ac_file" |
17813 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17814 s//\1/
17817 /^X\(\/\/\)[^/].*/{
17818 s//\1/
17821 /^X\(\/\/\)$/{
17822 s//\1/
17825 /^X\(\/\).*/{
17826 s//\1/
17829 s/.*/./; q'`
17830 as_dir="$ac_dir"; as_fn_mkdir_p
17831 ac_builddir=.
17833 case "$ac_dir" in
17834 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17836 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17837 # A ".." for each directory in $ac_dir_suffix.
17838 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17839 case $ac_top_builddir_sub in
17840 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17841 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17842 esac ;;
17843 esac
17844 ac_abs_top_builddir=$ac_pwd
17845 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17846 # for backward compatibility:
17847 ac_top_builddir=$ac_top_build_prefix
17849 case $srcdir in
17850 .) # We are building in place.
17851 ac_srcdir=.
17852 ac_top_srcdir=$ac_top_builddir_sub
17853 ac_abs_top_srcdir=$ac_pwd ;;
17854 [\\/]* | ?:[\\/]* ) # Absolute name.
17855 ac_srcdir=$srcdir$ac_dir_suffix;
17856 ac_top_srcdir=$srcdir
17857 ac_abs_top_srcdir=$srcdir ;;
17858 *) # Relative name.
17859 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17860 ac_top_srcdir=$ac_top_build_prefix$srcdir
17861 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17862 esac
17863 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17866 case $ac_mode in
17869 # CONFIG_FILE
17872 case $INSTALL in
17873 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17874 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17875 esac
17876 ac_MKDIR_P=$MKDIR_P
17877 case $MKDIR_P in
17878 [\\/$]* | ?:[\\/]* ) ;;
17879 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17880 esac
17881 _ACEOF
17883 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17884 # If the template does not know about datarootdir, expand it.
17885 # FIXME: This hack should be removed a few years after 2.60.
17886 ac_datarootdir_hack=; ac_datarootdir_seen=
17887 ac_sed_dataroot='
17888 /datarootdir/ {
17892 /@datadir@/p
17893 /@docdir@/p
17894 /@infodir@/p
17895 /@localedir@/p
17896 /@mandir@/p'
17897 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17898 *datarootdir*) ac_datarootdir_seen=yes;;
17899 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17901 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17902 _ACEOF
17903 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17904 ac_datarootdir_hack='
17905 s&@datadir@&$datadir&g
17906 s&@docdir@&$docdir&g
17907 s&@infodir@&$infodir&g
17908 s&@localedir@&$localedir&g
17909 s&@mandir@&$mandir&g
17910 s&\\\${datarootdir}&$datarootdir&g' ;;
17911 esac
17912 _ACEOF
17914 # Neutralize VPATH when `$srcdir' = `.'.
17915 # Shell code in configure.ac might set extrasub.
17916 # FIXME: do we really want to maintain this feature?
17917 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17918 ac_sed_extra="$ac_vpsub
17919 $extrasub
17920 _ACEOF
17921 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17923 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17924 s|@configure_input@|$ac_sed_conf_input|;t t
17925 s&@top_builddir@&$ac_top_builddir_sub&;t t
17926 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17927 s&@srcdir@&$ac_srcdir&;t t
17928 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17929 s&@top_srcdir@&$ac_top_srcdir&;t t
17930 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17931 s&@builddir@&$ac_builddir&;t t
17932 s&@abs_builddir@&$ac_abs_builddir&;t t
17933 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17934 s&@INSTALL@&$ac_INSTALL&;t t
17935 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17936 $ac_datarootdir_hack
17938 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17939 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17941 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17942 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17943 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17944 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17946 which seems to be undefined. Please make sure it is defined" >&5
17947 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17948 which seems to be undefined. Please make sure it is defined" >&2;}
17950 rm -f "$ac_tmp/stdin"
17951 case $ac_file in
17952 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17953 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17954 esac \
17955 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17959 # CONFIG_HEADER
17961 if test x"$ac_file" != x-; then
17963 $as_echo "/* $configure_input */" \
17964 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17965 } >"$ac_tmp/config.h" \
17966 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17967 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17968 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17969 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17970 else
17971 rm -f "$ac_file"
17972 mv "$ac_tmp/config.h" "$ac_file" \
17973 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17975 else
17976 $as_echo "/* $configure_input */" \
17977 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17978 || as_fn_error $? "could not create -" "$LINENO" 5
17980 # Compute "$ac_file"'s index in $config_headers.
17981 _am_arg="$ac_file"
17982 _am_stamp_count=1
17983 for _am_header in $config_headers :; do
17984 case $_am_header in
17985 $_am_arg | $_am_arg:* )
17986 break ;;
17988 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17989 esac
17990 done
17991 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17992 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17993 X"$_am_arg" : 'X\(//\)[^/]' \| \
17994 X"$_am_arg" : 'X\(//\)$' \| \
17995 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17996 $as_echo X"$_am_arg" |
17997 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17998 s//\1/
18001 /^X\(\/\/\)[^/].*/{
18002 s//\1/
18005 /^X\(\/\/\)$/{
18006 s//\1/
18009 /^X\(\/\).*/{
18010 s//\1/
18013 s/.*/./; q'`/stamp-h$_am_stamp_count
18016 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18017 $as_echo "$as_me: executing $ac_file commands" >&6;}
18019 esac
18022 case $ac_file$ac_mode in
18023 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18024 # Autoconf 2.62 quotes --file arguments for eval, but not when files
18025 # are listed without --file. Let's play safe and only enable the eval
18026 # if we detect the quoting.
18027 case $CONFIG_FILES in
18028 *\'*) eval set x "$CONFIG_FILES" ;;
18029 *) set x $CONFIG_FILES ;;
18030 esac
18031 shift
18032 for mf
18034 # Strip MF so we end up with the name of the file.
18035 mf=`echo "$mf" | sed -e 's/:.*$//'`
18036 # Check whether this is an Automake generated Makefile or not.
18037 # We used to match only the files named `Makefile.in', but
18038 # some people rename them; so instead we look at the file content.
18039 # Grep'ing the first line is not enough: some people post-process
18040 # each Makefile.in and add a new line on top of each file to say so.
18041 # Grep'ing the whole file is not good either: AIX grep has a line
18042 # limit of 2048, but all sed's we know have understand at least 4000.
18043 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18044 dirpart=`$as_dirname -- "$mf" ||
18045 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18046 X"$mf" : 'X\(//\)[^/]' \| \
18047 X"$mf" : 'X\(//\)$' \| \
18048 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18049 $as_echo X"$mf" |
18050 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18051 s//\1/
18054 /^X\(\/\/\)[^/].*/{
18055 s//\1/
18058 /^X\(\/\/\)$/{
18059 s//\1/
18062 /^X\(\/\).*/{
18063 s//\1/
18066 s/.*/./; q'`
18067 else
18068 continue
18070 # Extract the definition of DEPDIR, am__include, and am__quote
18071 # from the Makefile without running `make'.
18072 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18073 test -z "$DEPDIR" && continue
18074 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18075 test -z "am__include" && continue
18076 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18077 # When using ansi2knr, U may be empty or an underscore; expand it
18078 U=`sed -n 's/^U = //p' < "$mf"`
18079 # Find all dependency output files, they are included files with
18080 # $(DEPDIR) in their names. We invoke sed twice because it is the
18081 # simplest approach to changing $(DEPDIR) to its actual value in the
18082 # expansion.
18083 for file in `sed -n "
18084 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18085 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18086 # Make sure the directory exists.
18087 test -f "$dirpart/$file" && continue
18088 fdir=`$as_dirname -- "$file" ||
18089 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18090 X"$file" : 'X\(//\)[^/]' \| \
18091 X"$file" : 'X\(//\)$' \| \
18092 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18093 $as_echo X"$file" |
18094 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18095 s//\1/
18098 /^X\(\/\/\)[^/].*/{
18099 s//\1/
18102 /^X\(\/\/\)$/{
18103 s//\1/
18106 /^X\(\/\).*/{
18107 s//\1/
18110 s/.*/./; q'`
18111 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18112 # echo "creating $dirpart/$file"
18113 echo '# dummy' > "$dirpart/$file"
18114 done
18115 done
18118 "libtool":C)
18120 # See if we are running on zsh, and set the options which allow our
18121 # commands through without removal of \ escapes.
18122 if test -n "${ZSH_VERSION+set}" ; then
18123 setopt NO_GLOB_SUBST
18126 cfgfile="${ofile}T"
18127 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18128 $RM "$cfgfile"
18130 cat <<_LT_EOF >> "$cfgfile"
18131 #! $SHELL
18133 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18134 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18135 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18136 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18138 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18139 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
18140 # Foundation, Inc.
18141 # Written by Gordon Matzigkeit, 1996
18143 # This file is part of GNU Libtool.
18145 # GNU Libtool is free software; you can redistribute it and/or
18146 # modify it under the terms of the GNU General Public License as
18147 # published by the Free Software Foundation; either version 2 of
18148 # the License, or (at your option) any later version.
18150 # As a special exception to the GNU General Public License,
18151 # if you distribute this file as part of a program or library that
18152 # is built using GNU Libtool, you may include this file under the
18153 # same distribution terms that you use for the rest of that program.
18155 # GNU Libtool is distributed in the hope that it will be useful,
18156 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18157 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18158 # GNU General Public License for more details.
18160 # You should have received a copy of the GNU General Public License
18161 # along with GNU Libtool; see the file COPYING. If not, a copy
18162 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18163 # obtained by writing to the Free Software Foundation, Inc.,
18164 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18167 # The names of the tagged configurations supported by this script.
18168 available_tags="RC "
18170 # ### BEGIN LIBTOOL CONFIG
18172 # Which release of libtool.m4 was used?
18173 macro_version=$macro_version
18174 macro_revision=$macro_revision
18176 # Assembler program.
18177 AS=$lt_AS
18179 # DLL creation program.
18180 DLLTOOL=$lt_DLLTOOL
18182 # Object dumper program.
18183 OBJDUMP=$lt_OBJDUMP
18185 # Whether or not to build shared libraries.
18186 build_libtool_libs=$enable_shared
18188 # Whether or not to build static libraries.
18189 build_old_libs=$enable_static
18191 # What type of objects to build.
18192 pic_mode=$pic_mode
18194 # Whether or not to optimize for fast installation.
18195 fast_install=$enable_fast_install
18197 # Shell to use when invoking shell scripts.
18198 SHELL=$lt_SHELL
18200 # An echo program that protects backslashes.
18201 ECHO=$lt_ECHO
18203 # The PATH separator for the build system.
18204 PATH_SEPARATOR=$lt_PATH_SEPARATOR
18206 # The host system.
18207 host_alias=$host_alias
18208 host=$host
18209 host_os=$host_os
18211 # The build system.
18212 build_alias=$build_alias
18213 build=$build
18214 build_os=$build_os
18216 # A sed program that does not truncate output.
18217 SED=$lt_SED
18219 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18220 Xsed="\$SED -e 1s/^X//"
18222 # A grep program that handles long lines.
18223 GREP=$lt_GREP
18225 # An ERE matcher.
18226 EGREP=$lt_EGREP
18228 # A literal string matcher.
18229 FGREP=$lt_FGREP
18231 # A BSD- or MS-compatible name lister.
18232 NM=$lt_NM
18234 # Whether we need soft or hard links.
18235 LN_S=$lt_LN_S
18237 # What is the maximum length of a command?
18238 max_cmd_len=$max_cmd_len
18240 # Object file suffix (normally "o").
18241 objext=$ac_objext
18243 # Executable file suffix (normally "").
18244 exeext=$exeext
18246 # whether the shell understands "unset".
18247 lt_unset=$lt_unset
18249 # turn spaces into newlines.
18250 SP2NL=$lt_lt_SP2NL
18252 # turn newlines into spaces.
18253 NL2SP=$lt_lt_NL2SP
18255 # convert \$build file names to \$host format.
18256 to_host_file_cmd=$lt_cv_to_host_file_cmd
18258 # convert \$build files to toolchain format.
18259 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18261 # Method to check whether dependent libraries are shared objects.
18262 deplibs_check_method=$lt_deplibs_check_method
18264 # Command to use when deplibs_check_method = "file_magic".
18265 file_magic_cmd=$lt_file_magic_cmd
18267 # How to find potential files when deplibs_check_method = "file_magic".
18268 file_magic_glob=$lt_file_magic_glob
18270 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18271 want_nocaseglob=$lt_want_nocaseglob
18273 # Command to associate shared and link libraries.
18274 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18276 # The archiver.
18277 AR=$lt_AR
18279 # Flags to create an archive.
18280 AR_FLAGS=$lt_AR_FLAGS
18282 # How to feed a file listing to the archiver.
18283 archiver_list_spec=$lt_archiver_list_spec
18285 # A symbol stripping program.
18286 STRIP=$lt_STRIP
18288 # Commands used to install an old-style archive.
18289 RANLIB=$lt_RANLIB
18290 old_postinstall_cmds=$lt_old_postinstall_cmds
18291 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18293 # Whether to use a lock for old archive extraction.
18294 lock_old_archive_extraction=$lock_old_archive_extraction
18296 # A C compiler.
18297 LTCC=$lt_CC
18299 # LTCC compiler flags.
18300 LTCFLAGS=$lt_CFLAGS
18302 # Take the output of nm and produce a listing of raw symbols and C names.
18303 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18305 # Transform the output of nm in a proper C declaration.
18306 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18308 # Transform the output of nm in a C name address pair.
18309 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18311 # Transform the output of nm in a C name address pair when lib prefix is needed.
18312 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18314 # Specify filename containing input files for \$NM.
18315 nm_file_list_spec=$lt_nm_file_list_spec
18317 # The root where to search for dependent libraries,and in which our libraries should be installed.
18318 lt_sysroot=$lt_sysroot
18320 # The name of the directory that contains temporary libtool files.
18321 objdir=$objdir
18323 # Used to examine libraries when file_magic_cmd begins with "file".
18324 MAGIC_CMD=$MAGIC_CMD
18326 # Must we lock files when doing compilation?
18327 need_locks=$lt_need_locks
18329 # Manifest tool.
18330 MANIFEST_TOOL=$lt_MANIFEST_TOOL
18332 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18333 DSYMUTIL=$lt_DSYMUTIL
18335 # Tool to change global to local symbols on Mac OS X.
18336 NMEDIT=$lt_NMEDIT
18338 # Tool to manipulate fat objects and archives on Mac OS X.
18339 LIPO=$lt_LIPO
18341 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18342 OTOOL=$lt_OTOOL
18344 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18345 OTOOL64=$lt_OTOOL64
18347 # Old archive suffix (normally "a").
18348 libext=$libext
18350 # Shared library suffix (normally ".so").
18351 shrext_cmds=$lt_shrext_cmds
18353 # The commands to extract the exported symbol list from a shared archive.
18354 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18356 # Variables whose values should be saved in libtool wrapper scripts and
18357 # restored at link time.
18358 variables_saved_for_relink=$lt_variables_saved_for_relink
18360 # Do we need the "lib" prefix for modules?
18361 need_lib_prefix=$need_lib_prefix
18363 # Do we need a version for libraries?
18364 need_version=$need_version
18366 # Library versioning type.
18367 version_type=$version_type
18369 # Shared library runtime path variable.
18370 runpath_var=$runpath_var
18372 # Shared library path variable.
18373 shlibpath_var=$shlibpath_var
18375 # Is shlibpath searched before the hard-coded library search path?
18376 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18378 # Format of library name prefix.
18379 libname_spec=$lt_libname_spec
18381 # List of archive names. First name is the real one, the rest are links.
18382 # The last name is the one that the linker finds with -lNAME
18383 library_names_spec=$lt_library_names_spec
18385 # The coded name of the library, if different from the real name.
18386 soname_spec=$lt_soname_spec
18388 # Permission mode override for installation of shared libraries.
18389 install_override_mode=$lt_install_override_mode
18391 # Command to use after installation of a shared archive.
18392 postinstall_cmds=$lt_postinstall_cmds
18394 # Command to use after uninstallation of a shared archive.
18395 postuninstall_cmds=$lt_postuninstall_cmds
18397 # Commands used to finish a libtool library installation in a directory.
18398 finish_cmds=$lt_finish_cmds
18400 # As "finish_cmds", except a single script fragment to be evaled but
18401 # not shown.
18402 finish_eval=$lt_finish_eval
18404 # Whether we should hardcode library paths into libraries.
18405 hardcode_into_libs=$hardcode_into_libs
18407 # Compile-time system search path for libraries.
18408 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18410 # Run-time system search path for libraries.
18411 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18413 # Whether dlopen is supported.
18414 dlopen_support=$enable_dlopen
18416 # Whether dlopen of programs is supported.
18417 dlopen_self=$enable_dlopen_self
18419 # Whether dlopen of statically linked programs is supported.
18420 dlopen_self_static=$enable_dlopen_self_static
18422 # Commands to strip libraries.
18423 old_striplib=$lt_old_striplib
18424 striplib=$lt_striplib
18427 # The linker used to build libraries.
18428 LD=$lt_LD
18430 # How to create reloadable object files.
18431 reload_flag=$lt_reload_flag
18432 reload_cmds=$lt_reload_cmds
18434 # Commands used to build an old-style archive.
18435 old_archive_cmds=$lt_old_archive_cmds
18437 # A language specific compiler.
18438 CC=$lt_compiler
18440 # Is the compiler the GNU compiler?
18441 with_gcc=$GCC
18443 # Compiler flag to turn off builtin functions.
18444 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18446 # Additional compiler flags for building library objects.
18447 pic_flag=$lt_lt_prog_compiler_pic
18449 # How to pass a linker flag through the compiler.
18450 wl=$lt_lt_prog_compiler_wl
18452 # Compiler flag to prevent dynamic linking.
18453 link_static_flag=$lt_lt_prog_compiler_static
18455 # Does compiler simultaneously support -c and -o options?
18456 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18458 # Whether or not to add -lc for building shared libraries.
18459 build_libtool_need_lc=$archive_cmds_need_lc
18461 # Whether or not to disallow shared libs when runtime libs are static.
18462 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18464 # Compiler flag to allow reflexive dlopens.
18465 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18467 # Compiler flag to generate shared objects directly from archives.
18468 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18470 # Whether the compiler copes with passing no objects directly.
18471 compiler_needs_object=$lt_compiler_needs_object
18473 # Create an old-style archive from a shared archive.
18474 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18476 # Create a temporary old-style archive to link instead of a shared archive.
18477 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18479 # Commands used to build a shared archive.
18480 archive_cmds=$lt_archive_cmds
18481 archive_expsym_cmds=$lt_archive_expsym_cmds
18483 # Commands used to build a loadable module if different from building
18484 # a shared archive.
18485 module_cmds=$lt_module_cmds
18486 module_expsym_cmds=$lt_module_expsym_cmds
18488 # Whether we are building with GNU ld or not.
18489 with_gnu_ld=$lt_with_gnu_ld
18491 # Flag that allows shared libraries with undefined symbols to be built.
18492 allow_undefined_flag=$lt_allow_undefined_flag
18494 # Flag that enforces no undefined symbols.
18495 no_undefined_flag=$lt_no_undefined_flag
18497 # Flag to hardcode \$libdir into a binary during linking.
18498 # This must work even if \$libdir does not exist
18499 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18501 # Whether we need a single "-rpath" flag with a separated argument.
18502 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18504 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18505 # DIR into the resulting binary.
18506 hardcode_direct=$hardcode_direct
18508 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18509 # DIR into the resulting binary and the resulting library dependency is
18510 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18511 # library is relocated.
18512 hardcode_direct_absolute=$hardcode_direct_absolute
18514 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18515 # into the resulting binary.
18516 hardcode_minus_L=$hardcode_minus_L
18518 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18519 # into the resulting binary.
18520 hardcode_shlibpath_var=$hardcode_shlibpath_var
18522 # Set to "yes" if building a shared library automatically hardcodes DIR
18523 # into the library and all subsequent libraries and executables linked
18524 # against it.
18525 hardcode_automatic=$hardcode_automatic
18527 # Set to yes if linker adds runtime paths of dependent libraries
18528 # to runtime path list.
18529 inherit_rpath=$inherit_rpath
18531 # Whether libtool must link a program against all its dependency libraries.
18532 link_all_deplibs=$link_all_deplibs
18534 # Set to "yes" if exported symbols are required.
18535 always_export_symbols=$always_export_symbols
18537 # The commands to list exported symbols.
18538 export_symbols_cmds=$lt_export_symbols_cmds
18540 # Symbols that should not be listed in the preloaded symbols.
18541 exclude_expsyms=$lt_exclude_expsyms
18543 # Symbols that must always be exported.
18544 include_expsyms=$lt_include_expsyms
18546 # Commands necessary for linking programs (against libraries) with templates.
18547 prelink_cmds=$lt_prelink_cmds
18549 # Commands necessary for finishing linking programs.
18550 postlink_cmds=$lt_postlink_cmds
18552 # Specify filename containing input files.
18553 file_list_spec=$lt_file_list_spec
18555 # How to hardcode a shared library path into an executable.
18556 hardcode_action=$hardcode_action
18558 # ### END LIBTOOL CONFIG
18560 _LT_EOF
18562 case $host_os in
18563 aix3*)
18564 cat <<\_LT_EOF >> "$cfgfile"
18565 # AIX sometimes has problems with the GCC collect2 program. For some
18566 # reason, if we set the COLLECT_NAMES environment variable, the problems
18567 # vanish in a puff of smoke.
18568 if test "X${COLLECT_NAMES+set}" != Xset; then
18569 COLLECT_NAMES=
18570 export COLLECT_NAMES
18572 _LT_EOF
18574 esac
18577 ltmain="$ac_aux_dir/ltmain.sh"
18580 # We use sed instead of cat because bash on DJGPP gets confused if
18581 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18582 # text mode, it properly converts lines to CR/LF. This bash problem
18583 # is reportedly fixed, but why not run on old versions too?
18584 sed '$q' "$ltmain" >> "$cfgfile" \
18585 || (rm -f "$cfgfile"; exit 1)
18587 if test x"$xsi_shell" = xyes; then
18588 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
18589 func_dirname ()\
18591 \ case ${1} in\
18592 \ */*) func_dirname_result="${1%/*}${2}" ;;\
18593 \ * ) func_dirname_result="${3}" ;;\
18594 \ esac\
18595 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
18596 && mv -f "$cfgfile.tmp" "$cfgfile" \
18597 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18598 test 0 -eq $? || _lt_function_replace_fail=:
18601 sed -e '/^func_basename ()$/,/^} # func_basename /c\
18602 func_basename ()\
18604 \ func_basename_result="${1##*/}"\
18605 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
18606 && mv -f "$cfgfile.tmp" "$cfgfile" \
18607 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18608 test 0 -eq $? || _lt_function_replace_fail=:
18611 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
18612 func_dirname_and_basename ()\
18614 \ case ${1} in\
18615 \ */*) func_dirname_result="${1%/*}${2}" ;;\
18616 \ * ) func_dirname_result="${3}" ;;\
18617 \ esac\
18618 \ func_basename_result="${1##*/}"\
18619 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
18620 && mv -f "$cfgfile.tmp" "$cfgfile" \
18621 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18622 test 0 -eq $? || _lt_function_replace_fail=:
18625 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
18626 func_stripname ()\
18628 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
18629 \ # positional parameters, so assign one to ordinary parameter first.\
18630 \ func_stripname_result=${3}\
18631 \ func_stripname_result=${func_stripname_result#"${1}"}\
18632 \ func_stripname_result=${func_stripname_result%"${2}"}\
18633 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
18634 && mv -f "$cfgfile.tmp" "$cfgfile" \
18635 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18636 test 0 -eq $? || _lt_function_replace_fail=:
18639 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
18640 func_split_long_opt ()\
18642 \ func_split_long_opt_name=${1%%=*}\
18643 \ func_split_long_opt_arg=${1#*=}\
18644 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
18645 && mv -f "$cfgfile.tmp" "$cfgfile" \
18646 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18647 test 0 -eq $? || _lt_function_replace_fail=:
18650 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
18651 func_split_short_opt ()\
18653 \ func_split_short_opt_arg=${1#??}\
18654 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
18655 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
18656 && mv -f "$cfgfile.tmp" "$cfgfile" \
18657 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18658 test 0 -eq $? || _lt_function_replace_fail=:
18661 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
18662 func_lo2o ()\
18664 \ case ${1} in\
18665 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
18666 \ *) func_lo2o_result=${1} ;;\
18667 \ esac\
18668 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
18669 && mv -f "$cfgfile.tmp" "$cfgfile" \
18670 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18671 test 0 -eq $? || _lt_function_replace_fail=:
18674 sed -e '/^func_xform ()$/,/^} # func_xform /c\
18675 func_xform ()\
18677 func_xform_result=${1%.*}.lo\
18678 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
18679 && mv -f "$cfgfile.tmp" "$cfgfile" \
18680 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18681 test 0 -eq $? || _lt_function_replace_fail=:
18684 sed -e '/^func_arith ()$/,/^} # func_arith /c\
18685 func_arith ()\
18687 func_arith_result=$(( $* ))\
18688 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
18689 && mv -f "$cfgfile.tmp" "$cfgfile" \
18690 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18691 test 0 -eq $? || _lt_function_replace_fail=:
18694 sed -e '/^func_len ()$/,/^} # func_len /c\
18695 func_len ()\
18697 func_len_result=${#1}\
18698 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
18699 && mv -f "$cfgfile.tmp" "$cfgfile" \
18700 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18701 test 0 -eq $? || _lt_function_replace_fail=:
18705 if test x"$lt_shell_append" = xyes; then
18706 sed -e '/^func_append ()$/,/^} # func_append /c\
18707 func_append ()\
18709 eval "${1}+=\\${2}"\
18710 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
18711 && mv -f "$cfgfile.tmp" "$cfgfile" \
18712 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18713 test 0 -eq $? || _lt_function_replace_fail=:
18716 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
18717 func_append_quoted ()\
18719 \ func_quote_for_eval "${2}"\
18720 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
18721 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
18722 && mv -f "$cfgfile.tmp" "$cfgfile" \
18723 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18724 test 0 -eq $? || _lt_function_replace_fail=:
18727 # Save a `func_append' function call where possible by direct use of '+='
18728 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
18729 && mv -f "$cfgfile.tmp" "$cfgfile" \
18730 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18731 test 0 -eq $? || _lt_function_replace_fail=:
18732 else
18733 # Save a `func_append' function call even when '+=' is not available
18734 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
18735 && mv -f "$cfgfile.tmp" "$cfgfile" \
18736 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18737 test 0 -eq $? || _lt_function_replace_fail=:
18740 if test x"$_lt_function_replace_fail" = x":"; then
18741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
18742 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
18746 mv -f "$cfgfile" "$ofile" ||
18747 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18748 chmod +x "$ofile"
18751 cat <<_LT_EOF >> "$ofile"
18753 # ### BEGIN LIBTOOL TAG CONFIG: RC
18755 # The linker used to build libraries.
18756 LD=$lt_LD_RC
18758 # How to create reloadable object files.
18759 reload_flag=$lt_reload_flag_RC
18760 reload_cmds=$lt_reload_cmds_RC
18762 # Commands used to build an old-style archive.
18763 old_archive_cmds=$lt_old_archive_cmds_RC
18765 # A language specific compiler.
18766 CC=$lt_compiler_RC
18768 # Is the compiler the GNU compiler?
18769 with_gcc=$GCC_RC
18771 # Compiler flag to turn off builtin functions.
18772 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18774 # Additional compiler flags for building library objects.
18775 pic_flag=$lt_lt_prog_compiler_pic_RC
18777 # How to pass a linker flag through the compiler.
18778 wl=$lt_lt_prog_compiler_wl_RC
18780 # Compiler flag to prevent dynamic linking.
18781 link_static_flag=$lt_lt_prog_compiler_static_RC
18783 # Does compiler simultaneously support -c and -o options?
18784 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18786 # Whether or not to add -lc for building shared libraries.
18787 build_libtool_need_lc=$archive_cmds_need_lc_RC
18789 # Whether or not to disallow shared libs when runtime libs are static.
18790 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18792 # Compiler flag to allow reflexive dlopens.
18793 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18795 # Compiler flag to generate shared objects directly from archives.
18796 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18798 # Whether the compiler copes with passing no objects directly.
18799 compiler_needs_object=$lt_compiler_needs_object_RC
18801 # Create an old-style archive from a shared archive.
18802 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18804 # Create a temporary old-style archive to link instead of a shared archive.
18805 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18807 # Commands used to build a shared archive.
18808 archive_cmds=$lt_archive_cmds_RC
18809 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18811 # Commands used to build a loadable module if different from building
18812 # a shared archive.
18813 module_cmds=$lt_module_cmds_RC
18814 module_expsym_cmds=$lt_module_expsym_cmds_RC
18816 # Whether we are building with GNU ld or not.
18817 with_gnu_ld=$lt_with_gnu_ld_RC
18819 # Flag that allows shared libraries with undefined symbols to be built.
18820 allow_undefined_flag=$lt_allow_undefined_flag_RC
18822 # Flag that enforces no undefined symbols.
18823 no_undefined_flag=$lt_no_undefined_flag_RC
18825 # Flag to hardcode \$libdir into a binary during linking.
18826 # This must work even if \$libdir does not exist
18827 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18829 # Whether we need a single "-rpath" flag with a separated argument.
18830 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18832 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18833 # DIR into the resulting binary.
18834 hardcode_direct=$hardcode_direct_RC
18836 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18837 # DIR into the resulting binary and the resulting library dependency is
18838 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18839 # library is relocated.
18840 hardcode_direct_absolute=$hardcode_direct_absolute_RC
18842 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18843 # into the resulting binary.
18844 hardcode_minus_L=$hardcode_minus_L_RC
18846 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18847 # into the resulting binary.
18848 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18850 # Set to "yes" if building a shared library automatically hardcodes DIR
18851 # into the library and all subsequent libraries and executables linked
18852 # against it.
18853 hardcode_automatic=$hardcode_automatic_RC
18855 # Set to yes if linker adds runtime paths of dependent libraries
18856 # to runtime path list.
18857 inherit_rpath=$inherit_rpath_RC
18859 # Whether libtool must link a program against all its dependency libraries.
18860 link_all_deplibs=$link_all_deplibs_RC
18862 # Set to "yes" if exported symbols are required.
18863 always_export_symbols=$always_export_symbols_RC
18865 # The commands to list exported symbols.
18866 export_symbols_cmds=$lt_export_symbols_cmds_RC
18868 # Symbols that should not be listed in the preloaded symbols.
18869 exclude_expsyms=$lt_exclude_expsyms_RC
18871 # Symbols that must always be exported.
18872 include_expsyms=$lt_include_expsyms_RC
18874 # Commands necessary for linking programs (against libraries) with templates.
18875 prelink_cmds=$lt_prelink_cmds_RC
18877 # Commands necessary for finishing linking programs.
18878 postlink_cmds=$lt_postlink_cmds_RC
18880 # Specify filename containing input files.
18881 file_list_spec=$lt_file_list_spec_RC
18883 # How to hardcode a shared library path into an executable.
18884 hardcode_action=$hardcode_action_RC
18886 # ### END LIBTOOL TAG CONFIG: RC
18887 _LT_EOF
18890 "tests/t_client.sh":F) chmod +x tests/t_client.sh ;;
18892 esac
18893 done # for ac_tag
18896 as_fn_exit 0
18897 _ACEOF
18898 ac_clean_files=$ac_clean_files_save
18900 test $ac_write_fail = 0 ||
18901 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18904 # configure is writing to config.log, and then calls config.status.
18905 # config.status does its own redirection, appending to config.log.
18906 # Unfortunately, on DOS this fails, as config.log is still kept open
18907 # by configure, so config.status won't be able to write to it; its
18908 # output is simply discarded. So we exec the FD to /dev/null,
18909 # effectively closing config.log, so it can be properly (re)opened and
18910 # appended to by config.status. When coming back to configure, we
18911 # need to make the FD available again.
18912 if test "$no_create" != yes; then
18913 ac_cs_success=:
18914 ac_config_status_args=
18915 test "$silent" = yes &&
18916 ac_config_status_args="$ac_config_status_args --quiet"
18917 exec 5>/dev/null
18918 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18919 exec 5>>config.log
18920 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18921 # would make configure fail if this is the last instruction.
18922 $ac_cs_success || as_fn_exit 1
18924 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18926 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}