* new version 2.25
[alpine.git] / configure
blob9d6565a160005fdfb2634f366ee3cd20a0c3a600
1 #! /bin/sh
2 # From configure.ac Rev:29 by chappa@washington.edu.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.69 for alpine 2.25.
6 # Report bugs to <chappa@washington.edu>.
9 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21 emulate sh
22 NULLCMD=:
23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24 # is contrary to our usage. Disable this feature.
25 alias -g '${1+"$@"}'='"$@"'
26 setopt NO_GLOB_SUBST
27 else
28 case `(set -o) 2>/dev/null` in #(
29 *posix*) :
30 set -o posix ;; #(
31 *) :
33 esac
37 as_nl='
39 export as_nl
40 # Printing a long string crashes Solaris 7 /usr/bin/printf.
41 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
44 # Prefer a ksh shell builtin over an external printf program on Solaris,
45 # but without wasting forks for bash or zsh.
46 if test -z "$BASH_VERSION$ZSH_VERSION" \
47 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='print -r --'
49 as_echo_n='print -rn --'
50 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 as_echo='printf %s\n'
52 as_echo_n='printf %s'
53 else
54 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
55 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
56 as_echo_n='/usr/ucb/echo -n'
57 else
58 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
59 as_echo_n_body='eval
60 arg=$1;
61 case $arg in #(
62 *"$as_nl"*)
63 expr "X$arg" : "X\\(.*\\)$as_nl";
64 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 esac;
66 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 export as_echo_n_body
69 as_echo_n='sh -c $as_echo_n_body as_echo'
71 export as_echo_body
72 as_echo='sh -c $as_echo_body as_echo'
75 # The user is always right.
76 if test "${PATH_SEPARATOR+set}" != set; then
77 PATH_SEPARATOR=:
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80 PATH_SEPARATOR=';'
85 # IFS
86 # We need space, tab and new line, in precisely that order. Quoting is
87 # there to prevent editors from complaining about space-tab.
88 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
89 # splitting by setting IFS to empty value.)
90 IFS=" "" $as_nl"
92 # Find who we are. Look in the path if we contain no directory separator.
93 as_myself=
94 case $0 in #((
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
99 IFS=$as_save_IFS
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102 done
103 IFS=$as_save_IFS
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110 as_myself=$0
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 exit 1
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138 # Use a proper internal environment variable to ensure we don't fall
139 # into an infinite loop, continuously re-executing ourselves.
140 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
141 _as_can_reexec=no; export _as_can_reexec;
142 # We cannot yet assume a decent shell, so we have to provide a
143 # neutralization value for shells without unset; and this also
144 # works around shells that cannot unset nonexistent variables.
145 # Preserve -v and -x to the replacement shell.
146 BASH_ENV=/dev/null
147 ENV=/dev/null
148 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 case $- in # ((((
150 *v*x* | *x*v* ) as_opts=-vx ;;
151 *v* ) as_opts=-v ;;
152 *x* ) as_opts=-x ;;
153 * ) as_opts= ;;
154 esac
155 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
156 # Admittedly, this is quite paranoid, since all the known shells bail
157 # out after a failed `exec'.
158 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
159 as_fn_exit 255
161 # We don't want this to propagate to other subprocesses.
162 { _as_can_reexec=; unset _as_can_reexec;}
163 if test "x$CONFIG_SHELL" = x; then
164 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
165 emulate sh
166 NULLCMD=:
167 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
168 # is contrary to our usage. Disable this feature.
169 alias -g '\${1+\"\$@\"}'='\"\$@\"'
170 setopt NO_GLOB_SUBST
171 else
172 case \`(set -o) 2>/dev/null\` in #(
173 *posix*) :
174 set -o posix ;; #(
175 *) :
177 esac
180 as_required="as_fn_return () { (exit \$1); }
181 as_fn_success () { as_fn_return 0; }
182 as_fn_failure () { as_fn_return 1; }
183 as_fn_ret_success () { return 0; }
184 as_fn_ret_failure () { return 1; }
186 exitcode=0
187 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
188 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
189 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
190 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
191 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 else
194 exitcode=1; echo positional parameters were not saved.
196 test x\$exitcode = x0 || exit 1
197 test -x / || exit 1"
198 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
199 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
200 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
201 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || 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 test \$(( 1 + 1 )) = 2 || exit 1"
211 if (eval "$as_required") 2>/dev/null; then :
212 as_have_required=yes
213 else
214 as_have_required=no
216 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
218 else
219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 as_found=false
221 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 IFS=$as_save_IFS
224 test -z "$as_dir" && as_dir=.
225 as_found=:
226 case $as_dir in #(
228 for as_base in sh bash ksh sh5; do
229 # Try only shells that exist, to save several forks.
230 as_shell=$as_dir/$as_base
231 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
233 CONFIG_SHELL=$as_shell as_have_required=yes
234 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
235 break 2
238 done;;
239 esac
240 as_found=false
241 done
242 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
243 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
244 CONFIG_SHELL=$SHELL as_have_required=yes
245 fi; }
246 IFS=$as_save_IFS
249 if test "x$CONFIG_SHELL" != x; then :
250 export CONFIG_SHELL
251 # We cannot yet assume a decent shell, so we have to provide a
252 # neutralization value for shells without unset; and this also
253 # works around shells that cannot unset nonexistent variables.
254 # Preserve -v and -x to the replacement shell.
255 BASH_ENV=/dev/null
256 ENV=/dev/null
257 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 case $- in # ((((
259 *v*x* | *x*v* ) as_opts=-vx ;;
260 *v* ) as_opts=-v ;;
261 *x* ) as_opts=-x ;;
262 * ) as_opts= ;;
263 esac
264 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
265 # Admittedly, this is quite paranoid, since all the known shells bail
266 # out after a failed `exec'.
267 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
268 exit 255
271 if test x$as_have_required = xno; then :
272 $as_echo "$0: This script requires a shell more modern than all"
273 $as_echo "$0: the shells that I found on your system."
274 if test x${ZSH_VERSION+set} = xset ; then
275 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
277 else
278 $as_echo "$0: Please tell bug-autoconf@gnu.org and
279 $0: chappa@washington.edu about your system, including any
280 $0: error possibly output before this message. Then install
281 $0: a modern shell, or manually run the script under such a
282 $0: shell if you do have one."
284 exit 1
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
302 { eval $1=; unset $1;}
304 as_unset=as_fn_unset
306 # as_fn_set_status STATUS
307 # -----------------------
308 # Set $? to STATUS, without forking.
309 as_fn_set_status ()
311 return $1
312 } # as_fn_set_status
314 # as_fn_exit STATUS
315 # -----------------
316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 as_fn_exit ()
319 set +e
320 as_fn_set_status $1
321 exit $1
322 } # as_fn_exit
324 # as_fn_mkdir_p
325 # -------------
326 # Create "$as_dir" as a directory, including parents if necessary.
327 as_fn_mkdir_p ()
330 case $as_dir in #(
331 -*) as_dir=./$as_dir;;
332 esac
333 test -d "$as_dir" || eval $as_mkdir_p || {
334 as_dirs=
335 while :; do
336 case $as_dir in #(
337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338 *) as_qdir=$as_dir;;
339 esac
340 as_dirs="'$as_qdir' $as_dirs"
341 as_dir=`$as_dirname -- "$as_dir" ||
342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343 X"$as_dir" : 'X\(//\)[^/]' \| \
344 X"$as_dir" : 'X\(//\)$' \| \
345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346 $as_echo X"$as_dir" |
347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348 s//\1/
351 /^X\(\/\/\)[^/].*/{
352 s//\1/
355 /^X\(\/\/\)$/{
356 s//\1/
359 /^X\(\/\).*/{
360 s//\1/
363 s/.*/./; q'`
364 test -d "$as_dir" && break
365 done
366 test -z "$as_dirs" || eval "mkdir $as_dirs"
367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
370 } # as_fn_mkdir_p
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p ()
377 test -f "$1" && test -x "$1"
378 } # as_fn_executable_p
379 # as_fn_append VAR VALUE
380 # ----------------------
381 # Append the text in VALUE to the end of the definition contained in VAR. Take
382 # advantage of any shell optimizations that allow amortized linear growth over
383 # repeated appends, instead of the typical quadratic growth present in naive
384 # implementations.
385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386 eval 'as_fn_append ()
388 eval $1+=\$2
390 else
391 as_fn_append ()
393 eval $1=\$$1\$2
395 fi # as_fn_append
397 # as_fn_arith ARG...
398 # ------------------
399 # Perform arithmetic evaluation on the ARGs, and store the result in the
400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
401 # must be portable across $(()) and expr.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403 eval 'as_fn_arith ()
405 as_val=$(( $* ))
407 else
408 as_fn_arith ()
410 as_val=`expr "$@" || test $? -eq 1`
412 fi # as_fn_arith
415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416 # ----------------------------------------
417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419 # script with STATUS, using 1 if that was 0.
420 as_fn_error ()
422 as_status=$1; test $as_status -eq 0 && as_status=1
423 if test "$4"; then
424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
427 $as_echo "$as_me: error: $2" >&2
428 as_fn_exit $as_status
429 } # as_fn_error
431 if expr a : '\(a\)' >/dev/null 2>&1 &&
432 test "X`expr 00001 : '.*\(...\)'`" = X001; then
433 as_expr=expr
434 else
435 as_expr=false
438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439 as_basename=basename
440 else
441 as_basename=false
444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445 as_dirname=dirname
446 else
447 as_dirname=false
450 as_me=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452 X"$0" : 'X\(//\)$' \| \
453 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 $as_echo X/"$0" |
455 sed '/^.*\/\([^/][^/]*\)\/*$/{
456 s//\1/
459 /^X\/\(\/\/\)$/{
460 s//\1/
463 /^X\/\(\/\).*/{
464 s//\1/
467 s/.*/./; q'`
469 # Avoid depending upon Character Ranges.
470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473 as_cr_digits='0123456789'
474 as_cr_alnum=$as_cr_Letters$as_cr_digits
477 as_lineno_1=$LINENO as_lineno_1a=$LINENO
478 as_lineno_2=$LINENO as_lineno_2a=$LINENO
479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
482 sed -n '
484 /[$]LINENO/=
485 ' <$as_myself |
486 sed '
487 s/[$]LINENO.*/&-/
488 t lineno
490 :lineno
492 :loop
493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494 t loop
495 s/-\n.*//
496 ' >$as_me.lineno &&
497 chmod +x "$as_me.lineno" ||
498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501 # already done that, so ensure we don't try to do so again and fall
502 # in an infinite loop. This has already happened in practice.
503 _as_can_reexec=no; export _as_can_reexec
504 # Don't try to exec as it changes $[0], causing all sort of problems
505 # (the dirname of $[0] is not the place where we might find the
506 # original and so on. Autoconf is especially sensitive to this).
507 . "./$as_me.lineno"
508 # Exit status is that of the last command.
509 exit
512 ECHO_C= ECHO_N= ECHO_T=
513 case `echo -n x` in #(((((
514 -n*)
515 case `echo 'xy\c'` in
516 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 xy) ECHO_C='\c';;
518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
519 ECHO_T=' ';;
520 esac;;
522 ECHO_N='-n';;
523 esac
525 rm -f conf$$ conf$$.exe conf$$.file
526 if test -d conf$$.dir; then
527 rm -f conf$$.dir/conf$$.file
528 else
529 rm -f conf$$.dir
530 mkdir conf$$.dir 2>/dev/null
532 if (echo >conf$$.file) 2>/dev/null; then
533 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 as_ln_s='ln -s'
535 # ... but there are two gotchas:
536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538 # In both cases, we have to default to `cp -pR'.
539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 as_ln_s='cp -pR'
541 elif ln conf$$.file conf$$ 2>/dev/null; then
542 as_ln_s=ln
543 else
544 as_ln_s='cp -pR'
546 else
547 as_ln_s='cp -pR'
549 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550 rmdir conf$$.dir 2>/dev/null
552 if mkdir -p . 2>/dev/null; then
553 as_mkdir_p='mkdir -p "$as_dir"'
554 else
555 test -d ./-p && rmdir ./-p
556 as_mkdir_p=false
559 as_test_x='test -x'
560 as_executable_p=as_fn_executable_p
562 # Sed expression to map a string onto a valid CPP name.
563 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
565 # Sed expression to map a string onto a valid variable name.
566 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
568 SHELL=${CONFIG_SHELL-/bin/sh}
571 test -n "$DJDIR" || exec 7<&0 </dev/null
572 exec 6>&1
574 # Name of the host.
575 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576 # so uname gets run too.
577 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
580 # Initializations.
582 ac_default_prefix=/usr/local
583 ac_clean_files=
584 ac_config_libobj_dir=.
585 LIBOBJS=
586 cross_compiling=no
587 subdirs=
588 MFLAGS=
589 MAKEFLAGS=
591 # Identity of this package.
592 PACKAGE_NAME='alpine'
593 PACKAGE_TARNAME='alpine'
594 PACKAGE_VERSION='2.25'
595 PACKAGE_STRING='alpine 2.25'
596 PACKAGE_BUGREPORT='chappa@washington.edu'
597 PACKAGE_URL=''
599 ac_unique_file="include/system.h"
600 # Factoring default headers for most tests.
601 ac_includes_default="\
602 #include <stdio.h>
603 #ifdef HAVE_SYS_TYPES_H
604 # include <sys/types.h>
605 #endif
606 #ifdef HAVE_SYS_STAT_H
607 # include <sys/stat.h>
608 #endif
609 #ifdef STDC_HEADERS
610 # include <stdlib.h>
611 # include <stddef.h>
612 #else
613 # ifdef HAVE_STDLIB_H
614 # include <stdlib.h>
615 # endif
616 #endif
617 #ifdef HAVE_STRING_H
618 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619 # include <memory.h>
620 # endif
621 # include <string.h>
622 #endif
623 #ifdef HAVE_STRINGS_H
624 # include <strings.h>
625 #endif
626 #ifdef HAVE_INTTYPES_H
627 # include <inttypes.h>
628 #endif
629 #ifdef HAVE_STDINT_H
630 # include <stdint.h>
631 #endif
632 #ifdef HAVE_UNISTD_H
633 # include <unistd.h>
634 #endif"
636 gt_needs=
637 ac_subst_vars='am__EXEEXT_FALSE
638 am__EXEEXT_TRUE
639 LTLIBOBJS
640 LIBOBJS
641 AM_LDFLAGS
642 AM_CFLAGS
643 WEB_PUBCOOKIE_LINK
644 WEB_PUBCOOKIE_LIB
645 WEB_PUBCOOKIE_BUILD
646 WEB_BINDIR
647 WEB_BUILD
648 REGEX_BUILD
649 C_CLIENT_SPECIALS
650 C_CLIENT_AUTHS
651 C_CLIENT_GCCOPTLEVEL
652 C_CLIENT_LDFLAGS
653 C_CLIENT_CFLAGS
654 C_CLIENT_WITH_IPV6
655 C_CLIENT_TARGET
656 PTHREAD_CFLAGS
657 PTHREAD_LIBS
658 PTHREAD_CC
659 acx_pthread_config
660 C_CLIENT_BUNDLED
661 alpine_interactive_spellcheck
662 ISPELLPROG
663 alpine_simple_spellcheck
664 SPELLPROG
665 PWPROG
666 NPA_PROG
667 SENDMAIL
668 ALPINE_HOSTSTAMP
669 ALPINE_DATESTAMP
670 POSUB
671 LTLIBINTL
672 LIBINTL
673 INTLLIBS
674 LTLIBICONV
675 LIBICONV
676 INTL_MACOSX_LIBS
677 MSGMERGE
678 XGETTEXT_015
679 XGETTEXT
680 GMSGFMT_015
681 MSGFMT_015
682 GMSGFMT
683 MSGFMT
684 USE_NLS
685 MAKE
690 LIBTOOL_DEPS
692 LT_SYS_LIBRARY_PATH
693 OTOOL64
694 OTOOL
695 LIPO
696 NMEDIT
697 DSYMUTIL
698 MANIFEST_TOOL
699 RANLIB
700 ac_ct_AR
702 DLLTOOL
703 OBJDUMP
705 ac_ct_DUMPBIN
706 DUMPBIN
708 FGREP
709 EGREP
710 GREP
712 LIBTOOL
713 LN_S
714 am__fastdepCC_FALSE
715 am__fastdepCC_TRUE
716 CCDEPMODE
717 am__nodep
718 AMDEPBACKSLASH
719 AMDEP_FALSE
720 AMDEP_TRUE
721 am__quote
722 am__include
723 DEPDIR
724 OBJEXT
725 EXEEXT
726 ac_ct_CC
727 CPPFLAGS
728 LDFLAGS
729 CFLAGS
731 host_os
732 host_vendor
733 host_cpu
734 host
735 build_os
736 build_vendor
737 build_cpu
738 build
739 MAINT
740 MAINTAINER_MODE_FALSE
741 MAINTAINER_MODE_TRUE
742 AM_BACKSLASH
743 AM_DEFAULT_VERBOSITY
744 AM_DEFAULT_V
745 AM_V
746 am__untar
747 am__tar
748 AMTAR
749 am__leading_dot
750 SET_MAKE
752 mkdir_p
753 MKDIR_P
754 INSTALL_STRIP_PROGRAM
755 STRIP
756 install_sh
757 MAKEINFO
758 AUTOHEADER
759 AUTOMAKE
760 AUTOCONF
761 ACLOCAL
762 VERSION
763 PACKAGE
764 CYGPATH_W
765 am__isrc
766 INSTALL_DATA
767 INSTALL_SCRIPT
768 INSTALL_PROGRAM
769 target_alias
770 host_alias
771 build_alias
772 LIBS
773 ECHO_T
774 ECHO_N
775 ECHO_C
776 DEFS
777 mandir
778 localedir
779 libdir
780 psdir
781 pdfdir
782 dvidir
783 htmldir
784 infodir
785 docdir
786 oldincludedir
787 includedir
788 localstatedir
789 sharedstatedir
790 sysconfdir
791 datadir
792 datarootdir
793 libexecdir
794 sbindir
795 bindir
796 program_transform_name
797 prefix
798 exec_prefix
799 PACKAGE_URL
800 PACKAGE_BUGREPORT
801 PACKAGE_STRING
802 PACKAGE_VERSION
803 PACKAGE_TARNAME
804 PACKAGE_NAME
805 PATH_SEPARATOR
806 SHELL'
807 ac_subst_files=''
808 ac_user_opts='
809 enable_option_checking
810 enable_silent_rules
811 enable_maintainer_mode
812 enable_dependency_tracking
813 enable_shared
814 enable_static
815 with_pic
816 enable_fast_install
817 with_aix_soname
818 with_gnu_ld
819 with_sysroot
820 enable_libtool_lock
821 enable_nls
822 enable_rpath
823 with_libiconv_prefix
824 with_libintl_prefix
825 enable_dmalloc
826 with_dmalloc_dir
827 with_date_stamp
828 with_host_stamp
829 with_localedir
830 enable_osx_universal_binaries
831 with_include_path
832 with_lib_path
833 with_pubcookie
834 with_web_bin
835 enable_debug
836 enable_optimization
837 enable_mouse
838 enable_quotas
839 enable_from_changing
840 enable_background_post
841 enable_keyboard_lock
842 enable_from_encoding
843 with_smtp_msa
844 with_smtp_msa_flags
845 with_npa
846 with_npa_flags
847 with_password_prog
848 with_simple_spellcheck
849 with_interactive_spellcheck
850 with_system_pinerc
851 with_system_fixed_pinerc
852 with_local_support_info
853 with_mailcheck_interval
854 with_checkpoint_interval
855 with_checkpoint_frequency
856 with_display_rows
857 with_display_columns
858 with_max_display_rows
859 with_max_display_columns
860 with_fill_column
861 with_max_fill_column
862 with_debug_level
863 with_debug_files
864 with_debug_file
865 with_forwarded_keyword
866 with_display_overlap
867 with_display_margin
868 with_default_fcc
869 with_default_save_folder
870 with_default_legacy_postponed_folder
871 with_default_postponed_folder
872 with_default_trash_folder
873 with_default_interrupted_mail
874 with_default_dead_letter_folder
875 with_default_mail_directory
876 with_default_inbox_name
877 with_default_signature_file
878 with_default_elm_style_save
879 with_default_header_in_reply
880 with_default_old_style_reply
881 with_default_use_only_domain_name
882 with_default_save_by_sender
883 with_default_sort_key
884 with_default_addressbook_sort_rule
885 with_default_folder_sort_rule
886 with_default_saved_message_name_rule
887 with_default_fcc_rule
888 with_default_standard_printer
889 with_default_ansi_printer
890 with_default_addressbook
891 with_default_local_fullname
892 with_default_local_address
893 with_default_keyboard_lock_count
894 with_default_remote_addressbook_history
895 with_default_html_directory
896 with_smime_public_cert_directory
897 with_smime_private_key_directory
898 with_smime_cacert_directory
899 with_default_printer
900 with_passfile
901 with_local_password_cache
902 with_local_password_cache_method
903 with_default_sshpath
904 with_default_sshcmd
905 with_ssl
906 with_ssl_dir
907 with_ssl_certs_dir
908 with_ssl_include_dir
909 with_ssl_lib_dir
910 with_encryption_minimum_version
911 with_encryption_maximum_version
912 with_encryption_range
913 with_krb5
914 with_krb5_dir
915 with_krb5_include_dir
916 with_krb5_lib_dir
917 with_ldap
918 with_ldap_dir
919 with_ldap_include_dir
920 with_ldap_lib_dir
921 with_smime
922 with_tcl
923 with_tcl_lib_dir
924 with_tcl_lib
925 with_tcl_include
926 with_supplied_regex
927 with_pthread
928 with_system_mail_directory
929 with_c_client_target
930 with_bundled_tools
931 with_ipv6
932 with_dlopen
933 with_ntlm
935 ac_precious_vars='build_alias
936 host_alias
937 target_alias
939 CFLAGS
940 LDFLAGS
941 LIBS
942 CPPFLAGS
943 LT_SYS_LIBRARY_PATH
944 CPP'
947 # Initialize some variables set by options.
948 ac_init_help=
949 ac_init_version=false
950 ac_unrecognized_opts=
951 ac_unrecognized_sep=
952 # The variables have the same names as the options, with
953 # dashes changed to underlines.
954 cache_file=/dev/null
955 exec_prefix=NONE
956 no_create=
957 no_recursion=
958 prefix=NONE
959 program_prefix=NONE
960 program_suffix=NONE
961 program_transform_name=s,x,x,
962 silent=
963 site=
964 srcdir=
965 verbose=
966 x_includes=NONE
967 x_libraries=NONE
969 # Installation directory options.
970 # These are left unexpanded so users can "make install exec_prefix=/foo"
971 # and all the variables that are supposed to be based on exec_prefix
972 # by default will actually change.
973 # Use braces instead of parens because sh, perl, etc. also accept them.
974 # (The list follows the same order as the GNU Coding Standards.)
975 bindir='${exec_prefix}/bin'
976 sbindir='${exec_prefix}/sbin'
977 libexecdir='${exec_prefix}/libexec'
978 datarootdir='${prefix}/share'
979 datadir='${datarootdir}'
980 sysconfdir='${prefix}/etc'
981 sharedstatedir='${prefix}/com'
982 localstatedir='${prefix}/var'
983 includedir='${prefix}/include'
984 oldincludedir='/usr/include'
985 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
986 infodir='${datarootdir}/info'
987 htmldir='${docdir}'
988 dvidir='${docdir}'
989 pdfdir='${docdir}'
990 psdir='${docdir}'
991 libdir='${exec_prefix}/lib'
992 localedir='${datarootdir}/locale'
993 mandir='${datarootdir}/man'
995 ac_prev=
996 ac_dashdash=
997 for ac_option
999 # If the previous option needs an argument, assign it.
1000 if test -n "$ac_prev"; then
1001 eval $ac_prev=\$ac_option
1002 ac_prev=
1003 continue
1006 case $ac_option in
1007 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1008 *=) ac_optarg= ;;
1009 *) ac_optarg=yes ;;
1010 esac
1012 # Accept the important Cygnus configure options, so we can diagnose typos.
1014 case $ac_dashdash$ac_option in
1016 ac_dashdash=yes ;;
1018 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1019 ac_prev=bindir ;;
1020 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1021 bindir=$ac_optarg ;;
1023 -build | --build | --buil | --bui | --bu)
1024 ac_prev=build_alias ;;
1025 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1026 build_alias=$ac_optarg ;;
1028 -cache-file | --cache-file | --cache-fil | --cache-fi \
1029 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1030 ac_prev=cache_file ;;
1031 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1032 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1033 cache_file=$ac_optarg ;;
1035 --config-cache | -C)
1036 cache_file=config.cache ;;
1038 -datadir | --datadir | --datadi | --datad)
1039 ac_prev=datadir ;;
1040 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1041 datadir=$ac_optarg ;;
1043 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1044 | --dataroo | --dataro | --datar)
1045 ac_prev=datarootdir ;;
1046 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1047 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1048 datarootdir=$ac_optarg ;;
1050 -disable-* | --disable-*)
1051 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1052 # Reject names that are not valid shell variable names.
1053 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1054 as_fn_error $? "invalid feature name: $ac_useropt"
1055 ac_useropt_orig=$ac_useropt
1056 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1057 case $ac_user_opts in
1059 "enable_$ac_useropt"
1060 "*) ;;
1061 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1062 ac_unrecognized_sep=', ';;
1063 esac
1064 eval enable_$ac_useropt=no ;;
1066 -docdir | --docdir | --docdi | --doc | --do)
1067 ac_prev=docdir ;;
1068 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1069 docdir=$ac_optarg ;;
1071 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1072 ac_prev=dvidir ;;
1073 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1074 dvidir=$ac_optarg ;;
1076 -enable-* | --enable-*)
1077 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1078 # Reject names that are not valid shell variable names.
1079 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1080 as_fn_error $? "invalid feature name: $ac_useropt"
1081 ac_useropt_orig=$ac_useropt
1082 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1083 case $ac_user_opts in
1085 "enable_$ac_useropt"
1086 "*) ;;
1087 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1088 ac_unrecognized_sep=', ';;
1089 esac
1090 eval enable_$ac_useropt=\$ac_optarg ;;
1092 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1093 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1094 | --exec | --exe | --ex)
1095 ac_prev=exec_prefix ;;
1096 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1097 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1098 | --exec=* | --exe=* | --ex=*)
1099 exec_prefix=$ac_optarg ;;
1101 -gas | --gas | --ga | --g)
1102 # Obsolete; use --with-gas.
1103 with_gas=yes ;;
1105 -help | --help | --hel | --he | -h)
1106 ac_init_help=long ;;
1107 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1108 ac_init_help=recursive ;;
1109 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1110 ac_init_help=short ;;
1112 -host | --host | --hos | --ho)
1113 ac_prev=host_alias ;;
1114 -host=* | --host=* | --hos=* | --ho=*)
1115 host_alias=$ac_optarg ;;
1117 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1118 ac_prev=htmldir ;;
1119 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1120 | --ht=*)
1121 htmldir=$ac_optarg ;;
1123 -includedir | --includedir | --includedi | --included | --include \
1124 | --includ | --inclu | --incl | --inc)
1125 ac_prev=includedir ;;
1126 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1127 | --includ=* | --inclu=* | --incl=* | --inc=*)
1128 includedir=$ac_optarg ;;
1130 -infodir | --infodir | --infodi | --infod | --info | --inf)
1131 ac_prev=infodir ;;
1132 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1133 infodir=$ac_optarg ;;
1135 -libdir | --libdir | --libdi | --libd)
1136 ac_prev=libdir ;;
1137 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1138 libdir=$ac_optarg ;;
1140 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1141 | --libexe | --libex | --libe)
1142 ac_prev=libexecdir ;;
1143 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1144 | --libexe=* | --libex=* | --libe=*)
1145 libexecdir=$ac_optarg ;;
1147 -localedir | --localedir | --localedi | --localed | --locale)
1148 ac_prev=localedir ;;
1149 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1150 localedir=$ac_optarg ;;
1152 -localstatedir | --localstatedir | --localstatedi | --localstated \
1153 | --localstate | --localstat | --localsta | --localst | --locals)
1154 ac_prev=localstatedir ;;
1155 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1156 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1157 localstatedir=$ac_optarg ;;
1159 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1160 ac_prev=mandir ;;
1161 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1162 mandir=$ac_optarg ;;
1164 -nfp | --nfp | --nf)
1165 # Obsolete; use --without-fp.
1166 with_fp=no ;;
1168 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1169 | --no-cr | --no-c | -n)
1170 no_create=yes ;;
1172 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1173 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1174 no_recursion=yes ;;
1176 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1177 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1178 | --oldin | --oldi | --old | --ol | --o)
1179 ac_prev=oldincludedir ;;
1180 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1181 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1182 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1183 oldincludedir=$ac_optarg ;;
1185 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1186 ac_prev=prefix ;;
1187 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1188 prefix=$ac_optarg ;;
1190 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1191 | --program-pre | --program-pr | --program-p)
1192 ac_prev=program_prefix ;;
1193 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1194 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1195 program_prefix=$ac_optarg ;;
1197 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1198 | --program-suf | --program-su | --program-s)
1199 ac_prev=program_suffix ;;
1200 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1201 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1202 program_suffix=$ac_optarg ;;
1204 -program-transform-name | --program-transform-name \
1205 | --program-transform-nam | --program-transform-na \
1206 | --program-transform-n | --program-transform- \
1207 | --program-transform | --program-transfor \
1208 | --program-transfo | --program-transf \
1209 | --program-trans | --program-tran \
1210 | --progr-tra | --program-tr | --program-t)
1211 ac_prev=program_transform_name ;;
1212 -program-transform-name=* | --program-transform-name=* \
1213 | --program-transform-nam=* | --program-transform-na=* \
1214 | --program-transform-n=* | --program-transform-=* \
1215 | --program-transform=* | --program-transfor=* \
1216 | --program-transfo=* | --program-transf=* \
1217 | --program-trans=* | --program-tran=* \
1218 | --progr-tra=* | --program-tr=* | --program-t=*)
1219 program_transform_name=$ac_optarg ;;
1221 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1222 ac_prev=pdfdir ;;
1223 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1224 pdfdir=$ac_optarg ;;
1226 -psdir | --psdir | --psdi | --psd | --ps)
1227 ac_prev=psdir ;;
1228 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1229 psdir=$ac_optarg ;;
1231 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1232 | -silent | --silent | --silen | --sile | --sil)
1233 silent=yes ;;
1235 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1236 ac_prev=sbindir ;;
1237 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1238 | --sbi=* | --sb=*)
1239 sbindir=$ac_optarg ;;
1241 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1242 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1243 | --sharedst | --shareds | --shared | --share | --shar \
1244 | --sha | --sh)
1245 ac_prev=sharedstatedir ;;
1246 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1247 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1248 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1249 | --sha=* | --sh=*)
1250 sharedstatedir=$ac_optarg ;;
1252 -site | --site | --sit)
1253 ac_prev=site ;;
1254 -site=* | --site=* | --sit=*)
1255 site=$ac_optarg ;;
1257 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1258 ac_prev=srcdir ;;
1259 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1260 srcdir=$ac_optarg ;;
1262 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1263 | --syscon | --sysco | --sysc | --sys | --sy)
1264 ac_prev=sysconfdir ;;
1265 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1266 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1267 sysconfdir=$ac_optarg ;;
1269 -target | --target | --targe | --targ | --tar | --ta | --t)
1270 ac_prev=target_alias ;;
1271 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1272 target_alias=$ac_optarg ;;
1274 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1275 verbose=yes ;;
1277 -version | --version | --versio | --versi | --vers | -V)
1278 ac_init_version=: ;;
1280 -with-* | --with-*)
1281 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1282 # Reject names that are not valid shell variable names.
1283 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1284 as_fn_error $? "invalid package name: $ac_useropt"
1285 ac_useropt_orig=$ac_useropt
1286 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1287 case $ac_user_opts in
1289 "with_$ac_useropt"
1290 "*) ;;
1291 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1292 ac_unrecognized_sep=', ';;
1293 esac
1294 eval with_$ac_useropt=\$ac_optarg ;;
1296 -without-* | --without-*)
1297 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1298 # Reject names that are not valid shell variable names.
1299 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1300 as_fn_error $? "invalid package name: $ac_useropt"
1301 ac_useropt_orig=$ac_useropt
1302 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1303 case $ac_user_opts in
1305 "with_$ac_useropt"
1306 "*) ;;
1307 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1308 ac_unrecognized_sep=', ';;
1309 esac
1310 eval with_$ac_useropt=no ;;
1312 --x)
1313 # Obsolete; use --with-x.
1314 with_x=yes ;;
1316 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1317 | --x-incl | --x-inc | --x-in | --x-i)
1318 ac_prev=x_includes ;;
1319 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1320 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1321 x_includes=$ac_optarg ;;
1323 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1324 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1325 ac_prev=x_libraries ;;
1326 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1327 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1328 x_libraries=$ac_optarg ;;
1330 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1331 Try \`$0 --help' for more information"
1334 *=*)
1335 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1336 # Reject names that are not valid shell variable names.
1337 case $ac_envvar in #(
1338 '' | [0-9]* | *[!_$as_cr_alnum]* )
1339 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1340 esac
1341 eval $ac_envvar=\$ac_optarg
1342 export $ac_envvar ;;
1345 # FIXME: should be removed in autoconf 3.0.
1346 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1347 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1348 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1349 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1352 esac
1353 done
1355 if test -n "$ac_prev"; then
1356 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1357 as_fn_error $? "missing argument to $ac_option"
1360 if test -n "$ac_unrecognized_opts"; then
1361 case $enable_option_checking in
1362 no) ;;
1363 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1364 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1365 esac
1368 # Check all directory arguments for consistency.
1369 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1370 datadir sysconfdir sharedstatedir localstatedir includedir \
1371 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1372 libdir localedir mandir
1374 eval ac_val=\$$ac_var
1375 # Remove trailing slashes.
1376 case $ac_val in
1377 */ )
1378 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1379 eval $ac_var=\$ac_val;;
1380 esac
1381 # Be sure to have absolute directory names.
1382 case $ac_val in
1383 [\\/$]* | ?:[\\/]* ) continue;;
1384 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1385 esac
1386 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1387 done
1389 # There might be people who depend on the old broken behavior: `$host'
1390 # used to hold the argument of --host etc.
1391 # FIXME: To remove some day.
1392 build=$build_alias
1393 host=$host_alias
1394 target=$target_alias
1396 # FIXME: To remove some day.
1397 if test "x$host_alias" != x; then
1398 if test "x$build_alias" = x; then
1399 cross_compiling=maybe
1400 elif test "x$build_alias" != "x$host_alias"; then
1401 cross_compiling=yes
1405 ac_tool_prefix=
1406 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1408 test "$silent" = yes && exec 6>/dev/null
1411 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1412 ac_ls_di=`ls -di .` &&
1413 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1414 as_fn_error $? "working directory cannot be determined"
1415 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1416 as_fn_error $? "pwd does not report name of working directory"
1419 # Find the source files, if location was not specified.
1420 if test -z "$srcdir"; then
1421 ac_srcdir_defaulted=yes
1422 # Try the directory containing this script, then the parent directory.
1423 ac_confdir=`$as_dirname -- "$as_myself" ||
1424 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1425 X"$as_myself" : 'X\(//\)[^/]' \| \
1426 X"$as_myself" : 'X\(//\)$' \| \
1427 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1428 $as_echo X"$as_myself" |
1429 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1430 s//\1/
1433 /^X\(\/\/\)[^/].*/{
1434 s//\1/
1437 /^X\(\/\/\)$/{
1438 s//\1/
1441 /^X\(\/\).*/{
1442 s//\1/
1445 s/.*/./; q'`
1446 srcdir=$ac_confdir
1447 if test ! -r "$srcdir/$ac_unique_file"; then
1448 srcdir=..
1450 else
1451 ac_srcdir_defaulted=no
1453 if test ! -r "$srcdir/$ac_unique_file"; then
1454 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1455 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1457 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1458 ac_abs_confdir=`(
1459 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1460 pwd)`
1461 # When building in place, set srcdir=.
1462 if test "$ac_abs_confdir" = "$ac_pwd"; then
1463 srcdir=.
1465 # Remove unnecessary trailing slashes from srcdir.
1466 # Double slashes in file names in object file debugging info
1467 # mess up M-x gdb in Emacs.
1468 case $srcdir in
1469 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1470 esac
1471 for ac_var in $ac_precious_vars; do
1472 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1473 eval ac_env_${ac_var}_value=\$${ac_var}
1474 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1475 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1476 done
1479 # Report the --help message.
1481 if test "$ac_init_help" = "long"; then
1482 # Omit some internal or obsolete options to make the list less imposing.
1483 # This message is too long to be a string in the A/UX 3.1 sh.
1484 cat <<_ACEOF
1485 \`configure' configures alpine 2.25 to adapt to many kinds of systems.
1487 Usage: $0 [OPTION]... [VAR=VALUE]...
1489 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1490 VAR=VALUE. See below for descriptions of some of the useful variables.
1492 Defaults for the options are specified in brackets.
1494 Configuration:
1495 -h, --help display this help and exit
1496 --help=short display options specific to this package
1497 --help=recursive display the short help of all the included packages
1498 -V, --version display version information and exit
1499 -q, --quiet, --silent do not print \`checking ...' messages
1500 --cache-file=FILE cache test results in FILE [disabled]
1501 -C, --config-cache alias for \`--cache-file=config.cache'
1502 -n, --no-create do not create output files
1503 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1505 Installation directories:
1506 --prefix=PREFIX install architecture-independent files in PREFIX
1507 [$ac_default_prefix]
1508 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1509 [PREFIX]
1511 By default, \`make install' will install all the files in
1512 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1513 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1514 for instance \`--prefix=\$HOME'.
1516 For better control, use the options below.
1518 Fine tuning of the installation directories:
1519 --bindir=DIR user executables [EPREFIX/bin]
1520 --sbindir=DIR system admin executables [EPREFIX/sbin]
1521 --libexecdir=DIR program executables [EPREFIX/libexec]
1522 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1523 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1524 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1525 --libdir=DIR object code libraries [EPREFIX/lib]
1526 --includedir=DIR C header files [PREFIX/include]
1527 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1528 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1529 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1530 --infodir=DIR info documentation [DATAROOTDIR/info]
1531 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1532 --mandir=DIR man documentation [DATAROOTDIR/man]
1533 --docdir=DIR documentation root [DATAROOTDIR/doc/alpine]
1534 --htmldir=DIR html documentation [DOCDIR]
1535 --dvidir=DIR dvi documentation [DOCDIR]
1536 --pdfdir=DIR pdf documentation [DOCDIR]
1537 --psdir=DIR ps documentation [DOCDIR]
1538 _ACEOF
1540 cat <<\_ACEOF
1542 Program names:
1543 --program-prefix=PREFIX prepend PREFIX to installed program names
1544 --program-suffix=SUFFIX append SUFFIX to installed program names
1545 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1547 System types:
1548 --build=BUILD configure for building on BUILD [guessed]
1549 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1550 _ACEOF
1553 if test -n "$ac_init_help"; then
1554 case $ac_init_help in
1555 short | recursive ) echo "Configuration of alpine 2.25:";;
1556 esac
1557 cat <<\_ACEOF
1559 Optional Features:
1560 --disable-option-checking ignore unrecognized --enable/--with options
1561 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1562 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1563 --enable-silent-rules less verbose build output (undo: "make V=1")
1564 --disable-silent-rules verbose build output (undo: "make V=0")
1565 --enable-maintainer-mode
1566 enable make rules and dependencies not useful (and
1567 sometimes confusing) to the casual installer
1568 --enable-dependency-tracking
1569 do not reject slow dependency extractors
1570 --disable-dependency-tracking
1571 speeds up one-time build
1572 --enable-shared[=PKGS] build shared libraries [default=yes]
1573 --enable-static[=PKGS] build static libraries [default=yes]
1574 --enable-fast-install[=PKGS]
1575 optimize for fast installation [default=yes]
1576 --disable-libtool-lock avoid locking (might break parallel builds)
1577 --disable-nls do not use Native Language Support
1578 --disable-rpath do not hardcode runtime library paths
1579 --enable-dmalloc Enable dmalloc debugging
1580 --enable-osx-universal-binaries
1581 Produce universal binaries under OS X [[default=no]]
1582 --disable-debug Exclude debug from the binary
1583 --disable-optimization Exclude optimizing compiler flags
1584 --disable-mouse Disable mouse support
1585 --enable-quotas Enable disk quota checking on startup
1586 --disable-from-changing Disallow users changing From address
1587 --disable-background-post
1588 Disable background posting
1589 --disable-keyboard-lock Disable keyboard locking
1590 --enable-from-encoding Enable From encoding in sent messages
1592 Optional Packages:
1593 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1594 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1595 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1596 both]
1597 --with-aix-soname=aix|svr4|both
1598 shared library versioning (aka "SONAME") variant to
1599 provide on AIX, [default=aix].
1600 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1601 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1602 compiler's sysroot if not specified).
1603 --with-gnu-ld assume the C compiler uses GNU ld default=no
1604 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1605 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1606 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1607 --without-libintl-prefix don't search for libintl in includedir and libdir
1608 --with-dmalloc-dir=DIR Root of dmalloc lib/include path
1609 --with-date-stamp=DATE Set this as the date this program was built.
1610 Default: output of `date`
1611 --with-host-stamp=HOST Set name of computer for compilation. Default:
1612 output of `hostname`
1613 --with-localedir=DIR Name of gettext locale directory
1614 --with-include-path=PATHS
1615 Colon-separated list of directories used for include
1616 file search
1617 --with-lib-path=PATHS Colon-separated list of directories used for library
1618 search
1619 --with-pubcookie Include support for UW-Pubcookie Web Authentication
1620 --with-web-bin=PATH Directory to hold Web Alpine component binary files
1621 --with-smtp-msa=PATH Local Mail Submission Agent (sendmail)
1622 --with-smtp-msa-flags=FLAGS
1623 MSA flags for SMTP on stdin/stdout (-bs -odb -oem)
1624 --with-npa=PATH Posting agent when no nntp-servers defined (inews)
1625 --with-npa-flags=FLAGS Flags to allow posting via local agent (-h)
1626 --with-password-prog=PATH
1627 Password change program (/bin/passwd)
1628 --with-simple-spellcheck=PROG
1629 Spellcheck program reads stdin, emits misspellings
1630 on stdout
1631 --with-interactive-spellcheck=PROG
1632 Interactive, filewise spell checker
1633 --with-system-pinerc=VALUE
1634 System pinerc (/usr/local/lib/pine.conf)
1635 --with-system-fixed-pinerc=VALUE
1636 System fixed pinerc (/usr/local/lib/pine.conf.fixed)
1637 --with-local-support-info=VALUE
1638 Local Support Info File (/usr/local/lib/pine.info)
1639 --with-mailcheck-interval=VALUE
1640 Specify default mail-check-interval (150)
1641 --with-checkpoint-interval=VALUE
1642 Specify default checkpoint-interval (420)
1643 --with-checkpoint-frequency=VALUE
1644 State change count before checkpoint (12)
1645 --with-display-rows=VALUE
1646 Initial rows on display (24)
1647 --with-display-columns=VALUE
1648 Initial columns on display (80)
1649 --with-max-display-rows=VALUE
1650 Maximum display rows (200)
1651 --with-max-display-columns=VALUE
1652 Maximum display columns (500)
1653 --with-fill-column=VALUE
1654 Default fill column (74)
1655 --with-max_fill-column=VALUE
1656 Maximum fill column (80)
1657 --with-debug-level=VALUE
1658 Specify default debug verbosity level (2)
1659 --with-debug-files=VALUE
1660 Specify number of debug files (4)
1661 --with-debug-file=VALUE Specify debug file name (.pine-debug)
1662 --with-forwarded-keyword=VALUE
1663 IMAP (c-client) keyword to store forwarded status
1664 ("\$Forwarded")
1665 --with-display-overlap=VALUE
1666 Lines preserved while paging (2)
1667 --with-display-margin=VALUE
1668 Lines visible while scrolling (0)
1669 --with-default-fcc=VALUE
1670 Default sent mail folder (sent-mail)
1671 --with-default-save-folder=VALUE
1672 Default save folder (saved-messages)
1673 --with-default-legacy-postponed-folder=VALUE
1674 Pre Pine 3.90 postponed folder (postponed-mail)
1675 --with-default-postponed-folder=VALUE
1676 Default postponed folder (postponed-msgs)
1677 --with-default-trash-folder=VALUE
1678 Default Trash folder for Web Alpine (Trash)
1679 --with-default-interrupted-mail=VALUE
1680 Default folder for interrupted mail
1681 (.pine-interrupted-mail)
1682 --with-default-dead-letter-folder=VALUE
1683 Default dead letter folder (dead.letter)
1684 --with-default-mail-directory=VALUE
1685 Default mail directory (mail)
1686 --with-default-inbox-name=VALUE
1687 Default inbox name (INBOX)
1688 --with-default-signature-file=VALUE
1689 Default signature file (.signature)
1690 --with-default-elm-style-save=VALUE
1691 Default to Elm style save (no)
1692 --with-default-header-in-reply=VALUE
1693 Include header in reply (no)
1694 --with-default-old-style-reply=VALUE
1695 Default to old style reply (no)
1696 --with-default-use-only-domain-name=VALUE
1697 Default to using only the domain name (no)
1698 --with-default-save-by-sender=VALUE
1699 Default to save by sender (no)
1700 --with-default-sort-key=VALUE
1701 Default sort key (arrival)
1702 --with-default-addressbook-sort-rule=VALUE
1703 Default addressbook sort rule
1704 (fullname-with-lists-last)
1705 --with-default-folder-sort-rule=VALUE
1706 Default folder sort rule (alphabetical)
1707 --with-default-saved-message-name-rule=VALUE
1708 Default saved message name rule (default-folder)
1709 --with-default-fcc-rule=VALUE
1710 Default fcc rule (default-fcc)
1711 --with-default-standard-printer=VALUE
1712 Default standard printern (lpr)
1713 --with-default-ansi-printer=VALUE
1714 ANSI printer definition (attached-to-ansi)
1715 --with-default-addressbook=VALUE
1716 Default addressbook name (.addressbook)
1717 --with-default-local-fullname=VALUE
1718 Default local support fullname ("Local Support")
1719 --with-default-local-address=VALUE
1720 Default local support address (postmaster)
1721 --with-default-keyboard-lock-count=VALUE
1722 Default keyboard lock count (1)
1723 --with-default-remote-addressbook-history=VALUE
1724 Default address book history count (3)
1725 --with-default-html-directory=VALUE
1726 Default Directory to Temporarily Save HTML Messages
1727 (.alpine-html)
1728 --with-smime-public-cert-directory=VALUE
1729 Default Public Cert Directory (.alpine-smime/public)
1730 --with-smime-private-key-directory=VALUE
1731 Default Private Key Directory
1732 (.alpine-smime/private)
1733 --with-smime-cacert-directory=VALUE
1734 Default Cert Authority Directory (.alpine-smime/ca)
1735 --with-default-printer=VALUE
1736 Default printer (ANSI_PRINTER)
1737 --with-passfile=FILENAME
1738 Password cache file (recommended when S/MIME is
1739 enabled and configured)
1740 --without-local-password-cache
1741 Disable OS-specific password cache, if supported
1742 --with-local-password-cache-method
1743 OS-specific credential cache (OSX=APPLEKEYCHAIN,
1744 Windows=WINCRED)
1745 --with-default-sshpath=FILENAME
1746 set default value of ssh command path (defining
1747 should cause ssh to be preferred to rsh)
1748 --with-default-sshcmd=PERCENT_S_STRING
1749 set default value of ssh command string (usually "%s
1750 %s -l %s exec /etc/r%sd")
1751 --without-ssl Disable SSL support (OpenSSL)
1752 --with-ssl-dir=DIR Root of SSL lib/include path
1753 --with-ssl-certs-dir=DIR
1754 Path to SSL certificate directory
1755 --with-ssl-include-dir=DIR
1756 SSL include file path
1757 --with-ssl-lib-dir=DIR SSL library path
1758 --encryption-minimum-version=VERSION
1759 Minimum SSL encryption version. Default: no_min
1760 --encryption-maximum-version=VERSION
1761 Maximum SSL encryption version. Default: no_max
1762 --with-encryption-range=VALUE
1763 Default Encryption Range ($alpine_RANGE )
1764 --without-krb5 Disable Kerberos support
1765 --with-krb5-dir=DIR Root of Kerberos lib/include path
1766 --with-krb5-include-dir=DIR
1767 Kerberos include file path
1768 --with-krb5-lib-dir=DIR Kerberos library path
1769 --without-ldap Disable LDAP query support
1770 --with-ldap-dir=DIR Root of LDAP lib/include path
1771 --with-ldap-include-dir=DIR
1772 Directory containing LDAP include files
1773 --with-ldap-lib-dir=DIR LDAP library path
1774 --without-smime Disable S/MIME
1775 --without-tcl Disable TCL, thus Web Alpine support
1776 --with-tcl-lib-dir=PATH Specific TCL Librar dir, like \"/usr/opt/tcl86/lib\"
1777 --with-tcl-lib=LIBRARY Specific TCL Library, like \"tcl8.6\"
1778 --with-tcl-include=DIR Directory containing TCL include files
1779 --with-supplied-regex Use regex library supplied with alpine
1780 --without-pthread Do NOT test for nor build with POSIX thread support
1781 --with-system-mail-directory=DIR
1782 Directory where local mail is delivered
1783 --with-c-client-target=TARGET
1784 IMAP build target (see imap/Makefile)
1785 --with-bundled-tools Build additional tools (mtest, imapd, etc.) Default:
1786 --with-bundled-tools=no
1787 --without-ipv6 Disable IPv6, primarily to work around resolver
1788 problems
1789 --without-dlopen Do not test for dlopen because this system does not
1790 need it
1791 --without-ntlm Disable NTLM client support
1793 Some influential environment variables:
1794 CC C compiler command
1795 CFLAGS C compiler flags
1796 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1797 nonstandard directory <lib dir>
1798 LIBS libraries to pass to the linker, e.g. -l<library>
1799 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1800 you have headers in a nonstandard directory <include dir>
1801 LT_SYS_LIBRARY_PATH
1802 User-defined run-time library search path.
1803 CPP C preprocessor
1805 Use these variables to override the choices made by `configure' or to help
1806 it to find libraries and programs with nonstandard names/locations.
1808 Report bugs to <chappa@washington.edu>.
1809 _ACEOF
1810 ac_status=$?
1813 if test "$ac_init_help" = "recursive"; then
1814 # If there are subdirs, report their specific --help.
1815 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1816 test -d "$ac_dir" ||
1817 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1818 continue
1819 ac_builddir=.
1821 case "$ac_dir" in
1822 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1824 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1825 # A ".." for each directory in $ac_dir_suffix.
1826 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1827 case $ac_top_builddir_sub in
1828 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1829 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1830 esac ;;
1831 esac
1832 ac_abs_top_builddir=$ac_pwd
1833 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1834 # for backward compatibility:
1835 ac_top_builddir=$ac_top_build_prefix
1837 case $srcdir in
1838 .) # We are building in place.
1839 ac_srcdir=.
1840 ac_top_srcdir=$ac_top_builddir_sub
1841 ac_abs_top_srcdir=$ac_pwd ;;
1842 [\\/]* | ?:[\\/]* ) # Absolute name.
1843 ac_srcdir=$srcdir$ac_dir_suffix;
1844 ac_top_srcdir=$srcdir
1845 ac_abs_top_srcdir=$srcdir ;;
1846 *) # Relative name.
1847 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1848 ac_top_srcdir=$ac_top_build_prefix$srcdir
1849 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1850 esac
1851 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1853 cd "$ac_dir" || { ac_status=$?; continue; }
1854 # Check for guested configure.
1855 if test -f "$ac_srcdir/configure.gnu"; then
1856 echo &&
1857 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1858 elif test -f "$ac_srcdir/configure"; then
1859 echo &&
1860 $SHELL "$ac_srcdir/configure" --help=recursive
1861 else
1862 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1863 fi || ac_status=$?
1864 cd "$ac_pwd" || { ac_status=$?; break; }
1865 done
1868 test -n "$ac_init_help" && exit $ac_status
1869 if $ac_init_version; then
1870 cat <<\_ACEOF
1871 alpine configure 2.25
1872 generated by GNU Autoconf 2.69
1874 Copyright (C) 2012 Free Software Foundation, Inc.
1875 This configure script is free software; the Free Software Foundation
1876 gives unlimited permission to copy, distribute and modify it.
1877 _ACEOF
1878 exit
1881 ## ------------------------ ##
1882 ## Autoconf initialization. ##
1883 ## ------------------------ ##
1885 # ac_fn_c_try_compile LINENO
1886 # --------------------------
1887 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1888 ac_fn_c_try_compile ()
1890 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1891 rm -f conftest.$ac_objext
1892 if { { ac_try="$ac_compile"
1893 case "(($ac_try" in
1894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1895 *) ac_try_echo=$ac_try;;
1896 esac
1897 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1898 $as_echo "$ac_try_echo"; } >&5
1899 (eval "$ac_compile") 2>conftest.err
1900 ac_status=$?
1901 if test -s conftest.err; then
1902 grep -v '^ *+' conftest.err >conftest.er1
1903 cat conftest.er1 >&5
1904 mv -f conftest.er1 conftest.err
1906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1907 test $ac_status = 0; } && {
1908 test -z "$ac_c_werror_flag" ||
1909 test ! -s conftest.err
1910 } && test -s conftest.$ac_objext; then :
1911 ac_retval=0
1912 else
1913 $as_echo "$as_me: failed program was:" >&5
1914 sed 's/^/| /' conftest.$ac_ext >&5
1916 ac_retval=1
1918 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1919 as_fn_set_status $ac_retval
1921 } # ac_fn_c_try_compile
1923 # ac_fn_c_try_link LINENO
1924 # -----------------------
1925 # Try to link conftest.$ac_ext, and return whether this succeeded.
1926 ac_fn_c_try_link ()
1928 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1929 rm -f conftest.$ac_objext conftest$ac_exeext
1930 if { { ac_try="$ac_link"
1931 case "(($ac_try" in
1932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1933 *) ac_try_echo=$ac_try;;
1934 esac
1935 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1936 $as_echo "$ac_try_echo"; } >&5
1937 (eval "$ac_link") 2>conftest.err
1938 ac_status=$?
1939 if test -s conftest.err; then
1940 grep -v '^ *+' conftest.err >conftest.er1
1941 cat conftest.er1 >&5
1942 mv -f conftest.er1 conftest.err
1944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1945 test $ac_status = 0; } && {
1946 test -z "$ac_c_werror_flag" ||
1947 test ! -s conftest.err
1948 } && test -s conftest$ac_exeext && {
1949 test "$cross_compiling" = yes ||
1950 test -x conftest$ac_exeext
1951 }; then :
1952 ac_retval=0
1953 else
1954 $as_echo "$as_me: failed program was:" >&5
1955 sed 's/^/| /' conftest.$ac_ext >&5
1957 ac_retval=1
1959 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1960 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1961 # interfere with the next link command; also delete a directory that is
1962 # left behind by Apple's compiler. We do this before executing the actions.
1963 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1964 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1965 as_fn_set_status $ac_retval
1967 } # ac_fn_c_try_link
1969 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1970 # -------------------------------------------------------
1971 # Tests whether HEADER exists and can be compiled using the include files in
1972 # INCLUDES, setting the cache variable VAR accordingly.
1973 ac_fn_c_check_header_compile ()
1975 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1977 $as_echo_n "checking for $2... " >&6; }
1978 if eval \${$3+:} false; then :
1979 $as_echo_n "(cached) " >&6
1980 else
1981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1982 /* end confdefs.h. */
1984 #include <$2>
1985 _ACEOF
1986 if ac_fn_c_try_compile "$LINENO"; then :
1987 eval "$3=yes"
1988 else
1989 eval "$3=no"
1991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1993 eval ac_res=\$$3
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1995 $as_echo "$ac_res" >&6; }
1996 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1998 } # ac_fn_c_check_header_compile
2000 # ac_fn_c_try_cpp LINENO
2001 # ----------------------
2002 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2003 ac_fn_c_try_cpp ()
2005 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2006 if { { ac_try="$ac_cpp conftest.$ac_ext"
2007 case "(($ac_try" in
2008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2009 *) ac_try_echo=$ac_try;;
2010 esac
2011 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2012 $as_echo "$ac_try_echo"; } >&5
2013 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2014 ac_status=$?
2015 if test -s conftest.err; then
2016 grep -v '^ *+' conftest.err >conftest.er1
2017 cat conftest.er1 >&5
2018 mv -f conftest.er1 conftest.err
2020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2021 test $ac_status = 0; } > conftest.i && {
2022 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2023 test ! -s conftest.err
2024 }; then :
2025 ac_retval=0
2026 else
2027 $as_echo "$as_me: failed program was:" >&5
2028 sed 's/^/| /' conftest.$ac_ext >&5
2030 ac_retval=1
2032 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2033 as_fn_set_status $ac_retval
2035 } # ac_fn_c_try_cpp
2037 # ac_fn_c_try_run LINENO
2038 # ----------------------
2039 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2040 # that executables *can* be run.
2041 ac_fn_c_try_run ()
2043 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2044 if { { ac_try="$ac_link"
2045 case "(($ac_try" in
2046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2047 *) ac_try_echo=$ac_try;;
2048 esac
2049 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2050 $as_echo "$ac_try_echo"; } >&5
2051 (eval "$ac_link") 2>&5
2052 ac_status=$?
2053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2054 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2055 { { case "(($ac_try" in
2056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2057 *) ac_try_echo=$ac_try;;
2058 esac
2059 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2060 $as_echo "$ac_try_echo"; } >&5
2061 (eval "$ac_try") 2>&5
2062 ac_status=$?
2063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2064 test $ac_status = 0; }; }; then :
2065 ac_retval=0
2066 else
2067 $as_echo "$as_me: program exited with status $ac_status" >&5
2068 $as_echo "$as_me: failed program was:" >&5
2069 sed 's/^/| /' conftest.$ac_ext >&5
2071 ac_retval=$ac_status
2073 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2074 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2075 as_fn_set_status $ac_retval
2077 } # ac_fn_c_try_run
2079 # ac_fn_c_check_func LINENO FUNC VAR
2080 # ----------------------------------
2081 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2082 ac_fn_c_check_func ()
2084 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2086 $as_echo_n "checking for $2... " >&6; }
2087 if eval \${$3+:} false; then :
2088 $as_echo_n "(cached) " >&6
2089 else
2090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2091 /* end confdefs.h. */
2092 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2093 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2094 #define $2 innocuous_$2
2096 /* System header to define __stub macros and hopefully few prototypes,
2097 which can conflict with char $2 (); below.
2098 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2099 <limits.h> exists even on freestanding compilers. */
2101 #ifdef __STDC__
2102 # include <limits.h>
2103 #else
2104 # include <assert.h>
2105 #endif
2107 #undef $2
2109 /* Override any GCC internal prototype to avoid an error.
2110 Use char because int might match the return type of a GCC
2111 builtin and then its argument prototype would still apply. */
2112 #ifdef __cplusplus
2113 extern "C"
2114 #endif
2115 char $2 ();
2116 /* The GNU C library defines this for functions which it implements
2117 to always fail with ENOSYS. Some functions are actually named
2118 something starting with __ and the normal name is an alias. */
2119 #if defined __stub_$2 || defined __stub___$2
2120 choke me
2121 #endif
2124 main ()
2126 return $2 ();
2128 return 0;
2130 _ACEOF
2131 if ac_fn_c_try_link "$LINENO"; then :
2132 eval "$3=yes"
2133 else
2134 eval "$3=no"
2136 rm -f core conftest.err conftest.$ac_objext \
2137 conftest$ac_exeext conftest.$ac_ext
2139 eval ac_res=\$$3
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2141 $as_echo "$ac_res" >&6; }
2142 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2144 } # ac_fn_c_check_func
2146 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2147 # -------------------------------------------------------
2148 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2149 # the include files in INCLUDES and setting the cache variable VAR
2150 # accordingly.
2151 ac_fn_c_check_header_mongrel ()
2153 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2154 if eval \${$3+:} false; then :
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2156 $as_echo_n "checking for $2... " >&6; }
2157 if eval \${$3+:} false; then :
2158 $as_echo_n "(cached) " >&6
2160 eval ac_res=\$$3
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2162 $as_echo "$ac_res" >&6; }
2163 else
2164 # Is the header compilable?
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2166 $as_echo_n "checking $2 usability... " >&6; }
2167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2168 /* end confdefs.h. */
2170 #include <$2>
2171 _ACEOF
2172 if ac_fn_c_try_compile "$LINENO"; then :
2173 ac_header_compiler=yes
2174 else
2175 ac_header_compiler=no
2177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2179 $as_echo "$ac_header_compiler" >&6; }
2181 # Is the header present?
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2183 $as_echo_n "checking $2 presence... " >&6; }
2184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2185 /* end confdefs.h. */
2186 #include <$2>
2187 _ACEOF
2188 if ac_fn_c_try_cpp "$LINENO"; then :
2189 ac_header_preproc=yes
2190 else
2191 ac_header_preproc=no
2193 rm -f conftest.err conftest.i conftest.$ac_ext
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2195 $as_echo "$ac_header_preproc" >&6; }
2197 # So? What about this header?
2198 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2199 yes:no: )
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2201 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2203 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2205 no:yes:* )
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2207 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2209 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2211 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2213 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2215 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2216 ( $as_echo "## ------------------------------------ ##
2217 ## Report this to chappa@washington.edu ##
2218 ## ------------------------------------ ##"
2219 ) | sed "s/^/$as_me: WARNING: /" >&2
2221 esac
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2223 $as_echo_n "checking for $2... " >&6; }
2224 if eval \${$3+:} false; then :
2225 $as_echo_n "(cached) " >&6
2226 else
2227 eval "$3=\$ac_header_compiler"
2229 eval ac_res=\$$3
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2231 $as_echo "$ac_res" >&6; }
2233 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2235 } # ac_fn_c_check_header_mongrel
2237 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2238 # -------------------------------------------
2239 # Tests whether TYPE exists after having included INCLUDES, setting cache
2240 # variable VAR accordingly.
2241 ac_fn_c_check_type ()
2243 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2245 $as_echo_n "checking for $2... " >&6; }
2246 if eval \${$3+:} false; then :
2247 $as_echo_n "(cached) " >&6
2248 else
2249 eval "$3=no"
2250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2251 /* end confdefs.h. */
2254 main ()
2256 if (sizeof ($2))
2257 return 0;
2259 return 0;
2261 _ACEOF
2262 if ac_fn_c_try_compile "$LINENO"; then :
2263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2264 /* end confdefs.h. */
2267 main ()
2269 if (sizeof (($2)))
2270 return 0;
2272 return 0;
2274 _ACEOF
2275 if ac_fn_c_try_compile "$LINENO"; then :
2277 else
2278 eval "$3=yes"
2280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2284 eval ac_res=\$$3
2285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2286 $as_echo "$ac_res" >&6; }
2287 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2289 } # ac_fn_c_check_type
2291 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2292 # --------------------------------------------
2293 # Tries to find the compile-time value of EXPR in a program that includes
2294 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2295 # computed
2296 ac_fn_c_compute_int ()
2298 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2299 if test "$cross_compiling" = yes; then
2300 # Depending upon the size, compute the lo and hi bounds.
2301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2302 /* end confdefs.h. */
2305 main ()
2307 static int test_array [1 - 2 * !(($2) >= 0)];
2308 test_array [0] = 0;
2309 return test_array [0];
2312 return 0;
2314 _ACEOF
2315 if ac_fn_c_try_compile "$LINENO"; then :
2316 ac_lo=0 ac_mid=0
2317 while :; do
2318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2319 /* end confdefs.h. */
2322 main ()
2324 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2325 test_array [0] = 0;
2326 return test_array [0];
2329 return 0;
2331 _ACEOF
2332 if ac_fn_c_try_compile "$LINENO"; then :
2333 ac_hi=$ac_mid; break
2334 else
2335 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2336 if test $ac_lo -le $ac_mid; then
2337 ac_lo= ac_hi=
2338 break
2340 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2343 done
2344 else
2345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2346 /* end confdefs.h. */
2349 main ()
2351 static int test_array [1 - 2 * !(($2) < 0)];
2352 test_array [0] = 0;
2353 return test_array [0];
2356 return 0;
2358 _ACEOF
2359 if ac_fn_c_try_compile "$LINENO"; then :
2360 ac_hi=-1 ac_mid=-1
2361 while :; do
2362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2363 /* end confdefs.h. */
2366 main ()
2368 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2369 test_array [0] = 0;
2370 return test_array [0];
2373 return 0;
2375 _ACEOF
2376 if ac_fn_c_try_compile "$LINENO"; then :
2377 ac_lo=$ac_mid; break
2378 else
2379 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2380 if test $ac_mid -le $ac_hi; then
2381 ac_lo= ac_hi=
2382 break
2384 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2387 done
2388 else
2389 ac_lo= ac_hi=
2391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2394 # Binary search between lo and hi bounds.
2395 while test "x$ac_lo" != "x$ac_hi"; do
2396 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2398 /* end confdefs.h. */
2401 main ()
2403 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2404 test_array [0] = 0;
2405 return test_array [0];
2408 return 0;
2410 _ACEOF
2411 if ac_fn_c_try_compile "$LINENO"; then :
2412 ac_hi=$ac_mid
2413 else
2414 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2417 done
2418 case $ac_lo in #((
2419 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2420 '') ac_retval=1 ;;
2421 esac
2422 else
2423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2424 /* end confdefs.h. */
2426 static long int longval () { return $2; }
2427 static unsigned long int ulongval () { return $2; }
2428 #include <stdio.h>
2429 #include <stdlib.h>
2431 main ()
2434 FILE *f = fopen ("conftest.val", "w");
2435 if (! f)
2436 return 1;
2437 if (($2) < 0)
2439 long int i = longval ();
2440 if (i != ($2))
2441 return 1;
2442 fprintf (f, "%ld", i);
2444 else
2446 unsigned long int i = ulongval ();
2447 if (i != ($2))
2448 return 1;
2449 fprintf (f, "%lu", i);
2451 /* Do not output a trailing newline, as this causes \r\n confusion
2452 on some platforms. */
2453 return ferror (f) || fclose (f) != 0;
2456 return 0;
2458 _ACEOF
2459 if ac_fn_c_try_run "$LINENO"; then :
2460 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2461 else
2462 ac_retval=1
2464 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2465 conftest.$ac_objext conftest.beam conftest.$ac_ext
2466 rm -f conftest.val
2469 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2470 as_fn_set_status $ac_retval
2472 } # ac_fn_c_compute_int
2473 cat >config.log <<_ACEOF
2474 This file contains any messages produced by compilers while
2475 running configure, to aid debugging if configure makes a mistake.
2477 It was created by alpine $as_me 2.25, which was
2478 generated by GNU Autoconf 2.69. Invocation command line was
2480 $ $0 $@
2482 _ACEOF
2483 exec 5>>config.log
2485 cat <<_ASUNAME
2486 ## --------- ##
2487 ## Platform. ##
2488 ## --------- ##
2490 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2491 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2492 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2493 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2494 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2496 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2497 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2499 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2500 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2501 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2502 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2503 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2504 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2505 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2507 _ASUNAME
2509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2510 for as_dir in $PATH
2512 IFS=$as_save_IFS
2513 test -z "$as_dir" && as_dir=.
2514 $as_echo "PATH: $as_dir"
2515 done
2516 IFS=$as_save_IFS
2518 } >&5
2520 cat >&5 <<_ACEOF
2523 ## ----------- ##
2524 ## Core tests. ##
2525 ## ----------- ##
2527 _ACEOF
2530 # Keep a trace of the command line.
2531 # Strip out --no-create and --no-recursion so they do not pile up.
2532 # Strip out --silent because we don't want to record it for future runs.
2533 # Also quote any args containing shell meta-characters.
2534 # Make two passes to allow for proper duplicate-argument suppression.
2535 ac_configure_args=
2536 ac_configure_args0=
2537 ac_configure_args1=
2538 ac_must_keep_next=false
2539 for ac_pass in 1 2
2541 for ac_arg
2543 case $ac_arg in
2544 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2545 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2546 | -silent | --silent | --silen | --sile | --sil)
2547 continue ;;
2548 *\'*)
2549 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2550 esac
2551 case $ac_pass in
2552 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2554 as_fn_append ac_configure_args1 " '$ac_arg'"
2555 if test $ac_must_keep_next = true; then
2556 ac_must_keep_next=false # Got value, back to normal.
2557 else
2558 case $ac_arg in
2559 *=* | --config-cache | -C | -disable-* | --disable-* \
2560 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2561 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2562 | -with-* | --with-* | -without-* | --without-* | --x)
2563 case "$ac_configure_args0 " in
2564 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2565 esac
2567 -* ) ac_must_keep_next=true ;;
2568 esac
2570 as_fn_append ac_configure_args " '$ac_arg'"
2572 esac
2573 done
2574 done
2575 { ac_configure_args0=; unset ac_configure_args0;}
2576 { ac_configure_args1=; unset ac_configure_args1;}
2578 # When interrupted or exit'd, cleanup temporary files, and complete
2579 # config.log. We remove comments because anyway the quotes in there
2580 # would cause problems or look ugly.
2581 # WARNING: Use '\'' to represent an apostrophe within the trap.
2582 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2583 trap 'exit_status=$?
2584 # Save into config.log some information that might help in debugging.
2586 echo
2588 $as_echo "## ---------------- ##
2589 ## Cache variables. ##
2590 ## ---------------- ##"
2591 echo
2592 # The following way of writing the cache mishandles newlines in values,
2594 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2595 eval ac_val=\$$ac_var
2596 case $ac_val in #(
2597 *${as_nl}*)
2598 case $ac_var in #(
2599 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2600 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2601 esac
2602 case $ac_var in #(
2603 _ | IFS | as_nl) ;; #(
2604 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2605 *) { eval $ac_var=; unset $ac_var;} ;;
2606 esac ;;
2607 esac
2608 done
2609 (set) 2>&1 |
2610 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2611 *${as_nl}ac_space=\ *)
2612 sed -n \
2613 "s/'\''/'\''\\\\'\'''\''/g;
2614 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2615 ;; #(
2617 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2619 esac |
2620 sort
2622 echo
2624 $as_echo "## ----------------- ##
2625 ## Output variables. ##
2626 ## ----------------- ##"
2627 echo
2628 for ac_var in $ac_subst_vars
2630 eval ac_val=\$$ac_var
2631 case $ac_val in
2632 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2633 esac
2634 $as_echo "$ac_var='\''$ac_val'\''"
2635 done | sort
2636 echo
2638 if test -n "$ac_subst_files"; then
2639 $as_echo "## ------------------- ##
2640 ## File substitutions. ##
2641 ## ------------------- ##"
2642 echo
2643 for ac_var in $ac_subst_files
2645 eval ac_val=\$$ac_var
2646 case $ac_val in
2647 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2648 esac
2649 $as_echo "$ac_var='\''$ac_val'\''"
2650 done | sort
2651 echo
2654 if test -s confdefs.h; then
2655 $as_echo "## ----------- ##
2656 ## confdefs.h. ##
2657 ## ----------- ##"
2658 echo
2659 cat confdefs.h
2660 echo
2662 test "$ac_signal" != 0 &&
2663 $as_echo "$as_me: caught signal $ac_signal"
2664 $as_echo "$as_me: exit $exit_status"
2665 } >&5
2666 rm -f core *.core core.conftest.* &&
2667 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2668 exit $exit_status
2670 for ac_signal in 1 2 13 15; do
2671 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2672 done
2673 ac_signal=0
2675 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2676 rm -f -r conftest* confdefs.h
2678 $as_echo "/* confdefs.h */" > confdefs.h
2680 # Predefined preprocessor variables.
2682 cat >>confdefs.h <<_ACEOF
2683 #define PACKAGE_NAME "$PACKAGE_NAME"
2684 _ACEOF
2686 cat >>confdefs.h <<_ACEOF
2687 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2688 _ACEOF
2690 cat >>confdefs.h <<_ACEOF
2691 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2692 _ACEOF
2694 cat >>confdefs.h <<_ACEOF
2695 #define PACKAGE_STRING "$PACKAGE_STRING"
2696 _ACEOF
2698 cat >>confdefs.h <<_ACEOF
2699 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2700 _ACEOF
2702 cat >>confdefs.h <<_ACEOF
2703 #define PACKAGE_URL "$PACKAGE_URL"
2704 _ACEOF
2707 # Let the site file select an alternate cache file if it wants to.
2708 # Prefer an explicitly selected file to automatically selected ones.
2709 ac_site_file1=NONE
2710 ac_site_file2=NONE
2711 if test -n "$CONFIG_SITE"; then
2712 # We do not want a PATH search for config.site.
2713 case $CONFIG_SITE in #((
2714 -*) ac_site_file1=./$CONFIG_SITE;;
2715 */*) ac_site_file1=$CONFIG_SITE;;
2716 *) ac_site_file1=./$CONFIG_SITE;;
2717 esac
2718 elif test "x$prefix" != xNONE; then
2719 ac_site_file1=$prefix/share/config.site
2720 ac_site_file2=$prefix/etc/config.site
2721 else
2722 ac_site_file1=$ac_default_prefix/share/config.site
2723 ac_site_file2=$ac_default_prefix/etc/config.site
2725 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2727 test "x$ac_site_file" = xNONE && continue
2728 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2730 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2731 sed 's/^/| /' "$ac_site_file" >&5
2732 . "$ac_site_file" \
2733 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2734 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2735 as_fn_error $? "failed to load site script $ac_site_file
2736 See \`config.log' for more details" "$LINENO" 5; }
2738 done
2740 if test -r "$cache_file"; then
2741 # Some versions of bash will fail to source /dev/null (special files
2742 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2743 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2745 $as_echo "$as_me: loading cache $cache_file" >&6;}
2746 case $cache_file in
2747 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2748 *) . "./$cache_file";;
2749 esac
2751 else
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2753 $as_echo "$as_me: creating cache $cache_file" >&6;}
2754 >$cache_file
2757 gt_needs="$gt_needs "
2758 # Check that the precious variables saved in the cache have kept the same
2759 # value.
2760 ac_cache_corrupted=false
2761 for ac_var in $ac_precious_vars; do
2762 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2763 eval ac_new_set=\$ac_env_${ac_var}_set
2764 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2765 eval ac_new_val=\$ac_env_${ac_var}_value
2766 case $ac_old_set,$ac_new_set in
2767 set,)
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2769 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2770 ac_cache_corrupted=: ;;
2771 ,set)
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2773 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2774 ac_cache_corrupted=: ;;
2775 ,);;
2777 if test "x$ac_old_val" != "x$ac_new_val"; then
2778 # differences in whitespace do not lead to failure.
2779 ac_old_val_w=`echo x $ac_old_val`
2780 ac_new_val_w=`echo x $ac_new_val`
2781 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2783 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2784 ac_cache_corrupted=:
2785 else
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2787 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2788 eval $ac_var=\$ac_old_val
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2791 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2793 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2794 fi;;
2795 esac
2796 # Pass precious variables to config.status.
2797 if test "$ac_new_set" = set; then
2798 case $ac_new_val in
2799 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2800 *) ac_arg=$ac_var=$ac_new_val ;;
2801 esac
2802 case " $ac_configure_args " in
2803 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2804 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2805 esac
2807 done
2808 if $ac_cache_corrupted; then
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2810 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2812 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2813 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2815 ## -------------------- ##
2816 ## Main body of script. ##
2817 ## -------------------- ##
2819 ac_ext=c
2820 ac_cpp='$CPP $CPPFLAGS'
2821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2828 ac_config_headers="$ac_config_headers include/config.h"
2831 am__api_version='1.15'
2833 ac_aux_dir=
2834 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2835 if test -f "$ac_dir/install-sh"; then
2836 ac_aux_dir=$ac_dir
2837 ac_install_sh="$ac_aux_dir/install-sh -c"
2838 break
2839 elif test -f "$ac_dir/install.sh"; then
2840 ac_aux_dir=$ac_dir
2841 ac_install_sh="$ac_aux_dir/install.sh -c"
2842 break
2843 elif test -f "$ac_dir/shtool"; then
2844 ac_aux_dir=$ac_dir
2845 ac_install_sh="$ac_aux_dir/shtool install -c"
2846 break
2848 done
2849 if test -z "$ac_aux_dir"; then
2850 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2853 # These three variables are undocumented and unsupported,
2854 # and are intended to be withdrawn in a future Autoconf release.
2855 # They can cause serious problems if a builder's source tree is in a directory
2856 # whose full name contains unusual characters.
2857 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2858 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2859 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2862 # Find a good install program. We prefer a C program (faster),
2863 # so one script is as good as another. But avoid the broken or
2864 # incompatible versions:
2865 # SysV /etc/install, /usr/sbin/install
2866 # SunOS /usr/etc/install
2867 # IRIX /sbin/install
2868 # AIX /bin/install
2869 # AmigaOS /C/install, which installs bootblocks on floppy discs
2870 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2871 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2872 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2873 # OS/2's system install, which has a completely different semantic
2874 # ./install, which can be erroneously created by make from ./install.sh.
2875 # Reject install programs that cannot install multiple files.
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2877 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2878 if test -z "$INSTALL"; then
2879 if ${ac_cv_path_install+:} false; then :
2880 $as_echo_n "(cached) " >&6
2881 else
2882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2883 for as_dir in $PATH
2885 IFS=$as_save_IFS
2886 test -z "$as_dir" && as_dir=.
2887 # Account for people who put trailing slashes in PATH elements.
2888 case $as_dir/ in #((
2889 ./ | .// | /[cC]/* | \
2890 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2891 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2892 /usr/ucb/* ) ;;
2894 # OSF1 and SCO ODT 3.0 have their own names for install.
2895 # Don't use installbsd from OSF since it installs stuff as root
2896 # by default.
2897 for ac_prog in ginstall scoinst install; do
2898 for ac_exec_ext in '' $ac_executable_extensions; do
2899 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2900 if test $ac_prog = install &&
2901 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2902 # AIX install. It has an incompatible calling convention.
2904 elif test $ac_prog = install &&
2905 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2906 # program-specific install script used by HP pwplus--don't use.
2908 else
2909 rm -rf conftest.one conftest.two conftest.dir
2910 echo one > conftest.one
2911 echo two > conftest.two
2912 mkdir conftest.dir
2913 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2914 test -s conftest.one && test -s conftest.two &&
2915 test -s conftest.dir/conftest.one &&
2916 test -s conftest.dir/conftest.two
2917 then
2918 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2919 break 3
2923 done
2924 done
2926 esac
2928 done
2929 IFS=$as_save_IFS
2931 rm -rf conftest.one conftest.two conftest.dir
2934 if test "${ac_cv_path_install+set}" = set; then
2935 INSTALL=$ac_cv_path_install
2936 else
2937 # As a last resort, use the slow shell script. Don't cache a
2938 # value for INSTALL within a source directory, because that will
2939 # break other packages using the cache if that directory is
2940 # removed, or if the value is a relative name.
2941 INSTALL=$ac_install_sh
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2945 $as_echo "$INSTALL" >&6; }
2947 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2948 # It thinks the first close brace ends the variable substitution.
2949 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2951 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2953 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2956 $as_echo_n "checking whether build environment is sane... " >&6; }
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 am_has_slept=no
2977 for am_try in 1 2; do
2978 echo "timestamp, slept: $am_has_slept" > conftest.file
2979 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2980 if test "$*" = "X"; then
2981 # -L didn't work.
2982 set X `ls -t "$srcdir/configure" conftest.file`
2984 if test "$*" != "X $srcdir/configure conftest.file" \
2985 && test "$*" != "X conftest.file $srcdir/configure"; then
2987 # If neither matched, then we have a broken ls. This can happen
2988 # if, for instance, CONFIG_SHELL is bash and it inherits a
2989 # broken ls alias from the environment. This has actually
2990 # happened. Such a system could not be considered "sane".
2991 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2992 alias in your environment" "$LINENO" 5
2994 if test "$2" = conftest.file || test $am_try -eq 2; then
2995 break
2997 # Just in case.
2998 sleep 1
2999 am_has_slept=yes
3000 done
3001 test "$2" = conftest.file
3003 then
3004 # Ok.
3006 else
3007 as_fn_error $? "newly created file is older than distributed files!
3008 Check your system clock" "$LINENO" 5
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3011 $as_echo "yes" >&6; }
3012 # If we didn't sleep, we still need to ensure time stamps of config.status and
3013 # generated files are strictly newer.
3014 am_sleep_pid=
3015 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3016 ( sleep 1 ) &
3017 am_sleep_pid=$!
3020 rm -f conftest.file
3022 test "$program_prefix" != NONE &&
3023 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3024 # Use a double $ so make ignores it.
3025 test "$program_suffix" != NONE &&
3026 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3027 # Double any \ or $.
3028 # By default was `s,x,x', remove it if useless.
3029 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3030 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3032 # Expand $ac_aux_dir to an absolute path.
3033 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3035 if test x"${MISSING+set}" != xset; then
3036 case $am_aux_dir in
3037 *\ * | *\ *)
3038 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3040 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3041 esac
3043 # Use eval to expand $SHELL
3044 if eval "$MISSING --is-lightweight"; then
3045 am_missing_run="$MISSING "
3046 else
3047 am_missing_run=
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3049 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3052 if test x"${install_sh+set}" != xset; then
3053 case $am_aux_dir in
3054 *\ * | *\ *)
3055 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3057 install_sh="\${SHELL} $am_aux_dir/install-sh"
3058 esac
3061 # Installed binaries are usually stripped using 'strip' when the user
3062 # run "make install-strip". However 'strip' might not be the right
3063 # tool to use in cross-compilation environments, therefore Automake
3064 # will honor the 'STRIP' environment variable to overrule this program.
3065 if test "$cross_compiling" != no; then
3066 if test -n "$ac_tool_prefix"; then
3067 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3068 set dummy ${ac_tool_prefix}strip; ac_word=$2
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3070 $as_echo_n "checking for $ac_word... " >&6; }
3071 if ${ac_cv_prog_STRIP+:} false; then :
3072 $as_echo_n "(cached) " >&6
3073 else
3074 if test -n "$STRIP"; then
3075 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3076 else
3077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3078 for as_dir in $PATH
3080 IFS=$as_save_IFS
3081 test -z "$as_dir" && as_dir=.
3082 for ac_exec_ext in '' $ac_executable_extensions; do
3083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3084 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3086 break 2
3088 done
3089 done
3090 IFS=$as_save_IFS
3094 STRIP=$ac_cv_prog_STRIP
3095 if test -n "$STRIP"; then
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3097 $as_echo "$STRIP" >&6; }
3098 else
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3100 $as_echo "no" >&6; }
3105 if test -z "$ac_cv_prog_STRIP"; then
3106 ac_ct_STRIP=$STRIP
3107 # Extract the first word of "strip", so it can be a program name with args.
3108 set dummy strip; ac_word=$2
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3110 $as_echo_n "checking for $ac_word... " >&6; }
3111 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3112 $as_echo_n "(cached) " >&6
3113 else
3114 if test -n "$ac_ct_STRIP"; then
3115 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3116 else
3117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3118 for as_dir in $PATH
3120 IFS=$as_save_IFS
3121 test -z "$as_dir" && as_dir=.
3122 for ac_exec_ext in '' $ac_executable_extensions; do
3123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3124 ac_cv_prog_ac_ct_STRIP="strip"
3125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3126 break 2
3128 done
3129 done
3130 IFS=$as_save_IFS
3134 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3135 if test -n "$ac_ct_STRIP"; then
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3137 $as_echo "$ac_ct_STRIP" >&6; }
3138 else
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3140 $as_echo "no" >&6; }
3143 if test "x$ac_ct_STRIP" = x; then
3144 STRIP=":"
3145 else
3146 case $cross_compiling:$ac_tool_warned in
3147 yes:)
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3149 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3150 ac_tool_warned=yes ;;
3151 esac
3152 STRIP=$ac_ct_STRIP
3154 else
3155 STRIP="$ac_cv_prog_STRIP"
3159 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3162 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3163 if test -z "$MKDIR_P"; then
3164 if ${ac_cv_path_mkdir+:} false; then :
3165 $as_echo_n "(cached) " >&6
3166 else
3167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3168 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3170 IFS=$as_save_IFS
3171 test -z "$as_dir" && as_dir=.
3172 for ac_prog in mkdir gmkdir; do
3173 for ac_exec_ext in '' $ac_executable_extensions; do
3174 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3175 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3176 'mkdir (GNU coreutils) '* | \
3177 'mkdir (coreutils) '* | \
3178 'mkdir (fileutils) '4.1*)
3179 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3180 break 3;;
3181 esac
3182 done
3183 done
3184 done
3185 IFS=$as_save_IFS
3189 test -d ./--version && rmdir ./--version
3190 if test "${ac_cv_path_mkdir+set}" = set; then
3191 MKDIR_P="$ac_cv_path_mkdir -p"
3192 else
3193 # As a last resort, use the slow shell script. Don't cache a
3194 # value for MKDIR_P within a source directory, because that will
3195 # break other packages using the cache if that directory is
3196 # removed, or if the value is a relative name.
3197 MKDIR_P="$ac_install_sh -d"
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3201 $as_echo "$MKDIR_P" >&6; }
3203 for ac_prog in gawk mawk nawk awk
3205 # Extract the first word of "$ac_prog", so it can be a program name with args.
3206 set dummy $ac_prog; ac_word=$2
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3208 $as_echo_n "checking for $ac_word... " >&6; }
3209 if ${ac_cv_prog_AWK+:} false; then :
3210 $as_echo_n "(cached) " >&6
3211 else
3212 if test -n "$AWK"; then
3213 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3214 else
3215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3216 for as_dir in $PATH
3218 IFS=$as_save_IFS
3219 test -z "$as_dir" && as_dir=.
3220 for ac_exec_ext in '' $ac_executable_extensions; do
3221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3222 ac_cv_prog_AWK="$ac_prog"
3223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3224 break 2
3226 done
3227 done
3228 IFS=$as_save_IFS
3232 AWK=$ac_cv_prog_AWK
3233 if test -n "$AWK"; then
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3235 $as_echo "$AWK" >&6; }
3236 else
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3238 $as_echo "no" >&6; }
3242 test -n "$AWK" && break
3243 done
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3246 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3247 set x ${MAKE-make}
3248 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3249 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3250 $as_echo_n "(cached) " >&6
3251 else
3252 cat >conftest.make <<\_ACEOF
3253 SHELL = /bin/sh
3254 all:
3255 @echo '@@@%%%=$(MAKE)=@@@%%%'
3256 _ACEOF
3257 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3258 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3259 *@@@%%%=?*=@@@%%%*)
3260 eval ac_cv_prog_make_${ac_make}_set=yes;;
3262 eval ac_cv_prog_make_${ac_make}_set=no;;
3263 esac
3264 rm -f conftest.make
3266 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3268 $as_echo "yes" >&6; }
3269 SET_MAKE=
3270 else
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3272 $as_echo "no" >&6; }
3273 SET_MAKE="MAKE=${MAKE-make}"
3276 rm -rf .tst 2>/dev/null
3277 mkdir .tst 2>/dev/null
3278 if test -d .tst; then
3279 am__leading_dot=.
3280 else
3281 am__leading_dot=_
3283 rmdir .tst 2>/dev/null
3285 # Check whether --enable-silent-rules was given.
3286 if test "${enable_silent_rules+set}" = set; then :
3287 enableval=$enable_silent_rules;
3290 case $enable_silent_rules in # (((
3291 yes) AM_DEFAULT_VERBOSITY=0;;
3292 no) AM_DEFAULT_VERBOSITY=1;;
3293 *) AM_DEFAULT_VERBOSITY=1;;
3294 esac
3295 am_make=${MAKE-make}
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3297 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3298 if ${am_cv_make_support_nested_variables+:} false; then :
3299 $as_echo_n "(cached) " >&6
3300 else
3301 if $as_echo 'TRUE=$(BAR$(V))
3302 BAR0=false
3303 BAR1=true
3305 am__doit:
3306 @$(TRUE)
3307 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3308 am_cv_make_support_nested_variables=yes
3309 else
3310 am_cv_make_support_nested_variables=no
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3314 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3315 if test $am_cv_make_support_nested_variables = yes; then
3316 AM_V='$(V)'
3317 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3318 else
3319 AM_V=$AM_DEFAULT_VERBOSITY
3320 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3322 AM_BACKSLASH='\'
3324 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3325 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3326 # is not polluted with repeated "-I."
3327 am__isrc=' -I$(srcdir)'
3328 # test to see if srcdir already configured
3329 if test -f $srcdir/config.status; then
3330 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3334 # test whether we have cygpath
3335 if test -z "$CYGPATH_W"; then
3336 if (cygpath --version) >/dev/null 2>/dev/null; then
3337 CYGPATH_W='cygpath -w'
3338 else
3339 CYGPATH_W=echo
3344 # Define the identity of the package.
3345 PACKAGE='alpine'
3346 VERSION='2.25'
3349 cat >>confdefs.h <<_ACEOF
3350 #define PACKAGE "$PACKAGE"
3351 _ACEOF
3354 cat >>confdefs.h <<_ACEOF
3355 #define VERSION "$VERSION"
3356 _ACEOF
3358 # Some tools Automake needs.
3360 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3363 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3366 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3369 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3372 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3374 # For better backward compatibility. To be removed once Automake 1.9.x
3375 # dies out for good. For more background, see:
3376 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3377 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3378 mkdir_p='$(MKDIR_P)'
3380 # We need awk for the "check" target (and possibly the TAP driver). The
3381 # system "awk" is bad on some platforms.
3382 # Always define AMTAR for backward compatibility. Yes, it's still used
3383 # in the wild :-( We should find a proper way to deprecate it ...
3384 AMTAR='$${TAR-tar}'
3387 # We'll loop over all known methods to create a tar archive until one works.
3388 _am_tools='gnutar pax cpio none'
3390 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3397 # POSIX will say in a future version that running "rm -f" with no argument
3398 # is OK; and we want to be able to make that assumption in our Makefile
3399 # recipes. So use an aggressive probe to check that the usage we want is
3400 # actually supported "in the wild" to an acceptable degree.
3401 # See automake bug#10828.
3402 # To make any issue more visible, cause the running configure to be aborted
3403 # by default if the 'rm' program in use doesn't match our expectations; the
3404 # user can still override this though.
3405 if rm -f && rm -fr && rm -rf; then : OK; else
3406 cat >&2 <<'END'
3407 Oops!
3409 Your 'rm' program seems unable to run without file operands specified
3410 on the command line, even when the '-f' option is present. This is contrary
3411 to the behaviour of most rm programs out there, and not conforming with
3412 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3414 Please tell bug-automake@gnu.org about your system, including the value
3415 of your $PATH and any error possibly output before this message. This
3416 can help us improve future automake versions.
3419 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3420 echo 'Configuration will proceed anyway, since you have set the' >&2
3421 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3422 echo >&2
3423 else
3424 cat >&2 <<'END'
3425 Aborting the configuration process, to ensure you take notice of the issue.
3427 You can download and install GNU coreutils to get an 'rm' implementation
3428 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3430 If you want to complete the configuration process using your problematic
3431 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3432 to "yes", and re-run configure.
3435 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3442 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3443 # Check whether --enable-maintainer-mode was given.
3444 if test "${enable_maintainer_mode+set}" = set; then :
3445 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3446 else
3447 USE_MAINTAINER_MODE=no
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3451 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3452 if test $USE_MAINTAINER_MODE = yes; then
3453 MAINTAINER_MODE_TRUE=
3454 MAINTAINER_MODE_FALSE='#'
3455 else
3456 MAINTAINER_MODE_TRUE='#'
3457 MAINTAINER_MODE_FALSE=
3460 MAINT=$MAINTAINER_MODE_TRUE
3464 # Make sure we can run config.sub.
3465 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3466 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3469 $as_echo_n "checking build system type... " >&6; }
3470 if ${ac_cv_build+:} false; then :
3471 $as_echo_n "(cached) " >&6
3472 else
3473 ac_build_alias=$build_alias
3474 test "x$ac_build_alias" = x &&
3475 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3476 test "x$ac_build_alias" = x &&
3477 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3478 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3479 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3483 $as_echo "$ac_cv_build" >&6; }
3484 case $ac_cv_build in
3485 *-*-*) ;;
3486 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3487 esac
3488 build=$ac_cv_build
3489 ac_save_IFS=$IFS; IFS='-'
3490 set x $ac_cv_build
3491 shift
3492 build_cpu=$1
3493 build_vendor=$2
3494 shift; shift
3495 # Remember, the first character of IFS is used to create $*,
3496 # except with old shells:
3497 build_os=$*
3498 IFS=$ac_save_IFS
3499 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3503 $as_echo_n "checking host system type... " >&6; }
3504 if ${ac_cv_host+:} false; then :
3505 $as_echo_n "(cached) " >&6
3506 else
3507 if test "x$host_alias" = x; then
3508 ac_cv_host=$ac_cv_build
3509 else
3510 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3511 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3516 $as_echo "$ac_cv_host" >&6; }
3517 case $ac_cv_host in
3518 *-*-*) ;;
3519 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3520 esac
3521 host=$ac_cv_host
3522 ac_save_IFS=$IFS; IFS='-'
3523 set x $ac_cv_host
3524 shift
3525 host_cpu=$1
3526 host_vendor=$2
3527 shift; shift
3528 # Remember, the first character of IFS is used to create $*,
3529 # except with old shells:
3530 host_os=$*
3531 IFS=$ac_save_IFS
3532 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3536 ac_ext=c
3537 ac_cpp='$CPP $CPPFLAGS'
3538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring for $PACKAGE_STRING ($host)" >&5
3544 $as_echo "$as_me: Configuring for $PACKAGE_STRING ($host)" >&6;}
3546 # start out with intent to build Web Alpine
3547 WEB_BUILD=web/src/alpined.d
3550 ac_ext=c
3551 ac_cpp='$CPP $CPPFLAGS'
3552 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3553 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3554 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3555 if test -n "$ac_tool_prefix"; then
3556 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3557 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3559 $as_echo_n "checking for $ac_word... " >&6; }
3560 if ${ac_cv_prog_CC+:} false; then :
3561 $as_echo_n "(cached) " >&6
3562 else
3563 if test -n "$CC"; then
3564 ac_cv_prog_CC="$CC" # Let the user override the test.
3565 else
3566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3567 for as_dir in $PATH
3569 IFS=$as_save_IFS
3570 test -z "$as_dir" && as_dir=.
3571 for ac_exec_ext in '' $ac_executable_extensions; do
3572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3573 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3575 break 2
3577 done
3578 done
3579 IFS=$as_save_IFS
3583 CC=$ac_cv_prog_CC
3584 if test -n "$CC"; then
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3586 $as_echo "$CC" >&6; }
3587 else
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3589 $as_echo "no" >&6; }
3594 if test -z "$ac_cv_prog_CC"; then
3595 ac_ct_CC=$CC
3596 # Extract the first word of "gcc", so it can be a program name with args.
3597 set dummy gcc; ac_word=$2
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3599 $as_echo_n "checking for $ac_word... " >&6; }
3600 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3601 $as_echo_n "(cached) " >&6
3602 else
3603 if test -n "$ac_ct_CC"; then
3604 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3605 else
3606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3607 for as_dir in $PATH
3609 IFS=$as_save_IFS
3610 test -z "$as_dir" && as_dir=.
3611 for ac_exec_ext in '' $ac_executable_extensions; do
3612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3613 ac_cv_prog_ac_ct_CC="gcc"
3614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3615 break 2
3617 done
3618 done
3619 IFS=$as_save_IFS
3623 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3624 if test -n "$ac_ct_CC"; then
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3626 $as_echo "$ac_ct_CC" >&6; }
3627 else
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3629 $as_echo "no" >&6; }
3632 if test "x$ac_ct_CC" = x; then
3633 CC=""
3634 else
3635 case $cross_compiling:$ac_tool_warned in
3636 yes:)
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3638 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3639 ac_tool_warned=yes ;;
3640 esac
3641 CC=$ac_ct_CC
3643 else
3644 CC="$ac_cv_prog_CC"
3647 if test -z "$CC"; then
3648 if test -n "$ac_tool_prefix"; then
3649 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3650 set dummy ${ac_tool_prefix}cc; ac_word=$2
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3652 $as_echo_n "checking for $ac_word... " >&6; }
3653 if ${ac_cv_prog_CC+:} false; then :
3654 $as_echo_n "(cached) " >&6
3655 else
3656 if test -n "$CC"; then
3657 ac_cv_prog_CC="$CC" # Let the user override the test.
3658 else
3659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3660 for as_dir in $PATH
3662 IFS=$as_save_IFS
3663 test -z "$as_dir" && as_dir=.
3664 for ac_exec_ext in '' $ac_executable_extensions; do
3665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3666 ac_cv_prog_CC="${ac_tool_prefix}cc"
3667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3668 break 2
3670 done
3671 done
3672 IFS=$as_save_IFS
3676 CC=$ac_cv_prog_CC
3677 if test -n "$CC"; then
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3679 $as_echo "$CC" >&6; }
3680 else
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3682 $as_echo "no" >&6; }
3688 if test -z "$CC"; then
3689 # Extract the first word of "cc", so it can be a program name with args.
3690 set dummy cc; ac_word=$2
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3692 $as_echo_n "checking for $ac_word... " >&6; }
3693 if ${ac_cv_prog_CC+:} false; then :
3694 $as_echo_n "(cached) " >&6
3695 else
3696 if test -n "$CC"; then
3697 ac_cv_prog_CC="$CC" # Let the user override the test.
3698 else
3699 ac_prog_rejected=no
3700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3701 for as_dir in $PATH
3703 IFS=$as_save_IFS
3704 test -z "$as_dir" && as_dir=.
3705 for ac_exec_ext in '' $ac_executable_extensions; do
3706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3707 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3708 ac_prog_rejected=yes
3709 continue
3711 ac_cv_prog_CC="cc"
3712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3713 break 2
3715 done
3716 done
3717 IFS=$as_save_IFS
3719 if test $ac_prog_rejected = yes; then
3720 # We found a bogon in the path, so make sure we never use it.
3721 set dummy $ac_cv_prog_CC
3722 shift
3723 if test $# != 0; then
3724 # We chose a different compiler from the bogus one.
3725 # However, it has the same basename, so the bogon will be chosen
3726 # first if we set CC to just the basename; use the full file name.
3727 shift
3728 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3733 CC=$ac_cv_prog_CC
3734 if test -n "$CC"; then
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3736 $as_echo "$CC" >&6; }
3737 else
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3739 $as_echo "no" >&6; }
3744 if test -z "$CC"; then
3745 if test -n "$ac_tool_prefix"; then
3746 for ac_prog in cl.exe
3748 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3749 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3751 $as_echo_n "checking for $ac_word... " >&6; }
3752 if ${ac_cv_prog_CC+:} false; then :
3753 $as_echo_n "(cached) " >&6
3754 else
3755 if test -n "$CC"; then
3756 ac_cv_prog_CC="$CC" # Let the user override the test.
3757 else
3758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3759 for as_dir in $PATH
3761 IFS=$as_save_IFS
3762 test -z "$as_dir" && as_dir=.
3763 for ac_exec_ext in '' $ac_executable_extensions; do
3764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3765 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3767 break 2
3769 done
3770 done
3771 IFS=$as_save_IFS
3775 CC=$ac_cv_prog_CC
3776 if test -n "$CC"; then
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3778 $as_echo "$CC" >&6; }
3779 else
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3781 $as_echo "no" >&6; }
3785 test -n "$CC" && break
3786 done
3788 if test -z "$CC"; then
3789 ac_ct_CC=$CC
3790 for ac_prog in cl.exe
3792 # Extract the first word of "$ac_prog", so it can be a program name with args.
3793 set dummy $ac_prog; ac_word=$2
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3795 $as_echo_n "checking for $ac_word... " >&6; }
3796 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3797 $as_echo_n "(cached) " >&6
3798 else
3799 if test -n "$ac_ct_CC"; then
3800 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3801 else
3802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3803 for as_dir in $PATH
3805 IFS=$as_save_IFS
3806 test -z "$as_dir" && as_dir=.
3807 for ac_exec_ext in '' $ac_executable_extensions; do
3808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3809 ac_cv_prog_ac_ct_CC="$ac_prog"
3810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3811 break 2
3813 done
3814 done
3815 IFS=$as_save_IFS
3819 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3820 if test -n "$ac_ct_CC"; then
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3822 $as_echo "$ac_ct_CC" >&6; }
3823 else
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3825 $as_echo "no" >&6; }
3829 test -n "$ac_ct_CC" && break
3830 done
3832 if test "x$ac_ct_CC" = x; then
3833 CC=""
3834 else
3835 case $cross_compiling:$ac_tool_warned in
3836 yes:)
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3838 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3839 ac_tool_warned=yes ;;
3840 esac
3841 CC=$ac_ct_CC
3848 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3849 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3850 as_fn_error $? "no acceptable C compiler found in \$PATH
3851 See \`config.log' for more details" "$LINENO" 5; }
3853 # Provide some information about the compiler.
3854 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3855 set X $ac_compile
3856 ac_compiler=$2
3857 for ac_option in --version -v -V -qversion; do
3858 { { ac_try="$ac_compiler $ac_option >&5"
3859 case "(($ac_try" in
3860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3861 *) ac_try_echo=$ac_try;;
3862 esac
3863 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3864 $as_echo "$ac_try_echo"; } >&5
3865 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3866 ac_status=$?
3867 if test -s conftest.err; then
3868 sed '10a\
3869 ... rest of stderr output deleted ...
3870 10q' conftest.err >conftest.er1
3871 cat conftest.er1 >&5
3873 rm -f conftest.er1 conftest.err
3874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3875 test $ac_status = 0; }
3876 done
3878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3879 /* end confdefs.h. */
3882 main ()
3886 return 0;
3888 _ACEOF
3889 ac_clean_files_save=$ac_clean_files
3890 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3891 # Try to create an executable without -o first, disregard a.out.
3892 # It will help us diagnose broken compilers, and finding out an intuition
3893 # of exeext.
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3895 $as_echo_n "checking whether the C compiler works... " >&6; }
3896 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3898 # The possible output files:
3899 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3901 ac_rmfiles=
3902 for ac_file in $ac_files
3904 case $ac_file in
3905 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3906 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3907 esac
3908 done
3909 rm -f $ac_rmfiles
3911 if { { ac_try="$ac_link_default"
3912 case "(($ac_try" in
3913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3914 *) ac_try_echo=$ac_try;;
3915 esac
3916 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3917 $as_echo "$ac_try_echo"; } >&5
3918 (eval "$ac_link_default") 2>&5
3919 ac_status=$?
3920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3921 test $ac_status = 0; }; then :
3922 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3923 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3924 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3925 # so that the user can short-circuit this test for compilers unknown to
3926 # Autoconf.
3927 for ac_file in $ac_files ''
3929 test -f "$ac_file" || continue
3930 case $ac_file in
3931 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3933 [ab].out )
3934 # We found the default executable, but exeext='' is most
3935 # certainly right.
3936 break;;
3937 *.* )
3938 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3939 then :; else
3940 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3942 # We set ac_cv_exeext here because the later test for it is not
3943 # safe: cross compilers may not add the suffix if given an `-o'
3944 # argument, so we may need to know it at that point already.
3945 # Even if this section looks crufty: it has the advantage of
3946 # actually working.
3947 break;;
3949 break;;
3950 esac
3951 done
3952 test "$ac_cv_exeext" = no && ac_cv_exeext=
3954 else
3955 ac_file=''
3957 if test -z "$ac_file"; then :
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3959 $as_echo "no" >&6; }
3960 $as_echo "$as_me: failed program was:" >&5
3961 sed 's/^/| /' conftest.$ac_ext >&5
3963 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3964 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3965 as_fn_error 77 "C compiler cannot create executables
3966 See \`config.log' for more details" "$LINENO" 5; }
3967 else
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3969 $as_echo "yes" >&6; }
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3972 $as_echo_n "checking for C compiler default output file name... " >&6; }
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3974 $as_echo "$ac_file" >&6; }
3975 ac_exeext=$ac_cv_exeext
3977 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3978 ac_clean_files=$ac_clean_files_save
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3980 $as_echo_n "checking for suffix of executables... " >&6; }
3981 if { { ac_try="$ac_link"
3982 case "(($ac_try" in
3983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3984 *) ac_try_echo=$ac_try;;
3985 esac
3986 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3987 $as_echo "$ac_try_echo"; } >&5
3988 (eval "$ac_link") 2>&5
3989 ac_status=$?
3990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3991 test $ac_status = 0; }; then :
3992 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3993 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3994 # work properly (i.e., refer to `conftest.exe'), while it won't with
3995 # `rm'.
3996 for ac_file in conftest.exe conftest conftest.*; do
3997 test -f "$ac_file" || continue
3998 case $ac_file in
3999 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4000 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4001 break;;
4002 * ) break;;
4003 esac
4004 done
4005 else
4006 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4007 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4008 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4009 See \`config.log' for more details" "$LINENO" 5; }
4011 rm -f conftest conftest$ac_cv_exeext
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4013 $as_echo "$ac_cv_exeext" >&6; }
4015 rm -f conftest.$ac_ext
4016 EXEEXT=$ac_cv_exeext
4017 ac_exeext=$EXEEXT
4018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4019 /* end confdefs.h. */
4020 #include <stdio.h>
4022 main ()
4024 FILE *f = fopen ("conftest.out", "w");
4025 return ferror (f) || fclose (f) != 0;
4028 return 0;
4030 _ACEOF
4031 ac_clean_files="$ac_clean_files conftest.out"
4032 # Check that the compiler produces executables we can run. If not, either
4033 # the compiler is broken, or we cross compile.
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4035 $as_echo_n "checking whether we are cross compiling... " >&6; }
4036 if test "$cross_compiling" != yes; then
4037 { { ac_try="$ac_link"
4038 case "(($ac_try" in
4039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4040 *) ac_try_echo=$ac_try;;
4041 esac
4042 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4043 $as_echo "$ac_try_echo"; } >&5
4044 (eval "$ac_link") 2>&5
4045 ac_status=$?
4046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4047 test $ac_status = 0; }
4048 if { ac_try='./conftest$ac_cv_exeext'
4049 { { case "(($ac_try" in
4050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4051 *) ac_try_echo=$ac_try;;
4052 esac
4053 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4054 $as_echo "$ac_try_echo"; } >&5
4055 (eval "$ac_try") 2>&5
4056 ac_status=$?
4057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4058 test $ac_status = 0; }; }; then
4059 cross_compiling=no
4060 else
4061 if test "$cross_compiling" = maybe; then
4062 cross_compiling=yes
4063 else
4064 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4065 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4066 as_fn_error $? "cannot run C compiled programs.
4067 If you meant to cross compile, use \`--host'.
4068 See \`config.log' for more details" "$LINENO" 5; }
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4073 $as_echo "$cross_compiling" >&6; }
4075 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4076 ac_clean_files=$ac_clean_files_save
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4078 $as_echo_n "checking for suffix of object files... " >&6; }
4079 if ${ac_cv_objext+:} false; then :
4080 $as_echo_n "(cached) " >&6
4081 else
4082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4083 /* end confdefs.h. */
4086 main ()
4090 return 0;
4092 _ACEOF
4093 rm -f conftest.o conftest.obj
4094 if { { ac_try="$ac_compile"
4095 case "(($ac_try" in
4096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4097 *) ac_try_echo=$ac_try;;
4098 esac
4099 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4100 $as_echo "$ac_try_echo"; } >&5
4101 (eval "$ac_compile") 2>&5
4102 ac_status=$?
4103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4104 test $ac_status = 0; }; then :
4105 for ac_file in conftest.o conftest.obj conftest.*; do
4106 test -f "$ac_file" || continue;
4107 case $ac_file in
4108 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4109 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4110 break;;
4111 esac
4112 done
4113 else
4114 $as_echo "$as_me: failed program was:" >&5
4115 sed 's/^/| /' conftest.$ac_ext >&5
4117 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4118 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4119 as_fn_error $? "cannot compute suffix of object files: cannot compile
4120 See \`config.log' for more details" "$LINENO" 5; }
4122 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4125 $as_echo "$ac_cv_objext" >&6; }
4126 OBJEXT=$ac_cv_objext
4127 ac_objext=$OBJEXT
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4129 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4130 if ${ac_cv_c_compiler_gnu+:} false; then :
4131 $as_echo_n "(cached) " >&6
4132 else
4133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4134 /* end confdefs.h. */
4137 main ()
4139 #ifndef __GNUC__
4140 choke me
4141 #endif
4144 return 0;
4146 _ACEOF
4147 if ac_fn_c_try_compile "$LINENO"; then :
4148 ac_compiler_gnu=yes
4149 else
4150 ac_compiler_gnu=no
4152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4153 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4157 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4158 if test $ac_compiler_gnu = yes; then
4159 GCC=yes
4160 else
4161 GCC=
4163 ac_test_CFLAGS=${CFLAGS+set}
4164 ac_save_CFLAGS=$CFLAGS
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4166 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4167 if ${ac_cv_prog_cc_g+:} false; then :
4168 $as_echo_n "(cached) " >&6
4169 else
4170 ac_save_c_werror_flag=$ac_c_werror_flag
4171 ac_c_werror_flag=yes
4172 ac_cv_prog_cc_g=no
4173 CFLAGS="-g"
4174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4175 /* end confdefs.h. */
4178 main ()
4182 return 0;
4184 _ACEOF
4185 if ac_fn_c_try_compile "$LINENO"; then :
4186 ac_cv_prog_cc_g=yes
4187 else
4188 CFLAGS=""
4189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4190 /* end confdefs.h. */
4193 main ()
4197 return 0;
4199 _ACEOF
4200 if ac_fn_c_try_compile "$LINENO"; then :
4202 else
4203 ac_c_werror_flag=$ac_save_c_werror_flag
4204 CFLAGS="-g"
4205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4206 /* end confdefs.h. */
4209 main ()
4213 return 0;
4215 _ACEOF
4216 if ac_fn_c_try_compile "$LINENO"; then :
4217 ac_cv_prog_cc_g=yes
4219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4224 ac_c_werror_flag=$ac_save_c_werror_flag
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4227 $as_echo "$ac_cv_prog_cc_g" >&6; }
4228 if test "$ac_test_CFLAGS" = set; then
4229 CFLAGS=$ac_save_CFLAGS
4230 elif test $ac_cv_prog_cc_g = yes; then
4231 if test "$GCC" = yes; then
4232 CFLAGS="-g -O2"
4233 else
4234 CFLAGS="-g"
4236 else
4237 if test "$GCC" = yes; then
4238 CFLAGS="-O2"
4239 else
4240 CFLAGS=
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4244 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4245 if ${ac_cv_prog_cc_c89+:} false; then :
4246 $as_echo_n "(cached) " >&6
4247 else
4248 ac_cv_prog_cc_c89=no
4249 ac_save_CC=$CC
4250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4251 /* end confdefs.h. */
4252 #include <stdarg.h>
4253 #include <stdio.h>
4254 struct stat;
4255 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4256 struct buf { int x; };
4257 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4258 static char *e (p, i)
4259 char **p;
4260 int i;
4262 return p[i];
4264 static char *f (char * (*g) (char **, int), char **p, ...)
4266 char *s;
4267 va_list v;
4268 va_start (v,p);
4269 s = g (p, va_arg (v,int));
4270 va_end (v);
4271 return s;
4274 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4275 function prototypes and stuff, but not '\xHH' hex character constants.
4276 These don't provoke an error unfortunately, instead are silently treated
4277 as 'x'. The following induces an error, until -std is added to get
4278 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4279 array size at least. It's necessary to write '\x00'==0 to get something
4280 that's true only with -std. */
4281 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4283 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4284 inside strings and character constants. */
4285 #define FOO(x) 'x'
4286 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4288 int test (int i, double x);
4289 struct s1 {int (*f) (int a);};
4290 struct s2 {int (*f) (double a);};
4291 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4292 int argc;
4293 char **argv;
4295 main ()
4297 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4299 return 0;
4301 _ACEOF
4302 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4303 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4305 CC="$ac_save_CC $ac_arg"
4306 if ac_fn_c_try_compile "$LINENO"; then :
4307 ac_cv_prog_cc_c89=$ac_arg
4309 rm -f core conftest.err conftest.$ac_objext
4310 test "x$ac_cv_prog_cc_c89" != "xno" && break
4311 done
4312 rm -f conftest.$ac_ext
4313 CC=$ac_save_CC
4316 # AC_CACHE_VAL
4317 case "x$ac_cv_prog_cc_c89" in
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4320 $as_echo "none needed" >&6; } ;;
4321 xno)
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4323 $as_echo "unsupported" >&6; } ;;
4325 CC="$CC $ac_cv_prog_cc_c89"
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4327 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4328 esac
4329 if test "x$ac_cv_prog_cc_c89" != xno; then :
4333 ac_ext=c
4334 ac_cpp='$CPP $CPPFLAGS'
4335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4339 ac_ext=c
4340 ac_cpp='$CPP $CPPFLAGS'
4341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4345 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4346 if ${am_cv_prog_cc_c_o+:} false; then :
4347 $as_echo_n "(cached) " >&6
4348 else
4349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4350 /* end confdefs.h. */
4353 main ()
4357 return 0;
4359 _ACEOF
4360 # Make sure it works both with $CC and with simple cc.
4361 # Following AC_PROG_CC_C_O, we do the test twice because some
4362 # compilers refuse to overwrite an existing .o file with -o,
4363 # though they will create one.
4364 am_cv_prog_cc_c_o=yes
4365 for am_i in 1 2; do
4366 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4367 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4368 ac_status=$?
4369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370 (exit $ac_status); } \
4371 && test -f conftest2.$ac_objext; then
4372 : OK
4373 else
4374 am_cv_prog_cc_c_o=no
4375 break
4377 done
4378 rm -f core conftest*
4379 unset am_i
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4382 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4383 if test "$am_cv_prog_cc_c_o" != yes; then
4384 # Losing compiler, so override with the script.
4385 # FIXME: It is wrong to rewrite CC.
4386 # But if we don't then we get into trouble of one sort or another.
4387 # A longer-term fix would be to have automake use am__CC in this case,
4388 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4389 CC="$am_aux_dir/compile $CC"
4391 ac_ext=c
4392 ac_cpp='$CPP $CPPFLAGS'
4393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4397 DEPDIR="${am__leading_dot}deps"
4399 ac_config_commands="$ac_config_commands depfiles"
4402 am_make=${MAKE-make}
4403 cat > confinc << 'END'
4404 am__doit:
4405 @echo this is the am__doit target
4406 .PHONY: am__doit
4408 # If we don't find an include directive, just comment out the code.
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4410 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4411 am__include="#"
4412 am__quote=
4413 _am_result=none
4414 # First try GNU make style include.
4415 echo "include confinc" > confmf
4416 # Ignore all kinds of additional output from 'make'.
4417 case `$am_make -s -f confmf 2> /dev/null` in #(
4418 *the\ am__doit\ target*)
4419 am__include=include
4420 am__quote=
4421 _am_result=GNU
4423 esac
4424 # Now try BSD make style include.
4425 if test "$am__include" = "#"; then
4426 echo '.include "confinc"' > confmf
4427 case `$am_make -s -f confmf 2> /dev/null` in #(
4428 *the\ am__doit\ target*)
4429 am__include=.include
4430 am__quote="\""
4431 _am_result=BSD
4433 esac
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4438 $as_echo "$_am_result" >&6; }
4439 rm -f confinc confmf
4441 # Check whether --enable-dependency-tracking was given.
4442 if test "${enable_dependency_tracking+set}" = set; then :
4443 enableval=$enable_dependency_tracking;
4446 if test "x$enable_dependency_tracking" != xno; then
4447 am_depcomp="$ac_aux_dir/depcomp"
4448 AMDEPBACKSLASH='\'
4449 am__nodep='_no'
4451 if test "x$enable_dependency_tracking" != xno; then
4452 AMDEP_TRUE=
4453 AMDEP_FALSE='#'
4454 else
4455 AMDEP_TRUE='#'
4456 AMDEP_FALSE=
4461 depcc="$CC" am_compiler_list=
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4464 $as_echo_n "checking dependency style of $depcc... " >&6; }
4465 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4466 $as_echo_n "(cached) " >&6
4467 else
4468 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4469 # We make a subdir and do the tests there. Otherwise we can end up
4470 # making bogus files that we don't know about and never remove. For
4471 # instance it was reported that on HP-UX the gcc test will end up
4472 # making a dummy file named 'D' -- because '-MD' means "put the output
4473 # in D".
4474 rm -rf conftest.dir
4475 mkdir conftest.dir
4476 # Copy depcomp to subdir because otherwise we won't find it if we're
4477 # using a relative directory.
4478 cp "$am_depcomp" conftest.dir
4479 cd conftest.dir
4480 # We will build objects and dependencies in a subdirectory because
4481 # it helps to detect inapplicable dependency modes. For instance
4482 # both Tru64's cc and ICC support -MD to output dependencies as a
4483 # side effect of compilation, but ICC will put the dependencies in
4484 # the current directory while Tru64 will put them in the object
4485 # directory.
4486 mkdir sub
4488 am_cv_CC_dependencies_compiler_type=none
4489 if test "$am_compiler_list" = ""; then
4490 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4492 am__universal=false
4493 case " $depcc " in #(
4494 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4495 esac
4497 for depmode in $am_compiler_list; do
4498 # Setup a source with many dependencies, because some compilers
4499 # like to wrap large dependency lists on column 80 (with \), and
4500 # we should not choose a depcomp mode which is confused by this.
4502 # We need to recreate these files for each test, as the compiler may
4503 # overwrite some of them when testing with obscure command lines.
4504 # This happens at least with the AIX C compiler.
4505 : > sub/conftest.c
4506 for i in 1 2 3 4 5 6; do
4507 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4508 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4509 # Solaris 10 /bin/sh.
4510 echo '/* dummy */' > sub/conftst$i.h
4511 done
4512 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4514 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4515 # mode. It turns out that the SunPro C++ compiler does not properly
4516 # handle '-M -o', and we need to detect this. Also, some Intel
4517 # versions had trouble with output in subdirs.
4518 am__obj=sub/conftest.${OBJEXT-o}
4519 am__minus_obj="-o $am__obj"
4520 case $depmode in
4521 gcc)
4522 # This depmode causes a compiler race in universal mode.
4523 test "$am__universal" = false || continue
4525 nosideeffect)
4526 # After this tag, mechanisms are not by side-effect, so they'll
4527 # only be used when explicitly requested.
4528 if test "x$enable_dependency_tracking" = xyes; then
4529 continue
4530 else
4531 break
4534 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4535 # This compiler won't grok '-c -o', but also, the minuso test has
4536 # not run yet. These depmodes are late enough in the game, and
4537 # so weak that their functioning should not be impacted.
4538 am__obj=conftest.${OBJEXT-o}
4539 am__minus_obj=
4541 none) break ;;
4542 esac
4543 if depmode=$depmode \
4544 source=sub/conftest.c object=$am__obj \
4545 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4546 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4547 >/dev/null 2>conftest.err &&
4548 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4549 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4550 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4551 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4552 # icc doesn't choke on unknown options, it will just issue warnings
4553 # or remarks (even with -Werror). So we grep stderr for any message
4554 # that says an option was ignored or not supported.
4555 # When given -MP, icc 7.0 and 7.1 complain thusly:
4556 # icc: Command line warning: ignoring option '-M'; no argument required
4557 # The diagnosis changed in icc 8.0:
4558 # icc: Command line remark: option '-MP' not supported
4559 if (grep 'ignoring option' conftest.err ||
4560 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4561 am_cv_CC_dependencies_compiler_type=$depmode
4562 break
4565 done
4567 cd ..
4568 rm -rf conftest.dir
4569 else
4570 am_cv_CC_dependencies_compiler_type=none
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4575 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4576 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4579 test "x$enable_dependency_tracking" != xno \
4580 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4581 am__fastdepCC_TRUE=
4582 am__fastdepCC_FALSE='#'
4583 else
4584 am__fastdepCC_TRUE='#'
4585 am__fastdepCC_FALSE=
4589 AX_PROG_CC_FOR_BUILD
4590 case $ac_cv_prog_cc_stdc in #(
4591 no) :
4592 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
4593 *) :
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4595 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4596 if ${ac_cv_prog_cc_c99+:} false; then :
4597 $as_echo_n "(cached) " >&6
4598 else
4599 ac_cv_prog_cc_c99=no
4600 ac_save_CC=$CC
4601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4602 /* end confdefs.h. */
4603 #include <stdarg.h>
4604 #include <stdbool.h>
4605 #include <stdlib.h>
4606 #include <wchar.h>
4607 #include <stdio.h>
4609 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4610 #define debug(...) fprintf (stderr, __VA_ARGS__)
4611 #define showlist(...) puts (#__VA_ARGS__)
4612 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4613 static void
4614 test_varargs_macros (void)
4616 int x = 1234;
4617 int y = 5678;
4618 debug ("Flag");
4619 debug ("X = %d\n", x);
4620 showlist (The first, second, and third items.);
4621 report (x>y, "x is %d but y is %d", x, y);
4624 // Check long long types.
4625 #define BIG64 18446744073709551615ull
4626 #define BIG32 4294967295ul
4627 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4628 #if !BIG_OK
4629 your preprocessor is broken;
4630 #endif
4631 #if BIG_OK
4632 #else
4633 your preprocessor is broken;
4634 #endif
4635 static long long int bignum = -9223372036854775807LL;
4636 static unsigned long long int ubignum = BIG64;
4638 struct incomplete_array
4640 int datasize;
4641 double data[];
4644 struct named_init {
4645 int number;
4646 const wchar_t *name;
4647 double average;
4650 typedef const char *ccp;
4652 static inline int
4653 test_restrict (ccp restrict text)
4655 // See if C++-style comments work.
4656 // Iterate through items via the restricted pointer.
4657 // Also check for declarations in for loops.
4658 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4659 continue;
4660 return 0;
4663 // Check varargs and va_copy.
4664 static void
4665 test_varargs (const char *format, ...)
4667 va_list args;
4668 va_start (args, format);
4669 va_list args_copy;
4670 va_copy (args_copy, args);
4672 const char *str;
4673 int number;
4674 float fnumber;
4676 while (*format)
4678 switch (*format++)
4680 case 's': // string
4681 str = va_arg (args_copy, const char *);
4682 break;
4683 case 'd': // int
4684 number = va_arg (args_copy, int);
4685 break;
4686 case 'f': // float
4687 fnumber = va_arg (args_copy, double);
4688 break;
4689 default:
4690 break;
4693 va_end (args_copy);
4694 va_end (args);
4698 main ()
4701 // Check bool.
4702 _Bool success = false;
4704 // Check restrict.
4705 if (test_restrict ("String literal") == 0)
4706 success = true;
4707 char *restrict newvar = "Another string";
4709 // Check varargs.
4710 test_varargs ("s, d' f .", "string", 65, 34.234);
4711 test_varargs_macros ();
4713 // Check flexible array members.
4714 struct incomplete_array *ia =
4715 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4716 ia->datasize = 10;
4717 for (int i = 0; i < ia->datasize; ++i)
4718 ia->data[i] = i * 1.234;
4720 // Check named initializers.
4721 struct named_init ni = {
4722 .number = 34,
4723 .name = L"Test wide string",
4724 .average = 543.34343,
4727 ni.number = 58;
4729 int dynamic_array[ni.number];
4730 dynamic_array[ni.number - 1] = 543;
4732 // work around unused variable warnings
4733 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4734 || dynamic_array[ni.number - 1] != 543);
4737 return 0;
4739 _ACEOF
4740 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4742 CC="$ac_save_CC $ac_arg"
4743 if ac_fn_c_try_compile "$LINENO"; then :
4744 ac_cv_prog_cc_c99=$ac_arg
4746 rm -f core conftest.err conftest.$ac_objext
4747 test "x$ac_cv_prog_cc_c99" != "xno" && break
4748 done
4749 rm -f conftest.$ac_ext
4750 CC=$ac_save_CC
4753 # AC_CACHE_VAL
4754 case "x$ac_cv_prog_cc_c99" in
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4757 $as_echo "none needed" >&6; } ;;
4758 xno)
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4760 $as_echo "unsupported" >&6; } ;;
4762 CC="$CC $ac_cv_prog_cc_c99"
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4764 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4765 esac
4766 if test "x$ac_cv_prog_cc_c99" != xno; then :
4767 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4768 else
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4770 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4771 if ${ac_cv_prog_cc_c89+:} false; then :
4772 $as_echo_n "(cached) " >&6
4773 else
4774 ac_cv_prog_cc_c89=no
4775 ac_save_CC=$CC
4776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4777 /* end confdefs.h. */
4778 #include <stdarg.h>
4779 #include <stdio.h>
4780 struct stat;
4781 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4782 struct buf { int x; };
4783 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4784 static char *e (p, i)
4785 char **p;
4786 int i;
4788 return p[i];
4790 static char *f (char * (*g) (char **, int), char **p, ...)
4792 char *s;
4793 va_list v;
4794 va_start (v,p);
4795 s = g (p, va_arg (v,int));
4796 va_end (v);
4797 return s;
4800 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4801 function prototypes and stuff, but not '\xHH' hex character constants.
4802 These don't provoke an error unfortunately, instead are silently treated
4803 as 'x'. The following induces an error, until -std is added to get
4804 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4805 array size at least. It's necessary to write '\x00'==0 to get something
4806 that's true only with -std. */
4807 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4809 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4810 inside strings and character constants. */
4811 #define FOO(x) 'x'
4812 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4814 int test (int i, double x);
4815 struct s1 {int (*f) (int a);};
4816 struct s2 {int (*f) (double a);};
4817 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4818 int argc;
4819 char **argv;
4821 main ()
4823 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4825 return 0;
4827 _ACEOF
4828 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4829 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4831 CC="$ac_save_CC $ac_arg"
4832 if ac_fn_c_try_compile "$LINENO"; then :
4833 ac_cv_prog_cc_c89=$ac_arg
4835 rm -f core conftest.err conftest.$ac_objext
4836 test "x$ac_cv_prog_cc_c89" != "xno" && break
4837 done
4838 rm -f conftest.$ac_ext
4839 CC=$ac_save_CC
4842 # AC_CACHE_VAL
4843 case "x$ac_cv_prog_cc_c89" in
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4846 $as_echo "none needed" >&6; } ;;
4847 xno)
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4849 $as_echo "unsupported" >&6; } ;;
4851 CC="$CC $ac_cv_prog_cc_c89"
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4853 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4854 esac
4855 if test "x$ac_cv_prog_cc_c89" != xno; then :
4856 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4857 else
4858 ac_cv_prog_cc_stdc=no
4863 esac
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4865 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4866 if ${ac_cv_prog_cc_stdc+:} false; then :
4867 $as_echo_n "(cached) " >&6
4870 case $ac_cv_prog_cc_stdc in #(
4871 no) :
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4873 $as_echo "unsupported" >&6; } ;; #(
4874 '') :
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4876 $as_echo "none needed" >&6; } ;; #(
4877 *) :
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4879 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4880 esac
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4884 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4885 set x ${MAKE-make}
4886 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4887 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4888 $as_echo_n "(cached) " >&6
4889 else
4890 cat >conftest.make <<\_ACEOF
4891 SHELL = /bin/sh
4892 all:
4893 @echo '@@@%%%=$(MAKE)=@@@%%%'
4894 _ACEOF
4895 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4896 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4897 *@@@%%%=?*=@@@%%%*)
4898 eval ac_cv_prog_make_${ac_make}_set=yes;;
4900 eval ac_cv_prog_make_${ac_make}_set=no;;
4901 esac
4902 rm -f conftest.make
4904 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4906 $as_echo "yes" >&6; }
4907 SET_MAKE=
4908 else
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4910 $as_echo "no" >&6; }
4911 SET_MAKE="MAKE=${MAKE-make}"
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4915 $as_echo_n "checking whether ln -s works... " >&6; }
4916 LN_S=$as_ln_s
4917 if test "$LN_S" = "ln -s"; then
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4919 $as_echo "yes" >&6; }
4920 else
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4922 $as_echo "no, using $LN_S" >&6; }
4925 for ac_prog in gawk mawk nawk awk
4927 # Extract the first word of "$ac_prog", so it can be a program name with args.
4928 set dummy $ac_prog; ac_word=$2
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4930 $as_echo_n "checking for $ac_word... " >&6; }
4931 if ${ac_cv_prog_AWK+:} false; then :
4932 $as_echo_n "(cached) " >&6
4933 else
4934 if test -n "$AWK"; then
4935 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4936 else
4937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4938 for as_dir in $PATH
4940 IFS=$as_save_IFS
4941 test -z "$as_dir" && as_dir=.
4942 for ac_exec_ext in '' $ac_executable_extensions; do
4943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4944 ac_cv_prog_AWK="$ac_prog"
4945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4946 break 2
4948 done
4949 done
4950 IFS=$as_save_IFS
4954 AWK=$ac_cv_prog_AWK
4955 if test -n "$AWK"; then
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4957 $as_echo "$AWK" >&6; }
4958 else
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4960 $as_echo "no" >&6; }
4964 test -n "$AWK" && break
4965 done
4967 case `pwd` in
4968 *\ * | *\ *)
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4970 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4971 esac
4975 macro_version='2.4.6'
4976 macro_revision='2.4.6'
4990 ltmain=$ac_aux_dir/ltmain.sh
4992 # Backslashify metacharacters that are still active within
4993 # double-quoted strings.
4994 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4996 # Same as above, but do not quote variable references.
4997 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4999 # Sed substitution to delay expansion of an escaped shell variable in a
5000 # double_quote_subst'ed string.
5001 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5003 # Sed substitution to delay expansion of an escaped single quote.
5004 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5006 # Sed substitution to avoid accidental globbing in evaled expressions
5007 no_glob_subst='s/\*/\\\*/g'
5009 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5010 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5011 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5014 $as_echo_n "checking how to print strings... " >&6; }
5015 # Test print first, because it will be a builtin if present.
5016 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5017 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5018 ECHO='print -r --'
5019 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5020 ECHO='printf %s\n'
5021 else
5022 # Use this function as a fallback that always works.
5023 func_fallback_echo ()
5025 eval 'cat <<_LTECHO_EOF
5027 _LTECHO_EOF'
5029 ECHO='func_fallback_echo'
5032 # func_echo_all arg...
5033 # Invoke $ECHO with all args, space-separated.
5034 func_echo_all ()
5036 $ECHO ""
5039 case $ECHO in
5040 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5041 $as_echo "printf" >&6; } ;;
5042 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5043 $as_echo "print -r" >&6; } ;;
5044 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5045 $as_echo "cat" >&6; } ;;
5046 esac
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5062 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5063 if ${ac_cv_path_SED+:} false; then :
5064 $as_echo_n "(cached) " >&6
5065 else
5066 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5067 for ac_i in 1 2 3 4 5 6 7; do
5068 ac_script="$ac_script$as_nl$ac_script"
5069 done
5070 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5071 { ac_script=; unset ac_script;}
5072 if test -z "$SED"; then
5073 ac_path_SED_found=false
5074 # Loop through the user's path and test for each of PROGNAME-LIST
5075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5076 for as_dir in $PATH
5078 IFS=$as_save_IFS
5079 test -z "$as_dir" && as_dir=.
5080 for ac_prog in sed gsed; do
5081 for ac_exec_ext in '' $ac_executable_extensions; do
5082 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5083 as_fn_executable_p "$ac_path_SED" || continue
5084 # Check for GNU ac_path_SED and select it if it is found.
5085 # Check for GNU $ac_path_SED
5086 case `"$ac_path_SED" --version 2>&1` in
5087 *GNU*)
5088 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5090 ac_count=0
5091 $as_echo_n 0123456789 >"conftest.in"
5092 while :
5094 cat "conftest.in" "conftest.in" >"conftest.tmp"
5095 mv "conftest.tmp" "conftest.in"
5096 cp "conftest.in" "conftest.nl"
5097 $as_echo '' >> "conftest.nl"
5098 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5099 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5100 as_fn_arith $ac_count + 1 && ac_count=$as_val
5101 if test $ac_count -gt ${ac_path_SED_max-0}; then
5102 # Best one so far, save it but keep looking for a better one
5103 ac_cv_path_SED="$ac_path_SED"
5104 ac_path_SED_max=$ac_count
5106 # 10*(2^10) chars as input seems more than enough
5107 test $ac_count -gt 10 && break
5108 done
5109 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5110 esac
5112 $ac_path_SED_found && break 3
5113 done
5114 done
5115 done
5116 IFS=$as_save_IFS
5117 if test -z "$ac_cv_path_SED"; then
5118 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5120 else
5121 ac_cv_path_SED=$SED
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5126 $as_echo "$ac_cv_path_SED" >&6; }
5127 SED="$ac_cv_path_SED"
5128 rm -f conftest.sed
5130 test -z "$SED" && SED=sed
5131 Xsed="$SED -e 1s/^X//"
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5144 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5145 if ${ac_cv_path_GREP+:} false; then :
5146 $as_echo_n "(cached) " >&6
5147 else
5148 if test -z "$GREP"; then
5149 ac_path_GREP_found=false
5150 # Loop through the user's path and test for each of PROGNAME-LIST
5151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5152 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5154 IFS=$as_save_IFS
5155 test -z "$as_dir" && as_dir=.
5156 for ac_prog in grep ggrep; do
5157 for ac_exec_ext in '' $ac_executable_extensions; do
5158 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5159 as_fn_executable_p "$ac_path_GREP" || continue
5160 # Check for GNU ac_path_GREP and select it if it is found.
5161 # Check for GNU $ac_path_GREP
5162 case `"$ac_path_GREP" --version 2>&1` in
5163 *GNU*)
5164 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5166 ac_count=0
5167 $as_echo_n 0123456789 >"conftest.in"
5168 while :
5170 cat "conftest.in" "conftest.in" >"conftest.tmp"
5171 mv "conftest.tmp" "conftest.in"
5172 cp "conftest.in" "conftest.nl"
5173 $as_echo 'GREP' >> "conftest.nl"
5174 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5175 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5176 as_fn_arith $ac_count + 1 && ac_count=$as_val
5177 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5178 # Best one so far, save it but keep looking for a better one
5179 ac_cv_path_GREP="$ac_path_GREP"
5180 ac_path_GREP_max=$ac_count
5182 # 10*(2^10) chars as input seems more than enough
5183 test $ac_count -gt 10 && break
5184 done
5185 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5186 esac
5188 $ac_path_GREP_found && break 3
5189 done
5190 done
5191 done
5192 IFS=$as_save_IFS
5193 if test -z "$ac_cv_path_GREP"; then
5194 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5196 else
5197 ac_cv_path_GREP=$GREP
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5202 $as_echo "$ac_cv_path_GREP" >&6; }
5203 GREP="$ac_cv_path_GREP"
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5207 $as_echo_n "checking for egrep... " >&6; }
5208 if ${ac_cv_path_EGREP+:} false; then :
5209 $as_echo_n "(cached) " >&6
5210 else
5211 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5212 then ac_cv_path_EGREP="$GREP -E"
5213 else
5214 if test -z "$EGREP"; then
5215 ac_path_EGREP_found=false
5216 # Loop through the user's path and test for each of PROGNAME-LIST
5217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5218 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5220 IFS=$as_save_IFS
5221 test -z "$as_dir" && as_dir=.
5222 for ac_prog in egrep; do
5223 for ac_exec_ext in '' $ac_executable_extensions; do
5224 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5225 as_fn_executable_p "$ac_path_EGREP" || continue
5226 # Check for GNU ac_path_EGREP and select it if it is found.
5227 # Check for GNU $ac_path_EGREP
5228 case `"$ac_path_EGREP" --version 2>&1` in
5229 *GNU*)
5230 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5232 ac_count=0
5233 $as_echo_n 0123456789 >"conftest.in"
5234 while :
5236 cat "conftest.in" "conftest.in" >"conftest.tmp"
5237 mv "conftest.tmp" "conftest.in"
5238 cp "conftest.in" "conftest.nl"
5239 $as_echo 'EGREP' >> "conftest.nl"
5240 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5241 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5242 as_fn_arith $ac_count + 1 && ac_count=$as_val
5243 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5244 # Best one so far, save it but keep looking for a better one
5245 ac_cv_path_EGREP="$ac_path_EGREP"
5246 ac_path_EGREP_max=$ac_count
5248 # 10*(2^10) chars as input seems more than enough
5249 test $ac_count -gt 10 && break
5250 done
5251 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5252 esac
5254 $ac_path_EGREP_found && break 3
5255 done
5256 done
5257 done
5258 IFS=$as_save_IFS
5259 if test -z "$ac_cv_path_EGREP"; then
5260 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5262 else
5263 ac_cv_path_EGREP=$EGREP
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5269 $as_echo "$ac_cv_path_EGREP" >&6; }
5270 EGREP="$ac_cv_path_EGREP"
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5274 $as_echo_n "checking for fgrep... " >&6; }
5275 if ${ac_cv_path_FGREP+:} false; then :
5276 $as_echo_n "(cached) " >&6
5277 else
5278 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5279 then ac_cv_path_FGREP="$GREP -F"
5280 else
5281 if test -z "$FGREP"; then
5282 ac_path_FGREP_found=false
5283 # Loop through the user's path and test for each of PROGNAME-LIST
5284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5285 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5287 IFS=$as_save_IFS
5288 test -z "$as_dir" && as_dir=.
5289 for ac_prog in fgrep; do
5290 for ac_exec_ext in '' $ac_executable_extensions; do
5291 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5292 as_fn_executable_p "$ac_path_FGREP" || continue
5293 # Check for GNU ac_path_FGREP and select it if it is found.
5294 # Check for GNU $ac_path_FGREP
5295 case `"$ac_path_FGREP" --version 2>&1` in
5296 *GNU*)
5297 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5299 ac_count=0
5300 $as_echo_n 0123456789 >"conftest.in"
5301 while :
5303 cat "conftest.in" "conftest.in" >"conftest.tmp"
5304 mv "conftest.tmp" "conftest.in"
5305 cp "conftest.in" "conftest.nl"
5306 $as_echo 'FGREP' >> "conftest.nl"
5307 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5308 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5309 as_fn_arith $ac_count + 1 && ac_count=$as_val
5310 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5311 # Best one so far, save it but keep looking for a better one
5312 ac_cv_path_FGREP="$ac_path_FGREP"
5313 ac_path_FGREP_max=$ac_count
5315 # 10*(2^10) chars as input seems more than enough
5316 test $ac_count -gt 10 && break
5317 done
5318 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5319 esac
5321 $ac_path_FGREP_found && break 3
5322 done
5323 done
5324 done
5325 IFS=$as_save_IFS
5326 if test -z "$ac_cv_path_FGREP"; then
5327 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5329 else
5330 ac_cv_path_FGREP=$FGREP
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5336 $as_echo "$ac_cv_path_FGREP" >&6; }
5337 FGREP="$ac_cv_path_FGREP"
5340 test -z "$GREP" && GREP=grep
5360 # Check whether --with-gnu-ld was given.
5361 if test "${with_gnu_ld+set}" = set; then :
5362 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5363 else
5364 with_gnu_ld=no
5367 ac_prog=ld
5368 if test yes = "$GCC"; then
5369 # Check if gcc -print-prog-name=ld gives a path.
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5371 $as_echo_n "checking for ld used by $CC... " >&6; }
5372 case $host in
5373 *-*-mingw*)
5374 # gcc leaves a trailing carriage return, which upsets mingw
5375 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5377 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5378 esac
5379 case $ac_prog in
5380 # Accept absolute paths.
5381 [\\/]* | ?:[\\/]*)
5382 re_direlt='/[^/][^/]*/\.\./'
5383 # Canonicalize the pathname of ld
5384 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5385 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5386 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5387 done
5388 test -z "$LD" && LD=$ac_prog
5391 # If it fails, then pretend we aren't using GCC.
5392 ac_prog=ld
5395 # If it is relative, then search for the first ld in PATH.
5396 with_gnu_ld=unknown
5398 esac
5399 elif test yes = "$with_gnu_ld"; then
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5401 $as_echo_n "checking for GNU ld... " >&6; }
5402 else
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5404 $as_echo_n "checking for non-GNU ld... " >&6; }
5406 if ${lt_cv_path_LD+:} false; then :
5407 $as_echo_n "(cached) " >&6
5408 else
5409 if test -z "$LD"; then
5410 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5411 for ac_dir in $PATH; do
5412 IFS=$lt_save_ifs
5413 test -z "$ac_dir" && ac_dir=.
5414 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5415 lt_cv_path_LD=$ac_dir/$ac_prog
5416 # Check to see if the program is GNU ld. I'd rather use --version,
5417 # but apparently some variants of GNU ld only accept -v.
5418 # Break only if it was the GNU/non-GNU ld that we prefer.
5419 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5420 *GNU* | *'with BFD'*)
5421 test no != "$with_gnu_ld" && break
5424 test yes != "$with_gnu_ld" && break
5426 esac
5428 done
5429 IFS=$lt_save_ifs
5430 else
5431 lt_cv_path_LD=$LD # Let the user override the test with a path.
5435 LD=$lt_cv_path_LD
5436 if test -n "$LD"; then
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5438 $as_echo "$LD" >&6; }
5439 else
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5441 $as_echo "no" >&6; }
5443 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5445 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5446 if ${lt_cv_prog_gnu_ld+:} false; then :
5447 $as_echo_n "(cached) " >&6
5448 else
5449 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5450 case `$LD -v 2>&1 </dev/null` in
5451 *GNU* | *'with BFD'*)
5452 lt_cv_prog_gnu_ld=yes
5455 lt_cv_prog_gnu_ld=no
5457 esac
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5460 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5461 with_gnu_ld=$lt_cv_prog_gnu_ld
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5472 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5473 if ${lt_cv_path_NM+:} false; then :
5474 $as_echo_n "(cached) " >&6
5475 else
5476 if test -n "$NM"; then
5477 # Let the user override the test.
5478 lt_cv_path_NM=$NM
5479 else
5480 lt_nm_to_check=${ac_tool_prefix}nm
5481 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5482 lt_nm_to_check="$lt_nm_to_check nm"
5484 for lt_tmp_nm in $lt_nm_to_check; do
5485 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5486 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5487 IFS=$lt_save_ifs
5488 test -z "$ac_dir" && ac_dir=.
5489 tmp_nm=$ac_dir/$lt_tmp_nm
5490 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5491 # Check to see if the nm accepts a BSD-compat flag.
5492 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5493 # nm: unknown option "B" ignored
5494 # Tru64's nm complains that /dev/null is an invalid object file
5495 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5496 case $build_os in
5497 mingw*) lt_bad_file=conftest.nm/nofile ;;
5498 *) lt_bad_file=/dev/null ;;
5499 esac
5500 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5501 *$lt_bad_file* | *'Invalid file or object type'*)
5502 lt_cv_path_NM="$tmp_nm -B"
5503 break 2
5506 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5507 */dev/null*)
5508 lt_cv_path_NM="$tmp_nm -p"
5509 break 2
5512 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5513 continue # so that we can try to find one that supports BSD flags
5515 esac
5517 esac
5519 done
5520 IFS=$lt_save_ifs
5521 done
5522 : ${lt_cv_path_NM=no}
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5526 $as_echo "$lt_cv_path_NM" >&6; }
5527 if test no != "$lt_cv_path_NM"; then
5528 NM=$lt_cv_path_NM
5529 else
5530 # Didn't find any BSD compatible name lister, look for dumpbin.
5531 if test -n "$DUMPBIN"; then :
5532 # Let the user override the test.
5533 else
5534 if test -n "$ac_tool_prefix"; then
5535 for ac_prog in dumpbin "link -dump"
5537 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5538 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5540 $as_echo_n "checking for $ac_word... " >&6; }
5541 if ${ac_cv_prog_DUMPBIN+:} false; then :
5542 $as_echo_n "(cached) " >&6
5543 else
5544 if test -n "$DUMPBIN"; then
5545 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5546 else
5547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5548 for as_dir in $PATH
5550 IFS=$as_save_IFS
5551 test -z "$as_dir" && as_dir=.
5552 for ac_exec_ext in '' $ac_executable_extensions; do
5553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5554 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5556 break 2
5558 done
5559 done
5560 IFS=$as_save_IFS
5564 DUMPBIN=$ac_cv_prog_DUMPBIN
5565 if test -n "$DUMPBIN"; then
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5567 $as_echo "$DUMPBIN" >&6; }
5568 else
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5570 $as_echo "no" >&6; }
5574 test -n "$DUMPBIN" && break
5575 done
5577 if test -z "$DUMPBIN"; then
5578 ac_ct_DUMPBIN=$DUMPBIN
5579 for ac_prog in dumpbin "link -dump"
5581 # Extract the first word of "$ac_prog", so it can be a program name with args.
5582 set dummy $ac_prog; ac_word=$2
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5584 $as_echo_n "checking for $ac_word... " >&6; }
5585 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5586 $as_echo_n "(cached) " >&6
5587 else
5588 if test -n "$ac_ct_DUMPBIN"; then
5589 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5590 else
5591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5592 for as_dir in $PATH
5594 IFS=$as_save_IFS
5595 test -z "$as_dir" && as_dir=.
5596 for ac_exec_ext in '' $ac_executable_extensions; do
5597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5598 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5600 break 2
5602 done
5603 done
5604 IFS=$as_save_IFS
5608 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5609 if test -n "$ac_ct_DUMPBIN"; then
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5611 $as_echo "$ac_ct_DUMPBIN" >&6; }
5612 else
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5614 $as_echo "no" >&6; }
5618 test -n "$ac_ct_DUMPBIN" && break
5619 done
5621 if test "x$ac_ct_DUMPBIN" = x; then
5622 DUMPBIN=":"
5623 else
5624 case $cross_compiling:$ac_tool_warned in
5625 yes:)
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5627 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5628 ac_tool_warned=yes ;;
5629 esac
5630 DUMPBIN=$ac_ct_DUMPBIN
5634 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5635 *COFF*)
5636 DUMPBIN="$DUMPBIN -symbols -headers"
5639 DUMPBIN=:
5641 esac
5644 if test : != "$DUMPBIN"; then
5645 NM=$DUMPBIN
5648 test -z "$NM" && NM=nm
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5656 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5657 if ${lt_cv_nm_interface+:} false; then :
5658 $as_echo_n "(cached) " >&6
5659 else
5660 lt_cv_nm_interface="BSD nm"
5661 echo "int some_variable = 0;" > conftest.$ac_ext
5662 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5663 (eval "$ac_compile" 2>conftest.err)
5664 cat conftest.err >&5
5665 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5666 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5667 cat conftest.err >&5
5668 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5669 cat conftest.out >&5
5670 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5671 lt_cv_nm_interface="MS dumpbin"
5673 rm -f conftest*
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5676 $as_echo "$lt_cv_nm_interface" >&6; }
5678 # find the maximum length of command line arguments
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5680 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5681 if ${lt_cv_sys_max_cmd_len+:} false; then :
5682 $as_echo_n "(cached) " >&6
5683 else
5685 teststring=ABCD
5687 case $build_os in
5688 msdosdjgpp*)
5689 # On DJGPP, this test can blow up pretty badly due to problems in libc
5690 # (any single argument exceeding 2000 bytes causes a buffer overrun
5691 # during glob expansion). Even if it were fixed, the result of this
5692 # check would be larger than it should be.
5693 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5696 gnu*)
5697 # Under GNU Hurd, this test is not required because there is
5698 # no limit to the length of command line arguments.
5699 # Libtool will interpret -1 as no limit whatsoever
5700 lt_cv_sys_max_cmd_len=-1;
5703 cygwin* | mingw* | cegcc*)
5704 # On Win9x/ME, this test blows up -- it succeeds, but takes
5705 # about 5 minutes as the teststring grows exponentially.
5706 # Worse, since 9x/ME are not pre-emptively multitasking,
5707 # you end up with a "frozen" computer, even though with patience
5708 # the test eventually succeeds (with a max line length of 256k).
5709 # Instead, let's just punt: use the minimum linelength reported by
5710 # all of the supported platforms: 8192 (on NT/2K/XP).
5711 lt_cv_sys_max_cmd_len=8192;
5714 mint*)
5715 # On MiNT this can take a long time and run out of memory.
5716 lt_cv_sys_max_cmd_len=8192;
5719 amigaos*)
5720 # On AmigaOS with pdksh, this test takes hours, literally.
5721 # So we just punt and use a minimum line length of 8192.
5722 lt_cv_sys_max_cmd_len=8192;
5725 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5726 # This has been around since 386BSD, at least. Likely further.
5727 if test -x /sbin/sysctl; then
5728 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5729 elif test -x /usr/sbin/sysctl; then
5730 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5731 else
5732 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5734 # And add a safety zone
5735 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5736 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5739 interix*)
5740 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5741 lt_cv_sys_max_cmd_len=196608
5744 os2*)
5745 # The test takes a long time on OS/2.
5746 lt_cv_sys_max_cmd_len=8192
5749 osf*)
5750 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5751 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5752 # nice to cause kernel panics so lets avoid the loop below.
5753 # First set a reasonable default.
5754 lt_cv_sys_max_cmd_len=16384
5756 if test -x /sbin/sysconfig; then
5757 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5758 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5759 esac
5762 sco3.2v5*)
5763 lt_cv_sys_max_cmd_len=102400
5765 sysv5* | sco5v6* | sysv4.2uw2*)
5766 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5767 if test -n "$kargmax"; then
5768 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5769 else
5770 lt_cv_sys_max_cmd_len=32768
5774 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5775 if test -n "$lt_cv_sys_max_cmd_len" && \
5776 test undefined != "$lt_cv_sys_max_cmd_len"; then
5777 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5778 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5779 else
5780 # Make teststring a little bigger before we do anything with it.
5781 # a 1K string should be a reasonable start.
5782 for i in 1 2 3 4 5 6 7 8; do
5783 teststring=$teststring$teststring
5784 done
5785 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5786 # If test is not a shell built-in, we'll probably end up computing a
5787 # maximum length that is only half of the actual maximum length, but
5788 # we can't tell.
5789 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5790 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5791 test 17 != "$i" # 1/2 MB should be enough
5793 i=`expr $i + 1`
5794 teststring=$teststring$teststring
5795 done
5796 # Only check the string length outside the loop.
5797 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5798 teststring=
5799 # Add a significant safety factor because C++ compilers can tack on
5800 # massive amounts of additional arguments before passing them to the
5801 # linker. It appears as though 1/2 is a usable value.
5802 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5805 esac
5809 if test -n "$lt_cv_sys_max_cmd_len"; then
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5811 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5812 else
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5814 $as_echo "none" >&6; }
5816 max_cmd_len=$lt_cv_sys_max_cmd_len
5823 : ${CP="cp -f"}
5824 : ${MV="mv -f"}
5825 : ${RM="rm -f"}
5827 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5828 lt_unset=unset
5829 else
5830 lt_unset=false
5837 # test EBCDIC or ASCII
5838 case `echo X|tr X '\101'` in
5839 A) # ASCII based system
5840 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5841 lt_SP2NL='tr \040 \012'
5842 lt_NL2SP='tr \015\012 \040\040'
5844 *) # EBCDIC based system
5845 lt_SP2NL='tr \100 \n'
5846 lt_NL2SP='tr \r\n \100\100'
5848 esac
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5859 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5860 if ${lt_cv_to_host_file_cmd+:} false; then :
5861 $as_echo_n "(cached) " >&6
5862 else
5863 case $host in
5864 *-*-mingw* )
5865 case $build in
5866 *-*-mingw* ) # actually msys
5867 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5869 *-*-cygwin* )
5870 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5872 * ) # otherwise, assume *nix
5873 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5875 esac
5877 *-*-cygwin* )
5878 case $build in
5879 *-*-mingw* ) # actually msys
5880 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5882 *-*-cygwin* )
5883 lt_cv_to_host_file_cmd=func_convert_file_noop
5885 * ) # otherwise, assume *nix
5886 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5888 esac
5890 * ) # unhandled hosts (and "normal" native builds)
5891 lt_cv_to_host_file_cmd=func_convert_file_noop
5893 esac
5897 to_host_file_cmd=$lt_cv_to_host_file_cmd
5898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5899 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5906 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5907 if ${lt_cv_to_tool_file_cmd+:} false; then :
5908 $as_echo_n "(cached) " >&6
5909 else
5910 #assume ordinary cross tools, or native build.
5911 lt_cv_to_tool_file_cmd=func_convert_file_noop
5912 case $host in
5913 *-*-mingw* )
5914 case $build in
5915 *-*-mingw* ) # actually msys
5916 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5918 esac
5920 esac
5924 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5926 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5933 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5934 if ${lt_cv_ld_reload_flag+:} false; then :
5935 $as_echo_n "(cached) " >&6
5936 else
5937 lt_cv_ld_reload_flag='-r'
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5940 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5941 reload_flag=$lt_cv_ld_reload_flag
5942 case $reload_flag in
5943 "" | " "*) ;;
5944 *) reload_flag=" $reload_flag" ;;
5945 esac
5946 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5947 case $host_os in
5948 cygwin* | mingw* | pw32* | cegcc*)
5949 if test yes != "$GCC"; then
5950 reload_cmds=false
5953 darwin*)
5954 if test yes = "$GCC"; then
5955 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5956 else
5957 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5960 esac
5970 if test -n "$ac_tool_prefix"; then
5971 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5972 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5974 $as_echo_n "checking for $ac_word... " >&6; }
5975 if ${ac_cv_prog_OBJDUMP+:} false; then :
5976 $as_echo_n "(cached) " >&6
5977 else
5978 if test -n "$OBJDUMP"; then
5979 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5980 else
5981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5982 for as_dir in $PATH
5984 IFS=$as_save_IFS
5985 test -z "$as_dir" && as_dir=.
5986 for ac_exec_ext in '' $ac_executable_extensions; do
5987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5988 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5990 break 2
5992 done
5993 done
5994 IFS=$as_save_IFS
5998 OBJDUMP=$ac_cv_prog_OBJDUMP
5999 if test -n "$OBJDUMP"; then
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6001 $as_echo "$OBJDUMP" >&6; }
6002 else
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6004 $as_echo "no" >&6; }
6009 if test -z "$ac_cv_prog_OBJDUMP"; then
6010 ac_ct_OBJDUMP=$OBJDUMP
6011 # Extract the first word of "objdump", so it can be a program name with args.
6012 set dummy objdump; ac_word=$2
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6014 $as_echo_n "checking for $ac_word... " >&6; }
6015 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6016 $as_echo_n "(cached) " >&6
6017 else
6018 if test -n "$ac_ct_OBJDUMP"; then
6019 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6020 else
6021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6022 for as_dir in $PATH
6024 IFS=$as_save_IFS
6025 test -z "$as_dir" && as_dir=.
6026 for ac_exec_ext in '' $ac_executable_extensions; do
6027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6028 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6030 break 2
6032 done
6033 done
6034 IFS=$as_save_IFS
6038 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6039 if test -n "$ac_ct_OBJDUMP"; then
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6041 $as_echo "$ac_ct_OBJDUMP" >&6; }
6042 else
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6044 $as_echo "no" >&6; }
6047 if test "x$ac_ct_OBJDUMP" = x; then
6048 OBJDUMP="false"
6049 else
6050 case $cross_compiling:$ac_tool_warned in
6051 yes:)
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6053 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6054 ac_tool_warned=yes ;;
6055 esac
6056 OBJDUMP=$ac_ct_OBJDUMP
6058 else
6059 OBJDUMP="$ac_cv_prog_OBJDUMP"
6062 test -z "$OBJDUMP" && OBJDUMP=objdump
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6073 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6074 if ${lt_cv_deplibs_check_method+:} false; then :
6075 $as_echo_n "(cached) " >&6
6076 else
6077 lt_cv_file_magic_cmd='$MAGIC_CMD'
6078 lt_cv_file_magic_test_file=
6079 lt_cv_deplibs_check_method='unknown'
6080 # Need to set the preceding variable on all platforms that support
6081 # interlibrary dependencies.
6082 # 'none' -- dependencies not supported.
6083 # 'unknown' -- same as none, but documents that we really don't know.
6084 # 'pass_all' -- all dependencies passed with no checks.
6085 # 'test_compile' -- check by making test program.
6086 # 'file_magic [[regex]]' -- check by looking for files in library path
6087 # that responds to the $file_magic_cmd with a given extended regex.
6088 # If you have 'file' or equivalent on your system and you're not sure
6089 # whether 'pass_all' will *always* work, you probably want this one.
6091 case $host_os in
6092 aix[4-9]*)
6093 lt_cv_deplibs_check_method=pass_all
6096 beos*)
6097 lt_cv_deplibs_check_method=pass_all
6100 bsdi[45]*)
6101 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6102 lt_cv_file_magic_cmd='/usr/bin/file -L'
6103 lt_cv_file_magic_test_file=/shlib/libc.so
6106 cygwin*)
6107 # func_win32_libid is a shell function defined in ltmain.sh
6108 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6109 lt_cv_file_magic_cmd='func_win32_libid'
6112 mingw* | pw32*)
6113 # Base MSYS/MinGW do not provide the 'file' command needed by
6114 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6115 # unless we find 'file', for example because we are cross-compiling.
6116 if ( file / ) >/dev/null 2>&1; then
6117 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6118 lt_cv_file_magic_cmd='func_win32_libid'
6119 else
6120 # Keep this pattern in sync with the one in func_win32_libid.
6121 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6122 lt_cv_file_magic_cmd='$OBJDUMP -f'
6126 cegcc*)
6127 # use the weaker test based on 'objdump'. See mingw*.
6128 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6129 lt_cv_file_magic_cmd='$OBJDUMP -f'
6132 darwin* | rhapsody*)
6133 lt_cv_deplibs_check_method=pass_all
6136 freebsd* | dragonfly*)
6137 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6138 case $host_cpu in
6139 i*86 )
6140 # Not sure whether the presence of OpenBSD here was a mistake.
6141 # Let's accept both of them until this is cleared up.
6142 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6143 lt_cv_file_magic_cmd=/usr/bin/file
6144 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6146 esac
6147 else
6148 lt_cv_deplibs_check_method=pass_all
6152 haiku*)
6153 lt_cv_deplibs_check_method=pass_all
6156 hpux10.20* | hpux11*)
6157 lt_cv_file_magic_cmd=/usr/bin/file
6158 case $host_cpu in
6159 ia64*)
6160 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6161 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6163 hppa*64*)
6164 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]'
6165 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6168 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6169 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6171 esac
6174 interix[3-9]*)
6175 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6176 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6179 irix5* | irix6* | nonstopux*)
6180 case $LD in
6181 *-32|*"-32 ") libmagic=32-bit;;
6182 *-n32|*"-n32 ") libmagic=N32;;
6183 *-64|*"-64 ") libmagic=64-bit;;
6184 *) libmagic=never-match;;
6185 esac
6186 lt_cv_deplibs_check_method=pass_all
6189 # This must be glibc/ELF.
6190 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6191 lt_cv_deplibs_check_method=pass_all
6194 netbsd*)
6195 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6196 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6197 else
6198 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6202 newos6*)
6203 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6204 lt_cv_file_magic_cmd=/usr/bin/file
6205 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6208 *nto* | *qnx*)
6209 lt_cv_deplibs_check_method=pass_all
6212 openbsd* | bitrig*)
6213 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6214 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6215 else
6216 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6220 osf3* | osf4* | osf5*)
6221 lt_cv_deplibs_check_method=pass_all
6224 rdos*)
6225 lt_cv_deplibs_check_method=pass_all
6228 solaris*)
6229 lt_cv_deplibs_check_method=pass_all
6232 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6233 lt_cv_deplibs_check_method=pass_all
6236 sysv4 | sysv4.3*)
6237 case $host_vendor in
6238 motorola)
6239 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]'
6240 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6242 ncr)
6243 lt_cv_deplibs_check_method=pass_all
6245 sequent)
6246 lt_cv_file_magic_cmd='/bin/file'
6247 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6249 sni)
6250 lt_cv_file_magic_cmd='/bin/file'
6251 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6252 lt_cv_file_magic_test_file=/lib/libc.so
6254 siemens)
6255 lt_cv_deplibs_check_method=pass_all
6258 lt_cv_deplibs_check_method=pass_all
6260 esac
6263 tpf*)
6264 lt_cv_deplibs_check_method=pass_all
6266 os2*)
6267 lt_cv_deplibs_check_method=pass_all
6269 esac
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6273 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6275 file_magic_glob=
6276 want_nocaseglob=no
6277 if test "$build" = "$host"; then
6278 case $host_os in
6279 mingw* | pw32*)
6280 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6281 want_nocaseglob=yes
6282 else
6283 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6286 esac
6289 file_magic_cmd=$lt_cv_file_magic_cmd
6290 deplibs_check_method=$lt_cv_deplibs_check_method
6291 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6314 if test -n "$ac_tool_prefix"; then
6315 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6316 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6318 $as_echo_n "checking for $ac_word... " >&6; }
6319 if ${ac_cv_prog_DLLTOOL+:} false; then :
6320 $as_echo_n "(cached) " >&6
6321 else
6322 if test -n "$DLLTOOL"; then
6323 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6324 else
6325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6326 for as_dir in $PATH
6328 IFS=$as_save_IFS
6329 test -z "$as_dir" && as_dir=.
6330 for ac_exec_ext in '' $ac_executable_extensions; do
6331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6332 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6334 break 2
6336 done
6337 done
6338 IFS=$as_save_IFS
6342 DLLTOOL=$ac_cv_prog_DLLTOOL
6343 if test -n "$DLLTOOL"; then
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6345 $as_echo "$DLLTOOL" >&6; }
6346 else
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6348 $as_echo "no" >&6; }
6353 if test -z "$ac_cv_prog_DLLTOOL"; then
6354 ac_ct_DLLTOOL=$DLLTOOL
6355 # Extract the first word of "dlltool", so it can be a program name with args.
6356 set dummy dlltool; ac_word=$2
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6358 $as_echo_n "checking for $ac_word... " >&6; }
6359 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6360 $as_echo_n "(cached) " >&6
6361 else
6362 if test -n "$ac_ct_DLLTOOL"; then
6363 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6364 else
6365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6366 for as_dir in $PATH
6368 IFS=$as_save_IFS
6369 test -z "$as_dir" && as_dir=.
6370 for ac_exec_ext in '' $ac_executable_extensions; do
6371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6372 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6374 break 2
6376 done
6377 done
6378 IFS=$as_save_IFS
6382 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6383 if test -n "$ac_ct_DLLTOOL"; then
6384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6385 $as_echo "$ac_ct_DLLTOOL" >&6; }
6386 else
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6388 $as_echo "no" >&6; }
6391 if test "x$ac_ct_DLLTOOL" = x; then
6392 DLLTOOL="false"
6393 else
6394 case $cross_compiling:$ac_tool_warned in
6395 yes:)
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6397 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6398 ac_tool_warned=yes ;;
6399 esac
6400 DLLTOOL=$ac_ct_DLLTOOL
6402 else
6403 DLLTOOL="$ac_cv_prog_DLLTOOL"
6406 test -z "$DLLTOOL" && DLLTOOL=dlltool
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6418 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6419 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6420 $as_echo_n "(cached) " >&6
6421 else
6422 lt_cv_sharedlib_from_linklib_cmd='unknown'
6424 case $host_os in
6425 cygwin* | mingw* | pw32* | cegcc*)
6426 # two different shell functions defined in ltmain.sh;
6427 # decide which one to use based on capabilities of $DLLTOOL
6428 case `$DLLTOOL --help 2>&1` in
6429 *--identify-strict*)
6430 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6433 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6435 esac
6438 # fallback: assume linklib IS sharedlib
6439 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6441 esac
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6445 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6446 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6447 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6456 if test -n "$ac_tool_prefix"; then
6457 for ac_prog in ar
6459 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6460 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6462 $as_echo_n "checking for $ac_word... " >&6; }
6463 if ${ac_cv_prog_AR+:} false; then :
6464 $as_echo_n "(cached) " >&6
6465 else
6466 if test -n "$AR"; then
6467 ac_cv_prog_AR="$AR" # Let the user override the test.
6468 else
6469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6470 for as_dir in $PATH
6472 IFS=$as_save_IFS
6473 test -z "$as_dir" && as_dir=.
6474 for ac_exec_ext in '' $ac_executable_extensions; do
6475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6476 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6478 break 2
6480 done
6481 done
6482 IFS=$as_save_IFS
6486 AR=$ac_cv_prog_AR
6487 if test -n "$AR"; then
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6489 $as_echo "$AR" >&6; }
6490 else
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6492 $as_echo "no" >&6; }
6496 test -n "$AR" && break
6497 done
6499 if test -z "$AR"; then
6500 ac_ct_AR=$AR
6501 for ac_prog in ar
6503 # Extract the first word of "$ac_prog", so it can be a program name with args.
6504 set dummy $ac_prog; ac_word=$2
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6506 $as_echo_n "checking for $ac_word... " >&6; }
6507 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6508 $as_echo_n "(cached) " >&6
6509 else
6510 if test -n "$ac_ct_AR"; then
6511 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6512 else
6513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6514 for as_dir in $PATH
6516 IFS=$as_save_IFS
6517 test -z "$as_dir" && as_dir=.
6518 for ac_exec_ext in '' $ac_executable_extensions; do
6519 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6520 ac_cv_prog_ac_ct_AR="$ac_prog"
6521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6522 break 2
6524 done
6525 done
6526 IFS=$as_save_IFS
6530 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6531 if test -n "$ac_ct_AR"; then
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6533 $as_echo "$ac_ct_AR" >&6; }
6534 else
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6536 $as_echo "no" >&6; }
6540 test -n "$ac_ct_AR" && break
6541 done
6543 if test "x$ac_ct_AR" = x; then
6544 AR="false"
6545 else
6546 case $cross_compiling:$ac_tool_warned in
6547 yes:)
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6549 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6550 ac_tool_warned=yes ;;
6551 esac
6552 AR=$ac_ct_AR
6556 : ${AR=ar}
6557 : ${AR_FLAGS=cru}
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6570 $as_echo_n "checking for archiver @FILE support... " >&6; }
6571 if ${lt_cv_ar_at_file+:} false; then :
6572 $as_echo_n "(cached) " >&6
6573 else
6574 lt_cv_ar_at_file=no
6575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6576 /* end confdefs.h. */
6579 main ()
6583 return 0;
6585 _ACEOF
6586 if ac_fn_c_try_compile "$LINENO"; then :
6587 echo conftest.$ac_objext > conftest.lst
6588 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6589 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6590 (eval $lt_ar_try) 2>&5
6591 ac_status=$?
6592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6593 test $ac_status = 0; }
6594 if test 0 -eq "$ac_status"; then
6595 # Ensure the archiver fails upon bogus file names.
6596 rm -f conftest.$ac_objext libconftest.a
6597 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6598 (eval $lt_ar_try) 2>&5
6599 ac_status=$?
6600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6601 test $ac_status = 0; }
6602 if test 0 -ne "$ac_status"; then
6603 lt_cv_ar_at_file=@
6606 rm -f conftest.* libconftest.a
6609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6613 $as_echo "$lt_cv_ar_at_file" >&6; }
6615 if test no = "$lt_cv_ar_at_file"; then
6616 archiver_list_spec=
6617 else
6618 archiver_list_spec=$lt_cv_ar_at_file
6627 if test -n "$ac_tool_prefix"; then
6628 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6629 set dummy ${ac_tool_prefix}strip; ac_word=$2
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6631 $as_echo_n "checking for $ac_word... " >&6; }
6632 if ${ac_cv_prog_STRIP+:} false; then :
6633 $as_echo_n "(cached) " >&6
6634 else
6635 if test -n "$STRIP"; then
6636 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6637 else
6638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6639 for as_dir in $PATH
6641 IFS=$as_save_IFS
6642 test -z "$as_dir" && as_dir=.
6643 for ac_exec_ext in '' $ac_executable_extensions; do
6644 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6645 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6647 break 2
6649 done
6650 done
6651 IFS=$as_save_IFS
6655 STRIP=$ac_cv_prog_STRIP
6656 if test -n "$STRIP"; then
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6658 $as_echo "$STRIP" >&6; }
6659 else
6660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6661 $as_echo "no" >&6; }
6666 if test -z "$ac_cv_prog_STRIP"; then
6667 ac_ct_STRIP=$STRIP
6668 # Extract the first word of "strip", so it can be a program name with args.
6669 set dummy strip; ac_word=$2
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6671 $as_echo_n "checking for $ac_word... " >&6; }
6672 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6673 $as_echo_n "(cached) " >&6
6674 else
6675 if test -n "$ac_ct_STRIP"; then
6676 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6677 else
6678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6679 for as_dir in $PATH
6681 IFS=$as_save_IFS
6682 test -z "$as_dir" && as_dir=.
6683 for ac_exec_ext in '' $ac_executable_extensions; do
6684 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6685 ac_cv_prog_ac_ct_STRIP="strip"
6686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6687 break 2
6689 done
6690 done
6691 IFS=$as_save_IFS
6695 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6696 if test -n "$ac_ct_STRIP"; then
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6698 $as_echo "$ac_ct_STRIP" >&6; }
6699 else
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6701 $as_echo "no" >&6; }
6704 if test "x$ac_ct_STRIP" = x; then
6705 STRIP=":"
6706 else
6707 case $cross_compiling:$ac_tool_warned in
6708 yes:)
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6710 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6711 ac_tool_warned=yes ;;
6712 esac
6713 STRIP=$ac_ct_STRIP
6715 else
6716 STRIP="$ac_cv_prog_STRIP"
6719 test -z "$STRIP" && STRIP=:
6726 if test -n "$ac_tool_prefix"; then
6727 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6728 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6730 $as_echo_n "checking for $ac_word... " >&6; }
6731 if ${ac_cv_prog_RANLIB+:} false; then :
6732 $as_echo_n "(cached) " >&6
6733 else
6734 if test -n "$RANLIB"; then
6735 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6736 else
6737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6738 for as_dir in $PATH
6740 IFS=$as_save_IFS
6741 test -z "$as_dir" && as_dir=.
6742 for ac_exec_ext in '' $ac_executable_extensions; do
6743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6744 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6746 break 2
6748 done
6749 done
6750 IFS=$as_save_IFS
6754 RANLIB=$ac_cv_prog_RANLIB
6755 if test -n "$RANLIB"; then
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6757 $as_echo "$RANLIB" >&6; }
6758 else
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6760 $as_echo "no" >&6; }
6765 if test -z "$ac_cv_prog_RANLIB"; then
6766 ac_ct_RANLIB=$RANLIB
6767 # Extract the first word of "ranlib", so it can be a program name with args.
6768 set dummy ranlib; ac_word=$2
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6770 $as_echo_n "checking for $ac_word... " >&6; }
6771 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6772 $as_echo_n "(cached) " >&6
6773 else
6774 if test -n "$ac_ct_RANLIB"; then
6775 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6776 else
6777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6778 for as_dir in $PATH
6780 IFS=$as_save_IFS
6781 test -z "$as_dir" && as_dir=.
6782 for ac_exec_ext in '' $ac_executable_extensions; do
6783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6784 ac_cv_prog_ac_ct_RANLIB="ranlib"
6785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6786 break 2
6788 done
6789 done
6790 IFS=$as_save_IFS
6794 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6795 if test -n "$ac_ct_RANLIB"; then
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6797 $as_echo "$ac_ct_RANLIB" >&6; }
6798 else
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6800 $as_echo "no" >&6; }
6803 if test "x$ac_ct_RANLIB" = x; then
6804 RANLIB=":"
6805 else
6806 case $cross_compiling:$ac_tool_warned in
6807 yes:)
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6809 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6810 ac_tool_warned=yes ;;
6811 esac
6812 RANLIB=$ac_ct_RANLIB
6814 else
6815 RANLIB="$ac_cv_prog_RANLIB"
6818 test -z "$RANLIB" && RANLIB=:
6825 # Determine commands to create old-style static archives.
6826 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6827 old_postinstall_cmds='chmod 644 $oldlib'
6828 old_postuninstall_cmds=
6830 if test -n "$RANLIB"; then
6831 case $host_os in
6832 bitrig* | openbsd*)
6833 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6836 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6838 esac
6839 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6842 case $host_os in
6843 darwin*)
6844 lock_old_archive_extraction=yes ;;
6846 lock_old_archive_extraction=no ;;
6847 esac
6887 # If no C compiler was specified, use CC.
6888 LTCC=${LTCC-"$CC"}
6890 # If no C compiler flags were specified, use CFLAGS.
6891 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6893 # Allow CC to be a program name with arguments.
6894 compiler=$CC
6897 # Check for command to grab the raw symbol name followed by C symbol from nm.
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6899 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6900 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6901 $as_echo_n "(cached) " >&6
6902 else
6904 # These are sane defaults that work on at least a few old systems.
6905 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6907 # Character class describing NM global symbol codes.
6908 symcode='[BCDEGRST]'
6910 # Regexp to match symbols that can be accessed directly from C.
6911 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6913 # Define system-specific variables.
6914 case $host_os in
6915 aix*)
6916 symcode='[BCDT]'
6918 cygwin* | mingw* | pw32* | cegcc*)
6919 symcode='[ABCDGISTW]'
6921 hpux*)
6922 if test ia64 = "$host_cpu"; then
6923 symcode='[ABCDEGRST]'
6926 irix* | nonstopux*)
6927 symcode='[BCDEGRST]'
6929 osf*)
6930 symcode='[BCDEGQRST]'
6932 solaris*)
6933 symcode='[BDRT]'
6935 sco3.2v5*)
6936 symcode='[DT]'
6938 sysv4.2uw2*)
6939 symcode='[DT]'
6941 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6942 symcode='[ABDT]'
6944 sysv4)
6945 symcode='[DFNSTU]'
6947 esac
6949 # If we're using GNU nm, then use its standard symbol codes.
6950 case `$NM -V 2>&1` in
6951 *GNU* | *'with BFD'*)
6952 symcode='[ABCDGIRSTW]' ;;
6953 esac
6955 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6956 # Gets list of data symbols to import.
6957 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6958 # Adjust the below global symbol transforms to fixup imported variables.
6959 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6960 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6961 lt_c_name_lib_hook="\
6962 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6963 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6964 else
6965 # Disable hooks by default.
6966 lt_cv_sys_global_symbol_to_import=
6967 lt_cdecl_hook=
6968 lt_c_name_hook=
6969 lt_c_name_lib_hook=
6972 # Transform an extracted symbol line into a proper C declaration.
6973 # Some systems (esp. on ia64) link data and code symbols differently,
6974 # so use this general approach.
6975 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6976 $lt_cdecl_hook\
6977 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6978 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6980 # Transform an extracted symbol line into symbol name and symbol address
6981 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6982 $lt_c_name_hook\
6983 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6984 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6986 # Transform an extracted symbol line into symbol name with lib prefix and
6987 # symbol address.
6988 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6989 $lt_c_name_lib_hook\
6990 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6991 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6992 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6994 # Handle CRLF in mingw tool chain
6995 opt_cr=
6996 case $build_os in
6997 mingw*)
6998 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7000 esac
7002 # Try without a prefix underscore, then with it.
7003 for ac_symprfx in "" "_"; do
7005 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7006 symxfrm="\\1 $ac_symprfx\\2 \\2"
7008 # Write the raw and C identifiers.
7009 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7010 # Fake it for dumpbin and say T for any non-static function,
7011 # D for any global variable and I for any imported variable.
7012 # Also find C++ and __fastcall symbols from MSVC++,
7013 # which start with @ or ?.
7014 lt_cv_sys_global_symbol_pipe="$AWK '"\
7015 " {last_section=section; section=\$ 3};"\
7016 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7017 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7018 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7019 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7020 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7021 " \$ 0!~/External *\|/{next};"\
7022 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7023 " {if(hide[section]) next};"\
7024 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7025 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7026 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7027 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7028 " ' prfx=^$ac_symprfx"
7029 else
7030 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7032 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7034 # Check to see that the pipe works correctly.
7035 pipe_works=no
7037 rm -f conftest*
7038 cat > conftest.$ac_ext <<_LT_EOF
7039 #ifdef __cplusplus
7040 extern "C" {
7041 #endif
7042 char nm_test_var;
7043 void nm_test_func(void);
7044 void nm_test_func(void){}
7045 #ifdef __cplusplus
7047 #endif
7048 int main(){nm_test_var='a';nm_test_func();return(0);}
7049 _LT_EOF
7051 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7052 (eval $ac_compile) 2>&5
7053 ac_status=$?
7054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7055 test $ac_status = 0; }; then
7056 # Now try to grab the symbols.
7057 nlist=conftest.nm
7058 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7059 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7060 ac_status=$?
7061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7062 test $ac_status = 0; } && test -s "$nlist"; then
7063 # Try sorting and uniquifying the output.
7064 if sort "$nlist" | uniq > "$nlist"T; then
7065 mv -f "$nlist"T "$nlist"
7066 else
7067 rm -f "$nlist"T
7070 # Make sure that we snagged all the symbols we need.
7071 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7072 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7073 cat <<_LT_EOF > conftest.$ac_ext
7074 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7075 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7076 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7077 relocations are performed -- see ld's documentation on pseudo-relocs. */
7078 # define LT_DLSYM_CONST
7079 #elif defined __osf__
7080 /* This system does not cope well with relocations in const data. */
7081 # define LT_DLSYM_CONST
7082 #else
7083 # define LT_DLSYM_CONST const
7084 #endif
7086 #ifdef __cplusplus
7087 extern "C" {
7088 #endif
7090 _LT_EOF
7091 # Now generate the symbol file.
7092 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7094 cat <<_LT_EOF >> conftest.$ac_ext
7096 /* The mapping between symbol names and symbols. */
7097 LT_DLSYM_CONST struct {
7098 const char *name;
7099 void *address;
7101 lt__PROGRAM__LTX_preloaded_symbols[] =
7103 { "@PROGRAM@", (void *) 0 },
7104 _LT_EOF
7105 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7106 cat <<\_LT_EOF >> conftest.$ac_ext
7107 {0, (void *) 0}
7110 /* This works around a problem in FreeBSD linker */
7111 #ifdef FREEBSD_WORKAROUND
7112 static const void *lt_preloaded_setup() {
7113 return lt__PROGRAM__LTX_preloaded_symbols;
7115 #endif
7117 #ifdef __cplusplus
7119 #endif
7120 _LT_EOF
7121 # Now try linking the two files.
7122 mv conftest.$ac_objext conftstm.$ac_objext
7123 lt_globsym_save_LIBS=$LIBS
7124 lt_globsym_save_CFLAGS=$CFLAGS
7125 LIBS=conftstm.$ac_objext
7126 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7127 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7128 (eval $ac_link) 2>&5
7129 ac_status=$?
7130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7131 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7132 pipe_works=yes
7134 LIBS=$lt_globsym_save_LIBS
7135 CFLAGS=$lt_globsym_save_CFLAGS
7136 else
7137 echo "cannot find nm_test_func in $nlist" >&5
7139 else
7140 echo "cannot find nm_test_var in $nlist" >&5
7142 else
7143 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7145 else
7146 echo "$progname: failed program was:" >&5
7147 cat conftest.$ac_ext >&5
7149 rm -rf conftest* conftst*
7151 # Do not use the global_symbol_pipe unless it works.
7152 if test yes = "$pipe_works"; then
7153 break
7154 else
7155 lt_cv_sys_global_symbol_pipe=
7157 done
7161 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7162 lt_cv_sys_global_symbol_to_cdecl=
7164 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7166 $as_echo "failed" >&6; }
7167 else
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7169 $as_echo "ok" >&6; }
7172 # Response file support.
7173 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7174 nm_file_list_spec='@'
7175 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7176 nm_file_list_spec='@'
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7216 $as_echo_n "checking for sysroot... " >&6; }
7218 # Check whether --with-sysroot was given.
7219 if test "${with_sysroot+set}" = set; then :
7220 withval=$with_sysroot;
7221 else
7222 with_sysroot=no
7226 lt_sysroot=
7227 case $with_sysroot in #(
7228 yes)
7229 if test yes = "$GCC"; then
7230 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7232 ;; #(
7234 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7235 ;; #(
7236 no|'')
7237 ;; #(
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7240 $as_echo "$with_sysroot" >&6; }
7241 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7243 esac
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7246 $as_echo "${lt_sysroot:-no}" >&6; }
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7253 $as_echo_n "checking for a working dd... " >&6; }
7254 if ${ac_cv_path_lt_DD+:} false; then :
7255 $as_echo_n "(cached) " >&6
7256 else
7257 printf 0123456789abcdef0123456789abcdef >conftest.i
7258 cat conftest.i conftest.i >conftest2.i
7259 : ${lt_DD:=$DD}
7260 if test -z "$lt_DD"; then
7261 ac_path_lt_DD_found=false
7262 # Loop through the user's path and test for each of PROGNAME-LIST
7263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7264 for as_dir in $PATH
7266 IFS=$as_save_IFS
7267 test -z "$as_dir" && as_dir=.
7268 for ac_prog in dd; do
7269 for ac_exec_ext in '' $ac_executable_extensions; do
7270 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7271 as_fn_executable_p "$ac_path_lt_DD" || continue
7272 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7273 cmp -s conftest.i conftest.out \
7274 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7276 $ac_path_lt_DD_found && break 3
7277 done
7278 done
7279 done
7280 IFS=$as_save_IFS
7281 if test -z "$ac_cv_path_lt_DD"; then
7284 else
7285 ac_cv_path_lt_DD=$lt_DD
7288 rm -f conftest.i conftest2.i conftest.out
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7291 $as_echo "$ac_cv_path_lt_DD" >&6; }
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7295 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7296 if ${lt_cv_truncate_bin+:} false; then :
7297 $as_echo_n "(cached) " >&6
7298 else
7299 printf 0123456789abcdef0123456789abcdef >conftest.i
7300 cat conftest.i conftest.i >conftest2.i
7301 lt_cv_truncate_bin=
7302 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7303 cmp -s conftest.i conftest.out \
7304 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7306 rm -f conftest.i conftest2.i conftest.out
7307 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7310 $as_echo "$lt_cv_truncate_bin" >&6; }
7318 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7319 func_cc_basename ()
7321 for cc_temp in $*""; do
7322 case $cc_temp in
7323 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7324 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7325 \-*) ;;
7326 *) break;;
7327 esac
7328 done
7329 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7332 # Check whether --enable-libtool-lock was given.
7333 if test "${enable_libtool_lock+set}" = set; then :
7334 enableval=$enable_libtool_lock;
7337 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7339 # Some flags need to be propagated to the compiler or linker for good
7340 # libtool support.
7341 case $host in
7342 ia64-*-hpux*)
7343 # Find out what ABI is being produced by ac_compile, and set mode
7344 # options accordingly.
7345 echo 'int i;' > conftest.$ac_ext
7346 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7347 (eval $ac_compile) 2>&5
7348 ac_status=$?
7349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7350 test $ac_status = 0; }; then
7351 case `/usr/bin/file conftest.$ac_objext` in
7352 *ELF-32*)
7353 HPUX_IA64_MODE=32
7355 *ELF-64*)
7356 HPUX_IA64_MODE=64
7358 esac
7360 rm -rf conftest*
7362 *-*-irix6*)
7363 # Find out what ABI is being produced by ac_compile, and set linker
7364 # options accordingly.
7365 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7366 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7367 (eval $ac_compile) 2>&5
7368 ac_status=$?
7369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7370 test $ac_status = 0; }; then
7371 if test yes = "$lt_cv_prog_gnu_ld"; then
7372 case `/usr/bin/file conftest.$ac_objext` in
7373 *32-bit*)
7374 LD="${LD-ld} -melf32bsmip"
7376 *N32*)
7377 LD="${LD-ld} -melf32bmipn32"
7379 *64-bit*)
7380 LD="${LD-ld} -melf64bmip"
7382 esac
7383 else
7384 case `/usr/bin/file conftest.$ac_objext` in
7385 *32-bit*)
7386 LD="${LD-ld} -32"
7388 *N32*)
7389 LD="${LD-ld} -n32"
7391 *64-bit*)
7392 LD="${LD-ld} -64"
7394 esac
7397 rm -rf conftest*
7400 mips64*-*linux*)
7401 # Find out what ABI is being produced by ac_compile, and set linker
7402 # options accordingly.
7403 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7404 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7405 (eval $ac_compile) 2>&5
7406 ac_status=$?
7407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7408 test $ac_status = 0; }; then
7409 emul=elf
7410 case `/usr/bin/file conftest.$ac_objext` in
7411 *32-bit*)
7412 emul="${emul}32"
7414 *64-bit*)
7415 emul="${emul}64"
7417 esac
7418 case `/usr/bin/file conftest.$ac_objext` in
7419 *MSB*)
7420 emul="${emul}btsmip"
7422 *LSB*)
7423 emul="${emul}ltsmip"
7425 esac
7426 case `/usr/bin/file conftest.$ac_objext` in
7427 *N32*)
7428 emul="${emul}n32"
7430 esac
7431 LD="${LD-ld} -m $emul"
7433 rm -rf conftest*
7436 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7437 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7438 # Find out what ABI is being produced by ac_compile, and set linker
7439 # options accordingly. Note that the listed cases only cover the
7440 # situations where additional linker options are needed (such as when
7441 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7442 # vice versa); the common cases where no linker options are needed do
7443 # not appear in the list.
7444 echo 'int i;' > conftest.$ac_ext
7445 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7446 (eval $ac_compile) 2>&5
7447 ac_status=$?
7448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7449 test $ac_status = 0; }; then
7450 case `/usr/bin/file conftest.o` in
7451 *32-bit*)
7452 case $host in
7453 x86_64-*kfreebsd*-gnu)
7454 LD="${LD-ld} -m elf_i386_fbsd"
7456 x86_64-*linux*)
7457 case `/usr/bin/file conftest.o` in
7458 *x86-64*)
7459 LD="${LD-ld} -m elf32_x86_64"
7462 LD="${LD-ld} -m elf_i386"
7464 esac
7466 powerpc64le-*linux*)
7467 LD="${LD-ld} -m elf32lppclinux"
7469 powerpc64-*linux*)
7470 LD="${LD-ld} -m elf32ppclinux"
7472 s390x-*linux*)
7473 LD="${LD-ld} -m elf_s390"
7475 sparc64-*linux*)
7476 LD="${LD-ld} -m elf32_sparc"
7478 esac
7480 *64-bit*)
7481 case $host in
7482 x86_64-*kfreebsd*-gnu)
7483 LD="${LD-ld} -m elf_x86_64_fbsd"
7485 x86_64-*linux*)
7486 LD="${LD-ld} -m elf_x86_64"
7488 powerpcle-*linux*)
7489 LD="${LD-ld} -m elf64lppc"
7491 powerpc-*linux*)
7492 LD="${LD-ld} -m elf64ppc"
7494 s390*-*linux*|s390*-*tpf*)
7495 LD="${LD-ld} -m elf64_s390"
7497 sparc*-*linux*)
7498 LD="${LD-ld} -m elf64_sparc"
7500 esac
7502 esac
7504 rm -rf conftest*
7507 *-*-sco3.2v5*)
7508 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7509 SAVE_CFLAGS=$CFLAGS
7510 CFLAGS="$CFLAGS -belf"
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7512 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7513 if ${lt_cv_cc_needs_belf+:} false; then :
7514 $as_echo_n "(cached) " >&6
7515 else
7516 ac_ext=c
7517 ac_cpp='$CPP $CPPFLAGS'
7518 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7519 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7520 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7523 /* end confdefs.h. */
7526 main ()
7530 return 0;
7532 _ACEOF
7533 if ac_fn_c_try_link "$LINENO"; then :
7534 lt_cv_cc_needs_belf=yes
7535 else
7536 lt_cv_cc_needs_belf=no
7538 rm -f core conftest.err conftest.$ac_objext \
7539 conftest$ac_exeext conftest.$ac_ext
7540 ac_ext=c
7541 ac_cpp='$CPP $CPPFLAGS'
7542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7548 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7549 if test yes != "$lt_cv_cc_needs_belf"; then
7550 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7551 CFLAGS=$SAVE_CFLAGS
7554 *-*solaris*)
7555 # Find out what ABI is being produced by ac_compile, and set linker
7556 # options accordingly.
7557 echo 'int i;' > conftest.$ac_ext
7558 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7559 (eval $ac_compile) 2>&5
7560 ac_status=$?
7561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7562 test $ac_status = 0; }; then
7563 case `/usr/bin/file conftest.o` in
7564 *64-bit*)
7565 case $lt_cv_prog_gnu_ld in
7566 yes*)
7567 case $host in
7568 i?86-*-solaris*|x86_64-*-solaris*)
7569 LD="${LD-ld} -m elf_x86_64"
7571 sparc*-*-solaris*)
7572 LD="${LD-ld} -m elf64_sparc"
7574 esac
7575 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7576 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7577 LD=${LD-ld}_sol2
7581 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7582 LD="${LD-ld} -64"
7585 esac
7587 esac
7589 rm -rf conftest*
7591 esac
7593 need_locks=$enable_libtool_lock
7595 if test -n "$ac_tool_prefix"; then
7596 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7597 set dummy ${ac_tool_prefix}mt; ac_word=$2
7598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7599 $as_echo_n "checking for $ac_word... " >&6; }
7600 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7601 $as_echo_n "(cached) " >&6
7602 else
7603 if test -n "$MANIFEST_TOOL"; then
7604 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7605 else
7606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7607 for as_dir in $PATH
7609 IFS=$as_save_IFS
7610 test -z "$as_dir" && as_dir=.
7611 for ac_exec_ext in '' $ac_executable_extensions; do
7612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7613 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7615 break 2
7617 done
7618 done
7619 IFS=$as_save_IFS
7623 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7624 if test -n "$MANIFEST_TOOL"; then
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7626 $as_echo "$MANIFEST_TOOL" >&6; }
7627 else
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7629 $as_echo "no" >&6; }
7634 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7635 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7636 # Extract the first word of "mt", so it can be a program name with args.
7637 set dummy mt; ac_word=$2
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7639 $as_echo_n "checking for $ac_word... " >&6; }
7640 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7641 $as_echo_n "(cached) " >&6
7642 else
7643 if test -n "$ac_ct_MANIFEST_TOOL"; then
7644 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7645 else
7646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7647 for as_dir in $PATH
7649 IFS=$as_save_IFS
7650 test -z "$as_dir" && as_dir=.
7651 for ac_exec_ext in '' $ac_executable_extensions; do
7652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7653 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7655 break 2
7657 done
7658 done
7659 IFS=$as_save_IFS
7663 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7664 if test -n "$ac_ct_MANIFEST_TOOL"; then
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7666 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7667 else
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7669 $as_echo "no" >&6; }
7672 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7673 MANIFEST_TOOL=":"
7674 else
7675 case $cross_compiling:$ac_tool_warned in
7676 yes:)
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7678 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7679 ac_tool_warned=yes ;;
7680 esac
7681 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7683 else
7684 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7687 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7689 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7690 if ${lt_cv_path_mainfest_tool+:} false; then :
7691 $as_echo_n "(cached) " >&6
7692 else
7693 lt_cv_path_mainfest_tool=no
7694 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7695 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7696 cat conftest.err >&5
7697 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7698 lt_cv_path_mainfest_tool=yes
7700 rm -f conftest*
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7703 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7704 if test yes != "$lt_cv_path_mainfest_tool"; then
7705 MANIFEST_TOOL=:
7713 case $host_os in
7714 rhapsody* | darwin*)
7715 if test -n "$ac_tool_prefix"; then
7716 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7717 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7719 $as_echo_n "checking for $ac_word... " >&6; }
7720 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7721 $as_echo_n "(cached) " >&6
7722 else
7723 if test -n "$DSYMUTIL"; then
7724 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7725 else
7726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7727 for as_dir in $PATH
7729 IFS=$as_save_IFS
7730 test -z "$as_dir" && as_dir=.
7731 for ac_exec_ext in '' $ac_executable_extensions; do
7732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7733 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7735 break 2
7737 done
7738 done
7739 IFS=$as_save_IFS
7743 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7744 if test -n "$DSYMUTIL"; then
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7746 $as_echo "$DSYMUTIL" >&6; }
7747 else
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7749 $as_echo "no" >&6; }
7754 if test -z "$ac_cv_prog_DSYMUTIL"; then
7755 ac_ct_DSYMUTIL=$DSYMUTIL
7756 # Extract the first word of "dsymutil", so it can be a program name with args.
7757 set dummy dsymutil; ac_word=$2
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7759 $as_echo_n "checking for $ac_word... " >&6; }
7760 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7761 $as_echo_n "(cached) " >&6
7762 else
7763 if test -n "$ac_ct_DSYMUTIL"; then
7764 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7765 else
7766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7767 for as_dir in $PATH
7769 IFS=$as_save_IFS
7770 test -z "$as_dir" && as_dir=.
7771 for ac_exec_ext in '' $ac_executable_extensions; do
7772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7773 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7775 break 2
7777 done
7778 done
7779 IFS=$as_save_IFS
7783 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7784 if test -n "$ac_ct_DSYMUTIL"; then
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7786 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7787 else
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7789 $as_echo "no" >&6; }
7792 if test "x$ac_ct_DSYMUTIL" = x; then
7793 DSYMUTIL=":"
7794 else
7795 case $cross_compiling:$ac_tool_warned in
7796 yes:)
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7798 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7799 ac_tool_warned=yes ;;
7800 esac
7801 DSYMUTIL=$ac_ct_DSYMUTIL
7803 else
7804 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7807 if test -n "$ac_tool_prefix"; then
7808 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7809 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7811 $as_echo_n "checking for $ac_word... " >&6; }
7812 if ${ac_cv_prog_NMEDIT+:} false; then :
7813 $as_echo_n "(cached) " >&6
7814 else
7815 if test -n "$NMEDIT"; then
7816 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7817 else
7818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7819 for as_dir in $PATH
7821 IFS=$as_save_IFS
7822 test -z "$as_dir" && as_dir=.
7823 for ac_exec_ext in '' $ac_executable_extensions; do
7824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7825 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7827 break 2
7829 done
7830 done
7831 IFS=$as_save_IFS
7835 NMEDIT=$ac_cv_prog_NMEDIT
7836 if test -n "$NMEDIT"; then
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7838 $as_echo "$NMEDIT" >&6; }
7839 else
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7841 $as_echo "no" >&6; }
7846 if test -z "$ac_cv_prog_NMEDIT"; then
7847 ac_ct_NMEDIT=$NMEDIT
7848 # Extract the first word of "nmedit", so it can be a program name with args.
7849 set dummy nmedit; ac_word=$2
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7851 $as_echo_n "checking for $ac_word... " >&6; }
7852 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7853 $as_echo_n "(cached) " >&6
7854 else
7855 if test -n "$ac_ct_NMEDIT"; then
7856 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7857 else
7858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7859 for as_dir in $PATH
7861 IFS=$as_save_IFS
7862 test -z "$as_dir" && as_dir=.
7863 for ac_exec_ext in '' $ac_executable_extensions; do
7864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7865 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7867 break 2
7869 done
7870 done
7871 IFS=$as_save_IFS
7875 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7876 if test -n "$ac_ct_NMEDIT"; then
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7878 $as_echo "$ac_ct_NMEDIT" >&6; }
7879 else
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7881 $as_echo "no" >&6; }
7884 if test "x$ac_ct_NMEDIT" = x; then
7885 NMEDIT=":"
7886 else
7887 case $cross_compiling:$ac_tool_warned in
7888 yes:)
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7890 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7891 ac_tool_warned=yes ;;
7892 esac
7893 NMEDIT=$ac_ct_NMEDIT
7895 else
7896 NMEDIT="$ac_cv_prog_NMEDIT"
7899 if test -n "$ac_tool_prefix"; then
7900 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7901 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7903 $as_echo_n "checking for $ac_word... " >&6; }
7904 if ${ac_cv_prog_LIPO+:} false; then :
7905 $as_echo_n "(cached) " >&6
7906 else
7907 if test -n "$LIPO"; then
7908 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7909 else
7910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7911 for as_dir in $PATH
7913 IFS=$as_save_IFS
7914 test -z "$as_dir" && as_dir=.
7915 for ac_exec_ext in '' $ac_executable_extensions; do
7916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7917 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7919 break 2
7921 done
7922 done
7923 IFS=$as_save_IFS
7927 LIPO=$ac_cv_prog_LIPO
7928 if test -n "$LIPO"; then
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7930 $as_echo "$LIPO" >&6; }
7931 else
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7933 $as_echo "no" >&6; }
7938 if test -z "$ac_cv_prog_LIPO"; then
7939 ac_ct_LIPO=$LIPO
7940 # Extract the first word of "lipo", so it can be a program name with args.
7941 set dummy lipo; ac_word=$2
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7943 $as_echo_n "checking for $ac_word... " >&6; }
7944 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7945 $as_echo_n "(cached) " >&6
7946 else
7947 if test -n "$ac_ct_LIPO"; then
7948 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7949 else
7950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7951 for as_dir in $PATH
7953 IFS=$as_save_IFS
7954 test -z "$as_dir" && as_dir=.
7955 for ac_exec_ext in '' $ac_executable_extensions; do
7956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7957 ac_cv_prog_ac_ct_LIPO="lipo"
7958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7959 break 2
7961 done
7962 done
7963 IFS=$as_save_IFS
7967 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7968 if test -n "$ac_ct_LIPO"; then
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7970 $as_echo "$ac_ct_LIPO" >&6; }
7971 else
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7973 $as_echo "no" >&6; }
7976 if test "x$ac_ct_LIPO" = x; then
7977 LIPO=":"
7978 else
7979 case $cross_compiling:$ac_tool_warned in
7980 yes:)
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7982 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7983 ac_tool_warned=yes ;;
7984 esac
7985 LIPO=$ac_ct_LIPO
7987 else
7988 LIPO="$ac_cv_prog_LIPO"
7991 if test -n "$ac_tool_prefix"; then
7992 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7993 set dummy ${ac_tool_prefix}otool; ac_word=$2
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7995 $as_echo_n "checking for $ac_word... " >&6; }
7996 if ${ac_cv_prog_OTOOL+:} false; then :
7997 $as_echo_n "(cached) " >&6
7998 else
7999 if test -n "$OTOOL"; then
8000 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8001 else
8002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8003 for as_dir in $PATH
8005 IFS=$as_save_IFS
8006 test -z "$as_dir" && as_dir=.
8007 for ac_exec_ext in '' $ac_executable_extensions; do
8008 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8009 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8011 break 2
8013 done
8014 done
8015 IFS=$as_save_IFS
8019 OTOOL=$ac_cv_prog_OTOOL
8020 if test -n "$OTOOL"; then
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8022 $as_echo "$OTOOL" >&6; }
8023 else
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8025 $as_echo "no" >&6; }
8030 if test -z "$ac_cv_prog_OTOOL"; then
8031 ac_ct_OTOOL=$OTOOL
8032 # Extract the first word of "otool", so it can be a program name with args.
8033 set dummy otool; ac_word=$2
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8035 $as_echo_n "checking for $ac_word... " >&6; }
8036 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8037 $as_echo_n "(cached) " >&6
8038 else
8039 if test -n "$ac_ct_OTOOL"; then
8040 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8041 else
8042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8043 for as_dir in $PATH
8045 IFS=$as_save_IFS
8046 test -z "$as_dir" && as_dir=.
8047 for ac_exec_ext in '' $ac_executable_extensions; do
8048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8049 ac_cv_prog_ac_ct_OTOOL="otool"
8050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8051 break 2
8053 done
8054 done
8055 IFS=$as_save_IFS
8059 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8060 if test -n "$ac_ct_OTOOL"; then
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8062 $as_echo "$ac_ct_OTOOL" >&6; }
8063 else
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8065 $as_echo "no" >&6; }
8068 if test "x$ac_ct_OTOOL" = x; then
8069 OTOOL=":"
8070 else
8071 case $cross_compiling:$ac_tool_warned in
8072 yes:)
8073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8074 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8075 ac_tool_warned=yes ;;
8076 esac
8077 OTOOL=$ac_ct_OTOOL
8079 else
8080 OTOOL="$ac_cv_prog_OTOOL"
8083 if test -n "$ac_tool_prefix"; then
8084 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8085 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8087 $as_echo_n "checking for $ac_word... " >&6; }
8088 if ${ac_cv_prog_OTOOL64+:} false; then :
8089 $as_echo_n "(cached) " >&6
8090 else
8091 if test -n "$OTOOL64"; then
8092 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8093 else
8094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8095 for as_dir in $PATH
8097 IFS=$as_save_IFS
8098 test -z "$as_dir" && as_dir=.
8099 for ac_exec_ext in '' $ac_executable_extensions; do
8100 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8101 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8103 break 2
8105 done
8106 done
8107 IFS=$as_save_IFS
8111 OTOOL64=$ac_cv_prog_OTOOL64
8112 if test -n "$OTOOL64"; then
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8114 $as_echo "$OTOOL64" >&6; }
8115 else
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8117 $as_echo "no" >&6; }
8122 if test -z "$ac_cv_prog_OTOOL64"; then
8123 ac_ct_OTOOL64=$OTOOL64
8124 # Extract the first word of "otool64", so it can be a program name with args.
8125 set dummy otool64; ac_word=$2
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8127 $as_echo_n "checking for $ac_word... " >&6; }
8128 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8129 $as_echo_n "(cached) " >&6
8130 else
8131 if test -n "$ac_ct_OTOOL64"; then
8132 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8133 else
8134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8135 for as_dir in $PATH
8137 IFS=$as_save_IFS
8138 test -z "$as_dir" && as_dir=.
8139 for ac_exec_ext in '' $ac_executable_extensions; do
8140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8141 ac_cv_prog_ac_ct_OTOOL64="otool64"
8142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8143 break 2
8145 done
8146 done
8147 IFS=$as_save_IFS
8151 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8152 if test -n "$ac_ct_OTOOL64"; then
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8154 $as_echo "$ac_ct_OTOOL64" >&6; }
8155 else
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8157 $as_echo "no" >&6; }
8160 if test "x$ac_ct_OTOOL64" = x; then
8161 OTOOL64=":"
8162 else
8163 case $cross_compiling:$ac_tool_warned in
8164 yes:)
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8166 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8167 ac_tool_warned=yes ;;
8168 esac
8169 OTOOL64=$ac_ct_OTOOL64
8171 else
8172 OTOOL64="$ac_cv_prog_OTOOL64"
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8202 $as_echo_n "checking for -single_module linker flag... " >&6; }
8203 if ${lt_cv_apple_cc_single_mod+:} false; then :
8204 $as_echo_n "(cached) " >&6
8205 else
8206 lt_cv_apple_cc_single_mod=no
8207 if test -z "$LT_MULTI_MODULE"; then
8208 # By default we will add the -single_module flag. You can override
8209 # by either setting the environment variable LT_MULTI_MODULE
8210 # non-empty at configure time, or by adding -multi_module to the
8211 # link flags.
8212 rm -rf libconftest.dylib*
8213 echo "int foo(void){return 1;}" > conftest.c
8214 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8215 -dynamiclib -Wl,-single_module conftest.c" >&5
8216 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8217 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8218 _lt_result=$?
8219 # If there is a non-empty error log, and "single_module"
8220 # appears in it, assume the flag caused a linker warning
8221 if test -s conftest.err && $GREP single_module conftest.err; then
8222 cat conftest.err >&5
8223 # Otherwise, if the output was created with a 0 exit code from
8224 # the compiler, it worked.
8225 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8226 lt_cv_apple_cc_single_mod=yes
8227 else
8228 cat conftest.err >&5
8230 rm -rf libconftest.dylib*
8231 rm -f conftest.*
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8235 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8238 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8239 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8240 $as_echo_n "(cached) " >&6
8241 else
8242 lt_cv_ld_exported_symbols_list=no
8243 save_LDFLAGS=$LDFLAGS
8244 echo "_main" > conftest.sym
8245 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8247 /* end confdefs.h. */
8250 main ()
8254 return 0;
8256 _ACEOF
8257 if ac_fn_c_try_link "$LINENO"; then :
8258 lt_cv_ld_exported_symbols_list=yes
8259 else
8260 lt_cv_ld_exported_symbols_list=no
8262 rm -f core conftest.err conftest.$ac_objext \
8263 conftest$ac_exeext conftest.$ac_ext
8264 LDFLAGS=$save_LDFLAGS
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8268 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8271 $as_echo_n "checking for -force_load linker flag... " >&6; }
8272 if ${lt_cv_ld_force_load+:} false; then :
8273 $as_echo_n "(cached) " >&6
8274 else
8275 lt_cv_ld_force_load=no
8276 cat > conftest.c << _LT_EOF
8277 int forced_loaded() { return 2;}
8278 _LT_EOF
8279 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8280 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8281 echo "$AR cru libconftest.a conftest.o" >&5
8282 $AR cru libconftest.a conftest.o 2>&5
8283 echo "$RANLIB libconftest.a" >&5
8284 $RANLIB libconftest.a 2>&5
8285 cat > conftest.c << _LT_EOF
8286 int main() { return 0;}
8287 _LT_EOF
8288 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8289 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8290 _lt_result=$?
8291 if test -s conftest.err && $GREP force_load conftest.err; then
8292 cat conftest.err >&5
8293 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8294 lt_cv_ld_force_load=yes
8295 else
8296 cat conftest.err >&5
8298 rm -f conftest.err libconftest.a conftest conftest.c
8299 rm -rf conftest.dSYM
8302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8303 $as_echo "$lt_cv_ld_force_load" >&6; }
8304 case $host_os in
8305 rhapsody* | darwin1.[012])
8306 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8307 darwin1.*)
8308 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8309 darwin*) # darwin 5.x on
8310 # if running on 10.5 or later, the deployment target defaults
8311 # to the OS version, if on x86, and 10.4, the deployment
8312 # target defaults to 10.4. Don't you love it?
8313 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8314 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8315 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8316 10.[012][,.]*)
8317 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8318 10.*)
8319 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8320 esac
8322 esac
8323 if test yes = "$lt_cv_apple_cc_single_mod"; then
8324 _lt_dar_single_mod='$single_module'
8326 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8327 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8328 else
8329 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8331 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8332 _lt_dsymutil='~$DSYMUTIL $lib || :'
8333 else
8334 _lt_dsymutil=
8337 esac
8339 # func_munge_path_list VARIABLE PATH
8340 # -----------------------------------
8341 # VARIABLE is name of variable containing _space_ separated list of
8342 # directories to be munged by the contents of PATH, which is string
8343 # having a format:
8344 # "DIR[:DIR]:"
8345 # string "DIR[ DIR]" will be prepended to VARIABLE
8346 # ":DIR[:DIR]"
8347 # string "DIR[ DIR]" will be appended to VARIABLE
8348 # "DIRP[:DIRP]::[DIRA:]DIRA"
8349 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8350 # "DIRA[ DIRA]" will be appended to VARIABLE
8351 # "DIR[:DIR]"
8352 # VARIABLE will be replaced by "DIR[ DIR]"
8353 func_munge_path_list ()
8355 case x$2 in
8359 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8361 x:*)
8362 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8364 *::*)
8365 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8366 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8369 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8371 esac
8374 ac_ext=c
8375 ac_cpp='$CPP $CPPFLAGS'
8376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8380 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8381 # On Suns, sometimes $CPP names a directory.
8382 if test -n "$CPP" && test -d "$CPP"; then
8383 CPP=
8385 if test -z "$CPP"; then
8386 if ${ac_cv_prog_CPP+:} false; then :
8387 $as_echo_n "(cached) " >&6
8388 else
8389 # Double quotes because CPP needs to be expanded
8390 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8392 ac_preproc_ok=false
8393 for ac_c_preproc_warn_flag in '' yes
8395 # Use a header file that comes with gcc, so configuring glibc
8396 # with a fresh cross-compiler works.
8397 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8398 # <limits.h> exists even on freestanding compilers.
8399 # On the NeXT, cc -E runs the code through the compiler's parser,
8400 # not just through cpp. "Syntax error" is here to catch this case.
8401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8402 /* end confdefs.h. */
8403 #ifdef __STDC__
8404 # include <limits.h>
8405 #else
8406 # include <assert.h>
8407 #endif
8408 Syntax error
8409 _ACEOF
8410 if ac_fn_c_try_cpp "$LINENO"; then :
8412 else
8413 # Broken: fails on valid input.
8414 continue
8416 rm -f conftest.err conftest.i conftest.$ac_ext
8418 # OK, works on sane cases. Now check whether nonexistent headers
8419 # can be detected and how.
8420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8421 /* end confdefs.h. */
8422 #include <ac_nonexistent.h>
8423 _ACEOF
8424 if ac_fn_c_try_cpp "$LINENO"; then :
8425 # Broken: success on invalid input.
8426 continue
8427 else
8428 # Passes both tests.
8429 ac_preproc_ok=:
8430 break
8432 rm -f conftest.err conftest.i conftest.$ac_ext
8434 done
8435 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8436 rm -f conftest.i conftest.err conftest.$ac_ext
8437 if $ac_preproc_ok; then :
8438 break
8441 done
8442 ac_cv_prog_CPP=$CPP
8445 CPP=$ac_cv_prog_CPP
8446 else
8447 ac_cv_prog_CPP=$CPP
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8450 $as_echo "$CPP" >&6; }
8451 ac_preproc_ok=false
8452 for ac_c_preproc_warn_flag in '' yes
8454 # Use a header file that comes with gcc, so configuring glibc
8455 # with a fresh cross-compiler works.
8456 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8457 # <limits.h> exists even on freestanding compilers.
8458 # On the NeXT, cc -E runs the code through the compiler's parser,
8459 # not just through cpp. "Syntax error" is here to catch this case.
8460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8461 /* end confdefs.h. */
8462 #ifdef __STDC__
8463 # include <limits.h>
8464 #else
8465 # include <assert.h>
8466 #endif
8467 Syntax error
8468 _ACEOF
8469 if ac_fn_c_try_cpp "$LINENO"; then :
8471 else
8472 # Broken: fails on valid input.
8473 continue
8475 rm -f conftest.err conftest.i conftest.$ac_ext
8477 # OK, works on sane cases. Now check whether nonexistent headers
8478 # can be detected and how.
8479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8480 /* end confdefs.h. */
8481 #include <ac_nonexistent.h>
8482 _ACEOF
8483 if ac_fn_c_try_cpp "$LINENO"; then :
8484 # Broken: success on invalid input.
8485 continue
8486 else
8487 # Passes both tests.
8488 ac_preproc_ok=:
8489 break
8491 rm -f conftest.err conftest.i conftest.$ac_ext
8493 done
8494 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8495 rm -f conftest.i conftest.err conftest.$ac_ext
8496 if $ac_preproc_ok; then :
8498 else
8499 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8500 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8501 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8502 See \`config.log' for more details" "$LINENO" 5; }
8505 ac_ext=c
8506 ac_cpp='$CPP $CPPFLAGS'
8507 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8508 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8509 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8513 $as_echo_n "checking for ANSI C header files... " >&6; }
8514 if ${ac_cv_header_stdc+:} false; then :
8515 $as_echo_n "(cached) " >&6
8516 else
8517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8518 /* end confdefs.h. */
8519 #include <stdlib.h>
8520 #include <stdarg.h>
8521 #include <string.h>
8522 #include <float.h>
8525 main ()
8529 return 0;
8531 _ACEOF
8532 if ac_fn_c_try_compile "$LINENO"; then :
8533 ac_cv_header_stdc=yes
8534 else
8535 ac_cv_header_stdc=no
8537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8539 if test $ac_cv_header_stdc = yes; then
8540 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8542 /* end confdefs.h. */
8543 #include <string.h>
8545 _ACEOF
8546 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8547 $EGREP "memchr" >/dev/null 2>&1; then :
8549 else
8550 ac_cv_header_stdc=no
8552 rm -f conftest*
8556 if test $ac_cv_header_stdc = yes; then
8557 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8559 /* end confdefs.h. */
8560 #include <stdlib.h>
8562 _ACEOF
8563 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8564 $EGREP "free" >/dev/null 2>&1; then :
8566 else
8567 ac_cv_header_stdc=no
8569 rm -f conftest*
8573 if test $ac_cv_header_stdc = yes; then
8574 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8575 if test "$cross_compiling" = yes; then :
8577 else
8578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8579 /* end confdefs.h. */
8580 #include <ctype.h>
8581 #include <stdlib.h>
8582 #if ((' ' & 0x0FF) == 0x020)
8583 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8584 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8585 #else
8586 # define ISLOWER(c) \
8587 (('a' <= (c) && (c) <= 'i') \
8588 || ('j' <= (c) && (c) <= 'r') \
8589 || ('s' <= (c) && (c) <= 'z'))
8590 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8591 #endif
8593 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8595 main ()
8597 int i;
8598 for (i = 0; i < 256; i++)
8599 if (XOR (islower (i), ISLOWER (i))
8600 || toupper (i) != TOUPPER (i))
8601 return 2;
8602 return 0;
8604 _ACEOF
8605 if ac_fn_c_try_run "$LINENO"; then :
8607 else
8608 ac_cv_header_stdc=no
8610 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8611 conftest.$ac_objext conftest.beam conftest.$ac_ext
8616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8617 $as_echo "$ac_cv_header_stdc" >&6; }
8618 if test $ac_cv_header_stdc = yes; then
8620 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8624 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8625 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8626 inttypes.h stdint.h unistd.h
8627 do :
8628 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8629 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8631 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8632 cat >>confdefs.h <<_ACEOF
8633 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8634 _ACEOF
8638 done
8641 for ac_header in dlfcn.h
8642 do :
8643 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8645 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8646 cat >>confdefs.h <<_ACEOF
8647 #define HAVE_DLFCN_H 1
8648 _ACEOF
8652 done
8658 # Set options
8662 enable_dlopen=no
8665 enable_win32_dll=no
8668 # Check whether --enable-shared was given.
8669 if test "${enable_shared+set}" = set; then :
8670 enableval=$enable_shared; p=${PACKAGE-default}
8671 case $enableval in
8672 yes) enable_shared=yes ;;
8673 no) enable_shared=no ;;
8675 enable_shared=no
8676 # Look at the argument we got. We use all the common list separators.
8677 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8678 for pkg in $enableval; do
8679 IFS=$lt_save_ifs
8680 if test "X$pkg" = "X$p"; then
8681 enable_shared=yes
8683 done
8684 IFS=$lt_save_ifs
8686 esac
8687 else
8688 enable_shared=yes
8699 # Check whether --enable-static was given.
8700 if test "${enable_static+set}" = set; then :
8701 enableval=$enable_static; p=${PACKAGE-default}
8702 case $enableval in
8703 yes) enable_static=yes ;;
8704 no) enable_static=no ;;
8706 enable_static=no
8707 # Look at the argument we got. We use all the common list separators.
8708 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8709 for pkg in $enableval; do
8710 IFS=$lt_save_ifs
8711 if test "X$pkg" = "X$p"; then
8712 enable_static=yes
8714 done
8715 IFS=$lt_save_ifs
8717 esac
8718 else
8719 enable_static=yes
8731 # Check whether --with-pic was given.
8732 if test "${with_pic+set}" = set; then :
8733 withval=$with_pic; lt_p=${PACKAGE-default}
8734 case $withval in
8735 yes|no) pic_mode=$withval ;;
8737 pic_mode=default
8738 # Look at the argument we got. We use all the common list separators.
8739 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8740 for lt_pkg in $withval; do
8741 IFS=$lt_save_ifs
8742 if test "X$lt_pkg" = "X$lt_p"; then
8743 pic_mode=yes
8745 done
8746 IFS=$lt_save_ifs
8748 esac
8749 else
8750 pic_mode=default
8760 # Check whether --enable-fast-install was given.
8761 if test "${enable_fast_install+set}" = set; then :
8762 enableval=$enable_fast_install; p=${PACKAGE-default}
8763 case $enableval in
8764 yes) enable_fast_install=yes ;;
8765 no) enable_fast_install=no ;;
8767 enable_fast_install=no
8768 # Look at the argument we got. We use all the common list separators.
8769 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8770 for pkg in $enableval; do
8771 IFS=$lt_save_ifs
8772 if test "X$pkg" = "X$p"; then
8773 enable_fast_install=yes
8775 done
8776 IFS=$lt_save_ifs
8778 esac
8779 else
8780 enable_fast_install=yes
8790 shared_archive_member_spec=
8791 case $host,$enable_shared in
8792 power*-*-aix[5-9]*,yes)
8793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8794 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8796 # Check whether --with-aix-soname was given.
8797 if test "${with_aix_soname+set}" = set; then :
8798 withval=$with_aix_soname; case $withval in
8799 aix|svr4|both)
8802 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8804 esac
8805 lt_cv_with_aix_soname=$with_aix_soname
8806 else
8807 if ${lt_cv_with_aix_soname+:} false; then :
8808 $as_echo_n "(cached) " >&6
8809 else
8810 lt_cv_with_aix_soname=aix
8813 with_aix_soname=$lt_cv_with_aix_soname
8816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8817 $as_echo "$with_aix_soname" >&6; }
8818 if test aix != "$with_aix_soname"; then
8819 # For the AIX way of multilib, we name the shared archive member
8820 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8821 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8822 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8823 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8824 if test 64 = "${OBJECT_MODE-32}"; then
8825 shared_archive_member_spec=shr_64
8826 else
8827 shared_archive_member_spec=shr
8832 with_aix_soname=aix
8834 esac
8845 # This can be used to rebuild libtool when needed
8846 LIBTOOL_DEPS=$ltmain
8848 # Always use our own libtool.
8849 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8880 test -z "$LN_S" && LN_S="ln -s"
8895 if test -n "${ZSH_VERSION+set}"; then
8896 setopt NO_GLOB_SUBST
8899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8900 $as_echo_n "checking for objdir... " >&6; }
8901 if ${lt_cv_objdir+:} false; then :
8902 $as_echo_n "(cached) " >&6
8903 else
8904 rm -f .libs 2>/dev/null
8905 mkdir .libs 2>/dev/null
8906 if test -d .libs; then
8907 lt_cv_objdir=.libs
8908 else
8909 # MS-DOS does not allow filenames that begin with a dot.
8910 lt_cv_objdir=_libs
8912 rmdir .libs 2>/dev/null
8914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8915 $as_echo "$lt_cv_objdir" >&6; }
8916 objdir=$lt_cv_objdir
8922 cat >>confdefs.h <<_ACEOF
8923 #define LT_OBJDIR "$lt_cv_objdir/"
8924 _ACEOF
8929 case $host_os in
8930 aix3*)
8931 # AIX sometimes has problems with the GCC collect2 program. For some
8932 # reason, if we set the COLLECT_NAMES environment variable, the problems
8933 # vanish in a puff of smoke.
8934 if test set != "${COLLECT_NAMES+set}"; then
8935 COLLECT_NAMES=
8936 export COLLECT_NAMES
8939 esac
8941 # Global variables:
8942 ofile=libtool
8943 can_build_shared=yes
8945 # All known linkers require a '.a' archive for static linking (except MSVC,
8946 # which needs '.lib').
8947 libext=a
8949 with_gnu_ld=$lt_cv_prog_gnu_ld
8951 old_CC=$CC
8952 old_CFLAGS=$CFLAGS
8954 # Set sane defaults for various variables
8955 test -z "$CC" && CC=cc
8956 test -z "$LTCC" && LTCC=$CC
8957 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8958 test -z "$LD" && LD=ld
8959 test -z "$ac_objext" && ac_objext=o
8961 func_cc_basename $compiler
8962 cc_basename=$func_cc_basename_result
8965 # Only perform the check for file, if the check method requires it
8966 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8967 case $deplibs_check_method in
8968 file_magic*)
8969 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8971 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8972 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8973 $as_echo_n "(cached) " >&6
8974 else
8975 case $MAGIC_CMD in
8976 [\\/*] | ?:[\\/]*)
8977 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8980 lt_save_MAGIC_CMD=$MAGIC_CMD
8981 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8982 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8983 for ac_dir in $ac_dummy; do
8984 IFS=$lt_save_ifs
8985 test -z "$ac_dir" && ac_dir=.
8986 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8987 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8988 if test -n "$file_magic_test_file"; then
8989 case $deplibs_check_method in
8990 "file_magic "*)
8991 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8992 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8993 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8994 $EGREP "$file_magic_regex" > /dev/null; then
8996 else
8997 cat <<_LT_EOF 1>&2
8999 *** Warning: the command libtool uses to detect shared libraries,
9000 *** $file_magic_cmd, produces output that libtool cannot recognize.
9001 *** The result is that libtool may fail to recognize shared libraries
9002 *** as such. This will affect the creation of libtool libraries that
9003 *** depend on shared libraries, but programs linked with such libtool
9004 *** libraries will work regardless of this problem. Nevertheless, you
9005 *** may want to report the problem to your system manager and/or to
9006 *** bug-libtool@gnu.org
9008 _LT_EOF
9009 fi ;;
9010 esac
9012 break
9014 done
9015 IFS=$lt_save_ifs
9016 MAGIC_CMD=$lt_save_MAGIC_CMD
9018 esac
9021 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9022 if test -n "$MAGIC_CMD"; then
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9024 $as_echo "$MAGIC_CMD" >&6; }
9025 else
9026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9027 $as_echo "no" >&6; }
9034 if test -z "$lt_cv_path_MAGIC_CMD"; then
9035 if test -n "$ac_tool_prefix"; then
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9037 $as_echo_n "checking for file... " >&6; }
9038 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9039 $as_echo_n "(cached) " >&6
9040 else
9041 case $MAGIC_CMD in
9042 [\\/*] | ?:[\\/]*)
9043 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9046 lt_save_MAGIC_CMD=$MAGIC_CMD
9047 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9048 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9049 for ac_dir in $ac_dummy; do
9050 IFS=$lt_save_ifs
9051 test -z "$ac_dir" && ac_dir=.
9052 if test -f "$ac_dir/file"; then
9053 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9054 if test -n "$file_magic_test_file"; then
9055 case $deplibs_check_method in
9056 "file_magic "*)
9057 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9058 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9059 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9060 $EGREP "$file_magic_regex" > /dev/null; then
9062 else
9063 cat <<_LT_EOF 1>&2
9065 *** Warning: the command libtool uses to detect shared libraries,
9066 *** $file_magic_cmd, produces output that libtool cannot recognize.
9067 *** The result is that libtool may fail to recognize shared libraries
9068 *** as such. This will affect the creation of libtool libraries that
9069 *** depend on shared libraries, but programs linked with such libtool
9070 *** libraries will work regardless of this problem. Nevertheless, you
9071 *** may want to report the problem to your system manager and/or to
9072 *** bug-libtool@gnu.org
9074 _LT_EOF
9075 fi ;;
9076 esac
9078 break
9080 done
9081 IFS=$lt_save_ifs
9082 MAGIC_CMD=$lt_save_MAGIC_CMD
9084 esac
9087 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9088 if test -n "$MAGIC_CMD"; then
9089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9090 $as_echo "$MAGIC_CMD" >&6; }
9091 else
9092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9093 $as_echo "no" >&6; }
9097 else
9098 MAGIC_CMD=:
9104 esac
9106 # Use C for the default configuration in the libtool script
9108 lt_save_CC=$CC
9109 ac_ext=c
9110 ac_cpp='$CPP $CPPFLAGS'
9111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9116 # Source file extension for C test sources.
9117 ac_ext=c
9119 # Object file extension for compiled C test sources.
9120 objext=o
9121 objext=$objext
9123 # Code to be used in simple compile tests
9124 lt_simple_compile_test_code="int some_variable = 0;"
9126 # Code to be used in simple link tests
9127 lt_simple_link_test_code='int main(){return(0);}'
9135 # If no C compiler was specified, use CC.
9136 LTCC=${LTCC-"$CC"}
9138 # If no C compiler flags were specified, use CFLAGS.
9139 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9141 # Allow CC to be a program name with arguments.
9142 compiler=$CC
9144 # Save the default compiler, since it gets overwritten when the other
9145 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9146 compiler_DEFAULT=$CC
9148 # save warnings/boilerplate of simple test code
9149 ac_outfile=conftest.$ac_objext
9150 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9151 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9152 _lt_compiler_boilerplate=`cat conftest.err`
9153 $RM conftest*
9155 ac_outfile=conftest.$ac_objext
9156 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9157 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9158 _lt_linker_boilerplate=`cat conftest.err`
9159 $RM -r conftest*
9162 ## CAVEAT EMPTOR:
9163 ## There is no encapsulation within the following macros, do not change
9164 ## the running order or otherwise move them around unless you know exactly
9165 ## what you are doing...
9166 if test -n "$compiler"; then
9168 lt_prog_compiler_no_builtin_flag=
9170 if test yes = "$GCC"; then
9171 case $cc_basename in
9172 nvcc*)
9173 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9175 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9176 esac
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9179 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9180 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9181 $as_echo_n "(cached) " >&6
9182 else
9183 lt_cv_prog_compiler_rtti_exceptions=no
9184 ac_outfile=conftest.$ac_objext
9185 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9186 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9187 # Insert the option either (1) after the last *FLAGS variable, or
9188 # (2) before a word containing "conftest.", or (3) at the end.
9189 # Note that $ac_compile itself does not contain backslashes and begins
9190 # with a dollar sign (not a hyphen), so the echo should work correctly.
9191 # The option is referenced via a variable to avoid confusing sed.
9192 lt_compile=`echo "$ac_compile" | $SED \
9193 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9194 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9195 -e 's:$: $lt_compiler_flag:'`
9196 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9197 (eval "$lt_compile" 2>conftest.err)
9198 ac_status=$?
9199 cat conftest.err >&5
9200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9201 if (exit $ac_status) && test -s "$ac_outfile"; then
9202 # The compiler can only warn and ignore the option if not recognized
9203 # So say no if there are warnings other than the usual output.
9204 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9205 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9206 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9207 lt_cv_prog_compiler_rtti_exceptions=yes
9210 $RM conftest*
9213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9214 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9216 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9217 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9218 else
9229 lt_prog_compiler_wl=
9230 lt_prog_compiler_pic=
9231 lt_prog_compiler_static=
9234 if test yes = "$GCC"; then
9235 lt_prog_compiler_wl='-Wl,'
9236 lt_prog_compiler_static='-static'
9238 case $host_os in
9239 aix*)
9240 # All AIX code is PIC.
9241 if test ia64 = "$host_cpu"; then
9242 # AIX 5 now supports IA64 processor
9243 lt_prog_compiler_static='-Bstatic'
9245 lt_prog_compiler_pic='-fPIC'
9248 amigaos*)
9249 case $host_cpu in
9250 powerpc)
9251 # see comment about AmigaOS4 .so support
9252 lt_prog_compiler_pic='-fPIC'
9254 m68k)
9255 # FIXME: we need at least 68020 code to build shared libraries, but
9256 # adding the '-m68020' flag to GCC prevents building anything better,
9257 # like '-m68040'.
9258 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9260 esac
9263 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9264 # PIC is the default for these OSes.
9267 mingw* | cygwin* | pw32* | os2* | cegcc*)
9268 # This hack is so that the source file can tell whether it is being
9269 # built for inclusion in a dll (and should export symbols for example).
9270 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9271 # (--disable-auto-import) libraries
9272 lt_prog_compiler_pic='-DDLL_EXPORT'
9273 case $host_os in
9274 os2*)
9275 lt_prog_compiler_static='$wl-static'
9277 esac
9280 darwin* | rhapsody*)
9281 # PIC is the default on this platform
9282 # Common symbols not allowed in MH_DYLIB files
9283 lt_prog_compiler_pic='-fno-common'
9286 haiku*)
9287 # PIC is the default for Haiku.
9288 # The "-static" flag exists, but is broken.
9289 lt_prog_compiler_static=
9292 hpux*)
9293 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9294 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9295 # sets the default TLS model and affects inlining.
9296 case $host_cpu in
9297 hppa*64*)
9298 # +Z the default
9301 lt_prog_compiler_pic='-fPIC'
9303 esac
9306 interix[3-9]*)
9307 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9308 # Instead, we relocate shared libraries at runtime.
9311 msdosdjgpp*)
9312 # Just because we use GCC doesn't mean we suddenly get shared libraries
9313 # on systems that don't support them.
9314 lt_prog_compiler_can_build_shared=no
9315 enable_shared=no
9318 *nto* | *qnx*)
9319 # QNX uses GNU C++, but need to define -shared option too, otherwise
9320 # it will coredump.
9321 lt_prog_compiler_pic='-fPIC -shared'
9324 sysv4*MP*)
9325 if test -d /usr/nec; then
9326 lt_prog_compiler_pic=-Kconform_pic
9331 lt_prog_compiler_pic='-fPIC'
9333 esac
9335 case $cc_basename in
9336 nvcc*) # Cuda Compiler Driver 2.2
9337 lt_prog_compiler_wl='-Xlinker '
9338 if test -n "$lt_prog_compiler_pic"; then
9339 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9342 esac
9343 else
9344 # PORTME Check for flag to pass linker flags through the system compiler.
9345 case $host_os in
9346 aix*)
9347 lt_prog_compiler_wl='-Wl,'
9348 if test ia64 = "$host_cpu"; then
9349 # AIX 5 now supports IA64 processor
9350 lt_prog_compiler_static='-Bstatic'
9351 else
9352 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9356 darwin* | rhapsody*)
9357 # PIC is the default on this platform
9358 # Common symbols not allowed in MH_DYLIB files
9359 lt_prog_compiler_pic='-fno-common'
9360 case $cc_basename in
9361 nagfor*)
9362 # NAG Fortran compiler
9363 lt_prog_compiler_wl='-Wl,-Wl,,'
9364 lt_prog_compiler_pic='-PIC'
9365 lt_prog_compiler_static='-Bstatic'
9367 esac
9370 mingw* | cygwin* | pw32* | os2* | cegcc*)
9371 # This hack is so that the source file can tell whether it is being
9372 # built for inclusion in a dll (and should export symbols for example).
9373 lt_prog_compiler_pic='-DDLL_EXPORT'
9374 case $host_os in
9375 os2*)
9376 lt_prog_compiler_static='$wl-static'
9378 esac
9381 hpux9* | hpux10* | hpux11*)
9382 lt_prog_compiler_wl='-Wl,'
9383 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9384 # not for PA HP-UX.
9385 case $host_cpu in
9386 hppa*64*|ia64*)
9387 # +Z the default
9390 lt_prog_compiler_pic='+Z'
9392 esac
9393 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9394 lt_prog_compiler_static='$wl-a ${wl}archive'
9397 irix5* | irix6* | nonstopux*)
9398 lt_prog_compiler_wl='-Wl,'
9399 # PIC (with -KPIC) is the default.
9400 lt_prog_compiler_static='-non_shared'
9403 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9404 case $cc_basename in
9405 # old Intel for x86_64, which still supported -KPIC.
9406 ecc*)
9407 lt_prog_compiler_wl='-Wl,'
9408 lt_prog_compiler_pic='-KPIC'
9409 lt_prog_compiler_static='-static'
9411 # icc used to be incompatible with GCC.
9412 # ICC 10 doesn't accept -KPIC any more.
9413 icc* | ifort*)
9414 lt_prog_compiler_wl='-Wl,'
9415 lt_prog_compiler_pic='-fPIC'
9416 lt_prog_compiler_static='-static'
9418 # Lahey Fortran 8.1.
9419 lf95*)
9420 lt_prog_compiler_wl='-Wl,'
9421 lt_prog_compiler_pic='--shared'
9422 lt_prog_compiler_static='--static'
9424 nagfor*)
9425 # NAG Fortran compiler
9426 lt_prog_compiler_wl='-Wl,-Wl,,'
9427 lt_prog_compiler_pic='-PIC'
9428 lt_prog_compiler_static='-Bstatic'
9430 tcc*)
9431 # Fabrice Bellard et al's Tiny C Compiler
9432 lt_prog_compiler_wl='-Wl,'
9433 lt_prog_compiler_pic='-fPIC'
9434 lt_prog_compiler_static='-static'
9436 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9437 # Portland Group compilers (*not* the Pentium gcc compiler,
9438 # which looks to be a dead project)
9439 lt_prog_compiler_wl='-Wl,'
9440 lt_prog_compiler_pic='-fpic'
9441 lt_prog_compiler_static='-Bstatic'
9443 ccc*)
9444 lt_prog_compiler_wl='-Wl,'
9445 # All Alpha code is PIC.
9446 lt_prog_compiler_static='-non_shared'
9448 xl* | bgxl* | bgf* | mpixl*)
9449 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9450 lt_prog_compiler_wl='-Wl,'
9451 lt_prog_compiler_pic='-qpic'
9452 lt_prog_compiler_static='-qstaticlink'
9455 case `$CC -V 2>&1 | sed 5q` in
9456 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9457 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9458 lt_prog_compiler_pic='-KPIC'
9459 lt_prog_compiler_static='-Bstatic'
9460 lt_prog_compiler_wl=''
9462 *Sun\ F* | *Sun*Fortran*)
9463 lt_prog_compiler_pic='-KPIC'
9464 lt_prog_compiler_static='-Bstatic'
9465 lt_prog_compiler_wl='-Qoption ld '
9467 *Sun\ C*)
9468 # Sun C 5.9
9469 lt_prog_compiler_pic='-KPIC'
9470 lt_prog_compiler_static='-Bstatic'
9471 lt_prog_compiler_wl='-Wl,'
9473 *Intel*\ [CF]*Compiler*)
9474 lt_prog_compiler_wl='-Wl,'
9475 lt_prog_compiler_pic='-fPIC'
9476 lt_prog_compiler_static='-static'
9478 *Portland\ Group*)
9479 lt_prog_compiler_wl='-Wl,'
9480 lt_prog_compiler_pic='-fpic'
9481 lt_prog_compiler_static='-Bstatic'
9483 esac
9485 esac
9488 newsos6)
9489 lt_prog_compiler_pic='-KPIC'
9490 lt_prog_compiler_static='-Bstatic'
9493 *nto* | *qnx*)
9494 # QNX uses GNU C++, but need to define -shared option too, otherwise
9495 # it will coredump.
9496 lt_prog_compiler_pic='-fPIC -shared'
9499 osf3* | osf4* | osf5*)
9500 lt_prog_compiler_wl='-Wl,'
9501 # All OSF/1 code is PIC.
9502 lt_prog_compiler_static='-non_shared'
9505 rdos*)
9506 lt_prog_compiler_static='-non_shared'
9509 solaris*)
9510 lt_prog_compiler_pic='-KPIC'
9511 lt_prog_compiler_static='-Bstatic'
9512 case $cc_basename in
9513 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9514 lt_prog_compiler_wl='-Qoption ld ';;
9516 lt_prog_compiler_wl='-Wl,';;
9517 esac
9520 sunos4*)
9521 lt_prog_compiler_wl='-Qoption ld '
9522 lt_prog_compiler_pic='-PIC'
9523 lt_prog_compiler_static='-Bstatic'
9526 sysv4 | sysv4.2uw2* | sysv4.3*)
9527 lt_prog_compiler_wl='-Wl,'
9528 lt_prog_compiler_pic='-KPIC'
9529 lt_prog_compiler_static='-Bstatic'
9532 sysv4*MP*)
9533 if test -d /usr/nec; then
9534 lt_prog_compiler_pic='-Kconform_pic'
9535 lt_prog_compiler_static='-Bstatic'
9539 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9540 lt_prog_compiler_wl='-Wl,'
9541 lt_prog_compiler_pic='-KPIC'
9542 lt_prog_compiler_static='-Bstatic'
9545 unicos*)
9546 lt_prog_compiler_wl='-Wl,'
9547 lt_prog_compiler_can_build_shared=no
9550 uts4*)
9551 lt_prog_compiler_pic='-pic'
9552 lt_prog_compiler_static='-Bstatic'
9556 lt_prog_compiler_can_build_shared=no
9558 esac
9561 case $host_os in
9562 # For platforms that do not support PIC, -DPIC is meaningless:
9563 *djgpp*)
9564 lt_prog_compiler_pic=
9567 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9569 esac
9571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9572 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9573 if ${lt_cv_prog_compiler_pic+:} false; then :
9574 $as_echo_n "(cached) " >&6
9575 else
9576 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9579 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9580 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9583 # Check to make sure the PIC flag actually works.
9585 if test -n "$lt_prog_compiler_pic"; then
9586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9587 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9588 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9589 $as_echo_n "(cached) " >&6
9590 else
9591 lt_cv_prog_compiler_pic_works=no
9592 ac_outfile=conftest.$ac_objext
9593 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9594 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9595 # Insert the option either (1) after the last *FLAGS variable, or
9596 # (2) before a word containing "conftest.", or (3) at the end.
9597 # Note that $ac_compile itself does not contain backslashes and begins
9598 # with a dollar sign (not a hyphen), so the echo should work correctly.
9599 # The option is referenced via a variable to avoid confusing sed.
9600 lt_compile=`echo "$ac_compile" | $SED \
9601 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9602 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9603 -e 's:$: $lt_compiler_flag:'`
9604 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9605 (eval "$lt_compile" 2>conftest.err)
9606 ac_status=$?
9607 cat conftest.err >&5
9608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9609 if (exit $ac_status) && test -s "$ac_outfile"; then
9610 # The compiler can only warn and ignore the option if not recognized
9611 # So say no if there are warnings other than the usual output.
9612 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9613 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9614 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9615 lt_cv_prog_compiler_pic_works=yes
9618 $RM conftest*
9621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9622 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9624 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9625 case $lt_prog_compiler_pic in
9626 "" | " "*) ;;
9627 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9628 esac
9629 else
9630 lt_prog_compiler_pic=
9631 lt_prog_compiler_can_build_shared=no
9647 # Check to make sure the static flag actually works.
9649 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9651 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9652 if ${lt_cv_prog_compiler_static_works+:} false; then :
9653 $as_echo_n "(cached) " >&6
9654 else
9655 lt_cv_prog_compiler_static_works=no
9656 save_LDFLAGS=$LDFLAGS
9657 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9658 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9659 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9660 # The linker can only warn and ignore the option if not recognized
9661 # So say no if there are warnings
9662 if test -s conftest.err; then
9663 # Append any errors to the config.log.
9664 cat conftest.err 1>&5
9665 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9666 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9667 if diff conftest.exp conftest.er2 >/dev/null; then
9668 lt_cv_prog_compiler_static_works=yes
9670 else
9671 lt_cv_prog_compiler_static_works=yes
9674 $RM -r conftest*
9675 LDFLAGS=$save_LDFLAGS
9678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9679 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9681 if test yes = "$lt_cv_prog_compiler_static_works"; then
9683 else
9684 lt_prog_compiler_static=
9693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9694 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9695 if ${lt_cv_prog_compiler_c_o+:} false; then :
9696 $as_echo_n "(cached) " >&6
9697 else
9698 lt_cv_prog_compiler_c_o=no
9699 $RM -r conftest 2>/dev/null
9700 mkdir conftest
9701 cd conftest
9702 mkdir out
9703 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9705 lt_compiler_flag="-o out/conftest2.$ac_objext"
9706 # Insert the option either (1) after the last *FLAGS variable, or
9707 # (2) before a word containing "conftest.", or (3) at the end.
9708 # Note that $ac_compile itself does not contain backslashes and begins
9709 # with a dollar sign (not a hyphen), so the echo should work correctly.
9710 lt_compile=`echo "$ac_compile" | $SED \
9711 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9712 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9713 -e 's:$: $lt_compiler_flag:'`
9714 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9715 (eval "$lt_compile" 2>out/conftest.err)
9716 ac_status=$?
9717 cat out/conftest.err >&5
9718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9719 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9720 then
9721 # The compiler can only warn and ignore the option if not recognized
9722 # So say no if there are warnings
9723 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9724 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9725 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9726 lt_cv_prog_compiler_c_o=yes
9729 chmod u+w . 2>&5
9730 $RM conftest*
9731 # SGI C++ compiler will create directory out/ii_files/ for
9732 # template instantiation
9733 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9734 $RM out/* && rmdir out
9735 cd ..
9736 $RM -r conftest
9737 $RM conftest*
9740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9741 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9749 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9750 if ${lt_cv_prog_compiler_c_o+:} false; then :
9751 $as_echo_n "(cached) " >&6
9752 else
9753 lt_cv_prog_compiler_c_o=no
9754 $RM -r conftest 2>/dev/null
9755 mkdir conftest
9756 cd conftest
9757 mkdir out
9758 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9760 lt_compiler_flag="-o out/conftest2.$ac_objext"
9761 # Insert the option either (1) after the last *FLAGS variable, or
9762 # (2) before a word containing "conftest.", or (3) at the end.
9763 # Note that $ac_compile itself does not contain backslashes and begins
9764 # with a dollar sign (not a hyphen), so the echo should work correctly.
9765 lt_compile=`echo "$ac_compile" | $SED \
9766 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9767 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9768 -e 's:$: $lt_compiler_flag:'`
9769 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9770 (eval "$lt_compile" 2>out/conftest.err)
9771 ac_status=$?
9772 cat out/conftest.err >&5
9773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9774 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9775 then
9776 # The compiler can only warn and ignore the option if not recognized
9777 # So say no if there are warnings
9778 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9779 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9780 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9781 lt_cv_prog_compiler_c_o=yes
9784 chmod u+w . 2>&5
9785 $RM conftest*
9786 # SGI C++ compiler will create directory out/ii_files/ for
9787 # template instantiation
9788 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9789 $RM out/* && rmdir out
9790 cd ..
9791 $RM -r conftest
9792 $RM conftest*
9795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9796 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9801 hard_links=nottested
9802 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9803 # do not overwrite the value of need_locks provided by the user
9804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9805 $as_echo_n "checking if we can lock with hard links... " >&6; }
9806 hard_links=yes
9807 $RM conftest*
9808 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9809 touch conftest.a
9810 ln conftest.a conftest.b 2>&5 || hard_links=no
9811 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9813 $as_echo "$hard_links" >&6; }
9814 if test no = "$hard_links"; then
9815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9816 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9817 need_locks=warn
9819 else
9820 need_locks=no
9828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9829 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9831 runpath_var=
9832 allow_undefined_flag=
9833 always_export_symbols=no
9834 archive_cmds=
9835 archive_expsym_cmds=
9836 compiler_needs_object=no
9837 enable_shared_with_static_runtimes=no
9838 export_dynamic_flag_spec=
9839 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9840 hardcode_automatic=no
9841 hardcode_direct=no
9842 hardcode_direct_absolute=no
9843 hardcode_libdir_flag_spec=
9844 hardcode_libdir_separator=
9845 hardcode_minus_L=no
9846 hardcode_shlibpath_var=unsupported
9847 inherit_rpath=no
9848 link_all_deplibs=unknown
9849 module_cmds=
9850 module_expsym_cmds=
9851 old_archive_from_new_cmds=
9852 old_archive_from_expsyms_cmds=
9853 thread_safe_flag_spec=
9854 whole_archive_flag_spec=
9855 # include_expsyms should be a list of space-separated symbols to be *always*
9856 # included in the symbol list
9857 include_expsyms=
9858 # exclude_expsyms can be an extended regexp of symbols to exclude
9859 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9860 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9861 # as well as any symbol that contains 'd'.
9862 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9863 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9864 # platforms (ab)use it in PIC code, but their linkers get confused if
9865 # the symbol is explicitly referenced. Since portable code cannot
9866 # rely on this symbol name, it's probably fine to never include it in
9867 # preloaded symbol tables.
9868 # Exclude shared library initialization/finalization symbols.
9869 extract_expsyms_cmds=
9871 case $host_os in
9872 cygwin* | mingw* | pw32* | cegcc*)
9873 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9874 # When not using gcc, we currently assume that we are using
9875 # Microsoft Visual C++.
9876 if test yes != "$GCC"; then
9877 with_gnu_ld=no
9880 interix*)
9881 # we just hope/assume this is gcc and not c89 (= MSVC++)
9882 with_gnu_ld=yes
9884 openbsd* | bitrig*)
9885 with_gnu_ld=no
9887 esac
9889 ld_shlibs=yes
9891 # On some targets, GNU ld is compatible enough with the native linker
9892 # that we're better off using the native interface for both.
9893 lt_use_gnu_ld_interface=no
9894 if test yes = "$with_gnu_ld"; then
9895 case $host_os in
9896 aix*)
9897 # The AIX port of GNU ld has always aspired to compatibility
9898 # with the native linker. However, as the warning in the GNU ld
9899 # block says, versions before 2.19.5* couldn't really create working
9900 # shared libraries, regardless of the interface used.
9901 case `$LD -v 2>&1` in
9902 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9903 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9904 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9906 lt_use_gnu_ld_interface=yes
9908 esac
9911 lt_use_gnu_ld_interface=yes
9913 esac
9916 if test yes = "$lt_use_gnu_ld_interface"; then
9917 # If archive_cmds runs LD, not CC, wlarc should be empty
9918 wlarc='$wl'
9920 # Set some defaults for GNU ld with shared library support. These
9921 # are reset later if shared libraries are not supported. Putting them
9922 # here allows them to be overridden if necessary.
9923 runpath_var=LD_RUN_PATH
9924 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9925 export_dynamic_flag_spec='$wl--export-dynamic'
9926 # ancient GNU ld didn't support --whole-archive et. al.
9927 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9928 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9929 else
9930 whole_archive_flag_spec=
9932 supports_anon_versioning=no
9933 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9934 *GNU\ gold*) supports_anon_versioning=yes ;;
9935 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9936 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9937 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9938 *\ 2.11.*) ;; # other 2.11 versions
9939 *) supports_anon_versioning=yes ;;
9940 esac
9942 # See if GNU ld supports shared libraries.
9943 case $host_os in
9944 aix[3-9]*)
9945 # On AIX/PPC, the GNU linker is very broken
9946 if test ia64 != "$host_cpu"; then
9947 ld_shlibs=no
9948 cat <<_LT_EOF 1>&2
9950 *** Warning: the GNU linker, at least up to release 2.19, is reported
9951 *** to be unable to reliably create shared libraries on AIX.
9952 *** Therefore, libtool is disabling shared libraries support. If you
9953 *** really care for shared libraries, you may want to install binutils
9954 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9955 *** You will then need to restart the configuration process.
9957 _LT_EOF
9961 amigaos*)
9962 case $host_cpu in
9963 powerpc)
9964 # see comment about AmigaOS4 .so support
9965 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9966 archive_expsym_cmds=''
9968 m68k)
9969 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)'
9970 hardcode_libdir_flag_spec='-L$libdir'
9971 hardcode_minus_L=yes
9973 esac
9976 beos*)
9977 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9978 allow_undefined_flag=unsupported
9979 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9980 # support --undefined. This deserves some investigation. FIXME
9981 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9982 else
9983 ld_shlibs=no
9987 cygwin* | mingw* | pw32* | cegcc*)
9988 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9989 # as there is no search path for DLLs.
9990 hardcode_libdir_flag_spec='-L$libdir'
9991 export_dynamic_flag_spec='$wl--export-all-symbols'
9992 allow_undefined_flag=unsupported
9993 always_export_symbols=no
9994 enable_shared_with_static_runtimes=yes
9995 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'
9996 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9998 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9999 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10000 # If the export-symbols file already is a .def file, use it as
10001 # is; otherwise, prepend EXPORTS...
10002 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10003 cp $export_symbols $output_objdir/$soname.def;
10004 else
10005 echo EXPORTS > $output_objdir/$soname.def;
10006 cat $export_symbols >> $output_objdir/$soname.def;
10008 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10009 else
10010 ld_shlibs=no
10014 haiku*)
10015 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10016 link_all_deplibs=yes
10019 os2*)
10020 hardcode_libdir_flag_spec='-L$libdir'
10021 hardcode_minus_L=yes
10022 allow_undefined_flag=unsupported
10023 shrext_cmds=.dll
10024 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10025 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10026 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10027 $ECHO EXPORTS >> $output_objdir/$libname.def~
10028 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10029 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10030 emximp -o $lib $output_objdir/$libname.def'
10031 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10032 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10033 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10034 $ECHO EXPORTS >> $output_objdir/$libname.def~
10035 prefix_cmds="$SED"~
10036 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10037 prefix_cmds="$prefix_cmds -e 1d";
10039 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10040 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10041 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10042 emximp -o $lib $output_objdir/$libname.def'
10043 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10044 enable_shared_with_static_runtimes=yes
10047 interix[3-9]*)
10048 hardcode_direct=no
10049 hardcode_shlibpath_var=no
10050 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10051 export_dynamic_flag_spec='$wl-E'
10052 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10053 # Instead, shared libraries are loaded at an image base (0x10000000 by
10054 # default) and relocated if they conflict, which is a slow very memory
10055 # consuming and fragmenting process. To avoid this, we pick a random,
10056 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10057 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10058 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10059 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'
10062 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10063 tmp_diet=no
10064 if test linux-dietlibc = "$host_os"; then
10065 case $cc_basename in
10066 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10067 esac
10069 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10070 && test no = "$tmp_diet"
10071 then
10072 tmp_addflag=' $pic_flag'
10073 tmp_sharedflag='-shared'
10074 case $cc_basename,$host_cpu in
10075 pgcc*) # Portland Group C compiler
10076 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'
10077 tmp_addflag=' $pic_flag'
10079 pgf77* | pgf90* | pgf95* | pgfortran*)
10080 # Portland Group f77 and f90 compilers
10081 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'
10082 tmp_addflag=' $pic_flag -Mnomain' ;;
10083 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10084 tmp_addflag=' -i_dynamic' ;;
10085 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10086 tmp_addflag=' -i_dynamic -nofor_main' ;;
10087 ifc* | ifort*) # Intel Fortran compiler
10088 tmp_addflag=' -nofor_main' ;;
10089 lf95*) # Lahey Fortran 8.1
10090 whole_archive_flag_spec=
10091 tmp_sharedflag='--shared' ;;
10092 nagfor*) # NAGFOR 5.3
10093 tmp_sharedflag='-Wl,-shared' ;;
10094 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10095 tmp_sharedflag='-qmkshrobj'
10096 tmp_addflag= ;;
10097 nvcc*) # Cuda Compiler Driver 2.2
10098 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'
10099 compiler_needs_object=yes
10101 esac
10102 case `$CC -V 2>&1 | sed 5q` in
10103 *Sun\ C*) # Sun C 5.9
10104 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'
10105 compiler_needs_object=yes
10106 tmp_sharedflag='-G' ;;
10107 *Sun\ F*) # Sun Fortran 8.3
10108 tmp_sharedflag='-G' ;;
10109 esac
10110 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10112 if test yes = "$supports_anon_versioning"; then
10113 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10114 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10115 echo "local: *; };" >> $output_objdir/$libname.ver~
10116 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10119 case $cc_basename in
10120 tcc*)
10121 export_dynamic_flag_spec='-rdynamic'
10123 xlf* | bgf* | bgxlf* | mpixlf*)
10124 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10125 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10126 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10127 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10128 if test yes = "$supports_anon_versioning"; then
10129 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10130 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10131 echo "local: *; };" >> $output_objdir/$libname.ver~
10132 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10135 esac
10136 else
10137 ld_shlibs=no
10141 netbsd*)
10142 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10143 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10144 wlarc=
10145 else
10146 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10147 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10151 solaris*)
10152 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10153 ld_shlibs=no
10154 cat <<_LT_EOF 1>&2
10156 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10157 *** create shared libraries on Solaris systems. Therefore, libtool
10158 *** is disabling shared libraries support. We urge you to upgrade GNU
10159 *** binutils to release 2.9.1 or newer. Another option is to modify
10160 *** your PATH or compiler configuration so that the native linker is
10161 *** used, and then restart.
10163 _LT_EOF
10164 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10165 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10166 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10167 else
10168 ld_shlibs=no
10172 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10173 case `$LD -v 2>&1` in
10174 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10175 ld_shlibs=no
10176 cat <<_LT_EOF 1>&2
10178 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10179 *** reliably create shared libraries on SCO systems. Therefore, libtool
10180 *** is disabling shared libraries support. We urge you to upgrade GNU
10181 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10182 *** your PATH or compiler configuration so that the native linker is
10183 *** used, and then restart.
10185 _LT_EOF
10188 # For security reasons, it is highly recommended that you always
10189 # use absolute paths for naming shared libraries, and exclude the
10190 # DT_RUNPATH tag from executables and libraries. But doing so
10191 # requires that you compile everything twice, which is a pain.
10192 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10193 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10194 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10195 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10196 else
10197 ld_shlibs=no
10200 esac
10203 sunos4*)
10204 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10205 wlarc=
10206 hardcode_direct=yes
10207 hardcode_shlibpath_var=no
10211 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10212 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10213 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10214 else
10215 ld_shlibs=no
10218 esac
10220 if test no = "$ld_shlibs"; then
10221 runpath_var=
10222 hardcode_libdir_flag_spec=
10223 export_dynamic_flag_spec=
10224 whole_archive_flag_spec=
10226 else
10227 # PORTME fill in a description of your system's linker (not GNU ld)
10228 case $host_os in
10229 aix3*)
10230 allow_undefined_flag=unsupported
10231 always_export_symbols=yes
10232 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'
10233 # Note: this linker hardcodes the directories in LIBPATH if there
10234 # are no directories specified by -L.
10235 hardcode_minus_L=yes
10236 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10237 # Neither direct hardcoding nor static linking is supported with a
10238 # broken collect2.
10239 hardcode_direct=unsupported
10243 aix[4-9]*)
10244 if test ia64 = "$host_cpu"; then
10245 # On IA64, the linker does run time linking by default, so we don't
10246 # have to do anything special.
10247 aix_use_runtimelinking=no
10248 exp_sym_flag='-Bexport'
10249 no_entry_flag=
10250 else
10251 # If we're using GNU nm, then we don't want the "-C" option.
10252 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10253 # Without the "-l" option, or with the "-B" option, AIX nm treats
10254 # weak defined symbols like other global defined symbols, whereas
10255 # GNU nm marks them as "W".
10256 # While the 'weak' keyword is ignored in the Export File, we need
10257 # it in the Import File for the 'aix-soname' feature, so we have
10258 # to replace the "-B" option with "-P" for AIX nm.
10259 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10260 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
10261 else
10262 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10264 aix_use_runtimelinking=no
10266 # Test if we are trying to use run time linking or normal
10267 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10268 # have runtime linking enabled, and use it for executables.
10269 # For shared libraries, we enable/disable runtime linking
10270 # depending on the kind of the shared library created -
10271 # when "with_aix_soname,aix_use_runtimelinking" is:
10272 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10273 # "aix,yes" lib.so shared, rtl:yes, for executables
10274 # lib.a static archive
10275 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10276 # lib.a(lib.so.V) shared, rtl:no, for executables
10277 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10278 # lib.a(lib.so.V) shared, rtl:no
10279 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10280 # lib.a static archive
10281 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10282 for ld_flag in $LDFLAGS; do
10283 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10284 aix_use_runtimelinking=yes
10285 break
10287 done
10288 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10289 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10290 # so we don't have lib.a shared libs to link our executables.
10291 # We have to force runtime linking in this case.
10292 aix_use_runtimelinking=yes
10293 LDFLAGS="$LDFLAGS -Wl,-brtl"
10296 esac
10298 exp_sym_flag='-bexport'
10299 no_entry_flag='-bnoentry'
10302 # When large executables or shared objects are built, AIX ld can
10303 # have problems creating the table of contents. If linking a library
10304 # or program results in "error TOC overflow" add -mminimal-toc to
10305 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10306 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10308 archive_cmds=''
10309 hardcode_direct=yes
10310 hardcode_direct_absolute=yes
10311 hardcode_libdir_separator=':'
10312 link_all_deplibs=yes
10313 file_list_spec='$wl-f,'
10314 case $with_aix_soname,$aix_use_runtimelinking in
10315 aix,*) ;; # traditional, no import file
10316 svr4,* | *,yes) # use import file
10317 # The Import File defines what to hardcode.
10318 hardcode_direct=no
10319 hardcode_direct_absolute=no
10321 esac
10323 if test yes = "$GCC"; then
10324 case $host_os in aix4.[012]|aix4.[012].*)
10325 # We only want to do this on AIX 4.2 and lower, the check
10326 # below for broken collect2 doesn't work under 4.3+
10327 collect2name=`$CC -print-prog-name=collect2`
10328 if test -f "$collect2name" &&
10329 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10330 then
10331 # We have reworked collect2
10333 else
10334 # We have old collect2
10335 hardcode_direct=unsupported
10336 # It fails to find uninstalled libraries when the uninstalled
10337 # path is not listed in the libpath. Setting hardcode_minus_L
10338 # to unsupported forces relinking
10339 hardcode_minus_L=yes
10340 hardcode_libdir_flag_spec='-L$libdir'
10341 hardcode_libdir_separator=
10344 esac
10345 shared_flag='-shared'
10346 if test yes = "$aix_use_runtimelinking"; then
10347 shared_flag="$shared_flag "'$wl-G'
10349 # Need to ensure runtime linking is disabled for the traditional
10350 # shared library, or the linker may eventually find shared libraries
10351 # /with/ Import File - we do not want to mix them.
10352 shared_flag_aix='-shared'
10353 shared_flag_svr4='-shared $wl-G'
10354 else
10355 # not using gcc
10356 if test ia64 = "$host_cpu"; then
10357 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10358 # chokes on -Wl,-G. The following line is correct:
10359 shared_flag='-G'
10360 else
10361 if test yes = "$aix_use_runtimelinking"; then
10362 shared_flag='$wl-G'
10363 else
10364 shared_flag='$wl-bM:SRE'
10366 shared_flag_aix='$wl-bM:SRE'
10367 shared_flag_svr4='$wl-G'
10371 export_dynamic_flag_spec='$wl-bexpall'
10372 # It seems that -bexpall does not export symbols beginning with
10373 # underscore (_), so it is better to generate a list of symbols to export.
10374 always_export_symbols=yes
10375 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10376 # Warning - without using the other runtime loading flags (-brtl),
10377 # -berok will link without error, but may produce a broken library.
10378 allow_undefined_flag='-berok'
10379 # Determine the default libpath from the value encoded in an
10380 # empty executable.
10381 if test set = "${lt_cv_aix_libpath+set}"; then
10382 aix_libpath=$lt_cv_aix_libpath
10383 else
10384 if ${lt_cv_aix_libpath_+:} false; then :
10385 $as_echo_n "(cached) " >&6
10386 else
10387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10388 /* end confdefs.h. */
10391 main ()
10395 return 0;
10397 _ACEOF
10398 if ac_fn_c_try_link "$LINENO"; then :
10400 lt_aix_libpath_sed='
10401 /Import File Strings/,/^$/ {
10402 /^0/ {
10403 s/^0 *\([^ ]*\) *$/\1/
10407 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10408 # Check for a 64-bit object if we didn't find anything.
10409 if test -z "$lt_cv_aix_libpath_"; then
10410 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10413 rm -f core conftest.err conftest.$ac_objext \
10414 conftest$ac_exeext conftest.$ac_ext
10415 if test -z "$lt_cv_aix_libpath_"; then
10416 lt_cv_aix_libpath_=/usr/lib:/lib
10421 aix_libpath=$lt_cv_aix_libpath_
10424 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10425 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
10426 else
10427 if test ia64 = "$host_cpu"; then
10428 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10429 allow_undefined_flag="-z nodefs"
10430 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"
10431 else
10432 # Determine the default libpath from the value encoded in an
10433 # empty executable.
10434 if test set = "${lt_cv_aix_libpath+set}"; then
10435 aix_libpath=$lt_cv_aix_libpath
10436 else
10437 if ${lt_cv_aix_libpath_+:} false; then :
10438 $as_echo_n "(cached) " >&6
10439 else
10440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10441 /* end confdefs.h. */
10444 main ()
10448 return 0;
10450 _ACEOF
10451 if ac_fn_c_try_link "$LINENO"; then :
10453 lt_aix_libpath_sed='
10454 /Import File Strings/,/^$/ {
10455 /^0/ {
10456 s/^0 *\([^ ]*\) *$/\1/
10460 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10461 # Check for a 64-bit object if we didn't find anything.
10462 if test -z "$lt_cv_aix_libpath_"; then
10463 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10466 rm -f core conftest.err conftest.$ac_objext \
10467 conftest$ac_exeext conftest.$ac_ext
10468 if test -z "$lt_cv_aix_libpath_"; then
10469 lt_cv_aix_libpath_=/usr/lib:/lib
10474 aix_libpath=$lt_cv_aix_libpath_
10477 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10478 # Warning - without using the other run time loading flags,
10479 # -berok will link without error, but may produce a broken library.
10480 no_undefined_flag=' $wl-bernotok'
10481 allow_undefined_flag=' $wl-berok'
10482 if test yes = "$with_gnu_ld"; then
10483 # We only use this code for GNU lds that support --whole-archive.
10484 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10485 else
10486 # Exported symbols can be pulled into shared objects from archives
10487 whole_archive_flag_spec='$convenience'
10489 archive_cmds_need_lc=yes
10490 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10491 # -brtl affects multiple linker settings, -berok does not and is overridden later
10492 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10493 if test svr4 != "$with_aix_soname"; then
10494 # This is similar to how AIX traditionally builds its shared libraries.
10495 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10497 if test aix != "$with_aix_soname"; then
10498 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10499 else
10500 # used by -dlpreopen to get the symbols
10501 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10503 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10508 amigaos*)
10509 case $host_cpu in
10510 powerpc)
10511 # see comment about AmigaOS4 .so support
10512 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10513 archive_expsym_cmds=''
10515 m68k)
10516 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)'
10517 hardcode_libdir_flag_spec='-L$libdir'
10518 hardcode_minus_L=yes
10520 esac
10523 bsdi[45]*)
10524 export_dynamic_flag_spec=-rdynamic
10527 cygwin* | mingw* | pw32* | cegcc*)
10528 # When not using gcc, we currently assume that we are using
10529 # Microsoft Visual C++.
10530 # hardcode_libdir_flag_spec is actually meaningless, as there is
10531 # no search path for DLLs.
10532 case $cc_basename in
10533 cl*)
10534 # Native MSVC
10535 hardcode_libdir_flag_spec=' '
10536 allow_undefined_flag=unsupported
10537 always_export_symbols=yes
10538 file_list_spec='@'
10539 # Tell ltmain to make .lib files, not .a files.
10540 libext=lib
10541 # Tell ltmain to make .dll files, not .so files.
10542 shrext_cmds=.dll
10543 # FIXME: Setting linknames here is a bad hack.
10544 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10545 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10546 cp "$export_symbols" "$output_objdir/$soname.def";
10547 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10548 else
10549 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10551 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10552 linknames='
10553 # The linker will not automatically build a static lib if we build a DLL.
10554 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10555 enable_shared_with_static_runtimes=yes
10556 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10557 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10558 # Don't use ranlib
10559 old_postinstall_cmds='chmod 644 $oldlib'
10560 postlink_cmds='lt_outputfile="@OUTPUT@"~
10561 lt_tool_outputfile="@TOOL_OUTPUT@"~
10562 case $lt_outputfile in
10563 *.exe|*.EXE) ;;
10565 lt_outputfile=$lt_outputfile.exe
10566 lt_tool_outputfile=$lt_tool_outputfile.exe
10568 esac~
10569 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10570 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10571 $RM "$lt_outputfile.manifest";
10575 # Assume MSVC wrapper
10576 hardcode_libdir_flag_spec=' '
10577 allow_undefined_flag=unsupported
10578 # Tell ltmain to make .lib files, not .a files.
10579 libext=lib
10580 # Tell ltmain to make .dll files, not .so files.
10581 shrext_cmds=.dll
10582 # FIXME: Setting linknames here is a bad hack.
10583 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10584 # The linker will automatically build a .lib file if we build a DLL.
10585 old_archive_from_new_cmds='true'
10586 # FIXME: Should let the user specify the lib program.
10587 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10588 enable_shared_with_static_runtimes=yes
10590 esac
10593 darwin* | rhapsody*)
10596 archive_cmds_need_lc=no
10597 hardcode_direct=no
10598 hardcode_automatic=yes
10599 hardcode_shlibpath_var=unsupported
10600 if test yes = "$lt_cv_ld_force_load"; then
10601 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\"`'
10603 else
10604 whole_archive_flag_spec=''
10606 link_all_deplibs=yes
10607 allow_undefined_flag=$_lt_dar_allow_undefined
10608 case $cc_basename in
10609 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10610 *) _lt_dar_can_shared=$GCC ;;
10611 esac
10612 if test yes = "$_lt_dar_can_shared"; then
10613 output_verbose_link_cmd=func_echo_all
10614 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10615 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10616 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"
10617 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"
10619 else
10620 ld_shlibs=no
10625 dgux*)
10626 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10627 hardcode_libdir_flag_spec='-L$libdir'
10628 hardcode_shlibpath_var=no
10631 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10632 # support. Future versions do this automatically, but an explicit c++rt0.o
10633 # does not break anything, and helps significantly (at the cost of a little
10634 # extra space).
10635 freebsd2.2*)
10636 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10637 hardcode_libdir_flag_spec='-R$libdir'
10638 hardcode_direct=yes
10639 hardcode_shlibpath_var=no
10642 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10643 freebsd2.*)
10644 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10645 hardcode_direct=yes
10646 hardcode_minus_L=yes
10647 hardcode_shlibpath_var=no
10650 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10651 freebsd* | dragonfly*)
10652 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10653 hardcode_libdir_flag_spec='-R$libdir'
10654 hardcode_direct=yes
10655 hardcode_shlibpath_var=no
10658 hpux9*)
10659 if test yes = "$GCC"; then
10660 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10661 else
10662 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10664 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10665 hardcode_libdir_separator=:
10666 hardcode_direct=yes
10668 # hardcode_minus_L: Not really in the search PATH,
10669 # but as the default location of the library.
10670 hardcode_minus_L=yes
10671 export_dynamic_flag_spec='$wl-E'
10674 hpux10*)
10675 if test yes,no = "$GCC,$with_gnu_ld"; then
10676 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10677 else
10678 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10680 if test no = "$with_gnu_ld"; then
10681 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10682 hardcode_libdir_separator=:
10683 hardcode_direct=yes
10684 hardcode_direct_absolute=yes
10685 export_dynamic_flag_spec='$wl-E'
10686 # hardcode_minus_L: Not really in the search PATH,
10687 # but as the default location of the library.
10688 hardcode_minus_L=yes
10692 hpux11*)
10693 if test yes,no = "$GCC,$with_gnu_ld"; then
10694 case $host_cpu in
10695 hppa*64*)
10696 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10698 ia64*)
10699 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10702 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10704 esac
10705 else
10706 case $host_cpu in
10707 hppa*64*)
10708 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10710 ia64*)
10711 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10715 # Older versions of the 11.00 compiler do not understand -b yet
10716 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10718 $as_echo_n "checking if $CC understands -b... " >&6; }
10719 if ${lt_cv_prog_compiler__b+:} false; then :
10720 $as_echo_n "(cached) " >&6
10721 else
10722 lt_cv_prog_compiler__b=no
10723 save_LDFLAGS=$LDFLAGS
10724 LDFLAGS="$LDFLAGS -b"
10725 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10726 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10727 # The linker can only warn and ignore the option if not recognized
10728 # So say no if there are warnings
10729 if test -s conftest.err; then
10730 # Append any errors to the config.log.
10731 cat conftest.err 1>&5
10732 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10733 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10734 if diff conftest.exp conftest.er2 >/dev/null; then
10735 lt_cv_prog_compiler__b=yes
10737 else
10738 lt_cv_prog_compiler__b=yes
10741 $RM -r conftest*
10742 LDFLAGS=$save_LDFLAGS
10745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10746 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10748 if test yes = "$lt_cv_prog_compiler__b"; then
10749 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10750 else
10751 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10755 esac
10757 if test no = "$with_gnu_ld"; then
10758 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10759 hardcode_libdir_separator=:
10761 case $host_cpu in
10762 hppa*64*|ia64*)
10763 hardcode_direct=no
10764 hardcode_shlibpath_var=no
10767 hardcode_direct=yes
10768 hardcode_direct_absolute=yes
10769 export_dynamic_flag_spec='$wl-E'
10771 # hardcode_minus_L: Not really in the search PATH,
10772 # but as the default location of the library.
10773 hardcode_minus_L=yes
10775 esac
10779 irix5* | irix6* | nonstopux*)
10780 if test yes = "$GCC"; then
10781 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'
10782 # Try to use the -exported_symbol ld option, if it does not
10783 # work, assume that -exports_file does not work either and
10784 # implicitly export all symbols.
10785 # This should be the same for all languages, so no per-tag cache variable.
10786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10787 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10788 if ${lt_cv_irix_exported_symbol+:} false; then :
10789 $as_echo_n "(cached) " >&6
10790 else
10791 save_LDFLAGS=$LDFLAGS
10792 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10794 /* end confdefs.h. */
10795 int foo (void) { return 0; }
10796 _ACEOF
10797 if ac_fn_c_try_link "$LINENO"; then :
10798 lt_cv_irix_exported_symbol=yes
10799 else
10800 lt_cv_irix_exported_symbol=no
10802 rm -f core conftest.err conftest.$ac_objext \
10803 conftest$ac_exeext conftest.$ac_ext
10804 LDFLAGS=$save_LDFLAGS
10806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10807 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10808 if test yes = "$lt_cv_irix_exported_symbol"; then
10809 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'
10811 else
10812 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'
10813 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'
10815 archive_cmds_need_lc='no'
10816 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10817 hardcode_libdir_separator=:
10818 inherit_rpath=yes
10819 link_all_deplibs=yes
10822 linux*)
10823 case $cc_basename in
10824 tcc*)
10825 # Fabrice Bellard et al's Tiny C Compiler
10826 ld_shlibs=yes
10827 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10829 esac
10832 netbsd*)
10833 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10834 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10835 else
10836 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10838 hardcode_libdir_flag_spec='-R$libdir'
10839 hardcode_direct=yes
10840 hardcode_shlibpath_var=no
10843 newsos6)
10844 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10845 hardcode_direct=yes
10846 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10847 hardcode_libdir_separator=:
10848 hardcode_shlibpath_var=no
10851 *nto* | *qnx*)
10854 openbsd* | bitrig*)
10855 if test -f /usr/libexec/ld.so; then
10856 hardcode_direct=yes
10857 hardcode_shlibpath_var=no
10858 hardcode_direct_absolute=yes
10859 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10860 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10861 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10862 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10863 export_dynamic_flag_spec='$wl-E'
10864 else
10865 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10866 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10868 else
10869 ld_shlibs=no
10873 os2*)
10874 hardcode_libdir_flag_spec='-L$libdir'
10875 hardcode_minus_L=yes
10876 allow_undefined_flag=unsupported
10877 shrext_cmds=.dll
10878 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10879 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10880 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10881 $ECHO EXPORTS >> $output_objdir/$libname.def~
10882 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10883 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10884 emximp -o $lib $output_objdir/$libname.def'
10885 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10886 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10887 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10888 $ECHO EXPORTS >> $output_objdir/$libname.def~
10889 prefix_cmds="$SED"~
10890 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10891 prefix_cmds="$prefix_cmds -e 1d";
10893 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10894 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10895 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10896 emximp -o $lib $output_objdir/$libname.def'
10897 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10898 enable_shared_with_static_runtimes=yes
10901 osf3*)
10902 if test yes = "$GCC"; then
10903 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10904 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'
10905 else
10906 allow_undefined_flag=' -expect_unresolved \*'
10907 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'
10909 archive_cmds_need_lc='no'
10910 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10911 hardcode_libdir_separator=:
10914 osf4* | osf5*) # as osf3* with the addition of -msym flag
10915 if test yes = "$GCC"; then
10916 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10917 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'
10918 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10919 else
10920 allow_undefined_flag=' -expect_unresolved \*'
10921 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'
10922 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~
10923 $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'
10925 # Both c and cxx compiler support -rpath directly
10926 hardcode_libdir_flag_spec='-rpath $libdir'
10928 archive_cmds_need_lc='no'
10929 hardcode_libdir_separator=:
10932 solaris*)
10933 no_undefined_flag=' -z defs'
10934 if test yes = "$GCC"; then
10935 wlarc='$wl'
10936 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10937 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10938 $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'
10939 else
10940 case `$CC -V 2>&1` in
10941 *"Compilers 5.0"*)
10942 wlarc=''
10943 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10944 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10945 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10948 wlarc='$wl'
10949 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10950 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10951 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10953 esac
10955 hardcode_libdir_flag_spec='-R$libdir'
10956 hardcode_shlibpath_var=no
10957 case $host_os in
10958 solaris2.[0-5] | solaris2.[0-5].*) ;;
10960 # The compiler driver will combine and reorder linker options,
10961 # but understands '-z linker_flag'. GCC discards it without '$wl',
10962 # but is careful enough not to reorder.
10963 # Supported since Solaris 2.6 (maybe 2.5.1?)
10964 if test yes = "$GCC"; then
10965 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10966 else
10967 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10970 esac
10971 link_all_deplibs=yes
10974 sunos4*)
10975 if test sequent = "$host_vendor"; then
10976 # Use $CC to link under sequent, because it throws in some extra .o
10977 # files that make .init and .fini sections work.
10978 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10979 else
10980 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10982 hardcode_libdir_flag_spec='-L$libdir'
10983 hardcode_direct=yes
10984 hardcode_minus_L=yes
10985 hardcode_shlibpath_var=no
10988 sysv4)
10989 case $host_vendor in
10990 sni)
10991 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10992 hardcode_direct=yes # is this really true???
10994 siemens)
10995 ## LD is ld it makes a PLAMLIB
10996 ## CC just makes a GrossModule.
10997 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10998 reload_cmds='$CC -r -o $output$reload_objs'
10999 hardcode_direct=no
11001 motorola)
11002 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11003 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11005 esac
11006 runpath_var='LD_RUN_PATH'
11007 hardcode_shlibpath_var=no
11010 sysv4.3*)
11011 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11012 hardcode_shlibpath_var=no
11013 export_dynamic_flag_spec='-Bexport'
11016 sysv4*MP*)
11017 if test -d /usr/nec; then
11018 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11019 hardcode_shlibpath_var=no
11020 runpath_var=LD_RUN_PATH
11021 hardcode_runpath_var=yes
11022 ld_shlibs=yes
11026 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11027 no_undefined_flag='$wl-z,text'
11028 archive_cmds_need_lc=no
11029 hardcode_shlibpath_var=no
11030 runpath_var='LD_RUN_PATH'
11032 if test yes = "$GCC"; then
11033 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11034 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11035 else
11036 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11037 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11041 sysv5* | sco3.2v5* | sco5v6*)
11042 # Note: We CANNOT use -z defs as we might desire, because we do not
11043 # link with -lc, and that would cause any symbols used from libc to
11044 # always be unresolved, which means just about no library would
11045 # ever link correctly. If we're not using GNU ld we use -z text
11046 # though, which does catch some bad symbols but isn't as heavy-handed
11047 # as -z defs.
11048 no_undefined_flag='$wl-z,text'
11049 allow_undefined_flag='$wl-z,nodefs'
11050 archive_cmds_need_lc=no
11051 hardcode_shlibpath_var=no
11052 hardcode_libdir_flag_spec='$wl-R,$libdir'
11053 hardcode_libdir_separator=':'
11054 link_all_deplibs=yes
11055 export_dynamic_flag_spec='$wl-Bexport'
11056 runpath_var='LD_RUN_PATH'
11058 if test yes = "$GCC"; then
11059 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11060 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11061 else
11062 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11063 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11067 uts4*)
11068 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11069 hardcode_libdir_flag_spec='-L$libdir'
11070 hardcode_shlibpath_var=no
11074 ld_shlibs=no
11076 esac
11078 if test sni = "$host_vendor"; then
11079 case $host in
11080 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11081 export_dynamic_flag_spec='$wl-Blargedynsym'
11083 esac
11087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11088 $as_echo "$ld_shlibs" >&6; }
11089 test no = "$ld_shlibs" && can_build_shared=no
11091 with_gnu_ld=$with_gnu_ld
11108 # Do we need to explicitly link libc?
11110 case "x$archive_cmds_need_lc" in
11111 x|xyes)
11112 # Assume -lc should be added
11113 archive_cmds_need_lc=yes
11115 if test yes,yes = "$GCC,$enable_shared"; then
11116 case $archive_cmds in
11117 *'~'*)
11118 # FIXME: we may have to deal with multi-command sequences.
11120 '$CC '*)
11121 # Test whether the compiler implicitly links with -lc since on some
11122 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11123 # to ld, don't add -lc before -lgcc.
11124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11125 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11126 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11127 $as_echo_n "(cached) " >&6
11128 else
11129 $RM conftest*
11130 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11132 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11133 (eval $ac_compile) 2>&5
11134 ac_status=$?
11135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11136 test $ac_status = 0; } 2>conftest.err; then
11137 soname=conftest
11138 lib=conftest
11139 libobjs=conftest.$ac_objext
11140 deplibs=
11141 wl=$lt_prog_compiler_wl
11142 pic_flag=$lt_prog_compiler_pic
11143 compiler_flags=-v
11144 linker_flags=-v
11145 verstring=
11146 output_objdir=.
11147 libname=conftest
11148 lt_save_allow_undefined_flag=$allow_undefined_flag
11149 allow_undefined_flag=
11150 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11151 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11152 ac_status=$?
11153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11154 test $ac_status = 0; }
11155 then
11156 lt_cv_archive_cmds_need_lc=no
11157 else
11158 lt_cv_archive_cmds_need_lc=yes
11160 allow_undefined_flag=$lt_save_allow_undefined_flag
11161 else
11162 cat conftest.err 1>&5
11164 $RM conftest*
11167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11168 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11169 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11171 esac
11174 esac
11327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11328 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11330 if test yes = "$GCC"; then
11331 case $host_os in
11332 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11333 *) lt_awk_arg='/^libraries:/' ;;
11334 esac
11335 case $host_os in
11336 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11337 *) lt_sed_strip_eq='s|=/|/|g' ;;
11338 esac
11339 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11340 case $lt_search_path_spec in
11341 *\;*)
11342 # if the path contains ";" then we assume it to be the separator
11343 # otherwise default to the standard path separator (i.e. ":") - it is
11344 # assumed that no part of a normal pathname contains ";" but that should
11345 # okay in the real world where ";" in dirpaths is itself problematic.
11346 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11349 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11351 esac
11352 # Ok, now we have the path, separated by spaces, we can step through it
11353 # and add multilib dir if necessary...
11354 lt_tmp_lt_search_path_spec=
11355 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11356 # ...but if some path component already ends with the multilib dir we assume
11357 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11358 case "$lt_multi_os_dir; $lt_search_path_spec " in
11359 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11360 lt_multi_os_dir=
11362 esac
11363 for lt_sys_path in $lt_search_path_spec; do
11364 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11365 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11366 elif test -n "$lt_multi_os_dir"; then
11367 test -d "$lt_sys_path" && \
11368 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11370 done
11371 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11372 BEGIN {RS = " "; FS = "/|\n";} {
11373 lt_foo = "";
11374 lt_count = 0;
11375 for (lt_i = NF; lt_i > 0; lt_i--) {
11376 if ($lt_i != "" && $lt_i != ".") {
11377 if ($lt_i == "..") {
11378 lt_count++;
11379 } else {
11380 if (lt_count == 0) {
11381 lt_foo = "/" $lt_i lt_foo;
11382 } else {
11383 lt_count--;
11388 if (lt_foo != "") { lt_freq[lt_foo]++; }
11389 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11391 # AWK program above erroneously prepends '/' to C:/dos/paths
11392 # for these hosts.
11393 case $host_os in
11394 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11395 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11396 esac
11397 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11398 else
11399 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11401 library_names_spec=
11402 libname_spec='lib$name'
11403 soname_spec=
11404 shrext_cmds=.so
11405 postinstall_cmds=
11406 postuninstall_cmds=
11407 finish_cmds=
11408 finish_eval=
11409 shlibpath_var=
11410 shlibpath_overrides_runpath=unknown
11411 version_type=none
11412 dynamic_linker="$host_os ld.so"
11413 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11414 need_lib_prefix=unknown
11415 hardcode_into_libs=no
11417 # when you set need_version to no, make sure it does not cause -set_version
11418 # flags to be left without arguments
11419 need_version=unknown
11423 case $host_os in
11424 aix3*)
11425 version_type=linux # correct to gnu/linux during the next big refactor
11426 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11427 shlibpath_var=LIBPATH
11429 # AIX 3 has no versioning support, so we append a major version to the name.
11430 soname_spec='$libname$release$shared_ext$major'
11433 aix[4-9]*)
11434 version_type=linux # correct to gnu/linux during the next big refactor
11435 need_lib_prefix=no
11436 need_version=no
11437 hardcode_into_libs=yes
11438 if test ia64 = "$host_cpu"; then
11439 # AIX 5 supports IA64
11440 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11441 shlibpath_var=LD_LIBRARY_PATH
11442 else
11443 # With GCC up to 2.95.x, collect2 would create an import file
11444 # for dependence libraries. The import file would start with
11445 # the line '#! .'. This would cause the generated library to
11446 # depend on '.', always an invalid library. This was fixed in
11447 # development snapshots of GCC prior to 3.0.
11448 case $host_os in
11449 aix4 | aix4.[01] | aix4.[01].*)
11450 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11451 echo ' yes '
11452 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11454 else
11455 can_build_shared=no
11458 esac
11459 # Using Import Files as archive members, it is possible to support
11460 # filename-based versioning of shared library archives on AIX. While
11461 # this would work for both with and without runtime linking, it will
11462 # prevent static linking of such archives. So we do filename-based
11463 # shared library versioning with .so extension only, which is used
11464 # when both runtime linking and shared linking is enabled.
11465 # Unfortunately, runtime linking may impact performance, so we do
11466 # not want this to be the default eventually. Also, we use the
11467 # versioned .so libs for executables only if there is the -brtl
11468 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11469 # To allow for filename-based versioning support, we need to create
11470 # libNAME.so.V as an archive file, containing:
11471 # *) an Import File, referring to the versioned filename of the
11472 # archive as well as the shared archive member, telling the
11473 # bitwidth (32 or 64) of that shared object, and providing the
11474 # list of exported symbols of that shared object, eventually
11475 # decorated with the 'weak' keyword
11476 # *) the shared object with the F_LOADONLY flag set, to really avoid
11477 # it being seen by the linker.
11478 # At run time we better use the real file rather than another symlink,
11479 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11481 case $with_aix_soname,$aix_use_runtimelinking in
11482 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11483 # soname into executable. Probably we can add versioning support to
11484 # collect2, so additional links can be useful in future.
11485 aix,yes) # traditional libtool
11486 dynamic_linker='AIX unversionable lib.so'
11487 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11488 # instead of lib<name>.a to let people know that these are not
11489 # typical AIX shared libraries.
11490 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11492 aix,no) # traditional AIX only
11493 dynamic_linker='AIX lib.a(lib.so.V)'
11494 # We preserve .a as extension for shared libraries through AIX4.2
11495 # and later when we are not doing run time linking.
11496 library_names_spec='$libname$release.a $libname.a'
11497 soname_spec='$libname$release$shared_ext$major'
11499 svr4,*) # full svr4 only
11500 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11501 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11502 # We do not specify a path in Import Files, so LIBPATH fires.
11503 shlibpath_overrides_runpath=yes
11505 *,yes) # both, prefer svr4
11506 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11507 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11508 # unpreferred sharedlib libNAME.a needs extra handling
11509 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11510 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11511 # We do not specify a path in Import Files, so LIBPATH fires.
11512 shlibpath_overrides_runpath=yes
11514 *,no) # both, prefer aix
11515 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11516 library_names_spec='$libname$release.a $libname.a'
11517 soname_spec='$libname$release$shared_ext$major'
11518 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11519 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11520 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11522 esac
11523 shlibpath_var=LIBPATH
11527 amigaos*)
11528 case $host_cpu in
11529 powerpc)
11530 # Since July 2007 AmigaOS4 officially supports .so libraries.
11531 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11532 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11534 m68k)
11535 library_names_spec='$libname.ixlibrary $libname.a'
11536 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11537 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
11539 esac
11542 beos*)
11543 library_names_spec='$libname$shared_ext'
11544 dynamic_linker="$host_os ld.so"
11545 shlibpath_var=LIBRARY_PATH
11548 bsdi[45]*)
11549 version_type=linux # correct to gnu/linux during the next big refactor
11550 need_version=no
11551 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11552 soname_spec='$libname$release$shared_ext$major'
11553 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11554 shlibpath_var=LD_LIBRARY_PATH
11555 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11556 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11557 # the default ld.so.conf also contains /usr/contrib/lib and
11558 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11559 # libtool to hard-code these into programs
11562 cygwin* | mingw* | pw32* | cegcc*)
11563 version_type=windows
11564 shrext_cmds=.dll
11565 need_version=no
11566 need_lib_prefix=no
11568 case $GCC,$cc_basename in
11569 yes,*)
11570 # gcc
11571 library_names_spec='$libname.dll.a'
11572 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11573 postinstall_cmds='base_file=`basename \$file`~
11574 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11575 dldir=$destdir/`dirname \$dlpath`~
11576 test -d \$dldir || mkdir -p \$dldir~
11577 $install_prog $dir/$dlname \$dldir/$dlname~
11578 chmod a+x \$dldir/$dlname~
11579 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11580 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11582 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11583 dlpath=$dir/\$dldll~
11584 $RM \$dlpath'
11585 shlibpath_overrides_runpath=yes
11587 case $host_os in
11588 cygwin*)
11589 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11590 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11592 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11594 mingw* | cegcc*)
11595 # MinGW DLLs use traditional 'lib' prefix
11596 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11598 pw32*)
11599 # pw32 DLLs use 'pw' prefix rather than 'lib'
11600 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11602 esac
11603 dynamic_linker='Win32 ld.exe'
11606 *,cl*)
11607 # Native MSVC
11608 libname_spec='$name'
11609 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11610 library_names_spec='$libname.dll.lib'
11612 case $build_os in
11613 mingw*)
11614 sys_lib_search_path_spec=
11615 lt_save_ifs=$IFS
11616 IFS=';'
11617 for lt_path in $LIB
11619 IFS=$lt_save_ifs
11620 # Let DOS variable expansion print the short 8.3 style file name.
11621 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11622 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11623 done
11624 IFS=$lt_save_ifs
11625 # Convert to MSYS style.
11626 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11628 cygwin*)
11629 # Convert to unix form, then to dos form, then back to unix form
11630 # but this time dos style (no spaces!) so that the unix form looks
11631 # like /cygdrive/c/PROGRA~1:/cygdr...
11632 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11633 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11634 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11637 sys_lib_search_path_spec=$LIB
11638 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11639 # It is most probably a Windows format PATH.
11640 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11641 else
11642 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11644 # FIXME: find the short name or the path components, as spaces are
11645 # common. (e.g. "Program Files" -> "PROGRA~1")
11647 esac
11649 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11650 postinstall_cmds='base_file=`basename \$file`~
11651 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11652 dldir=$destdir/`dirname \$dlpath`~
11653 test -d \$dldir || mkdir -p \$dldir~
11654 $install_prog $dir/$dlname \$dldir/$dlname'
11655 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11656 dlpath=$dir/\$dldll~
11657 $RM \$dlpath'
11658 shlibpath_overrides_runpath=yes
11659 dynamic_linker='Win32 link.exe'
11663 # Assume MSVC wrapper
11664 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11665 dynamic_linker='Win32 ld.exe'
11667 esac
11668 # FIXME: first we should search . and the directory the executable is in
11669 shlibpath_var=PATH
11672 darwin* | rhapsody*)
11673 dynamic_linker="$host_os dyld"
11674 version_type=darwin
11675 need_lib_prefix=no
11676 need_version=no
11677 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11678 soname_spec='$libname$release$major$shared_ext'
11679 shlibpath_overrides_runpath=yes
11680 shlibpath_var=DYLD_LIBRARY_PATH
11681 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11683 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11684 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11687 dgux*)
11688 version_type=linux # correct to gnu/linux during the next big refactor
11689 need_lib_prefix=no
11690 need_version=no
11691 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11692 soname_spec='$libname$release$shared_ext$major'
11693 shlibpath_var=LD_LIBRARY_PATH
11696 freebsd* | dragonfly*)
11697 # DragonFly does not have aout. When/if they implement a new
11698 # versioning mechanism, adjust this.
11699 if test -x /usr/bin/objformat; then
11700 objformat=`/usr/bin/objformat`
11701 else
11702 case $host_os in
11703 freebsd[23].*) objformat=aout ;;
11704 *) objformat=elf ;;
11705 esac
11707 version_type=freebsd-$objformat
11708 case $version_type in
11709 freebsd-elf*)
11710 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11711 soname_spec='$libname$release$shared_ext$major'
11712 need_version=no
11713 need_lib_prefix=no
11715 freebsd-*)
11716 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11717 need_version=yes
11719 esac
11720 shlibpath_var=LD_LIBRARY_PATH
11721 case $host_os in
11722 freebsd2.*)
11723 shlibpath_overrides_runpath=yes
11725 freebsd3.[01]* | freebsdelf3.[01]*)
11726 shlibpath_overrides_runpath=yes
11727 hardcode_into_libs=yes
11729 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11730 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11731 shlibpath_overrides_runpath=no
11732 hardcode_into_libs=yes
11734 *) # from 4.6 on, and DragonFly
11735 shlibpath_overrides_runpath=yes
11736 hardcode_into_libs=yes
11738 esac
11741 haiku*)
11742 version_type=linux # correct to gnu/linux during the next big refactor
11743 need_lib_prefix=no
11744 need_version=no
11745 dynamic_linker="$host_os runtime_loader"
11746 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11747 soname_spec='$libname$release$shared_ext$major'
11748 shlibpath_var=LIBRARY_PATH
11749 shlibpath_overrides_runpath=no
11750 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11751 hardcode_into_libs=yes
11754 hpux9* | hpux10* | hpux11*)
11755 # Give a soname corresponding to the major version so that dld.sl refuses to
11756 # link against other versions.
11757 version_type=sunos
11758 need_lib_prefix=no
11759 need_version=no
11760 case $host_cpu in
11761 ia64*)
11762 shrext_cmds='.so'
11763 hardcode_into_libs=yes
11764 dynamic_linker="$host_os dld.so"
11765 shlibpath_var=LD_LIBRARY_PATH
11766 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11767 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11768 soname_spec='$libname$release$shared_ext$major'
11769 if test 32 = "$HPUX_IA64_MODE"; then
11770 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11771 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11772 else
11773 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11774 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11777 hppa*64*)
11778 shrext_cmds='.sl'
11779 hardcode_into_libs=yes
11780 dynamic_linker="$host_os dld.sl"
11781 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11782 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11783 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11784 soname_spec='$libname$release$shared_ext$major'
11785 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11786 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11789 shrext_cmds='.sl'
11790 dynamic_linker="$host_os dld.sl"
11791 shlibpath_var=SHLIB_PATH
11792 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11793 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11794 soname_spec='$libname$release$shared_ext$major'
11796 esac
11797 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11798 postinstall_cmds='chmod 555 $lib'
11799 # or fails outright, so override atomically:
11800 install_override_mode=555
11803 interix[3-9]*)
11804 version_type=linux # correct to gnu/linux during the next big refactor
11805 need_lib_prefix=no
11806 need_version=no
11807 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11808 soname_spec='$libname$release$shared_ext$major'
11809 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11810 shlibpath_var=LD_LIBRARY_PATH
11811 shlibpath_overrides_runpath=no
11812 hardcode_into_libs=yes
11815 irix5* | irix6* | nonstopux*)
11816 case $host_os in
11817 nonstopux*) version_type=nonstopux ;;
11819 if test yes = "$lt_cv_prog_gnu_ld"; then
11820 version_type=linux # correct to gnu/linux during the next big refactor
11821 else
11822 version_type=irix
11823 fi ;;
11824 esac
11825 need_lib_prefix=no
11826 need_version=no
11827 soname_spec='$libname$release$shared_ext$major'
11828 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11829 case $host_os in
11830 irix5* | nonstopux*)
11831 libsuff= shlibsuff=
11834 case $LD in # libtool.m4 will add one of these switches to LD
11835 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11836 libsuff= shlibsuff= libmagic=32-bit;;
11837 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11838 libsuff=32 shlibsuff=N32 libmagic=N32;;
11839 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11840 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11841 *) libsuff= shlibsuff= libmagic=never-match;;
11842 esac
11844 esac
11845 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11846 shlibpath_overrides_runpath=no
11847 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11848 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11849 hardcode_into_libs=yes
11852 # No shared lib support for Linux oldld, aout, or coff.
11853 linux*oldld* | linux*aout* | linux*coff*)
11854 dynamic_linker=no
11857 linux*android*)
11858 version_type=none # Android doesn't support versioned libraries.
11859 need_lib_prefix=no
11860 need_version=no
11861 library_names_spec='$libname$release$shared_ext'
11862 soname_spec='$libname$release$shared_ext'
11863 finish_cmds=
11864 shlibpath_var=LD_LIBRARY_PATH
11865 shlibpath_overrides_runpath=yes
11867 # This implies no fast_install, which is unacceptable.
11868 # Some rework will be needed to allow for fast_install
11869 # before this can be enabled.
11870 hardcode_into_libs=yes
11872 dynamic_linker='Android linker'
11873 # Don't embed -rpath directories since the linker doesn't support them.
11874 hardcode_libdir_flag_spec='-L$libdir'
11877 # This must be glibc/ELF.
11878 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11879 version_type=linux # correct to gnu/linux during the next big refactor
11880 need_lib_prefix=no
11881 need_version=no
11882 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11883 soname_spec='$libname$release$shared_ext$major'
11884 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11885 shlibpath_var=LD_LIBRARY_PATH
11886 shlibpath_overrides_runpath=no
11888 # Some binutils ld are patched to set DT_RUNPATH
11889 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11890 $as_echo_n "(cached) " >&6
11891 else
11892 lt_cv_shlibpath_overrides_runpath=no
11893 save_LDFLAGS=$LDFLAGS
11894 save_libdir=$libdir
11895 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11896 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11898 /* end confdefs.h. */
11901 main ()
11905 return 0;
11907 _ACEOF
11908 if ac_fn_c_try_link "$LINENO"; then :
11909 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11910 lt_cv_shlibpath_overrides_runpath=yes
11913 rm -f core conftest.err conftest.$ac_objext \
11914 conftest$ac_exeext conftest.$ac_ext
11915 LDFLAGS=$save_LDFLAGS
11916 libdir=$save_libdir
11920 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11922 # This implies no fast_install, which is unacceptable.
11923 # Some rework will be needed to allow for fast_install
11924 # before this can be enabled.
11925 hardcode_into_libs=yes
11927 # Ideally, we could use ldconfig to report *all* directores which are
11928 # searched for libraries, however this is still not possible. Aside from not
11929 # being certain /sbin/ldconfig is available, command
11930 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11931 # even though it is searched at run-time. Try to do the best guess by
11932 # appending ld.so.conf contents (and includes) to the search path.
11933 if test -f /etc/ld.so.conf; then
11934 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' ' '`
11935 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11938 # We used to test for /lib/ld.so.1 and disable shared libraries on
11939 # powerpc, because MkLinux only supported shared libraries with the
11940 # GNU dynamic linker. Since this was broken with cross compilers,
11941 # most powerpc-linux boxes support dynamic linking these days and
11942 # people can always --disable-shared, the test was removed, and we
11943 # assume the GNU/Linux dynamic linker is in use.
11944 dynamic_linker='GNU/Linux ld.so'
11947 netbsd*)
11948 version_type=sunos
11949 need_lib_prefix=no
11950 need_version=no
11951 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11952 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11953 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11954 dynamic_linker='NetBSD (a.out) ld.so'
11955 else
11956 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11957 soname_spec='$libname$release$shared_ext$major'
11958 dynamic_linker='NetBSD ld.elf_so'
11960 shlibpath_var=LD_LIBRARY_PATH
11961 shlibpath_overrides_runpath=yes
11962 hardcode_into_libs=yes
11965 newsos6)
11966 version_type=linux # correct to gnu/linux during the next big refactor
11967 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11968 shlibpath_var=LD_LIBRARY_PATH
11969 shlibpath_overrides_runpath=yes
11972 *nto* | *qnx*)
11973 version_type=qnx
11974 need_lib_prefix=no
11975 need_version=no
11976 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11977 soname_spec='$libname$release$shared_ext$major'
11978 shlibpath_var=LD_LIBRARY_PATH
11979 shlibpath_overrides_runpath=no
11980 hardcode_into_libs=yes
11981 dynamic_linker='ldqnx.so'
11984 openbsd* | bitrig*)
11985 version_type=sunos
11986 sys_lib_dlsearch_path_spec=/usr/lib
11987 need_lib_prefix=no
11988 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11989 need_version=no
11990 else
11991 need_version=yes
11993 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11994 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11995 shlibpath_var=LD_LIBRARY_PATH
11996 shlibpath_overrides_runpath=yes
11999 os2*)
12000 libname_spec='$name'
12001 version_type=windows
12002 shrext_cmds=.dll
12003 need_version=no
12004 need_lib_prefix=no
12005 # OS/2 can only load a DLL with a base name of 8 characters or less.
12006 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12007 v=$($ECHO $release$versuffix | tr -d .-);
12008 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12009 $ECHO $n$v`$shared_ext'
12010 library_names_spec='${libname}_dll.$libext'
12011 dynamic_linker='OS/2 ld.exe'
12012 shlibpath_var=BEGINLIBPATH
12013 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12014 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12015 postinstall_cmds='base_file=`basename \$file`~
12016 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12017 dldir=$destdir/`dirname \$dlpath`~
12018 test -d \$dldir || mkdir -p \$dldir~
12019 $install_prog $dir/$dlname \$dldir/$dlname~
12020 chmod a+x \$dldir/$dlname~
12021 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12022 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12024 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12025 dlpath=$dir/\$dldll~
12026 $RM \$dlpath'
12029 osf3* | osf4* | osf5*)
12030 version_type=osf
12031 need_lib_prefix=no
12032 need_version=no
12033 soname_spec='$libname$release$shared_ext$major'
12034 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12035 shlibpath_var=LD_LIBRARY_PATH
12036 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12037 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12040 rdos*)
12041 dynamic_linker=no
12044 solaris*)
12045 version_type=linux # correct to gnu/linux during the next big refactor
12046 need_lib_prefix=no
12047 need_version=no
12048 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12049 soname_spec='$libname$release$shared_ext$major'
12050 shlibpath_var=LD_LIBRARY_PATH
12051 shlibpath_overrides_runpath=yes
12052 hardcode_into_libs=yes
12053 # ldd complains unless libraries are executable
12054 postinstall_cmds='chmod +x $lib'
12057 sunos4*)
12058 version_type=sunos
12059 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12060 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12061 shlibpath_var=LD_LIBRARY_PATH
12062 shlibpath_overrides_runpath=yes
12063 if test yes = "$with_gnu_ld"; then
12064 need_lib_prefix=no
12066 need_version=yes
12069 sysv4 | sysv4.3*)
12070 version_type=linux # correct to gnu/linux during the next big refactor
12071 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12072 soname_spec='$libname$release$shared_ext$major'
12073 shlibpath_var=LD_LIBRARY_PATH
12074 case $host_vendor in
12075 sni)
12076 shlibpath_overrides_runpath=no
12077 need_lib_prefix=no
12078 runpath_var=LD_RUN_PATH
12080 siemens)
12081 need_lib_prefix=no
12083 motorola)
12084 need_lib_prefix=no
12085 need_version=no
12086 shlibpath_overrides_runpath=no
12087 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12089 esac
12092 sysv4*MP*)
12093 if test -d /usr/nec; then
12094 version_type=linux # correct to gnu/linux during the next big refactor
12095 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12096 soname_spec='$libname$shared_ext.$major'
12097 shlibpath_var=LD_LIBRARY_PATH
12101 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12102 version_type=sco
12103 need_lib_prefix=no
12104 need_version=no
12105 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12106 soname_spec='$libname$release$shared_ext$major'
12107 shlibpath_var=LD_LIBRARY_PATH
12108 shlibpath_overrides_runpath=yes
12109 hardcode_into_libs=yes
12110 if test yes = "$with_gnu_ld"; then
12111 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12112 else
12113 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12114 case $host_os in
12115 sco3.2v5*)
12116 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12118 esac
12120 sys_lib_dlsearch_path_spec='/usr/lib'
12123 tpf*)
12124 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12125 version_type=linux # correct to gnu/linux during the next big refactor
12126 need_lib_prefix=no
12127 need_version=no
12128 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12129 shlibpath_var=LD_LIBRARY_PATH
12130 shlibpath_overrides_runpath=no
12131 hardcode_into_libs=yes
12134 uts4*)
12135 version_type=linux # correct to gnu/linux during the next big refactor
12136 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12137 soname_spec='$libname$release$shared_ext$major'
12138 shlibpath_var=LD_LIBRARY_PATH
12142 dynamic_linker=no
12144 esac
12145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12146 $as_echo "$dynamic_linker" >&6; }
12147 test no = "$dynamic_linker" && can_build_shared=no
12149 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12150 if test yes = "$GCC"; then
12151 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12154 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12155 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12158 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12159 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12162 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12163 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12165 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12166 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12168 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12169 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12268 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12269 hardcode_action=
12270 if test -n "$hardcode_libdir_flag_spec" ||
12271 test -n "$runpath_var" ||
12272 test yes = "$hardcode_automatic"; then
12274 # We can hardcode non-existent directories.
12275 if test no != "$hardcode_direct" &&
12276 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12277 # have to relink, otherwise we might link with an installed library
12278 # when we should be linking with a yet-to-be-installed one
12279 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12280 test no != "$hardcode_minus_L"; then
12281 # Linking always hardcodes the temporary library directory.
12282 hardcode_action=relink
12283 else
12284 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12285 hardcode_action=immediate
12287 else
12288 # We cannot hardcode anything, or else we can only hardcode existing
12289 # directories.
12290 hardcode_action=unsupported
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12293 $as_echo "$hardcode_action" >&6; }
12295 if test relink = "$hardcode_action" ||
12296 test yes = "$inherit_rpath"; then
12297 # Fast installation is not supported
12298 enable_fast_install=no
12299 elif test yes = "$shlibpath_overrides_runpath" ||
12300 test no = "$enable_shared"; then
12301 # Fast installation is not necessary
12302 enable_fast_install=needless
12310 if test yes != "$enable_dlopen"; then
12311 enable_dlopen=unknown
12312 enable_dlopen_self=unknown
12313 enable_dlopen_self_static=unknown
12314 else
12315 lt_cv_dlopen=no
12316 lt_cv_dlopen_libs=
12318 case $host_os in
12319 beos*)
12320 lt_cv_dlopen=load_add_on
12321 lt_cv_dlopen_libs=
12322 lt_cv_dlopen_self=yes
12325 mingw* | pw32* | cegcc*)
12326 lt_cv_dlopen=LoadLibrary
12327 lt_cv_dlopen_libs=
12330 cygwin*)
12331 lt_cv_dlopen=dlopen
12332 lt_cv_dlopen_libs=
12335 darwin*)
12336 # if libdl is installed we need to link against it
12337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12338 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12339 if ${ac_cv_lib_dl_dlopen+:} false; then :
12340 $as_echo_n "(cached) " >&6
12341 else
12342 ac_check_lib_save_LIBS=$LIBS
12343 LIBS="-ldl $LIBS"
12344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12345 /* end confdefs.h. */
12347 /* Override any GCC internal prototype to avoid an error.
12348 Use char because int might match the return type of a GCC
12349 builtin and then its argument prototype would still apply. */
12350 #ifdef __cplusplus
12351 extern "C"
12352 #endif
12353 char dlopen ();
12355 main ()
12357 return dlopen ();
12359 return 0;
12361 _ACEOF
12362 if ac_fn_c_try_link "$LINENO"; then :
12363 ac_cv_lib_dl_dlopen=yes
12364 else
12365 ac_cv_lib_dl_dlopen=no
12367 rm -f core conftest.err conftest.$ac_objext \
12368 conftest$ac_exeext conftest.$ac_ext
12369 LIBS=$ac_check_lib_save_LIBS
12371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12372 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12373 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12374 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12375 else
12377 lt_cv_dlopen=dyld
12378 lt_cv_dlopen_libs=
12379 lt_cv_dlopen_self=yes
12385 tpf*)
12386 # Don't try to run any link tests for TPF. We know it's impossible
12387 # because TPF is a cross-compiler, and we know how we open DSOs.
12388 lt_cv_dlopen=dlopen
12389 lt_cv_dlopen_libs=
12390 lt_cv_dlopen_self=no
12394 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12395 if test "x$ac_cv_func_shl_load" = xyes; then :
12396 lt_cv_dlopen=shl_load
12397 else
12398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12399 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12400 if ${ac_cv_lib_dld_shl_load+:} false; then :
12401 $as_echo_n "(cached) " >&6
12402 else
12403 ac_check_lib_save_LIBS=$LIBS
12404 LIBS="-ldld $LIBS"
12405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12406 /* end confdefs.h. */
12408 /* Override any GCC internal prototype to avoid an error.
12409 Use char because int might match the return type of a GCC
12410 builtin and then its argument prototype would still apply. */
12411 #ifdef __cplusplus
12412 extern "C"
12413 #endif
12414 char shl_load ();
12416 main ()
12418 return shl_load ();
12420 return 0;
12422 _ACEOF
12423 if ac_fn_c_try_link "$LINENO"; then :
12424 ac_cv_lib_dld_shl_load=yes
12425 else
12426 ac_cv_lib_dld_shl_load=no
12428 rm -f core conftest.err conftest.$ac_objext \
12429 conftest$ac_exeext conftest.$ac_ext
12430 LIBS=$ac_check_lib_save_LIBS
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12433 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12434 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12435 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12436 else
12437 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12438 if test "x$ac_cv_func_dlopen" = xyes; then :
12439 lt_cv_dlopen=dlopen
12440 else
12441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12442 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12443 if ${ac_cv_lib_dl_dlopen+:} false; then :
12444 $as_echo_n "(cached) " >&6
12445 else
12446 ac_check_lib_save_LIBS=$LIBS
12447 LIBS="-ldl $LIBS"
12448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12449 /* end confdefs.h. */
12451 /* Override any GCC internal prototype to avoid an error.
12452 Use char because int might match the return type of a GCC
12453 builtin and then its argument prototype would still apply. */
12454 #ifdef __cplusplus
12455 extern "C"
12456 #endif
12457 char dlopen ();
12459 main ()
12461 return dlopen ();
12463 return 0;
12465 _ACEOF
12466 if ac_fn_c_try_link "$LINENO"; then :
12467 ac_cv_lib_dl_dlopen=yes
12468 else
12469 ac_cv_lib_dl_dlopen=no
12471 rm -f core conftest.err conftest.$ac_objext \
12472 conftest$ac_exeext conftest.$ac_ext
12473 LIBS=$ac_check_lib_save_LIBS
12475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12476 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12477 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12478 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12479 else
12480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12481 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12482 if ${ac_cv_lib_svld_dlopen+:} false; then :
12483 $as_echo_n "(cached) " >&6
12484 else
12485 ac_check_lib_save_LIBS=$LIBS
12486 LIBS="-lsvld $LIBS"
12487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12488 /* end confdefs.h. */
12490 /* Override any GCC internal prototype to avoid an error.
12491 Use char because int might match the return type of a GCC
12492 builtin and then its argument prototype would still apply. */
12493 #ifdef __cplusplus
12494 extern "C"
12495 #endif
12496 char dlopen ();
12498 main ()
12500 return dlopen ();
12502 return 0;
12504 _ACEOF
12505 if ac_fn_c_try_link "$LINENO"; then :
12506 ac_cv_lib_svld_dlopen=yes
12507 else
12508 ac_cv_lib_svld_dlopen=no
12510 rm -f core conftest.err conftest.$ac_objext \
12511 conftest$ac_exeext conftest.$ac_ext
12512 LIBS=$ac_check_lib_save_LIBS
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12515 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12516 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12517 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12518 else
12519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12520 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12521 if ${ac_cv_lib_dld_dld_link+:} false; then :
12522 $as_echo_n "(cached) " >&6
12523 else
12524 ac_check_lib_save_LIBS=$LIBS
12525 LIBS="-ldld $LIBS"
12526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12527 /* end confdefs.h. */
12529 /* Override any GCC internal prototype to avoid an error.
12530 Use char because int might match the return type of a GCC
12531 builtin and then its argument prototype would still apply. */
12532 #ifdef __cplusplus
12533 extern "C"
12534 #endif
12535 char dld_link ();
12537 main ()
12539 return dld_link ();
12541 return 0;
12543 _ACEOF
12544 if ac_fn_c_try_link "$LINENO"; then :
12545 ac_cv_lib_dld_dld_link=yes
12546 else
12547 ac_cv_lib_dld_dld_link=no
12549 rm -f core conftest.err conftest.$ac_objext \
12550 conftest$ac_exeext conftest.$ac_ext
12551 LIBS=$ac_check_lib_save_LIBS
12553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12554 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12555 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12556 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12575 esac
12577 if test no = "$lt_cv_dlopen"; then
12578 enable_dlopen=no
12579 else
12580 enable_dlopen=yes
12583 case $lt_cv_dlopen in
12584 dlopen)
12585 save_CPPFLAGS=$CPPFLAGS
12586 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12588 save_LDFLAGS=$LDFLAGS
12589 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12591 save_LIBS=$LIBS
12592 LIBS="$lt_cv_dlopen_libs $LIBS"
12594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12595 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12596 if ${lt_cv_dlopen_self+:} false; then :
12597 $as_echo_n "(cached) " >&6
12598 else
12599 if test yes = "$cross_compiling"; then :
12600 lt_cv_dlopen_self=cross
12601 else
12602 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12603 lt_status=$lt_dlunknown
12604 cat > conftest.$ac_ext <<_LT_EOF
12605 #line $LINENO "configure"
12606 #include "confdefs.h"
12608 #if HAVE_DLFCN_H
12609 #include <dlfcn.h>
12610 #endif
12612 #include <stdio.h>
12614 #ifdef RTLD_GLOBAL
12615 # define LT_DLGLOBAL RTLD_GLOBAL
12616 #else
12617 # ifdef DL_GLOBAL
12618 # define LT_DLGLOBAL DL_GLOBAL
12619 # else
12620 # define LT_DLGLOBAL 0
12621 # endif
12622 #endif
12624 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12625 find out it does not work in some platform. */
12626 #ifndef LT_DLLAZY_OR_NOW
12627 # ifdef RTLD_LAZY
12628 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12629 # else
12630 # ifdef DL_LAZY
12631 # define LT_DLLAZY_OR_NOW DL_LAZY
12632 # else
12633 # ifdef RTLD_NOW
12634 # define LT_DLLAZY_OR_NOW RTLD_NOW
12635 # else
12636 # ifdef DL_NOW
12637 # define LT_DLLAZY_OR_NOW DL_NOW
12638 # else
12639 # define LT_DLLAZY_OR_NOW 0
12640 # endif
12641 # endif
12642 # endif
12643 # endif
12644 #endif
12646 /* When -fvisibility=hidden is used, assume the code has been annotated
12647 correspondingly for the symbols needed. */
12648 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12649 int fnord () __attribute__((visibility("default")));
12650 #endif
12652 int fnord () { return 42; }
12653 int main ()
12655 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12656 int status = $lt_dlunknown;
12658 if (self)
12660 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12661 else
12663 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12664 else puts (dlerror ());
12666 /* dlclose (self); */
12668 else
12669 puts (dlerror ());
12671 return status;
12673 _LT_EOF
12674 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12675 (eval $ac_link) 2>&5
12676 ac_status=$?
12677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12678 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12679 (./conftest; exit; ) >&5 2>/dev/null
12680 lt_status=$?
12681 case x$lt_status in
12682 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12683 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12684 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12685 esac
12686 else :
12687 # compilation failed
12688 lt_cv_dlopen_self=no
12691 rm -fr conftest*
12695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12696 $as_echo "$lt_cv_dlopen_self" >&6; }
12698 if test yes = "$lt_cv_dlopen_self"; then
12699 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12701 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12702 if ${lt_cv_dlopen_self_static+:} false; then :
12703 $as_echo_n "(cached) " >&6
12704 else
12705 if test yes = "$cross_compiling"; then :
12706 lt_cv_dlopen_self_static=cross
12707 else
12708 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12709 lt_status=$lt_dlunknown
12710 cat > conftest.$ac_ext <<_LT_EOF
12711 #line $LINENO "configure"
12712 #include "confdefs.h"
12714 #if HAVE_DLFCN_H
12715 #include <dlfcn.h>
12716 #endif
12718 #include <stdio.h>
12720 #ifdef RTLD_GLOBAL
12721 # define LT_DLGLOBAL RTLD_GLOBAL
12722 #else
12723 # ifdef DL_GLOBAL
12724 # define LT_DLGLOBAL DL_GLOBAL
12725 # else
12726 # define LT_DLGLOBAL 0
12727 # endif
12728 #endif
12730 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12731 find out it does not work in some platform. */
12732 #ifndef LT_DLLAZY_OR_NOW
12733 # ifdef RTLD_LAZY
12734 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12735 # else
12736 # ifdef DL_LAZY
12737 # define LT_DLLAZY_OR_NOW DL_LAZY
12738 # else
12739 # ifdef RTLD_NOW
12740 # define LT_DLLAZY_OR_NOW RTLD_NOW
12741 # else
12742 # ifdef DL_NOW
12743 # define LT_DLLAZY_OR_NOW DL_NOW
12744 # else
12745 # define LT_DLLAZY_OR_NOW 0
12746 # endif
12747 # endif
12748 # endif
12749 # endif
12750 #endif
12752 /* When -fvisibility=hidden is used, assume the code has been annotated
12753 correspondingly for the symbols needed. */
12754 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12755 int fnord () __attribute__((visibility("default")));
12756 #endif
12758 int fnord () { return 42; }
12759 int main ()
12761 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12762 int status = $lt_dlunknown;
12764 if (self)
12766 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12767 else
12769 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12770 else puts (dlerror ());
12772 /* dlclose (self); */
12774 else
12775 puts (dlerror ());
12777 return status;
12779 _LT_EOF
12780 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12781 (eval $ac_link) 2>&5
12782 ac_status=$?
12783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12784 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12785 (./conftest; exit; ) >&5 2>/dev/null
12786 lt_status=$?
12787 case x$lt_status in
12788 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12789 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12790 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12791 esac
12792 else :
12793 # compilation failed
12794 lt_cv_dlopen_self_static=no
12797 rm -fr conftest*
12801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12802 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12805 CPPFLAGS=$save_CPPFLAGS
12806 LDFLAGS=$save_LDFLAGS
12807 LIBS=$save_LIBS
12809 esac
12811 case $lt_cv_dlopen_self in
12812 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12813 *) enable_dlopen_self=unknown ;;
12814 esac
12816 case $lt_cv_dlopen_self_static in
12817 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12818 *) enable_dlopen_self_static=unknown ;;
12819 esac
12838 striplib=
12839 old_striplib=
12840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12841 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12842 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12843 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12844 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12846 $as_echo "yes" >&6; }
12847 else
12848 # FIXME - insert some real tests, host_os isn't really good enough
12849 case $host_os in
12850 darwin*)
12851 if test -n "$STRIP"; then
12852 striplib="$STRIP -x"
12853 old_striplib="$STRIP -S"
12854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12855 $as_echo "yes" >&6; }
12856 else
12857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12858 $as_echo "no" >&6; }
12862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12863 $as_echo "no" >&6; }
12865 esac
12879 # Report what library types will actually be built
12880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12881 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12883 $as_echo "$can_build_shared" >&6; }
12885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12886 $as_echo_n "checking whether to build shared libraries... " >&6; }
12887 test no = "$can_build_shared" && enable_shared=no
12889 # On AIX, shared libraries and static libraries use the same namespace, and
12890 # are all built from PIC.
12891 case $host_os in
12892 aix3*)
12893 test yes = "$enable_shared" && enable_static=no
12894 if test -n "$RANLIB"; then
12895 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12896 postinstall_cmds='$RANLIB $lib'
12900 aix[4-9]*)
12901 if test ia64 != "$host_cpu"; then
12902 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12903 yes,aix,yes) ;; # shared object as lib.so file only
12904 yes,svr4,*) ;; # shared object as lib.so archive member only
12905 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12906 esac
12909 esac
12910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12911 $as_echo "$enable_shared" >&6; }
12913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12914 $as_echo_n "checking whether to build static libraries... " >&6; }
12915 # Make sure either enable_shared or enable_static is yes.
12916 test yes = "$enable_shared" || enable_static=yes
12917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12918 $as_echo "$enable_static" >&6; }
12924 ac_ext=c
12925 ac_cpp='$CPP $CPPFLAGS'
12926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12930 CC=$lt_save_CC
12946 ac_config_commands="$ac_config_commands libtool"
12951 # Only expand once:
12956 # Extract the first word of "ar", so it can be a program name with args.
12957 set dummy ar; ac_word=$2
12958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12959 $as_echo_n "checking for $ac_word... " >&6; }
12960 if ${ac_cv_path_AR+:} false; then :
12961 $as_echo_n "(cached) " >&6
12962 else
12963 case $AR in
12964 [\\/]* | ?:[\\/]*)
12965 ac_cv_path_AR="$AR" # Let the user override the test with a path.
12968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12969 for as_dir in $PATH
12971 IFS=$as_save_IFS
12972 test -z "$as_dir" && as_dir=.
12973 for ac_exec_ext in '' $ac_executable_extensions; do
12974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12975 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
12976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12977 break 2
12979 done
12980 done
12981 IFS=$as_save_IFS
12983 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
12985 esac
12987 AR=$ac_cv_path_AR
12988 if test -n "$AR"; then
12989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12990 $as_echo "$AR" >&6; }
12991 else
12992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12993 $as_echo "no" >&6; }
12997 # Extract the first word of "rm", so it can be a program name with args.
12998 set dummy rm; ac_word=$2
12999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13000 $as_echo_n "checking for $ac_word... " >&6; }
13001 if ${ac_cv_path_RM+:} false; then :
13002 $as_echo_n "(cached) " >&6
13003 else
13004 case $RM in
13005 [\\/]* | ?:[\\/]*)
13006 ac_cv_path_RM="$RM" # Let the user override the test with a path.
13009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13010 for as_dir in $PATH
13012 IFS=$as_save_IFS
13013 test -z "$as_dir" && as_dir=.
13014 for ac_exec_ext in '' $ac_executable_extensions; do
13015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13016 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
13017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13018 break 2
13020 done
13021 done
13022 IFS=$as_save_IFS
13024 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
13026 esac
13028 RM=$ac_cv_path_RM
13029 if test -n "$RM"; then
13030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
13031 $as_echo "$RM" >&6; }
13032 else
13033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13034 $as_echo "no" >&6; }
13038 # Extract the first word of "cp", so it can be a program name with args.
13039 set dummy cp; ac_word=$2
13040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13041 $as_echo_n "checking for $ac_word... " >&6; }
13042 if ${ac_cv_path_CP+:} false; then :
13043 $as_echo_n "(cached) " >&6
13044 else
13045 case $CP in
13046 [\\/]* | ?:[\\/]*)
13047 ac_cv_path_CP="$CP" # Let the user override the test with a path.
13050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13051 for as_dir in $PATH
13053 IFS=$as_save_IFS
13054 test -z "$as_dir" && as_dir=.
13055 for ac_exec_ext in '' $ac_executable_extensions; do
13056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13057 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
13058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13059 break 2
13061 done
13062 done
13063 IFS=$as_save_IFS
13065 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
13067 esac
13069 CP=$ac_cv_path_CP
13070 if test -n "$CP"; then
13071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
13072 $as_echo "$CP" >&6; }
13073 else
13074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13075 $as_echo "no" >&6; }
13079 # Extract the first word of "ln", so it can be a program name with args.
13080 set dummy ln; ac_word=$2
13081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13082 $as_echo_n "checking for $ac_word... " >&6; }
13083 if ${ac_cv_path_LN+:} false; then :
13084 $as_echo_n "(cached) " >&6
13085 else
13086 case $LN in
13087 [\\/]* | ?:[\\/]*)
13088 ac_cv_path_LN="$LN" # Let the user override the test with a path.
13091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13092 for as_dir in $PATH
13094 IFS=$as_save_IFS
13095 test -z "$as_dir" && as_dir=.
13096 for ac_exec_ext in '' $ac_executable_extensions; do
13097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13098 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
13099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13100 break 2
13102 done
13103 done
13104 IFS=$as_save_IFS
13106 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
13108 esac
13110 LN=$ac_cv_path_LN
13111 if test -n "$LN"; then
13112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
13113 $as_echo "$LN" >&6; }
13114 else
13115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13116 $as_echo "no" >&6; }
13120 # Extract the first word of "ls", so it can be a program name with args.
13121 set dummy ls; ac_word=$2
13122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13123 $as_echo_n "checking for $ac_word... " >&6; }
13124 if ${ac_cv_path_LS+:} false; then :
13125 $as_echo_n "(cached) " >&6
13126 else
13127 case $LS in
13128 [\\/]* | ?:[\\/]*)
13129 ac_cv_path_LS="$LS" # Let the user override the test with a path.
13132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13133 for as_dir in $PATH
13135 IFS=$as_save_IFS
13136 test -z "$as_dir" && as_dir=.
13137 for ac_exec_ext in '' $ac_executable_extensions; do
13138 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13139 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
13140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13141 break 2
13143 done
13144 done
13145 IFS=$as_save_IFS
13147 test -z "$ac_cv_path_LS" && ac_cv_path_LS="ls"
13149 esac
13151 LS=$ac_cv_path_LS
13152 if test -n "$LS"; then
13153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
13154 $as_echo "$LS" >&6; }
13155 else
13156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13157 $as_echo "no" >&6; }
13161 # Extract the first word of "sed", so it can be a program name with args.
13162 set dummy sed; ac_word=$2
13163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13164 $as_echo_n "checking for $ac_word... " >&6; }
13165 if ${ac_cv_path_SED+:} false; then :
13166 $as_echo_n "(cached) " >&6
13167 else
13168 case $SED in
13169 [\\/]* | ?:[\\/]*)
13170 ac_cv_path_SED="$SED" # Let the user override the test with a path.
13173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13174 for as_dir in $PATH
13176 IFS=$as_save_IFS
13177 test -z "$as_dir" && as_dir=.
13178 for ac_exec_ext in '' $ac_executable_extensions; do
13179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13180 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
13181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13182 break 2
13184 done
13185 done
13186 IFS=$as_save_IFS
13188 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
13190 esac
13192 SED=$ac_cv_path_SED
13193 if test -n "$SED"; then
13194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
13195 $as_echo "$SED" >&6; }
13196 else
13197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13198 $as_echo "no" >&6; }
13202 # Extract the first word of "make", so it can be a program name with args.
13203 set dummy make; ac_word=$2
13204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13205 $as_echo_n "checking for $ac_word... " >&6; }
13206 if ${ac_cv_path_MAKE+:} false; then :
13207 $as_echo_n "(cached) " >&6
13208 else
13209 case $MAKE in
13210 [\\/]* | ?:[\\/]*)
13211 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
13214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13215 for as_dir in $PATH
13217 IFS=$as_save_IFS
13218 test -z "$as_dir" && as_dir=.
13219 for ac_exec_ext in '' $ac_executable_extensions; do
13220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13221 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
13222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13223 break 2
13225 done
13226 done
13227 IFS=$as_save_IFS
13230 esac
13232 MAKE=$ac_cv_path_MAKE
13233 if test -n "$MAKE"; then
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
13235 $as_echo "$MAKE" >&6; }
13236 else
13237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13238 $as_echo "no" >&6; }
13246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13247 $as_echo_n "checking whether NLS is requested... " >&6; }
13248 # Check whether --enable-nls was given.
13249 if test "${enable_nls+set}" = set; then :
13250 enableval=$enable_nls; USE_NLS=$enableval
13251 else
13252 USE_NLS=yes
13255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
13256 $as_echo "$USE_NLS" >&6; }
13263 # Prepare PATH_SEPARATOR.
13264 # The user is always right.
13265 if test "${PATH_SEPARATOR+set}" != set; then
13266 echo "#! /bin/sh" >conf$$.sh
13267 echo "exit 0" >>conf$$.sh
13268 chmod +x conf$$.sh
13269 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13270 PATH_SEPARATOR=';'
13271 else
13272 PATH_SEPARATOR=:
13274 rm -f conf$$.sh
13277 # Find out how to test for executable files. Don't use a zero-byte file,
13278 # as systems may use methods other than mode bits to determine executability.
13279 cat >conf$$.file <<_ASEOF
13280 #! /bin/sh
13281 exit 0
13282 _ASEOF
13283 chmod +x conf$$.file
13284 if test -x conf$$.file >/dev/null 2>&1; then
13285 ac_executable_p="test -x"
13286 else
13287 ac_executable_p="test -f"
13289 rm -f conf$$.file
13291 # Extract the first word of "msgfmt", so it can be a program name with args.
13292 set dummy msgfmt; ac_word=$2
13293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13294 $as_echo_n "checking for $ac_word... " >&6; }
13295 if ${ac_cv_path_MSGFMT+:} false; then :
13296 $as_echo_n "(cached) " >&6
13297 else
13298 case "$MSGFMT" in
13299 [\\/]* | ?:[\\/]*)
13300 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13303 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13304 for ac_dir in $PATH; do
13305 IFS="$ac_save_IFS"
13306 test -z "$ac_dir" && ac_dir=.
13307 for ac_exec_ext in '' $ac_executable_extensions; do
13308 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13309 echo "$as_me: trying $ac_dir/$ac_word..." >&5
13310 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
13311 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13312 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
13313 break 2
13316 done
13317 done
13318 IFS="$ac_save_IFS"
13319 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
13321 esac
13323 MSGFMT="$ac_cv_path_MSGFMT"
13324 if test "$MSGFMT" != ":"; then
13325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
13326 $as_echo "$MSGFMT" >&6; }
13327 else
13328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13329 $as_echo "no" >&6; }
13332 # Extract the first word of "gmsgfmt", so it can be a program name with args.
13333 set dummy gmsgfmt; ac_word=$2
13334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13335 $as_echo_n "checking for $ac_word... " >&6; }
13336 if ${ac_cv_path_GMSGFMT+:} false; then :
13337 $as_echo_n "(cached) " >&6
13338 else
13339 case $GMSGFMT in
13340 [\\/]* | ?:[\\/]*)
13341 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
13344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13345 for as_dir in $PATH
13347 IFS=$as_save_IFS
13348 test -z "$as_dir" && as_dir=.
13349 for ac_exec_ext in '' $ac_executable_extensions; do
13350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13351 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
13352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13353 break 2
13355 done
13356 done
13357 IFS=$as_save_IFS
13359 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
13361 esac
13363 GMSGFMT=$ac_cv_path_GMSGFMT
13364 if test -n "$GMSGFMT"; then
13365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
13366 $as_echo "$GMSGFMT" >&6; }
13367 else
13368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13369 $as_echo "no" >&6; }
13374 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
13375 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
13376 *) MSGFMT_015=$MSGFMT ;;
13377 esac
13379 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
13380 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
13381 *) GMSGFMT_015=$GMSGFMT ;;
13382 esac
13386 # Prepare PATH_SEPARATOR.
13387 # The user is always right.
13388 if test "${PATH_SEPARATOR+set}" != set; then
13389 echo "#! /bin/sh" >conf$$.sh
13390 echo "exit 0" >>conf$$.sh
13391 chmod +x conf$$.sh
13392 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13393 PATH_SEPARATOR=';'
13394 else
13395 PATH_SEPARATOR=:
13397 rm -f conf$$.sh
13400 # Find out how to test for executable files. Don't use a zero-byte file,
13401 # as systems may use methods other than mode bits to determine executability.
13402 cat >conf$$.file <<_ASEOF
13403 #! /bin/sh
13404 exit 0
13405 _ASEOF
13406 chmod +x conf$$.file
13407 if test -x conf$$.file >/dev/null 2>&1; then
13408 ac_executable_p="test -x"
13409 else
13410 ac_executable_p="test -f"
13412 rm -f conf$$.file
13414 # Extract the first word of "xgettext", so it can be a program name with args.
13415 set dummy xgettext; ac_word=$2
13416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13417 $as_echo_n "checking for $ac_word... " >&6; }
13418 if ${ac_cv_path_XGETTEXT+:} false; then :
13419 $as_echo_n "(cached) " >&6
13420 else
13421 case "$XGETTEXT" in
13422 [\\/]* | ?:[\\/]*)
13423 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
13426 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13427 for ac_dir in $PATH; do
13428 IFS="$ac_save_IFS"
13429 test -z "$ac_dir" && ac_dir=.
13430 for ac_exec_ext in '' $ac_executable_extensions; do
13431 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13432 echo "$as_me: trying $ac_dir/$ac_word..." >&5
13433 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
13434 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13435 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
13436 break 2
13439 done
13440 done
13441 IFS="$ac_save_IFS"
13442 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
13444 esac
13446 XGETTEXT="$ac_cv_path_XGETTEXT"
13447 if test "$XGETTEXT" != ":"; then
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
13449 $as_echo "$XGETTEXT" >&6; }
13450 else
13451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13452 $as_echo "no" >&6; }
13455 rm -f messages.po
13457 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
13458 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
13459 *) XGETTEXT_015=$XGETTEXT ;;
13460 esac
13464 # Prepare PATH_SEPARATOR.
13465 # The user is always right.
13466 if test "${PATH_SEPARATOR+set}" != set; then
13467 echo "#! /bin/sh" >conf$$.sh
13468 echo "exit 0" >>conf$$.sh
13469 chmod +x conf$$.sh
13470 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13471 PATH_SEPARATOR=';'
13472 else
13473 PATH_SEPARATOR=:
13475 rm -f conf$$.sh
13478 # Find out how to test for executable files. Don't use a zero-byte file,
13479 # as systems may use methods other than mode bits to determine executability.
13480 cat >conf$$.file <<_ASEOF
13481 #! /bin/sh
13482 exit 0
13483 _ASEOF
13484 chmod +x conf$$.file
13485 if test -x conf$$.file >/dev/null 2>&1; then
13486 ac_executable_p="test -x"
13487 else
13488 ac_executable_p="test -f"
13490 rm -f conf$$.file
13492 # Extract the first word of "msgmerge", so it can be a program name with args.
13493 set dummy msgmerge; ac_word=$2
13494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13495 $as_echo_n "checking for $ac_word... " >&6; }
13496 if ${ac_cv_path_MSGMERGE+:} false; then :
13497 $as_echo_n "(cached) " >&6
13498 else
13499 case "$MSGMERGE" in
13500 [\\/]* | ?:[\\/]*)
13501 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
13504 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13505 for ac_dir in $PATH; do
13506 IFS="$ac_save_IFS"
13507 test -z "$ac_dir" && ac_dir=.
13508 for ac_exec_ext in '' $ac_executable_extensions; do
13509 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13510 echo "$as_me: trying $ac_dir/$ac_word..." >&5
13511 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
13512 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
13513 break 2
13516 done
13517 done
13518 IFS="$ac_save_IFS"
13519 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
13521 esac
13523 MSGMERGE="$ac_cv_path_MSGMERGE"
13524 if test "$MSGMERGE" != ":"; then
13525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
13526 $as_echo "$MSGMERGE" >&6; }
13527 else
13528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13529 $as_echo "no" >&6; }
13533 test -n "$localedir" || localedir='${datadir}/locale'
13536 ac_config_commands="$ac_config_commands po-directories"
13540 if test "X$prefix" = "XNONE"; then
13541 acl_final_prefix="$ac_default_prefix"
13542 else
13543 acl_final_prefix="$prefix"
13545 if test "X$exec_prefix" = "XNONE"; then
13546 acl_final_exec_prefix='${prefix}'
13547 else
13548 acl_final_exec_prefix="$exec_prefix"
13550 acl_save_prefix="$prefix"
13551 prefix="$acl_final_prefix"
13552 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
13553 prefix="$acl_save_prefix"
13556 # Check whether --with-gnu-ld was given.
13557 if test "${with_gnu_ld+set}" = set; then :
13558 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13559 else
13560 with_gnu_ld=no
13563 # Prepare PATH_SEPARATOR.
13564 # The user is always right.
13565 if test "${PATH_SEPARATOR+set}" != set; then
13566 echo "#! /bin/sh" >conf$$.sh
13567 echo "exit 0" >>conf$$.sh
13568 chmod +x conf$$.sh
13569 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13570 PATH_SEPARATOR=';'
13571 else
13572 PATH_SEPARATOR=:
13574 rm -f conf$$.sh
13576 ac_prog=ld
13577 if test "$GCC" = yes; then
13578 # Check if gcc -print-prog-name=ld gives a path.
13579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
13580 $as_echo_n "checking for ld used by GCC... " >&6; }
13581 case $host in
13582 *-*-mingw*)
13583 # gcc leaves a trailing carriage return which upsets mingw
13584 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13586 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13587 esac
13588 case $ac_prog in
13589 # Accept absolute paths.
13590 [\\/]* | [A-Za-z]:[\\/]*)
13591 re_direlt='/[^/][^/]*/\.\./'
13592 # Canonicalize the path of ld
13593 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
13594 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
13595 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
13596 done
13597 test -z "$LD" && LD="$ac_prog"
13600 # If it fails, then pretend we aren't using GCC.
13601 ac_prog=ld
13604 # If it is relative, then search for the first ld in PATH.
13605 with_gnu_ld=unknown
13607 esac
13608 elif test "$with_gnu_ld" = yes; then
13609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13610 $as_echo_n "checking for GNU ld... " >&6; }
13611 else
13612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13613 $as_echo_n "checking for non-GNU ld... " >&6; }
13615 if ${acl_cv_path_LD+:} false; then :
13616 $as_echo_n "(cached) " >&6
13617 else
13618 if test -z "$LD"; then
13619 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
13620 for ac_dir in $PATH; do
13621 test -z "$ac_dir" && ac_dir=.
13622 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13623 acl_cv_path_LD="$ac_dir/$ac_prog"
13624 # Check to see if the program is GNU ld. I'd rather use --version,
13625 # but apparently some GNU ld's only accept -v.
13626 # Break only if it was the GNU/non-GNU ld that we prefer.
13627 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
13628 *GNU* | *'with BFD'*)
13629 test "$with_gnu_ld" != no && break ;;
13631 test "$with_gnu_ld" != yes && break ;;
13632 esac
13634 done
13635 IFS="$ac_save_ifs"
13636 else
13637 acl_cv_path_LD="$LD" # Let the user override the test with a path.
13641 LD="$acl_cv_path_LD"
13642 if test -n "$LD"; then
13643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13644 $as_echo "$LD" >&6; }
13645 else
13646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13647 $as_echo "no" >&6; }
13649 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13651 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13652 if ${acl_cv_prog_gnu_ld+:} false; then :
13653 $as_echo_n "(cached) " >&6
13654 else
13655 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
13656 case `$LD -v 2>&1 </dev/null` in
13657 *GNU* | *'with BFD'*)
13658 acl_cv_prog_gnu_ld=yes ;;
13660 acl_cv_prog_gnu_ld=no ;;
13661 esac
13663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
13664 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
13665 with_gnu_ld=$acl_cv_prog_gnu_ld
13670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
13671 $as_echo_n "checking for shared library run path origin... " >&6; }
13672 if ${acl_cv_rpath+:} false; then :
13673 $as_echo_n "(cached) " >&6
13674 else
13676 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
13677 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
13678 . ./conftest.sh
13679 rm -f ./conftest.sh
13680 acl_cv_rpath=done
13683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
13684 $as_echo "$acl_cv_rpath" >&6; }
13685 wl="$acl_cv_wl"
13686 libext="$acl_cv_libext"
13687 shlibext="$acl_cv_shlibext"
13688 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
13689 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
13690 hardcode_direct="$acl_cv_hardcode_direct"
13691 hardcode_minus_L="$acl_cv_hardcode_minus_L"
13692 # Check whether --enable-rpath was given.
13693 if test "${enable_rpath+set}" = set; then :
13694 enableval=$enable_rpath; :
13695 else
13696 enable_rpath=yes
13701 acl_libdirstem=lib
13702 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
13703 if test -n "$searchpath"; then
13704 acl_save_IFS="${IFS= }"; IFS=":"
13705 for searchdir in $searchpath; do
13706 if test -d "$searchdir"; then
13707 case "$searchdir" in
13708 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
13709 *) searchdir=`cd "$searchdir" && pwd`
13710 case "$searchdir" in
13711 */lib64 ) acl_libdirstem=lib64 ;;
13712 esac ;;
13713 esac
13715 done
13716 IFS="$acl_save_IFS"
13726 use_additional=yes
13728 acl_save_prefix="$prefix"
13729 prefix="$acl_final_prefix"
13730 acl_save_exec_prefix="$exec_prefix"
13731 exec_prefix="$acl_final_exec_prefix"
13733 eval additional_includedir=\"$includedir\"
13734 eval additional_libdir=\"$libdir\"
13736 exec_prefix="$acl_save_exec_prefix"
13737 prefix="$acl_save_prefix"
13740 # Check whether --with-libiconv-prefix was given.
13741 if test "${with_libiconv_prefix+set}" = set; then :
13742 withval=$with_libiconv_prefix;
13743 if test "X$withval" = "Xno"; then
13744 use_additional=no
13745 else
13746 if test "X$withval" = "X"; then
13748 acl_save_prefix="$prefix"
13749 prefix="$acl_final_prefix"
13750 acl_save_exec_prefix="$exec_prefix"
13751 exec_prefix="$acl_final_exec_prefix"
13753 eval additional_includedir=\"$includedir\"
13754 eval additional_libdir=\"$libdir\"
13756 exec_prefix="$acl_save_exec_prefix"
13757 prefix="$acl_save_prefix"
13759 else
13760 additional_includedir="$withval/include"
13761 additional_libdir="$withval/$acl_libdirstem"
13767 LIBICONV=
13768 LTLIBICONV=
13769 INCICONV=
13770 rpathdirs=
13771 ltrpathdirs=
13772 names_already_handled=
13773 names_next_round='iconv '
13774 while test -n "$names_next_round"; do
13775 names_this_round="$names_next_round"
13776 names_next_round=
13777 for name in $names_this_round; do
13778 already_handled=
13779 for n in $names_already_handled; do
13780 if test "$n" = "$name"; then
13781 already_handled=yes
13782 break
13784 done
13785 if test -z "$already_handled"; then
13786 names_already_handled="$names_already_handled $name"
13787 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13788 eval value=\"\$HAVE_LIB$uppername\"
13789 if test -n "$value"; then
13790 if test "$value" = yes; then
13791 eval value=\"\$LIB$uppername\"
13792 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
13793 eval value=\"\$LTLIB$uppername\"
13794 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
13795 else
13798 else
13799 found_dir=
13800 found_la=
13801 found_so=
13802 found_a=
13803 if test $use_additional = yes; then
13804 if test -n "$shlibext" \
13805 && { test -f "$additional_libdir/lib$name.$shlibext" \
13806 || { test "$shlibext" = dll \
13807 && test -f "$additional_libdir/lib$name.dll.a"; }; }; then
13808 found_dir="$additional_libdir"
13809 if test -f "$additional_libdir/lib$name.$shlibext"; then
13810 found_so="$additional_libdir/lib$name.$shlibext"
13811 else
13812 found_so="$additional_libdir/lib$name.dll.a"
13814 if test -f "$additional_libdir/lib$name.la"; then
13815 found_la="$additional_libdir/lib$name.la"
13817 else
13818 if test -f "$additional_libdir/lib$name.$libext"; then
13819 found_dir="$additional_libdir"
13820 found_a="$additional_libdir/lib$name.$libext"
13821 if test -f "$additional_libdir/lib$name.la"; then
13822 found_la="$additional_libdir/lib$name.la"
13827 if test "X$found_dir" = "X"; then
13828 for x in $LDFLAGS $LTLIBICONV; do
13830 acl_save_prefix="$prefix"
13831 prefix="$acl_final_prefix"
13832 acl_save_exec_prefix="$exec_prefix"
13833 exec_prefix="$acl_final_exec_prefix"
13834 eval x=\"$x\"
13835 exec_prefix="$acl_save_exec_prefix"
13836 prefix="$acl_save_prefix"
13838 case "$x" in
13839 -L*)
13840 dir=`echo "X$x" | sed -e 's/^X-L//'`
13841 if test -n "$shlibext" \
13842 && { test -f "$dir/lib$name.$shlibext" \
13843 || { test "$shlibext" = dll \
13844 && test -f "$dir/lib$name.dll.a"; }; }; then
13845 found_dir="$dir"
13846 if test -f "$dir/lib$name.$shlibext"; then
13847 found_so="$dir/lib$name.$shlibext"
13848 else
13849 found_so="$dir/lib$name.dll.a"
13851 if test -f "$dir/lib$name.la"; then
13852 found_la="$dir/lib$name.la"
13854 else
13855 if test -f "$dir/lib$name.$libext"; then
13856 found_dir="$dir"
13857 found_a="$dir/lib$name.$libext"
13858 if test -f "$dir/lib$name.la"; then
13859 found_la="$dir/lib$name.la"
13864 esac
13865 if test "X$found_dir" != "X"; then
13866 break
13868 done
13870 if test "X$found_dir" != "X"; then
13871 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
13872 if test "X$found_so" != "X"; then
13873 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
13874 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13875 else
13876 haveit=
13877 for x in $ltrpathdirs; do
13878 if test "X$x" = "X$found_dir"; then
13879 haveit=yes
13880 break
13882 done
13883 if test -z "$haveit"; then
13884 ltrpathdirs="$ltrpathdirs $found_dir"
13886 if test "$hardcode_direct" = yes; then
13887 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13888 else
13889 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
13890 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13891 haveit=
13892 for x in $rpathdirs; do
13893 if test "X$x" = "X$found_dir"; then
13894 haveit=yes
13895 break
13897 done
13898 if test -z "$haveit"; then
13899 rpathdirs="$rpathdirs $found_dir"
13901 else
13902 haveit=
13903 for x in $LDFLAGS $LIBICONV; do
13905 acl_save_prefix="$prefix"
13906 prefix="$acl_final_prefix"
13907 acl_save_exec_prefix="$exec_prefix"
13908 exec_prefix="$acl_final_exec_prefix"
13909 eval x=\"$x\"
13910 exec_prefix="$acl_save_exec_prefix"
13911 prefix="$acl_save_prefix"
13913 if test "X$x" = "X-L$found_dir"; then
13914 haveit=yes
13915 break
13917 done
13918 if test -z "$haveit"; then
13919 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
13921 if test "$hardcode_minus_L" != no; then
13922 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13923 else
13924 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13929 else
13930 if test "X$found_a" != "X"; then
13931 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
13932 else
13933 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
13936 additional_includedir=
13937 case "$found_dir" in
13938 */$acl_libdirstem | */$acl_libdirstem/)
13939 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
13940 additional_includedir="$basedir/include"
13942 esac
13943 if test "X$additional_includedir" != "X"; then
13944 if test "X$additional_includedir" != "X/usr/include"; then
13945 haveit=
13946 if test "X$additional_includedir" = "X/usr/local/include"; then
13947 if test -n "$GCC"; then
13948 case $host_os in
13949 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13950 esac
13953 if test -z "$haveit"; then
13954 for x in $CPPFLAGS $INCICONV; do
13956 acl_save_prefix="$prefix"
13957 prefix="$acl_final_prefix"
13958 acl_save_exec_prefix="$exec_prefix"
13959 exec_prefix="$acl_final_exec_prefix"
13960 eval x=\"$x\"
13961 exec_prefix="$acl_save_exec_prefix"
13962 prefix="$acl_save_prefix"
13964 if test "X$x" = "X-I$additional_includedir"; then
13965 haveit=yes
13966 break
13968 done
13969 if test -z "$haveit"; then
13970 if test -d "$additional_includedir"; then
13971 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
13977 if test -n "$found_la"; then
13978 save_libdir="$libdir"
13979 case "$found_la" in
13980 */* | *\\*) . "$found_la" ;;
13981 *) . "./$found_la" ;;
13982 esac
13983 libdir="$save_libdir"
13984 for dep in $dependency_libs; do
13985 case "$dep" in
13986 -L*)
13987 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13988 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
13989 haveit=
13990 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
13991 if test -n "$GCC"; then
13992 case $host_os in
13993 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13994 esac
13997 if test -z "$haveit"; then
13998 haveit=
13999 for x in $LDFLAGS $LIBICONV; do
14001 acl_save_prefix="$prefix"
14002 prefix="$acl_final_prefix"
14003 acl_save_exec_prefix="$exec_prefix"
14004 exec_prefix="$acl_final_exec_prefix"
14005 eval x=\"$x\"
14006 exec_prefix="$acl_save_exec_prefix"
14007 prefix="$acl_save_prefix"
14009 if test "X$x" = "X-L$additional_libdir"; then
14010 haveit=yes
14011 break
14013 done
14014 if test -z "$haveit"; then
14015 if test -d "$additional_libdir"; then
14016 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
14019 haveit=
14020 for x in $LDFLAGS $LTLIBICONV; do
14022 acl_save_prefix="$prefix"
14023 prefix="$acl_final_prefix"
14024 acl_save_exec_prefix="$exec_prefix"
14025 exec_prefix="$acl_final_exec_prefix"
14026 eval x=\"$x\"
14027 exec_prefix="$acl_save_exec_prefix"
14028 prefix="$acl_save_prefix"
14030 if test "X$x" = "X-L$additional_libdir"; then
14031 haveit=yes
14032 break
14034 done
14035 if test -z "$haveit"; then
14036 if test -d "$additional_libdir"; then
14037 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
14043 -R*)
14044 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14045 if test "$enable_rpath" != no; then
14046 haveit=
14047 for x in $rpathdirs; do
14048 if test "X$x" = "X$dir"; then
14049 haveit=yes
14050 break
14052 done
14053 if test -z "$haveit"; then
14054 rpathdirs="$rpathdirs $dir"
14056 haveit=
14057 for x in $ltrpathdirs; do
14058 if test "X$x" = "X$dir"; then
14059 haveit=yes
14060 break
14062 done
14063 if test -z "$haveit"; then
14064 ltrpathdirs="$ltrpathdirs $dir"
14068 -l*)
14069 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14071 *.la)
14072 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14075 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
14076 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
14078 esac
14079 done
14081 else
14082 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14083 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
14087 done
14088 done
14089 if test "X$rpathdirs" != "X"; then
14090 if test -n "$hardcode_libdir_separator"; then
14091 alldirs=
14092 for found_dir in $rpathdirs; do
14093 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14094 done
14095 acl_save_libdir="$libdir"
14096 libdir="$alldirs"
14097 eval flag=\"$hardcode_libdir_flag_spec\"
14098 libdir="$acl_save_libdir"
14099 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14100 else
14101 for found_dir in $rpathdirs; do
14102 acl_save_libdir="$libdir"
14103 libdir="$found_dir"
14104 eval flag=\"$hardcode_libdir_flag_spec\"
14105 libdir="$acl_save_libdir"
14106 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14107 done
14110 if test "X$ltrpathdirs" != "X"; then
14111 for found_dir in $ltrpathdirs; do
14112 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
14113 done
14140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
14141 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
14142 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
14143 $as_echo_n "(cached) " >&6
14144 else
14145 gt_save_LIBS="$LIBS"
14146 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
14147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14148 /* end confdefs.h. */
14149 #include <CoreFoundation/CFPreferences.h>
14151 main ()
14153 CFPreferencesCopyAppValue(NULL, NULL)
14155 return 0;
14157 _ACEOF
14158 if ac_fn_c_try_link "$LINENO"; then :
14159 gt_cv_func_CFPreferencesCopyAppValue=yes
14160 else
14161 gt_cv_func_CFPreferencesCopyAppValue=no
14163 rm -f core conftest.err conftest.$ac_objext \
14164 conftest$ac_exeext conftest.$ac_ext
14165 LIBS="$gt_save_LIBS"
14167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
14168 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
14169 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
14171 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
14174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
14175 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
14176 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
14177 $as_echo_n "(cached) " >&6
14178 else
14179 gt_save_LIBS="$LIBS"
14180 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
14181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14182 /* end confdefs.h. */
14183 #include <CoreFoundation/CFLocale.h>
14185 main ()
14187 CFLocaleCopyCurrent();
14189 return 0;
14191 _ACEOF
14192 if ac_fn_c_try_link "$LINENO"; then :
14193 gt_cv_func_CFLocaleCopyCurrent=yes
14194 else
14195 gt_cv_func_CFLocaleCopyCurrent=no
14197 rm -f core conftest.err conftest.$ac_objext \
14198 conftest$ac_exeext conftest.$ac_ext
14199 LIBS="$gt_save_LIBS"
14201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
14202 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
14203 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
14205 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
14208 INTL_MACOSX_LIBS=
14209 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
14210 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
14218 LIBINTL=
14219 LTLIBINTL=
14220 POSUB=
14222 case " $gt_needs " in
14223 *" need-formatstring-macros "*) gt_api_version=3 ;;
14224 *" need-ngettext "*) gt_api_version=2 ;;
14225 *) gt_api_version=1 ;;
14226 esac
14227 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
14228 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
14230 if test "$USE_NLS" = "yes"; then
14231 gt_use_preinstalled_gnugettext=no
14234 if test $gt_api_version -ge 3; then
14235 gt_revision_test_code='
14236 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
14237 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
14238 #endif
14239 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
14241 else
14242 gt_revision_test_code=
14244 if test $gt_api_version -ge 2; then
14245 gt_expression_test_code=' + * ngettext ("", "", 0)'
14246 else
14247 gt_expression_test_code=
14250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
14251 $as_echo_n "checking for GNU gettext in libc... " >&6; }
14252 if eval \${$gt_func_gnugettext_libc+:} false; then :
14253 $as_echo_n "(cached) " >&6
14254 else
14255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14256 /* end confdefs.h. */
14257 #include <libintl.h>
14258 $gt_revision_test_code
14259 extern int _nl_msg_cat_cntr;
14260 extern int *_nl_domain_bindings;
14262 main ()
14264 bindtextdomain ("", "");
14265 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
14267 return 0;
14269 _ACEOF
14270 if ac_fn_c_try_link "$LINENO"; then :
14271 eval "$gt_func_gnugettext_libc=yes"
14272 else
14273 eval "$gt_func_gnugettext_libc=no"
14275 rm -f core conftest.err conftest.$ac_objext \
14276 conftest$ac_exeext conftest.$ac_ext
14278 eval ac_res=\$$gt_func_gnugettext_libc
14279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14280 $as_echo "$ac_res" >&6; }
14282 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
14288 am_save_CPPFLAGS="$CPPFLAGS"
14290 for element in $INCICONV; do
14291 haveit=
14292 for x in $CPPFLAGS; do
14294 acl_save_prefix="$prefix"
14295 prefix="$acl_final_prefix"
14296 acl_save_exec_prefix="$exec_prefix"
14297 exec_prefix="$acl_final_exec_prefix"
14298 eval x=\"$x\"
14299 exec_prefix="$acl_save_exec_prefix"
14300 prefix="$acl_save_prefix"
14302 if test "X$x" = "X$element"; then
14303 haveit=yes
14304 break
14306 done
14307 if test -z "$haveit"; then
14308 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14310 done
14313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
14314 $as_echo_n "checking for iconv... " >&6; }
14315 if ${am_cv_func_iconv+:} false; then :
14316 $as_echo_n "(cached) " >&6
14317 else
14319 am_cv_func_iconv="no, consider installing GNU libiconv"
14320 am_cv_lib_iconv=no
14321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14322 /* end confdefs.h. */
14323 #include <stdlib.h>
14324 #include <iconv.h>
14326 main ()
14328 iconv_t cd = iconv_open("","");
14329 iconv(cd,NULL,NULL,NULL,NULL);
14330 iconv_close(cd);
14332 return 0;
14334 _ACEOF
14335 if ac_fn_c_try_link "$LINENO"; then :
14336 am_cv_func_iconv=yes
14338 rm -f core conftest.err conftest.$ac_objext \
14339 conftest$ac_exeext conftest.$ac_ext
14340 if test "$am_cv_func_iconv" != yes; then
14341 am_save_LIBS="$LIBS"
14342 LIBS="$LIBS $LIBICONV"
14343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14344 /* end confdefs.h. */
14345 #include <stdlib.h>
14346 #include <iconv.h>
14348 main ()
14350 iconv_t cd = iconv_open("","");
14351 iconv(cd,NULL,NULL,NULL,NULL);
14352 iconv_close(cd);
14354 return 0;
14356 _ACEOF
14357 if ac_fn_c_try_link "$LINENO"; then :
14358 am_cv_lib_iconv=yes
14359 am_cv_func_iconv=yes
14361 rm -f core conftest.err conftest.$ac_objext \
14362 conftest$ac_exeext conftest.$ac_ext
14363 LIBS="$am_save_LIBS"
14367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
14368 $as_echo "$am_cv_func_iconv" >&6; }
14369 if test "$am_cv_func_iconv" = yes; then
14371 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
14374 if test "$am_cv_lib_iconv" = yes; then
14375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
14376 $as_echo_n "checking how to link with libiconv... " >&6; }
14377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
14378 $as_echo "$LIBICONV" >&6; }
14379 else
14380 CPPFLAGS="$am_save_CPPFLAGS"
14381 LIBICONV=
14382 LTLIBICONV=
14391 use_additional=yes
14393 acl_save_prefix="$prefix"
14394 prefix="$acl_final_prefix"
14395 acl_save_exec_prefix="$exec_prefix"
14396 exec_prefix="$acl_final_exec_prefix"
14398 eval additional_includedir=\"$includedir\"
14399 eval additional_libdir=\"$libdir\"
14401 exec_prefix="$acl_save_exec_prefix"
14402 prefix="$acl_save_prefix"
14405 # Check whether --with-libintl-prefix was given.
14406 if test "${with_libintl_prefix+set}" = set; then :
14407 withval=$with_libintl_prefix;
14408 if test "X$withval" = "Xno"; then
14409 use_additional=no
14410 else
14411 if test "X$withval" = "X"; then
14413 acl_save_prefix="$prefix"
14414 prefix="$acl_final_prefix"
14415 acl_save_exec_prefix="$exec_prefix"
14416 exec_prefix="$acl_final_exec_prefix"
14418 eval additional_includedir=\"$includedir\"
14419 eval additional_libdir=\"$libdir\"
14421 exec_prefix="$acl_save_exec_prefix"
14422 prefix="$acl_save_prefix"
14424 else
14425 additional_includedir="$withval/include"
14426 additional_libdir="$withval/$acl_libdirstem"
14432 LIBINTL=
14433 LTLIBINTL=
14434 INCINTL=
14435 rpathdirs=
14436 ltrpathdirs=
14437 names_already_handled=
14438 names_next_round='intl '
14439 while test -n "$names_next_round"; do
14440 names_this_round="$names_next_round"
14441 names_next_round=
14442 for name in $names_this_round; do
14443 already_handled=
14444 for n in $names_already_handled; do
14445 if test "$n" = "$name"; then
14446 already_handled=yes
14447 break
14449 done
14450 if test -z "$already_handled"; then
14451 names_already_handled="$names_already_handled $name"
14452 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14453 eval value=\"\$HAVE_LIB$uppername\"
14454 if test -n "$value"; then
14455 if test "$value" = yes; then
14456 eval value=\"\$LIB$uppername\"
14457 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
14458 eval value=\"\$LTLIB$uppername\"
14459 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
14460 else
14463 else
14464 found_dir=
14465 found_la=
14466 found_so=
14467 found_a=
14468 if test $use_additional = yes; then
14469 if test -n "$shlibext" \
14470 && { test -f "$additional_libdir/lib$name.$shlibext" \
14471 || { test "$shlibext" = dll \
14472 && test -f "$additional_libdir/lib$name.dll.a"; }; }; then
14473 found_dir="$additional_libdir"
14474 if test -f "$additional_libdir/lib$name.$shlibext"; then
14475 found_so="$additional_libdir/lib$name.$shlibext"
14476 else
14477 found_so="$additional_libdir/lib$name.dll.a"
14479 if test -f "$additional_libdir/lib$name.la"; then
14480 found_la="$additional_libdir/lib$name.la"
14482 else
14483 if test -f "$additional_libdir/lib$name.$libext"; then
14484 found_dir="$additional_libdir"
14485 found_a="$additional_libdir/lib$name.$libext"
14486 if test -f "$additional_libdir/lib$name.la"; then
14487 found_la="$additional_libdir/lib$name.la"
14492 if test "X$found_dir" = "X"; then
14493 for x in $LDFLAGS $LTLIBINTL; do
14495 acl_save_prefix="$prefix"
14496 prefix="$acl_final_prefix"
14497 acl_save_exec_prefix="$exec_prefix"
14498 exec_prefix="$acl_final_exec_prefix"
14499 eval x=\"$x\"
14500 exec_prefix="$acl_save_exec_prefix"
14501 prefix="$acl_save_prefix"
14503 case "$x" in
14504 -L*)
14505 dir=`echo "X$x" | sed -e 's/^X-L//'`
14506 if test -n "$shlibext" \
14507 && { test -f "$dir/lib$name.$shlibext" \
14508 || { test "$shlibext" = dll \
14509 && test -f "$dir/lib$name.dll.a"; }; }; then
14510 found_dir="$dir"
14511 if test -f "$dir/lib$name.$shlibext"; then
14512 found_so="$dir/lib$name.$shlibext"
14513 else
14514 found_so="$dir/lib$name.dll.a"
14516 if test -f "$dir/lib$name.la"; then
14517 found_la="$dir/lib$name.la"
14519 else
14520 if test -f "$dir/lib$name.$libext"; then
14521 found_dir="$dir"
14522 found_a="$dir/lib$name.$libext"
14523 if test -f "$dir/lib$name.la"; then
14524 found_la="$dir/lib$name.la"
14529 esac
14530 if test "X$found_dir" != "X"; then
14531 break
14533 done
14535 if test "X$found_dir" != "X"; then
14536 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
14537 if test "X$found_so" != "X"; then
14538 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
14539 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14540 else
14541 haveit=
14542 for x in $ltrpathdirs; do
14543 if test "X$x" = "X$found_dir"; then
14544 haveit=yes
14545 break
14547 done
14548 if test -z "$haveit"; then
14549 ltrpathdirs="$ltrpathdirs $found_dir"
14551 if test "$hardcode_direct" = yes; then
14552 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14553 else
14554 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
14555 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14556 haveit=
14557 for x in $rpathdirs; do
14558 if test "X$x" = "X$found_dir"; then
14559 haveit=yes
14560 break
14562 done
14563 if test -z "$haveit"; then
14564 rpathdirs="$rpathdirs $found_dir"
14566 else
14567 haveit=
14568 for x in $LDFLAGS $LIBINTL; do
14570 acl_save_prefix="$prefix"
14571 prefix="$acl_final_prefix"
14572 acl_save_exec_prefix="$exec_prefix"
14573 exec_prefix="$acl_final_exec_prefix"
14574 eval x=\"$x\"
14575 exec_prefix="$acl_save_exec_prefix"
14576 prefix="$acl_save_prefix"
14578 if test "X$x" = "X-L$found_dir"; then
14579 haveit=yes
14580 break
14582 done
14583 if test -z "$haveit"; then
14584 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
14586 if test "$hardcode_minus_L" != no; then
14587 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14588 else
14589 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14594 else
14595 if test "X$found_a" != "X"; then
14596 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
14597 else
14598 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
14601 additional_includedir=
14602 case "$found_dir" in
14603 */$acl_libdirstem | */$acl_libdirstem/)
14604 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
14605 additional_includedir="$basedir/include"
14607 esac
14608 if test "X$additional_includedir" != "X"; then
14609 if test "X$additional_includedir" != "X/usr/include"; then
14610 haveit=
14611 if test "X$additional_includedir" = "X/usr/local/include"; then
14612 if test -n "$GCC"; then
14613 case $host_os in
14614 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14615 esac
14618 if test -z "$haveit"; then
14619 for x in $CPPFLAGS $INCINTL; do
14621 acl_save_prefix="$prefix"
14622 prefix="$acl_final_prefix"
14623 acl_save_exec_prefix="$exec_prefix"
14624 exec_prefix="$acl_final_exec_prefix"
14625 eval x=\"$x\"
14626 exec_prefix="$acl_save_exec_prefix"
14627 prefix="$acl_save_prefix"
14629 if test "X$x" = "X-I$additional_includedir"; then
14630 haveit=yes
14631 break
14633 done
14634 if test -z "$haveit"; then
14635 if test -d "$additional_includedir"; then
14636 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
14642 if test -n "$found_la"; then
14643 save_libdir="$libdir"
14644 case "$found_la" in
14645 */* | *\\*) . "$found_la" ;;
14646 *) . "./$found_la" ;;
14647 esac
14648 libdir="$save_libdir"
14649 for dep in $dependency_libs; do
14650 case "$dep" in
14651 -L*)
14652 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14653 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
14654 haveit=
14655 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
14656 if test -n "$GCC"; then
14657 case $host_os in
14658 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14659 esac
14662 if test -z "$haveit"; then
14663 haveit=
14664 for x in $LDFLAGS $LIBINTL; do
14666 acl_save_prefix="$prefix"
14667 prefix="$acl_final_prefix"
14668 acl_save_exec_prefix="$exec_prefix"
14669 exec_prefix="$acl_final_exec_prefix"
14670 eval x=\"$x\"
14671 exec_prefix="$acl_save_exec_prefix"
14672 prefix="$acl_save_prefix"
14674 if test "X$x" = "X-L$additional_libdir"; then
14675 haveit=yes
14676 break
14678 done
14679 if test -z "$haveit"; then
14680 if test -d "$additional_libdir"; then
14681 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
14684 haveit=
14685 for x in $LDFLAGS $LTLIBINTL; do
14687 acl_save_prefix="$prefix"
14688 prefix="$acl_final_prefix"
14689 acl_save_exec_prefix="$exec_prefix"
14690 exec_prefix="$acl_final_exec_prefix"
14691 eval x=\"$x\"
14692 exec_prefix="$acl_save_exec_prefix"
14693 prefix="$acl_save_prefix"
14695 if test "X$x" = "X-L$additional_libdir"; then
14696 haveit=yes
14697 break
14699 done
14700 if test -z "$haveit"; then
14701 if test -d "$additional_libdir"; then
14702 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
14708 -R*)
14709 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14710 if test "$enable_rpath" != no; then
14711 haveit=
14712 for x in $rpathdirs; do
14713 if test "X$x" = "X$dir"; then
14714 haveit=yes
14715 break
14717 done
14718 if test -z "$haveit"; then
14719 rpathdirs="$rpathdirs $dir"
14721 haveit=
14722 for x in $ltrpathdirs; do
14723 if test "X$x" = "X$dir"; then
14724 haveit=yes
14725 break
14727 done
14728 if test -z "$haveit"; then
14729 ltrpathdirs="$ltrpathdirs $dir"
14733 -l*)
14734 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14736 *.la)
14737 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14740 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
14741 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
14743 esac
14744 done
14746 else
14747 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14748 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
14752 done
14753 done
14754 if test "X$rpathdirs" != "X"; then
14755 if test -n "$hardcode_libdir_separator"; then
14756 alldirs=
14757 for found_dir in $rpathdirs; do
14758 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14759 done
14760 acl_save_libdir="$libdir"
14761 libdir="$alldirs"
14762 eval flag=\"$hardcode_libdir_flag_spec\"
14763 libdir="$acl_save_libdir"
14764 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14765 else
14766 for found_dir in $rpathdirs; do
14767 acl_save_libdir="$libdir"
14768 libdir="$found_dir"
14769 eval flag=\"$hardcode_libdir_flag_spec\"
14770 libdir="$acl_save_libdir"
14771 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14772 done
14775 if test "X$ltrpathdirs" != "X"; then
14776 for found_dir in $ltrpathdirs; do
14777 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
14778 done
14781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
14782 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
14783 if eval \${$gt_func_gnugettext_libintl+:} false; then :
14784 $as_echo_n "(cached) " >&6
14785 else
14786 gt_save_CPPFLAGS="$CPPFLAGS"
14787 CPPFLAGS="$CPPFLAGS $INCINTL"
14788 gt_save_LIBS="$LIBS"
14789 LIBS="$LIBS $LIBINTL"
14790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14791 /* end confdefs.h. */
14792 #include <libintl.h>
14793 $gt_revision_test_code
14794 extern int _nl_msg_cat_cntr;
14795 extern
14796 #ifdef __cplusplus
14798 #endif
14799 const char *_nl_expand_alias (const char *);
14801 main ()
14803 bindtextdomain ("", "");
14804 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
14806 return 0;
14808 _ACEOF
14809 if ac_fn_c_try_link "$LINENO"; then :
14810 eval "$gt_func_gnugettext_libintl=yes"
14811 else
14812 eval "$gt_func_gnugettext_libintl=no"
14814 rm -f core conftest.err conftest.$ac_objext \
14815 conftest$ac_exeext conftest.$ac_ext
14816 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
14817 LIBS="$LIBS $LIBICONV"
14818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14819 /* end confdefs.h. */
14820 #include <libintl.h>
14821 $gt_revision_test_code
14822 extern int _nl_msg_cat_cntr;
14823 extern
14824 #ifdef __cplusplus
14826 #endif
14827 const char *_nl_expand_alias (const char *);
14829 main ()
14831 bindtextdomain ("", "");
14832 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
14834 return 0;
14836 _ACEOF
14837 if ac_fn_c_try_link "$LINENO"; then :
14838 LIBINTL="$LIBINTL $LIBICONV"
14839 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
14840 eval "$gt_func_gnugettext_libintl=yes"
14843 rm -f core conftest.err conftest.$ac_objext \
14844 conftest$ac_exeext conftest.$ac_ext
14846 CPPFLAGS="$gt_save_CPPFLAGS"
14847 LIBS="$gt_save_LIBS"
14849 eval ac_res=\$$gt_func_gnugettext_libintl
14850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14851 $as_echo "$ac_res" >&6; }
14854 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
14855 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
14856 && test "$PACKAGE" != gettext-runtime \
14857 && test "$PACKAGE" != gettext-tools; }; then
14858 gt_use_preinstalled_gnugettext=yes
14859 else
14860 LIBINTL=
14861 LTLIBINTL=
14862 INCINTL=
14867 if test -n "$INTL_MACOSX_LIBS"; then
14868 if test "$gt_use_preinstalled_gnugettext" = "yes" \
14869 || test "$nls_cv_use_gnu_gettext" = "yes"; then
14870 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
14871 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
14875 if test "$gt_use_preinstalled_gnugettext" = "yes" \
14876 || test "$nls_cv_use_gnu_gettext" = "yes"; then
14878 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
14880 else
14881 USE_NLS=no
14885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
14886 $as_echo_n "checking whether to use NLS... " >&6; }
14887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
14888 $as_echo "$USE_NLS" >&6; }
14889 if test "$USE_NLS" = "yes"; then
14890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
14891 $as_echo_n "checking where the gettext function comes from... " >&6; }
14892 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14893 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
14894 gt_source="external libintl"
14895 else
14896 gt_source="libc"
14898 else
14899 gt_source="included intl directory"
14901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
14902 $as_echo "$gt_source" >&6; }
14905 if test "$USE_NLS" = "yes"; then
14907 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14908 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
14909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
14910 $as_echo_n "checking how to link with libintl... " >&6; }
14911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
14912 $as_echo "$LIBINTL" >&6; }
14914 for element in $INCINTL; do
14915 haveit=
14916 for x in $CPPFLAGS; do
14918 acl_save_prefix="$prefix"
14919 prefix="$acl_final_prefix"
14920 acl_save_exec_prefix="$exec_prefix"
14921 exec_prefix="$acl_final_exec_prefix"
14922 eval x=\"$x\"
14923 exec_prefix="$acl_save_exec_prefix"
14924 prefix="$acl_save_prefix"
14926 if test "X$x" = "X$element"; then
14927 haveit=yes
14928 break
14930 done
14931 if test -z "$haveit"; then
14932 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14934 done
14939 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
14942 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
14946 POSUB=po
14951 INTLLIBS="$LIBINTL"
14959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: dmalloc enabled" >&5
14960 $as_echo_n "checking option: dmalloc enabled... " >&6; }
14961 # Check whether --enable-dmalloc was given.
14962 if test "${enable_dmalloc+set}" = set; then :
14963 enableval=$enable_dmalloc;
14966 if test x$enable_dmalloc = "xyes" ; then
14967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14968 $as_echo "yes" >&6; }
14969 else
14970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14971 $as_echo "no" >&6; }
14975 # Check whether --with-dmalloc-dir was given.
14976 if test "${with_dmalloc_dir+set}" = set; then :
14977 withval=$with_dmalloc_dir;
14978 if test "x$withval" != "xno" ; then
14979 enable_dmalloc = "yes"
14980 CPPFLAGS="$CPPFLAGS -I${withval}"
14981 LDFLAGS="$LDFLAGS -L${withval}"
14987 if test x$enable_dmalloc = "xyes" ; then
14989 $as_echo "#define ENABLE_DMALLOC 1" >>confdefs.h
14993 ALPINE_datestamp=`date`
14995 # Check whether --with-date-stamp was given.
14996 if test "${with_date_stamp+set}" = set; then :
14997 withval=$with_date_stamp;
14998 if test "x$withval" != "xno" ; then
14999 ALPINE_datestamp=$withval
15004 ALPINE_DATESTAMP=$ALPINE_datestamp
15007 ALPINE_hoststamp=`hostname`
15009 # Check whether --with-host-stamp was given.
15010 if test "${with_host_stamp+set}" = set; then :
15011 withval=$with_host_stamp;
15012 if test "x$withval" != "xno" ; then
15013 ALPINE_hoststamp="$withval"
15018 ALPINE_HOSTSTAMP=$ALPINE_hoststamp
15021 case $host in
15022 *apple-darwin*)
15023 if test -d /opt/local ; then
15024 localedir="/opt/local/share/locale"
15025 else
15026 localedir="\${datadir}/locale"
15029 *-*-cygwin)
15030 localedir="/usr/share"
15033 localedir="\${datadir}/locale"
15035 esac
15038 # Check whether --with-localedir was given.
15039 if test "${with_localedir+set}" = set; then :
15040 withval=$with_localedir;
15041 case $withval in
15042 yes)
15047 localedir=$withval
15049 esac
15053 localedir="$localedir"
15056 # Setup OS-Specific features
15057 case "$host" in
15058 *darwin*)
15059 # Check whether --enable-osx-universal-binaries was given.
15060 if test "${enable_osx_universal_binaries+set}" = set; then :
15061 enableval=$enable_osx_universal_binaries;
15064 if test "x$enable_osx_universal_binaries" = "xyes" ; then
15065 if test "x$enable_dependency_tracking" != xno ; then
15066 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
15067 Please re-run configure with these options:
15068 --disable-dependency-tracking --enable-osx-universal-binary" "$LINENO" 5
15070 if test -d /Developer/SDKs/MacOSX10.5.sdk ; then
15071 alpine_sysroot=/Developer/SDKs/MacOSX10.5.sdk
15072 elif test -d /Developer/SDKs/MacOSX10.4u.sdk ; then
15073 alpine_sysroot=/Developer/SDKs/MacOSX10.4u.sdk
15074 else
15075 as_fn_error $? "No suitable MacOSX SDK found. Make sure Xcode tools are installed" "$LINENO" 5
15077 ub_cflags="-isysroot $alpine_sysroot -arch ppc -arch i386"
15078 ub_ldflags="-Wl,-syslibroot,$alpine_sysroot -arch ppc -arch i386"
15079 AM_CFLAGS="$AM_CFLAGS $ub_cflags"
15080 AM_LDFLAGS="$AM_LDFLAGS $ub_ldflags"
15081 alpine_c_client_cflags="$alpine_c_client_cflags $ub_cflags"
15082 alpine_c_client_ldflags="$alpine_c_client_ldflags $ub_ldflags"
15085 esac
15088 # Check whether --with-include-path was given.
15089 if test "${with_include_path+set}" = set; then :
15090 withval=$with_include_path;
15091 case $withval in
15094 yes)
15097 new_cppflags="-I`echo ${withval} | ${SED} 's/:/ -I/g'`"
15098 CPPFLAGS="$CPPFLAGS ${new_cppflags}"
15099 alpine_c_client_cflags="$alpine_c_client_cflags ${new_cppflags}"
15101 esac
15107 # Check whether --with-lib-path was given.
15108 if test "${with_lib_path+set}" = set; then :
15109 withval=$with_lib_path;
15110 case $withval in
15113 yes)
15116 new_ldflags="-L`echo ${withval} | ${SED} 's/:/ -L/g'`"
15117 LDFLAGS="$LDFLAGS $new_ldflags"
15118 alpine_c_client_ldflags="$alpine_c_client_ldflags ${new_ldflags}"
15120 esac
15126 # Check whether --with-pubcookie was given.
15127 if test "${with_pubcookie+set}" = set; then :
15128 withval=$with_pubcookie;
15129 if test "x$withval" != "xno" ; then
15130 WEB_PUBCOOKIE_BUILD=web/src/pubcookie
15138 # Check whether --with-web-bin was given.
15139 if test "${with_web_bin+set}" = set; then :
15140 withval=$with_web_bin;
15141 case "$withval" in
15144 yes)
15147 WEB_BINDIR=$withval
15149 esac
15154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: debugging is enabled" >&5
15155 $as_echo_n "checking option: debugging is enabled... " >&6; }
15156 # Check whether --enable-debug was given.
15157 if test "${enable_debug+set}" = set; then :
15158 enableval=$enable_debug;
15161 if test x$enable_debug != "xno" ; then
15162 AM_CFLAGS="$AM_CFLAGS -g"
15163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15164 $as_echo "yes" >&6; }
15165 else
15166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15167 $as_echo "no" >&6; }
15170 $as_echo "#define DEBUG 1" >>confdefs.h
15173 $as_echo "#define DEBUGJOURNAL 1" >>confdefs.h
15177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: optimization is enabled" >&5
15178 $as_echo_n "checking option: optimization is enabled... " >&6; }
15179 # Check whether --enable-optimization was given.
15180 if test "${enable_optimization+set}" = set; then :
15181 enableval=$enable_optimization;
15184 if test x$enable_optimization != "xno" ; then
15185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15186 $as_echo "yes" >&6; }
15187 else
15188 C_FLAGS="`echo $AM_CFLAGS | ${SED} 's/-O2//'`"
15189 CFLAGS="$CFLAGS $C_FLAGS"
15190 alpine_c_client_gccoptlevel="-O0"
15191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15192 $as_echo "no" >&6; }
15195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: mouse support enabled" >&5
15196 $as_echo_n "checking option: mouse support enabled... " >&6; }
15197 # Check whether --enable-mouse was given.
15198 if test "${enable_mouse+set}" = set; then :
15199 enableval=$enable_mouse;
15202 if test x$enable_mouse != "xno" ; then
15204 $as_echo "#define MOUSE /**/" >>confdefs.h
15206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15207 $as_echo "yes" >&6; }
15208 else
15209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15210 $as_echo "no" >&6; }
15213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: quotas enabled" >&5
15214 $as_echo_n "checking option: quotas enabled... " >&6; }
15215 # Check whether --enable-quotas was given.
15216 if test "${enable_quotas+set}" = set; then :
15217 enableval=$enable_quotas;
15220 if test x$enable_quotas = "xyes" ; then
15222 $as_echo "#define USE_QUOTAS /**/" >>confdefs.h
15224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15225 $as_echo "yes" >&6; }
15226 else
15227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15228 $as_echo "no" >&6; }
15231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: From changing enabled" >&5
15232 $as_echo_n "checking option: From changing enabled... " >&6; }
15233 # Check whether --enable-from_changing was given.
15234 if test "${enable_from_changing+set}" = set; then :
15235 enableval=$enable_from_changing;
15238 if test x$enable_from_changing != "xno" ; then
15239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15240 $as_echo "yes" >&6; }
15241 else
15243 $as_echo "#define NEVER_ALLOW_CHANGING_FROM /**/" >>confdefs.h
15245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15246 $as_echo "no" >&6; }
15249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: background post enabled" >&5
15250 $as_echo_n "checking option: background post enabled... " >&6; }
15251 # Check whether --enable-background-post was given.
15252 if test "${enable_background_post+set}" = set; then :
15253 enableval=$enable_background_post;
15256 if test x$enable_background_post != "xno" ; then
15258 $as_echo "#define BACKGROUND_POST /**/" >>confdefs.h
15260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15261 $as_echo "yes" >&6; }
15262 else
15263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15264 $as_echo "no" >&6; }
15267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: keyboard lock enabled" >&5
15268 $as_echo_n "checking option: keyboard lock enabled... " >&6; }
15269 # Check whether --enable-keyboard-lock was given.
15270 if test "${enable_keyboard_lock+set}" = set; then :
15271 enableval=$enable_keyboard_lock;
15274 if test x$enable_keyboard_lock != "xno" ; then
15276 $as_echo "#define KEYBOARD_LOCK /**/" >>confdefs.h
15278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15279 $as_echo "yes" >&6; }
15280 else
15281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15282 $as_echo "no" >&6; }
15285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: from encoding enabled" >&5
15286 $as_echo_n "checking option: from encoding enabled... " >&6; }
15287 # Check whether --enable-from-encoding was given.
15288 if test "${enable_from_encoding+set}" = set; then :
15289 enableval=$enable_from_encoding;
15292 if test x$enable_from_encoding = "xyes" ; then
15294 $as_echo "#define ENCODE_FROMS /**/" >>confdefs.h
15296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15297 $as_echo "yes" >&6; }
15298 else
15299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15300 $as_echo "no" >&6; }
15304 # Check whether --with-smtp-msa was given.
15305 if test "${with_smtp_msa+set}" = set; then :
15306 withval=$with_smtp_msa;
15307 case "$withval" in
15310 yes)
15311 # Extract the first word of "sendmail", so it can be a program name with args.
15312 set dummy sendmail; ac_word=$2
15313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15314 $as_echo_n "checking for $ac_word... " >&6; }
15315 if ${ac_cv_path_SENDMAIL+:} false; then :
15316 $as_echo_n "(cached) " >&6
15317 else
15318 case $SENDMAIL in
15319 [\\/]* | ?:[\\/]*)
15320 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
15323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15324 as_dummy="$PATH:/usr/sbin:/usr/lib"
15325 for as_dir in $as_dummy
15327 IFS=$as_save_IFS
15328 test -z "$as_dir" && as_dir=.
15329 for ac_exec_ext in '' $ac_executable_extensions; do
15330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15331 ac_cv_path_SENDMAIL="$as_dir/$ac_word$ac_exec_ext"
15332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15333 break 2
15335 done
15336 done
15337 IFS=$as_save_IFS
15339 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL=""""
15341 esac
15343 SENDMAIL=$ac_cv_path_SENDMAIL
15344 if test -n "$SENDMAIL"; then
15345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SENDMAIL" >&5
15346 $as_echo "$SENDMAIL" >&6; }
15347 else
15348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15349 $as_echo "no" >&6; }
15355 SENDMAIL=$withval
15357 esac
15359 else
15361 # Extract the first word of "sendmail", so it can be a program name with args.
15362 set dummy sendmail; ac_word=$2
15363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15364 $as_echo_n "checking for $ac_word... " >&6; }
15365 if ${ac_cv_path_SENDMAIL+:} false; then :
15366 $as_echo_n "(cached) " >&6
15367 else
15368 case $SENDMAIL in
15369 [\\/]* | ?:[\\/]*)
15370 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
15373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15374 as_dummy="$PATH:/usr/sbin:/usr/lib"
15375 for as_dir in $as_dummy
15377 IFS=$as_save_IFS
15378 test -z "$as_dir" && as_dir=.
15379 for ac_exec_ext in '' $ac_executable_extensions; do
15380 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15381 ac_cv_path_SENDMAIL="$as_dir/$ac_word$ac_exec_ext"
15382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15383 break 2
15385 done
15386 done
15387 IFS=$as_save_IFS
15389 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL=""""
15391 esac
15393 SENDMAIL=$ac_cv_path_SENDMAIL
15394 if test -n "$SENDMAIL"; then
15395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SENDMAIL" >&5
15396 $as_echo "$SENDMAIL" >&6; }
15397 else
15398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15399 $as_echo "no" >&6; }
15406 if test -n "$SENDMAIL" ; then
15408 cat >>confdefs.h <<_ACEOF
15409 #define SENDMAIL "$SENDMAIL"
15410 _ACEOF
15414 smtp_msa_flags="-bs -odb -oem"
15416 # Check whether --with-smtp-msa-flags was given.
15417 if test "${with_smtp_msa_flags+set}" = set; then :
15418 withval=$with_smtp_msa_flags;
15419 if test "x$withval" != "xno" ; then
15420 smtp_msa_flags=$withval
15426 cat >>confdefs.h <<_ACEOF
15427 #define SENDMAILFLAGS "$smtp_msa_flags"
15428 _ACEOF
15431 npa="inews"
15433 # Check whether --with-npa was given.
15434 if test "${with_npa+set}" = set; then :
15435 withval=$with_npa;
15436 case "$withval" in
15439 yes)
15440 # Extract the first word of "inews", so it can be a program name with args.
15441 set dummy inews; ac_word=$2
15442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15443 $as_echo_n "checking for $ac_word... " >&6; }
15444 if ${ac_cv_path_NPA_PROG+:} false; then :
15445 $as_echo_n "(cached) " >&6
15446 else
15447 case $NPA_PROG in
15448 [\\/]* | ?:[\\/]*)
15449 ac_cv_path_NPA_PROG="$NPA_PROG" # Let the user override the test with a path.
15452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15453 as_dummy="$PATH:/usr/sbin:/usr/lib"
15454 for as_dir in $as_dummy
15456 IFS=$as_save_IFS
15457 test -z "$as_dir" && as_dir=.
15458 for ac_exec_ext in '' $ac_executable_extensions; do
15459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15460 ac_cv_path_NPA_PROG="$as_dir/$ac_word$ac_exec_ext"
15461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15462 break 2
15464 done
15465 done
15466 IFS=$as_save_IFS
15468 test -z "$ac_cv_path_NPA_PROG" && ac_cv_path_NPA_PROG=""""
15470 esac
15472 NPA_PROG=$ac_cv_path_NPA_PROG
15473 if test -n "$NPA_PROG"; then
15474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NPA_PROG" >&5
15475 $as_echo "$NPA_PROG" >&6; }
15476 else
15477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15478 $as_echo "no" >&6; }
15484 NPA_PROG=$withval
15486 esac
15488 else
15490 # Extract the first word of "inews", so it can be a program name with args.
15491 set dummy inews; ac_word=$2
15492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15493 $as_echo_n "checking for $ac_word... " >&6; }
15494 if ${ac_cv_path_NPA_PROG+:} false; then :
15495 $as_echo_n "(cached) " >&6
15496 else
15497 case $NPA_PROG in
15498 [\\/]* | ?:[\\/]*)
15499 ac_cv_path_NPA_PROG="$NPA_PROG" # Let the user override the test with a path.
15502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15503 as_dummy="$PATH:/usr/sbin:/usr/lib"
15504 for as_dir in $as_dummy
15506 IFS=$as_save_IFS
15507 test -z "$as_dir" && as_dir=.
15508 for ac_exec_ext in '' $ac_executable_extensions; do
15509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15510 ac_cv_path_NPA_PROG="$as_dir/$ac_word$ac_exec_ext"
15511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15512 break 2
15514 done
15515 done
15516 IFS=$as_save_IFS
15518 test -z "$ac_cv_path_NPA_PROG" && ac_cv_path_NPA_PROG=""""
15520 esac
15522 NPA_PROG=$ac_cv_path_NPA_PROG
15523 if test -n "$NPA_PROG"; then
15524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NPA_PROG" >&5
15525 $as_echo "$NPA_PROG" >&6; }
15526 else
15527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15528 $as_echo "no" >&6; }
15536 npa_flags="-h"
15538 # Check whether --with-npa-flags was given.
15539 if test "${with_npa_flags+set}" = set; then :
15540 withval=$with_npa_flags;
15541 if test "x$withval" != "xno" ; then
15542 npa_flags=$withval
15547 if test -n "$NPA_PROG" ; then
15549 cat >>confdefs.h <<_ACEOF
15550 #define SENDNEWS "$NPA_PROG $npa_flags"
15551 _ACEOF
15556 # Check whether --with-password-prog was given.
15557 if test "${with_password_prog+set}" = set; then :
15558 withval=$with_password_prog;
15559 case "$withval" in
15562 yes)
15563 # Extract the first word of "passwd", so it can be a program name with args.
15564 set dummy passwd; ac_word=$2
15565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15566 $as_echo_n "checking for $ac_word... " >&6; }
15567 if ${ac_cv_path_PWPROG+:} false; then :
15568 $as_echo_n "(cached) " >&6
15569 else
15570 case $PWPROG in
15571 [\\/]* | ?:[\\/]*)
15572 ac_cv_path_PWPROG="$PWPROG" # Let the user override the test with a path.
15575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15576 as_dummy="$PATH:/usr/sbin:/usr/lib"
15577 for as_dir in $as_dummy
15579 IFS=$as_save_IFS
15580 test -z "$as_dir" && as_dir=.
15581 for ac_exec_ext in '' $ac_executable_extensions; do
15582 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15583 ac_cv_path_PWPROG="$as_dir/$ac_word$ac_exec_ext"
15584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15585 break 2
15587 done
15588 done
15589 IFS=$as_save_IFS
15591 test -z "$ac_cv_path_PWPROG" && ac_cv_path_PWPROG=""""
15593 esac
15595 PWPROG=$ac_cv_path_PWPROG
15596 if test -n "$PWPROG"; then
15597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PWPROG" >&5
15598 $as_echo "$PWPROG" >&6; }
15599 else
15600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15601 $as_echo "no" >&6; }
15607 # Extract the first word of "$withval", so it can be a program name with args.
15608 set dummy $withval; ac_word=$2
15609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15610 $as_echo_n "checking for $ac_word... " >&6; }
15611 if ${ac_cv_path_PWPROG+:} false; then :
15612 $as_echo_n "(cached) " >&6
15613 else
15614 case $PWPROG in
15615 [\\/]* | ?:[\\/]*)
15616 ac_cv_path_PWPROG="$PWPROG" # Let the user override the test with a path.
15619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15620 as_dummy="$PATH:/usr/sbin:/usr/lib"
15621 for as_dir in $as_dummy
15623 IFS=$as_save_IFS
15624 test -z "$as_dir" && as_dir=.
15625 for ac_exec_ext in '' $ac_executable_extensions; do
15626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15627 ac_cv_path_PWPROG="$as_dir/$ac_word$ac_exec_ext"
15628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15629 break 2
15631 done
15632 done
15633 IFS=$as_save_IFS
15635 test -z "$ac_cv_path_PWPROG" && ac_cv_path_PWPROG=""""
15637 esac
15639 PWPROG=$ac_cv_path_PWPROG
15640 if test -n "$PWPROG"; then
15641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PWPROG" >&5
15642 $as_echo "$PWPROG" >&6; }
15643 else
15644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15645 $as_echo "no" >&6; }
15650 esac
15652 else
15654 # Extract the first word of "passwd", so it can be a program name with args.
15655 set dummy passwd; ac_word=$2
15656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15657 $as_echo_n "checking for $ac_word... " >&6; }
15658 if ${ac_cv_path_PWPROG+:} false; then :
15659 $as_echo_n "(cached) " >&6
15660 else
15661 case $PWPROG in
15662 [\\/]* | ?:[\\/]*)
15663 ac_cv_path_PWPROG="$PWPROG" # Let the user override the test with a path.
15666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15667 as_dummy="$PATH:/usr/sbin:/usr/lib"
15668 for as_dir in $as_dummy
15670 IFS=$as_save_IFS
15671 test -z "$as_dir" && as_dir=.
15672 for ac_exec_ext in '' $ac_executable_extensions; do
15673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15674 ac_cv_path_PWPROG="$as_dir/$ac_word$ac_exec_ext"
15675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15676 break 2
15678 done
15679 done
15680 IFS=$as_save_IFS
15682 test -z "$ac_cv_path_PWPROG" && ac_cv_path_PWPROG=""""
15684 esac
15686 PWPROG=$ac_cv_path_PWPROG
15687 if test -n "$PWPROG"; then
15688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PWPROG" >&5
15689 $as_echo "$PWPROG" >&6; }
15690 else
15691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15692 $as_echo "no" >&6; }
15699 if test -n "$PWPROG" ; then
15701 cat >>confdefs.h <<_ACEOF
15702 #define PASSWD_PROG "$PWPROG"
15703 _ACEOF
15708 # Check whether --with-simple-spellcheck was given.
15709 if test "${with_simple_spellcheck+set}" = set; then :
15710 withval=$with_simple_spellcheck;
15711 if test "x$withval" != "xno" ; then
15712 SPELLPROG=$withval
15715 else
15717 # Extract the first word of "hunspell", so it can be a program name with args.
15718 set dummy hunspell; ac_word=$2
15719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15720 $as_echo_n "checking for $ac_word... " >&6; }
15721 if ${ac_cv_prog_SPELLPROG+:} false; then :
15722 $as_echo_n "(cached) " >&6
15723 else
15724 if test -n "$SPELLPROG"; then
15725 ac_cv_prog_SPELLPROG="$SPELLPROG" # Let the user override the test.
15726 else
15727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15728 for as_dir in $PATH
15730 IFS=$as_save_IFS
15731 test -z "$as_dir" && as_dir=.
15732 for ac_exec_ext in '' $ac_executable_extensions; do
15733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15734 ac_cv_prog_SPELLPROG="hunspell"
15735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15736 break 2
15738 done
15739 done
15740 IFS=$as_save_IFS
15744 SPELLPROG=$ac_cv_prog_SPELLPROG
15745 if test -n "$SPELLPROG"; then
15746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPELLPROG" >&5
15747 $as_echo "$SPELLPROG" >&6; }
15748 else
15749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15750 $as_echo "no" >&6; }
15754 if test -z "$SPELLPROG" ; then
15755 # Extract the first word of "aspell", so it can be a program name with args.
15756 set dummy aspell; ac_word=$2
15757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15758 $as_echo_n "checking for $ac_word... " >&6; }
15759 if ${ac_cv_prog_SPELLPROG+:} false; then :
15760 $as_echo_n "(cached) " >&6
15761 else
15762 if test -n "$SPELLPROG"; then
15763 ac_cv_prog_SPELLPROG="$SPELLPROG" # Let the user override the test.
15764 else
15765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15766 for as_dir in $PATH
15768 IFS=$as_save_IFS
15769 test -z "$as_dir" && as_dir=.
15770 for ac_exec_ext in '' $ac_executable_extensions; do
15771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15772 ac_cv_prog_SPELLPROG="aspell"
15773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15774 break 2
15776 done
15777 done
15778 IFS=$as_save_IFS
15782 SPELLPROG=$ac_cv_prog_SPELLPROG
15783 if test -n "$SPELLPROG"; then
15784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPELLPROG" >&5
15785 $as_echo "$SPELLPROG" >&6; }
15786 else
15787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15788 $as_echo "no" >&6; }
15792 if test -z "$SPELLPROG" ; then
15793 # Extract the first word of "ispell", so it can be a program name with args.
15794 set dummy ispell; ac_word=$2
15795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15796 $as_echo_n "checking for $ac_word... " >&6; }
15797 if ${ac_cv_prog_SPELLPROG+:} false; then :
15798 $as_echo_n "(cached) " >&6
15799 else
15800 if test -n "$SPELLPROG"; then
15801 ac_cv_prog_SPELLPROG="$SPELLPROG" # Let the user override the test.
15802 else
15803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15804 for as_dir in $PATH
15806 IFS=$as_save_IFS
15807 test -z "$as_dir" && as_dir=.
15808 for ac_exec_ext in '' $ac_executable_extensions; do
15809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15810 ac_cv_prog_SPELLPROG="ispell"
15811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15812 break 2
15814 done
15815 done
15816 IFS=$as_save_IFS
15820 SPELLPROG=$ac_cv_prog_SPELLPROG
15821 if test -n "$SPELLPROG"; then
15822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPELLPROG" >&5
15823 $as_echo "$SPELLPROG" >&6; }
15824 else
15825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15826 $as_echo "no" >&6; }
15830 if test -z "$SPELLPROG" ; then
15831 SPELLPROG="spell"
15839 if test "x$SPELLPROG" != "xno" ; then
15840 # Extract the first word of "$SPELLPROG", so it can be a program name with args.
15841 set dummy $SPELLPROG; ac_word=$2
15842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15843 $as_echo_n "checking for $ac_word... " >&6; }
15844 if ${ac_cv_path_alpine_simple_spellcheck+:} false; then :
15845 $as_echo_n "(cached) " >&6
15846 else
15847 case $alpine_simple_spellcheck in
15848 [\\/]* | ?:[\\/]*)
15849 ac_cv_path_alpine_simple_spellcheck="$alpine_simple_spellcheck" # Let the user override the test with a path.
15852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15853 for as_dir in $PATH
15855 IFS=$as_save_IFS
15856 test -z "$as_dir" && as_dir=.
15857 for ac_exec_ext in '' $ac_executable_extensions; do
15858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15859 ac_cv_path_alpine_simple_spellcheck="$as_dir/$ac_word$ac_exec_ext"
15860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15861 break 2
15863 done
15864 done
15865 IFS=$as_save_IFS
15868 esac
15870 alpine_simple_spellcheck=$ac_cv_path_alpine_simple_spellcheck
15871 if test -n "$alpine_simple_spellcheck"; then
15872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $alpine_simple_spellcheck" >&5
15873 $as_echo "$alpine_simple_spellcheck" >&6; }
15874 else
15875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15876 $as_echo "no" >&6; }
15880 if test -n "$alpine_simple_spellcheck" ; then
15881 case "$SPELLPROG" in
15882 hunspell)
15883 alpine_simple_spellcheck="$alpine_simple_spellcheck -l"
15885 aspell)
15886 alpine_simple_spellcheck="$alpine_simple_spellcheck --dont-backup --mode=email list"
15888 ispell)
15889 alpine_simple_spellcheck="$alpine_simple_spellcheck -l"
15893 esac
15898 # Check whether --with-interactive-spellcheck was given.
15899 if test "${with_interactive_spellcheck+set}" = set; then :
15900 withval=$with_interactive_spellcheck;
15901 if test "x$withval" != "xno" ; then
15902 ISPELLPROG=$withval
15905 else
15907 # Extract the first word of "hunspell", so it can be a program name with args.
15908 set dummy hunspell; ac_word=$2
15909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15910 $as_echo_n "checking for $ac_word... " >&6; }
15911 if ${ac_cv_prog_ISPELLPROG+:} false; then :
15912 $as_echo_n "(cached) " >&6
15913 else
15914 if test -n "$ISPELLPROG"; then
15915 ac_cv_prog_ISPELLPROG="$ISPELLPROG" # Let the user override the test.
15916 else
15917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15918 for as_dir in $PATH
15920 IFS=$as_save_IFS
15921 test -z "$as_dir" && as_dir=.
15922 for ac_exec_ext in '' $ac_executable_extensions; do
15923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15924 ac_cv_prog_ISPELLPROG="hunspell"
15925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15926 break 2
15928 done
15929 done
15930 IFS=$as_save_IFS
15934 ISPELLPROG=$ac_cv_prog_ISPELLPROG
15935 if test -n "$ISPELLPROG"; then
15936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ISPELLPROG" >&5
15937 $as_echo "$ISPELLPROG" >&6; }
15938 else
15939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15940 $as_echo "no" >&6; }
15944 if test -z "$ISPELLPROG" ; then
15945 # Extract the first word of "aspell", so it can be a program name with args.
15946 set dummy aspell; ac_word=$2
15947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15948 $as_echo_n "checking for $ac_word... " >&6; }
15949 if ${ac_cv_prog_ISPELLPROG+:} false; then :
15950 $as_echo_n "(cached) " >&6
15951 else
15952 if test -n "$ISPELLPROG"; then
15953 ac_cv_prog_ISPELLPROG="$ISPELLPROG" # Let the user override the test.
15954 else
15955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15956 for as_dir in $PATH
15958 IFS=$as_save_IFS
15959 test -z "$as_dir" && as_dir=.
15960 for ac_exec_ext in '' $ac_executable_extensions; do
15961 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15962 ac_cv_prog_ISPELLPROG="aspell"
15963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15964 break 2
15966 done
15967 done
15968 IFS=$as_save_IFS
15972 ISPELLPROG=$ac_cv_prog_ISPELLPROG
15973 if test -n "$ISPELLPROG"; then
15974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ISPELLPROG" >&5
15975 $as_echo "$ISPELLPROG" >&6; }
15976 else
15977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15978 $as_echo "no" >&6; }
15982 if test -z "$SPELLPROG" ; then
15983 ISPELLPROG="ispell"
15990 if test "x$ISPELLPROG" != "xno" ; then
15991 # Extract the first word of "$ISPELLPROG", so it can be a program name with args.
15992 set dummy $ISPELLPROG; ac_word=$2
15993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15994 $as_echo_n "checking for $ac_word... " >&6; }
15995 if ${ac_cv_path_alpine_interactive_spellcheck+:} false; then :
15996 $as_echo_n "(cached) " >&6
15997 else
15998 case $alpine_interactive_spellcheck in
15999 [\\/]* | ?:[\\/]*)
16000 ac_cv_path_alpine_interactive_spellcheck="$alpine_interactive_spellcheck" # Let the user override the test with a path.
16003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16004 for as_dir in $PATH
16006 IFS=$as_save_IFS
16007 test -z "$as_dir" && as_dir=.
16008 for ac_exec_ext in '' $ac_executable_extensions; do
16009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16010 ac_cv_path_alpine_interactive_spellcheck="$as_dir/$ac_word$ac_exec_ext"
16011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16012 break 2
16014 done
16015 done
16016 IFS=$as_save_IFS
16019 esac
16021 alpine_interactive_spellcheck=$ac_cv_path_alpine_interactive_spellcheck
16022 if test -n "$alpine_interactive_spellcheck"; then
16023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $alpine_interactive_spellcheck" >&5
16024 $as_echo "$alpine_interactive_spellcheck" >&6; }
16025 else
16026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16027 $as_echo "no" >&6; }
16031 if test -n "$alpine_interactive_spellcheck" ; then
16032 case "$ISPELLPROG" in
16033 aspell)
16034 alpine_interactive_spellcheck="$alpine_interactive_spellcheck --dont-backup --mode=email check"
16038 esac
16042 if test -n "$alpine_interactive_spellcheck" ; then
16044 cat >>confdefs.h <<_ACEOF
16045 #define DF_VAR_SPELLER "$alpine_interactive_spellcheck"
16046 _ACEOF
16050 if test -z "$alpine_simple_spellcheck" -a -n "$alpine_interactive_spellcheck" ; then
16051 alpine_simple_spellcheck=test
16054 cat >>confdefs.h <<_ACEOF
16055 #define SPELLER "$alpine_simple_spellcheck"
16056 _ACEOF
16059 case "$prefix" in
16060 NONE) dpv=/usr/local/lib/pine.conf ;;
16061 *) dpv=${prefix}/lib/pine.conf ;;
16062 esac
16064 # Check whether --with-system-pinerc was given.
16065 if test "${with_system_pinerc+set}" = set; then :
16066 withval=$with_system_pinerc;
16067 case "$withval" in
16070 yes)
16073 dpv=$withval
16075 esac
16080 cat >>confdefs.h <<_ACEOF
16081 #define SYSTEM_PINERC "$dpv"
16082 _ACEOF
16085 case "$prefix" in
16086 NONE) dpv=/usr/local/lib/pine.conf.fixed ;;
16087 *) dpv=${prefix}/lib/pine.conf.fixed ;;
16088 esac
16090 # Check whether --with-system-fixed-pinerc was given.
16091 if test "${with_system_fixed_pinerc+set}" = set; then :
16092 withval=$with_system_fixed_pinerc;
16093 case "$withval" in
16096 yes)
16099 dpv=$withval
16101 esac
16106 cat >>confdefs.h <<_ACEOF
16107 #define SYSTEM_PINERC_FIXED "$dpv"
16108 _ACEOF
16111 case "$prefix" in
16112 NONE) dpv=/usr/local/lib/pine.info ;;
16113 *) dpv=${prefix}/lib/pine.info ;;
16114 esac
16116 # Check whether --with-local-support-info was given.
16117 if test "${with_local_support_info+set}" = set; then :
16118 withval=$with_local_support_info;
16119 case "$withval" in
16122 yes)
16125 dpv=$withval
16127 esac
16132 cat >>confdefs.h <<_ACEOF
16133 #define SYSTEM_PINE_INFO_PATH "$dpv"
16134 _ACEOF
16142 dpv=150
16144 # Check whether --with-mailcheck-interval was given.
16145 if test "${with_mailcheck_interval+set}" = set; then :
16146 withval=$with_mailcheck_interval;
16147 if test "x$withval" != "xno" ; then
16148 dpv=$withval
16154 cat >>confdefs.h <<_ACEOF
16155 #define DF_MAILCHECK "$dpv"
16156 _ACEOF
16160 dpv=420
16162 # Check whether --with-checkpoint-interval was given.
16163 if test "${with_checkpoint_interval+set}" = set; then :
16164 withval=$with_checkpoint_interval;
16165 if test "x$withval" != "xno" ; then
16166 dpv=$withval
16172 cat >>confdefs.h <<_ACEOF
16173 #define CHECK_POINT_TIME $dpv
16174 _ACEOF
16178 dpv=12
16180 # Check whether --with-checkpoint-frequency was given.
16181 if test "${with_checkpoint_frequency+set}" = set; then :
16182 withval=$with_checkpoint_frequency;
16183 if test "x$withval" != "xno" ; then
16184 dpv=$withval
16190 cat >>confdefs.h <<_ACEOF
16191 #define CHECK_POINT_FREQ $dpv
16192 _ACEOF
16196 dpv=24
16198 # Check whether --with-display-rows was given.
16199 if test "${with_display_rows+set}" = set; then :
16200 withval=$with_display_rows;
16201 if test "x$withval" != "xno" ; then
16202 dpv=$withval
16208 cat >>confdefs.h <<_ACEOF
16209 #define DEFAULT_LINES_ON_TERMINAL $dpv
16210 _ACEOF
16214 dpv=80
16216 # Check whether --with-display-columns was given.
16217 if test "${with_display_columns+set}" = set; then :
16218 withval=$with_display_columns;
16219 if test "x$withval" != "xno" ; then
16220 dpv=$withval
16226 cat >>confdefs.h <<_ACEOF
16227 #define DEFAULT_COLUMNS_ON_TERMINAL $dpv
16228 _ACEOF
16232 dpv=200
16234 # Check whether --with-max-display-rows was given.
16235 if test "${with_max_display_rows+set}" = set; then :
16236 withval=$with_max_display_rows;
16237 if test "x$withval" != "xno" ; then
16238 dpv=$withval
16244 cat >>confdefs.h <<_ACEOF
16245 #define MAX_SCREEN_ROWS $dpv
16246 _ACEOF
16250 dpv=500
16252 # Check whether --with-max-display-columns was given.
16253 if test "${with_max_display_columns+set}" = set; then :
16254 withval=$with_max_display_columns;
16255 if test "x$withval" != "xno" ; then
16256 dpv=$withval
16262 cat >>confdefs.h <<_ACEOF
16263 #define MAX_SCREEN_COLS $dpv
16264 _ACEOF
16268 dpv=74
16270 # Check whether --with-fill-column was given.
16271 if test "${with_fill_column+set}" = set; then :
16272 withval=$with_fill_column;
16273 if test "x$withval" != "xno" ; then
16274 dpv=$withval
16280 cat >>confdefs.h <<_ACEOF
16281 #define DF_FILLCOL "$dpv"
16282 _ACEOF
16286 dpv=80
16288 # Check whether --with-max_fill-column was given.
16289 if test "${with_max_fill_column+set}" = set; then :
16290 withval=$with_max_fill_column;
16291 if test "x$withval" != "xno" ; then
16292 dpv=$withval
16298 cat >>confdefs.h <<_ACEOF
16299 #define MAX_FILLCOL $dpv
16300 _ACEOF
16304 dpv=2
16306 # Check whether --with-debug-level was given.
16307 if test "${with_debug_level+set}" = set; then :
16308 withval=$with_debug_level;
16309 if test "x$withval" != "xno" ; then
16310 dpv=$withval
16316 cat >>confdefs.h <<_ACEOF
16317 #define DEFAULT_DEBUG $dpv
16318 _ACEOF
16322 dpv=4
16324 # Check whether --with-debug-files was given.
16325 if test "${with_debug_files+set}" = set; then :
16326 withval=$with_debug_files;
16327 if test "x$withval" != "xno" ; then
16328 dpv=$withval
16334 cat >>confdefs.h <<_ACEOF
16335 #define NUMDEBUGFILES $dpv
16336 _ACEOF
16340 dpv=.pine-debug
16342 # Check whether --with-debug-file was given.
16343 if test "${with_debug_file+set}" = set; then :
16344 withval=$with_debug_file;
16345 if test "x$withval" != "xno" ; then
16346 dpv=$withval
16352 cat >>confdefs.h <<_ACEOF
16353 #define DEBUGFILE "$dpv"
16354 _ACEOF
16358 dpv="\$Forwarded"
16360 # Check whether --with-forwarded-keyword was given.
16361 if test "${with_forwarded_keyword+set}" = set; then :
16362 withval=$with_forwarded_keyword;
16363 if test "x$withval" != "xno" ; then
16364 dpv=$withval
16370 cat >>confdefs.h <<_ACEOF
16371 #define FORWARDED_FLAG "$dpv"
16372 _ACEOF
16376 dpv=2
16378 # Check whether --with-display-overlap was given.
16379 if test "${with_display_overlap+set}" = set; then :
16380 withval=$with_display_overlap;
16381 if test "x$withval" != "xno" ; then
16382 dpv=$withval
16388 cat >>confdefs.h <<_ACEOF
16389 #define DF_OVERLAP "$dpv"
16390 _ACEOF
16394 dpv=0
16396 # Check whether --with-display-margin was given.
16397 if test "${with_display_margin+set}" = set; then :
16398 withval=$with_display_margin;
16399 if test "x$withval" != "xno" ; then
16400 dpv=$withval
16406 cat >>confdefs.h <<_ACEOF
16407 #define DF_MARGIN "$dpv"
16408 _ACEOF
16412 dpv=sent-mail
16414 # Check whether --with-default-fcc was given.
16415 if test "${with_default_fcc+set}" = set; then :
16416 withval=$with_default_fcc;
16417 if test "x$withval" != "xno" ; then
16418 dpv=$withval
16424 cat >>confdefs.h <<_ACEOF
16425 #define DF_DEFAULT_FCC "$dpv"
16426 _ACEOF
16430 dpv=saved-messages
16432 # Check whether --with-default-save-folder was given.
16433 if test "${with_default_save_folder+set}" = set; then :
16434 withval=$with_default_save_folder;
16435 if test "x$withval" != "xno" ; then
16436 dpv=$withval
16442 cat >>confdefs.h <<_ACEOF
16443 #define DEFAULT_SAVE "$dpv"
16444 _ACEOF
16448 dpv=postponed-mail
16450 # Check whether --with-default-legacy-postponed-folder was given.
16451 if test "${with_default_legacy_postponed_folder+set}" = set; then :
16452 withval=$with_default_legacy_postponed_folder;
16453 if test "x$withval" != "xno" ; then
16454 dpv=$withval
16460 cat >>confdefs.h <<_ACEOF
16461 #define POSTPONED_MAIL "$dpv"
16462 _ACEOF
16466 dpv=postponed-msgs
16468 # Check whether --with-default-postponed-folder was given.
16469 if test "${with_default_postponed_folder+set}" = set; then :
16470 withval=$with_default_postponed_folder;
16471 if test "x$withval" != "xno" ; then
16472 dpv=$withval
16478 cat >>confdefs.h <<_ACEOF
16479 #define POSTPONED_MSGS "$dpv"
16480 _ACEOF
16484 dpv=Trash
16486 # Check whether --with-default-trash-folder was given.
16487 if test "${with_default_trash_folder+set}" = set; then :
16488 withval=$with_default_trash_folder;
16489 if test "x$withval" != "xno" ; then
16490 dpv=$withval
16496 cat >>confdefs.h <<_ACEOF
16497 #define TRASH_FOLDER "$dpv"
16498 _ACEOF
16502 dpv=.pine-interrupted-mail
16504 # Check whether --with-default-interrupted-mail was given.
16505 if test "${with_default_interrupted_mail+set}" = set; then :
16506 withval=$with_default_interrupted_mail;
16507 if test "x$withval" != "xno" ; then
16508 dpv=$withval
16514 cat >>confdefs.h <<_ACEOF
16515 #define INTERRUPTED_MAIL "$dpv"
16516 _ACEOF
16520 dpv=dead.letter
16522 # Check whether --with-default-dead-letter-folder was given.
16523 if test "${with_default_dead_letter_folder+set}" = set; then :
16524 withval=$with_default_dead_letter_folder;
16525 if test "x$withval" != "xno" ; then
16526 dpv=$withval
16532 cat >>confdefs.h <<_ACEOF
16533 #define DEADLETTER "$dpv"
16534 _ACEOF
16538 dpv=mail
16540 # Check whether --with-default-mail-directory was given.
16541 if test "${with_default_mail_directory+set}" = set; then :
16542 withval=$with_default_mail_directory;
16543 if test "x$withval" != "xno" ; then
16544 dpv=$withval
16550 cat >>confdefs.h <<_ACEOF
16551 #define DF_MAIL_DIRECTORY "$dpv"
16552 _ACEOF
16556 dpv=INBOX
16558 # Check whether --with-default-inbox-name was given.
16559 if test "${with_default_inbox_name+set}" = set; then :
16560 withval=$with_default_inbox_name;
16561 if test "x$withval" != "xno" ; then
16562 dpv=$withval
16568 cat >>confdefs.h <<_ACEOF
16569 #define INBOX_NAME "$dpv"
16570 _ACEOF
16574 dpv=.signature
16576 # Check whether --with-default-signature-file was given.
16577 if test "${with_default_signature_file+set}" = set; then :
16578 withval=$with_default_signature_file;
16579 if test "x$withval" != "xno" ; then
16580 dpv=$withval
16586 cat >>confdefs.h <<_ACEOF
16587 #define DF_SIGNATURE_FILE "$dpv"
16588 _ACEOF
16592 dpv=no
16594 # Check whether --with-default-elm-style-save was given.
16595 if test "${with_default_elm_style_save+set}" = set; then :
16596 withval=$with_default_elm_style_save;
16597 if test "x$withval" != "xno" ; then
16598 dpv=$withval
16604 cat >>confdefs.h <<_ACEOF
16605 #define DF_ELM_STYLE_SAVE "$dpv"
16606 _ACEOF
16610 dpv=no
16612 # Check whether --with-default-header-in-reply was given.
16613 if test "${with_default_header_in_reply+set}" = set; then :
16614 withval=$with_default_header_in_reply;
16615 if test "x$withval" != "xno" ; then
16616 dpv=$withval
16622 cat >>confdefs.h <<_ACEOF
16623 #define DF_HEADER_IN_REPLY "$dpv"
16624 _ACEOF
16628 dpv=no
16630 # Check whether --with-default-old-style-reply was given.
16631 if test "${with_default_old_style_reply+set}" = set; then :
16632 withval=$with_default_old_style_reply;
16633 if test "x$withval" != "xno" ; then
16634 dpv=$withval
16640 cat >>confdefs.h <<_ACEOF
16641 #define DF_OLD_STYLE_REPLY "$dpv"
16642 _ACEOF
16646 dpv=no
16648 # Check whether --with-default-use-only-domain-name was given.
16649 if test "${with_default_use_only_domain_name+set}" = set; then :
16650 withval=$with_default_use_only_domain_name;
16651 if test "x$withval" != "xno" ; then
16652 dpv=$withval
16658 cat >>confdefs.h <<_ACEOF
16659 #define DF_USE_ONLY_DOMAIN_NAME "$dpv"
16660 _ACEOF
16664 dpv=no
16666 # Check whether --with-default-save-by-sender was given.
16667 if test "${with_default_save_by_sender+set}" = set; then :
16668 withval=$with_default_save_by_sender;
16669 if test "x$withval" != "xno" ; then
16670 dpv=$withval
16676 cat >>confdefs.h <<_ACEOF
16677 #define DF_SAVE_BY_SENDER "$dpv"
16678 _ACEOF
16682 dpv=arrival
16684 # Check whether --with-default-sort-key was given.
16685 if test "${with_default_sort_key+set}" = set; then :
16686 withval=$with_default_sort_key;
16687 if test "x$withval" != "xno" ; then
16688 dpv=$withval
16694 cat >>confdefs.h <<_ACEOF
16695 #define DF_SORT_KEY "$dpv"
16696 _ACEOF
16700 dpv=fullname-with-lists-last
16702 # Check whether --with-default-addressbook-sort-rule was given.
16703 if test "${with_default_addressbook_sort_rule+set}" = set; then :
16704 withval=$with_default_addressbook_sort_rule;
16705 if test "x$withval" != "xno" ; then
16706 dpv=$withval
16712 cat >>confdefs.h <<_ACEOF
16713 #define DF_AB_SORT_RULE "$dpv"
16714 _ACEOF
16718 dpv=alphabetical
16720 # Check whether --with-default-folder-sort-rule was given.
16721 if test "${with_default_folder_sort_rule+set}" = set; then :
16722 withval=$with_default_folder_sort_rule;
16723 if test "x$withval" != "xno" ; then
16724 dpv=$withval
16730 cat >>confdefs.h <<_ACEOF
16731 #define DF_FLD_SORT_RULE "$dpv"
16732 _ACEOF
16736 dpv=default-folder
16738 # Check whether --with-default-saved-message-name-rule was given.
16739 if test "${with_default_saved_message_name_rule+set}" = set; then :
16740 withval=$with_default_saved_message_name_rule;
16741 if test "x$withval" != "xno" ; then
16742 dpv=$withval
16748 cat >>confdefs.h <<_ACEOF
16749 #define DF_SAVED_MSG_NAME_RULE "$dpv"
16750 _ACEOF
16754 dpv=default-fcc
16756 # Check whether --with-default-fcc-rule was given.
16757 if test "${with_default_fcc_rule+set}" = set; then :
16758 withval=$with_default_fcc_rule;
16759 if test "x$withval" != "xno" ; then
16760 dpv=$withval
16766 cat >>confdefs.h <<_ACEOF
16767 #define DF_FCC_RULE "$dpv"
16768 _ACEOF
16772 dpv=lpr
16774 # Check whether --with-default-standard-printer was given.
16775 if test "${with_default_standard_printer+set}" = set; then :
16776 withval=$with_default_standard_printer;
16777 if test "x$withval" != "xno" ; then
16778 dpv=$withval
16784 cat >>confdefs.h <<_ACEOF
16785 #define DF_STANDARD_PRINTER "$dpv"
16786 _ACEOF
16790 dpv=attached-to-ansi
16792 # Check whether --with-default-ansi-printer was given.
16793 if test "${with_default_ansi_printer+set}" = set; then :
16794 withval=$with_default_ansi_printer;
16795 if test "x$withval" != "xno" ; then
16796 dpv=$withval
16802 cat >>confdefs.h <<_ACEOF
16803 #define ANSI_PRINTER "$dpv"
16804 _ACEOF
16808 dpv=.addressbook
16810 # Check whether --with-default-addressbook was given.
16811 if test "${with_default_addressbook+set}" = set; then :
16812 withval=$with_default_addressbook;
16813 if test "x$withval" != "xno" ; then
16814 dpv=$withval
16820 cat >>confdefs.h <<_ACEOF
16821 #define DF_ADDRESSBOOK "$dpv"
16822 _ACEOF
16826 dpv="Local Support"
16828 # Check whether --with-default-local-fullname was given.
16829 if test "${with_default_local_fullname+set}" = set; then :
16830 withval=$with_default_local_fullname;
16831 if test "x$withval" != "xno" ; then
16832 dpv=$withval
16838 cat >>confdefs.h <<_ACEOF
16839 #define DF_LOCAL_FULLNAME "$dpv"
16840 _ACEOF
16844 dpv=postmaster
16846 # Check whether --with-default-local-address was given.
16847 if test "${with_default_local_address+set}" = set; then :
16848 withval=$with_default_local_address;
16849 if test "x$withval" != "xno" ; then
16850 dpv=$withval
16856 cat >>confdefs.h <<_ACEOF
16857 #define DF_LOCAL_ADDRESS "$dpv"
16858 _ACEOF
16862 dpv=1
16864 # Check whether --with-default-keyboard-lock-count was given.
16865 if test "${with_default_keyboard_lock_count+set}" = set; then :
16866 withval=$with_default_keyboard_lock_count;
16867 if test "x$withval" != "xno" ; then
16868 dpv=$withval
16874 cat >>confdefs.h <<_ACEOF
16875 #define DF_KBLOCK_PASSWD_COUNT "$dpv"
16876 _ACEOF
16880 dpv=3
16882 # Check whether --with-default-remote-addressbook-history was given.
16883 if test "${with_default_remote_addressbook_history+set}" = set; then :
16884 withval=$with_default_remote_addressbook_history;
16885 if test "x$withval" != "xno" ; then
16886 dpv=$withval
16892 cat >>confdefs.h <<_ACEOF
16893 #define DF_REMOTE_ABOOK_HISTORY "$dpv"
16894 _ACEOF
16898 dpv=.alpine-html
16900 # Check whether --with-default-html-directory was given.
16901 if test "${with_default_html_directory+set}" = set; then :
16902 withval=$with_default_html_directory;
16903 if test "x$withval" != "xno" ; then
16904 dpv=$withval
16910 cat >>confdefs.h <<_ACEOF
16911 #define DF_HTML_DIRECTORY "$dpv"
16912 _ACEOF
16916 dpv=.alpine-smime/public
16918 # Check whether --with-smime-public-cert-directory was given.
16919 if test "${with_smime_public_cert_directory+set}" = set; then :
16920 withval=$with_smime_public_cert_directory;
16921 if test "x$withval" != "xno" ; then
16922 dpv=$withval
16928 cat >>confdefs.h <<_ACEOF
16929 #define DF_PUBLICCERT_DIR "$dpv"
16930 _ACEOF
16934 dpv=.alpine-smime/private
16936 # Check whether --with-smime-private-key-directory was given.
16937 if test "${with_smime_private_key_directory+set}" = set; then :
16938 withval=$with_smime_private_key_directory;
16939 if test "x$withval" != "xno" ; then
16940 dpv=$withval
16946 cat >>confdefs.h <<_ACEOF
16947 #define DF_PRIVATEKEY_DIR "$dpv"
16948 _ACEOF
16952 dpv=.alpine-smime/ca
16954 # Check whether --with-smime-cacert-directory was given.
16955 if test "${with_smime_cacert_directory+set}" = set; then :
16956 withval=$with_smime_cacert_directory;
16957 if test "x$withval" != "xno" ; then
16958 dpv=$withval
16964 cat >>confdefs.h <<_ACEOF
16965 #define DF_CACERT_DIR "$dpv"
16966 _ACEOF
16970 dpv=ANSI_PRINTER
16972 # Check whether --with-default-printer was given.
16973 if test "${with_default_printer+set}" = set; then :
16974 withval=$with_default_printer;
16975 if test "x$withval" != "xno" ; then
16976 dpv=$withval
16982 cat >>confdefs.h <<_ACEOF
16983 #define DF_DEFAULT_PRINTER $dpv
16984 _ACEOF
16989 cat >>confdefs.h <<_ACEOF
16990 #define DF_PUBLIC_CONTAINER "PublicContainer"
16991 _ACEOF
16994 cat >>confdefs.h <<_ACEOF
16995 #define DF_PRIVATE_CONTAINER "PrivateContainer"
16996 _ACEOF
16999 cat >>confdefs.h <<_ACEOF
17000 #define DF_CA_CONTAINER "CAContainer"
17001 _ACEOF
17004 cat >>confdefs.h <<_ACEOF
17005 #define DEFAULT_SSLUSERCAPATH ".alpine-certs"
17006 _ACEOF
17009 cat >>confdefs.h <<_ACEOF
17010 #define DEFAULT_SSLUSERCAFILE ".alpine-certs/certs.pem"
17011 _ACEOF
17015 # Check whether --with-passfile was given.
17016 if test "${with_passfile+set}" = set; then :
17017 withval=$with_passfile;
17018 case "$withval" in
17021 yes)
17024 alpine_PASSFILE=$withval
17026 esac
17033 # Check whether --with-local-password-cache was given.
17034 if test "${with_local_password_cache+set}" = set; then :
17035 withval=$with_local_password_cache;
17036 alpine_os_credential_cache=$withval
17042 # Check whether --with-local-password-cache-method was given.
17043 if test "${with_local_password_cache_method+set}" = set; then :
17044 withval=$with_local_password_cache_method;
17045 alpine_os_credential_cache_method=$withval
17050 if test -n "$alpine_PASSFILE" ; then
17051 case $alpine_os_credential_cache in
17055 alpine_os_credential_cache="no"
17056 { $as_echo "$as_me:${as_lineno-$LINENO}: --with-passfile definition overrides OS-Specific password caching" >&5
17057 $as_echo "$as_me: --with-passfile definition overrides OS-Specific password caching" >&6;}
17059 esac
17061 cat >>confdefs.h <<_ACEOF
17062 #define PASSFILE "$alpine_PASSFILE"
17063 _ACEOF
17068 # Check whether --with-default-sshpath was given.
17069 if test "${with_default_sshpath+set}" = set; then :
17070 withval=$with_default_sshpath;
17071 case "$withval" in
17074 yes)
17078 cat >>confdefs.h <<_ACEOF
17079 #define DF_SSHPATH "$withval"
17080 _ACEOF
17083 esac
17089 # Check whether --with-default-sshcmd was given.
17090 if test "${with_default_sshcmd+set}" = set; then :
17091 withval=$with_default_sshcmd;
17092 case "$withval" in
17095 yes)
17099 cat >>confdefs.h <<_ACEOF
17100 #define DF_SSHCMD "$withval"
17101 _ACEOF
17104 esac
17110 # Check whether --with-ssl was given.
17111 if test "${with_ssl+set}" = set; then :
17112 withval=$with_ssl; with_ssl=$withval
17116 if test "x$with_ssl" = "xno" ; then
17117 alpine_SSLTYPE="none"
17118 elif test -d /usr/local/ssl ; then
17119 alpine_SSLDIR="/usr/local/ssl"
17120 alpine_SSLINCLUDE="$alpine_SSLDIR/include"
17121 alpine_SSLLIB="$alpine_SSLDIR/lib"
17122 alpine_SSLCERTS="$alpine_SSLDIR/certs"
17123 alpine_SSLTYPE="nopwd"
17124 else
17125 case $host in
17126 *-linux*|*-k*bsd*-gnu*|*-gnu*)
17127 if test -f /etc/fedora-release -o -f /etc/redhat-release -o -f /etc/redhat_version ; then
17128 alpine_SSLTYPE="nopwd"
17129 if test -d /etc/pki/tls ; then
17130 alpine_SSLDIR="/etc/pki/tls"
17131 else
17132 alpine_SSLDIR="/usr/share/ssl"
17134 alpine_SSLCERTS="$alpine_SSLDIR/certs"
17135 alpine_SSLKEYS="$alpine_SSLDIR/private"
17136 alpine_SSLINCLUDE="/usr/include/openssl"
17137 alpine_SSLLIB="/usr/lib"
17138 elif test -f /etc/mandrake-release ; then
17139 alpine_SSLDIR="/usr/lib/ssl"
17140 alpine_SSLCERTS="$alpine_SSLDIR/certs"
17141 alpine_SSLKEYS="$alpine_SSLDIR/private"
17142 alpine_SSLINCLUDE="/usr/include/openssl"
17143 alpine_SSLLIB="/usr/lib"
17144 elif test -f /etc/SuSE-release ; then
17145 alpine_SSLTYPE="nopwd"
17146 alpine_SSLDIR="/etc/ssl"
17147 alpine_SSLCERTS="$alpine_SSLDIR/certs"
17148 alpine_SSLKEYS="$alpine_SSLDIR/private"
17149 alpine_SSLINCLUDE="/usr/include/openssl"
17150 alpine_SSLLIB="/usr/lib"
17151 elif test -d /etc/osso-af-init ; then
17152 alpine_SSLTYPE="nopwd"
17153 alpine_SSLDIR="/usr"
17154 alpine_SSLCERTS="/usr/share/certs"
17155 alpine_SSLINCLUDE="/usr/include/openssl"
17156 alpine_SSLLIB="/usr/lib"
17157 elif test -f /etc/debian_release -o -f /etc/debian_version ; then
17158 if test ! -d /etc/osso-af-init ; then
17159 alpine_SSLDIR="/etc/ssl"
17160 alpine_SSLCERTS="$alpine_SSLDIR/certs"
17161 alpine_SSLKEYS="$alpine_SSLDIR/private"
17162 alpine_SSLINCLUDE="/usr/include/openssl"
17163 alpine_SSLLIB="/usr/lib"
17165 elif test -f /etc/manjaro-release ; then
17166 alpine_SSLDIR="/etc/ssl"
17167 alpine_SSLCERTS="$alpine_SSLDIR/certs"
17168 alpine_SSLKEYS="$alpine_SSLDIR/private"
17169 alpine_SSLINCLUDE="/usr/include/openssl"
17170 alpine_SSLLIB="/usr/lib"
17171 else
17172 alpine_SSLTYPE="nopwd"
17173 alpine_SSLDIR="/usr"
17174 alpine_SSLCERTS="/etc/ssl/certs"
17177 *-apple-darwin*)
17178 alpine_SSLTYPE="nopwd"
17179 alpine_SSLCERTS_ORIG="/System/Library/OpenSSL/certs"
17180 if test -d /usr/local/opt/openssl ; then
17181 alpine_SSLDIR="/usr/local/opt/openssl"
17182 alpine_SSLINCLUDE="$alpine_SSLDIR/include"
17183 alpine_SSLLIB="$alpine_SSLDIR/lib"
17184 alpine_SSLCERTS="/usr/local/etc/openssl"
17185 alpine_SSLKEYS="$alpine_SSLDIR/private"
17186 elif test -d /opt/local/etc/openssl ; then
17187 alpine_SSLDIR="/opt/local"
17188 alpine_SSLINCLUDE="$alpine_SSLDIR/include"
17189 alpine_SSLLIB="$alpine_SSLDIR/lib"
17190 alpine_SSLCERTS="/opt/local/etc/openssl/certs"
17191 alpine_SSLKEYS="/opt/local/etc/openssl/private"
17192 elif test -d /sw/etc/ssl ; then
17193 alpine_SSLDIR="/sw/etc/ssl"
17194 alpine_SSLINCLUDE="/sw/include"
17195 alpine_SSLLIB="/sw/lib"
17196 alpine_SSLCERTS="/sw/etc/ssl/certs"
17197 alpine_SSLKEYS="/sw/etc/ssl/private"
17198 elif test -d /usr/local/ssl ; then
17199 alpine_SSLDIR="/usr/local/ssl"
17200 elif test -d /System/Library/OpenSSL ; then
17201 alpine_SSLDIR="/System/Library/OpenSSL"
17202 alpine_SSLCERTS="$alpine_SSLDIR/certs"
17203 alpine_SSLKEYS="$alpine_SSLDIR/private"
17204 alpine_SSLLIB="/usr/lib"
17205 alpine_SSLINCLUDE="/usr/include/openssl"
17208 *-*-netbsd*)
17209 alpine_SSLDIR="/etc/openssl"
17210 alpine_SSLCERTS="$alpine_SSLDIR/certs"
17211 alpine_SSLKEYS="$alpine_SSLDIR/private"
17212 alpine_SSLINCLUDE="/usr/include/openssl"
17213 alpine_SSLLIB="/usr/lib"
17215 *-*-dragonfly*)
17216 alpine_SSLDIR="/etc/openssl"
17217 alpine_SSLCERTS="$alpine_SSLDIR/certs"
17218 alpine_SSLKEYS="$alpine_SSLDIR/private"
17219 alpine_SSLINCLUDE="/usr/include/openssl"
17220 alpine_SSLLIB="/usr/lib"
17222 *-openbsd*)
17223 alpine_SSLTYPE="nopwd"
17224 alpine_SSLDIR="/usr"
17225 alpine_SSLCERTS="/etc/ssl/certs"
17227 *-*-freebsd*)
17228 alpine_SSLDIR="/etc/ssl"
17229 alpine_SSLCERTS="$alpine_SSLDIR/certs"
17230 alpine_SSLKEYS="$alpine_SSLDIR/private"
17231 if test -d /usr/local/include/openssl ; then
17232 alpine_SSLINCLUDE="/usr/local/include/openssl"
17233 alpine_SSLLIB="/usr/local/lib"
17234 else
17235 alpine_SSLINCLUDE="/usr/include/openssl"
17236 alpine_SSLLIB="/usr/lib"
17239 *-*-openbsd*)
17240 alpine_SSLDIR="/etc/ssl"
17241 alpine_SSLINCLUDE="/usr/include/openssl"
17242 alpine_SSLLIB="/usr/lib"
17243 alpine_SSLCERTS="/etc/ssl"
17244 alpine_SSLKEYS="/etc/ssl/private"
17246 *-*-cygwin)
17247 alpine_SSLDIR="/usr/ssl"
17248 alpine_SSLCERTS="$alpine_SSLDIR/certs"
17249 alpine_SSLKEYS="$alpine_SSLDIR/certs"
17250 alpine_SSLINCLUDE="/usr/include/openssl"
17251 alpine_SSLLIB="/usr/lib"
17253 *-sco-sysv* | *-sysv*UnixWare | *-sysv*OpenUNIX)
17254 alpine_SSLTYPE="sco.nopwd"
17255 alpine_SSLDIR="/usr/local/ssl"
17257 *-*-solaris*)
17258 if test -d /usr/include/openssl ; then
17259 alpine_SSLINCLUDE="/usr/include/openssl"
17260 elif test -d /usr/sfw/include/openssl ; then
17261 alpine_SSLDIR="/usr/sfw"
17262 elif test -d /opt/csw/include/openssl ; then
17263 alpine_SSLDIR="/opt/csw"
17264 if test -d /opt/csw/ssl/certs ; then
17265 alpine_SSLCERTS="/opt/csw/ssl/certs"
17268 if test -z "$alpine_SSLCERTS" -a -d /etc/certs ; then
17269 alpine_SSLCERTS="/etc/certs"
17273 alpine_SSLTYPE="nopwd"
17274 alpine_SSLDIR="/usr/local/ssl"
17276 esac
17279 if test "x$alpine_SSLTYPE" != "xnone" ; then
17281 # Check whether --with-ssl-dir was given.
17282 if test "${with_ssl_dir+set}" = set; then :
17283 withval=$with_ssl_dir;
17284 if test "x$withval" != "xno" ; then
17285 alpine_SSLDIR=$withval
17286 alpine_SSLINCLUDE=$alpine_SSLDIR/include
17287 alpine_SSLLIB=$alpine_SSLDIR/lib
17294 # Check whether --with-ssl-certs-dir was given.
17295 if test "${with_ssl_certs_dir+set}" = set; then :
17296 withval=$with_ssl_certs_dir;
17297 if test "x$withval" != "xno" ; then
17298 alpine_SSLCERTS=$withval
17305 # Check whether --with-ssl-include-dir was given.
17306 if test "${with_ssl_include_dir+set}" = set; then :
17307 withval=$with_ssl_include_dir;
17308 if test "x$withval" != "xno" ; then
17309 alpine_SSLINCLUDE=$withval
17316 # Check whether --with-ssl-lib-dir was given.
17317 if test "${with_ssl_lib_dir+set}" = set; then :
17318 withval=$with_ssl_lib_dir;
17319 if test "x$withval" != "xno" ; then
17320 alpine_SSLLIB=$withval
17326 if test -n "$alpine_SSLINCLUDE" ; then
17327 CPPFLAGS="-I$alpine_SSLINCLUDE $CPPFLAGS"
17328 elif test -n "$alpine_SSLDIR" ; then
17329 CPPFLAGS="-I${alpine_SSLDIR}/include $CPPFLAGS"
17331 if test -n "$alpine_SSLLIB" ; then
17332 LDFLAGS="-L$alpine_SSLLIB $LDFLAGS"
17333 elif test -n "$alpine_SSLDIR" ; then
17334 LDFLAGS="-L${alpine_SSLDIR}/lib $LDFLAGS"
17338 if test "x$alpine_SSLTYPE" != "xnone" ; then
17339 alpine_default_SSLMIN="no_min"
17340 alpine_default_SSLMAX="no_max"
17341 alpine_default_RANGE="${alpine_default_SSLMIN},${alpine_default_SSLMAX}"
17342 alpine_ENCRYPTION="$alpine_default_SSLMIN ssl3 tls1 tls1_1 tls1_2 tls1_3 $alpine_default_SSLMAX"
17343 alpine_SSLMIN="$alpine_default_SSLMIN"
17344 alpine_SSLMAX="$alpine_default_SSLMAX"
17345 alpine_RANGE="$alpine_default_RANGE"
17347 # Check whether --with-encryption-minimum-version was given.
17348 if test "${with_encryption_minimum_version+set}" = set; then :
17349 withval=$with_encryption_minimum_version;
17350 if test "x$withval" != "xno" ; then
17351 alpine_SSLMIN=$withval
17357 # Check whether --with-encryption-maximum-version was given.
17358 if test "${with_encryption_maximum_version+set}" = set; then :
17359 withval=$with_encryption_maximum_version;
17360 if test "x$withval" != "xno" ; then
17361 alpine_SSLMAX=$withval
17366 alpine_RANGE="$alpine_SSLMIN $alpine_SSLMAX"
17367 for range in ${alpine_RANGE} ; do
17368 for encryption in ${alpine_ENCRYPTION} ; do
17369 if test "x$range" = "x$encryption" ; then
17370 if test -z $alpine_min ; then
17371 alpine_min="yes"
17372 else
17373 alpine_max="yes"
17376 done
17377 done
17379 if test -z $alpine_max ; then
17380 as_fn_error $? "Unrecognized maximum encryption version: $alpine_max" "$LINENO" 5
17383 if test -z $alpine_min ; then
17384 as_fn_error $? "Unrecognized minimum encryption version: $alpine_min" "$LINENO" 5
17387 if test "x$alpine_SSLMIN" != "x$alpine_SSLMAX" ; then
17388 alpine_RANGE_FEASIBLE=`echo "$alpine_ENCRYPTION" | sed "s/^.*$alpine_SSLMIN//" | grep "$alpine_SSLMAX"`
17389 if test -n "$alpine_RANGE_FEASIBLE" ; then
17390 alpine_RANGE="${alpine_SSLMIN},${alpine_SSLMAX}"
17391 else
17392 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Reversing order of minimum and maximum encryption" >&5
17393 $as_echo "$as_me: WARNING: Reversing order of minimum and maximum encryption" >&2;}
17394 alpine_RANGE="${alpine_SSLMAX},${alpine_SSLMIN}"
17396 else
17397 if test "x$alpine_SSLMIN" = "x$alpine_default_SSLMIN" ; then
17398 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Overriding maximum encryption to default" >&5
17399 $as_echo "$as_me: WARNING: Overriding maximum encryption to default" >&2;}
17400 alpine_SSLMAX="$alpine_default_SSLMAX"
17402 if test "x$alpine_SSLMAX" = "x$alpine_default_SSLMAX" ; then
17403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Overriding minimum encryption to default" >&5
17404 $as_echo "$as_me: WARNING: Overriding minimum encryption to default" >&2;}
17405 alpine_SSLMIN="$alpine_default_SSLMIN"
17407 alpine_RANGE="${alpine_SSLMIN},${alpine_SSLMAX}"
17410 dpv=$alpine_RANGE
17412 # Check whether --with-encryption-range was given.
17413 if test "${with_encryption_range+set}" = set; then :
17414 withval=$with_encryption_range;
17415 if test "x$withval" != "xno" ; then
17416 dpv=$withval
17422 cat >>confdefs.h <<_ACEOF
17423 #define DF_ENCRYPTION_RANGE "$dpv"
17424 _ACEOF
17430 # Check whether --with-krb5 was given.
17431 if test "${with_krb5+set}" = set; then :
17432 withval=$with_krb5; with_krb5=$withval
17436 if test "x$with_krb5" = "xno" ; then
17437 alpine_GSSTYPE="none"
17438 else
17439 alpine_GSSTYPE=
17442 # Check whether --with-krb5-dir was given.
17443 if test "${with_krb5_dir+set}" = set; then :
17444 withval=$with_krb5_dir;
17445 if test "x$withval" != "xno" ; then
17446 CPPFLAGS="$CPPFLAGS -I${withval}/include"
17447 LDFLAGS="$LDFLAGS -L${withval}/lib"
17454 # Check whether --with-krb5-include-dir was given.
17455 if test "${with_krb5_include_dir+set}" = set; then :
17456 withval=$with_krb5_include_dir;
17457 if test "x$withval" != "xno" ; then
17458 CPPFLAGS="$CPPFLAGS -I$withval"
17465 # Check whether --with-krb5-lib-dir was given.
17466 if test "${with_krb5_lib_dir+set}" = set; then :
17467 withval=$with_krb5_lib_dir;
17468 if test "x$withval" != "xno" ; then
17469 LDFLAGS="$LDFLAGS -L$withval"
17477 # Check whether --with-ldap was given.
17478 if test "${with_ldap+set}" = set; then :
17479 withval=$with_ldap; with_ldap=$withval
17483 if test "x$with_ldap" = "xno" ; then
17484 alpine_with_ldap=
17485 { $as_echo "$as_me:${as_lineno-$LINENO}: Excluding LDAP Support" >&5
17486 $as_echo "$as_me: Excluding LDAP Support" >&6;}
17487 else
17489 case $host in
17490 *-*-freebsd*)
17491 alpine_LDAPDIR="/usr/local"
17492 alpine_LDAPINCLUDE="${alpine_LDAPDIR}/include"
17493 alpine_LDAPLIB="${alpine_LDAPDIR}/lib"
17495 esac;
17497 alpine_with_ldap=yes
17500 # Check whether --with-ldap-dir was given.
17501 if test "${with_ldap_dir+set}" = set; then :
17502 withval=$with_ldap_dir;
17503 if test "x$withval" != "xno" ; then
17504 alpine_LDAPDIR="${withval}"
17505 alpine_LDAPINCLUDE="${alpine_LDAPDIR}/include"
17506 alpine_LDAPLIB="${alpine_LDAPDIR}/lib"
17513 # Check whether --with-ldap-include-dir was given.
17514 if test "${with_ldap_include_dir+set}" = set; then :
17515 withval=$with_ldap_include_dir;
17516 if test "x$withval" != "xno" ; then
17517 alpine_LDAPINCLUDE="$withval"
17524 # Check whether --with-ldap-lib-dir was given.
17525 if test "${with_ldap_lib_dir+set}" = set; then :
17526 withval=$with_ldap_lib_dir;
17527 if test "x$withval" != "xno" ; then
17528 alpine_LDAPLIB="${withval}"
17534 if test -n "$alpine_LDAPINCLUDE" ; then
17535 CPPFLAGS="$CPPFLAGS -I${alpine_LDAPINCLUDE}/include"
17537 if test -n "$alpine_LDAPLIB" ; then
17538 LDFLAGS="$LDFLAGS -L${alpine_LDAPLIB}/lib"
17543 # Check whether --with-smime was given.
17544 if test "${with_smime+set}" = set; then :
17545 withval=$with_smime; with_smime=$withval
17550 # Check whether --with-tcl was given.
17551 if test "${with_tcl+set}" = set; then :
17552 withval=$with_tcl; with_tcl=$withval
17556 if test "x$with_tcl" = "xno" ; then
17557 WEB_BUILD=
17558 { $as_echo "$as_me:${as_lineno-$LINENO}: Excluding TCL Support, and thus Web Alpine Support" >&5
17559 $as_echo "$as_me: Excluding TCL Support, and thus Web Alpine Support" >&6;}
17560 else
17562 # Check whether --with-tcl-lib-dir was given.
17563 if test "${with_tcl_lib_dir+set}" = set; then :
17564 withval=$with_tcl_lib_dir;
17565 if test "x$withval" != "xno" ; then
17566 alpine_TCLLIBDIR=$withval
17567 if test -n "$alpine_TCLLIBDIR" ; then
17568 LDFLAGS="-L$alpine_TCLLIBDIR $LDFLAGS"
17575 # Check whether --with-tcl-lib was given.
17576 if test "${with_tcl_lib+set}" = set; then :
17577 withval=$with_tcl_lib;
17578 if test "x$withval" != "xno" ; then
17579 alpine_TCLLIB=$withval
17585 # Check whether --with-tcl-include was given.
17586 if test "${with_tcl_include+set}" = set; then :
17587 withval=$with_tcl_include;
17588 if test "x$withval" != "xno" ; then
17589 CPPFLAGS="$CPPFLAGS -I$withval"
17590 alpine_TCLINC=$withval
17598 # Check whether --with-supplied-regex was given.
17599 if test "${with_supplied_regex+set}" = set; then :
17600 withval=$with_supplied_regex; alpine_REGEX=$withval
17605 # Check whether --with-pthread was given.
17606 if test "${with_pthread+set}" = set; then :
17607 withval=$with_pthread; with_pthread=$withval
17612 # Check whether --with-system-mail-directory was given.
17613 if test "${with_system_mail_directory+set}" = set; then :
17614 withval=$with_system_mail_directory;
17615 if test "x$withval" != "xno" ; then
17616 alpine_with_local_maildir="$withval"
17623 # Check whether --with-c-client-target was given.
17624 if test "${with_c_client_target+set}" = set; then :
17625 withval=$with_c_client_target;
17626 if test "x$withval" != "xno" ;then
17627 alpine_with_c_client_target="$withval"
17634 alpine_c_client_bundled="no"
17636 # Check whether --with-bundled-tools was given.
17637 if test "${with_bundled_tools+set}" = set; then :
17638 withval=$with_bundled_tools;
17639 if test "x$withval" = "xyes" ; then
17640 alpine_c_client_bundled=""
17646 alpine_PAM="none"
17648 case "$host" in
17649 *-linux*|*-k*bsd*-gnu*|*-gnu*)
17650 alpine_path_delim="/"
17651 alpine_mode_readonly="(0600)"
17652 if test -f /etc/fedora-release ; then
17653 systype="LFD"
17654 alpine_PAM="yes"
17655 if test -d /etc/pki/tls ; then
17656 alpine_c_client_target="lfd"
17657 else
17658 alpine_c_client_target="lrh"
17660 elif test -f /etc/mandrake-release ; then
17661 systype="LMD"
17662 alpine_c_client_target="lmd"
17663 alpine_PAM="yes"
17664 elif test -f /etc/redhat-release -o -f /etc/redhat_version ; then
17665 systype="LRH"
17666 alpine_PAM="yes"
17667 if test -d /etc/pki/tls ; then
17668 alpine_c_client_target="lr5"
17669 else
17670 alpine_c_client_target="lrh"
17672 elif test -f /etc/debian_release -o -f /etc/debian_version ; then
17673 if test -d /etc/osso-af-init ; then
17674 systype="LN8"
17675 alpine_c_client_target="ln8"
17676 else
17677 systype="DEB"
17678 alpine_c_client_target="ldb"
17679 alpine_PAM="yes"
17681 elif test -f /etc/SuSE-release; then
17682 systype="LSU"
17683 alpine_c_client_target="lsu"
17684 alpine_PAM="yes"
17685 else
17686 systype="LNX"
17687 if test -z "$alpine_c_client_bundled" ; then
17688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for am_start in -lpam" >&5
17689 $as_echo_n "checking for am_start in -lpam... " >&6; }
17690 if ${ac_cv_lib_pam_am_start+:} false; then :
17691 $as_echo_n "(cached) " >&6
17692 else
17693 ac_check_lib_save_LIBS=$LIBS
17694 LIBS="-lpam $LIBS"
17695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17696 /* end confdefs.h. */
17698 /* Override any GCC internal prototype to avoid an error.
17699 Use char because int might match the return type of a GCC
17700 builtin and then its argument prototype would still apply. */
17701 #ifdef __cplusplus
17702 extern "C"
17703 #endif
17704 char am_start ();
17706 main ()
17708 return am_start ();
17710 return 0;
17712 _ACEOF
17713 if ac_fn_c_try_link "$LINENO"; then :
17714 ac_cv_lib_pam_am_start=yes
17715 else
17716 ac_cv_lib_pam_am_start=no
17718 rm -f core conftest.err conftest.$ac_objext \
17719 conftest$ac_exeext conftest.$ac_ext
17720 LIBS=$ac_check_lib_save_LIBS
17722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_am_start" >&5
17723 $as_echo "$ac_cv_lib_pam_am_start" >&6; }
17724 if test "x$ac_cv_lib_pam_am_start" = xyes; then :
17726 alpine_c_client_target="lnp"
17727 alpine_PAM="yes"
17729 else
17731 if test -f /etc/shadow ; then
17732 alpine_c_client_target="slx"
17733 else
17734 alpine_c_client_target="lnx"
17739 else
17740 if test -f /etc/shadow ; then
17741 alpine_c_client_target="slx"
17742 else
17743 alpine_c_client_target="lnx"
17748 *-apple-darwin*)
17749 systype="OSX"
17750 alpine_path_delim="/"
17751 alpine_mode_readonly="(0600)"
17752 LIBS="$LIBS -framework Carbon -framework ApplicationServices -framework Security"
17753 AM_CFLAGS="$AM_CFLAGS -Dbsd"
17755 $as_echo "#define OSX_TARGET 1" >>confdefs.h
17757 case "$alpine_os_credential_cache" in
17762 $as_echo "#define APPLEKEYCHAIN 1" >>confdefs.h
17765 esac
17766 if test -z "$alpine_c_client_bundled" ; then
17767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
17768 $as_echo_n "checking for pam_start in -lpam... " >&6; }
17769 if ${ac_cv_lib_pam_pam_start+:} false; then :
17770 $as_echo_n "(cached) " >&6
17771 else
17772 ac_check_lib_save_LIBS=$LIBS
17773 LIBS="-lpam $LIBS"
17774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17775 /* end confdefs.h. */
17777 /* Override any GCC internal prototype to avoid an error.
17778 Use char because int might match the return type of a GCC
17779 builtin and then its argument prototype would still apply. */
17780 #ifdef __cplusplus
17781 extern "C"
17782 #endif
17783 char pam_start ();
17785 main ()
17787 return pam_start ();
17789 return 0;
17791 _ACEOF
17792 if ac_fn_c_try_link "$LINENO"; then :
17793 ac_cv_lib_pam_pam_start=yes
17794 else
17795 ac_cv_lib_pam_pam_start=no
17797 rm -f core conftest.err conftest.$ac_objext \
17798 conftest$ac_exeext conftest.$ac_ext
17799 LIBS=$ac_check_lib_save_LIBS
17801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
17802 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
17803 if test "x$ac_cv_lib_pam_pam_start" = xyes; then :
17805 ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
17806 if test "x$ac_cv_header_security_pam_appl_h" = xyes; then :
17808 alpine_PAM="yes"
17809 alpine_c_client_target="oxs"
17811 else
17812 ac_fn_c_check_header_mongrel "$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default"
17813 if test "x$ac_cv_header_pam_pam_appl_h" = xyes; then :
17815 alpine_PAM="yes"
17816 alpine_c_client_target="oxp"
17818 else
17820 alpine_PAM="none"
17821 alpine_pam_none_reason="header files not found"
17831 else
17833 alpine_c_client_target="osx"
17837 else
17838 alpine_c_client_target="osx"
17841 *-*-solaris*)
17842 if test x$GCC = "xyes" ; then
17843 systype="GSO"
17844 alpine_c_client_target="gso"
17845 CFLAGS="$CFLAGS -D__USE_LEGACY_PROTOTYPES__"
17846 else
17847 systype="SOC"
17848 alpine_c_client_target="soc"
17850 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
17853 alpine_path_delim="/"
17854 alpine_mode_readonly="(0600)"
17856 *-*-sunos4*)
17857 systype="SUN"
17858 alpine_path_delim="/"
17859 alpine_mode_readonly="(0600)"
17860 alpine_c_client_target="s40"
17862 *-*-sco3.2v5*)
17863 if test x$GCC = "xyes" ; then
17864 systype="GO5"
17865 alpine_c_client_target="go5"
17866 else
17867 systype="SC5"
17868 alpine_c_client_target="sc5"
17870 alpine_path_delim="/"
17871 alpine_mode_readonly="(0600)"
17873 *-next-*)
17874 systype="NXT"
17875 alpine_path_delim="/"
17876 alpine_mode_readonly="(0600)"
17877 alpine_c_client_target="nx3"
17879 *-*-netbsd*)
17880 systype="NEB"
17881 alpine_path_delim="/"
17882 alpine_mode_readonly="(0600)"
17883 alpine_c_client_target="neb"
17885 *-*-hpux9*)
17886 systype="HPP"
17887 alpine_path_delim="/"
17888 alpine_mode_readonly="(0600)"
17889 alpine_c_client_target="gh9"
17891 *-*-dragonfly*)
17892 systype="DFB"
17893 alpine_path_delim="/"
17894 alpine_mode_readonly="(0600)"
17895 alpine_c_client_target="neb"
17897 *-*-bsdi*)
17898 systype="BSI"
17899 alpine_path_delim="/"
17900 alpine_mode_readonly="(0600)"
17901 alpine_c_client_target="bsi"
17903 *-*-freebsd*)
17904 systype="BSF"
17905 alpine_path_delim="/"
17906 alpine_mode_readonly="(0600)"
17907 alpine_c_client_target="bsf"
17908 LIBS="$LIBS $LIBINTL"
17910 *-*-openbsd*)
17911 systype="BSO"
17912 alpine_path_delim="/"
17913 alpine_mode_readonly="(0600)"
17914 alpine_c_client_target="bso"
17915 LIBS="$LIBS $LIBINTL"
17917 *-*-aix5*)
17918 systype="A52"
17919 alpine_path_delim="/"
17920 alpine_mode_readonly="(0600)"
17921 alpine_c_client_target="a52"
17923 *-*-aix4*)
17924 systype="A41"
17925 alpine_path_delim="/"
17926 alpine_mode_readonly="(0600)"
17927 alpine_c_client_target="a41"
17929 *-*-aix3*)
17930 systype="A32"
17931 alpine_path_delim="/"
17932 alpine_mode_readonly="(0600)"
17933 alpine_c_client_target="a32"
17935 *-*UNIX_SV | *-*-sysv5UnixWare7* | *-*OpenUNIX*)
17936 systype="UW2"
17937 alpine_path_delim="/"
17938 alpine_mode_readonly="(0600)"
17939 alpine_c_client_target="uw2"
17941 *-*-osf5*)
17942 systype="OSF"
17943 alpine_path_delim="/"
17944 alpine_mode_readonly="(0600)"
17945 alpine_c_client_target="osf"
17947 *-*-cygwin)
17948 systype="CYG"
17949 alpine_path_delim="/"
17950 alpine_mode_readonly="(S_IREAD | S_IWRITE)"
17951 alpine_c_client_target="cyg"
17952 LIBS="$LIBS $LIBINTL"
17954 windows* | *-*-pw32*)
17955 systype="WNT"
17956 alpine_path_delim="\\"
17957 alpine_mode_readonly="(S_IREAD | S_IWRITE)"
17958 alpine_c_client_target="wnt"
17960 $as_echo "#define _WINDOWS 1" >>confdefs.h
17964 as_fn_error $? "Unrecognized system: $host" "$LINENO" 5
17966 esac
17969 # Check whether --with-ipv6 was given.
17970 if test "${with_ipv6+set}" = set; then :
17971 withval=$with_ipv6; with_ipv6=$withval
17975 if test "x$with_ipv6" = "xno" ; then
17976 { $as_echo "$as_me:${as_lineno-$LINENO}: Excluding IPv6 Support" >&5
17977 $as_echo "$as_me: Excluding IPv6 Support" >&6;}
17978 c_client_specials="${c_client_specials}IP6=4 "
17979 c_client_ip6="true"
17980 else
17981 c_client_ip6="touch imap/ip6"
17986 if test x$enable_dmalloc = "xyes" ; then
17987 if test "x$with_pthread" = "xyes" ; then
17988 dmalloc_lib=dmallocth
17989 else
17990 dmalloc_lib=dmalloc
17993 as_ac_Lib=`$as_echo "ac_cv_lib_$dmalloc_lib''_dmalloc_shutdown" | $as_tr_sh`
17994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dmalloc_shutdown in -l$dmalloc_lib" >&5
17995 $as_echo_n "checking for dmalloc_shutdown in -l$dmalloc_lib... " >&6; }
17996 if eval \${$as_ac_Lib+:} false; then :
17997 $as_echo_n "(cached) " >&6
17998 else
17999 ac_check_lib_save_LIBS=$LIBS
18000 LIBS="-l$dmalloc_lib $LIBS"
18001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18002 /* end confdefs.h. */
18004 /* Override any GCC internal prototype to avoid an error.
18005 Use char because int might match the return type of a GCC
18006 builtin and then its argument prototype would still apply. */
18007 #ifdef __cplusplus
18008 extern "C"
18009 #endif
18010 char dmalloc_shutdown ();
18012 main ()
18014 return dmalloc_shutdown ();
18016 return 0;
18018 _ACEOF
18019 if ac_fn_c_try_link "$LINENO"; then :
18020 eval "$as_ac_Lib=yes"
18021 else
18022 eval "$as_ac_Lib=no"
18024 rm -f core conftest.err conftest.$ac_objext \
18025 conftest$ac_exeext conftest.$ac_ext
18026 LIBS=$ac_check_lib_save_LIBS
18028 eval ac_res=\$$as_ac_Lib
18029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18030 $as_echo "$ac_res" >&6; }
18031 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
18032 cat >>confdefs.h <<_ACEOF
18033 #define `$as_echo "HAVE_LIB$dmalloc_lib" | $as_tr_cpp` 1
18034 _ACEOF
18036 LIBS="-l$dmalloc_lib $LIBS"
18038 else
18040 as_fn_error but -ldmalloc not found "$dmalloc_lib requested" "$LINENO" 5
18046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setupterm in -ltinfo" >&5
18047 $as_echo_n "checking for setupterm in -ltinfo... " >&6; }
18048 if ${ac_cv_lib_tinfo_setupterm+:} false; then :
18049 $as_echo_n "(cached) " >&6
18050 else
18051 ac_check_lib_save_LIBS=$LIBS
18052 LIBS="-ltinfo $LIBS"
18053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18054 /* end confdefs.h. */
18056 /* Override any GCC internal prototype to avoid an error.
18057 Use char because int might match the return type of a GCC
18058 builtin and then its argument prototype would still apply. */
18059 #ifdef __cplusplus
18060 extern "C"
18061 #endif
18062 char setupterm ();
18064 main ()
18066 return setupterm ();
18068 return 0;
18070 _ACEOF
18071 if ac_fn_c_try_link "$LINENO"; then :
18072 ac_cv_lib_tinfo_setupterm=yes
18073 else
18074 ac_cv_lib_tinfo_setupterm=no
18076 rm -f core conftest.err conftest.$ac_objext \
18077 conftest$ac_exeext conftest.$ac_ext
18078 LIBS=$ac_check_lib_save_LIBS
18080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_setupterm" >&5
18081 $as_echo "$ac_cv_lib_tinfo_setupterm" >&6; }
18082 if test "x$ac_cv_lib_tinfo_setupterm" = xyes; then :
18084 alpine_termdata=info
18085 LIBS="$LIBS -ltinfo"
18087 else
18089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setupterm in -lncurses" >&5
18090 $as_echo_n "checking for setupterm in -lncurses... " >&6; }
18091 if ${ac_cv_lib_ncurses_setupterm+:} false; then :
18092 $as_echo_n "(cached) " >&6
18093 else
18094 ac_check_lib_save_LIBS=$LIBS
18095 LIBS="-lncurses $LIBS"
18096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18097 /* end confdefs.h. */
18099 /* Override any GCC internal prototype to avoid an error.
18100 Use char because int might match the return type of a GCC
18101 builtin and then its argument prototype would still apply. */
18102 #ifdef __cplusplus
18103 extern "C"
18104 #endif
18105 char setupterm ();
18107 main ()
18109 return setupterm ();
18111 return 0;
18113 _ACEOF
18114 if ac_fn_c_try_link "$LINENO"; then :
18115 ac_cv_lib_ncurses_setupterm=yes
18116 else
18117 ac_cv_lib_ncurses_setupterm=no
18119 rm -f core conftest.err conftest.$ac_objext \
18120 conftest$ac_exeext conftest.$ac_ext
18121 LIBS=$ac_check_lib_save_LIBS
18123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_setupterm" >&5
18124 $as_echo "$ac_cv_lib_ncurses_setupterm" >&6; }
18125 if test "x$ac_cv_lib_ncurses_setupterm" = xyes; then :
18127 alpine_termdata=info
18128 LIBS="$LIBS -lncurses"
18130 else
18132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setupterm in -lcurses" >&5
18133 $as_echo_n "checking for setupterm in -lcurses... " >&6; }
18134 if ${ac_cv_lib_curses_setupterm+:} false; then :
18135 $as_echo_n "(cached) " >&6
18136 else
18137 ac_check_lib_save_LIBS=$LIBS
18138 LIBS="-lcurses $LIBS"
18139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18140 /* end confdefs.h. */
18142 /* Override any GCC internal prototype to avoid an error.
18143 Use char because int might match the return type of a GCC
18144 builtin and then its argument prototype would still apply. */
18145 #ifdef __cplusplus
18146 extern "C"
18147 #endif
18148 char setupterm ();
18150 main ()
18152 return setupterm ();
18154 return 0;
18156 _ACEOF
18157 if ac_fn_c_try_link "$LINENO"; then :
18158 ac_cv_lib_curses_setupterm=yes
18159 else
18160 ac_cv_lib_curses_setupterm=no
18162 rm -f core conftest.err conftest.$ac_objext \
18163 conftest$ac_exeext conftest.$ac_ext
18164 LIBS=$ac_check_lib_save_LIBS
18166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_setupterm" >&5
18167 $as_echo "$ac_cv_lib_curses_setupterm" >&6; }
18168 if test "x$ac_cv_lib_curses_setupterm" = xyes; then :
18170 alpine_termdata=info
18171 LIBS="$LIBS -lcurses"
18173 else
18175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermlib" >&5
18176 $as_echo_n "checking for tgetent in -ltermlib... " >&6; }
18177 if ${ac_cv_lib_termlib_tgetent+:} false; then :
18178 $as_echo_n "(cached) " >&6
18179 else
18180 ac_check_lib_save_LIBS=$LIBS
18181 LIBS="-ltermlib $LIBS"
18182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18183 /* end confdefs.h. */
18185 /* Override any GCC internal prototype to avoid an error.
18186 Use char because int might match the return type of a GCC
18187 builtin and then its argument prototype would still apply. */
18188 #ifdef __cplusplus
18189 extern "C"
18190 #endif
18191 char tgetent ();
18193 main ()
18195 return tgetent ();
18197 return 0;
18199 _ACEOF
18200 if ac_fn_c_try_link "$LINENO"; then :
18201 ac_cv_lib_termlib_tgetent=yes
18202 else
18203 ac_cv_lib_termlib_tgetent=no
18205 rm -f core conftest.err conftest.$ac_objext \
18206 conftest$ac_exeext conftest.$ac_ext
18207 LIBS=$ac_check_lib_save_LIBS
18209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termlib_tgetent" >&5
18210 $as_echo "$ac_cv_lib_termlib_tgetent" >&6; }
18211 if test "x$ac_cv_lib_termlib_tgetent" = xyes; then :
18213 alpine_termdata=cap
18214 LIBS="$LIBS -ltermlib"
18216 else
18218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
18219 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
18220 if ${ac_cv_lib_termcap_tgetent+:} false; then :
18221 $as_echo_n "(cached) " >&6
18222 else
18223 ac_check_lib_save_LIBS=$LIBS
18224 LIBS="-ltermcap $LIBS"
18225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18226 /* end confdefs.h. */
18228 /* Override any GCC internal prototype to avoid an error.
18229 Use char because int might match the return type of a GCC
18230 builtin and then its argument prototype would still apply. */
18231 #ifdef __cplusplus
18232 extern "C"
18233 #endif
18234 char tgetent ();
18236 main ()
18238 return tgetent ();
18240 return 0;
18242 _ACEOF
18243 if ac_fn_c_try_link "$LINENO"; then :
18244 ac_cv_lib_termcap_tgetent=yes
18245 else
18246 ac_cv_lib_termcap_tgetent=no
18248 rm -f core conftest.err conftest.$ac_objext \
18249 conftest$ac_exeext conftest.$ac_ext
18250 LIBS=$ac_check_lib_save_LIBS
18252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
18253 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
18254 if test "x$ac_cv_lib_termcap_tgetent" = xyes; then :
18256 alpine_termdata=cap
18257 LIBS="$LIBS -ltermcap"
18259 else
18261 as_fn_error $? "Terminfo/termcap not found" "$LINENO" 5
18277 case $alpine_termdata in
18278 info)
18280 $as_echo "#define HAS_TERMINFO 1" >>confdefs.h
18283 cap)
18285 $as_echo "#define HAS_TERMCAP 1" >>confdefs.h
18288 esac
18290 alpine_dlopen="yes"
18292 # Check whether --with-dlopen was given.
18293 if test "${with_dlopen+set}" = set; then :
18294 withval=$with_dlopen;
18295 alpine_dlopen=$withval
18300 if test "x$alpine_dlopen" != "xno" ; then
18301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
18302 $as_echo_n "checking for library containing dlopen... " >&6; }
18303 if ${ac_cv_search_dlopen+:} false; then :
18304 $as_echo_n "(cached) " >&6
18305 else
18306 ac_func_search_save_LIBS=$LIBS
18307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18308 /* end confdefs.h. */
18310 /* Override any GCC internal prototype to avoid an error.
18311 Use char because int might match the return type of a GCC
18312 builtin and then its argument prototype would still apply. */
18313 #ifdef __cplusplus
18314 extern "C"
18315 #endif
18316 char dlopen ();
18318 main ()
18320 return dlopen ();
18322 return 0;
18324 _ACEOF
18325 for ac_lib in '' dl dld; do
18326 if test -z "$ac_lib"; then
18327 ac_res="none required"
18328 else
18329 ac_res=-l$ac_lib
18330 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18332 if ac_fn_c_try_link "$LINENO"; then :
18333 ac_cv_search_dlopen=$ac_res
18335 rm -f core conftest.err conftest.$ac_objext \
18336 conftest$ac_exeext
18337 if ${ac_cv_search_dlopen+:} false; then :
18338 break
18340 done
18341 if ${ac_cv_search_dlopen+:} false; then :
18343 else
18344 ac_cv_search_dlopen=no
18346 rm conftest.$ac_ext
18347 LIBS=$ac_func_search_save_LIBS
18349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
18350 $as_echo "$ac_cv_search_dlopen" >&6; }
18351 ac_res=$ac_cv_search_dlopen
18352 if test "$ac_res" != no; then :
18353 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18355 else
18356 alpine_DL="none"
18359 if test "x$alpine_DL" = "xnone" ; then
18360 as_fn_error $? "No library containing dlopen found" "$LINENO" 5
18361 exit 1
18364 if test "x$alpine_SSLTYPE" != "xnone" ; then
18365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OpenSSL is LibreSSL" >&5
18366 $as_echo_n "checking if OpenSSL is LibreSSL... " >&6; }
18367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18368 /* end confdefs.h. */
18370 #include <stdio.h>
18371 #include <stdlib.h>
18372 #if HAVE_STDINT_H
18373 #include <stdint.h>
18374 #endif /* HAVE_STDINT_H */
18375 #include <openssl/ssl.h>
18378 main ()
18381 #if OPENSSL_VERSION_NUMBER != 0x20000000L
18382 #error
18383 #endif
18386 return 0;
18388 _ACEOF
18389 if ac_fn_c_try_compile "$LINENO"; then :
18390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18391 $as_echo "yes" >&6; }
18392 alpine_SSLPROVIDER="libressl"
18394 else
18395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18396 $as_echo "no" >&6; }
18399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18402 if test "x$alpine_SSLTYPE" != "xnone" -a "x$alpine_SSLPROVIDER" != "xlibressl" ; then
18403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Openssl library version >= 1.0.0c" >&5
18404 $as_echo_n "checking Openssl library version >= 1.0.0c... " >&6; }
18405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18406 /* end confdefs.h. */
18408 #include <stdio.h>
18409 #include <stdlib.h>
18410 #if HAVE_STDINT_H
18411 #include <stdint.h>
18412 #endif /* HAVE_STDINT_H */
18413 #include <openssl/ssl.h>
18416 main ()
18419 #if OPENSSL_VERSION_NUMBER < 0x1000003fL
18420 #error
18421 #endif
18424 return 0;
18426 _ACEOF
18427 if ac_fn_c_try_compile "$LINENO"; then :
18428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18429 $as_echo "yes" >&6; }
18430 alpine_SSLPROVIDER="openssl"
18432 else
18433 alpine_SSLTYPE="none"
18435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18437 if test "x$alpine_SSLTYPE" = "xnone" ; then
18438 as_fn_error $? "Install openssl version >= 1.0.0c" "$LINENO" 5
18439 exit 1
18443 if test "x$alpine_SSLTYPE" != "xnone" -a "x$alpine_SSLPROVIDER" != "xlibressl" ; then
18444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Openssl library version >= 1.1.0" >&5
18445 $as_echo_n "checking Openssl library version >= 1.1.0... " >&6; }
18446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18447 /* end confdefs.h. */
18449 #include <stdio.h>
18450 #include <stdlib.h>
18451 #if HAVE_STDINT_H
18452 #include <stdint.h>
18453 #endif /* HAVE_STDINT_H */
18454 #include <openssl/ssl.h>
18457 main ()
18460 #if OPENSSL_VERSION_NUMBER < 0x10100000L
18461 #error
18462 #endif
18465 return 0;
18467 _ACEOF
18468 if ac_fn_c_try_compile "$LINENO"; then :
18469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18470 $as_echo "yes" >&6; }
18471 alpine_SSLVERSION="new"
18472 CFLAGS="$CFLAGS -DOPENSSL_1_1_0 -DOPENSSL_API_COMPAT=0x10100000L"
18474 else
18475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18476 $as_echo "no" >&6; }
18477 alpine_SSLVERSION="old"
18479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18482 if test "x$alpine_SSLTYPE" != "xnone" ; then
18483 if test "x$alpine_SSLVERSION" = "xold" ; then
18484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSLeay" >&5
18485 $as_echo_n "checking for library containing SSLeay... " >&6; }
18486 if ${ac_cv_search_SSLeay+:} false; then :
18487 $as_echo_n "(cached) " >&6
18488 else
18489 ac_func_search_save_LIBS=$LIBS
18490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18491 /* end confdefs.h. */
18493 /* Override any GCC internal prototype to avoid an error.
18494 Use char because int might match the return type of a GCC
18495 builtin and then its argument prototype would still apply. */
18496 #ifdef __cplusplus
18497 extern "C"
18498 #endif
18499 char SSLeay ();
18501 main ()
18503 return SSLeay ();
18505 return 0;
18507 _ACEOF
18508 for ac_lib in '' crypto; do
18509 if test -z "$ac_lib"; then
18510 ac_res="none required"
18511 else
18512 ac_res=-l$ac_lib
18513 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18515 if ac_fn_c_try_link "$LINENO"; then :
18516 ac_cv_search_SSLeay=$ac_res
18518 rm -f core conftest.err conftest.$ac_objext \
18519 conftest$ac_exeext
18520 if ${ac_cv_search_SSLeay+:} false; then :
18521 break
18523 done
18524 if ${ac_cv_search_SSLeay+:} false; then :
18526 else
18527 ac_cv_search_SSLeay=no
18529 rm conftest.$ac_ext
18530 LIBS=$ac_func_search_save_LIBS
18532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SSLeay" >&5
18533 $as_echo "$ac_cv_search_SSLeay" >&6; }
18534 ac_res=$ac_cv_search_SSLeay
18535 if test "$ac_res" != no; then :
18536 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18538 else
18539 alpine_CRYPTO="none"
18542 else
18543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing OpenSSL_version_num" >&5
18544 $as_echo_n "checking for library containing OpenSSL_version_num... " >&6; }
18545 if ${ac_cv_search_OpenSSL_version_num+:} false; then :
18546 $as_echo_n "(cached) " >&6
18547 else
18548 ac_func_search_save_LIBS=$LIBS
18549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18550 /* end confdefs.h. */
18552 /* Override any GCC internal prototype to avoid an error.
18553 Use char because int might match the return type of a GCC
18554 builtin and then its argument prototype would still apply. */
18555 #ifdef __cplusplus
18556 extern "C"
18557 #endif
18558 char OpenSSL_version_num ();
18560 main ()
18562 return OpenSSL_version_num ();
18564 return 0;
18566 _ACEOF
18567 for ac_lib in '' crypto; do
18568 if test -z "$ac_lib"; then
18569 ac_res="none required"
18570 else
18571 ac_res=-l$ac_lib
18572 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18574 if ac_fn_c_try_link "$LINENO"; then :
18575 ac_cv_search_OpenSSL_version_num=$ac_res
18577 rm -f core conftest.err conftest.$ac_objext \
18578 conftest$ac_exeext
18579 if ${ac_cv_search_OpenSSL_version_num+:} false; then :
18580 break
18582 done
18583 if ${ac_cv_search_OpenSSL_version_num+:} false; then :
18585 else
18586 ac_cv_search_OpenSSL_version_num=no
18588 rm conftest.$ac_ext
18589 LIBS=$ac_func_search_save_LIBS
18591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_OpenSSL_version_num" >&5
18592 $as_echo "$ac_cv_search_OpenSSL_version_num" >&6; }
18593 ac_res=$ac_cv_search_OpenSSL_version_num
18594 if test "$ac_res" != no; then :
18595 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18597 else
18598 alpine_CRYPTO="none"
18602 if test "x$alpine_CRYPTO" = "xnone" ; then
18603 as_fn_error $? "crypto library NOT found" "$LINENO" 5
18604 exit 1
18606 case $host in
18607 *-*-cygwin)
18608 ac_fn_c_check_header_mongrel "$LINENO" "crypto.h" "ac_cv_header_crypto_h" "$ac_includes_default"
18609 if test "x$ac_cv_header_crypto_h" = xyes; then :
18611 else
18612 alpine_CRYPTO_DEVEL="none"
18616 if test "x$alpine_CRYPTO_DEVEL" = "xnone" ; then
18617 as_fn_error $? "crypto library file crypto.h NOT found. Install corresponding libcrypt-devel package" "$LINENO" 5
18618 exit 1
18621 *) ;;
18622 esac
18625 if test "x$alpine_SSLTYPE" != "xnone" ; then
18626 if test "x$alpine_SSLVERSION" = "xold" ; then
18627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSL_library_init" >&5
18628 $as_echo_n "checking for library containing SSL_library_init... " >&6; }
18629 if ${ac_cv_search_SSL_library_init+:} false; then :
18630 $as_echo_n "(cached) " >&6
18631 else
18632 ac_func_search_save_LIBS=$LIBS
18633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18634 /* end confdefs.h. */
18636 /* Override any GCC internal prototype to avoid an error.
18637 Use char because int might match the return type of a GCC
18638 builtin and then its argument prototype would still apply. */
18639 #ifdef __cplusplus
18640 extern "C"
18641 #endif
18642 char SSL_library_init ();
18644 main ()
18646 return SSL_library_init ();
18648 return 0;
18650 _ACEOF
18651 for ac_lib in '' ssl; do
18652 if test -z "$ac_lib"; then
18653 ac_res="none required"
18654 else
18655 ac_res=-l$ac_lib
18656 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18658 if ac_fn_c_try_link "$LINENO"; then :
18659 ac_cv_search_SSL_library_init=$ac_res
18661 rm -f core conftest.err conftest.$ac_objext \
18662 conftest$ac_exeext
18663 if ${ac_cv_search_SSL_library_init+:} false; then :
18664 break
18666 done
18667 if ${ac_cv_search_SSL_library_init+:} false; then :
18669 else
18670 ac_cv_search_SSL_library_init=no
18672 rm conftest.$ac_ext
18673 LIBS=$ac_func_search_save_LIBS
18675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SSL_library_init" >&5
18676 $as_echo "$ac_cv_search_SSL_library_init" >&6; }
18677 ac_res=$ac_cv_search_SSL_library_init
18678 if test "$ac_res" != no; then :
18679 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18681 else
18682 alpine_SSLTYPE="none"
18685 if test "x$alpine_SSLTYPE" = "xnone" ; then
18686 as_fn_error $? "No library containing SSL_library_init found in your path" "$LINENO" 5
18687 exit 1
18689 else
18690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing OPENSSL_init_ssl" >&5
18691 $as_echo_n "checking for library containing OPENSSL_init_ssl... " >&6; }
18692 if ${ac_cv_search_OPENSSL_init_ssl+:} false; then :
18693 $as_echo_n "(cached) " >&6
18694 else
18695 ac_func_search_save_LIBS=$LIBS
18696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18697 /* end confdefs.h. */
18699 /* Override any GCC internal prototype to avoid an error.
18700 Use char because int might match the return type of a GCC
18701 builtin and then its argument prototype would still apply. */
18702 #ifdef __cplusplus
18703 extern "C"
18704 #endif
18705 char OPENSSL_init_ssl ();
18707 main ()
18709 return OPENSSL_init_ssl ();
18711 return 0;
18713 _ACEOF
18714 for ac_lib in '' ssl; do
18715 if test -z "$ac_lib"; then
18716 ac_res="none required"
18717 else
18718 ac_res=-l$ac_lib
18719 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18721 if ac_fn_c_try_link "$LINENO"; then :
18722 ac_cv_search_OPENSSL_init_ssl=$ac_res
18724 rm -f core conftest.err conftest.$ac_objext \
18725 conftest$ac_exeext
18726 if ${ac_cv_search_OPENSSL_init_ssl+:} false; then :
18727 break
18729 done
18730 if ${ac_cv_search_OPENSSL_init_ssl+:} false; then :
18732 else
18733 ac_cv_search_OPENSSL_init_ssl=no
18735 rm conftest.$ac_ext
18736 LIBS=$ac_func_search_save_LIBS
18738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_OPENSSL_init_ssl" >&5
18739 $as_echo "$ac_cv_search_OPENSSL_init_ssl" >&6; }
18740 ac_res=$ac_cv_search_OPENSSL_init_ssl
18741 if test "$ac_res" != no; then :
18742 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18744 else
18745 alpine_SSLTYPE="none"
18748 if test "x$aalpiLlpine_SSLTYPE" = "xnone" ; then
18749 as_fn_error $? "No library containing OPENSSL_init_ssl found in your path" "$LINENO" 5
18750 exit 1
18755 if test "$alpine_with_ldap" = "yes" ; then
18756 alpine_has_ldap=
18757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_alloc in -llber" >&5
18758 $as_echo_n "checking for ber_alloc in -llber... " >&6; }
18759 if ${ac_cv_lib_lber_ber_alloc+:} false; then :
18760 $as_echo_n "(cached) " >&6
18761 else
18762 ac_check_lib_save_LIBS=$LIBS
18763 LIBS="-llber $LIBS"
18764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18765 /* end confdefs.h. */
18767 /* Override any GCC internal prototype to avoid an error.
18768 Use char because int might match the return type of a GCC
18769 builtin and then its argument prototype would still apply. */
18770 #ifdef __cplusplus
18771 extern "C"
18772 #endif
18773 char ber_alloc ();
18775 main ()
18777 return ber_alloc ();
18779 return 0;
18781 _ACEOF
18782 if ac_fn_c_try_link "$LINENO"; then :
18783 ac_cv_lib_lber_ber_alloc=yes
18784 else
18785 ac_cv_lib_lber_ber_alloc=no
18787 rm -f core conftest.err conftest.$ac_objext \
18788 conftest$ac_exeext conftest.$ac_ext
18789 LIBS=$ac_check_lib_save_LIBS
18791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_alloc" >&5
18792 $as_echo "$ac_cv_lib_lber_ber_alloc" >&6; }
18793 if test "x$ac_cv_lib_lber_ber_alloc" = xyes; then :
18795 LIBS="$LIBS -llber"
18799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldap_initialize" >&5
18800 $as_echo_n "checking for library containing ldap_initialize... " >&6; }
18801 if ${ac_cv_search_ldap_initialize+:} false; then :
18802 $as_echo_n "(cached) " >&6
18803 else
18804 ac_func_search_save_LIBS=$LIBS
18805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18806 /* end confdefs.h. */
18808 /* Override any GCC internal prototype to avoid an error.
18809 Use char because int might match the return type of a GCC
18810 builtin and then its argument prototype would still apply. */
18811 #ifdef __cplusplus
18812 extern "C"
18813 #endif
18814 char ldap_initialize ();
18816 main ()
18818 return ldap_initialize ();
18820 return 0;
18822 _ACEOF
18823 for ac_lib in '' ldap; do
18824 if test -z "$ac_lib"; then
18825 ac_res="none required"
18826 else
18827 ac_res=-l$ac_lib
18828 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18830 if ac_fn_c_try_link "$LINENO"; then :
18831 ac_cv_search_ldap_initialize=$ac_res
18833 rm -f core conftest.err conftest.$ac_objext \
18834 conftest$ac_exeext
18835 if ${ac_cv_search_ldap_initialize+:} false; then :
18836 break
18838 done
18839 if ${ac_cv_search_ldap_initialize+:} false; then :
18841 else
18842 ac_cv_search_ldap_initialize=no
18844 rm conftest.$ac_ext
18845 LIBS=$ac_func_search_save_LIBS
18847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldap_initialize" >&5
18848 $as_echo "$ac_cv_search_ldap_initialize" >&6; }
18849 ac_res=$ac_cv_search_ldap_initialize
18850 if test "$ac_res" != no; then :
18851 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18853 alpine_has_ldap=yes
18855 else
18857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldap_open" >&5
18858 $as_echo_n "checking for library containing ldap_open... " >&6; }
18859 if ${ac_cv_search_ldap_open+:} false; then :
18860 $as_echo_n "(cached) " >&6
18861 else
18862 ac_func_search_save_LIBS=$LIBS
18863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18864 /* end confdefs.h. */
18866 /* Override any GCC internal prototype to avoid an error.
18867 Use char because int might match the return type of a GCC
18868 builtin and then its argument prototype would still apply. */
18869 #ifdef __cplusplus
18870 extern "C"
18871 #endif
18872 char ldap_open ();
18874 main ()
18876 return ldap_open ();
18878 return 0;
18880 _ACEOF
18881 for ac_lib in '' ldap; do
18882 if test -z "$ac_lib"; then
18883 ac_res="none required"
18884 else
18885 ac_res=-l$ac_lib
18886 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18888 if ac_fn_c_try_link "$LINENO"; then :
18889 ac_cv_search_ldap_open=$ac_res
18891 rm -f core conftest.err conftest.$ac_objext \
18892 conftest$ac_exeext
18893 if ${ac_cv_search_ldap_open+:} false; then :
18894 break
18896 done
18897 if ${ac_cv_search_ldap_open+:} false; then :
18899 else
18900 ac_cv_search_ldap_open=no
18902 rm conftest.$ac_ext
18903 LIBS=$ac_func_search_save_LIBS
18905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldap_open" >&5
18906 $as_echo "$ac_cv_search_ldap_open" >&6; }
18907 ac_res=$ac_cv_search_ldap_open
18908 if test "$ac_res" != no; then :
18909 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18911 alpine_has_ldap=yes
18919 if test "$alpine_has_ldap" = "yes" ; then
18920 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * Including LDAP Support" >&5
18921 $as_echo "$as_me: * * * Including LDAP Support" >&6;}
18923 $as_echo "#define ENABLE_LDAP /**/" >>confdefs.h
18928 if test -z "$alpine_c_client_bundled" ; then
18929 if test "x$alpine_PAM" != "xnone" ; then
18930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pam_start" >&5
18931 $as_echo_n "checking for library containing pam_start... " >&6; }
18932 if ${ac_cv_search_pam_start+:} false; then :
18933 $as_echo_n "(cached) " >&6
18934 else
18935 ac_func_search_save_LIBS=$LIBS
18936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18937 /* end confdefs.h. */
18939 /* Override any GCC internal prototype to avoid an error.
18940 Use char because int might match the return type of a GCC
18941 builtin and then its argument prototype would still apply. */
18942 #ifdef __cplusplus
18943 extern "C"
18944 #endif
18945 char pam_start ();
18947 main ()
18949 return pam_start ();
18951 return 0;
18953 _ACEOF
18954 for ac_lib in '' pam; do
18955 if test -z "$ac_lib"; then
18956 ac_res="none required"
18957 else
18958 ac_res=-l$ac_lib
18959 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18961 if ac_fn_c_try_link "$LINENO"; then :
18962 ac_cv_search_pam_start=$ac_res
18964 rm -f core conftest.err conftest.$ac_objext \
18965 conftest$ac_exeext
18966 if ${ac_cv_search_pam_start+:} false; then :
18967 break
18969 done
18970 if ${ac_cv_search_pam_start+:} false; then :
18972 else
18973 ac_cv_search_pam_start=no
18975 rm conftest.$ac_ext
18976 LIBS=$ac_func_search_save_LIBS
18978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pam_start" >&5
18979 $as_echo "$ac_cv_search_pam_start" >&6; }
18980 ac_res=$ac_cv_search_pam_start
18981 if test "$ac_res" != no; then :
18982 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18984 LIBS="$LIBS -lpam"
18985 ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
18986 if test "x$ac_cv_header_security_pam_appl_h" = xyes; then :
18988 alpine_PAM="yes"
18990 else
18991 ac_fn_c_check_header_mongrel "$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default"
18992 if test "x$ac_cv_header_pam_pam_appl_h" = xyes; then :
18994 alpine_PAM="yes"
18995 if test "x$alpine_c_client_target" != "xoxp" ; then
18996 alpine_PAM="none"
18997 alpine_pam_none_reason="header files not in security/ directory"
19000 else
19002 alpine_PAM="none"
19003 alpine_pam_none_reason="header files not found"
19013 else
19015 alpine_PAM="none"
19016 alpine_pam_none_reason="library files not found"
19020 if test -n "$alpine_pam_none_reason" ; then
19021 as_fn_error or do not use --with-bundled-tools "Trying to build bundled tools but could not find libpam. Install it first and try again" "$LINENO" 5
19026 if test -n "$alpine_c_client_bundled" ; then
19027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
19028 $as_echo_n "checking for library containing crypt... " >&6; }
19029 if ${ac_cv_search_crypt+:} false; then :
19030 $as_echo_n "(cached) " >&6
19031 else
19032 ac_func_search_save_LIBS=$LIBS
19033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19034 /* end confdefs.h. */
19036 /* Override any GCC internal prototype to avoid an error.
19037 Use char because int might match the return type of a GCC
19038 builtin and then its argument prototype would still apply. */
19039 #ifdef __cplusplus
19040 extern "C"
19041 #endif
19042 char crypt ();
19044 main ()
19046 return crypt ();
19048 return 0;
19050 _ACEOF
19051 for ac_lib in '' crypt; do
19052 if test -z "$ac_lib"; then
19053 ac_res="none required"
19054 else
19055 ac_res=-l$ac_lib
19056 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19058 if ac_fn_c_try_link "$LINENO"; then :
19059 ac_cv_search_crypt=$ac_res
19061 rm -f core conftest.err conftest.$ac_objext \
19062 conftest$ac_exeext
19063 if ${ac_cv_search_crypt+:} false; then :
19064 break
19066 done
19067 if ${ac_cv_search_crypt+:} false; then :
19069 else
19070 ac_cv_search_crypt=no
19072 rm conftest.$ac_ext
19073 LIBS=$ac_func_search_save_LIBS
19075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
19076 $as_echo "$ac_cv_search_crypt" >&6; }
19077 ac_res=$ac_cv_search_crypt
19078 if test "$ac_res" != no; then :
19079 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19081 else
19083 as_fn_error $? "crypt library not found." "$LINENO" 5
19089 C_CLIENT_BUNDLED=$alpine_c_client_bundled
19092 if test "x$alpine_GSSTYPE" != "xnone" ; then
19093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gss_init_sec_context" >&5
19094 $as_echo_n "checking for library containing gss_init_sec_context... " >&6; }
19095 if ${ac_cv_search_gss_init_sec_context+:} false; then :
19096 $as_echo_n "(cached) " >&6
19097 else
19098 ac_func_search_save_LIBS=$LIBS
19099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19100 /* end confdefs.h. */
19102 /* Override any GCC internal prototype to avoid an error.
19103 Use char because int might match the return type of a GCC
19104 builtin and then its argument prototype would still apply. */
19105 #ifdef __cplusplus
19106 extern "C"
19107 #endif
19108 char gss_init_sec_context ();
19110 main ()
19112 return gss_init_sec_context ();
19114 return 0;
19116 _ACEOF
19117 for ac_lib in '' gss gssapi gssapi_krb5; do
19118 if test -z "$ac_lib"; then
19119 ac_res="none required"
19120 else
19121 ac_res=-l$ac_lib
19122 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19124 if ac_fn_c_try_link "$LINENO"; then :
19125 ac_cv_search_gss_init_sec_context=$ac_res
19127 rm -f core conftest.err conftest.$ac_objext \
19128 conftest$ac_exeext
19129 if ${ac_cv_search_gss_init_sec_context+:} false; then :
19130 break
19132 done
19133 if ${ac_cv_search_gss_init_sec_context+:} false; then :
19135 else
19136 ac_cv_search_gss_init_sec_context=no
19138 rm conftest.$ac_ext
19139 LIBS=$ac_func_search_save_LIBS
19141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gss_init_sec_context" >&5
19142 $as_echo "$ac_cv_search_gss_init_sec_context" >&6; }
19143 ac_res=$ac_cv_search_gss_init_sec_context
19144 if test "$ac_res" != no; then :
19145 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19147 LIBS="$LIBS -lkrb5"
19148 ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi_generic.h" "ac_cv_header_gssapi_gssapi_generic_h" "$ac_includes_default"
19149 if test "x$ac_cv_header_gssapi_gssapi_generic_h" = xyes; then :
19151 else
19153 if test ! -d /usr/kerberos/include ; then
19154 alpine_GSSTYPE="none"
19155 alpine_gss_none_reason="header files not found"
19162 else
19164 alpine_GSSTYPE="none"
19165 alpine_gss_none_reason="libraries not found"
19169 if test -n "$alpine_gss_none_reason" ; then
19170 { $as_echo "$as_me:${as_lineno-$LINENO}: NOT including Kerberos Support: $alpine_gss_none_reason" >&5
19171 $as_echo "$as_me: NOT including Kerberos Support: $alpine_gss_none_reason" >&6;}
19176 # Check whether --with-ntlm was given.
19177 if test "${with_ntlm+set}" = set; then :
19178 withval=$with_ntlm; with_ntlm=$withval
19182 if test "x$with_ntlm" = "xno" ; then
19183 alpine_NTLM="none"
19184 else
19185 alpine_NTLM=
19187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing buildSmbNtlmAuthRequest" >&5
19188 $as_echo_n "checking for library containing buildSmbNtlmAuthRequest... " >&6; }
19189 if ${ac_cv_search_buildSmbNtlmAuthRequest+:} false; then :
19190 $as_echo_n "(cached) " >&6
19191 else
19192 ac_func_search_save_LIBS=$LIBS
19193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19194 /* end confdefs.h. */
19196 /* Override any GCC internal prototype to avoid an error.
19197 Use char because int might match the return type of a GCC
19198 builtin and then its argument prototype would still apply. */
19199 #ifdef __cplusplus
19200 extern "C"
19201 #endif
19202 char buildSmbNtlmAuthRequest ();
19204 main ()
19206 return buildSmbNtlmAuthRequest ();
19208 return 0;
19210 _ACEOF
19211 for ac_lib in '' ntlm; do
19212 if test -z "$ac_lib"; then
19213 ac_res="none required"
19214 else
19215 ac_res=-l$ac_lib
19216 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19218 if ac_fn_c_try_link "$LINENO"; then :
19219 ac_cv_search_buildSmbNtlmAuthRequest=$ac_res
19221 rm -f core conftest.err conftest.$ac_objext \
19222 conftest$ac_exeext
19223 if ${ac_cv_search_buildSmbNtlmAuthRequest+:} false; then :
19224 break
19226 done
19227 if ${ac_cv_search_buildSmbNtlmAuthRequest+:} false; then :
19229 else
19230 ac_cv_search_buildSmbNtlmAuthRequest=no
19232 rm conftest.$ac_ext
19233 LIBS=$ac_func_search_save_LIBS
19235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_buildSmbNtlmAuthRequest" >&5
19236 $as_echo "$ac_cv_search_buildSmbNtlmAuthRequest" >&6; }
19237 ac_res=$ac_cv_search_buildSmbNtlmAuthRequest
19238 if test "$ac_res" != no; then :
19239 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19241 ac_fn_c_check_header_mongrel "$LINENO" "ntlm.h" "ac_cv_header_ntlm_h" "$ac_includes_default"
19242 if test "x$ac_cv_header_ntlm_h" = xyes; then :
19244 extra_auth_ntlm=ntl
19245 { $as_echo "$as_me:${as_lineno-$LINENO}: including NTLM support" >&5
19246 $as_echo "$as_me: including NTLM support" >&6;}
19248 else
19250 alpine_NTLM="none"
19251 alpine_ntlm_none_reason="header file ntlm.h not found"
19257 else
19259 alpine_NTLM="none"
19260 alpine_ntlm_none_reason="ntlm library not found"
19264 if test -n "$alpine_ntlm_none_reason" ; then
19265 { $as_echo "$as_me:${as_lineno-$LINENO}: NOT including NTLM Support: $alpine_ntlm_none_reason" >&5
19266 $as_echo "$as_me: NOT including NTLM Support: $alpine_ntlm_none_reason" >&6;}
19270 if test -n "$WEB_BUILD" ; then
19271 TCL_VERSIONS_DOT="tcl8.6 tcl8.5 tcl8.4 tcl8.3"
19272 TCL_VERSIONS_NODOT="`echo ${TCL_VERSIONS_DOT} | ${SED} 's/\.//g'`"
19273 TCL_VERSIONS="${TCL_VERSIONS_DOT} ${TCL_VERSIONS_NODOT} tcl"
19274 if test -n "$alpine_TCLINC" ; then
19275 as_ac_Header=`$as_echo "ac_cv_header_$alpine_TCLINC/tcl.h" | $as_tr_sh`
19276 ac_fn_c_check_header_mongrel "$LINENO" "$alpine_TCLINC/tcl.h" "$as_ac_Header" "$ac_includes_default"
19277 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19279 else
19281 WEB_BUILD=
19286 if test -z "$WEB_BUILD" ; then
19287 { $as_echo "$as_me:${as_lineno-$LINENO}: Tcl Include file NOT found" >&5
19288 $as_echo "$as_me: Tcl Include file NOT found" >&6;}
19290 else
19291 ac_fn_c_check_header_mongrel "$LINENO" "tcl.h" "ac_cv_header_tcl_h" "$ac_includes_default"
19292 if test "x$ac_cv_header_tcl_h" = xyes; then :
19294 else
19296 for base in /usr /usr/local ; do
19297 for dir in ${TCL_VERSIONS} ; do
19298 if test -f $base/include/$dir/tcl.h ; then
19299 CPPFLAGS="$CPPFLAGS -I$base/include/$dir"
19300 found=yes
19301 break
19303 done
19304 if test "x$found" = "xyes" ; then
19305 break
19307 done
19308 if test "$found" != "yes" ; then
19309 WEB_BUILD=
19310 { $as_echo "$as_me:${as_lineno-$LINENO}: header file tcl.h NOT found: Web Alpine will not be built" >&5
19311 $as_echo "$as_me: header file tcl.h NOT found: Web Alpine will not be built" >&6;}
19318 if test -n "$WEB_BUILD" ; then
19319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing Tcl_Eval" >&5
19320 $as_echo_n "checking for library containing Tcl_Eval... " >&6; }
19321 if ${ac_cv_search_Tcl_Eval+:} false; then :
19322 $as_echo_n "(cached) " >&6
19323 else
19324 ac_func_search_save_LIBS=$LIBS
19325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19326 /* end confdefs.h. */
19328 /* Override any GCC internal prototype to avoid an error.
19329 Use char because int might match the return type of a GCC
19330 builtin and then its argument prototype would still apply. */
19331 #ifdef __cplusplus
19332 extern "C"
19333 #endif
19334 char Tcl_Eval ();
19336 main ()
19338 return Tcl_Eval ();
19340 return 0;
19342 _ACEOF
19343 for ac_lib in '' $alpine_TCLLIB ${TCL_VERSIONS}; do
19344 if test -z "$ac_lib"; then
19345 ac_res="none required"
19346 else
19347 ac_res=-l$ac_lib
19348 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19350 if ac_fn_c_try_link "$LINENO"; then :
19351 ac_cv_search_Tcl_Eval=$ac_res
19353 rm -f core conftest.err conftest.$ac_objext \
19354 conftest$ac_exeext
19355 if ${ac_cv_search_Tcl_Eval+:} false; then :
19356 break
19358 done
19359 if ${ac_cv_search_Tcl_Eval+:} false; then :
19361 else
19362 ac_cv_search_Tcl_Eval=no
19364 rm conftest.$ac_ext
19365 LIBS=$ac_func_search_save_LIBS
19367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_Tcl_Eval" >&5
19368 $as_echo "$ac_cv_search_Tcl_Eval" >&6; }
19369 ac_res=$ac_cv_search_Tcl_Eval
19370 if test "$ac_res" != no; then :
19371 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19373 else
19375 WEB_BUILD=
19382 if test "x$alpine_REGEX" != "xyes" ; then
19383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing regcomp" >&5
19384 $as_echo_n "checking for library containing regcomp... " >&6; }
19385 if ${ac_cv_search_regcomp+:} false; then :
19386 $as_echo_n "(cached) " >&6
19387 else
19388 ac_func_search_save_LIBS=$LIBS
19389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19390 /* end confdefs.h. */
19392 /* Override any GCC internal prototype to avoid an error.
19393 Use char because int might match the return type of a GCC
19394 builtin and then its argument prototype would still apply. */
19395 #ifdef __cplusplus
19396 extern "C"
19397 #endif
19398 char regcomp ();
19400 main ()
19402 return regcomp ();
19404 return 0;
19406 _ACEOF
19407 for ac_lib in '' posix regexp regex re; do
19408 if test -z "$ac_lib"; then
19409 ac_res="none required"
19410 else
19411 ac_res=-l$ac_lib
19412 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19414 if ac_fn_c_try_link "$LINENO"; then :
19415 ac_cv_search_regcomp=$ac_res
19417 rm -f core conftest.err conftest.$ac_objext \
19418 conftest$ac_exeext
19419 if ${ac_cv_search_regcomp+:} false; then :
19420 break
19422 done
19423 if ${ac_cv_search_regcomp+:} false; then :
19425 else
19426 ac_cv_search_regcomp=no
19428 rm conftest.$ac_ext
19429 LIBS=$ac_func_search_save_LIBS
19431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_regcomp" >&5
19432 $as_echo "$ac_cv_search_regcomp" >&6; }
19433 ac_res=$ac_cv_search_regcomp
19434 if test "$ac_res" != no; then :
19435 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19437 else
19439 if test x$alpine_REGEX = "xno" ; then
19440 as_fn_error $? "Unable to find system regex library" "$LINENO" 5
19441 else
19442 alpine_REGEX=yes
19448 if test "x$alpine_REGEX" != "xyes" ; then
19449 ac_fn_c_check_header_mongrel "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default"
19450 if test "x$ac_cv_header_regex_h" = xyes; then :
19452 else
19454 if test x$alpine_REGEX = "xno" ; then
19455 as_fn_error $? "Unable to find system regex include file" "$LINENO" 5
19456 else
19457 alpine_REGEX=yes
19465 $as_echo "#define HAVE_REGEX_H 1" >>confdefs.h
19467 if test "x$alpine_REGEX" = "xyes" ; then
19468 CPPFLAGS="$CPPFLAGS -I${top_builddir}/regex"
19469 LDFLAGS="$LDFLAGS -L${top_builddir}/regex"
19470 REGEX_BUILD=regex
19471 REGEX_MAKEFILE="$REGEX_BUILD/Makefile"
19474 if test "x$with_pthread" != "xno" ; then
19475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread support" >&5
19476 $as_echo_n "checking for pthread support... " >&6; }
19480 ac_ext=c
19481 ac_cpp='$CPP $CPPFLAGS'
19482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19486 acx_pthread_ok=no
19488 # We used to check for pthread.h first, but this fails if pthread.h
19489 # requires special compiler flags (e.g. on True64 or Sequent).
19490 # It gets checked for in the link test anyway.
19492 # First of all, check if the user has set any of the PTHREAD_LIBS,
19493 # etcetera environment variables, and if threads linking works using
19494 # them:
19495 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
19496 save_CFLAGS="$CFLAGS"
19497 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19498 save_LIBS="$LIBS"
19499 LIBS="$PTHREAD_LIBS $LIBS"
19500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
19501 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
19502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19503 /* end confdefs.h. */
19505 /* Override any GCC internal prototype to avoid an error.
19506 Use char because int might match the return type of a GCC
19507 builtin and then its argument prototype would still apply. */
19508 #ifdef __cplusplus
19509 extern "C"
19510 #endif
19511 char pthread_join ();
19513 main ()
19515 return pthread_join ();
19517 return 0;
19519 _ACEOF
19520 if ac_fn_c_try_link "$LINENO"; then :
19521 acx_pthread_ok=yes
19523 rm -f core conftest.err conftest.$ac_objext \
19524 conftest$ac_exeext conftest.$ac_ext
19525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
19526 $as_echo "$acx_pthread_ok" >&6; }
19527 if test x"$acx_pthread_ok" = xno; then
19528 PTHREAD_LIBS=""
19529 PTHREAD_CFLAGS=""
19531 LIBS="$save_LIBS"
19532 CFLAGS="$save_CFLAGS"
19535 # We must check for the threads library under a number of different
19536 # names; the ordering is very important because some systems
19537 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
19538 # libraries is broken (non-POSIX).
19540 # Create a list of thread flags to try. Items starting with a "-" are
19541 # C compiler flags, and other items are library names, except for "none"
19542 # which indicates that we try without any flags at all, and "pthread-config"
19543 # which is a program returning the flags for the Pth emulation library.
19545 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
19547 # The ordering *is* (sometimes) important. Some notes on the
19548 # individual items follow:
19550 # pthreads: AIX (must check this before -lpthread)
19551 # none: in case threads are in libc; should be tried before -Kthread and
19552 # other compiler flags to prevent continual compiler warnings
19553 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
19554 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
19555 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
19556 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
19557 # -pthreads: Solaris/gcc
19558 # -mthreads: Mingw32/gcc, Lynx/gcc
19559 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
19560 # doesn't hurt to check since this sometimes defines pthreads too;
19561 # also defines -D_REENTRANT)
19562 # ... -mt is also the pthreads flag for HP/aCC
19563 # pthread: Linux, etcetera
19564 # --thread-safe: KAI C++
19565 # pthread-config: use pthread-config program (for GNU Pth library)
19567 case "${host_cpu}-${host_os}" in
19568 *solaris*)
19570 # On Solaris (at least, for some versions), libc contains stubbed
19571 # (non-functional) versions of the pthreads routines, so link-based
19572 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
19573 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
19574 # a function called by this macro, so we could check for that, but
19575 # who knows whether they'll stub that too in a future libc.) So,
19576 # we'll just look for -pthreads and -lpthread first:
19578 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
19580 esac
19582 if test x"$acx_pthread_ok" = xno; then
19583 for flag in $acx_pthread_flags; do
19585 case $flag in
19586 none)
19587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
19588 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
19592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
19593 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
19594 PTHREAD_CFLAGS="$flag"
19597 pthread-config)
19598 # Extract the first word of "pthread-config", so it can be a program name with args.
19599 set dummy pthread-config; ac_word=$2
19600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19601 $as_echo_n "checking for $ac_word... " >&6; }
19602 if ${ac_cv_prog_acx_pthread_config+:} false; then :
19603 $as_echo_n "(cached) " >&6
19604 else
19605 if test -n "$acx_pthread_config"; then
19606 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
19607 else
19608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19609 for as_dir in $PATH
19611 IFS=$as_save_IFS
19612 test -z "$as_dir" && as_dir=.
19613 for ac_exec_ext in '' $ac_executable_extensions; do
19614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19615 ac_cv_prog_acx_pthread_config="yes"
19616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19617 break 2
19619 done
19620 done
19621 IFS=$as_save_IFS
19623 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
19626 acx_pthread_config=$ac_cv_prog_acx_pthread_config
19627 if test -n "$acx_pthread_config"; then
19628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
19629 $as_echo "$acx_pthread_config" >&6; }
19630 else
19631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19632 $as_echo "no" >&6; }
19636 if test x"$acx_pthread_config" = xno; then continue; fi
19637 PTHREAD_CFLAGS="`pthread-config --cflags`"
19638 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
19642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
19643 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
19644 PTHREAD_LIBS="-l$flag"
19646 esac
19648 save_LIBS="$LIBS"
19649 save_CFLAGS="$CFLAGS"
19650 LIBS="$PTHREAD_LIBS $LIBS"
19651 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19653 # Check for various functions. We must include pthread.h,
19654 # since some functions may be macros. (On the Sequent, we
19655 # need a special flag -Kthread to make this header compile.)
19656 # We check for pthread_join because it is in -lpthread on IRIX
19657 # while pthread_create is in libc. We check for pthread_attr_init
19658 # due to DEC craziness with -lpthreads. We check for
19659 # pthread_cleanup_push because it is one of the few pthread
19660 # functions on Solaris that doesn't have a non-functional libc stub.
19661 # We try pthread_create on general principles.
19662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19663 /* end confdefs.h. */
19664 #include <pthread.h>
19666 main ()
19668 pthread_t th; pthread_join(th, 0);
19669 pthread_attr_init(0); pthread_cleanup_push(0, 0);
19670 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
19672 return 0;
19674 _ACEOF
19675 if ac_fn_c_try_link "$LINENO"; then :
19676 acx_pthread_ok=yes
19678 rm -f core conftest.err conftest.$ac_objext \
19679 conftest$ac_exeext conftest.$ac_ext
19681 LIBS="$save_LIBS"
19682 CFLAGS="$save_CFLAGS"
19684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
19685 $as_echo "$acx_pthread_ok" >&6; }
19686 if test "x$acx_pthread_ok" = xyes; then
19687 break;
19690 PTHREAD_LIBS=""
19691 PTHREAD_CFLAGS=""
19692 done
19695 # Various other checks:
19696 if test "x$acx_pthread_ok" = xyes; then
19697 save_LIBS="$LIBS"
19698 LIBS="$PTHREAD_LIBS $LIBS"
19699 save_CFLAGS="$CFLAGS"
19700 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19702 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
19703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
19704 $as_echo_n "checking for joinable pthread attribute... " >&6; }
19705 attr_name=unknown
19706 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
19707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19708 /* end confdefs.h. */
19709 #include <pthread.h>
19711 main ()
19713 int attr=$attr; return attr;
19715 return 0;
19717 _ACEOF
19718 if ac_fn_c_try_link "$LINENO"; then :
19719 attr_name=$attr; break
19721 rm -f core conftest.err conftest.$ac_objext \
19722 conftest$ac_exeext conftest.$ac_ext
19723 done
19724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
19725 $as_echo "$attr_name" >&6; }
19726 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
19728 cat >>confdefs.h <<_ACEOF
19729 #define PTHREAD_CREATE_JOINABLE $attr_name
19730 _ACEOF
19734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
19735 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
19736 flag=no
19737 case "${host_cpu}-${host_os}" in
19738 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
19739 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
19740 esac
19741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
19742 $as_echo "${flag}" >&6; }
19743 if test "x$flag" != xno; then
19744 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
19747 LIBS="$save_LIBS"
19748 CFLAGS="$save_CFLAGS"
19750 # More AIX lossage: must compile with xlc_r or cc_r
19751 if test x"$GCC" != xyes; then
19752 for ac_prog in xlc_r cc_r
19754 # Extract the first word of "$ac_prog", so it can be a program name with args.
19755 set dummy $ac_prog; ac_word=$2
19756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19757 $as_echo_n "checking for $ac_word... " >&6; }
19758 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
19759 $as_echo_n "(cached) " >&6
19760 else
19761 if test -n "$PTHREAD_CC"; then
19762 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
19763 else
19764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19765 for as_dir in $PATH
19767 IFS=$as_save_IFS
19768 test -z "$as_dir" && as_dir=.
19769 for ac_exec_ext in '' $ac_executable_extensions; do
19770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19771 ac_cv_prog_PTHREAD_CC="$ac_prog"
19772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19773 break 2
19775 done
19776 done
19777 IFS=$as_save_IFS
19781 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
19782 if test -n "$PTHREAD_CC"; then
19783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
19784 $as_echo "$PTHREAD_CC" >&6; }
19785 else
19786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19787 $as_echo "no" >&6; }
19791 test -n "$PTHREAD_CC" && break
19792 done
19793 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
19795 else
19796 PTHREAD_CC=$CC
19798 else
19799 PTHREAD_CC="$CC"
19806 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
19807 if test x"$acx_pthread_ok" = xyes; then
19809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19810 $as_echo "yes" >&6; }
19811 case "$target" in
19812 *openbsd*)
19813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pthread support on OpenBSD is unstable!" >&5
19814 $as_echo "$as_me: WARNING: pthread support on OpenBSD is unstable!" >&6;}
19815 AM_CFLAGS="$AM_CFLAGS -pthread"
19817 esac
19818 LIBS="$PTHREAD_LIBS $LIBS"
19819 AM_CFLAGS="$AM_CFLAGS $PTHREAD_CFLAGS"
19820 CC="$PTHREAD_CC"
19822 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
19826 else
19827 acx_pthread_ok=no
19829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19830 $as_echo "no" >&6; }
19833 ac_ext=c
19834 ac_cpp='$CPP $CPPFLAGS'
19835 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19836 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19837 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
19842 $as_echo_n "checking for library containing nanosleep... " >&6; }
19843 if ${ac_cv_search_nanosleep+:} false; then :
19844 $as_echo_n "(cached) " >&6
19845 else
19846 ac_func_search_save_LIBS=$LIBS
19847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19848 /* end confdefs.h. */
19850 /* Override any GCC internal prototype to avoid an error.
19851 Use char because int might match the return type of a GCC
19852 builtin and then its argument prototype would still apply. */
19853 #ifdef __cplusplus
19854 extern "C"
19855 #endif
19856 char nanosleep ();
19858 main ()
19860 return nanosleep ();
19862 return 0;
19864 _ACEOF
19865 for ac_lib in '' rt posix4; do
19866 if test -z "$ac_lib"; then
19867 ac_res="none required"
19868 else
19869 ac_res=-l$ac_lib
19870 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19872 if ac_fn_c_try_link "$LINENO"; then :
19873 ac_cv_search_nanosleep=$ac_res
19875 rm -f core conftest.err conftest.$ac_objext \
19876 conftest$ac_exeext
19877 if ${ac_cv_search_nanosleep+:} false; then :
19878 break
19880 done
19881 if ${ac_cv_search_nanosleep+:} false; then :
19883 else
19884 ac_cv_search_nanosleep=no
19886 rm conftest.$ac_ext
19887 LIBS=$ac_func_search_save_LIBS
19889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
19890 $as_echo "$ac_cv_search_nanosleep" >&6; }
19891 ac_res=$ac_cv_search_nanosleep
19892 if test "$ac_res" != no; then :
19893 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19896 $as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h
19906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
19907 $as_echo_n "checking for ANSI C header files... " >&6; }
19908 if ${ac_cv_header_stdc+:} false; then :
19909 $as_echo_n "(cached) " >&6
19910 else
19911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19912 /* end confdefs.h. */
19913 #include <stdlib.h>
19914 #include <stdarg.h>
19915 #include <string.h>
19916 #include <float.h>
19919 main ()
19923 return 0;
19925 _ACEOF
19926 if ac_fn_c_try_compile "$LINENO"; then :
19927 ac_cv_header_stdc=yes
19928 else
19929 ac_cv_header_stdc=no
19931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19933 if test $ac_cv_header_stdc = yes; then
19934 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19936 /* end confdefs.h. */
19937 #include <string.h>
19939 _ACEOF
19940 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19941 $EGREP "memchr" >/dev/null 2>&1; then :
19943 else
19944 ac_cv_header_stdc=no
19946 rm -f conftest*
19950 if test $ac_cv_header_stdc = yes; then
19951 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19953 /* end confdefs.h. */
19954 #include <stdlib.h>
19956 _ACEOF
19957 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19958 $EGREP "free" >/dev/null 2>&1; then :
19960 else
19961 ac_cv_header_stdc=no
19963 rm -f conftest*
19967 if test $ac_cv_header_stdc = yes; then
19968 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19969 if test "$cross_compiling" = yes; then :
19971 else
19972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19973 /* end confdefs.h. */
19974 #include <ctype.h>
19975 #include <stdlib.h>
19976 #if ((' ' & 0x0FF) == 0x020)
19977 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19978 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19979 #else
19980 # define ISLOWER(c) \
19981 (('a' <= (c) && (c) <= 'i') \
19982 || ('j' <= (c) && (c) <= 'r') \
19983 || ('s' <= (c) && (c) <= 'z'))
19984 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19985 #endif
19987 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19989 main ()
19991 int i;
19992 for (i = 0; i < 256; i++)
19993 if (XOR (islower (i), ISLOWER (i))
19994 || toupper (i) != TOUPPER (i))
19995 return 2;
19996 return 0;
19998 _ACEOF
19999 if ac_fn_c_try_run "$LINENO"; then :
20001 else
20002 ac_cv_header_stdc=no
20004 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20005 conftest.$ac_objext conftest.beam conftest.$ac_ext
20010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
20011 $as_echo "$ac_cv_header_stdc" >&6; }
20012 if test $ac_cv_header_stdc = yes; then
20014 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
20018 ac_header_dirent=no
20019 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20020 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
20022 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
20023 if eval \${$as_ac_Header+:} false; then :
20024 $as_echo_n "(cached) " >&6
20025 else
20026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20027 /* end confdefs.h. */
20028 #include <sys/types.h>
20029 #include <$ac_hdr>
20032 main ()
20034 if ((DIR *) 0)
20035 return 0;
20037 return 0;
20039 _ACEOF
20040 if ac_fn_c_try_compile "$LINENO"; then :
20041 eval "$as_ac_Header=yes"
20042 else
20043 eval "$as_ac_Header=no"
20045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20047 eval ac_res=\$$as_ac_Header
20048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20049 $as_echo "$ac_res" >&6; }
20050 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20051 cat >>confdefs.h <<_ACEOF
20052 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20053 _ACEOF
20055 ac_header_dirent=$ac_hdr; break
20058 done
20059 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20060 if test $ac_header_dirent = dirent.h; then
20061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
20062 $as_echo_n "checking for library containing opendir... " >&6; }
20063 if ${ac_cv_search_opendir+:} false; then :
20064 $as_echo_n "(cached) " >&6
20065 else
20066 ac_func_search_save_LIBS=$LIBS
20067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20068 /* end confdefs.h. */
20070 /* Override any GCC internal prototype to avoid an error.
20071 Use char because int might match the return type of a GCC
20072 builtin and then its argument prototype would still apply. */
20073 #ifdef __cplusplus
20074 extern "C"
20075 #endif
20076 char opendir ();
20078 main ()
20080 return opendir ();
20082 return 0;
20084 _ACEOF
20085 for ac_lib in '' dir; do
20086 if test -z "$ac_lib"; then
20087 ac_res="none required"
20088 else
20089 ac_res=-l$ac_lib
20090 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20092 if ac_fn_c_try_link "$LINENO"; then :
20093 ac_cv_search_opendir=$ac_res
20095 rm -f core conftest.err conftest.$ac_objext \
20096 conftest$ac_exeext
20097 if ${ac_cv_search_opendir+:} false; then :
20098 break
20100 done
20101 if ${ac_cv_search_opendir+:} false; then :
20103 else
20104 ac_cv_search_opendir=no
20106 rm conftest.$ac_ext
20107 LIBS=$ac_func_search_save_LIBS
20109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
20110 $as_echo "$ac_cv_search_opendir" >&6; }
20111 ac_res=$ac_cv_search_opendir
20112 if test "$ac_res" != no; then :
20113 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20117 else
20118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
20119 $as_echo_n "checking for library containing opendir... " >&6; }
20120 if ${ac_cv_search_opendir+:} false; then :
20121 $as_echo_n "(cached) " >&6
20122 else
20123 ac_func_search_save_LIBS=$LIBS
20124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20125 /* end confdefs.h. */
20127 /* Override any GCC internal prototype to avoid an error.
20128 Use char because int might match the return type of a GCC
20129 builtin and then its argument prototype would still apply. */
20130 #ifdef __cplusplus
20131 extern "C"
20132 #endif
20133 char opendir ();
20135 main ()
20137 return opendir ();
20139 return 0;
20141 _ACEOF
20142 for ac_lib in '' x; do
20143 if test -z "$ac_lib"; then
20144 ac_res="none required"
20145 else
20146 ac_res=-l$ac_lib
20147 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20149 if ac_fn_c_try_link "$LINENO"; then :
20150 ac_cv_search_opendir=$ac_res
20152 rm -f core conftest.err conftest.$ac_objext \
20153 conftest$ac_exeext
20154 if ${ac_cv_search_opendir+:} false; then :
20155 break
20157 done
20158 if ${ac_cv_search_opendir+:} false; then :
20160 else
20161 ac_cv_search_opendir=no
20163 rm conftest.$ac_ext
20164 LIBS=$ac_func_search_save_LIBS
20166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
20167 $as_echo "$ac_cv_search_opendir" >&6; }
20168 ac_res=$ac_cv_search_opendir
20169 if test "$ac_res" != no; then :
20170 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
20177 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
20178 if ${ac_cv_header_stat_broken+:} false; then :
20179 $as_echo_n "(cached) " >&6
20180 else
20181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20182 /* end confdefs.h. */
20183 #include <sys/types.h>
20184 #include <sys/stat.h>
20186 #if defined S_ISBLK && defined S_IFDIR
20187 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
20188 #endif
20190 #if defined S_ISBLK && defined S_IFCHR
20191 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
20192 #endif
20194 #if defined S_ISLNK && defined S_IFREG
20195 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
20196 #endif
20198 #if defined S_ISSOCK && defined S_IFREG
20199 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
20200 #endif
20202 _ACEOF
20203 if ac_fn_c_try_compile "$LINENO"; then :
20204 ac_cv_header_stat_broken=no
20205 else
20206 ac_cv_header_stat_broken=yes
20208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
20211 $as_echo "$ac_cv_header_stat_broken" >&6; }
20212 if test $ac_cv_header_stat_broken = yes; then
20214 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
20218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
20219 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
20220 if ${ac_cv_header_sys_wait_h+:} false; then :
20221 $as_echo_n "(cached) " >&6
20222 else
20223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20224 /* end confdefs.h. */
20225 #include <sys/types.h>
20226 #include <sys/wait.h>
20227 #ifndef WEXITSTATUS
20228 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
20229 #endif
20230 #ifndef WIFEXITED
20231 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
20232 #endif
20235 main ()
20237 int s;
20238 wait (&s);
20239 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
20241 return 0;
20243 _ACEOF
20244 if ac_fn_c_try_compile "$LINENO"; then :
20245 ac_cv_header_sys_wait_h=yes
20246 else
20247 ac_cv_header_sys_wait_h=no
20249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
20252 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
20253 if test $ac_cv_header_sys_wait_h = yes; then
20255 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
20259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
20260 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
20261 if ${ac_cv_header_time+:} false; then :
20262 $as_echo_n "(cached) " >&6
20263 else
20264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20265 /* end confdefs.h. */
20266 #include <sys/types.h>
20267 #include <sys/time.h>
20268 #include <time.h>
20271 main ()
20273 if ((struct tm *) 0)
20274 return 0;
20276 return 0;
20278 _ACEOF
20279 if ac_fn_c_try_compile "$LINENO"; then :
20280 ac_cv_header_time=yes
20281 else
20282 ac_cv_header_time=no
20284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
20287 $as_echo "$ac_cv_header_time" >&6; }
20288 if test $ac_cv_header_time = yes; then
20290 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
20294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
20295 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
20296 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false; then :
20297 $as_echo_n "(cached) " >&6
20298 else
20299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20300 /* end confdefs.h. */
20301 #include <sys/types.h>
20302 #include <termios.h>
20303 #ifdef TIOCGWINSZ
20305 #endif
20307 _ACEOF
20308 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20309 $EGREP "yes" >/dev/null 2>&1; then :
20310 ac_cv_sys_tiocgwinsz_in_termios_h=yes
20311 else
20312 ac_cv_sys_tiocgwinsz_in_termios_h=no
20314 rm -f conftest*
20317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
20318 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
20320 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
20321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
20322 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
20323 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false; then :
20324 $as_echo_n "(cached) " >&6
20325 else
20326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20327 /* end confdefs.h. */
20328 #include <sys/types.h>
20329 #include <sys/ioctl.h>
20330 #ifdef TIOCGWINSZ
20332 #endif
20334 _ACEOF
20335 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20336 $EGREP "yes" >/dev/null 2>&1; then :
20337 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
20338 else
20339 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
20341 rm -f conftest*
20344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
20345 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
20347 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
20349 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
20355 for ac_header in unistd.h
20356 do :
20357 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
20358 if test "x$ac_cv_header_unistd_h" = xyes; then :
20359 cat >>confdefs.h <<_ACEOF
20360 #define HAVE_UNISTD_H 1
20361 _ACEOF
20365 done
20368 for ac_header in errno.h \
20369 ctype.h \
20370 fcntl.h \
20371 signal.h \
20372 setjmp.h \
20373 memory.h \
20374 sys/ioctl.h \
20375 sys/param.h \
20376 sys/socket.h \
20377 sys/uio.h \
20378 sys/un.h \
20379 limits.h \
20380 wchar.h \
20381 sys/poll.h \
20382 stropts.h \
20383 netdb.h \
20384 syslog.h \
20385 sys/syslog.h \
20386 locale.h \
20387 langinfo.h \
20388 utime.h \
20389 sys/utime.h \
20390 pthread.h \
20391 pwd.h \
20392 assert.h
20393 do :
20394 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20395 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20396 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20397 cat >>confdefs.h <<_ACEOF
20398 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20399 _ACEOF
20403 done
20406 ac_fn_c_check_header_mongrel "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default"
20407 if test "x$ac_cv_header_termios_h" = xyes; then :
20409 $as_echo "#define HAS_TERMIOS 1" >>confdefs.h
20411 else
20413 ac_fn_c_check_header_mongrel "$LINENO" "termio.h" "ac_cv_header_termio_h" "$ac_includes_default"
20414 if test "x$ac_cv_header_termio_h" = xyes; then :
20416 $as_echo "#define HAS_TERMIO 1" >>confdefs.h
20418 else
20420 ac_fn_c_check_header_mongrel "$LINENO" "sgtty.h" "ac_cv_header_sgtty_h" "$ac_includes_default"
20421 if test "x$ac_cv_header_sgtty_h" = xyes; then :
20423 $as_echo "#define HAS_SGTTY 1" >>confdefs.h
20425 else
20427 as_fn_error $? "Unable to figure out terminal control method" "$LINENO" 5
20443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
20444 $as_echo_n "checking return type of signal handlers... " >&6; }
20445 if ${ac_cv_type_signal+:} false; then :
20446 $as_echo_n "(cached) " >&6
20447 else
20448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20449 /* end confdefs.h. */
20450 #include <sys/types.h>
20451 #include <signal.h>
20454 main ()
20456 return *(signal (0, 0)) (0) == 1;
20458 return 0;
20460 _ACEOF
20461 if ac_fn_c_try_compile "$LINENO"; then :
20462 ac_cv_type_signal=int
20463 else
20464 ac_cv_type_signal=void
20466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
20469 $as_echo "$ac_cv_type_signal" >&6; }
20471 cat >>confdefs.h <<_ACEOF
20472 #define RETSIGTYPE $ac_cv_type_signal
20473 _ACEOF
20476 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
20477 if test "x$ac_cv_type_size_t" = xyes; then :
20479 else
20481 cat >>confdefs.h <<_ACEOF
20482 #define size_t unsigned int
20483 _ACEOF
20487 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
20488 if test "x$ac_cv_type_mode_t" = xyes; then :
20490 else
20492 cat >>confdefs.h <<_ACEOF
20493 #define mode_t int
20494 _ACEOF
20498 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
20499 if test "x$ac_cv_type_pid_t" = xyes; then :
20501 else
20503 cat >>confdefs.h <<_ACEOF
20504 #define pid_t int
20505 _ACEOF
20509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
20510 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
20511 if ${ac_cv_type_uid_t+:} false; then :
20512 $as_echo_n "(cached) " >&6
20513 else
20514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20515 /* end confdefs.h. */
20516 #include <sys/types.h>
20518 _ACEOF
20519 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20520 $EGREP "uid_t" >/dev/null 2>&1; then :
20521 ac_cv_type_uid_t=yes
20522 else
20523 ac_cv_type_uid_t=no
20525 rm -f conftest*
20528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
20529 $as_echo "$ac_cv_type_uid_t" >&6; }
20530 if test $ac_cv_type_uid_t = no; then
20532 $as_echo "#define uid_t int" >>confdefs.h
20535 $as_echo "#define gid_t int" >>confdefs.h
20539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
20540 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
20541 if ${ac_cv_struct_tm+:} false; then :
20542 $as_echo_n "(cached) " >&6
20543 else
20544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20545 /* end confdefs.h. */
20546 #include <sys/types.h>
20547 #include <time.h>
20550 main ()
20552 struct tm tm;
20553 int *p = &tm.tm_sec;
20554 return !p;
20556 return 0;
20558 _ACEOF
20559 if ac_fn_c_try_compile "$LINENO"; then :
20560 ac_cv_struct_tm=time.h
20561 else
20562 ac_cv_struct_tm=sys/time.h
20564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
20567 $as_echo "$ac_cv_struct_tm" >&6; }
20568 if test $ac_cv_struct_tm = sys/time.h; then
20570 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
20575 ac_fn_c_check_type "$LINENO" "union wait" "ac_cv_type_union_wait" "$ac_includes_default"
20576 if test "x$ac_cv_type_union_wait" = xyes; then :
20578 cat >>confdefs.h <<_ACEOF
20579 #define HAVE_UNION_WAIT 1
20580 _ACEOF
20586 for ac_header in stdint.h
20587 do :
20588 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
20589 if test "x$ac_cv_header_stdint_h" = xyes; then :
20590 cat >>confdefs.h <<_ACEOF
20591 #define HAVE_STDINT_H 1
20592 _ACEOF
20593 uint16=uint16_t
20594 else
20596 for ac_header in inttypes.h
20597 do :
20598 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
20599 if test "x$ac_cv_header_inttypes_h" = xyes; then :
20600 cat >>confdefs.h <<_ACEOF
20601 #define HAVE_INTTYPES_H 1
20602 _ACEOF
20603 uint16=uint16_t
20604 else
20606 for ac_header in sys/types.h
20607 do :
20608 ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
20609 if test "x$ac_cv_header_sys_types_h" = xyes; then :
20610 cat >>confdefs.h <<_ACEOF
20611 #define HAVE_SYS_TYPES_H 1
20612 _ACEOF
20613 uint16=u_int16_t
20614 else
20616 # The cast to long int works around a bug in the HP C Compiler
20617 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20618 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20619 # This bug is HP SR number 8606223364.
20620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
20621 $as_echo_n "checking size of unsigned short... " >&6; }
20622 if ${ac_cv_sizeof_unsigned_short+:} false; then :
20623 $as_echo_n "(cached) " >&6
20624 else
20625 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short" "$ac_includes_default"; then :
20627 else
20628 if test "$ac_cv_type_unsigned_short" = yes; then
20629 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20630 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20631 as_fn_error 77 "cannot compute sizeof (unsigned short)
20632 See \`config.log' for more details" "$LINENO" 5; }
20633 else
20634 ac_cv_sizeof_unsigned_short=0
20639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
20640 $as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
20644 cat >>confdefs.h <<_ACEOF
20645 #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
20646 _ACEOF
20649 if test $ac_cv_sizeof_unsigned_short -eq 2 ; then
20650 uint16="unsigned short"
20651 else
20652 # The cast to long int works around a bug in the HP C Compiler
20653 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20654 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20655 # This bug is HP SR number 8606223364.
20656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
20657 $as_echo_n "checking size of unsigned int... " >&6; }
20658 if ${ac_cv_sizeof_unsigned_int+:} false; then :
20659 $as_echo_n "(cached) " >&6
20660 else
20661 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
20663 else
20664 if test "$ac_cv_type_unsigned_int" = yes; then
20665 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20666 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20667 as_fn_error 77 "cannot compute sizeof (unsigned int)
20668 See \`config.log' for more details" "$LINENO" 5; }
20669 else
20670 ac_cv_sizeof_unsigned_int=0
20675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
20676 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
20680 cat >>confdefs.h <<_ACEOF
20681 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
20682 _ACEOF
20685 if $ac_cv_sizeof_unsigned_int -eq 2 ; then
20686 uint16="unsigned int"
20687 else
20688 as_fn_error $? "Unable to determine 16 bit integer type" "$LINENO" 5
20694 done
20699 done
20704 done
20707 cat >>confdefs.h <<_ACEOF
20708 #define UINT16 $uint16
20709 _ACEOF
20712 for ac_header in stdint.h
20713 do :
20714 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
20715 if test "x$ac_cv_header_stdint_h" = xyes; then :
20716 cat >>confdefs.h <<_ACEOF
20717 #define HAVE_STDINT_H 1
20718 _ACEOF
20719 uint32=uint32_t
20720 else
20722 for ac_header in inttypes.h
20723 do :
20724 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
20725 if test "x$ac_cv_header_inttypes_h" = xyes; then :
20726 cat >>confdefs.h <<_ACEOF
20727 #define HAVE_INTTYPES_H 1
20728 _ACEOF
20729 uint32=uint32_t
20730 else
20732 for ac_header in sys/types.h
20733 do :
20734 ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
20735 if test "x$ac_cv_header_sys_types_h" = xyes; then :
20736 cat >>confdefs.h <<_ACEOF
20737 #define HAVE_SYS_TYPES_H 1
20738 _ACEOF
20739 uint32=u_int32_t
20740 else
20742 # The cast to long int works around a bug in the HP C Compiler
20743 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20744 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20745 # This bug is HP SR number 8606223364.
20746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
20747 $as_echo_n "checking size of unsigned int... " >&6; }
20748 if ${ac_cv_sizeof_unsigned_int+:} false; then :
20749 $as_echo_n "(cached) " >&6
20750 else
20751 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
20753 else
20754 if test "$ac_cv_type_unsigned_int" = yes; then
20755 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20756 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20757 as_fn_error 77 "cannot compute sizeof (unsigned int)
20758 See \`config.log' for more details" "$LINENO" 5; }
20759 else
20760 ac_cv_sizeof_unsigned_int=0
20765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
20766 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
20770 cat >>confdefs.h <<_ACEOF
20771 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
20772 _ACEOF
20775 if test $ac_cv_sizeof_unsigned_int -eq 4 ; then
20776 uint32="unsigned int"
20777 else
20778 # The cast to long int works around a bug in the HP C Compiler
20779 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20780 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20781 # This bug is HP SR number 8606223364.
20782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
20783 $as_echo_n "checking size of unsigned long... " >&6; }
20784 if ${ac_cv_sizeof_unsigned_long+:} false; then :
20785 $as_echo_n "(cached) " >&6
20786 else
20787 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
20789 else
20790 if test "$ac_cv_type_unsigned_long" = yes; then
20791 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20792 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20793 as_fn_error 77 "cannot compute sizeof (unsigned long)
20794 See \`config.log' for more details" "$LINENO" 5; }
20795 else
20796 ac_cv_sizeof_unsigned_long=0
20801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
20802 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
20806 cat >>confdefs.h <<_ACEOF
20807 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
20808 _ACEOF
20811 if $ac_cv_sizeof_unsigned_long -eq 4 ; then
20812 uint32="unsigned long"
20813 else
20814 as_fn_error $? "Unable to determine 32 bit integer type" "$LINENO" 5
20820 done
20825 done
20830 done
20833 cat >>confdefs.h <<_ACEOF
20834 #define UINT32 $uint32
20835 _ACEOF
20838 if test -z "$SUINT32" ; then
20839 SUINT32="$uint32"
20843 cat >>confdefs.h <<_ACEOF
20844 #define SUINT32 $SUINT32
20845 _ACEOF
20848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking argument pointer type of qsort compare function and base" >&5
20849 $as_echo_n "checking argument pointer type of qsort compare function and base... " >&6; }
20850 if ${ac_cv_func_qsort_argtype+:} false; then :
20851 $as_echo_n "(cached) " >&6
20852 else
20853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20854 /* end confdefs.h. */
20856 #if HAVE_STDLIB_H
20857 #include "stdlib.h"
20858 #endif
20860 extern void *base;
20861 extern sortf(const void *, const void *);
20862 int sortf(a, b)
20863 const void *a;
20864 const void *b; { return 0; }
20867 main ()
20870 qsort(base, 2, sizeof(char *), sortf);
20873 return 0;
20875 _ACEOF
20876 if ac_fn_c_try_compile "$LINENO"; then :
20877 ac_cv_func_qsort_argtype=void
20878 else
20879 ac_cv_func_qsort_argtype=char
20881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_qsort_argtype" >&5
20885 $as_echo "$ac_cv_func_qsort_argtype" >&6; }
20887 cat >>confdefs.h <<_ACEOF
20888 #define qsort_t $ac_cv_func_qsort_argtype
20889 _ACEOF
20893 for ac_header in sys/select.h sys/socket.h
20894 do :
20895 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20896 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20897 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20898 cat >>confdefs.h <<_ACEOF
20899 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20900 _ACEOF
20904 done
20906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
20907 $as_echo_n "checking types of arguments for select... " >&6; }
20908 if ${ac_cv_func_select_args+:} false; then :
20909 $as_echo_n "(cached) " >&6
20910 else
20911 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
20912 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
20913 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
20914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20915 /* end confdefs.h. */
20916 $ac_includes_default
20917 #ifdef HAVE_SYS_SELECT_H
20918 # include <sys/select.h>
20919 #endif
20920 #ifdef HAVE_SYS_SOCKET_H
20921 # include <sys/socket.h>
20922 #endif
20925 main ()
20927 extern int select ($ac_arg1,
20928 $ac_arg234, $ac_arg234, $ac_arg234,
20929 $ac_arg5);
20931 return 0;
20933 _ACEOF
20934 if ac_fn_c_try_compile "$LINENO"; then :
20935 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
20937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20938 done
20939 done
20940 done
20941 # Provide a safe default value.
20942 : "${ac_cv_func_select_args=int,int *,struct timeval *}"
20945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
20946 $as_echo "$ac_cv_func_select_args" >&6; }
20947 ac_save_IFS=$IFS; IFS=','
20948 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
20949 IFS=$ac_save_IFS
20950 shift
20952 cat >>confdefs.h <<_ACEOF
20953 #define SELECT_TYPE_ARG1 $1
20954 _ACEOF
20957 cat >>confdefs.h <<_ACEOF
20958 #define SELECT_TYPE_ARG234 ($2)
20959 _ACEOF
20962 cat >>confdefs.h <<_ACEOF
20963 #define SELECT_TYPE_ARG5 ($3)
20964 _ACEOF
20966 rm -f conftest*
20969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
20970 $as_echo_n "checking for working strcoll... " >&6; }
20971 if ${ac_cv_func_strcoll_works+:} false; then :
20972 $as_echo_n "(cached) " >&6
20973 else
20974 if test "$cross_compiling" = yes; then :
20975 ac_cv_func_strcoll_works=no
20976 else
20977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20978 /* end confdefs.h. */
20979 $ac_includes_default
20981 main ()
20983 return (strcoll ("abc", "def") >= 0 ||
20984 strcoll ("ABC", "DEF") >= 0 ||
20985 strcoll ("123", "456") >= 0)
20987 return 0;
20989 _ACEOF
20990 if ac_fn_c_try_run "$LINENO"; then :
20991 ac_cv_func_strcoll_works=yes
20992 else
20993 ac_cv_func_strcoll_works=no
20995 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20996 conftest.$ac_objext conftest.beam conftest.$ac_ext
21000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
21001 $as_echo "$ac_cv_func_strcoll_works" >&6; }
21002 if test $ac_cv_func_strcoll_works = yes; then
21004 $as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
21010 for ac_header in vfork.h
21011 do :
21012 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
21013 if test "x$ac_cv_header_vfork_h" = xyes; then :
21014 cat >>confdefs.h <<_ACEOF
21015 #define HAVE_VFORK_H 1
21016 _ACEOF
21020 done
21022 for ac_func in fork vfork
21023 do :
21024 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21025 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21026 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21027 cat >>confdefs.h <<_ACEOF
21028 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21029 _ACEOF
21032 done
21034 if test "x$ac_cv_func_fork" = xyes; then
21035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
21036 $as_echo_n "checking for working fork... " >&6; }
21037 if ${ac_cv_func_fork_works+:} false; then :
21038 $as_echo_n "(cached) " >&6
21039 else
21040 if test "$cross_compiling" = yes; then :
21041 ac_cv_func_fork_works=cross
21042 else
21043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21044 /* end confdefs.h. */
21045 $ac_includes_default
21047 main ()
21050 /* By Ruediger Kuhlmann. */
21051 return fork () < 0;
21054 return 0;
21056 _ACEOF
21057 if ac_fn_c_try_run "$LINENO"; then :
21058 ac_cv_func_fork_works=yes
21059 else
21060 ac_cv_func_fork_works=no
21062 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21063 conftest.$ac_objext conftest.beam conftest.$ac_ext
21067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
21068 $as_echo "$ac_cv_func_fork_works" >&6; }
21070 else
21071 ac_cv_func_fork_works=$ac_cv_func_fork
21073 if test "x$ac_cv_func_fork_works" = xcross; then
21074 case $host in
21075 *-*-amigaos* | *-*-msdosdjgpp*)
21076 # Override, as these systems have only a dummy fork() stub
21077 ac_cv_func_fork_works=no
21080 ac_cv_func_fork_works=yes
21082 esac
21083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
21084 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
21086 ac_cv_func_vfork_works=$ac_cv_func_vfork
21087 if test "x$ac_cv_func_vfork" = xyes; then
21088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
21089 $as_echo_n "checking for working vfork... " >&6; }
21090 if ${ac_cv_func_vfork_works+:} false; then :
21091 $as_echo_n "(cached) " >&6
21092 else
21093 if test "$cross_compiling" = yes; then :
21094 ac_cv_func_vfork_works=cross
21095 else
21096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21097 /* end confdefs.h. */
21098 /* Thanks to Paul Eggert for this test. */
21099 $ac_includes_default
21100 #include <sys/wait.h>
21101 #ifdef HAVE_VFORK_H
21102 # include <vfork.h>
21103 #endif
21104 /* On some sparc systems, changes by the child to local and incoming
21105 argument registers are propagated back to the parent. The compiler
21106 is told about this with #include <vfork.h>, but some compilers
21107 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
21108 static variable whose address is put into a register that is
21109 clobbered by the vfork. */
21110 static void
21111 #ifdef __cplusplus
21112 sparc_address_test (int arg)
21113 # else
21114 sparc_address_test (arg) int arg;
21115 #endif
21117 static pid_t child;
21118 if (!child) {
21119 child = vfork ();
21120 if (child < 0) {
21121 perror ("vfork");
21122 _exit(2);
21124 if (!child) {
21125 arg = getpid();
21126 write(-1, "", 0);
21127 _exit (arg);
21133 main ()
21135 pid_t parent = getpid ();
21136 pid_t child;
21138 sparc_address_test (0);
21140 child = vfork ();
21142 if (child == 0) {
21143 /* Here is another test for sparc vfork register problems. This
21144 test uses lots of local variables, at least as many local
21145 variables as main has allocated so far including compiler
21146 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
21147 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
21148 reuse the register of parent for one of the local variables,
21149 since it will think that parent can't possibly be used any more
21150 in this routine. Assigning to the local variable will thus
21151 munge parent in the parent process. */
21152 pid_t
21153 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
21154 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
21155 /* Convince the compiler that p..p7 are live; otherwise, it might
21156 use the same hardware register for all 8 local variables. */
21157 if (p != p1 || p != p2 || p != p3 || p != p4
21158 || p != p5 || p != p6 || p != p7)
21159 _exit(1);
21161 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
21162 from child file descriptors. If the child closes a descriptor
21163 before it execs or exits, this munges the parent's descriptor
21164 as well. Test for this by closing stdout in the child. */
21165 _exit(close(fileno(stdout)) != 0);
21166 } else {
21167 int status;
21168 struct stat st;
21170 while (wait(&status) != child)
21172 return (
21173 /* Was there some problem with vforking? */
21174 child < 0
21176 /* Did the child fail? (This shouldn't happen.) */
21177 || status
21179 /* Did the vfork/compiler bug occur? */
21180 || parent != getpid()
21182 /* Did the file descriptor bug occur? */
21183 || fstat(fileno(stdout), &st) != 0
21187 _ACEOF
21188 if ac_fn_c_try_run "$LINENO"; then :
21189 ac_cv_func_vfork_works=yes
21190 else
21191 ac_cv_func_vfork_works=no
21193 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21194 conftest.$ac_objext conftest.beam conftest.$ac_ext
21198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
21199 $as_echo "$ac_cv_func_vfork_works" >&6; }
21202 if test "x$ac_cv_func_fork_works" = xcross; then
21203 ac_cv_func_vfork_works=$ac_cv_func_vfork
21204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
21205 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
21208 if test "x$ac_cv_func_vfork_works" = xyes; then
21210 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
21212 else
21214 $as_echo "#define vfork fork" >>confdefs.h
21217 if test "x$ac_cv_func_fork_works" = xyes; then
21219 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
21223 for ac_func in strchr \
21224 memcpy \
21225 strtol \
21226 strtoul \
21227 select \
21228 poll \
21229 qsort \
21230 getuid \
21231 getpwuid \
21232 getpwnam \
21233 gettimeofday \
21234 tmpfile \
21235 uname \
21236 rename \
21237 read \
21238 signal \
21239 setjmp \
21240 chown \
21241 wait4 \
21242 waitpid \
21243 wait \
21244 srandom \
21245 popen \
21246 pclose \
21247 fsync \
21248 truncate \
21249 listen \
21250 wcwidth \
21251 mbstowcs \
21252 wcrtomb \
21253 wctomb \
21254 putenv \
21255 setenv
21256 do :
21257 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21258 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21259 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21260 cat >>confdefs.h <<_ACEOF
21261 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21262 _ACEOF
21265 done
21268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostname" >&5
21269 $as_echo_n "checking for library containing gethostname... " >&6; }
21270 if ${ac_cv_search_gethostname+:} false; then :
21271 $as_echo_n "(cached) " >&6
21272 else
21273 ac_func_search_save_LIBS=$LIBS
21274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21275 /* end confdefs.h. */
21277 /* Override any GCC internal prototype to avoid an error.
21278 Use char because int might match the return type of a GCC
21279 builtin and then its argument prototype would still apply. */
21280 #ifdef __cplusplus
21281 extern "C"
21282 #endif
21283 char gethostname ();
21285 main ()
21287 return gethostname ();
21289 return 0;
21291 _ACEOF
21292 for ac_lib in '' nsl; do
21293 if test -z "$ac_lib"; then
21294 ac_res="none required"
21295 else
21296 ac_res=-l$ac_lib
21297 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21299 if ac_fn_c_try_link "$LINENO"; then :
21300 ac_cv_search_gethostname=$ac_res
21302 rm -f core conftest.err conftest.$ac_objext \
21303 conftest$ac_exeext
21304 if ${ac_cv_search_gethostname+:} false; then :
21305 break
21307 done
21308 if ${ac_cv_search_gethostname+:} false; then :
21310 else
21311 ac_cv_search_gethostname=no
21313 rm conftest.$ac_ext
21314 LIBS=$ac_func_search_save_LIBS
21316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostname" >&5
21317 $as_echo "$ac_cv_search_gethostname" >&6; }
21318 ac_res=$ac_cv_search_gethostname
21319 if test "$ac_res" != no; then :
21320 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
21326 $as_echo_n "checking for library containing socket... " >&6; }
21327 if ${ac_cv_search_socket+:} false; then :
21328 $as_echo_n "(cached) " >&6
21329 else
21330 ac_func_search_save_LIBS=$LIBS
21331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21332 /* end confdefs.h. */
21334 /* Override any GCC internal prototype to avoid an error.
21335 Use char because int might match the return type of a GCC
21336 builtin and then its argument prototype would still apply. */
21337 #ifdef __cplusplus
21338 extern "C"
21339 #endif
21340 char socket ();
21342 main ()
21344 return socket ();
21346 return 0;
21348 _ACEOF
21349 for ac_lib in '' socket; do
21350 if test -z "$ac_lib"; then
21351 ac_res="none required"
21352 else
21353 ac_res=-l$ac_lib
21354 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21356 if ac_fn_c_try_link "$LINENO"; then :
21357 ac_cv_search_socket=$ac_res
21359 rm -f core conftest.err conftest.$ac_objext \
21360 conftest$ac_exeext
21361 if ${ac_cv_search_socket+:} false; then :
21362 break
21364 done
21365 if ${ac_cv_search_socket+:} false; then :
21367 else
21368 ac_cv_search_socket=no
21370 rm conftest.$ac_ext
21371 LIBS=$ac_func_search_save_LIBS
21373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
21374 $as_echo "$ac_cv_search_socket" >&6; }
21375 ac_res=$ac_cv_search_socket
21376 if test "$ac_res" != no; then :
21377 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21379 else
21381 WEB_BUILD=
21386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bind" >&5
21387 $as_echo_n "checking for library containing bind... " >&6; }
21388 if ${ac_cv_search_bind+:} false; then :
21389 $as_echo_n "(cached) " >&6
21390 else
21391 ac_func_search_save_LIBS=$LIBS
21392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21393 /* end confdefs.h. */
21395 /* Override any GCC internal prototype to avoid an error.
21396 Use char because int might match the return type of a GCC
21397 builtin and then its argument prototype would still apply. */
21398 #ifdef __cplusplus
21399 extern "C"
21400 #endif
21401 char bind ();
21403 main ()
21405 return bind ();
21407 return 0;
21409 _ACEOF
21410 for ac_lib in '' bind; do
21411 if test -z "$ac_lib"; then
21412 ac_res="none required"
21413 else
21414 ac_res=-l$ac_lib
21415 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21417 if ac_fn_c_try_link "$LINENO"; then :
21418 ac_cv_search_bind=$ac_res
21420 rm -f core conftest.err conftest.$ac_objext \
21421 conftest$ac_exeext
21422 if ${ac_cv_search_bind+:} false; then :
21423 break
21425 done
21426 if ${ac_cv_search_bind+:} false; then :
21428 else
21429 ac_cv_search_bind=no
21431 rm conftest.$ac_ext
21432 LIBS=$ac_func_search_save_LIBS
21434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bind" >&5
21435 $as_echo "$ac_cv_search_bind" >&6; }
21436 ac_res=$ac_cv_search_bind
21437 if test "$ac_res" != no; then :
21438 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21440 else
21442 WEB_BUILD=
21447 for ac_func in sigaction sigemptyset sigaddset sigprocmask
21448 do :
21449 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21450 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21451 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21452 cat >>confdefs.h <<_ACEOF
21453 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21454 _ACEOF
21457 $as_echo "#define POSIX_SIGNALS /**/" >>confdefs.h
21460 else
21462 for ac_func in sigset sigrelse
21463 do :
21464 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21465 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21466 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21467 cat >>confdefs.h <<_ACEOF
21468 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21469 _ACEOF
21472 $as_echo "#define SYSV_SIGNALS /**/" >>confdefs.h
21476 done
21480 done
21483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing syslog" >&5
21484 $as_echo_n "checking for library containing syslog... " >&6; }
21485 if ${ac_cv_search_syslog+:} false; then :
21486 $as_echo_n "(cached) " >&6
21487 else
21488 ac_func_search_save_LIBS=$LIBS
21489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21490 /* end confdefs.h. */
21492 /* Override any GCC internal prototype to avoid an error.
21493 Use char because int might match the return type of a GCC
21494 builtin and then its argument prototype would still apply. */
21495 #ifdef __cplusplus
21496 extern "C"
21497 #endif
21498 char syslog ();
21500 main ()
21502 return syslog ();
21504 return 0;
21506 _ACEOF
21507 for ac_lib in '' bsd socket inet; do
21508 if test -z "$ac_lib"; then
21509 ac_res="none required"
21510 else
21511 ac_res=-l$ac_lib
21512 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21514 if ac_fn_c_try_link "$LINENO"; then :
21515 ac_cv_search_syslog=$ac_res
21517 rm -f core conftest.err conftest.$ac_objext \
21518 conftest$ac_exeext
21519 if ${ac_cv_search_syslog+:} false; then :
21520 break
21522 done
21523 if ${ac_cv_search_syslog+:} false; then :
21525 else
21526 ac_cv_search_syslog=no
21528 rm conftest.$ac_ext
21529 LIBS=$ac_func_search_save_LIBS
21531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_syslog" >&5
21532 $as_echo "$ac_cv_search_syslog" >&6; }
21533 ac_res=$ac_cv_search_syslog
21534 if test "$ac_res" != no; then :
21535 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21538 $as_echo "#define HAVE_SYSLOG 1" >>confdefs.h
21545 if test -n "$alpine_with_local_maildir" ; then
21546 alpine_local_maildir=$alpine_with_local_maildir
21547 elif test -d /var/spool/mail ; then
21548 alpine_local_maildir="/var/spool/mail"
21549 elif test -d /var/mail ; then
21550 alpine_local_maildir="/var/mail"
21551 else
21552 alpine_local_maildir="/usr/spool/mail"
21555 if test -n "$alpine_with_c_client_target" ; then
21556 alpine_c_client_target=$alpine_with_c_client_target
21560 cat >>confdefs.h <<_ACEOF
21561 #define SYSTYPE "$systype"
21562 _ACEOF
21565 cat >>confdefs.h <<_ACEOF
21566 #define C_FILESEP '$alpine_path_delim'
21567 _ACEOF
21570 cat >>confdefs.h <<_ACEOF
21571 #define S_FILESEP "$alpine_path_delim"
21572 _ACEOF
21575 cat >>confdefs.h <<_ACEOF
21576 #define MAILDIR "$alpine_local_maildir"
21577 _ACEOF
21580 cat >>confdefs.h <<_ACEOF
21581 #define MODE_READONLY $alpine_mode_readonly
21582 _ACEOF
21585 cat >>confdefs.h <<_ACEOF
21586 #define HTML_EXT "html"
21587 _ACEOF
21590 C_CLIENT_TARGET=$alpine_c_client_target
21592 C_CLIENT_WITH_IPV6=$c_client_ip6
21594 if test "x$alpine_SSLTYPE" = "xnone" ; then
21595 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * NOT Including SSL Support" >&5
21596 $as_echo "$as_me: * * * NOT Including SSL Support" >&6;}
21597 c_client_specials="${c_client_specials}SSLTYPE=none "
21598 else
21600 if test -n "$alpine_SSLCERTS" -a -d "$alpine_SSLCERTS" ; then
21601 certdir="$alpine_SSLCERTS"
21602 elif test -n "$alpine_SSLDIR" -a -d "${alpine_SSLDIR}/certs" ; then
21603 certdir="${alpine_SSLDIR}/certs"
21604 elif test -n "$alpine_SSLDIR" -a -d "${alpine_SSLDIR}/ssl/certs" ; then
21605 certdir="${alpine_SSLDIR}/ssl/certs"
21606 elif test -n "$alpine_SSLCERTS_ORIG" -a -d "$alpine_SSLCERTS_ORIG" ; then
21607 certdir="$alpine_SSLCERTS_ORIG"
21608 elif test -n "$alpine_SSLCERTS" ; then
21609 certdir="$alpine_SSLCERTS"
21610 else
21611 { $as_echo "$as_me:${as_lineno-$LINENO}: SSL Problem: certificate directory not found" >&5
21612 $as_echo "$as_me: SSL Problem: certificate directory not found" >&6;}
21615 if test "x$with_smime" != "xno" ; then
21616 if test -n "$certdir" ; then
21617 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * S/MIME support enabled" >&5
21618 $as_echo "$as_me: * * * S/MIME support enabled" >&6;}
21620 $as_echo "#define SMIME /**/" >>confdefs.h
21623 cat >>confdefs.h <<_ACEOF
21624 #define SMIME_SSLCERTS "$certdir"
21625 _ACEOF
21631 SSL_CERT_LINK="no"
21632 if test -z "`ls ${certdir} | $EGREP '^[0-9A-Fa-f]{8}\.[0-9]'`" ; then
21633 SSL_BUNDLE_EXISTS="no"
21634 SSL_PEM="factory.pem ca-bundle.pem cert.pem ca-bundle.crt ca-root-nss.crt"
21635 for SSL_BUNDLE in $SSL_PEM
21637 if test -f ${certdir}/${SSL_BUNDLE} ; then
21638 SSL_BUNDLE_EXISTS="yes"
21640 done
21641 else
21642 SSL_CERT_LINK="yes"
21645 if test "x$SSL_BUNDLE_EXISTS" = "xno" -a "x$SSL_CERT_LINK" = "xno" ; then
21646 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * No certificates found in \"${certdir}\"." >&5
21647 $as_echo "$as_me: * * * No certificates found in \"${certdir}\"." >&6;}
21648 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * This might indicate that CA certs did not get properly" >&5
21649 $as_echo "$as_me: * * * This might indicate that CA certs did not get properly" >&6;}
21650 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * installed. If you get certificate validation failures" >&5
21651 $as_echo "$as_me: * * * installed. If you get certificate validation failures" >&6;}
21652 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * in Alpine, this might be the reason for them." >&5
21653 $as_echo "$as_me: * * * in Alpine, this might be the reason for them." >&6;}
21656 if test -n "$alpine_SSLINCLUDE" ; then
21657 c_client_specials="${c_client_specials}SSLINCLUDE=$alpine_SSLINCLUDE "
21660 if test -n "$alpine_SSLLIB" ; then
21661 c_client_specials="${c_client_specials}SSLLIB=$alpine_SSLLIB "
21664 if test -n "$alpine_SSLDIR" ; then
21665 c_client_specials="${c_client_specials}SSLDIR=$alpine_SSLDIR "
21668 if test -n "$certdir" ; then
21669 c_client_specials="${c_client_specials}SSLCERTS=$certdir "
21672 if test -n "$alpine_SSLKEYS" ; then
21673 c_client_specials="${c_client_specials}SSLKEYS=$alpine_SSLKEYS "
21677 extra_auth_gss=
21678 if test "x$alpine_GSSTYPE" != "xnone" ; then
21679 extra_auth_gss=gss
21680 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * Including Kerberos5 functionality" >&5
21681 $as_echo "$as_me: * * * Including Kerberos5 functionality" >&6;}
21684 extra_auth_ntlm=
21685 if test "x$alpine_NTLM" != "xnone" ; then
21686 extra_auth_ntlm=ntl
21687 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * Including NTLM Authenticator" >&5
21688 $as_echo "$as_me: * * * Including NTLM Authenticator" >&6;}
21691 if test -n "$CPPFLAGS" ; then
21692 alpine_c_client_cflags="$alpine_c_client_cflags ${CPPFLAGS}"
21694 if test -n "$CFLAGS" ; then
21695 alpine_c_client_cflags="$alpine_c_client_cflags ${CFLAGS}"
21698 if test -n "$alpine_c_client_cflags" ; then
21699 C_CLIENT_CFLAGS=EXTRACFLAGS=\"$alpine_c_client_cflags\"
21703 if test -n "$LDFLAGS" ; then
21704 alpine_c_client_ldflags="$alpine_c_client_ldflags ${LDFLAGS}"
21706 if test -n "$LIBS" ; then
21707 alpine_c_client_ldflags="$alpine_c_client_ldflags ${LIBS}"
21710 if test -n "$alpine_c_client_ldflags" ; then
21711 C_CLIENT_LDFLAGS=EXTRALDFLAGS=\"$alpine_c_client_ldflags\"
21715 if test -n "$alpine_c_client_gccoptlevel" ; then
21716 C_CLIENT_GCCOPTLEVEL=GCCOPTLEVEL=\"$alpine_c_client_gccoptlevel\"
21720 c_client_auths="$extra_auth_gss $extra_auth_ntlm"
21721 C_CLIENT_AUTHS=$c_client_auths
21724 C_CLIENT_SPECIALS=$c_client_specials
21727 if test -z "$WEB_BUILD" ; then
21728 WEB_PUBCOOKIE_BUILD=
21729 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * TCL libraries could not be found." >&5
21730 $as_echo "$as_me: * * * TCL libraries could not be found." >&6;}
21731 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * WEB ALPINE COMPONENT WILL NOT BE BUILT." >&5
21732 $as_echo "$as_me: * * * WEB ALPINE COMPONENT WILL NOT BE BUILT." >&6;}
21733 else
21734 if test -n "$WEB_PUBCOOKIE_BUILD" ; then
21735 if test "x$alpine_GSSTYPE" = "xnone" ; then
21736 WEB_PUBCOOKIE_BUILD=
21737 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * Kerberos5 support not found." >&5
21738 $as_echo "$as_me: * * * Kerberos5 support not found." >&6;}
21739 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * WEB ALPINE PUBCOOKIE COMPONENT WILL NOT BE BUILT." >&5
21740 $as_echo "$as_me: * * * WEB ALPINE PUBCOOKIE COMPONENT WILL NOT BE BUILT." >&6;}
21741 elif test -z "$WEB_BINDIR" ; then
21742 WEB_PUBCOOKIE_BUILD=
21743 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * Web Alpine binary directory not provided." >&5
21744 $as_echo "$as_me: * * * Web Alpine binary directory not provided." >&6;}
21745 as_fn_error $? "* * * --with-pubcookie requires --with-web-bin=PATH.
21746 Please re-run configure with these options:
21747 --with-pubcookie --with-web-bin=/usr/local/libexec/alpine/bin" "$LINENO" 5
21748 else
21750 $as_echo "#define PUBCOOKIE 1" >>confdefs.h
21752 WEB_PUBCOOKIE_LIB=../pubcookie/libauthgssproxy.a
21753 WEB_PUBCOOKIE_LINK=gssapi_proxy.l
21769 ac_config_files="$ac_config_files m4/Makefile po/Makefile.in $REGEX_MAKEFILE pith/osdep/Makefile pith/charconv/Makefile pith/Makefile pico/osdep/Makefile pico/Makefile alpine/osdep/Makefile alpine/Makefile web/src/Makefile web/src/pubcookie/Makefile web/src/alpined.d/Makefile Makefile"
21771 cat >confcache <<\_ACEOF
21772 # This file is a shell script that caches the results of configure
21773 # tests run on this system so they can be shared between configure
21774 # scripts and configure runs, see configure's option --config-cache.
21775 # It is not useful on other systems. If it contains results you don't
21776 # want to keep, you may remove or edit it.
21778 # config.status only pays attention to the cache file if you give it
21779 # the --recheck option to rerun configure.
21781 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21782 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21783 # following values.
21785 _ACEOF
21787 # The following way of writing the cache mishandles newlines in values,
21788 # but we know of no workaround that is simple, portable, and efficient.
21789 # So, we kill variables containing newlines.
21790 # Ultrix sh set writes to stderr and can't be redirected directly,
21791 # and sets the high bit in the cache file unless we assign to the vars.
21793 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21794 eval ac_val=\$$ac_var
21795 case $ac_val in #(
21796 *${as_nl}*)
21797 case $ac_var in #(
21798 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21799 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21800 esac
21801 case $ac_var in #(
21802 _ | IFS | as_nl) ;; #(
21803 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21804 *) { eval $ac_var=; unset $ac_var;} ;;
21805 esac ;;
21806 esac
21807 done
21809 (set) 2>&1 |
21810 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21811 *${as_nl}ac_space=\ *)
21812 # `set' does not quote correctly, so add quotes: double-quote
21813 # substitution turns \\\\ into \\, and sed turns \\ into \.
21814 sed -n \
21815 "s/'/'\\\\''/g;
21816 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21817 ;; #(
21819 # `set' quotes correctly as required by POSIX, so do not add quotes.
21820 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21822 esac |
21823 sort
21825 sed '
21826 /^ac_cv_env_/b end
21827 t clear
21828 :clear
21829 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21830 t end
21831 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21832 :end' >>confcache
21833 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21834 if test -w "$cache_file"; then
21835 if test "x$cache_file" != "x/dev/null"; then
21836 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21837 $as_echo "$as_me: updating cache $cache_file" >&6;}
21838 if test ! -f "$cache_file" || test -h "$cache_file"; then
21839 cat confcache >"$cache_file"
21840 else
21841 case $cache_file in #(
21842 */* | ?:*)
21843 mv -f confcache "$cache_file"$$ &&
21844 mv -f "$cache_file"$$ "$cache_file" ;; #(
21846 mv -f confcache "$cache_file" ;;
21847 esac
21850 else
21851 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21852 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21855 rm -f confcache
21857 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21858 # Let make expand exec_prefix.
21859 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21861 DEFS=-DHAVE_CONFIG_H
21863 ac_libobjs=
21864 ac_ltlibobjs=
21866 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21867 # 1. Remove the extension, and $U if already installed.
21868 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21869 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21870 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21871 # will be set to the directory where LIBOBJS objects are built.
21872 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21873 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21874 done
21875 LIBOBJS=$ac_libobjs
21877 LTLIBOBJS=$ac_ltlibobjs
21880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
21881 $as_echo_n "checking that generated files are newer than configure... " >&6; }
21882 if test -n "$am_sleep_pid"; then
21883 # Hide warnings about reused PIDs.
21884 wait $am_sleep_pid 2>/dev/null
21886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
21887 $as_echo "done" >&6; }
21888 if test -n "$EXEEXT"; then
21889 am__EXEEXT_TRUE=
21890 am__EXEEXT_FALSE='#'
21891 else
21892 am__EXEEXT_TRUE='#'
21893 am__EXEEXT_FALSE=
21896 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21897 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
21898 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21900 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21901 as_fn_error $? "conditional \"AMDEP\" was never defined.
21902 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21904 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21905 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21906 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21909 : "${CONFIG_STATUS=./config.status}"
21910 ac_write_fail=0
21911 ac_clean_files_save=$ac_clean_files
21912 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21913 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21914 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21915 as_write_fail=0
21916 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21917 #! $SHELL
21918 # Generated by $as_me.
21919 # Run this file to recreate the current configuration.
21920 # Compiler output produced by configure, useful for debugging
21921 # configure, is in config.log if it exists.
21923 debug=false
21924 ac_cs_recheck=false
21925 ac_cs_silent=false
21927 SHELL=\${CONFIG_SHELL-$SHELL}
21928 export SHELL
21929 _ASEOF
21930 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
21931 ## -------------------- ##
21932 ## M4sh Initialization. ##
21933 ## -------------------- ##
21935 # Be more Bourne compatible
21936 DUALCASE=1; export DUALCASE # for MKS sh
21937 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21938 emulate sh
21939 NULLCMD=:
21940 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21941 # is contrary to our usage. Disable this feature.
21942 alias -g '${1+"$@"}'='"$@"'
21943 setopt NO_GLOB_SUBST
21944 else
21945 case `(set -o) 2>/dev/null` in #(
21946 *posix*) :
21947 set -o posix ;; #(
21948 *) :
21950 esac
21954 as_nl='
21956 export as_nl
21957 # Printing a long string crashes Solaris 7 /usr/bin/printf.
21958 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21959 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21960 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21961 # Prefer a ksh shell builtin over an external printf program on Solaris,
21962 # but without wasting forks for bash or zsh.
21963 if test -z "$BASH_VERSION$ZSH_VERSION" \
21964 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
21965 as_echo='print -r --'
21966 as_echo_n='print -rn --'
21967 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21968 as_echo='printf %s\n'
21969 as_echo_n='printf %s'
21970 else
21971 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
21972 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
21973 as_echo_n='/usr/ucb/echo -n'
21974 else
21975 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21976 as_echo_n_body='eval
21977 arg=$1;
21978 case $arg in #(
21979 *"$as_nl"*)
21980 expr "X$arg" : "X\\(.*\\)$as_nl";
21981 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21982 esac;
21983 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
21985 export as_echo_n_body
21986 as_echo_n='sh -c $as_echo_n_body as_echo'
21988 export as_echo_body
21989 as_echo='sh -c $as_echo_body as_echo'
21992 # The user is always right.
21993 if test "${PATH_SEPARATOR+set}" != set; then
21994 PATH_SEPARATOR=:
21995 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21996 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21997 PATH_SEPARATOR=';'
22002 # IFS
22003 # We need space, tab and new line, in precisely that order. Quoting is
22004 # there to prevent editors from complaining about space-tab.
22005 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22006 # splitting by setting IFS to empty value.)
22007 IFS=" "" $as_nl"
22009 # Find who we are. Look in the path if we contain no directory separator.
22010 as_myself=
22011 case $0 in #((
22012 *[\\/]* ) as_myself=$0 ;;
22013 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22014 for as_dir in $PATH
22016 IFS=$as_save_IFS
22017 test -z "$as_dir" && as_dir=.
22018 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22019 done
22020 IFS=$as_save_IFS
22023 esac
22024 # We did not find ourselves, most probably we were run as `sh COMMAND'
22025 # in which case we are not to be found in the path.
22026 if test "x$as_myself" = x; then
22027 as_myself=$0
22029 if test ! -f "$as_myself"; then
22030 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22031 exit 1
22034 # Unset variables that we do not need and which cause bugs (e.g. in
22035 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
22036 # suppresses any "Segmentation fault" message there. '((' could
22037 # trigger a bug in pdksh 5.2.14.
22038 for as_var in BASH_ENV ENV MAIL MAILPATH
22039 do eval test x\${$as_var+set} = xset \
22040 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
22041 done
22042 PS1='$ '
22043 PS2='> '
22044 PS4='+ '
22046 # NLS nuisances.
22047 LC_ALL=C
22048 export LC_ALL
22049 LANGUAGE=C
22050 export LANGUAGE
22052 # CDPATH.
22053 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22056 # as_fn_error STATUS ERROR [LINENO LOG_FD]
22057 # ----------------------------------------
22058 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
22059 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22060 # script with STATUS, using 1 if that was 0.
22061 as_fn_error ()
22063 as_status=$1; test $as_status -eq 0 && as_status=1
22064 if test "$4"; then
22065 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22066 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
22068 $as_echo "$as_me: error: $2" >&2
22069 as_fn_exit $as_status
22070 } # as_fn_error
22073 # as_fn_set_status STATUS
22074 # -----------------------
22075 # Set $? to STATUS, without forking.
22076 as_fn_set_status ()
22078 return $1
22079 } # as_fn_set_status
22081 # as_fn_exit STATUS
22082 # -----------------
22083 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
22084 as_fn_exit ()
22086 set +e
22087 as_fn_set_status $1
22088 exit $1
22089 } # as_fn_exit
22091 # as_fn_unset VAR
22092 # ---------------
22093 # Portably unset VAR.
22094 as_fn_unset ()
22096 { eval $1=; unset $1;}
22098 as_unset=as_fn_unset
22099 # as_fn_append VAR VALUE
22100 # ----------------------
22101 # Append the text in VALUE to the end of the definition contained in VAR. Take
22102 # advantage of any shell optimizations that allow amortized linear growth over
22103 # repeated appends, instead of the typical quadratic growth present in naive
22104 # implementations.
22105 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
22106 eval 'as_fn_append ()
22108 eval $1+=\$2
22110 else
22111 as_fn_append ()
22113 eval $1=\$$1\$2
22115 fi # as_fn_append
22117 # as_fn_arith ARG...
22118 # ------------------
22119 # Perform arithmetic evaluation on the ARGs, and store the result in the
22120 # global $as_val. Take advantage of shells that can avoid forks. The arguments
22121 # must be portable across $(()) and expr.
22122 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
22123 eval 'as_fn_arith ()
22125 as_val=$(( $* ))
22127 else
22128 as_fn_arith ()
22130 as_val=`expr "$@" || test $? -eq 1`
22132 fi # as_fn_arith
22135 if expr a : '\(a\)' >/dev/null 2>&1 &&
22136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22137 as_expr=expr
22138 else
22139 as_expr=false
22142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22143 as_basename=basename
22144 else
22145 as_basename=false
22148 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22149 as_dirname=dirname
22150 else
22151 as_dirname=false
22154 as_me=`$as_basename -- "$0" ||
22155 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22156 X"$0" : 'X\(//\)$' \| \
22157 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22158 $as_echo X/"$0" |
22159 sed '/^.*\/\([^/][^/]*\)\/*$/{
22160 s//\1/
22163 /^X\/\(\/\/\)$/{
22164 s//\1/
22167 /^X\/\(\/\).*/{
22168 s//\1/
22171 s/.*/./; q'`
22173 # Avoid depending upon Character Ranges.
22174 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22175 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22176 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22177 as_cr_digits='0123456789'
22178 as_cr_alnum=$as_cr_Letters$as_cr_digits
22180 ECHO_C= ECHO_N= ECHO_T=
22181 case `echo -n x` in #(((((
22182 -n*)
22183 case `echo 'xy\c'` in
22184 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22185 xy) ECHO_C='\c';;
22186 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
22187 ECHO_T=' ';;
22188 esac;;
22190 ECHO_N='-n';;
22191 esac
22193 rm -f conf$$ conf$$.exe conf$$.file
22194 if test -d conf$$.dir; then
22195 rm -f conf$$.dir/conf$$.file
22196 else
22197 rm -f conf$$.dir
22198 mkdir conf$$.dir 2>/dev/null
22200 if (echo >conf$$.file) 2>/dev/null; then
22201 if ln -s conf$$.file conf$$ 2>/dev/null; then
22202 as_ln_s='ln -s'
22203 # ... but there are two gotchas:
22204 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22205 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22206 # In both cases, we have to default to `cp -pR'.
22207 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22208 as_ln_s='cp -pR'
22209 elif ln conf$$.file conf$$ 2>/dev/null; then
22210 as_ln_s=ln
22211 else
22212 as_ln_s='cp -pR'
22214 else
22215 as_ln_s='cp -pR'
22217 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22218 rmdir conf$$.dir 2>/dev/null
22221 # as_fn_mkdir_p
22222 # -------------
22223 # Create "$as_dir" as a directory, including parents if necessary.
22224 as_fn_mkdir_p ()
22227 case $as_dir in #(
22228 -*) as_dir=./$as_dir;;
22229 esac
22230 test -d "$as_dir" || eval $as_mkdir_p || {
22231 as_dirs=
22232 while :; do
22233 case $as_dir in #(
22234 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22235 *) as_qdir=$as_dir;;
22236 esac
22237 as_dirs="'$as_qdir' $as_dirs"
22238 as_dir=`$as_dirname -- "$as_dir" ||
22239 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22240 X"$as_dir" : 'X\(//\)[^/]' \| \
22241 X"$as_dir" : 'X\(//\)$' \| \
22242 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22243 $as_echo X"$as_dir" |
22244 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22245 s//\1/
22248 /^X\(\/\/\)[^/].*/{
22249 s//\1/
22252 /^X\(\/\/\)$/{
22253 s//\1/
22256 /^X\(\/\).*/{
22257 s//\1/
22260 s/.*/./; q'`
22261 test -d "$as_dir" && break
22262 done
22263 test -z "$as_dirs" || eval "mkdir $as_dirs"
22264 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
22267 } # as_fn_mkdir_p
22268 if mkdir -p . 2>/dev/null; then
22269 as_mkdir_p='mkdir -p "$as_dir"'
22270 else
22271 test -d ./-p && rmdir ./-p
22272 as_mkdir_p=false
22276 # as_fn_executable_p FILE
22277 # -----------------------
22278 # Test if FILE is an executable regular file.
22279 as_fn_executable_p ()
22281 test -f "$1" && test -x "$1"
22282 } # as_fn_executable_p
22283 as_test_x='test -x'
22284 as_executable_p=as_fn_executable_p
22286 # Sed expression to map a string onto a valid CPP name.
22287 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22289 # Sed expression to map a string onto a valid variable name.
22290 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22293 exec 6>&1
22294 ## ----------------------------------- ##
22295 ## Main body of $CONFIG_STATUS script. ##
22296 ## ----------------------------------- ##
22297 _ASEOF
22298 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
22300 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22301 # Save the log message, to keep $0 and so on meaningful, and to
22302 # report actual input values of CONFIG_FILES etc. instead of their
22303 # values after options handling.
22304 ac_log="
22305 This file was extended by alpine $as_me 2.25, which was
22306 generated by GNU Autoconf 2.69. Invocation command line was
22308 CONFIG_FILES = $CONFIG_FILES
22309 CONFIG_HEADERS = $CONFIG_HEADERS
22310 CONFIG_LINKS = $CONFIG_LINKS
22311 CONFIG_COMMANDS = $CONFIG_COMMANDS
22312 $ $0 $@
22314 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22317 _ACEOF
22319 case $ac_config_files in *"
22320 "*) set x $ac_config_files; shift; ac_config_files=$*;;
22321 esac
22323 case $ac_config_headers in *"
22324 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22325 esac
22328 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22329 # Files that config.status was made for.
22330 config_files="$ac_config_files"
22331 config_headers="$ac_config_headers"
22332 config_commands="$ac_config_commands"
22334 _ACEOF
22336 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22337 ac_cs_usage="\
22338 \`$as_me' instantiates files and other configuration actions
22339 from templates according to the current configuration. Unless the files
22340 and actions are specified as TAGs, all are instantiated by default.
22342 Usage: $0 [OPTION]... [TAG]...
22344 -h, --help print this help, then exit
22345 -V, --version print version number and configuration settings, then exit
22346 --config print configuration, then exit
22347 -q, --quiet, --silent
22348 do not print progress messages
22349 -d, --debug don't remove temporary files
22350 --recheck update $as_me by reconfiguring in the same conditions
22351 --file=FILE[:TEMPLATE]
22352 instantiate the configuration file FILE
22353 --header=FILE[:TEMPLATE]
22354 instantiate the configuration header FILE
22356 Configuration files:
22357 $config_files
22359 Configuration headers:
22360 $config_headers
22362 Configuration commands:
22363 $config_commands
22365 Report bugs to <chappa@washington.edu>."
22367 _ACEOF
22368 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22369 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
22370 ac_cs_version="\\
22371 alpine config.status 2.25
22372 configured by $0, generated by GNU Autoconf 2.69,
22373 with options \\"\$ac_cs_config\\"
22375 Copyright (C) 2012 Free Software Foundation, Inc.
22376 This config.status script is free software; the Free Software Foundation
22377 gives unlimited permission to copy, distribute and modify it."
22379 ac_pwd='$ac_pwd'
22380 srcdir='$srcdir'
22381 INSTALL='$INSTALL'
22382 MKDIR_P='$MKDIR_P'
22383 AWK='$AWK'
22384 test -n "\$AWK" || AWK=awk
22385 _ACEOF
22387 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22388 # The default lists apply if the user does not specify any file.
22389 ac_need_defaults=:
22390 while test $# != 0
22392 case $1 in
22393 --*=?*)
22394 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22395 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22396 ac_shift=:
22398 --*=)
22399 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22400 ac_optarg=
22401 ac_shift=:
22404 ac_option=$1
22405 ac_optarg=$2
22406 ac_shift=shift
22408 esac
22410 case $ac_option in
22411 # Handling of the options.
22412 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22413 ac_cs_recheck=: ;;
22414 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22415 $as_echo "$ac_cs_version"; exit ;;
22416 --config | --confi | --conf | --con | --co | --c )
22417 $as_echo "$ac_cs_config"; exit ;;
22418 --debug | --debu | --deb | --de | --d | -d )
22419 debug=: ;;
22420 --file | --fil | --fi | --f )
22421 $ac_shift
22422 case $ac_optarg in
22423 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22424 '') as_fn_error $? "missing file argument" ;;
22425 esac
22426 as_fn_append CONFIG_FILES " '$ac_optarg'"
22427 ac_need_defaults=false;;
22428 --header | --heade | --head | --hea )
22429 $ac_shift
22430 case $ac_optarg in
22431 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22432 esac
22433 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
22434 ac_need_defaults=false;;
22435 --he | --h)
22436 # Conflict between --help and --header
22437 as_fn_error $? "ambiguous option: \`$1'
22438 Try \`$0 --help' for more information.";;
22439 --help | --hel | -h )
22440 $as_echo "$ac_cs_usage"; exit ;;
22441 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22442 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22443 ac_cs_silent=: ;;
22445 # This is an error.
22446 -*) as_fn_error $? "unrecognized option: \`$1'
22447 Try \`$0 --help' for more information." ;;
22449 *) as_fn_append ac_config_targets " $1"
22450 ac_need_defaults=false ;;
22452 esac
22453 shift
22454 done
22456 ac_configure_extra_args=
22458 if $ac_cs_silent; then
22459 exec 6>/dev/null
22460 ac_configure_extra_args="$ac_configure_extra_args --silent"
22463 _ACEOF
22464 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22465 if \$ac_cs_recheck; then
22466 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22467 shift
22468 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22469 CONFIG_SHELL='$SHELL'
22470 export CONFIG_SHELL
22471 exec "\$@"
22474 _ACEOF
22475 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22476 exec 5>>config.log
22478 echo
22479 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22480 ## Running $as_me. ##
22481 _ASBOX
22482 $as_echo "$ac_log"
22483 } >&5
22485 _ACEOF
22486 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22488 # INIT-COMMANDS
22490 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22493 # The HP-UX ksh and POSIX shell print the target directory to stdout
22494 # if CDPATH is set.
22495 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22497 sed_quote_subst='$sed_quote_subst'
22498 double_quote_subst='$double_quote_subst'
22499 delay_variable_subst='$delay_variable_subst'
22500 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
22501 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
22502 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
22503 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
22504 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
22505 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
22506 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
22507 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
22508 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
22509 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
22510 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
22511 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
22512 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
22513 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
22514 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
22515 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
22516 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
22517 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
22518 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
22519 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
22520 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
22521 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
22522 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
22523 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
22524 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
22525 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
22526 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
22527 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
22528 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
22529 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
22530 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
22531 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
22532 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
22533 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
22534 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
22535 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
22536 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
22537 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
22538 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
22539 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
22540 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
22541 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
22542 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
22543 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
22544 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
22545 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
22546 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22547 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22548 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
22549 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
22550 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
22551 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
22552 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
22553 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
22554 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
22555 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
22556 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
22557 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
22558 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"`'
22559 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
22560 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
22561 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
22562 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
22563 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
22564 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
22565 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
22566 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
22567 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
22568 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
22569 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
22570 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
22571 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
22572 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
22573 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
22574 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
22575 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
22576 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
22577 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
22578 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
22579 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22580 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
22581 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
22582 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
22583 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
22584 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
22585 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
22586 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22587 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
22588 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22589 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
22590 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22591 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
22592 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
22593 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
22594 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
22595 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
22596 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
22597 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
22598 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
22599 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
22600 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
22601 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
22602 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
22603 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
22604 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
22605 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
22606 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
22607 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
22608 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
22609 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
22610 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
22611 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
22612 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
22613 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
22614 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
22615 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
22616 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
22617 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
22618 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
22619 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
22620 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
22621 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22622 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22623 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
22624 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
22625 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
22626 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
22627 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
22628 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
22629 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
22630 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
22631 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
22632 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
22633 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
22634 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
22636 LTCC='$LTCC'
22637 LTCFLAGS='$LTCFLAGS'
22638 compiler='$compiler_DEFAULT'
22640 # A function that is used when there is no print builtin or printf.
22641 func_fallback_echo ()
22643 eval 'cat <<_LTECHO_EOF
22645 _LTECHO_EOF'
22648 # Quote evaled strings.
22649 for var in SHELL \
22650 ECHO \
22651 PATH_SEPARATOR \
22652 SED \
22653 GREP \
22654 EGREP \
22655 FGREP \
22656 LD \
22657 NM \
22658 LN_S \
22659 lt_SP2NL \
22660 lt_NL2SP \
22661 reload_flag \
22662 OBJDUMP \
22663 deplibs_check_method \
22664 file_magic_cmd \
22665 file_magic_glob \
22666 want_nocaseglob \
22667 DLLTOOL \
22668 sharedlib_from_linklib_cmd \
22669 AR \
22670 AR_FLAGS \
22671 archiver_list_spec \
22672 STRIP \
22673 RANLIB \
22674 CC \
22675 CFLAGS \
22676 compiler \
22677 lt_cv_sys_global_symbol_pipe \
22678 lt_cv_sys_global_symbol_to_cdecl \
22679 lt_cv_sys_global_symbol_to_import \
22680 lt_cv_sys_global_symbol_to_c_name_address \
22681 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22682 lt_cv_nm_interface \
22683 nm_file_list_spec \
22684 lt_cv_truncate_bin \
22685 lt_prog_compiler_no_builtin_flag \
22686 lt_prog_compiler_pic \
22687 lt_prog_compiler_wl \
22688 lt_prog_compiler_static \
22689 lt_cv_prog_compiler_c_o \
22690 need_locks \
22691 MANIFEST_TOOL \
22692 DSYMUTIL \
22693 NMEDIT \
22694 LIPO \
22695 OTOOL \
22696 OTOOL64 \
22697 shrext_cmds \
22698 export_dynamic_flag_spec \
22699 whole_archive_flag_spec \
22700 compiler_needs_object \
22701 with_gnu_ld \
22702 allow_undefined_flag \
22703 no_undefined_flag \
22704 hardcode_libdir_flag_spec \
22705 hardcode_libdir_separator \
22706 exclude_expsyms \
22707 include_expsyms \
22708 file_list_spec \
22709 variables_saved_for_relink \
22710 libname_spec \
22711 library_names_spec \
22712 soname_spec \
22713 install_override_mode \
22714 finish_eval \
22715 old_striplib \
22716 striplib; do
22717 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22718 *[\\\\\\\`\\"\\\$]*)
22719 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22722 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22724 esac
22725 done
22727 # Double-quote double-evaled strings.
22728 for var in reload_cmds \
22729 old_postinstall_cmds \
22730 old_postuninstall_cmds \
22731 old_archive_cmds \
22732 extract_expsyms_cmds \
22733 old_archive_from_new_cmds \
22734 old_archive_from_expsyms_cmds \
22735 archive_cmds \
22736 archive_expsym_cmds \
22737 module_cmds \
22738 module_expsym_cmds \
22739 export_symbols_cmds \
22740 prelink_cmds \
22741 postlink_cmds \
22742 postinstall_cmds \
22743 postuninstall_cmds \
22744 finish_cmds \
22745 sys_lib_search_path_spec \
22746 configure_time_dlsearch_path \
22747 configure_time_lt_sys_library_path; do
22748 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22749 *[\\\\\\\`\\"\\\$]*)
22750 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22753 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22755 esac
22756 done
22758 ac_aux_dir='$ac_aux_dir'
22760 # See if we are running on zsh, and set the options that allow our
22761 # commands through without removal of \ escapes INIT.
22762 if test -n "\${ZSH_VERSION+set}"; then
22763 setopt NO_GLOB_SUBST
22767 PACKAGE='$PACKAGE'
22768 VERSION='$VERSION'
22769 RM='$RM'
22770 ofile='$ofile'
22774 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
22775 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
22776 # from automake < 1.5.
22777 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
22778 # Capture the value of LINGUAS because we need it to compute CATALOGS.
22779 LINGUAS="${LINGUAS-%UNSET%}"
22782 _ACEOF
22784 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22786 # Handling of arguments.
22787 for ac_config_target in $ac_config_targets
22789 case $ac_config_target in
22790 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
22791 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22792 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
22793 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
22794 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
22795 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
22796 "$REGEX_MAKEFILE") CONFIG_FILES="$CONFIG_FILES $REGEX_MAKEFILE" ;;
22797 "pith/osdep/Makefile") CONFIG_FILES="$CONFIG_FILES pith/osdep/Makefile" ;;
22798 "pith/charconv/Makefile") CONFIG_FILES="$CONFIG_FILES pith/charconv/Makefile" ;;
22799 "pith/Makefile") CONFIG_FILES="$CONFIG_FILES pith/Makefile" ;;
22800 "pico/osdep/Makefile") CONFIG_FILES="$CONFIG_FILES pico/osdep/Makefile" ;;
22801 "pico/Makefile") CONFIG_FILES="$CONFIG_FILES pico/Makefile" ;;
22802 "alpine/osdep/Makefile") CONFIG_FILES="$CONFIG_FILES alpine/osdep/Makefile" ;;
22803 "alpine/Makefile") CONFIG_FILES="$CONFIG_FILES alpine/Makefile" ;;
22804 "web/src/Makefile") CONFIG_FILES="$CONFIG_FILES web/src/Makefile" ;;
22805 "web/src/pubcookie/Makefile") CONFIG_FILES="$CONFIG_FILES web/src/pubcookie/Makefile" ;;
22806 "web/src/alpined.d/Makefile") CONFIG_FILES="$CONFIG_FILES web/src/alpined.d/Makefile" ;;
22807 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22809 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
22810 esac
22811 done
22814 # If the user did not use the arguments to specify the items to instantiate,
22815 # then the envvar interface is used. Set only those that are not.
22816 # We use the long form for the default assignment because of an extremely
22817 # bizarre bug on SunOS 4.1.3.
22818 if $ac_need_defaults; then
22819 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22820 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22821 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22824 # Have a temporary directory for convenience. Make it in the build tree
22825 # simply because there is no reason against having it here, and in addition,
22826 # creating and moving files from /tmp can sometimes cause problems.
22827 # Hook for its removal unless debugging.
22828 # Note that there is a small window in which the directory will not be cleaned:
22829 # after its creation but before its name has been assigned to `$tmp'.
22830 $debug ||
22832 tmp= ac_tmp=
22833 trap 'exit_status=$?
22834 : "${ac_tmp:=$tmp}"
22835 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
22837 trap 'as_fn_exit 1' 1 2 13 15
22839 # Create a (secure) tmp directory for tmp files.
22842 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22843 test -d "$tmp"
22844 } ||
22846 tmp=./conf$$-$RANDOM
22847 (umask 077 && mkdir "$tmp")
22848 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
22849 ac_tmp=$tmp
22851 # Set up the scripts for CONFIG_FILES section.
22852 # No need to generate them if there are no CONFIG_FILES.
22853 # This happens for instance with `./config.status config.h'.
22854 if test -n "$CONFIG_FILES"; then
22857 ac_cr=`echo X | tr X '\015'`
22858 # On cygwin, bash can eat \r inside `` if the user requested igncr.
22859 # But we know of no other shell where ac_cr would be empty at this
22860 # point, so we can use a bashism as a fallback.
22861 if test "x$ac_cr" = x; then
22862 eval ac_cr=\$\'\\r\'
22864 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22865 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22866 ac_cs_awk_cr='\\r'
22867 else
22868 ac_cs_awk_cr=$ac_cr
22871 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
22872 _ACEOF
22876 echo "cat >conf$$subs.awk <<_ACEOF" &&
22877 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22878 echo "_ACEOF"
22879 } >conf$$subs.sh ||
22880 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22881 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
22882 ac_delim='%!_!# '
22883 for ac_last_try in false false false false false :; do
22884 . ./conf$$subs.sh ||
22885 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22887 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22888 if test $ac_delim_n = $ac_delim_num; then
22889 break
22890 elif $ac_last_try; then
22891 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22892 else
22893 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22895 done
22896 rm -f conf$$subs.sh
22898 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22899 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
22900 _ACEOF
22901 sed -n '
22903 s/^/S["/; s/!.*/"]=/
22906 s/^[^!]*!//
22907 :repl
22908 t repl
22909 s/'"$ac_delim"'$//
22910 t delim
22913 s/\(.\{148\}\)..*/\1/
22914 t more1
22915 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22918 b repl
22919 :more1
22920 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22923 s/.\{148\}//
22924 t nl
22925 :delim
22927 s/\(.\{148\}\)..*/\1/
22928 t more2
22929 s/["\\]/\\&/g; s/^/"/; s/$/"/
22932 :more2
22933 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22936 s/.\{148\}//
22937 t delim
22938 ' <conf$$subs.awk | sed '
22939 /^[^""]/{
22941 s/\n//
22943 ' >>$CONFIG_STATUS || ac_write_fail=1
22944 rm -f conf$$subs.awk
22945 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22946 _ACAWK
22947 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
22948 for (key in S) S_is_set[key] = 1
22949 FS = "\a"
22953 line = $ 0
22954 nfields = split(line, field, "@")
22955 substed = 0
22956 len = length(field[1])
22957 for (i = 2; i < nfields; i++) {
22958 key = field[i]
22959 keylen = length(key)
22960 if (S_is_set[key]) {
22961 value = S[key]
22962 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22963 len += length(value) + length(field[++i])
22964 substed = 1
22965 } else
22966 len += 1 + keylen
22969 print line
22972 _ACAWK
22973 _ACEOF
22974 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22975 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22976 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22977 else
22979 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
22980 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
22981 _ACEOF
22983 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
22984 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
22985 # trailing colons and then remove the whole line if VPATH becomes empty
22986 # (actually we leave an empty line to preserve line numbers).
22987 if test "x$srcdir" = x.; then
22988 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
22990 s///
22991 s/^/:/
22992 s/[ ]*$/:/
22993 s/:\$(srcdir):/:/g
22994 s/:\${srcdir}:/:/g
22995 s/:@srcdir@:/:/g
22996 s/^:*//
22997 s/:*$//
22999 s/\(=[ ]*\).*/\1/
23001 s/\n//
23002 s/^[^=]*=[ ]*$//
23006 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23007 fi # test -n "$CONFIG_FILES"
23009 # Set up the scripts for CONFIG_HEADERS section.
23010 # No need to generate them if there are no CONFIG_HEADERS.
23011 # This happens for instance with `./config.status Makefile'.
23012 if test -n "$CONFIG_HEADERS"; then
23013 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
23014 BEGIN {
23015 _ACEOF
23017 # Transform confdefs.h into an awk script `defines.awk', embedded as
23018 # here-document in config.status, that substitutes the proper values into
23019 # config.h.in to produce config.h.
23021 # Create a delimiter string that does not exist in confdefs.h, to ease
23022 # handling of long lines.
23023 ac_delim='%!_!# '
23024 for ac_last_try in false false :; do
23025 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
23026 if test -z "$ac_tt"; then
23027 break
23028 elif $ac_last_try; then
23029 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
23030 else
23031 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23033 done
23035 # For the awk script, D is an array of macro values keyed by name,
23036 # likewise P contains macro parameters if any. Preserve backslash
23037 # newline sequences.
23039 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23040 sed -n '
23041 s/.\{148\}/&'"$ac_delim"'/g
23042 t rset
23043 :rset
23044 s/^[ ]*#[ ]*define[ ][ ]*/ /
23045 t def
23047 :def
23048 s/\\$//
23049 t bsnl
23050 s/["\\]/\\&/g
23051 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23052 D["\1"]=" \3"/p
23053 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
23055 :bsnl
23056 s/["\\]/\\&/g
23057 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23058 D["\1"]=" \3\\\\\\n"\\/p
23059 t cont
23060 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
23061 t cont
23063 :cont
23065 s/.\{148\}/&'"$ac_delim"'/g
23066 t clear
23067 :clear
23068 s/\\$//
23069 t bsnlc
23070 s/["\\]/\\&/g; s/^/"/; s/$/"/p
23072 :bsnlc
23073 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
23074 b cont
23075 ' <confdefs.h | sed '
23076 s/'"$ac_delim"'/"\\\
23077 "/g' >>$CONFIG_STATUS || ac_write_fail=1
23079 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23080 for (key in D) D_is_set[key] = 1
23081 FS = "\a"
23083 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23084 line = \$ 0
23085 split(line, arg, " ")
23086 if (arg[1] == "#") {
23087 defundef = arg[2]
23088 mac1 = arg[3]
23089 } else {
23090 defundef = substr(arg[1], 2)
23091 mac1 = arg[2]
23093 split(mac1, mac2, "(") #)
23094 macro = mac2[1]
23095 prefix = substr(line, 1, index(line, defundef) - 1)
23096 if (D_is_set[macro]) {
23097 # Preserve the white space surrounding the "#".
23098 print prefix "define", macro P[macro] D[macro]
23099 next
23100 } else {
23101 # Replace #undef with comments. This is necessary, for example,
23102 # in the case of _POSIX_SOURCE, which is predefined and required
23103 # on some systems where configure will not decide to define it.
23104 if (defundef == "undef") {
23105 print "/*", prefix defundef, macro, "*/"
23106 next
23110 { print }
23111 _ACAWK
23112 _ACEOF
23113 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23114 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
23115 fi # test -n "$CONFIG_HEADERS"
23118 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
23119 shift
23120 for ac_tag
23122 case $ac_tag in
23123 :[FHLC]) ac_mode=$ac_tag; continue;;
23124 esac
23125 case $ac_mode$ac_tag in
23126 :[FHL]*:*);;
23127 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
23128 :[FH]-) ac_tag=-:-;;
23129 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23130 esac
23131 ac_save_IFS=$IFS
23132 IFS=:
23133 set x $ac_tag
23134 IFS=$ac_save_IFS
23135 shift
23136 ac_file=$1
23137 shift
23139 case $ac_mode in
23140 :L) ac_source=$1;;
23141 :[FH])
23142 ac_file_inputs=
23143 for ac_f
23145 case $ac_f in
23146 -) ac_f="$ac_tmp/stdin";;
23147 *) # Look for the file first in the build tree, then in the source tree
23148 # (if the path is not absolute). The absolute path cannot be DOS-style,
23149 # because $ac_f cannot contain `:'.
23150 test -f "$ac_f" ||
23151 case $ac_f in
23152 [\\/$]*) false;;
23153 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23154 esac ||
23155 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
23156 esac
23157 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23158 as_fn_append ac_file_inputs " '$ac_f'"
23159 done
23161 # Let's still pretend it is `configure' which instantiates (i.e., don't
23162 # use $as_me), people would be surprised to read:
23163 # /* config.h. Generated by config.status. */
23164 configure_input='Generated from '`
23165 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23166 `' by configure.'
23167 if test x"$ac_file" != x-; then
23168 configure_input="$ac_file. $configure_input"
23169 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
23170 $as_echo "$as_me: creating $ac_file" >&6;}
23172 # Neutralize special characters interpreted by sed in replacement strings.
23173 case $configure_input in #(
23174 *\&* | *\|* | *\\* )
23175 ac_sed_conf_input=`$as_echo "$configure_input" |
23176 sed 's/[\\\\&|]/\\\\&/g'`;; #(
23177 *) ac_sed_conf_input=$configure_input;;
23178 esac
23180 case $ac_tag in
23181 *:-:* | *:-) cat >"$ac_tmp/stdin" \
23182 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
23183 esac
23185 esac
23187 ac_dir=`$as_dirname -- "$ac_file" ||
23188 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23189 X"$ac_file" : 'X\(//\)[^/]' \| \
23190 X"$ac_file" : 'X\(//\)$' \| \
23191 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23192 $as_echo X"$ac_file" |
23193 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23194 s//\1/
23197 /^X\(\/\/\)[^/].*/{
23198 s//\1/
23201 /^X\(\/\/\)$/{
23202 s//\1/
23205 /^X\(\/\).*/{
23206 s//\1/
23209 s/.*/./; q'`
23210 as_dir="$ac_dir"; as_fn_mkdir_p
23211 ac_builddir=.
23213 case "$ac_dir" in
23214 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23216 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23217 # A ".." for each directory in $ac_dir_suffix.
23218 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23219 case $ac_top_builddir_sub in
23220 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23221 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23222 esac ;;
23223 esac
23224 ac_abs_top_builddir=$ac_pwd
23225 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23226 # for backward compatibility:
23227 ac_top_builddir=$ac_top_build_prefix
23229 case $srcdir in
23230 .) # We are building in place.
23231 ac_srcdir=.
23232 ac_top_srcdir=$ac_top_builddir_sub
23233 ac_abs_top_srcdir=$ac_pwd ;;
23234 [\\/]* | ?:[\\/]* ) # Absolute name.
23235 ac_srcdir=$srcdir$ac_dir_suffix;
23236 ac_top_srcdir=$srcdir
23237 ac_abs_top_srcdir=$srcdir ;;
23238 *) # Relative name.
23239 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23240 ac_top_srcdir=$ac_top_build_prefix$srcdir
23241 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23242 esac
23243 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23246 case $ac_mode in
23249 # CONFIG_FILE
23252 case $INSTALL in
23253 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23254 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23255 esac
23256 ac_MKDIR_P=$MKDIR_P
23257 case $MKDIR_P in
23258 [\\/$]* | ?:[\\/]* ) ;;
23259 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23260 esac
23261 _ACEOF
23263 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23264 # If the template does not know about datarootdir, expand it.
23265 # FIXME: This hack should be removed a few years after 2.60.
23266 ac_datarootdir_hack=; ac_datarootdir_seen=
23267 ac_sed_dataroot='
23268 /datarootdir/ {
23272 /@datadir@/p
23273 /@docdir@/p
23274 /@infodir@/p
23275 /@localedir@/p
23276 /@mandir@/p'
23277 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23278 *datarootdir*) ac_datarootdir_seen=yes;;
23279 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23281 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23282 _ACEOF
23283 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23284 ac_datarootdir_hack='
23285 s&@datadir@&$datadir&g
23286 s&@docdir@&$docdir&g
23287 s&@infodir@&$infodir&g
23288 s&@localedir@&$localedir&g
23289 s&@mandir@&$mandir&g
23290 s&\\\${datarootdir}&$datarootdir&g' ;;
23291 esac
23292 _ACEOF
23294 # Neutralize VPATH when `$srcdir' = `.'.
23295 # Shell code in configure.ac might set extrasub.
23296 # FIXME: do we really want to maintain this feature?
23297 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23298 ac_sed_extra="$ac_vpsub
23299 $extrasub
23300 _ACEOF
23301 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23303 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23304 s|@configure_input@|$ac_sed_conf_input|;t t
23305 s&@top_builddir@&$ac_top_builddir_sub&;t t
23306 s&@top_build_prefix@&$ac_top_build_prefix&;t t
23307 s&@srcdir@&$ac_srcdir&;t t
23308 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23309 s&@top_srcdir@&$ac_top_srcdir&;t t
23310 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23311 s&@builddir@&$ac_builddir&;t t
23312 s&@abs_builddir@&$ac_abs_builddir&;t t
23313 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23314 s&@INSTALL@&$ac_INSTALL&;t t
23315 s&@MKDIR_P@&$ac_MKDIR_P&;t t
23316 $ac_datarootdir_hack
23318 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
23319 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23321 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23322 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
23323 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
23324 "$ac_tmp/out"`; test -z "$ac_out"; } &&
23325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23326 which seems to be undefined. Please make sure it is defined" >&5
23327 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23328 which seems to be undefined. Please make sure it is defined" >&2;}
23330 rm -f "$ac_tmp/stdin"
23331 case $ac_file in
23332 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
23333 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
23334 esac \
23335 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23339 # CONFIG_HEADER
23341 if test x"$ac_file" != x-; then
23343 $as_echo "/* $configure_input */" \
23344 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
23345 } >"$ac_tmp/config.h" \
23346 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23347 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
23348 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
23349 $as_echo "$as_me: $ac_file is unchanged" >&6;}
23350 else
23351 rm -f "$ac_file"
23352 mv "$ac_tmp/config.h" "$ac_file" \
23353 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23355 else
23356 $as_echo "/* $configure_input */" \
23357 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
23358 || as_fn_error $? "could not create -" "$LINENO" 5
23360 # Compute "$ac_file"'s index in $config_headers.
23361 _am_arg="$ac_file"
23362 _am_stamp_count=1
23363 for _am_header in $config_headers :; do
23364 case $_am_header in
23365 $_am_arg | $_am_arg:* )
23366 break ;;
23368 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23369 esac
23370 done
23371 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23372 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23373 X"$_am_arg" : 'X\(//\)[^/]' \| \
23374 X"$_am_arg" : 'X\(//\)$' \| \
23375 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23376 $as_echo X"$_am_arg" |
23377 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23378 s//\1/
23381 /^X\(\/\/\)[^/].*/{
23382 s//\1/
23385 /^X\(\/\/\)$/{
23386 s//\1/
23389 /^X\(\/\).*/{
23390 s//\1/
23393 s/.*/./; q'`/stamp-h$_am_stamp_count
23396 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23397 $as_echo "$as_me: executing $ac_file commands" >&6;}
23399 esac
23402 case $ac_file$ac_mode in
23403 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
23404 # Older Autoconf quotes --file arguments for eval, but not when files
23405 # are listed without --file. Let's play safe and only enable the eval
23406 # if we detect the quoting.
23407 case $CONFIG_FILES in
23408 *\'*) eval set x "$CONFIG_FILES" ;;
23409 *) set x $CONFIG_FILES ;;
23410 esac
23411 shift
23412 for mf
23414 # Strip MF so we end up with the name of the file.
23415 mf=`echo "$mf" | sed -e 's/:.*$//'`
23416 # Check whether this is an Automake generated Makefile or not.
23417 # We used to match only the files named 'Makefile.in', but
23418 # some people rename them; so instead we look at the file content.
23419 # Grep'ing the first line is not enough: some people post-process
23420 # each Makefile.in and add a new line on top of each file to say so.
23421 # Grep'ing the whole file is not good either: AIX grep has a line
23422 # limit of 2048, but all sed's we know have understand at least 4000.
23423 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
23424 dirpart=`$as_dirname -- "$mf" ||
23425 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23426 X"$mf" : 'X\(//\)[^/]' \| \
23427 X"$mf" : 'X\(//\)$' \| \
23428 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23429 $as_echo X"$mf" |
23430 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23431 s//\1/
23434 /^X\(\/\/\)[^/].*/{
23435 s//\1/
23438 /^X\(\/\/\)$/{
23439 s//\1/
23442 /^X\(\/\).*/{
23443 s//\1/
23446 s/.*/./; q'`
23447 else
23448 continue
23450 # Extract the definition of DEPDIR, am__include, and am__quote
23451 # from the Makefile without running 'make'.
23452 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23453 test -z "$DEPDIR" && continue
23454 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23455 test -z "$am__include" && continue
23456 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23457 # Find all dependency output files, they are included files with
23458 # $(DEPDIR) in their names. We invoke sed twice because it is the
23459 # simplest approach to changing $(DEPDIR) to its actual value in the
23460 # expansion.
23461 for file in `sed -n "
23462 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23463 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
23464 # Make sure the directory exists.
23465 test -f "$dirpart/$file" && continue
23466 fdir=`$as_dirname -- "$file" ||
23467 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23468 X"$file" : 'X\(//\)[^/]' \| \
23469 X"$file" : 'X\(//\)$' \| \
23470 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23471 $as_echo X"$file" |
23472 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23473 s//\1/
23476 /^X\(\/\/\)[^/].*/{
23477 s//\1/
23480 /^X\(\/\/\)$/{
23481 s//\1/
23484 /^X\(\/\).*/{
23485 s//\1/
23488 s/.*/./; q'`
23489 as_dir=$dirpart/$fdir; as_fn_mkdir_p
23490 # echo "creating $dirpart/$file"
23491 echo '# dummy' > "$dirpart/$file"
23492 done
23493 done
23496 "libtool":C)
23498 # See if we are running on zsh, and set the options that allow our
23499 # commands through without removal of \ escapes.
23500 if test -n "${ZSH_VERSION+set}"; then
23501 setopt NO_GLOB_SUBST
23504 cfgfile=${ofile}T
23505 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23506 $RM "$cfgfile"
23508 cat <<_LT_EOF >> "$cfgfile"
23509 #! $SHELL
23510 # Generated automatically by $as_me ($PACKAGE) $VERSION
23511 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
23513 # Provide generalized library-building support services.
23514 # Written by Gordon Matzigkeit, 1996
23516 # Copyright (C) 2014 Free Software Foundation, Inc.
23517 # This is free software; see the source for copying conditions. There is NO
23518 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23520 # GNU Libtool is free software; you can redistribute it and/or modify
23521 # it under the terms of the GNU General Public License as published by
23522 # the Free Software Foundation; either version 2 of of the License, or
23523 # (at your option) any later version.
23525 # As a special exception to the GNU General Public License, if you
23526 # distribute this file as part of a program or library that is built
23527 # using GNU Libtool, you may include this file under the same
23528 # distribution terms that you use for the rest of that program.
23530 # GNU Libtool is distributed in the hope that it will be useful, but
23531 # WITHOUT ANY WARRANTY; without even the implied warranty of
23532 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23533 # GNU General Public License for more details.
23535 # You should have received a copy of the GNU General Public License
23536 # along with this program. If not, see <http://www.gnu.org/licenses/>.
23539 # The names of the tagged configurations supported by this script.
23540 available_tags=''
23542 # Configured defaults for sys_lib_dlsearch_path munging.
23543 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
23545 # ### BEGIN LIBTOOL CONFIG
23547 # Which release of libtool.m4 was used?
23548 macro_version=$macro_version
23549 macro_revision=$macro_revision
23551 # Whether or not to build shared libraries.
23552 build_libtool_libs=$enable_shared
23554 # Whether or not to build static libraries.
23555 build_old_libs=$enable_static
23557 # What type of objects to build.
23558 pic_mode=$pic_mode
23560 # Whether or not to optimize for fast installation.
23561 fast_install=$enable_fast_install
23563 # Shared archive member basename,for filename based shared library versioning on AIX.
23564 shared_archive_member_spec=$shared_archive_member_spec
23566 # Shell to use when invoking shell scripts.
23567 SHELL=$lt_SHELL
23569 # An echo program that protects backslashes.
23570 ECHO=$lt_ECHO
23572 # The PATH separator for the build system.
23573 PATH_SEPARATOR=$lt_PATH_SEPARATOR
23575 # The host system.
23576 host_alias=$host_alias
23577 host=$host
23578 host_os=$host_os
23580 # The build system.
23581 build_alias=$build_alias
23582 build=$build
23583 build_os=$build_os
23585 # A sed program that does not truncate output.
23586 SED=$lt_SED
23588 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
23589 Xsed="\$SED -e 1s/^X//"
23591 # A grep program that handles long lines.
23592 GREP=$lt_GREP
23594 # An ERE matcher.
23595 EGREP=$lt_EGREP
23597 # A literal string matcher.
23598 FGREP=$lt_FGREP
23600 # A BSD- or MS-compatible name lister.
23601 NM=$lt_NM
23603 # Whether we need soft or hard links.
23604 LN_S=$lt_LN_S
23606 # What is the maximum length of a command?
23607 max_cmd_len=$max_cmd_len
23609 # Object file suffix (normally "o").
23610 objext=$ac_objext
23612 # Executable file suffix (normally "").
23613 exeext=$exeext
23615 # whether the shell understands "unset".
23616 lt_unset=$lt_unset
23618 # turn spaces into newlines.
23619 SP2NL=$lt_lt_SP2NL
23621 # turn newlines into spaces.
23622 NL2SP=$lt_lt_NL2SP
23624 # convert \$build file names to \$host format.
23625 to_host_file_cmd=$lt_cv_to_host_file_cmd
23627 # convert \$build files to toolchain format.
23628 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
23630 # An object symbol dumper.
23631 OBJDUMP=$lt_OBJDUMP
23633 # Method to check whether dependent libraries are shared objects.
23634 deplibs_check_method=$lt_deplibs_check_method
23636 # Command to use when deplibs_check_method = "file_magic".
23637 file_magic_cmd=$lt_file_magic_cmd
23639 # How to find potential files when deplibs_check_method = "file_magic".
23640 file_magic_glob=$lt_file_magic_glob
23642 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
23643 want_nocaseglob=$lt_want_nocaseglob
23645 # DLL creation program.
23646 DLLTOOL=$lt_DLLTOOL
23648 # Command to associate shared and link libraries.
23649 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
23651 # The archiver.
23652 AR=$lt_AR
23654 # Flags to create an archive.
23655 AR_FLAGS=$lt_AR_FLAGS
23657 # How to feed a file listing to the archiver.
23658 archiver_list_spec=$lt_archiver_list_spec
23660 # A symbol stripping program.
23661 STRIP=$lt_STRIP
23663 # Commands used to install an old-style archive.
23664 RANLIB=$lt_RANLIB
23665 old_postinstall_cmds=$lt_old_postinstall_cmds
23666 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23668 # Whether to use a lock for old archive extraction.
23669 lock_old_archive_extraction=$lock_old_archive_extraction
23671 # A C compiler.
23672 LTCC=$lt_CC
23674 # LTCC compiler flags.
23675 LTCFLAGS=$lt_CFLAGS
23677 # Take the output of nm and produce a listing of raw symbols and C names.
23678 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23680 # Transform the output of nm in a proper C declaration.
23681 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23683 # Transform the output of nm into a list of symbols to manually relocate.
23684 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
23686 # Transform the output of nm in a C name address pair.
23687 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23689 # Transform the output of nm in a C name address pair when lib prefix is needed.
23690 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23692 # The name lister interface.
23693 nm_interface=$lt_lt_cv_nm_interface
23695 # Specify filename containing input files for \$NM.
23696 nm_file_list_spec=$lt_nm_file_list_spec
23698 # The root where to search for dependent libraries,and where our libraries should be installed.
23699 lt_sysroot=$lt_sysroot
23701 # Command to truncate a binary pipe.
23702 lt_truncate_bin=$lt_lt_cv_truncate_bin
23704 # The name of the directory that contains temporary libtool files.
23705 objdir=$objdir
23707 # Used to examine libraries when file_magic_cmd begins with "file".
23708 MAGIC_CMD=$MAGIC_CMD
23710 # Must we lock files when doing compilation?
23711 need_locks=$lt_need_locks
23713 # Manifest tool.
23714 MANIFEST_TOOL=$lt_MANIFEST_TOOL
23716 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23717 DSYMUTIL=$lt_DSYMUTIL
23719 # Tool to change global to local symbols on Mac OS X.
23720 NMEDIT=$lt_NMEDIT
23722 # Tool to manipulate fat objects and archives on Mac OS X.
23723 LIPO=$lt_LIPO
23725 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
23726 OTOOL=$lt_OTOOL
23728 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23729 OTOOL64=$lt_OTOOL64
23731 # Old archive suffix (normally "a").
23732 libext=$libext
23734 # Shared library suffix (normally ".so").
23735 shrext_cmds=$lt_shrext_cmds
23737 # The commands to extract the exported symbol list from a shared archive.
23738 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23740 # Variables whose values should be saved in libtool wrapper scripts and
23741 # restored at link time.
23742 variables_saved_for_relink=$lt_variables_saved_for_relink
23744 # Do we need the "lib" prefix for modules?
23745 need_lib_prefix=$need_lib_prefix
23747 # Do we need a version for libraries?
23748 need_version=$need_version
23750 # Library versioning type.
23751 version_type=$version_type
23753 # Shared library runtime path variable.
23754 runpath_var=$runpath_var
23756 # Shared library path variable.
23757 shlibpath_var=$shlibpath_var
23759 # Is shlibpath searched before the hard-coded library search path?
23760 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23762 # Format of library name prefix.
23763 libname_spec=$lt_libname_spec
23765 # List of archive names. First name is the real one, the rest are links.
23766 # The last name is the one that the linker finds with -lNAME
23767 library_names_spec=$lt_library_names_spec
23769 # The coded name of the library, if different from the real name.
23770 soname_spec=$lt_soname_spec
23772 # Permission mode override for installation of shared libraries.
23773 install_override_mode=$lt_install_override_mode
23775 # Command to use after installation of a shared archive.
23776 postinstall_cmds=$lt_postinstall_cmds
23778 # Command to use after uninstallation of a shared archive.
23779 postuninstall_cmds=$lt_postuninstall_cmds
23781 # Commands used to finish a libtool library installation in a directory.
23782 finish_cmds=$lt_finish_cmds
23784 # As "finish_cmds", except a single script fragment to be evaled but
23785 # not shown.
23786 finish_eval=$lt_finish_eval
23788 # Whether we should hardcode library paths into libraries.
23789 hardcode_into_libs=$hardcode_into_libs
23791 # Compile-time system search path for libraries.
23792 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23794 # Detected run-time system search path for libraries.
23795 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
23797 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
23798 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
23800 # Whether dlopen is supported.
23801 dlopen_support=$enable_dlopen
23803 # Whether dlopen of programs is supported.
23804 dlopen_self=$enable_dlopen_self
23806 # Whether dlopen of statically linked programs is supported.
23807 dlopen_self_static=$enable_dlopen_self_static
23809 # Commands to strip libraries.
23810 old_striplib=$lt_old_striplib
23811 striplib=$lt_striplib
23814 # The linker used to build libraries.
23815 LD=$lt_LD
23817 # How to create reloadable object files.
23818 reload_flag=$lt_reload_flag
23819 reload_cmds=$lt_reload_cmds
23821 # Commands used to build an old-style archive.
23822 old_archive_cmds=$lt_old_archive_cmds
23824 # A language specific compiler.
23825 CC=$lt_compiler
23827 # Is the compiler the GNU compiler?
23828 with_gcc=$GCC
23830 # Compiler flag to turn off builtin functions.
23831 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23833 # Additional compiler flags for building library objects.
23834 pic_flag=$lt_lt_prog_compiler_pic
23836 # How to pass a linker flag through the compiler.
23837 wl=$lt_lt_prog_compiler_wl
23839 # Compiler flag to prevent dynamic linking.
23840 link_static_flag=$lt_lt_prog_compiler_static
23842 # Does compiler simultaneously support -c and -o options?
23843 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23845 # Whether or not to add -lc for building shared libraries.
23846 build_libtool_need_lc=$archive_cmds_need_lc
23848 # Whether or not to disallow shared libs when runtime libs are static.
23849 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23851 # Compiler flag to allow reflexive dlopens.
23852 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23854 # Compiler flag to generate shared objects directly from archives.
23855 whole_archive_flag_spec=$lt_whole_archive_flag_spec
23857 # Whether the compiler copes with passing no objects directly.
23858 compiler_needs_object=$lt_compiler_needs_object
23860 # Create an old-style archive from a shared archive.
23861 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23863 # Create a temporary old-style archive to link instead of a shared archive.
23864 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23866 # Commands used to build a shared archive.
23867 archive_cmds=$lt_archive_cmds
23868 archive_expsym_cmds=$lt_archive_expsym_cmds
23870 # Commands used to build a loadable module if different from building
23871 # a shared archive.
23872 module_cmds=$lt_module_cmds
23873 module_expsym_cmds=$lt_module_expsym_cmds
23875 # Whether we are building with GNU ld or not.
23876 with_gnu_ld=$lt_with_gnu_ld
23878 # Flag that allows shared libraries with undefined symbols to be built.
23879 allow_undefined_flag=$lt_allow_undefined_flag
23881 # Flag that enforces no undefined symbols.
23882 no_undefined_flag=$lt_no_undefined_flag
23884 # Flag to hardcode \$libdir into a binary during linking.
23885 # This must work even if \$libdir does not exist
23886 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23888 # Whether we need a single "-rpath" flag with a separated argument.
23889 hardcode_libdir_separator=$lt_hardcode_libdir_separator
23891 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23892 # DIR into the resulting binary.
23893 hardcode_direct=$hardcode_direct
23895 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23896 # DIR into the resulting binary and the resulting library dependency is
23897 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
23898 # library is relocated.
23899 hardcode_direct_absolute=$hardcode_direct_absolute
23901 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23902 # into the resulting binary.
23903 hardcode_minus_L=$hardcode_minus_L
23905 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23906 # into the resulting binary.
23907 hardcode_shlibpath_var=$hardcode_shlibpath_var
23909 # Set to "yes" if building a shared library automatically hardcodes DIR
23910 # into the library and all subsequent libraries and executables linked
23911 # against it.
23912 hardcode_automatic=$hardcode_automatic
23914 # Set to yes if linker adds runtime paths of dependent libraries
23915 # to runtime path list.
23916 inherit_rpath=$inherit_rpath
23918 # Whether libtool must link a program against all its dependency libraries.
23919 link_all_deplibs=$link_all_deplibs
23921 # Set to "yes" if exported symbols are required.
23922 always_export_symbols=$always_export_symbols
23924 # The commands to list exported symbols.
23925 export_symbols_cmds=$lt_export_symbols_cmds
23927 # Symbols that should not be listed in the preloaded symbols.
23928 exclude_expsyms=$lt_exclude_expsyms
23930 # Symbols that must always be exported.
23931 include_expsyms=$lt_include_expsyms
23933 # Commands necessary for linking programs (against libraries) with templates.
23934 prelink_cmds=$lt_prelink_cmds
23936 # Commands necessary for finishing linking programs.
23937 postlink_cmds=$lt_postlink_cmds
23939 # Specify filename containing input files.
23940 file_list_spec=$lt_file_list_spec
23942 # How to hardcode a shared library path into an executable.
23943 hardcode_action=$hardcode_action
23945 # ### END LIBTOOL CONFIG
23947 _LT_EOF
23949 cat <<'_LT_EOF' >> "$cfgfile"
23951 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
23953 # func_munge_path_list VARIABLE PATH
23954 # -----------------------------------
23955 # VARIABLE is name of variable containing _space_ separated list of
23956 # directories to be munged by the contents of PATH, which is string
23957 # having a format:
23958 # "DIR[:DIR]:"
23959 # string "DIR[ DIR]" will be prepended to VARIABLE
23960 # ":DIR[:DIR]"
23961 # string "DIR[ DIR]" will be appended to VARIABLE
23962 # "DIRP[:DIRP]::[DIRA:]DIRA"
23963 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
23964 # "DIRA[ DIRA]" will be appended to VARIABLE
23965 # "DIR[:DIR]"
23966 # VARIABLE will be replaced by "DIR[ DIR]"
23967 func_munge_path_list ()
23969 case x$2 in
23973 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
23975 x:*)
23976 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
23978 *::*)
23979 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
23980 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
23983 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
23985 esac
23989 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
23990 func_cc_basename ()
23992 for cc_temp in $*""; do
23993 case $cc_temp in
23994 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23995 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23996 \-*) ;;
23997 *) break;;
23998 esac
23999 done
24000 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
24004 # ### END FUNCTIONS SHARED WITH CONFIGURE
24006 _LT_EOF
24008 case $host_os in
24009 aix3*)
24010 cat <<\_LT_EOF >> "$cfgfile"
24011 # AIX sometimes has problems with the GCC collect2 program. For some
24012 # reason, if we set the COLLECT_NAMES environment variable, the problems
24013 # vanish in a puff of smoke.
24014 if test set != "${COLLECT_NAMES+set}"; then
24015 COLLECT_NAMES=
24016 export COLLECT_NAMES
24018 _LT_EOF
24020 esac
24023 ltmain=$ac_aux_dir/ltmain.sh
24026 # We use sed instead of cat because bash on DJGPP gets confused if
24027 # if finds mixed CR/LF and LF-only lines. Since sed operates in
24028 # text mode, it properly converts lines to CR/LF. This bash problem
24029 # is reportedly fixed, but why not run on old versions too?
24030 sed '$q' "$ltmain" >> "$cfgfile" \
24031 || (rm -f "$cfgfile"; exit 1)
24033 mv -f "$cfgfile" "$ofile" ||
24034 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
24035 chmod +x "$ofile"
24038 "po-directories":C)
24039 for ac_file in $CONFIG_FILES; do
24040 # Support "outfile[:infile[:infile...]]"
24041 case "$ac_file" in
24042 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24043 esac
24044 # PO directories have a Makefile.in generated from Makefile.in.in.
24045 case "$ac_file" in */Makefile.in)
24046 # Adjust a relative srcdir.
24047 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
24048 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
24049 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
24050 # In autoconf-2.13 it is called $ac_given_srcdir.
24051 # In autoconf-2.50 it is called $srcdir.
24052 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
24053 case "$ac_given_srcdir" in
24054 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
24055 /*) top_srcdir="$ac_given_srcdir" ;;
24056 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
24057 esac
24058 # Treat a directory as a PO directory if and only if it has a
24059 # POTFILES.in file. This allows packages to have multiple PO
24060 # directories under different names or in different locations.
24061 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
24062 rm -f "$ac_dir/POTFILES"
24063 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
24064 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
24065 POMAKEFILEDEPS="POTFILES.in"
24066 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
24067 # on $ac_dir but don't depend on user-specified configuration
24068 # parameters.
24069 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
24070 # The LINGUAS file contains the set of available languages.
24071 if test -n "$OBSOLETE_ALL_LINGUAS"; then
24072 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
24074 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
24075 # Hide the ALL_LINGUAS assigment from automake < 1.5.
24076 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
24077 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
24078 else
24079 # The set of available languages was given in configure.in.
24080 # Hide the ALL_LINGUAS assigment from automake < 1.5.
24081 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
24083 # Compute POFILES
24084 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
24085 # Compute UPDATEPOFILES
24086 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
24087 # Compute DUMMYPOFILES
24088 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
24089 # Compute GMOFILES
24090 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
24091 case "$ac_given_srcdir" in
24092 .) srcdirpre= ;;
24093 *) srcdirpre='$(srcdir)/' ;;
24094 esac
24095 POFILES=
24096 UPDATEPOFILES=
24097 DUMMYPOFILES=
24098 GMOFILES=
24099 for lang in $ALL_LINGUAS; do
24100 POFILES="$POFILES $srcdirpre$lang.po"
24101 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
24102 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
24103 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
24104 done
24105 # CATALOGS depends on both $ac_dir and the user's LINGUAS
24106 # environment variable.
24107 INST_LINGUAS=
24108 if test -n "$ALL_LINGUAS"; then
24109 for presentlang in $ALL_LINGUAS; do
24110 useit=no
24111 if test "%UNSET%" != "$LINGUAS"; then
24112 desiredlanguages="$LINGUAS"
24113 else
24114 desiredlanguages="$ALL_LINGUAS"
24116 for desiredlang in $desiredlanguages; do
24117 # Use the presentlang catalog if desiredlang is
24118 # a. equal to presentlang, or
24119 # b. a variant of presentlang (because in this case,
24120 # presentlang can be used as a fallback for messages
24121 # which are not translated in the desiredlang catalog).
24122 case "$desiredlang" in
24123 "$presentlang"*) useit=yes;;
24124 esac
24125 done
24126 if test $useit = yes; then
24127 INST_LINGUAS="$INST_LINGUAS $presentlang"
24129 done
24131 CATALOGS=
24132 if test -n "$INST_LINGUAS"; then
24133 for lang in $INST_LINGUAS; do
24134 CATALOGS="$CATALOGS $lang.gmo"
24135 done
24137 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
24138 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
24139 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
24140 if test -f "$f"; then
24141 case "$f" in
24142 *.orig | *.bak | *~) ;;
24143 *) cat "$f" >> "$ac_dir/Makefile" ;;
24144 esac
24146 done
24149 esac
24150 done ;;
24152 esac
24153 done # for ac_tag
24156 as_fn_exit 0
24157 _ACEOF
24158 ac_clean_files=$ac_clean_files_save
24160 test $ac_write_fail = 0 ||
24161 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
24164 # configure is writing to config.log, and then calls config.status.
24165 # config.status does its own redirection, appending to config.log.
24166 # Unfortunately, on DOS this fails, as config.log is still kept open
24167 # by configure, so config.status won't be able to write to it; its
24168 # output is simply discarded. So we exec the FD to /dev/null,
24169 # effectively closing config.log, so it can be properly (re)opened and
24170 # appended to by config.status. When coming back to configure, we
24171 # need to make the FD available again.
24172 if test "$no_create" != yes; then
24173 ac_cs_success=:
24174 ac_config_status_args=
24175 test "$silent" = yes &&
24176 ac_config_status_args="$ac_config_status_args --quiet"
24177 exec 5>/dev/null
24178 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24179 exec 5>>config.log
24180 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24181 # would make configure fail if this is the last instruction.
24182 $ac_cs_success || as_fn_exit 1
24184 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24185 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24186 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}