* Clear up warnings and update documentation.
[alpine.git] / configure
blob7cf411f470525dc35568b817b7586e6f975b2d37
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
691 LT_SYS_LIBRARY_PATH
692 OTOOL64
693 OTOOL
694 LIPO
695 NMEDIT
696 DSYMUTIL
697 MANIFEST_TOOL
698 RANLIB
699 ac_ct_AR
701 DLLTOOL
702 OBJDUMP
704 ac_ct_DUMPBIN
705 DUMPBIN
707 FGREP
708 EGREP
709 GREP
711 LIBTOOL
712 LN_S
713 LDFLAGS_FOR_BUILD
714 CPPFLAGS_FOR_BUILD
715 CFLAGS_FOR_BUILD
716 BUILD_OBJEXT
717 BUILD_EXEEXT
718 CPP_FOR_BUILD
719 ac_ct_CC_FOR_BUILD
720 CC_FOR_BUILD
722 am__fastdepCC_FALSE
723 am__fastdepCC_TRUE
724 CCDEPMODE
725 am__nodep
726 AMDEPBACKSLASH
727 AMDEP_FALSE
728 AMDEP_TRUE
729 am__quote
730 am__include
731 DEPDIR
732 OBJEXT
733 EXEEXT
734 ac_ct_CC
735 CPPFLAGS
736 LDFLAGS
737 CFLAGS
739 host_os
740 host_vendor
741 host_cpu
742 host
743 build_os
744 build_vendor
745 build_cpu
746 build
747 MAINT
748 MAINTAINER_MODE_FALSE
749 MAINTAINER_MODE_TRUE
750 AM_BACKSLASH
751 AM_DEFAULT_VERBOSITY
752 AM_DEFAULT_V
753 AM_V
754 am__untar
755 am__tar
756 AMTAR
757 am__leading_dot
758 SET_MAKE
760 mkdir_p
761 MKDIR_P
762 INSTALL_STRIP_PROGRAM
763 STRIP
764 install_sh
765 MAKEINFO
766 AUTOHEADER
767 AUTOMAKE
768 AUTOCONF
769 ACLOCAL
770 VERSION
771 PACKAGE
772 CYGPATH_W
773 am__isrc
774 INSTALL_DATA
775 INSTALL_SCRIPT
776 INSTALL_PROGRAM
777 target_alias
778 host_alias
779 build_alias
780 LIBS
781 ECHO_T
782 ECHO_N
783 ECHO_C
784 DEFS
785 mandir
786 localedir
787 libdir
788 psdir
789 pdfdir
790 dvidir
791 htmldir
792 infodir
793 docdir
794 oldincludedir
795 includedir
796 localstatedir
797 sharedstatedir
798 sysconfdir
799 datadir
800 datarootdir
801 libexecdir
802 sbindir
803 bindir
804 program_transform_name
805 prefix
806 exec_prefix
807 PACKAGE_URL
808 PACKAGE_BUGREPORT
809 PACKAGE_STRING
810 PACKAGE_VERSION
811 PACKAGE_TARNAME
812 PACKAGE_NAME
813 PATH_SEPARATOR
814 SHELL'
815 ac_subst_files=''
816 ac_user_opts='
817 enable_option_checking
818 enable_silent_rules
819 enable_maintainer_mode
820 enable_dependency_tracking
821 enable_shared
822 enable_static
823 with_pic
824 enable_fast_install
825 with_aix_soname
826 with_gnu_ld
827 with_sysroot
828 enable_libtool_lock
829 enable_nls
830 enable_rpath
831 with_libiconv_prefix
832 with_libintl_prefix
833 enable_dmalloc
834 with_dmalloc_dir
835 with_date_stamp
836 with_host_stamp
837 with_localedir
838 enable_osx_universal_binaries
839 with_include_path
840 with_lib_path
841 with_pubcookie
842 with_web_bin
843 enable_debug
844 enable_optimization
845 enable_mouse
846 enable_quotas
847 enable_from_changing
848 enable_background_post
849 enable_keyboard_lock
850 enable_from_encoding
851 with_smtp_msa
852 with_smtp_msa_flags
853 with_npa
854 with_npa_flags
855 with_password_prog
856 with_simple_spellcheck
857 with_interactive_spellcheck
858 with_system_pinerc
859 with_system_fixed_pinerc
860 with_local_support_info
861 with_mailcheck_interval
862 with_checkpoint_interval
863 with_checkpoint_frequency
864 with_display_rows
865 with_display_columns
866 with_max_display_rows
867 with_max_display_columns
868 with_fill_column
869 with_max_fill_column
870 with_debug_level
871 with_debug_files
872 with_debug_file
873 with_forwarded_keyword
874 with_display_overlap
875 with_display_margin
876 with_default_fcc
877 with_default_save_folder
878 with_default_legacy_postponed_folder
879 with_default_postponed_folder
880 with_default_trash_folder
881 with_default_interrupted_mail
882 with_default_dead_letter_folder
883 with_default_mail_directory
884 with_default_inbox_name
885 with_default_signature_file
886 with_default_elm_style_save
887 with_default_header_in_reply
888 with_default_old_style_reply
889 with_default_use_only_domain_name
890 with_default_save_by_sender
891 with_default_sort_key
892 with_default_addressbook_sort_rule
893 with_default_folder_sort_rule
894 with_default_saved_message_name_rule
895 with_default_fcc_rule
896 with_default_standard_printer
897 with_default_ansi_printer
898 with_default_addressbook
899 with_default_local_fullname
900 with_default_local_address
901 with_default_keyboard_lock_count
902 with_default_remote_addressbook_history
903 with_default_html_directory
904 with_smime_public_cert_directory
905 with_smime_private_key_directory
906 with_smime_cacert_directory
907 with_default_printer
908 with_passfile
909 with_local_password_cache
910 with_local_password_cache_method
911 with_default_sshpath
912 with_default_sshcmd
913 with_ssl
914 with_ssl_dir
915 with_ssl_certs_dir
916 with_ssl_include_dir
917 with_ssl_lib_dir
918 with_encryption_minimum_version
919 with_encryption_maximum_version
920 with_encryption_range
921 with_krb5
922 with_krb5_dir
923 with_krb5_include_dir
924 with_krb5_lib_dir
925 with_ldap
926 with_ldap_dir
927 with_ldap_include_dir
928 with_ldap_lib_dir
929 with_smime
930 with_tcl
931 with_tcl_lib_dir
932 with_tcl_lib
933 with_tcl_include
934 with_supplied_regex
935 with_pthread
936 with_system_mail_directory
937 with_c_client_target
938 with_bundled_tools
939 with_ipv6
940 with_dlopen
941 with_ntlm
943 ac_precious_vars='build_alias
944 host_alias
945 target_alias
947 CFLAGS
948 LDFLAGS
949 LIBS
950 CPPFLAGS
952 LT_SYS_LIBRARY_PATH'
955 # Initialize some variables set by options.
956 ac_init_help=
957 ac_init_version=false
958 ac_unrecognized_opts=
959 ac_unrecognized_sep=
960 # The variables have the same names as the options, with
961 # dashes changed to underlines.
962 cache_file=/dev/null
963 exec_prefix=NONE
964 no_create=
965 no_recursion=
966 prefix=NONE
967 program_prefix=NONE
968 program_suffix=NONE
969 program_transform_name=s,x,x,
970 silent=
971 site=
972 srcdir=
973 verbose=
974 x_includes=NONE
975 x_libraries=NONE
977 # Installation directory options.
978 # These are left unexpanded so users can "make install exec_prefix=/foo"
979 # and all the variables that are supposed to be based on exec_prefix
980 # by default will actually change.
981 # Use braces instead of parens because sh, perl, etc. also accept them.
982 # (The list follows the same order as the GNU Coding Standards.)
983 bindir='${exec_prefix}/bin'
984 sbindir='${exec_prefix}/sbin'
985 libexecdir='${exec_prefix}/libexec'
986 datarootdir='${prefix}/share'
987 datadir='${datarootdir}'
988 sysconfdir='${prefix}/etc'
989 sharedstatedir='${prefix}/com'
990 localstatedir='${prefix}/var'
991 includedir='${prefix}/include'
992 oldincludedir='/usr/include'
993 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
994 infodir='${datarootdir}/info'
995 htmldir='${docdir}'
996 dvidir='${docdir}'
997 pdfdir='${docdir}'
998 psdir='${docdir}'
999 libdir='${exec_prefix}/lib'
1000 localedir='${datarootdir}/locale'
1001 mandir='${datarootdir}/man'
1003 ac_prev=
1004 ac_dashdash=
1005 for ac_option
1007 # If the previous option needs an argument, assign it.
1008 if test -n "$ac_prev"; then
1009 eval $ac_prev=\$ac_option
1010 ac_prev=
1011 continue
1014 case $ac_option in
1015 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1016 *=) ac_optarg= ;;
1017 *) ac_optarg=yes ;;
1018 esac
1020 # Accept the important Cygnus configure options, so we can diagnose typos.
1022 case $ac_dashdash$ac_option in
1024 ac_dashdash=yes ;;
1026 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1027 ac_prev=bindir ;;
1028 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1029 bindir=$ac_optarg ;;
1031 -build | --build | --buil | --bui | --bu)
1032 ac_prev=build_alias ;;
1033 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1034 build_alias=$ac_optarg ;;
1036 -cache-file | --cache-file | --cache-fil | --cache-fi \
1037 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1038 ac_prev=cache_file ;;
1039 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1040 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1041 cache_file=$ac_optarg ;;
1043 --config-cache | -C)
1044 cache_file=config.cache ;;
1046 -datadir | --datadir | --datadi | --datad)
1047 ac_prev=datadir ;;
1048 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1049 datadir=$ac_optarg ;;
1051 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1052 | --dataroo | --dataro | --datar)
1053 ac_prev=datarootdir ;;
1054 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1055 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1056 datarootdir=$ac_optarg ;;
1058 -disable-* | --disable-*)
1059 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1060 # Reject names that are not valid shell variable names.
1061 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1062 as_fn_error $? "invalid feature name: $ac_useropt"
1063 ac_useropt_orig=$ac_useropt
1064 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1065 case $ac_user_opts in
1067 "enable_$ac_useropt"
1068 "*) ;;
1069 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1070 ac_unrecognized_sep=', ';;
1071 esac
1072 eval enable_$ac_useropt=no ;;
1074 -docdir | --docdir | --docdi | --doc | --do)
1075 ac_prev=docdir ;;
1076 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1077 docdir=$ac_optarg ;;
1079 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1080 ac_prev=dvidir ;;
1081 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1082 dvidir=$ac_optarg ;;
1084 -enable-* | --enable-*)
1085 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1086 # Reject names that are not valid shell variable names.
1087 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1088 as_fn_error $? "invalid feature name: $ac_useropt"
1089 ac_useropt_orig=$ac_useropt
1090 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1091 case $ac_user_opts in
1093 "enable_$ac_useropt"
1094 "*) ;;
1095 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1096 ac_unrecognized_sep=', ';;
1097 esac
1098 eval enable_$ac_useropt=\$ac_optarg ;;
1100 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1101 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1102 | --exec | --exe | --ex)
1103 ac_prev=exec_prefix ;;
1104 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1105 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1106 | --exec=* | --exe=* | --ex=*)
1107 exec_prefix=$ac_optarg ;;
1109 -gas | --gas | --ga | --g)
1110 # Obsolete; use --with-gas.
1111 with_gas=yes ;;
1113 -help | --help | --hel | --he | -h)
1114 ac_init_help=long ;;
1115 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1116 ac_init_help=recursive ;;
1117 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1118 ac_init_help=short ;;
1120 -host | --host | --hos | --ho)
1121 ac_prev=host_alias ;;
1122 -host=* | --host=* | --hos=* | --ho=*)
1123 host_alias=$ac_optarg ;;
1125 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1126 ac_prev=htmldir ;;
1127 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1128 | --ht=*)
1129 htmldir=$ac_optarg ;;
1131 -includedir | --includedir | --includedi | --included | --include \
1132 | --includ | --inclu | --incl | --inc)
1133 ac_prev=includedir ;;
1134 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1135 | --includ=* | --inclu=* | --incl=* | --inc=*)
1136 includedir=$ac_optarg ;;
1138 -infodir | --infodir | --infodi | --infod | --info | --inf)
1139 ac_prev=infodir ;;
1140 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1141 infodir=$ac_optarg ;;
1143 -libdir | --libdir | --libdi | --libd)
1144 ac_prev=libdir ;;
1145 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1146 libdir=$ac_optarg ;;
1148 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1149 | --libexe | --libex | --libe)
1150 ac_prev=libexecdir ;;
1151 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1152 | --libexe=* | --libex=* | --libe=*)
1153 libexecdir=$ac_optarg ;;
1155 -localedir | --localedir | --localedi | --localed | --locale)
1156 ac_prev=localedir ;;
1157 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1158 localedir=$ac_optarg ;;
1160 -localstatedir | --localstatedir | --localstatedi | --localstated \
1161 | --localstate | --localstat | --localsta | --localst | --locals)
1162 ac_prev=localstatedir ;;
1163 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1164 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1165 localstatedir=$ac_optarg ;;
1167 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1168 ac_prev=mandir ;;
1169 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1170 mandir=$ac_optarg ;;
1172 -nfp | --nfp | --nf)
1173 # Obsolete; use --without-fp.
1174 with_fp=no ;;
1176 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1177 | --no-cr | --no-c | -n)
1178 no_create=yes ;;
1180 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1181 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1182 no_recursion=yes ;;
1184 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1185 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1186 | --oldin | --oldi | --old | --ol | --o)
1187 ac_prev=oldincludedir ;;
1188 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1189 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1190 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1191 oldincludedir=$ac_optarg ;;
1193 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1194 ac_prev=prefix ;;
1195 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1196 prefix=$ac_optarg ;;
1198 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1199 | --program-pre | --program-pr | --program-p)
1200 ac_prev=program_prefix ;;
1201 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1202 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1203 program_prefix=$ac_optarg ;;
1205 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1206 | --program-suf | --program-su | --program-s)
1207 ac_prev=program_suffix ;;
1208 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1209 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1210 program_suffix=$ac_optarg ;;
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 ac_prev=program_transform_name ;;
1220 -program-transform-name=* | --program-transform-name=* \
1221 | --program-transform-nam=* | --program-transform-na=* \
1222 | --program-transform-n=* | --program-transform-=* \
1223 | --program-transform=* | --program-transfor=* \
1224 | --program-transfo=* | --program-transf=* \
1225 | --program-trans=* | --program-tran=* \
1226 | --progr-tra=* | --program-tr=* | --program-t=*)
1227 program_transform_name=$ac_optarg ;;
1229 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1230 ac_prev=pdfdir ;;
1231 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1232 pdfdir=$ac_optarg ;;
1234 -psdir | --psdir | --psdi | --psd | --ps)
1235 ac_prev=psdir ;;
1236 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1237 psdir=$ac_optarg ;;
1239 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1240 | -silent | --silent | --silen | --sile | --sil)
1241 silent=yes ;;
1243 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1244 ac_prev=sbindir ;;
1245 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1246 | --sbi=* | --sb=*)
1247 sbindir=$ac_optarg ;;
1249 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1250 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1251 | --sharedst | --shareds | --shared | --share | --shar \
1252 | --sha | --sh)
1253 ac_prev=sharedstatedir ;;
1254 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1255 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1256 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1257 | --sha=* | --sh=*)
1258 sharedstatedir=$ac_optarg ;;
1260 -site | --site | --sit)
1261 ac_prev=site ;;
1262 -site=* | --site=* | --sit=*)
1263 site=$ac_optarg ;;
1265 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1266 ac_prev=srcdir ;;
1267 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1268 srcdir=$ac_optarg ;;
1270 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1271 | --syscon | --sysco | --sysc | --sys | --sy)
1272 ac_prev=sysconfdir ;;
1273 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1274 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1275 sysconfdir=$ac_optarg ;;
1277 -target | --target | --targe | --targ | --tar | --ta | --t)
1278 ac_prev=target_alias ;;
1279 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1280 target_alias=$ac_optarg ;;
1282 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1283 verbose=yes ;;
1285 -version | --version | --versio | --versi | --vers | -V)
1286 ac_init_version=: ;;
1288 -with-* | --with-*)
1289 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1290 # Reject names that are not valid shell variable names.
1291 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1292 as_fn_error $? "invalid package name: $ac_useropt"
1293 ac_useropt_orig=$ac_useropt
1294 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1295 case $ac_user_opts in
1297 "with_$ac_useropt"
1298 "*) ;;
1299 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1300 ac_unrecognized_sep=', ';;
1301 esac
1302 eval with_$ac_useropt=\$ac_optarg ;;
1304 -without-* | --without-*)
1305 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1306 # Reject names that are not valid shell variable names.
1307 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1308 as_fn_error $? "invalid package name: $ac_useropt"
1309 ac_useropt_orig=$ac_useropt
1310 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1311 case $ac_user_opts in
1313 "with_$ac_useropt"
1314 "*) ;;
1315 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1316 ac_unrecognized_sep=', ';;
1317 esac
1318 eval with_$ac_useropt=no ;;
1320 --x)
1321 # Obsolete; use --with-x.
1322 with_x=yes ;;
1324 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1325 | --x-incl | --x-inc | --x-in | --x-i)
1326 ac_prev=x_includes ;;
1327 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1328 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1329 x_includes=$ac_optarg ;;
1331 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1332 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1333 ac_prev=x_libraries ;;
1334 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1335 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1336 x_libraries=$ac_optarg ;;
1338 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1339 Try \`$0 --help' for more information"
1342 *=*)
1343 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1344 # Reject names that are not valid shell variable names.
1345 case $ac_envvar in #(
1346 '' | [0-9]* | *[!_$as_cr_alnum]* )
1347 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1348 esac
1349 eval $ac_envvar=\$ac_optarg
1350 export $ac_envvar ;;
1353 # FIXME: should be removed in autoconf 3.0.
1354 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1355 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1356 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1357 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1360 esac
1361 done
1363 if test -n "$ac_prev"; then
1364 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1365 as_fn_error $? "missing argument to $ac_option"
1368 if test -n "$ac_unrecognized_opts"; then
1369 case $enable_option_checking in
1370 no) ;;
1371 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1372 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1373 esac
1376 # Check all directory arguments for consistency.
1377 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1378 datadir sysconfdir sharedstatedir localstatedir includedir \
1379 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1380 libdir localedir mandir
1382 eval ac_val=\$$ac_var
1383 # Remove trailing slashes.
1384 case $ac_val in
1385 */ )
1386 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1387 eval $ac_var=\$ac_val;;
1388 esac
1389 # Be sure to have absolute directory names.
1390 case $ac_val in
1391 [\\/$]* | ?:[\\/]* ) continue;;
1392 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1393 esac
1394 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1395 done
1397 # There might be people who depend on the old broken behavior: `$host'
1398 # used to hold the argument of --host etc.
1399 # FIXME: To remove some day.
1400 build=$build_alias
1401 host=$host_alias
1402 target=$target_alias
1404 # FIXME: To remove some day.
1405 if test "x$host_alias" != x; then
1406 if test "x$build_alias" = x; then
1407 cross_compiling=maybe
1408 elif test "x$build_alias" != "x$host_alias"; then
1409 cross_compiling=yes
1413 ac_tool_prefix=
1414 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1416 test "$silent" = yes && exec 6>/dev/null
1419 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1420 ac_ls_di=`ls -di .` &&
1421 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1422 as_fn_error $? "working directory cannot be determined"
1423 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1424 as_fn_error $? "pwd does not report name of working directory"
1427 # Find the source files, if location was not specified.
1428 if test -z "$srcdir"; then
1429 ac_srcdir_defaulted=yes
1430 # Try the directory containing this script, then the parent directory.
1431 ac_confdir=`$as_dirname -- "$as_myself" ||
1432 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1433 X"$as_myself" : 'X\(//\)[^/]' \| \
1434 X"$as_myself" : 'X\(//\)$' \| \
1435 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1436 $as_echo X"$as_myself" |
1437 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1438 s//\1/
1441 /^X\(\/\/\)[^/].*/{
1442 s//\1/
1445 /^X\(\/\/\)$/{
1446 s//\1/
1449 /^X\(\/\).*/{
1450 s//\1/
1453 s/.*/./; q'`
1454 srcdir=$ac_confdir
1455 if test ! -r "$srcdir/$ac_unique_file"; then
1456 srcdir=..
1458 else
1459 ac_srcdir_defaulted=no
1461 if test ! -r "$srcdir/$ac_unique_file"; then
1462 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1463 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1465 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1466 ac_abs_confdir=`(
1467 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1468 pwd)`
1469 # When building in place, set srcdir=.
1470 if test "$ac_abs_confdir" = "$ac_pwd"; then
1471 srcdir=.
1473 # Remove unnecessary trailing slashes from srcdir.
1474 # Double slashes in file names in object file debugging info
1475 # mess up M-x gdb in Emacs.
1476 case $srcdir in
1477 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1478 esac
1479 for ac_var in $ac_precious_vars; do
1480 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1481 eval ac_env_${ac_var}_value=\$${ac_var}
1482 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1483 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1484 done
1487 # Report the --help message.
1489 if test "$ac_init_help" = "long"; then
1490 # Omit some internal or obsolete options to make the list less imposing.
1491 # This message is too long to be a string in the A/UX 3.1 sh.
1492 cat <<_ACEOF
1493 \`configure' configures alpine 2.25 to adapt to many kinds of systems.
1495 Usage: $0 [OPTION]... [VAR=VALUE]...
1497 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1498 VAR=VALUE. See below for descriptions of some of the useful variables.
1500 Defaults for the options are specified in brackets.
1502 Configuration:
1503 -h, --help display this help and exit
1504 --help=short display options specific to this package
1505 --help=recursive display the short help of all the included packages
1506 -V, --version display version information and exit
1507 -q, --quiet, --silent do not print \`checking ...' messages
1508 --cache-file=FILE cache test results in FILE [disabled]
1509 -C, --config-cache alias for \`--cache-file=config.cache'
1510 -n, --no-create do not create output files
1511 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1513 Installation directories:
1514 --prefix=PREFIX install architecture-independent files in PREFIX
1515 [$ac_default_prefix]
1516 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1517 [PREFIX]
1519 By default, \`make install' will install all the files in
1520 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1521 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1522 for instance \`--prefix=\$HOME'.
1524 For better control, use the options below.
1526 Fine tuning of the installation directories:
1527 --bindir=DIR user executables [EPREFIX/bin]
1528 --sbindir=DIR system admin executables [EPREFIX/sbin]
1529 --libexecdir=DIR program executables [EPREFIX/libexec]
1530 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1531 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1532 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1533 --libdir=DIR object code libraries [EPREFIX/lib]
1534 --includedir=DIR C header files [PREFIX/include]
1535 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1536 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1537 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1538 --infodir=DIR info documentation [DATAROOTDIR/info]
1539 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1540 --mandir=DIR man documentation [DATAROOTDIR/man]
1541 --docdir=DIR documentation root [DATAROOTDIR/doc/alpine]
1542 --htmldir=DIR html documentation [DOCDIR]
1543 --dvidir=DIR dvi documentation [DOCDIR]
1544 --pdfdir=DIR pdf documentation [DOCDIR]
1545 --psdir=DIR ps documentation [DOCDIR]
1546 _ACEOF
1548 cat <<\_ACEOF
1550 Program names:
1551 --program-prefix=PREFIX prepend PREFIX to installed program names
1552 --program-suffix=SUFFIX append SUFFIX to installed program names
1553 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1555 System types:
1556 --build=BUILD configure for building on BUILD [guessed]
1557 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1558 _ACEOF
1561 if test -n "$ac_init_help"; then
1562 case $ac_init_help in
1563 short | recursive ) echo "Configuration of alpine 2.25:";;
1564 esac
1565 cat <<\_ACEOF
1567 Optional Features:
1568 --disable-option-checking ignore unrecognized --enable/--with options
1569 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1570 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1571 --enable-silent-rules less verbose build output (undo: "make V=1")
1572 --disable-silent-rules verbose build output (undo: "make V=0")
1573 --enable-maintainer-mode
1574 enable make rules and dependencies not useful (and
1575 sometimes confusing) to the casual installer
1576 --enable-dependency-tracking
1577 do not reject slow dependency extractors
1578 --disable-dependency-tracking
1579 speeds up one-time build
1580 --enable-shared[=PKGS] build shared libraries [default=yes]
1581 --enable-static[=PKGS] build static libraries [default=yes]
1582 --enable-fast-install[=PKGS]
1583 optimize for fast installation [default=yes]
1584 --disable-libtool-lock avoid locking (might break parallel builds)
1585 --disable-nls do not use Native Language Support
1586 --disable-rpath do not hardcode runtime library paths
1587 --enable-dmalloc Enable dmalloc debugging
1588 --enable-osx-universal-binaries
1589 Produce universal binaries under OS X [[default=no]]
1590 --disable-debug Exclude debug from the binary
1591 --disable-optimization Exclude optimizing compiler flags
1592 --disable-mouse Disable mouse support
1593 --enable-quotas Enable disk quota checking on startup
1594 --disable-from-changing Disallow users changing From address
1595 --disable-background-post
1596 Disable background posting
1597 --disable-keyboard-lock Disable keyboard locking
1598 --enable-from-encoding Enable From encoding in sent messages
1600 Optional Packages:
1601 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1602 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1603 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1604 both]
1605 --with-aix-soname=aix|svr4|both
1606 shared library versioning (aka "SONAME") variant to
1607 provide on AIX, [default=aix].
1608 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1609 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1610 compiler's sysroot if not specified).
1611 --with-gnu-ld assume the C compiler uses GNU ld default=no
1612 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1613 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1614 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1615 --without-libintl-prefix don't search for libintl in includedir and libdir
1616 --with-dmalloc-dir=DIR Root of dmalloc lib/include path
1617 --with-date-stamp=DATE Set this as the date this program was built.
1618 Default: output of `date`
1619 --with-host-stamp=HOST Set name of computer for compilation. Default:
1620 output of `hostname`
1621 --with-localedir=DIR Name of gettext locale directory
1622 --with-include-path=PATHS
1623 Colon-separated list of directories used for include
1624 file search
1625 --with-lib-path=PATHS Colon-separated list of directories used for library
1626 search
1627 --with-pubcookie Include support for UW-Pubcookie Web Authentication
1628 --with-web-bin=PATH Directory to hold Web Alpine component binary files
1629 --with-smtp-msa=PATH Local Mail Submission Agent (sendmail)
1630 --with-smtp-msa-flags=FLAGS
1631 MSA flags for SMTP on stdin/stdout (-bs -odb -oem)
1632 --with-npa=PATH Posting agent when no nntp-servers defined (inews)
1633 --with-npa-flags=FLAGS Flags to allow posting via local agent (-h)
1634 --with-password-prog=PATH
1635 Password change program (/bin/passwd)
1636 --with-simple-spellcheck=PROG
1637 Spellcheck program reads stdin, emits misspellings
1638 on stdout
1639 --with-interactive-spellcheck=PROG
1640 Interactive, filewise spell checker
1641 --with-system-pinerc=VALUE
1642 System pinerc (/usr/local/lib/pine.conf)
1643 --with-system-fixed-pinerc=VALUE
1644 System fixed pinerc (/usr/local/lib/pine.conf.fixed)
1645 --with-local-support-info=VALUE
1646 Local Support Info File (/usr/local/lib/pine.info)
1647 --with-mailcheck-interval=VALUE
1648 Specify default mail-check-interval (150)
1649 --with-checkpoint-interval=VALUE
1650 Specify default checkpoint-interval (420)
1651 --with-checkpoint-frequency=VALUE
1652 State change count before checkpoint (12)
1653 --with-display-rows=VALUE
1654 Initial rows on display (24)
1655 --with-display-columns=VALUE
1656 Initial columns on display (80)
1657 --with-max-display-rows=VALUE
1658 Maximum display rows (200)
1659 --with-max-display-columns=VALUE
1660 Maximum display columns (500)
1661 --with-fill-column=VALUE
1662 Default fill column (74)
1663 --with-max_fill-column=VALUE
1664 Maximum fill column (80)
1665 --with-debug-level=VALUE
1666 Specify default debug verbosity level (2)
1667 --with-debug-files=VALUE
1668 Specify number of debug files (4)
1669 --with-debug-file=VALUE Specify debug file name (.pine-debug)
1670 --with-forwarded-keyword=VALUE
1671 IMAP (c-client) keyword to store forwarded status
1672 ("\$Forwarded")
1673 --with-display-overlap=VALUE
1674 Lines preserved while paging (2)
1675 --with-display-margin=VALUE
1676 Lines visible while scrolling (0)
1677 --with-default-fcc=VALUE
1678 Default sent mail folder (sent-mail)
1679 --with-default-save-folder=VALUE
1680 Default save folder (saved-messages)
1681 --with-default-legacy-postponed-folder=VALUE
1682 Pre Pine 3.90 postponed folder (postponed-mail)
1683 --with-default-postponed-folder=VALUE
1684 Default postponed folder (postponed-msgs)
1685 --with-default-trash-folder=VALUE
1686 Default Trash folder for Web Alpine (Trash)
1687 --with-default-interrupted-mail=VALUE
1688 Default folder for interrupted mail
1689 (.pine-interrupted-mail)
1690 --with-default-dead-letter-folder=VALUE
1691 Default dead letter folder (dead.letter)
1692 --with-default-mail-directory=VALUE
1693 Default mail directory (mail)
1694 --with-default-inbox-name=VALUE
1695 Default inbox name (INBOX)
1696 --with-default-signature-file=VALUE
1697 Default signature file (.signature)
1698 --with-default-elm-style-save=VALUE
1699 Default to Elm style save (no)
1700 --with-default-header-in-reply=VALUE
1701 Include header in reply (no)
1702 --with-default-old-style-reply=VALUE
1703 Default to old style reply (no)
1704 --with-default-use-only-domain-name=VALUE
1705 Default to using only the domain name (no)
1706 --with-default-save-by-sender=VALUE
1707 Default to save by sender (no)
1708 --with-default-sort-key=VALUE
1709 Default sort key (arrival)
1710 --with-default-addressbook-sort-rule=VALUE
1711 Default addressbook sort rule
1712 (fullname-with-lists-last)
1713 --with-default-folder-sort-rule=VALUE
1714 Default folder sort rule (alphabetical)
1715 --with-default-saved-message-name-rule=VALUE
1716 Default saved message name rule (default-folder)
1717 --with-default-fcc-rule=VALUE
1718 Default fcc rule (default-fcc)
1719 --with-default-standard-printer=VALUE
1720 Default standard printern (lpr)
1721 --with-default-ansi-printer=VALUE
1722 ANSI printer definition (attached-to-ansi)
1723 --with-default-addressbook=VALUE
1724 Default addressbook name (.addressbook)
1725 --with-default-local-fullname=VALUE
1726 Default local support fullname ("Local Support")
1727 --with-default-local-address=VALUE
1728 Default local support address (postmaster)
1729 --with-default-keyboard-lock-count=VALUE
1730 Default keyboard lock count (1)
1731 --with-default-remote-addressbook-history=VALUE
1732 Default address book history count (3)
1733 --with-default-html-directory=VALUE
1734 Default Directory to Temporarily Save HTML Messages
1735 (.alpine-html)
1736 --with-smime-public-cert-directory=VALUE
1737 Default Public Cert Directory (.alpine-smime/public)
1738 --with-smime-private-key-directory=VALUE
1739 Default Private Key Directory
1740 (.alpine-smime/private)
1741 --with-smime-cacert-directory=VALUE
1742 Default Cert Authority Directory (.alpine-smime/ca)
1743 --with-default-printer=VALUE
1744 Default printer (ANSI_PRINTER)
1745 --with-passfile=FILENAME
1746 Password cache file (recommended when S/MIME is
1747 enabled and configured)
1748 --without-local-password-cache
1749 Disable OS-specific password cache, if supported
1750 --with-local-password-cache-method
1751 OS-specific credential cache (OSX=APPLEKEYCHAIN,
1752 Windows=WINCRED)
1753 --with-default-sshpath=FILENAME
1754 set default value of ssh command path (defining
1755 should cause ssh to be preferred to rsh)
1756 --with-default-sshcmd=PERCENT_S_STRING
1757 set default value of ssh command string (usually "%s
1758 %s -l %s exec /etc/r%sd")
1759 --without-ssl Disable SSL support (OpenSSL)
1760 --with-ssl-dir=DIR Root of SSL lib/include path
1761 --with-ssl-certs-dir=DIR
1762 Path to SSL certificate directory
1763 --with-ssl-include-dir=DIR
1764 SSL include file path
1765 --with-ssl-lib-dir=DIR SSL library path
1766 --encryption-minimum-version=VERSION
1767 Minimum SSL encryption version. Default: no_min
1768 --encryption-maximum-version=VERSION
1769 Maximum SSL encryption version. Default: no_max
1770 --with-encryption-range=VALUE
1771 Default Encryption Range ($alpine_RANGE )
1772 --without-krb5 Disable Kerberos support
1773 --with-krb5-dir=DIR Root of Kerberos lib/include path
1774 --with-krb5-include-dir=DIR
1775 Kerberos include file path
1776 --with-krb5-lib-dir=DIR Kerberos library path
1777 --without-ldap Disable LDAP query support
1778 --with-ldap-dir=DIR Root of LDAP lib/include path
1779 --with-ldap-include-dir=DIR
1780 Directory containing LDAP include files
1781 --with-ldap-lib-dir=DIR LDAP library path
1782 --without-smime Disable S/MIME
1783 --without-tcl Disable TCL, thus Web Alpine support
1784 --with-tcl-lib-dir=PATH Specific TCL Librar dir, like \"/usr/opt/tcl86/lib\"
1785 --with-tcl-lib=LIBRARY Specific TCL Library, like \"tcl8.6\"
1786 --with-tcl-include=DIR Directory containing TCL include files
1787 --with-supplied-regex Use regex library supplied with alpine
1788 --without-pthread Do NOT test for nor build with POSIX thread support
1789 --with-system-mail-directory=DIR
1790 Directory where local mail is delivered
1791 --with-c-client-target=TARGET
1792 IMAP build target (see imap/Makefile)
1793 --with-bundled-tools Build additional tools (mtest, imapd, etc.) Default:
1794 --with-bundled-tools=no
1795 --without-ipv6 Disable IPv6, primarily to work around resolver
1796 problems
1797 --without-dlopen Do not test for dlopen because this system does not
1798 need it
1799 --without-ntlm Disable NTLM client support
1801 Some influential environment variables:
1802 CC C compiler command
1803 CFLAGS C compiler flags
1804 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1805 nonstandard directory <lib dir>
1806 LIBS libraries to pass to the linker, e.g. -l<library>
1807 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1808 you have headers in a nonstandard directory <include dir>
1809 CPP C preprocessor
1810 LT_SYS_LIBRARY_PATH
1811 User-defined run-time library search path.
1813 Use these variables to override the choices made by `configure' or to help
1814 it to find libraries and programs with nonstandard names/locations.
1816 Report bugs to <chappa@washington.edu>.
1817 _ACEOF
1818 ac_status=$?
1821 if test "$ac_init_help" = "recursive"; then
1822 # If there are subdirs, report their specific --help.
1823 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1824 test -d "$ac_dir" ||
1825 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1826 continue
1827 ac_builddir=.
1829 case "$ac_dir" in
1830 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1832 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1833 # A ".." for each directory in $ac_dir_suffix.
1834 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1835 case $ac_top_builddir_sub in
1836 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1837 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1838 esac ;;
1839 esac
1840 ac_abs_top_builddir=$ac_pwd
1841 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1842 # for backward compatibility:
1843 ac_top_builddir=$ac_top_build_prefix
1845 case $srcdir in
1846 .) # We are building in place.
1847 ac_srcdir=.
1848 ac_top_srcdir=$ac_top_builddir_sub
1849 ac_abs_top_srcdir=$ac_pwd ;;
1850 [\\/]* | ?:[\\/]* ) # Absolute name.
1851 ac_srcdir=$srcdir$ac_dir_suffix;
1852 ac_top_srcdir=$srcdir
1853 ac_abs_top_srcdir=$srcdir ;;
1854 *) # Relative name.
1855 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1856 ac_top_srcdir=$ac_top_build_prefix$srcdir
1857 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1858 esac
1859 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1861 cd "$ac_dir" || { ac_status=$?; continue; }
1862 # Check for guested configure.
1863 if test -f "$ac_srcdir/configure.gnu"; then
1864 echo &&
1865 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1866 elif test -f "$ac_srcdir/configure"; then
1867 echo &&
1868 $SHELL "$ac_srcdir/configure" --help=recursive
1869 else
1870 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1871 fi || ac_status=$?
1872 cd "$ac_pwd" || { ac_status=$?; break; }
1873 done
1876 test -n "$ac_init_help" && exit $ac_status
1877 if $ac_init_version; then
1878 cat <<\_ACEOF
1879 alpine configure 2.25
1880 generated by GNU Autoconf 2.69
1882 Copyright (C) 2012 Free Software Foundation, Inc.
1883 This configure script is free software; the Free Software Foundation
1884 gives unlimited permission to copy, distribute and modify it.
1885 _ACEOF
1886 exit
1889 ## ------------------------ ##
1890 ## Autoconf initialization. ##
1891 ## ------------------------ ##
1893 # ac_fn_c_try_compile LINENO
1894 # --------------------------
1895 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1896 ac_fn_c_try_compile ()
1898 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1899 rm -f conftest.$ac_objext
1900 if { { ac_try="$ac_compile"
1901 case "(($ac_try" in
1902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1903 *) ac_try_echo=$ac_try;;
1904 esac
1905 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1906 $as_echo "$ac_try_echo"; } >&5
1907 (eval "$ac_compile") 2>conftest.err
1908 ac_status=$?
1909 if test -s conftest.err; then
1910 grep -v '^ *+' conftest.err >conftest.er1
1911 cat conftest.er1 >&5
1912 mv -f conftest.er1 conftest.err
1914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1915 test $ac_status = 0; } && {
1916 test -z "$ac_c_werror_flag" ||
1917 test ! -s conftest.err
1918 } && test -s conftest.$ac_objext; then :
1919 ac_retval=0
1920 else
1921 $as_echo "$as_me: failed program was:" >&5
1922 sed 's/^/| /' conftest.$ac_ext >&5
1924 ac_retval=1
1926 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1927 as_fn_set_status $ac_retval
1929 } # ac_fn_c_try_compile
1931 # ac_fn_c_try_cpp LINENO
1932 # ----------------------
1933 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1934 ac_fn_c_try_cpp ()
1936 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1937 if { { ac_try="$ac_cpp conftest.$ac_ext"
1938 case "(($ac_try" in
1939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1940 *) ac_try_echo=$ac_try;;
1941 esac
1942 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1943 $as_echo "$ac_try_echo"; } >&5
1944 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1945 ac_status=$?
1946 if test -s conftest.err; then
1947 grep -v '^ *+' conftest.err >conftest.er1
1948 cat conftest.er1 >&5
1949 mv -f conftest.er1 conftest.err
1951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1952 test $ac_status = 0; } > conftest.i && {
1953 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1954 test ! -s conftest.err
1955 }; then :
1956 ac_retval=0
1957 else
1958 $as_echo "$as_me: failed program was:" >&5
1959 sed 's/^/| /' conftest.$ac_ext >&5
1961 ac_retval=1
1963 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1964 as_fn_set_status $ac_retval
1966 } # ac_fn_c_try_cpp
1968 # ac_fn_c_try_link LINENO
1969 # -----------------------
1970 # Try to link conftest.$ac_ext, and return whether this succeeded.
1971 ac_fn_c_try_link ()
1973 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1974 rm -f conftest.$ac_objext conftest$ac_exeext
1975 if { { ac_try="$ac_link"
1976 case "(($ac_try" in
1977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1978 *) ac_try_echo=$ac_try;;
1979 esac
1980 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1981 $as_echo "$ac_try_echo"; } >&5
1982 (eval "$ac_link") 2>conftest.err
1983 ac_status=$?
1984 if test -s conftest.err; then
1985 grep -v '^ *+' conftest.err >conftest.er1
1986 cat conftest.er1 >&5
1987 mv -f conftest.er1 conftest.err
1989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1990 test $ac_status = 0; } && {
1991 test -z "$ac_c_werror_flag" ||
1992 test ! -s conftest.err
1993 } && test -s conftest$ac_exeext && {
1994 test "$cross_compiling" = yes ||
1995 test -x conftest$ac_exeext
1996 }; then :
1997 ac_retval=0
1998 else
1999 $as_echo "$as_me: failed program was:" >&5
2000 sed 's/^/| /' conftest.$ac_ext >&5
2002 ac_retval=1
2004 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2005 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2006 # interfere with the next link command; also delete a directory that is
2007 # left behind by Apple's compiler. We do this before executing the actions.
2008 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2009 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2010 as_fn_set_status $ac_retval
2012 } # ac_fn_c_try_link
2014 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2015 # -------------------------------------------------------
2016 # Tests whether HEADER exists and can be compiled using the include files in
2017 # INCLUDES, setting the cache variable VAR accordingly.
2018 ac_fn_c_check_header_compile ()
2020 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2022 $as_echo_n "checking for $2... " >&6; }
2023 if eval \${$3+:} false; then :
2024 $as_echo_n "(cached) " >&6
2025 else
2026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2027 /* end confdefs.h. */
2029 #include <$2>
2030 _ACEOF
2031 if ac_fn_c_try_compile "$LINENO"; then :
2032 eval "$3=yes"
2033 else
2034 eval "$3=no"
2036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2038 eval ac_res=\$$3
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2040 $as_echo "$ac_res" >&6; }
2041 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2043 } # ac_fn_c_check_header_compile
2045 # ac_fn_c_try_run LINENO
2046 # ----------------------
2047 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2048 # that executables *can* be run.
2049 ac_fn_c_try_run ()
2051 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2052 if { { ac_try="$ac_link"
2053 case "(($ac_try" in
2054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2055 *) ac_try_echo=$ac_try;;
2056 esac
2057 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2058 $as_echo "$ac_try_echo"; } >&5
2059 (eval "$ac_link") 2>&5
2060 ac_status=$?
2061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2062 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2063 { { case "(($ac_try" in
2064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2065 *) ac_try_echo=$ac_try;;
2066 esac
2067 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2068 $as_echo "$ac_try_echo"; } >&5
2069 (eval "$ac_try") 2>&5
2070 ac_status=$?
2071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2072 test $ac_status = 0; }; }; then :
2073 ac_retval=0
2074 else
2075 $as_echo "$as_me: program exited with status $ac_status" >&5
2076 $as_echo "$as_me: failed program was:" >&5
2077 sed 's/^/| /' conftest.$ac_ext >&5
2079 ac_retval=$ac_status
2081 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2082 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2083 as_fn_set_status $ac_retval
2085 } # ac_fn_c_try_run
2087 # ac_fn_c_check_func LINENO FUNC VAR
2088 # ----------------------------------
2089 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2090 ac_fn_c_check_func ()
2092 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2094 $as_echo_n "checking for $2... " >&6; }
2095 if eval \${$3+:} false; then :
2096 $as_echo_n "(cached) " >&6
2097 else
2098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2099 /* end confdefs.h. */
2100 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2101 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2102 #define $2 innocuous_$2
2104 /* System header to define __stub macros and hopefully few prototypes,
2105 which can conflict with char $2 (); below.
2106 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2107 <limits.h> exists even on freestanding compilers. */
2109 #ifdef __STDC__
2110 # include <limits.h>
2111 #else
2112 # include <assert.h>
2113 #endif
2115 #undef $2
2117 /* Override any GCC internal prototype to avoid an error.
2118 Use char because int might match the return type of a GCC
2119 builtin and then its argument prototype would still apply. */
2120 #ifdef __cplusplus
2121 extern "C"
2122 #endif
2123 char $2 ();
2124 /* The GNU C library defines this for functions which it implements
2125 to always fail with ENOSYS. Some functions are actually named
2126 something starting with __ and the normal name is an alias. */
2127 #if defined __stub_$2 || defined __stub___$2
2128 choke me
2129 #endif
2132 main ()
2134 return $2 ();
2136 return 0;
2138 _ACEOF
2139 if ac_fn_c_try_link "$LINENO"; then :
2140 eval "$3=yes"
2141 else
2142 eval "$3=no"
2144 rm -f core conftest.err conftest.$ac_objext \
2145 conftest$ac_exeext conftest.$ac_ext
2147 eval ac_res=\$$3
2148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2149 $as_echo "$ac_res" >&6; }
2150 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2152 } # ac_fn_c_check_func
2154 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2155 # -------------------------------------------------------
2156 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2157 # the include files in INCLUDES and setting the cache variable VAR
2158 # accordingly.
2159 ac_fn_c_check_header_mongrel ()
2161 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2162 if eval \${$3+:} false; then :
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2164 $as_echo_n "checking for $2... " >&6; }
2165 if eval \${$3+:} false; then :
2166 $as_echo_n "(cached) " >&6
2168 eval ac_res=\$$3
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2170 $as_echo "$ac_res" >&6; }
2171 else
2172 # Is the header compilable?
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2174 $as_echo_n "checking $2 usability... " >&6; }
2175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2176 /* end confdefs.h. */
2178 #include <$2>
2179 _ACEOF
2180 if ac_fn_c_try_compile "$LINENO"; then :
2181 ac_header_compiler=yes
2182 else
2183 ac_header_compiler=no
2185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2187 $as_echo "$ac_header_compiler" >&6; }
2189 # Is the header present?
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2191 $as_echo_n "checking $2 presence... " >&6; }
2192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2193 /* end confdefs.h. */
2194 #include <$2>
2195 _ACEOF
2196 if ac_fn_c_try_cpp "$LINENO"; then :
2197 ac_header_preproc=yes
2198 else
2199 ac_header_preproc=no
2201 rm -f conftest.err conftest.i conftest.$ac_ext
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2203 $as_echo "$ac_header_preproc" >&6; }
2205 # So? What about this header?
2206 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2207 yes:no: )
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2209 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2211 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2213 no:yes:* )
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2215 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2217 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2219 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2221 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2223 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2224 ( $as_echo "## ------------------------------------ ##
2225 ## Report this to chappa@washington.edu ##
2226 ## ------------------------------------ ##"
2227 ) | sed "s/^/$as_me: WARNING: /" >&2
2229 esac
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2231 $as_echo_n "checking for $2... " >&6; }
2232 if eval \${$3+:} false; then :
2233 $as_echo_n "(cached) " >&6
2234 else
2235 eval "$3=\$ac_header_compiler"
2237 eval ac_res=\$$3
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2239 $as_echo "$ac_res" >&6; }
2241 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2243 } # ac_fn_c_check_header_mongrel
2245 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2246 # -------------------------------------------
2247 # Tests whether TYPE exists after having included INCLUDES, setting cache
2248 # variable VAR accordingly.
2249 ac_fn_c_check_type ()
2251 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2253 $as_echo_n "checking for $2... " >&6; }
2254 if eval \${$3+:} false; then :
2255 $as_echo_n "(cached) " >&6
2256 else
2257 eval "$3=no"
2258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2259 /* end confdefs.h. */
2262 main ()
2264 if (sizeof ($2))
2265 return 0;
2267 return 0;
2269 _ACEOF
2270 if ac_fn_c_try_compile "$LINENO"; then :
2271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2272 /* end confdefs.h. */
2275 main ()
2277 if (sizeof (($2)))
2278 return 0;
2280 return 0;
2282 _ACEOF
2283 if ac_fn_c_try_compile "$LINENO"; then :
2285 else
2286 eval "$3=yes"
2288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2292 eval ac_res=\$$3
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2294 $as_echo "$ac_res" >&6; }
2295 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2297 } # ac_fn_c_check_type
2299 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2300 # --------------------------------------------
2301 # Tries to find the compile-time value of EXPR in a program that includes
2302 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2303 # computed
2304 ac_fn_c_compute_int ()
2306 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2307 if test "$cross_compiling" = yes; then
2308 # Depending upon the size, compute the lo and hi bounds.
2309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2310 /* end confdefs.h. */
2313 main ()
2315 static int test_array [1 - 2 * !(($2) >= 0)];
2316 test_array [0] = 0;
2317 return test_array [0];
2320 return 0;
2322 _ACEOF
2323 if ac_fn_c_try_compile "$LINENO"; then :
2324 ac_lo=0 ac_mid=0
2325 while :; do
2326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2327 /* end confdefs.h. */
2330 main ()
2332 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2333 test_array [0] = 0;
2334 return test_array [0];
2337 return 0;
2339 _ACEOF
2340 if ac_fn_c_try_compile "$LINENO"; then :
2341 ac_hi=$ac_mid; break
2342 else
2343 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2344 if test $ac_lo -le $ac_mid; then
2345 ac_lo= ac_hi=
2346 break
2348 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2351 done
2352 else
2353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2354 /* end confdefs.h. */
2357 main ()
2359 static int test_array [1 - 2 * !(($2) < 0)];
2360 test_array [0] = 0;
2361 return test_array [0];
2364 return 0;
2366 _ACEOF
2367 if ac_fn_c_try_compile "$LINENO"; then :
2368 ac_hi=-1 ac_mid=-1
2369 while :; do
2370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2371 /* end confdefs.h. */
2374 main ()
2376 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2377 test_array [0] = 0;
2378 return test_array [0];
2381 return 0;
2383 _ACEOF
2384 if ac_fn_c_try_compile "$LINENO"; then :
2385 ac_lo=$ac_mid; break
2386 else
2387 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2388 if test $ac_mid -le $ac_hi; then
2389 ac_lo= ac_hi=
2390 break
2392 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2395 done
2396 else
2397 ac_lo= ac_hi=
2399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2402 # Binary search between lo and hi bounds.
2403 while test "x$ac_lo" != "x$ac_hi"; do
2404 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2406 /* end confdefs.h. */
2409 main ()
2411 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2412 test_array [0] = 0;
2413 return test_array [0];
2416 return 0;
2418 _ACEOF
2419 if ac_fn_c_try_compile "$LINENO"; then :
2420 ac_hi=$ac_mid
2421 else
2422 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2425 done
2426 case $ac_lo in #((
2427 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2428 '') ac_retval=1 ;;
2429 esac
2430 else
2431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2432 /* end confdefs.h. */
2434 static long int longval () { return $2; }
2435 static unsigned long int ulongval () { return $2; }
2436 #include <stdio.h>
2437 #include <stdlib.h>
2439 main ()
2442 FILE *f = fopen ("conftest.val", "w");
2443 if (! f)
2444 return 1;
2445 if (($2) < 0)
2447 long int i = longval ();
2448 if (i != ($2))
2449 return 1;
2450 fprintf (f, "%ld", i);
2452 else
2454 unsigned long int i = ulongval ();
2455 if (i != ($2))
2456 return 1;
2457 fprintf (f, "%lu", i);
2459 /* Do not output a trailing newline, as this causes \r\n confusion
2460 on some platforms. */
2461 return ferror (f) || fclose (f) != 0;
2464 return 0;
2466 _ACEOF
2467 if ac_fn_c_try_run "$LINENO"; then :
2468 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2469 else
2470 ac_retval=1
2472 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2473 conftest.$ac_objext conftest.beam conftest.$ac_ext
2474 rm -f conftest.val
2477 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2478 as_fn_set_status $ac_retval
2480 } # ac_fn_c_compute_int
2481 cat >config.log <<_ACEOF
2482 This file contains any messages produced by compilers while
2483 running configure, to aid debugging if configure makes a mistake.
2485 It was created by alpine $as_me 2.25, which was
2486 generated by GNU Autoconf 2.69. Invocation command line was
2488 $ $0 $@
2490 _ACEOF
2491 exec 5>>config.log
2493 cat <<_ASUNAME
2494 ## --------- ##
2495 ## Platform. ##
2496 ## --------- ##
2498 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2499 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2500 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2501 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2502 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2504 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2505 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2507 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2508 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2509 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2510 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2511 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2512 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2513 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2515 _ASUNAME
2517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2518 for as_dir in $PATH
2520 IFS=$as_save_IFS
2521 test -z "$as_dir" && as_dir=.
2522 $as_echo "PATH: $as_dir"
2523 done
2524 IFS=$as_save_IFS
2526 } >&5
2528 cat >&5 <<_ACEOF
2531 ## ----------- ##
2532 ## Core tests. ##
2533 ## ----------- ##
2535 _ACEOF
2538 # Keep a trace of the command line.
2539 # Strip out --no-create and --no-recursion so they do not pile up.
2540 # Strip out --silent because we don't want to record it for future runs.
2541 # Also quote any args containing shell meta-characters.
2542 # Make two passes to allow for proper duplicate-argument suppression.
2543 ac_configure_args=
2544 ac_configure_args0=
2545 ac_configure_args1=
2546 ac_must_keep_next=false
2547 for ac_pass in 1 2
2549 for ac_arg
2551 case $ac_arg in
2552 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2553 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2554 | -silent | --silent | --silen | --sile | --sil)
2555 continue ;;
2556 *\'*)
2557 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2558 esac
2559 case $ac_pass in
2560 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2562 as_fn_append ac_configure_args1 " '$ac_arg'"
2563 if test $ac_must_keep_next = true; then
2564 ac_must_keep_next=false # Got value, back to normal.
2565 else
2566 case $ac_arg in
2567 *=* | --config-cache | -C | -disable-* | --disable-* \
2568 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2569 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2570 | -with-* | --with-* | -without-* | --without-* | --x)
2571 case "$ac_configure_args0 " in
2572 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2573 esac
2575 -* ) ac_must_keep_next=true ;;
2576 esac
2578 as_fn_append ac_configure_args " '$ac_arg'"
2580 esac
2581 done
2582 done
2583 { ac_configure_args0=; unset ac_configure_args0;}
2584 { ac_configure_args1=; unset ac_configure_args1;}
2586 # When interrupted or exit'd, cleanup temporary files, and complete
2587 # config.log. We remove comments because anyway the quotes in there
2588 # would cause problems or look ugly.
2589 # WARNING: Use '\'' to represent an apostrophe within the trap.
2590 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2591 trap 'exit_status=$?
2592 # Save into config.log some information that might help in debugging.
2594 echo
2596 $as_echo "## ---------------- ##
2597 ## Cache variables. ##
2598 ## ---------------- ##"
2599 echo
2600 # The following way of writing the cache mishandles newlines in values,
2602 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2603 eval ac_val=\$$ac_var
2604 case $ac_val in #(
2605 *${as_nl}*)
2606 case $ac_var in #(
2607 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2608 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2609 esac
2610 case $ac_var in #(
2611 _ | IFS | as_nl) ;; #(
2612 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2613 *) { eval $ac_var=; unset $ac_var;} ;;
2614 esac ;;
2615 esac
2616 done
2617 (set) 2>&1 |
2618 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2619 *${as_nl}ac_space=\ *)
2620 sed -n \
2621 "s/'\''/'\''\\\\'\'''\''/g;
2622 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2623 ;; #(
2625 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2627 esac |
2628 sort
2630 echo
2632 $as_echo "## ----------------- ##
2633 ## Output variables. ##
2634 ## ----------------- ##"
2635 echo
2636 for ac_var in $ac_subst_vars
2638 eval ac_val=\$$ac_var
2639 case $ac_val in
2640 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2641 esac
2642 $as_echo "$ac_var='\''$ac_val'\''"
2643 done | sort
2644 echo
2646 if test -n "$ac_subst_files"; then
2647 $as_echo "## ------------------- ##
2648 ## File substitutions. ##
2649 ## ------------------- ##"
2650 echo
2651 for ac_var in $ac_subst_files
2653 eval ac_val=\$$ac_var
2654 case $ac_val in
2655 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2656 esac
2657 $as_echo "$ac_var='\''$ac_val'\''"
2658 done | sort
2659 echo
2662 if test -s confdefs.h; then
2663 $as_echo "## ----------- ##
2664 ## confdefs.h. ##
2665 ## ----------- ##"
2666 echo
2667 cat confdefs.h
2668 echo
2670 test "$ac_signal" != 0 &&
2671 $as_echo "$as_me: caught signal $ac_signal"
2672 $as_echo "$as_me: exit $exit_status"
2673 } >&5
2674 rm -f core *.core core.conftest.* &&
2675 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2676 exit $exit_status
2678 for ac_signal in 1 2 13 15; do
2679 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2680 done
2681 ac_signal=0
2683 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2684 rm -f -r conftest* confdefs.h
2686 $as_echo "/* confdefs.h */" > confdefs.h
2688 # Predefined preprocessor variables.
2690 cat >>confdefs.h <<_ACEOF
2691 #define PACKAGE_NAME "$PACKAGE_NAME"
2692 _ACEOF
2694 cat >>confdefs.h <<_ACEOF
2695 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2696 _ACEOF
2698 cat >>confdefs.h <<_ACEOF
2699 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2700 _ACEOF
2702 cat >>confdefs.h <<_ACEOF
2703 #define PACKAGE_STRING "$PACKAGE_STRING"
2704 _ACEOF
2706 cat >>confdefs.h <<_ACEOF
2707 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2708 _ACEOF
2710 cat >>confdefs.h <<_ACEOF
2711 #define PACKAGE_URL "$PACKAGE_URL"
2712 _ACEOF
2715 # Let the site file select an alternate cache file if it wants to.
2716 # Prefer an explicitly selected file to automatically selected ones.
2717 ac_site_file1=NONE
2718 ac_site_file2=NONE
2719 if test -n "$CONFIG_SITE"; then
2720 # We do not want a PATH search for config.site.
2721 case $CONFIG_SITE in #((
2722 -*) ac_site_file1=./$CONFIG_SITE;;
2723 */*) ac_site_file1=$CONFIG_SITE;;
2724 *) ac_site_file1=./$CONFIG_SITE;;
2725 esac
2726 elif test "x$prefix" != xNONE; then
2727 ac_site_file1=$prefix/share/config.site
2728 ac_site_file2=$prefix/etc/config.site
2729 else
2730 ac_site_file1=$ac_default_prefix/share/config.site
2731 ac_site_file2=$ac_default_prefix/etc/config.site
2733 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2735 test "x$ac_site_file" = xNONE && continue
2736 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2738 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2739 sed 's/^/| /' "$ac_site_file" >&5
2740 . "$ac_site_file" \
2741 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2742 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2743 as_fn_error $? "failed to load site script $ac_site_file
2744 See \`config.log' for more details" "$LINENO" 5; }
2746 done
2748 if test -r "$cache_file"; then
2749 # Some versions of bash will fail to source /dev/null (special files
2750 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2751 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2753 $as_echo "$as_me: loading cache $cache_file" >&6;}
2754 case $cache_file in
2755 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2756 *) . "./$cache_file";;
2757 esac
2759 else
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2761 $as_echo "$as_me: creating cache $cache_file" >&6;}
2762 >$cache_file
2765 gt_needs="$gt_needs "
2766 # Check that the precious variables saved in the cache have kept the same
2767 # value.
2768 ac_cache_corrupted=false
2769 for ac_var in $ac_precious_vars; do
2770 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2771 eval ac_new_set=\$ac_env_${ac_var}_set
2772 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2773 eval ac_new_val=\$ac_env_${ac_var}_value
2774 case $ac_old_set,$ac_new_set in
2775 set,)
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2777 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2778 ac_cache_corrupted=: ;;
2779 ,set)
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2781 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2782 ac_cache_corrupted=: ;;
2783 ,);;
2785 if test "x$ac_old_val" != "x$ac_new_val"; then
2786 # differences in whitespace do not lead to failure.
2787 ac_old_val_w=`echo x $ac_old_val`
2788 ac_new_val_w=`echo x $ac_new_val`
2789 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2791 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2792 ac_cache_corrupted=:
2793 else
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2795 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2796 eval $ac_var=\$ac_old_val
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2799 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2801 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2802 fi;;
2803 esac
2804 # Pass precious variables to config.status.
2805 if test "$ac_new_set" = set; then
2806 case $ac_new_val in
2807 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2808 *) ac_arg=$ac_var=$ac_new_val ;;
2809 esac
2810 case " $ac_configure_args " in
2811 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2812 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2813 esac
2815 done
2816 if $ac_cache_corrupted; then
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2818 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2820 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2821 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2823 ## -------------------- ##
2824 ## Main body of script. ##
2825 ## -------------------- ##
2827 ac_ext=c
2828 ac_cpp='$CPP $CPPFLAGS'
2829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2836 ac_config_headers="$ac_config_headers include/config.h"
2839 am__api_version='1.15'
2841 ac_aux_dir=
2842 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2843 if test -f "$ac_dir/install-sh"; then
2844 ac_aux_dir=$ac_dir
2845 ac_install_sh="$ac_aux_dir/install-sh -c"
2846 break
2847 elif test -f "$ac_dir/install.sh"; then
2848 ac_aux_dir=$ac_dir
2849 ac_install_sh="$ac_aux_dir/install.sh -c"
2850 break
2851 elif test -f "$ac_dir/shtool"; then
2852 ac_aux_dir=$ac_dir
2853 ac_install_sh="$ac_aux_dir/shtool install -c"
2854 break
2856 done
2857 if test -z "$ac_aux_dir"; then
2858 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2861 # These three variables are undocumented and unsupported,
2862 # and are intended to be withdrawn in a future Autoconf release.
2863 # They can cause serious problems if a builder's source tree is in a directory
2864 # whose full name contains unusual characters.
2865 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2866 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2867 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2870 # Find a good install program. We prefer a C program (faster),
2871 # so one script is as good as another. But avoid the broken or
2872 # incompatible versions:
2873 # SysV /etc/install, /usr/sbin/install
2874 # SunOS /usr/etc/install
2875 # IRIX /sbin/install
2876 # AIX /bin/install
2877 # AmigaOS /C/install, which installs bootblocks on floppy discs
2878 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2879 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2880 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2881 # OS/2's system install, which has a completely different semantic
2882 # ./install, which can be erroneously created by make from ./install.sh.
2883 # Reject install programs that cannot install multiple files.
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2885 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2886 if test -z "$INSTALL"; then
2887 if ${ac_cv_path_install+:} false; then :
2888 $as_echo_n "(cached) " >&6
2889 else
2890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2891 for as_dir in $PATH
2893 IFS=$as_save_IFS
2894 test -z "$as_dir" && as_dir=.
2895 # Account for people who put trailing slashes in PATH elements.
2896 case $as_dir/ in #((
2897 ./ | .// | /[cC]/* | \
2898 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2899 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2900 /usr/ucb/* ) ;;
2902 # OSF1 and SCO ODT 3.0 have their own names for install.
2903 # Don't use installbsd from OSF since it installs stuff as root
2904 # by default.
2905 for ac_prog in ginstall scoinst install; do
2906 for ac_exec_ext in '' $ac_executable_extensions; do
2907 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2908 if test $ac_prog = install &&
2909 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2910 # AIX install. It has an incompatible calling convention.
2912 elif test $ac_prog = install &&
2913 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2914 # program-specific install script used by HP pwplus--don't use.
2916 else
2917 rm -rf conftest.one conftest.two conftest.dir
2918 echo one > conftest.one
2919 echo two > conftest.two
2920 mkdir conftest.dir
2921 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2922 test -s conftest.one && test -s conftest.two &&
2923 test -s conftest.dir/conftest.one &&
2924 test -s conftest.dir/conftest.two
2925 then
2926 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2927 break 3
2931 done
2932 done
2934 esac
2936 done
2937 IFS=$as_save_IFS
2939 rm -rf conftest.one conftest.two conftest.dir
2942 if test "${ac_cv_path_install+set}" = set; then
2943 INSTALL=$ac_cv_path_install
2944 else
2945 # As a last resort, use the slow shell script. Don't cache a
2946 # value for INSTALL within a source directory, because that will
2947 # break other packages using the cache if that directory is
2948 # removed, or if the value is a relative name.
2949 INSTALL=$ac_install_sh
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2953 $as_echo "$INSTALL" >&6; }
2955 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2956 # It thinks the first close brace ends the variable substitution.
2957 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2959 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2961 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2964 $as_echo_n "checking whether build environment is sane... " >&6; }
2965 # Reject unsafe characters in $srcdir or the absolute working directory
2966 # name. Accept space and tab only in the latter.
2967 am_lf='
2969 case `pwd` in
2970 *[\\\"\#\$\&\'\`$am_lf]*)
2971 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2972 esac
2973 case $srcdir in
2974 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2975 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2976 esac
2978 # Do 'set' in a subshell so we don't clobber the current shell's
2979 # arguments. Must try -L first in case configure is actually a
2980 # symlink; some systems play weird games with the mod time of symlinks
2981 # (eg FreeBSD returns the mod time of the symlink's containing
2982 # directory).
2983 if (
2984 am_has_slept=no
2985 for am_try in 1 2; do
2986 echo "timestamp, slept: $am_has_slept" > conftest.file
2987 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2988 if test "$*" = "X"; then
2989 # -L didn't work.
2990 set X `ls -t "$srcdir/configure" conftest.file`
2992 if test "$*" != "X $srcdir/configure conftest.file" \
2993 && test "$*" != "X conftest.file $srcdir/configure"; then
2995 # If neither matched, then we have a broken ls. This can happen
2996 # if, for instance, CONFIG_SHELL is bash and it inherits a
2997 # broken ls alias from the environment. This has actually
2998 # happened. Such a system could not be considered "sane".
2999 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3000 alias in your environment" "$LINENO" 5
3002 if test "$2" = conftest.file || test $am_try -eq 2; then
3003 break
3005 # Just in case.
3006 sleep 1
3007 am_has_slept=yes
3008 done
3009 test "$2" = conftest.file
3011 then
3012 # Ok.
3014 else
3015 as_fn_error $? "newly created file is older than distributed files!
3016 Check your system clock" "$LINENO" 5
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3019 $as_echo "yes" >&6; }
3020 # If we didn't sleep, we still need to ensure time stamps of config.status and
3021 # generated files are strictly newer.
3022 am_sleep_pid=
3023 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3024 ( sleep 1 ) &
3025 am_sleep_pid=$!
3028 rm -f conftest.file
3030 test "$program_prefix" != NONE &&
3031 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3032 # Use a double $ so make ignores it.
3033 test "$program_suffix" != NONE &&
3034 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3035 # Double any \ or $.
3036 # By default was `s,x,x', remove it if useless.
3037 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3038 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3040 # Expand $ac_aux_dir to an absolute path.
3041 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3043 if test x"${MISSING+set}" != xset; then
3044 case $am_aux_dir in
3045 *\ * | *\ *)
3046 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3048 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3049 esac
3051 # Use eval to expand $SHELL
3052 if eval "$MISSING --is-lightweight"; then
3053 am_missing_run="$MISSING "
3054 else
3055 am_missing_run=
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3057 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3060 if test x"${install_sh+set}" != xset; then
3061 case $am_aux_dir in
3062 *\ * | *\ *)
3063 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3065 install_sh="\${SHELL} $am_aux_dir/install-sh"
3066 esac
3069 # Installed binaries are usually stripped using 'strip' when the user
3070 # run "make install-strip". However 'strip' might not be the right
3071 # tool to use in cross-compilation environments, therefore Automake
3072 # will honor the 'STRIP' environment variable to overrule this program.
3073 if test "$cross_compiling" != no; then
3074 if test -n "$ac_tool_prefix"; then
3075 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3076 set dummy ${ac_tool_prefix}strip; ac_word=$2
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3078 $as_echo_n "checking for $ac_word... " >&6; }
3079 if ${ac_cv_prog_STRIP+:} false; then :
3080 $as_echo_n "(cached) " >&6
3081 else
3082 if test -n "$STRIP"; then
3083 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3084 else
3085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3086 for as_dir in $PATH
3088 IFS=$as_save_IFS
3089 test -z "$as_dir" && as_dir=.
3090 for ac_exec_ext in '' $ac_executable_extensions; do
3091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3092 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3094 break 2
3096 done
3097 done
3098 IFS=$as_save_IFS
3102 STRIP=$ac_cv_prog_STRIP
3103 if test -n "$STRIP"; then
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3105 $as_echo "$STRIP" >&6; }
3106 else
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3108 $as_echo "no" >&6; }
3113 if test -z "$ac_cv_prog_STRIP"; then
3114 ac_ct_STRIP=$STRIP
3115 # Extract the first word of "strip", so it can be a program name with args.
3116 set dummy strip; ac_word=$2
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3118 $as_echo_n "checking for $ac_word... " >&6; }
3119 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3120 $as_echo_n "(cached) " >&6
3121 else
3122 if test -n "$ac_ct_STRIP"; then
3123 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3124 else
3125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3126 for as_dir in $PATH
3128 IFS=$as_save_IFS
3129 test -z "$as_dir" && as_dir=.
3130 for ac_exec_ext in '' $ac_executable_extensions; do
3131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3132 ac_cv_prog_ac_ct_STRIP="strip"
3133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3134 break 2
3136 done
3137 done
3138 IFS=$as_save_IFS
3142 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3143 if test -n "$ac_ct_STRIP"; then
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3145 $as_echo "$ac_ct_STRIP" >&6; }
3146 else
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3148 $as_echo "no" >&6; }
3151 if test "x$ac_ct_STRIP" = x; then
3152 STRIP=":"
3153 else
3154 case $cross_compiling:$ac_tool_warned in
3155 yes:)
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3157 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3158 ac_tool_warned=yes ;;
3159 esac
3160 STRIP=$ac_ct_STRIP
3162 else
3163 STRIP="$ac_cv_prog_STRIP"
3167 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3170 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3171 if test -z "$MKDIR_P"; then
3172 if ${ac_cv_path_mkdir+:} false; then :
3173 $as_echo_n "(cached) " >&6
3174 else
3175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3176 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3178 IFS=$as_save_IFS
3179 test -z "$as_dir" && as_dir=.
3180 for ac_prog in mkdir gmkdir; do
3181 for ac_exec_ext in '' $ac_executable_extensions; do
3182 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3183 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3184 'mkdir (GNU coreutils) '* | \
3185 'mkdir (coreutils) '* | \
3186 'mkdir (fileutils) '4.1*)
3187 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3188 break 3;;
3189 esac
3190 done
3191 done
3192 done
3193 IFS=$as_save_IFS
3197 test -d ./--version && rmdir ./--version
3198 if test "${ac_cv_path_mkdir+set}" = set; then
3199 MKDIR_P="$ac_cv_path_mkdir -p"
3200 else
3201 # As a last resort, use the slow shell script. Don't cache a
3202 # value for MKDIR_P within a source directory, because that will
3203 # break other packages using the cache if that directory is
3204 # removed, or if the value is a relative name.
3205 MKDIR_P="$ac_install_sh -d"
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3209 $as_echo "$MKDIR_P" >&6; }
3211 for ac_prog in gawk mawk nawk awk
3213 # Extract the first word of "$ac_prog", so it can be a program name with args.
3214 set dummy $ac_prog; ac_word=$2
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3216 $as_echo_n "checking for $ac_word... " >&6; }
3217 if ${ac_cv_prog_AWK+:} false; then :
3218 $as_echo_n "(cached) " >&6
3219 else
3220 if test -n "$AWK"; then
3221 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3222 else
3223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3224 for as_dir in $PATH
3226 IFS=$as_save_IFS
3227 test -z "$as_dir" && as_dir=.
3228 for ac_exec_ext in '' $ac_executable_extensions; do
3229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3230 ac_cv_prog_AWK="$ac_prog"
3231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3232 break 2
3234 done
3235 done
3236 IFS=$as_save_IFS
3240 AWK=$ac_cv_prog_AWK
3241 if test -n "$AWK"; then
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3243 $as_echo "$AWK" >&6; }
3244 else
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3246 $as_echo "no" >&6; }
3250 test -n "$AWK" && break
3251 done
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3254 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3255 set x ${MAKE-make}
3256 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3257 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3258 $as_echo_n "(cached) " >&6
3259 else
3260 cat >conftest.make <<\_ACEOF
3261 SHELL = /bin/sh
3262 all:
3263 @echo '@@@%%%=$(MAKE)=@@@%%%'
3264 _ACEOF
3265 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3266 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3267 *@@@%%%=?*=@@@%%%*)
3268 eval ac_cv_prog_make_${ac_make}_set=yes;;
3270 eval ac_cv_prog_make_${ac_make}_set=no;;
3271 esac
3272 rm -f conftest.make
3274 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3276 $as_echo "yes" >&6; }
3277 SET_MAKE=
3278 else
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3280 $as_echo "no" >&6; }
3281 SET_MAKE="MAKE=${MAKE-make}"
3284 rm -rf .tst 2>/dev/null
3285 mkdir .tst 2>/dev/null
3286 if test -d .tst; then
3287 am__leading_dot=.
3288 else
3289 am__leading_dot=_
3291 rmdir .tst 2>/dev/null
3293 # Check whether --enable-silent-rules was given.
3294 if test "${enable_silent_rules+set}" = set; then :
3295 enableval=$enable_silent_rules;
3298 case $enable_silent_rules in # (((
3299 yes) AM_DEFAULT_VERBOSITY=0;;
3300 no) AM_DEFAULT_VERBOSITY=1;;
3301 *) AM_DEFAULT_VERBOSITY=1;;
3302 esac
3303 am_make=${MAKE-make}
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3305 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3306 if ${am_cv_make_support_nested_variables+:} false; then :
3307 $as_echo_n "(cached) " >&6
3308 else
3309 if $as_echo 'TRUE=$(BAR$(V))
3310 BAR0=false
3311 BAR1=true
3313 am__doit:
3314 @$(TRUE)
3315 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3316 am_cv_make_support_nested_variables=yes
3317 else
3318 am_cv_make_support_nested_variables=no
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3322 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3323 if test $am_cv_make_support_nested_variables = yes; then
3324 AM_V='$(V)'
3325 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3326 else
3327 AM_V=$AM_DEFAULT_VERBOSITY
3328 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3330 AM_BACKSLASH='\'
3332 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3333 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3334 # is not polluted with repeated "-I."
3335 am__isrc=' -I$(srcdir)'
3336 # test to see if srcdir already configured
3337 if test -f $srcdir/config.status; then
3338 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3342 # test whether we have cygpath
3343 if test -z "$CYGPATH_W"; then
3344 if (cygpath --version) >/dev/null 2>/dev/null; then
3345 CYGPATH_W='cygpath -w'
3346 else
3347 CYGPATH_W=echo
3352 # Define the identity of the package.
3353 PACKAGE='alpine'
3354 VERSION='2.25'
3357 cat >>confdefs.h <<_ACEOF
3358 #define PACKAGE "$PACKAGE"
3359 _ACEOF
3362 cat >>confdefs.h <<_ACEOF
3363 #define VERSION "$VERSION"
3364 _ACEOF
3366 # Some tools Automake needs.
3368 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3371 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3374 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3377 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3380 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3382 # For better backward compatibility. To be removed once Automake 1.9.x
3383 # dies out for good. For more background, see:
3384 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3385 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3386 mkdir_p='$(MKDIR_P)'
3388 # We need awk for the "check" target (and possibly the TAP driver). The
3389 # system "awk" is bad on some platforms.
3390 # Always define AMTAR for backward compatibility. Yes, it's still used
3391 # in the wild :-( We should find a proper way to deprecate it ...
3392 AMTAR='$${TAR-tar}'
3395 # We'll loop over all known methods to create a tar archive until one works.
3396 _am_tools='gnutar pax cpio none'
3398 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3405 # POSIX will say in a future version that running "rm -f" with no argument
3406 # is OK; and we want to be able to make that assumption in our Makefile
3407 # recipes. So use an aggressive probe to check that the usage we want is
3408 # actually supported "in the wild" to an acceptable degree.
3409 # See automake bug#10828.
3410 # To make any issue more visible, cause the running configure to be aborted
3411 # by default if the 'rm' program in use doesn't match our expectations; the
3412 # user can still override this though.
3413 if rm -f && rm -fr && rm -rf; then : OK; else
3414 cat >&2 <<'END'
3415 Oops!
3417 Your 'rm' program seems unable to run without file operands specified
3418 on the command line, even when the '-f' option is present. This is contrary
3419 to the behaviour of most rm programs out there, and not conforming with
3420 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3422 Please tell bug-automake@gnu.org about your system, including the value
3423 of your $PATH and any error possibly output before this message. This
3424 can help us improve future automake versions.
3427 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3428 echo 'Configuration will proceed anyway, since you have set the' >&2
3429 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3430 echo >&2
3431 else
3432 cat >&2 <<'END'
3433 Aborting the configuration process, to ensure you take notice of the issue.
3435 You can download and install GNU coreutils to get an 'rm' implementation
3436 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3438 If you want to complete the configuration process using your problematic
3439 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3440 to "yes", and re-run configure.
3443 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3450 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3451 # Check whether --enable-maintainer-mode was given.
3452 if test "${enable_maintainer_mode+set}" = set; then :
3453 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3454 else
3455 USE_MAINTAINER_MODE=no
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3459 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3460 if test $USE_MAINTAINER_MODE = yes; then
3461 MAINTAINER_MODE_TRUE=
3462 MAINTAINER_MODE_FALSE='#'
3463 else
3464 MAINTAINER_MODE_TRUE='#'
3465 MAINTAINER_MODE_FALSE=
3468 MAINT=$MAINTAINER_MODE_TRUE
3472 # Make sure we can run config.sub.
3473 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3474 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3477 $as_echo_n "checking build system type... " >&6; }
3478 if ${ac_cv_build+:} false; then :
3479 $as_echo_n "(cached) " >&6
3480 else
3481 ac_build_alias=$build_alias
3482 test "x$ac_build_alias" = x &&
3483 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3484 test "x$ac_build_alias" = x &&
3485 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3486 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3487 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3491 $as_echo "$ac_cv_build" >&6; }
3492 case $ac_cv_build in
3493 *-*-*) ;;
3494 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3495 esac
3496 build=$ac_cv_build
3497 ac_save_IFS=$IFS; IFS='-'
3498 set x $ac_cv_build
3499 shift
3500 build_cpu=$1
3501 build_vendor=$2
3502 shift; shift
3503 # Remember, the first character of IFS is used to create $*,
3504 # except with old shells:
3505 build_os=$*
3506 IFS=$ac_save_IFS
3507 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3511 $as_echo_n "checking host system type... " >&6; }
3512 if ${ac_cv_host+:} false; then :
3513 $as_echo_n "(cached) " >&6
3514 else
3515 if test "x$host_alias" = x; then
3516 ac_cv_host=$ac_cv_build
3517 else
3518 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3519 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3524 $as_echo "$ac_cv_host" >&6; }
3525 case $ac_cv_host in
3526 *-*-*) ;;
3527 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3528 esac
3529 host=$ac_cv_host
3530 ac_save_IFS=$IFS; IFS='-'
3531 set x $ac_cv_host
3532 shift
3533 host_cpu=$1
3534 host_vendor=$2
3535 shift; shift
3536 # Remember, the first character of IFS is used to create $*,
3537 # except with old shells:
3538 host_os=$*
3539 IFS=$ac_save_IFS
3540 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3544 ac_ext=c
3545 ac_cpp='$CPP $CPPFLAGS'
3546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3548 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring for $PACKAGE_STRING ($host)" >&5
3552 $as_echo "$as_me: Configuring for $PACKAGE_STRING ($host)" >&6;}
3554 # start out with intent to build Web Alpine
3555 WEB_BUILD=web/src/alpined.d
3558 ac_ext=c
3559 ac_cpp='$CPP $CPPFLAGS'
3560 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3561 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3562 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3563 if test -n "$ac_tool_prefix"; then
3564 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3565 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3567 $as_echo_n "checking for $ac_word... " >&6; }
3568 if ${ac_cv_prog_CC+:} false; then :
3569 $as_echo_n "(cached) " >&6
3570 else
3571 if test -n "$CC"; then
3572 ac_cv_prog_CC="$CC" # Let the user override the test.
3573 else
3574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3575 for as_dir in $PATH
3577 IFS=$as_save_IFS
3578 test -z "$as_dir" && as_dir=.
3579 for ac_exec_ext in '' $ac_executable_extensions; do
3580 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3581 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3583 break 2
3585 done
3586 done
3587 IFS=$as_save_IFS
3591 CC=$ac_cv_prog_CC
3592 if test -n "$CC"; then
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3594 $as_echo "$CC" >&6; }
3595 else
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3597 $as_echo "no" >&6; }
3602 if test -z "$ac_cv_prog_CC"; then
3603 ac_ct_CC=$CC
3604 # Extract the first word of "gcc", so it can be a program name with args.
3605 set dummy gcc; ac_word=$2
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3607 $as_echo_n "checking for $ac_word... " >&6; }
3608 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3609 $as_echo_n "(cached) " >&6
3610 else
3611 if test -n "$ac_ct_CC"; then
3612 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3613 else
3614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3615 for as_dir in $PATH
3617 IFS=$as_save_IFS
3618 test -z "$as_dir" && as_dir=.
3619 for ac_exec_ext in '' $ac_executable_extensions; do
3620 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3621 ac_cv_prog_ac_ct_CC="gcc"
3622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3623 break 2
3625 done
3626 done
3627 IFS=$as_save_IFS
3631 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3632 if test -n "$ac_ct_CC"; then
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3634 $as_echo "$ac_ct_CC" >&6; }
3635 else
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3637 $as_echo "no" >&6; }
3640 if test "x$ac_ct_CC" = x; then
3641 CC=""
3642 else
3643 case $cross_compiling:$ac_tool_warned in
3644 yes:)
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3646 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3647 ac_tool_warned=yes ;;
3648 esac
3649 CC=$ac_ct_CC
3651 else
3652 CC="$ac_cv_prog_CC"
3655 if test -z "$CC"; then
3656 if test -n "$ac_tool_prefix"; then
3657 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3658 set dummy ${ac_tool_prefix}cc; ac_word=$2
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3660 $as_echo_n "checking for $ac_word... " >&6; }
3661 if ${ac_cv_prog_CC+:} false; then :
3662 $as_echo_n "(cached) " >&6
3663 else
3664 if test -n "$CC"; then
3665 ac_cv_prog_CC="$CC" # Let the user override the test.
3666 else
3667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3668 for as_dir in $PATH
3670 IFS=$as_save_IFS
3671 test -z "$as_dir" && as_dir=.
3672 for ac_exec_ext in '' $ac_executable_extensions; do
3673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3674 ac_cv_prog_CC="${ac_tool_prefix}cc"
3675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3676 break 2
3678 done
3679 done
3680 IFS=$as_save_IFS
3684 CC=$ac_cv_prog_CC
3685 if test -n "$CC"; then
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3687 $as_echo "$CC" >&6; }
3688 else
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3690 $as_echo "no" >&6; }
3696 if test -z "$CC"; then
3697 # Extract the first word of "cc", so it can be a program name with args.
3698 set dummy cc; ac_word=$2
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3700 $as_echo_n "checking for $ac_word... " >&6; }
3701 if ${ac_cv_prog_CC+:} false; then :
3702 $as_echo_n "(cached) " >&6
3703 else
3704 if test -n "$CC"; then
3705 ac_cv_prog_CC="$CC" # Let the user override the test.
3706 else
3707 ac_prog_rejected=no
3708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3709 for as_dir in $PATH
3711 IFS=$as_save_IFS
3712 test -z "$as_dir" && as_dir=.
3713 for ac_exec_ext in '' $ac_executable_extensions; do
3714 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3715 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3716 ac_prog_rejected=yes
3717 continue
3719 ac_cv_prog_CC="cc"
3720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3721 break 2
3723 done
3724 done
3725 IFS=$as_save_IFS
3727 if test $ac_prog_rejected = yes; then
3728 # We found a bogon in the path, so make sure we never use it.
3729 set dummy $ac_cv_prog_CC
3730 shift
3731 if test $# != 0; then
3732 # We chose a different compiler from the bogus one.
3733 # However, it has the same basename, so the bogon will be chosen
3734 # first if we set CC to just the basename; use the full file name.
3735 shift
3736 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3741 CC=$ac_cv_prog_CC
3742 if test -n "$CC"; then
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3744 $as_echo "$CC" >&6; }
3745 else
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3747 $as_echo "no" >&6; }
3752 if test -z "$CC"; then
3753 if test -n "$ac_tool_prefix"; then
3754 for ac_prog in cl.exe
3756 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3757 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3759 $as_echo_n "checking for $ac_word... " >&6; }
3760 if ${ac_cv_prog_CC+:} false; then :
3761 $as_echo_n "(cached) " >&6
3762 else
3763 if test -n "$CC"; then
3764 ac_cv_prog_CC="$CC" # Let the user override the test.
3765 else
3766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3767 for as_dir in $PATH
3769 IFS=$as_save_IFS
3770 test -z "$as_dir" && as_dir=.
3771 for ac_exec_ext in '' $ac_executable_extensions; do
3772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3773 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3775 break 2
3777 done
3778 done
3779 IFS=$as_save_IFS
3783 CC=$ac_cv_prog_CC
3784 if test -n "$CC"; then
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3786 $as_echo "$CC" >&6; }
3787 else
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3789 $as_echo "no" >&6; }
3793 test -n "$CC" && break
3794 done
3796 if test -z "$CC"; then
3797 ac_ct_CC=$CC
3798 for ac_prog in cl.exe
3800 # Extract the first word of "$ac_prog", so it can be a program name with args.
3801 set dummy $ac_prog; ac_word=$2
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3803 $as_echo_n "checking for $ac_word... " >&6; }
3804 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3805 $as_echo_n "(cached) " >&6
3806 else
3807 if test -n "$ac_ct_CC"; then
3808 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3809 else
3810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3811 for as_dir in $PATH
3813 IFS=$as_save_IFS
3814 test -z "$as_dir" && as_dir=.
3815 for ac_exec_ext in '' $ac_executable_extensions; do
3816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3817 ac_cv_prog_ac_ct_CC="$ac_prog"
3818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3819 break 2
3821 done
3822 done
3823 IFS=$as_save_IFS
3827 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3828 if test -n "$ac_ct_CC"; then
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3830 $as_echo "$ac_ct_CC" >&6; }
3831 else
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3833 $as_echo "no" >&6; }
3837 test -n "$ac_ct_CC" && break
3838 done
3840 if test "x$ac_ct_CC" = x; then
3841 CC=""
3842 else
3843 case $cross_compiling:$ac_tool_warned in
3844 yes:)
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3846 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3847 ac_tool_warned=yes ;;
3848 esac
3849 CC=$ac_ct_CC
3856 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3857 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3858 as_fn_error $? "no acceptable C compiler found in \$PATH
3859 See \`config.log' for more details" "$LINENO" 5; }
3861 # Provide some information about the compiler.
3862 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3863 set X $ac_compile
3864 ac_compiler=$2
3865 for ac_option in --version -v -V -qversion; do
3866 { { ac_try="$ac_compiler $ac_option >&5"
3867 case "(($ac_try" in
3868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3869 *) ac_try_echo=$ac_try;;
3870 esac
3871 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3872 $as_echo "$ac_try_echo"; } >&5
3873 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3874 ac_status=$?
3875 if test -s conftest.err; then
3876 sed '10a\
3877 ... rest of stderr output deleted ...
3878 10q' conftest.err >conftest.er1
3879 cat conftest.er1 >&5
3881 rm -f conftest.er1 conftest.err
3882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3883 test $ac_status = 0; }
3884 done
3886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3887 /* end confdefs.h. */
3890 main ()
3894 return 0;
3896 _ACEOF
3897 ac_clean_files_save=$ac_clean_files
3898 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3899 # Try to create an executable without -o first, disregard a.out.
3900 # It will help us diagnose broken compilers, and finding out an intuition
3901 # of exeext.
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3903 $as_echo_n "checking whether the C compiler works... " >&6; }
3904 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3906 # The possible output files:
3907 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3909 ac_rmfiles=
3910 for ac_file in $ac_files
3912 case $ac_file in
3913 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3914 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3915 esac
3916 done
3917 rm -f $ac_rmfiles
3919 if { { ac_try="$ac_link_default"
3920 case "(($ac_try" in
3921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3922 *) ac_try_echo=$ac_try;;
3923 esac
3924 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3925 $as_echo "$ac_try_echo"; } >&5
3926 (eval "$ac_link_default") 2>&5
3927 ac_status=$?
3928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3929 test $ac_status = 0; }; then :
3930 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3931 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3932 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3933 # so that the user can short-circuit this test for compilers unknown to
3934 # Autoconf.
3935 for ac_file in $ac_files ''
3937 test -f "$ac_file" || continue
3938 case $ac_file in
3939 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3941 [ab].out )
3942 # We found the default executable, but exeext='' is most
3943 # certainly right.
3944 break;;
3945 *.* )
3946 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3947 then :; else
3948 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3950 # We set ac_cv_exeext here because the later test for it is not
3951 # safe: cross compilers may not add the suffix if given an `-o'
3952 # argument, so we may need to know it at that point already.
3953 # Even if this section looks crufty: it has the advantage of
3954 # actually working.
3955 break;;
3957 break;;
3958 esac
3959 done
3960 test "$ac_cv_exeext" = no && ac_cv_exeext=
3962 else
3963 ac_file=''
3965 if test -z "$ac_file"; then :
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3967 $as_echo "no" >&6; }
3968 $as_echo "$as_me: failed program was:" >&5
3969 sed 's/^/| /' conftest.$ac_ext >&5
3971 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3972 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3973 as_fn_error 77 "C compiler cannot create executables
3974 See \`config.log' for more details" "$LINENO" 5; }
3975 else
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3977 $as_echo "yes" >&6; }
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3980 $as_echo_n "checking for C compiler default output file name... " >&6; }
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3982 $as_echo "$ac_file" >&6; }
3983 ac_exeext=$ac_cv_exeext
3985 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3986 ac_clean_files=$ac_clean_files_save
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3988 $as_echo_n "checking for suffix of executables... " >&6; }
3989 if { { ac_try="$ac_link"
3990 case "(($ac_try" in
3991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3992 *) ac_try_echo=$ac_try;;
3993 esac
3994 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3995 $as_echo "$ac_try_echo"; } >&5
3996 (eval "$ac_link") 2>&5
3997 ac_status=$?
3998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3999 test $ac_status = 0; }; then :
4000 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4001 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4002 # work properly (i.e., refer to `conftest.exe'), while it won't with
4003 # `rm'.
4004 for ac_file in conftest.exe conftest conftest.*; do
4005 test -f "$ac_file" || continue
4006 case $ac_file in
4007 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4008 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4009 break;;
4010 * ) break;;
4011 esac
4012 done
4013 else
4014 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4015 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4016 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4017 See \`config.log' for more details" "$LINENO" 5; }
4019 rm -f conftest conftest$ac_cv_exeext
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4021 $as_echo "$ac_cv_exeext" >&6; }
4023 rm -f conftest.$ac_ext
4024 EXEEXT=$ac_cv_exeext
4025 ac_exeext=$EXEEXT
4026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4027 /* end confdefs.h. */
4028 #include <stdio.h>
4030 main ()
4032 FILE *f = fopen ("conftest.out", "w");
4033 return ferror (f) || fclose (f) != 0;
4036 return 0;
4038 _ACEOF
4039 ac_clean_files="$ac_clean_files conftest.out"
4040 # Check that the compiler produces executables we can run. If not, either
4041 # the compiler is broken, or we cross compile.
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4043 $as_echo_n "checking whether we are cross compiling... " >&6; }
4044 if test "$cross_compiling" != yes; then
4045 { { ac_try="$ac_link"
4046 case "(($ac_try" in
4047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4048 *) ac_try_echo=$ac_try;;
4049 esac
4050 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4051 $as_echo "$ac_try_echo"; } >&5
4052 (eval "$ac_link") 2>&5
4053 ac_status=$?
4054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4055 test $ac_status = 0; }
4056 if { ac_try='./conftest$ac_cv_exeext'
4057 { { case "(($ac_try" in
4058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4059 *) ac_try_echo=$ac_try;;
4060 esac
4061 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4062 $as_echo "$ac_try_echo"; } >&5
4063 (eval "$ac_try") 2>&5
4064 ac_status=$?
4065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4066 test $ac_status = 0; }; }; then
4067 cross_compiling=no
4068 else
4069 if test "$cross_compiling" = maybe; then
4070 cross_compiling=yes
4071 else
4072 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4073 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4074 as_fn_error $? "cannot run C compiled programs.
4075 If you meant to cross compile, use \`--host'.
4076 See \`config.log' for more details" "$LINENO" 5; }
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4081 $as_echo "$cross_compiling" >&6; }
4083 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4084 ac_clean_files=$ac_clean_files_save
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4086 $as_echo_n "checking for suffix of object files... " >&6; }
4087 if ${ac_cv_objext+:} false; then :
4088 $as_echo_n "(cached) " >&6
4089 else
4090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4091 /* end confdefs.h. */
4094 main ()
4098 return 0;
4100 _ACEOF
4101 rm -f conftest.o conftest.obj
4102 if { { ac_try="$ac_compile"
4103 case "(($ac_try" in
4104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4105 *) ac_try_echo=$ac_try;;
4106 esac
4107 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4108 $as_echo "$ac_try_echo"; } >&5
4109 (eval "$ac_compile") 2>&5
4110 ac_status=$?
4111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4112 test $ac_status = 0; }; then :
4113 for ac_file in conftest.o conftest.obj conftest.*; do
4114 test -f "$ac_file" || continue;
4115 case $ac_file in
4116 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4117 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4118 break;;
4119 esac
4120 done
4121 else
4122 $as_echo "$as_me: failed program was:" >&5
4123 sed 's/^/| /' conftest.$ac_ext >&5
4125 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4126 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4127 as_fn_error $? "cannot compute suffix of object files: cannot compile
4128 See \`config.log' for more details" "$LINENO" 5; }
4130 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4133 $as_echo "$ac_cv_objext" >&6; }
4134 OBJEXT=$ac_cv_objext
4135 ac_objext=$OBJEXT
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4137 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4138 if ${ac_cv_c_compiler_gnu+:} false; then :
4139 $as_echo_n "(cached) " >&6
4140 else
4141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4142 /* end confdefs.h. */
4145 main ()
4147 #ifndef __GNUC__
4148 choke me
4149 #endif
4152 return 0;
4154 _ACEOF
4155 if ac_fn_c_try_compile "$LINENO"; then :
4156 ac_compiler_gnu=yes
4157 else
4158 ac_compiler_gnu=no
4160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4161 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4165 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4166 if test $ac_compiler_gnu = yes; then
4167 GCC=yes
4168 else
4169 GCC=
4171 ac_test_CFLAGS=${CFLAGS+set}
4172 ac_save_CFLAGS=$CFLAGS
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4174 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4175 if ${ac_cv_prog_cc_g+:} false; then :
4176 $as_echo_n "(cached) " >&6
4177 else
4178 ac_save_c_werror_flag=$ac_c_werror_flag
4179 ac_c_werror_flag=yes
4180 ac_cv_prog_cc_g=no
4181 CFLAGS="-g"
4182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4183 /* end confdefs.h. */
4186 main ()
4190 return 0;
4192 _ACEOF
4193 if ac_fn_c_try_compile "$LINENO"; then :
4194 ac_cv_prog_cc_g=yes
4195 else
4196 CFLAGS=""
4197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4198 /* end confdefs.h. */
4201 main ()
4205 return 0;
4207 _ACEOF
4208 if ac_fn_c_try_compile "$LINENO"; then :
4210 else
4211 ac_c_werror_flag=$ac_save_c_werror_flag
4212 CFLAGS="-g"
4213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4214 /* end confdefs.h. */
4217 main ()
4221 return 0;
4223 _ACEOF
4224 if ac_fn_c_try_compile "$LINENO"; then :
4225 ac_cv_prog_cc_g=yes
4227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4232 ac_c_werror_flag=$ac_save_c_werror_flag
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4235 $as_echo "$ac_cv_prog_cc_g" >&6; }
4236 if test "$ac_test_CFLAGS" = set; then
4237 CFLAGS=$ac_save_CFLAGS
4238 elif test $ac_cv_prog_cc_g = yes; then
4239 if test "$GCC" = yes; then
4240 CFLAGS="-g -O2"
4241 else
4242 CFLAGS="-g"
4244 else
4245 if test "$GCC" = yes; then
4246 CFLAGS="-O2"
4247 else
4248 CFLAGS=
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4252 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4253 if ${ac_cv_prog_cc_c89+:} false; then :
4254 $as_echo_n "(cached) " >&6
4255 else
4256 ac_cv_prog_cc_c89=no
4257 ac_save_CC=$CC
4258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4259 /* end confdefs.h. */
4260 #include <stdarg.h>
4261 #include <stdio.h>
4262 struct stat;
4263 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4264 struct buf { int x; };
4265 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4266 static char *e (p, i)
4267 char **p;
4268 int i;
4270 return p[i];
4272 static char *f (char * (*g) (char **, int), char **p, ...)
4274 char *s;
4275 va_list v;
4276 va_start (v,p);
4277 s = g (p, va_arg (v,int));
4278 va_end (v);
4279 return s;
4282 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4283 function prototypes and stuff, but not '\xHH' hex character constants.
4284 These don't provoke an error unfortunately, instead are silently treated
4285 as 'x'. The following induces an error, until -std is added to get
4286 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4287 array size at least. It's necessary to write '\x00'==0 to get something
4288 that's true only with -std. */
4289 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4291 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4292 inside strings and character constants. */
4293 #define FOO(x) 'x'
4294 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4296 int test (int i, double x);
4297 struct s1 {int (*f) (int a);};
4298 struct s2 {int (*f) (double a);};
4299 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4300 int argc;
4301 char **argv;
4303 main ()
4305 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4307 return 0;
4309 _ACEOF
4310 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4311 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4313 CC="$ac_save_CC $ac_arg"
4314 if ac_fn_c_try_compile "$LINENO"; then :
4315 ac_cv_prog_cc_c89=$ac_arg
4317 rm -f core conftest.err conftest.$ac_objext
4318 test "x$ac_cv_prog_cc_c89" != "xno" && break
4319 done
4320 rm -f conftest.$ac_ext
4321 CC=$ac_save_CC
4324 # AC_CACHE_VAL
4325 case "x$ac_cv_prog_cc_c89" in
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4328 $as_echo "none needed" >&6; } ;;
4329 xno)
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4331 $as_echo "unsupported" >&6; } ;;
4333 CC="$CC $ac_cv_prog_cc_c89"
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4335 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4336 esac
4337 if test "x$ac_cv_prog_cc_c89" != xno; then :
4341 ac_ext=c
4342 ac_cpp='$CPP $CPPFLAGS'
4343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4347 ac_ext=c
4348 ac_cpp='$CPP $CPPFLAGS'
4349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4353 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4354 if ${am_cv_prog_cc_c_o+:} false; then :
4355 $as_echo_n "(cached) " >&6
4356 else
4357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4358 /* end confdefs.h. */
4361 main ()
4365 return 0;
4367 _ACEOF
4368 # Make sure it works both with $CC and with simple cc.
4369 # Following AC_PROG_CC_C_O, we do the test twice because some
4370 # compilers refuse to overwrite an existing .o file with -o,
4371 # though they will create one.
4372 am_cv_prog_cc_c_o=yes
4373 for am_i in 1 2; do
4374 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4375 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4376 ac_status=$?
4377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4378 (exit $ac_status); } \
4379 && test -f conftest2.$ac_objext; then
4380 : OK
4381 else
4382 am_cv_prog_cc_c_o=no
4383 break
4385 done
4386 rm -f core conftest*
4387 unset am_i
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4390 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4391 if test "$am_cv_prog_cc_c_o" != yes; then
4392 # Losing compiler, so override with the script.
4393 # FIXME: It is wrong to rewrite CC.
4394 # But if we don't then we get into trouble of one sort or another.
4395 # A longer-term fix would be to have automake use am__CC in this case,
4396 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4397 CC="$am_aux_dir/compile $CC"
4399 ac_ext=c
4400 ac_cpp='$CPP $CPPFLAGS'
4401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4405 DEPDIR="${am__leading_dot}deps"
4407 ac_config_commands="$ac_config_commands depfiles"
4410 am_make=${MAKE-make}
4411 cat > confinc << 'END'
4412 am__doit:
4413 @echo this is the am__doit target
4414 .PHONY: am__doit
4416 # If we don't find an include directive, just comment out the code.
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4418 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4419 am__include="#"
4420 am__quote=
4421 _am_result=none
4422 # First try GNU make style include.
4423 echo "include confinc" > confmf
4424 # Ignore all kinds of additional output from 'make'.
4425 case `$am_make -s -f confmf 2> /dev/null` in #(
4426 *the\ am__doit\ target*)
4427 am__include=include
4428 am__quote=
4429 _am_result=GNU
4431 esac
4432 # Now try BSD make style include.
4433 if test "$am__include" = "#"; then
4434 echo '.include "confinc"' > confmf
4435 case `$am_make -s -f confmf 2> /dev/null` in #(
4436 *the\ am__doit\ target*)
4437 am__include=.include
4438 am__quote="\""
4439 _am_result=BSD
4441 esac
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4446 $as_echo "$_am_result" >&6; }
4447 rm -f confinc confmf
4449 # Check whether --enable-dependency-tracking was given.
4450 if test "${enable_dependency_tracking+set}" = set; then :
4451 enableval=$enable_dependency_tracking;
4454 if test "x$enable_dependency_tracking" != xno; then
4455 am_depcomp="$ac_aux_dir/depcomp"
4456 AMDEPBACKSLASH='\'
4457 am__nodep='_no'
4459 if test "x$enable_dependency_tracking" != xno; then
4460 AMDEP_TRUE=
4461 AMDEP_FALSE='#'
4462 else
4463 AMDEP_TRUE='#'
4464 AMDEP_FALSE=
4469 depcc="$CC" am_compiler_list=
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4472 $as_echo_n "checking dependency style of $depcc... " >&6; }
4473 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4474 $as_echo_n "(cached) " >&6
4475 else
4476 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4477 # We make a subdir and do the tests there. Otherwise we can end up
4478 # making bogus files that we don't know about and never remove. For
4479 # instance it was reported that on HP-UX the gcc test will end up
4480 # making a dummy file named 'D' -- because '-MD' means "put the output
4481 # in D".
4482 rm -rf conftest.dir
4483 mkdir conftest.dir
4484 # Copy depcomp to subdir because otherwise we won't find it if we're
4485 # using a relative directory.
4486 cp "$am_depcomp" conftest.dir
4487 cd conftest.dir
4488 # We will build objects and dependencies in a subdirectory because
4489 # it helps to detect inapplicable dependency modes. For instance
4490 # both Tru64's cc and ICC support -MD to output dependencies as a
4491 # side effect of compilation, but ICC will put the dependencies in
4492 # the current directory while Tru64 will put them in the object
4493 # directory.
4494 mkdir sub
4496 am_cv_CC_dependencies_compiler_type=none
4497 if test "$am_compiler_list" = ""; then
4498 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4500 am__universal=false
4501 case " $depcc " in #(
4502 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4503 esac
4505 for depmode in $am_compiler_list; do
4506 # Setup a source with many dependencies, because some compilers
4507 # like to wrap large dependency lists on column 80 (with \), and
4508 # we should not choose a depcomp mode which is confused by this.
4510 # We need to recreate these files for each test, as the compiler may
4511 # overwrite some of them when testing with obscure command lines.
4512 # This happens at least with the AIX C compiler.
4513 : > sub/conftest.c
4514 for i in 1 2 3 4 5 6; do
4515 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4516 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4517 # Solaris 10 /bin/sh.
4518 echo '/* dummy */' > sub/conftst$i.h
4519 done
4520 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4522 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4523 # mode. It turns out that the SunPro C++ compiler does not properly
4524 # handle '-M -o', and we need to detect this. Also, some Intel
4525 # versions had trouble with output in subdirs.
4526 am__obj=sub/conftest.${OBJEXT-o}
4527 am__minus_obj="-o $am__obj"
4528 case $depmode in
4529 gcc)
4530 # This depmode causes a compiler race in universal mode.
4531 test "$am__universal" = false || continue
4533 nosideeffect)
4534 # After this tag, mechanisms are not by side-effect, so they'll
4535 # only be used when explicitly requested.
4536 if test "x$enable_dependency_tracking" = xyes; then
4537 continue
4538 else
4539 break
4542 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4543 # This compiler won't grok '-c -o', but also, the minuso test has
4544 # not run yet. These depmodes are late enough in the game, and
4545 # so weak that their functioning should not be impacted.
4546 am__obj=conftest.${OBJEXT-o}
4547 am__minus_obj=
4549 none) break ;;
4550 esac
4551 if depmode=$depmode \
4552 source=sub/conftest.c object=$am__obj \
4553 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4554 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4555 >/dev/null 2>conftest.err &&
4556 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4557 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4558 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4559 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4560 # icc doesn't choke on unknown options, it will just issue warnings
4561 # or remarks (even with -Werror). So we grep stderr for any message
4562 # that says an option was ignored or not supported.
4563 # When given -MP, icc 7.0 and 7.1 complain thusly:
4564 # icc: Command line warning: ignoring option '-M'; no argument required
4565 # The diagnosis changed in icc 8.0:
4566 # icc: Command line remark: option '-MP' not supported
4567 if (grep 'ignoring option' conftest.err ||
4568 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4569 am_cv_CC_dependencies_compiler_type=$depmode
4570 break
4573 done
4575 cd ..
4576 rm -rf conftest.dir
4577 else
4578 am_cv_CC_dependencies_compiler_type=none
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4583 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4584 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4587 test "x$enable_dependency_tracking" != xno \
4588 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4589 am__fastdepCC_TRUE=
4590 am__fastdepCC_FALSE='#'
4591 else
4592 am__fastdepCC_TRUE='#'
4593 am__fastdepCC_FALSE=
4597 ac_ext=c
4598 ac_cpp='$CPP $CPPFLAGS'
4599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4603 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4604 # On Suns, sometimes $CPP names a directory.
4605 if test -n "$CPP" && test -d "$CPP"; then
4606 CPP=
4608 if test -z "$CPP"; then
4609 if ${ac_cv_prog_CPP+:} false; then :
4610 $as_echo_n "(cached) " >&6
4611 else
4612 # Double quotes because CPP needs to be expanded
4613 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4615 ac_preproc_ok=false
4616 for ac_c_preproc_warn_flag in '' yes
4618 # Use a header file that comes with gcc, so configuring glibc
4619 # with a fresh cross-compiler works.
4620 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4621 # <limits.h> exists even on freestanding compilers.
4622 # On the NeXT, cc -E runs the code through the compiler's parser,
4623 # not just through cpp. "Syntax error" is here to catch this case.
4624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4625 /* end confdefs.h. */
4626 #ifdef __STDC__
4627 # include <limits.h>
4628 #else
4629 # include <assert.h>
4630 #endif
4631 Syntax error
4632 _ACEOF
4633 if ac_fn_c_try_cpp "$LINENO"; then :
4635 else
4636 # Broken: fails on valid input.
4637 continue
4639 rm -f conftest.err conftest.i conftest.$ac_ext
4641 # OK, works on sane cases. Now check whether nonexistent headers
4642 # can be detected and how.
4643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4644 /* end confdefs.h. */
4645 #include <ac_nonexistent.h>
4646 _ACEOF
4647 if ac_fn_c_try_cpp "$LINENO"; then :
4648 # Broken: success on invalid input.
4649 continue
4650 else
4651 # Passes both tests.
4652 ac_preproc_ok=:
4653 break
4655 rm -f conftest.err conftest.i conftest.$ac_ext
4657 done
4658 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4659 rm -f conftest.i conftest.err conftest.$ac_ext
4660 if $ac_preproc_ok; then :
4661 break
4664 done
4665 ac_cv_prog_CPP=$CPP
4668 CPP=$ac_cv_prog_CPP
4669 else
4670 ac_cv_prog_CPP=$CPP
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4673 $as_echo "$CPP" >&6; }
4674 ac_preproc_ok=false
4675 for ac_c_preproc_warn_flag in '' yes
4677 # Use a header file that comes with gcc, so configuring glibc
4678 # with a fresh cross-compiler works.
4679 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4680 # <limits.h> exists even on freestanding compilers.
4681 # On the NeXT, cc -E runs the code through the compiler's parser,
4682 # not just through cpp. "Syntax error" is here to catch this case.
4683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4684 /* end confdefs.h. */
4685 #ifdef __STDC__
4686 # include <limits.h>
4687 #else
4688 # include <assert.h>
4689 #endif
4690 Syntax error
4691 _ACEOF
4692 if ac_fn_c_try_cpp "$LINENO"; then :
4694 else
4695 # Broken: fails on valid input.
4696 continue
4698 rm -f conftest.err conftest.i conftest.$ac_ext
4700 # OK, works on sane cases. Now check whether nonexistent headers
4701 # can be detected and how.
4702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4703 /* end confdefs.h. */
4704 #include <ac_nonexistent.h>
4705 _ACEOF
4706 if ac_fn_c_try_cpp "$LINENO"; then :
4707 # Broken: success on invalid input.
4708 continue
4709 else
4710 # Passes both tests.
4711 ac_preproc_ok=:
4712 break
4714 rm -f conftest.err conftest.i conftest.$ac_ext
4716 done
4717 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4718 rm -f conftest.i conftest.err conftest.$ac_ext
4719 if $ac_preproc_ok; then :
4721 else
4722 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4723 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4724 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4725 See \`config.log' for more details" "$LINENO" 5; }
4728 ac_ext=c
4729 ac_cpp='$CPP $CPPFLAGS'
4730 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4731 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4732 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4736 cross_compiling_build=no
4738 ac_build_tool_prefix=
4739 if test -n "$build"; then :
4740 ac_build_tool_prefix="$build-"
4741 elif test -n "$build_alias"; then :
4742 ac_build_tool_prefix="$build_alias-"
4745 ac_ext=c
4746 ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
4747 ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
4748 ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
4749 ac_compiler_gnu=$ac_cv_build_c_compiler_gnu
4752 was_set_ac_cv_c_compiler_gnu=${ac_cv_c_compiler_gnu+y}
4753 if test ${was_set_ac_cv_c_compiler_gnu}; then :
4754 saved_ac_cv_c_compiler_gnu=$ac_cv_c_compiler_gnu
4755 { ac_cv_c_compiler_gnu=; unset ac_cv_c_compiler_gnu;}
4758 ac_ext=c
4759 ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
4760 ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
4761 ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
4762 ac_compiler_gnu=$ac_cv_build_c_compiler_gnu
4763 if test -n "$ac_build_tool_prefix"; then
4764 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4765 set dummy ${ac_build_tool_prefix}gcc; ac_word=$2
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4767 $as_echo_n "checking for $ac_word... " >&6; }
4768 if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
4769 $as_echo_n "(cached) " >&6
4770 else
4771 if test -n "$CC_FOR_BUILD"; then
4772 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
4773 else
4774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4775 for as_dir in $PATH
4777 IFS=$as_save_IFS
4778 test -z "$as_dir" && as_dir=.
4779 for ac_exec_ext in '' $ac_executable_extensions; do
4780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4781 ac_cv_prog_CC_FOR_BUILD="${ac_build_tool_prefix}gcc"
4782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4783 break 2
4785 done
4786 done
4787 IFS=$as_save_IFS
4791 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
4792 if test -n "$CC_FOR_BUILD"; then
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
4794 $as_echo "$CC_FOR_BUILD" >&6; }
4795 else
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4797 $as_echo "no" >&6; }
4802 if test -z "$ac_cv_prog_CC_FOR_BUILD"; then
4803 ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
4804 # Extract the first word of "gcc", so it can be a program name with args.
4805 set dummy gcc; ac_word=$2
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4807 $as_echo_n "checking for $ac_word... " >&6; }
4808 if ${ac_cv_prog_ac_ct_CC_FOR_BUILD+:} false; then :
4809 $as_echo_n "(cached) " >&6
4810 else
4811 if test -n "$ac_ct_CC_FOR_BUILD"; then
4812 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
4813 else
4814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4815 for as_dir in $PATH
4817 IFS=$as_save_IFS
4818 test -z "$as_dir" && as_dir=.
4819 for ac_exec_ext in '' $ac_executable_extensions; do
4820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4821 ac_cv_prog_ac_ct_CC_FOR_BUILD="gcc"
4822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4823 break 2
4825 done
4826 done
4827 IFS=$as_save_IFS
4831 ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
4832 if test -n "$ac_ct_CC_FOR_BUILD"; then
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC_FOR_BUILD" >&5
4834 $as_echo "$ac_ct_CC_FOR_BUILD" >&6; }
4835 else
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4837 $as_echo "no" >&6; }
4840 if test "x$ac_ct_CC_FOR_BUILD" = x; then
4841 CC_FOR_BUILD=""
4842 else
4843 case $cross_compiling_build:$ac_tool_warned in
4844 yes:)
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5
4846 $as_echo "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;}
4847 ac_tool_warned=yes ;;
4848 esac
4849 CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
4851 else
4852 CC_FOR_BUILD="$ac_cv_prog_CC_FOR_BUILD"
4855 if test -z "$CC_FOR_BUILD"; then
4856 if test -n "$ac_build_tool_prefix"; then
4857 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4858 set dummy ${ac_build_tool_prefix}cc; ac_word=$2
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4860 $as_echo_n "checking for $ac_word... " >&6; }
4861 if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
4862 $as_echo_n "(cached) " >&6
4863 else
4864 if test -n "$CC_FOR_BUILD"; then
4865 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
4866 else
4867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4868 for as_dir in $PATH
4870 IFS=$as_save_IFS
4871 test -z "$as_dir" && as_dir=.
4872 for ac_exec_ext in '' $ac_executable_extensions; do
4873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4874 ac_cv_prog_CC_FOR_BUILD="${ac_build_tool_prefix}cc"
4875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4876 break 2
4878 done
4879 done
4880 IFS=$as_save_IFS
4884 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
4885 if test -n "$CC_FOR_BUILD"; then
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
4887 $as_echo "$CC_FOR_BUILD" >&6; }
4888 else
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4890 $as_echo "no" >&6; }
4896 if test -z "$CC_FOR_BUILD"; then
4897 # Extract the first word of "cc", so it can be a program name with args.
4898 set dummy cc; ac_word=$2
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4900 $as_echo_n "checking for $ac_word... " >&6; }
4901 if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
4902 $as_echo_n "(cached) " >&6
4903 else
4904 if test -n "$CC_FOR_BUILD"; then
4905 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
4906 else
4907 ac_prog_rejected=no
4908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4909 for as_dir in $PATH
4911 IFS=$as_save_IFS
4912 test -z "$as_dir" && as_dir=.
4913 for ac_exec_ext in '' $ac_executable_extensions; do
4914 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4915 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4916 ac_prog_rejected=yes
4917 continue
4919 ac_cv_prog_CC_FOR_BUILD="cc"
4920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4921 break 2
4923 done
4924 done
4925 IFS=$as_save_IFS
4927 if test $ac_prog_rejected = yes; then
4928 # We found a bogon in the path, so make sure we never use it.
4929 set dummy $ac_cv_prog_CC_FOR_BUILD
4930 shift
4931 if test $# != 0; then
4932 # We chose a different compiler from the bogus one.
4933 # However, it has the same basename, so the bogon will be chosen
4934 # first if we set CC_FOR_BUILD to just the basename; use the full file name.
4935 shift
4936 ac_cv_prog_CC_FOR_BUILD="$as_dir/$ac_word${1+' '}$@"
4941 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
4942 if test -n "$CC_FOR_BUILD"; then
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
4944 $as_echo "$CC_FOR_BUILD" >&6; }
4945 else
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4947 $as_echo "no" >&6; }
4952 if test -z "$CC_FOR_BUILD"; then
4953 if test -n "$ac_build_tool_prefix"; then
4954 for ac_prog in cl.exe
4956 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4957 set dummy $ac_build_tool_prefix$ac_prog; ac_word=$2
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4959 $as_echo_n "checking for $ac_word... " >&6; }
4960 if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
4961 $as_echo_n "(cached) " >&6
4962 else
4963 if test -n "$CC_FOR_BUILD"; then
4964 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
4965 else
4966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4967 for as_dir in $PATH
4969 IFS=$as_save_IFS
4970 test -z "$as_dir" && as_dir=.
4971 for ac_exec_ext in '' $ac_executable_extensions; do
4972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4973 ac_cv_prog_CC_FOR_BUILD="$ac_build_tool_prefix$ac_prog"
4974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4975 break 2
4977 done
4978 done
4979 IFS=$as_save_IFS
4983 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
4984 if test -n "$CC_FOR_BUILD"; then
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
4986 $as_echo "$CC_FOR_BUILD" >&6; }
4987 else
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4989 $as_echo "no" >&6; }
4993 test -n "$CC_FOR_BUILD" && break
4994 done
4996 if test -z "$CC_FOR_BUILD"; then
4997 ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
4998 for ac_prog in cl.exe
5000 # Extract the first word of "$ac_prog", so it can be a program name with args.
5001 set dummy $ac_prog; ac_word=$2
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5003 $as_echo_n "checking for $ac_word... " >&6; }
5004 if ${ac_cv_prog_ac_ct_CC_FOR_BUILD+:} false; then :
5005 $as_echo_n "(cached) " >&6
5006 else
5007 if test -n "$ac_ct_CC_FOR_BUILD"; then
5008 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
5009 else
5010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5011 for as_dir in $PATH
5013 IFS=$as_save_IFS
5014 test -z "$as_dir" && as_dir=.
5015 for ac_exec_ext in '' $ac_executable_extensions; do
5016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5017 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_prog"
5018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5019 break 2
5021 done
5022 done
5023 IFS=$as_save_IFS
5027 ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
5028 if test -n "$ac_ct_CC_FOR_BUILD"; then
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC_FOR_BUILD" >&5
5030 $as_echo "$ac_ct_CC_FOR_BUILD" >&6; }
5031 else
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5033 $as_echo "no" >&6; }
5037 test -n "$ac_ct_CC_FOR_BUILD" && break
5038 done
5040 if test "x$ac_ct_CC_FOR_BUILD" = x; then
5041 CC_FOR_BUILD=""
5042 else
5043 case $cross_compiling_build:$ac_tool_warned in
5044 yes:)
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5
5046 $as_echo "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;}
5047 ac_tool_warned=yes ;;
5048 esac
5049 CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
5056 test -z "$CC_FOR_BUILD" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5057 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5058 as_fn_error $? "no acceptable C compiler found in \$PATH
5059 See \`config.log' for more details" "$LINENO" 5; }
5061 # Provide some information about the compiler.
5062 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5063 set X $ac_compile
5064 ac_compiler=$2
5065 for ac_option in --version -v -V -qversion; do
5066 { { ac_try="$ac_compiler $ac_option >&5"
5067 case "(($ac_try" in
5068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5069 *) ac_try_echo=$ac_try;;
5070 esac
5071 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5072 $as_echo "$ac_try_echo"; } >&5
5073 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5074 ac_status=$?
5075 if test -s conftest.err; then
5076 sed '10a\
5077 ... rest of stderr output deleted ...
5078 10q' conftest.err >conftest.er1
5079 cat conftest.er1 >&5
5081 rm -f conftest.er1 conftest.err
5082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5083 test $ac_status = 0; }
5084 done
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5087 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5088 if ${ac_cv_c_compiler_gnu+:} false; then :
5089 $as_echo_n "(cached) " >&6
5090 else
5091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5092 /* end confdefs.h. */
5095 main ()
5097 #ifndef __GNUC__
5098 choke me
5099 #endif
5102 return 0;
5104 _ACEOF
5105 if ac_fn_c_try_compile "$LINENO"; then :
5106 ac_compiler_gnu=yes
5107 else
5108 ac_compiler_gnu=no
5110 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
5111 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5115 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5116 if test $ac_compiler_gnu = yes; then
5117 GCC_FOR_BUILD=yes
5118 else
5119 GCC_FOR_BUILD=
5121 ac_test_CFLAGS=${CFLAGS_FOR_BUILD+set}
5122 ac_save_CFLAGS=$CFLAGS_FOR_BUILD
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD accepts -g" >&5
5124 $as_echo_n "checking whether $CC_FOR_BUILD accepts -g... " >&6; }
5125 if ${ac_cv_build_prog_cc_g+:} false; then :
5126 $as_echo_n "(cached) " >&6
5127 else
5128 ac_save_c_werror_flag=$ac_c_werror_flag
5129 ac_c_werror_flag=yes
5130 ac_cv_build_prog_cc_g=no
5131 CFLAGS_FOR_BUILD="-g"
5132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5133 /* end confdefs.h. */
5136 main ()
5140 return 0;
5142 _ACEOF
5143 if ac_fn_c_try_compile "$LINENO"; then :
5144 ac_cv_build_prog_cc_g=yes
5145 else
5146 CFLAGS_FOR_BUILD=""
5147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5148 /* end confdefs.h. */
5151 main ()
5155 return 0;
5157 _ACEOF
5158 if ac_fn_c_try_compile "$LINENO"; then :
5160 else
5161 ac_c_werror_flag=$ac_save_c_werror_flag
5162 CFLAGS_FOR_BUILD="-g"
5163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5164 /* end confdefs.h. */
5167 main ()
5171 return 0;
5173 _ACEOF
5174 if ac_fn_c_try_compile "$LINENO"; then :
5175 ac_cv_build_prog_cc_g=yes
5177 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
5179 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
5181 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
5182 ac_c_werror_flag=$ac_save_c_werror_flag
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_prog_cc_g" >&5
5185 $as_echo "$ac_cv_build_prog_cc_g" >&6; }
5186 if test "$ac_test_CFLAGS" = set; then
5187 CFLAGS_FOR_BUILD=$ac_save_CFLAGS
5188 elif test $ac_cv_build_prog_cc_g = yes; then
5189 if test "$GCC_FOR_BUILD" = yes; then
5190 CFLAGS_FOR_BUILD="-g -O2"
5191 else
5192 CFLAGS_FOR_BUILD="-g"
5194 else
5195 if test "$GCC_FOR_BUILD" = yes; then
5196 CFLAGS_FOR_BUILD="-O2"
5197 else
5198 CFLAGS_FOR_BUILD=
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC_FOR_BUILD option to accept ISO C89" >&5
5202 $as_echo_n "checking for $CC_FOR_BUILD option to accept ISO C89... " >&6; }
5203 if ${ac_cv_build_prog_cc_c89+:} false; then :
5204 $as_echo_n "(cached) " >&6
5205 else
5206 ac_cv_build_prog_cc_c89=no
5207 ac_save_CC=$CC_FOR_BUILD
5208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5209 /* end confdefs.h. */
5210 #include <stdarg.h>
5211 #include <stdio.h>
5212 struct stat;
5213 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5214 struct buf { int x; };
5215 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5216 static char *e (p, i)
5217 char **p;
5218 int i;
5220 return p[i];
5222 static char *f (char * (*g) (char **, int), char **p, ...)
5224 char *s;
5225 va_list v;
5226 va_start (v,p);
5227 s = g (p, va_arg (v,int));
5228 va_end (v);
5229 return s;
5232 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5233 function prototypes and stuff, but not '\xHH' hex character constants.
5234 These don't provoke an error unfortunately, instead are silently treated
5235 as 'x'. The following induces an error, until -std is added to get
5236 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5237 array size at least. It's necessary to write '\x00'==0 to get something
5238 that's true only with -std. */
5239 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5241 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5242 inside strings and character constants. */
5243 #define FOO(x) 'x'
5244 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5246 int test (int i, double x);
5247 struct s1 {int (*f) (int a);};
5248 struct s2 {int (*f) (double a);};
5249 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5250 int argc;
5251 char **argv;
5253 main ()
5255 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5257 return 0;
5259 _ACEOF
5260 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5261 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5263 CC_FOR_BUILD="$ac_save_CC $ac_arg"
5264 if ac_fn_c_try_compile "$LINENO"; then :
5265 ac_cv_build_prog_cc_c89=$ac_arg
5267 rm -f core conftest.err conftest.$ac_build_objext
5268 test "x$ac_cv_build_prog_cc_c89" != "xno" && break
5269 done
5270 rm -f conftest.$ac_ext
5271 CC_FOR_BUILD=$ac_save_CC
5274 # AC_CACHE_VAL
5275 case "x$ac_cv_build_prog_cc_c89" in
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5278 $as_echo "none needed" >&6; } ;;
5279 xno)
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5281 $as_echo "unsupported" >&6; } ;;
5283 CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_c89"
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_prog_cc_c89" >&5
5285 $as_echo "$ac_cv_build_prog_cc_c89" >&6; } ;;
5286 esac
5287 if test "x$ac_cv_build_prog_cc_c89" != xno; then :
5291 ac_ext=c
5292 ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
5293 ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
5294 ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
5295 ac_compiler_gnu=$ac_cv_build_c_compiler_gnu
5297 ac_ext=c
5298 ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
5299 ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
5300 ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
5301 ac_compiler_gnu=$ac_cv_build_c_compiler_gnu
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD understands -c and -o together" >&5
5303 $as_echo_n "checking whether $CC_FOR_BUILD understands -c and -o together... " >&6; }
5304 if ${am_cv_build_prog_cc_c_o+:} false; then :
5305 $as_echo_n "(cached) " >&6
5306 else
5307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5308 /* end confdefs.h. */
5311 main ()
5315 return 0;
5317 _ACEOF
5318 # Make sure it works both with $CC and with simple cc.
5319 # Following AC_PROG_CC_C_O, we do the test twice because some
5320 # compilers refuse to overwrite an existing .o file with -o,
5321 # though they will create one.
5322 am_cv_build_prog_cc_c_o=yes
5323 for am_i in 1 2; do
5324 if { echo "$as_me:$LINENO: $CC_FOR_BUILD -c conftest.$ac_ext -o conftest2.$ac_build_objext" >&5
5325 ($CC_FOR_BUILD -c conftest.$ac_ext -o conftest2.$ac_build_objext) >&5 2>&5
5326 ac_status=$?
5327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5328 (exit $ac_status); } \
5329 && test -f conftest2.$ac_build_objext; then
5330 : OK
5331 else
5332 am_cv_build_prog_cc_c_o=no
5333 break
5335 done
5336 rm -f core conftest*
5337 unset am_i
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_build_prog_cc_c_o" >&5
5340 $as_echo "$am_cv_build_prog_cc_c_o" >&6; }
5341 if test "$am_cv_build_prog_cc_c_o" != yes; then
5342 # Losing compiler, so override with the script.
5343 # FIXME: It is wrong to rewrite CC.
5344 # But if we don't then we get into trouble of one sort or another.
5345 # A longer-term fix would be to have automake use am__CC in this case,
5346 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5347 CC_FOR_BUILD="$am_aux_dir/compile $CC_FOR_BUILD"
5349 ac_ext=c
5350 ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
5351 ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
5352 ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
5353 ac_compiler_gnu=$ac_cv_build_c_compiler_gnu
5356 depcc="$CC_FOR_BUILD" am_compiler_list=
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5359 $as_echo_n "checking dependency style of $depcc... " >&6; }
5360 if ${am_cv_build_CC_dependencies_compiler_type+:} false; then :
5361 $as_echo_n "(cached) " >&6
5362 else
5363 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5364 # We make a subdir and do the tests there. Otherwise we can end up
5365 # making bogus files that we don't know about and never remove. For
5366 # instance it was reported that on HP-UX the gcc test will end up
5367 # making a dummy file named 'D' -- because '-MD' means "put the output
5368 # in D".
5369 rm -rf conftest.dir
5370 mkdir conftest.dir
5371 # Copy depcomp to subdir because otherwise we won't find it if we're
5372 # using a relative directory.
5373 cp "$am_depcomp" conftest.dir
5374 cd conftest.dir
5375 # We will build objects and dependencies in a subdirectory because
5376 # it helps to detect inapplicable dependency modes. For instance
5377 # both Tru64's cc and ICC support -MD to output dependencies as a
5378 # side effect of compilation, but ICC will put the dependencies in
5379 # the current directory while Tru64 will put them in the object
5380 # directory.
5381 mkdir sub
5383 am_cv_build_CC_dependencies_compiler_type=none
5384 if test "$am_compiler_list" = ""; then
5385 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5387 am__universal=false
5388 case " $depcc " in #(
5389 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5390 esac
5392 for depmode in $am_compiler_list; do
5393 # Setup a source with many dependencies, because some compilers
5394 # like to wrap large dependency lists on column 80 (with \), and
5395 # we should not choose a depcomp mode which is confused by this.
5397 # We need to recreate these files for each test, as the compiler may
5398 # overwrite some of them when testing with obscure command lines.
5399 # This happens at least with the AIX C compiler.
5400 : > sub/conftest.c
5401 for i in 1 2 3 4 5 6; do
5402 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5403 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5404 # Solaris 10 /bin/sh.
5405 echo '/* dummy */' > sub/conftst$i.h
5406 done
5407 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5409 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5410 # mode. It turns out that the SunPro C++ compiler does not properly
5411 # handle '-M -o', and we need to detect this. Also, some Intel
5412 # versions had trouble with output in subdirs.
5413 am__obj=sub/conftest.${BUILD_OBJEXT-o}
5414 am__minus_obj="-o $am__obj"
5415 case $depmode in
5416 gcc)
5417 # This depmode causes a compiler race in universal mode.
5418 test "$am__universal" = false || continue
5420 nosideeffect)
5421 # After this tag, mechanisms are not by side-effect, so they'll
5422 # only be used when explicitly requested.
5423 if test "x$enable_dependency_tracking" = xyes; then
5424 continue
5425 else
5426 break
5429 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5430 # This compiler won't grok '-c -o', but also, the minuso test has
5431 # not run yet. These depmodes are late enough in the game, and
5432 # so weak that their functioning should not be impacted.
5433 am__obj=conftest.${BUILD_OBJEXT-o}
5434 am__minus_obj=
5436 none) break ;;
5437 esac
5438 if depmode=$depmode \
5439 source=sub/conftest.c object=$am__obj \
5440 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5441 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5442 >/dev/null 2>conftest.err &&
5443 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5444 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5445 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5446 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5447 # icc doesn't choke on unknown options, it will just issue warnings
5448 # or remarks (even with -Werror). So we grep stderr for any message
5449 # that says an option was ignored or not supported.
5450 # When given -MP, icc 7.0 and 7.1 complain thusly:
5451 # icc: Command line warning: ignoring option '-M'; no argument required
5452 # The diagnosis changed in icc 8.0:
5453 # icc: Command line remark: option '-MP' not supported
5454 if (grep 'ignoring option' conftest.err ||
5455 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5456 am_cv_build_CC_dependencies_compiler_type=$depmode
5457 break
5460 done
5462 cd ..
5463 rm -rf conftest.dir
5464 else
5465 am_cv_build_CC_dependencies_compiler_type=none
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_build_CC_dependencies_compiler_type" >&5
5470 $as_echo "$am_cv_build_CC_dependencies_compiler_type" >&6; }
5471 CCDEPMODE=depmode=$am_cv_build_CC_dependencies_compiler_type
5474 test "x$enable_dependency_tracking" != xno \
5475 && test "$am_cv_build_CC_dependencies_compiler_type" = gcc3; then
5476 am__fastdepCC_TRUE=
5477 am__fastdepCC_FALSE='#'
5478 else
5479 am__fastdepCC_TRUE='#'
5480 am__fastdepCC_FALSE=
5485 if test ${was_set_ac_cv_c_compiler_gnu}; then :
5486 ac_cv_c_compiler_gnu=saved_ac_cv_c_compiler_gnu
5489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5490 /* end confdefs.h. */
5493 main ()
5497 return 0;
5499 _ACEOF
5500 ac_clean_files_save=$ac_clean_files
5501 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5502 # Try to create an executable without -o first, disregard a.out.
5503 # It will help us diagnose broken compilers, and finding out an intuition
5504 # of exeext.
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5506 $as_echo_n "checking whether the C compiler works... " >&6; }
5507 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5509 # The possible output files:
5510 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5512 ac_rmfiles=
5513 for ac_file in $ac_files
5515 case $ac_file in
5516 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5517 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5518 esac
5519 done
5520 rm -f $ac_rmfiles
5522 if { { ac_try="$ac_link_default"
5523 case "(($ac_try" in
5524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5525 *) ac_try_echo=$ac_try;;
5526 esac
5527 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5528 $as_echo "$ac_try_echo"; } >&5
5529 (eval "$ac_link_default") 2>&5
5530 ac_status=$?
5531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5532 test $ac_status = 0; }; then :
5533 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5534 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5535 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5536 # so that the user can short-circuit this test for compilers unknown to
5537 # Autoconf.
5538 for ac_file in $ac_files ''
5540 test -f "$ac_file" || continue
5541 case $ac_file in
5542 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5544 [ab].out )
5545 # We found the default executable, but exeext='' is most
5546 # certainly right.
5547 break;;
5548 *.* )
5549 if test "${ac_cv_build_exeext+set}" = set && test "$ac_cv_build_exeext" != no;
5550 then :; else
5551 ac_cv_build_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5553 # We set ac_cv_exeext here because the later test for it is not
5554 # safe: cross compilers may not add the suffix if given an `-o'
5555 # argument, so we may need to know it at that point already.
5556 # Even if this section looks crufty: it has the advantage of
5557 # actually working.
5558 break;;
5560 break;;
5561 esac
5562 done
5563 test "$ac_cv_build_exeext" = no && ac_cv_build_exeext=
5565 else
5566 ac_file=''
5568 if test -z "$ac_file"; then :
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5570 $as_echo "no" >&6; }
5571 $as_echo "$as_me: failed program was:" >&5
5572 sed 's/^/| /' conftest.$ac_ext >&5
5574 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5575 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5576 as_fn_error 77 "C compiler cannot create executables
5577 See \`config.log' for more details" "$LINENO" 5; }
5578 else
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5580 $as_echo "yes" >&6; }
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5583 $as_echo_n "checking for C compiler default output file name... " >&6; }
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5585 $as_echo "$ac_file" >&6; }
5586 ac_build_exeext=$ac_cv_build_exeext
5588 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_build_exeext b.out
5589 ac_clean_files=$ac_clean_files_save
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5591 $as_echo_n "checking for suffix of executables... " >&6; }
5592 if { { ac_try="$ac_link"
5593 case "(($ac_try" in
5594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5595 *) ac_try_echo=$ac_try;;
5596 esac
5597 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5598 $as_echo "$ac_try_echo"; } >&5
5599 (eval "$ac_link") 2>&5
5600 ac_status=$?
5601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5602 test $ac_status = 0; }; then :
5603 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5604 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5605 # work properly (i.e., refer to `conftest.exe'), while it won't with
5606 # `rm'.
5607 for ac_file in conftest.exe conftest conftest.*; do
5608 test -f "$ac_file" || continue
5609 case $ac_file in
5610 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5611 *.* ) ac_cv_build_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5612 break;;
5613 * ) break;;
5614 esac
5615 done
5616 else
5617 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5618 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5619 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
5620 See \`config.log' for more details" "$LINENO" 5; }
5622 rm -f conftest conftest$ac_cv_build_exeext
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_exeext" >&5
5624 $as_echo "$ac_cv_build_exeext" >&6; }
5626 rm -f conftest.$ac_ext
5627 BUILD_EXEEXT=$ac_cv_build_exeext
5628 ac_build_exeext=$BUILD_EXEEXT
5629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5630 /* end confdefs.h. */
5631 #include <stdio.h>
5633 main ()
5635 FILE *f = fopen ("conftest.out", "w");
5636 return ferror (f) || fclose (f) != 0;
5639 return 0;
5641 _ACEOF
5642 ac_clean_files="$ac_clean_files conftest.out"
5643 # Check that the compiler produces executables we can run. If not, either
5644 # the compiler is broken, or we cross compile.
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5646 $as_echo_n "checking whether we are cross compiling... " >&6; }
5647 if test "$cross_compiling_build" != yes; then
5648 { { ac_try="$ac_link"
5649 case "(($ac_try" in
5650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5651 *) ac_try_echo=$ac_try;;
5652 esac
5653 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5654 $as_echo "$ac_try_echo"; } >&5
5655 (eval "$ac_link") 2>&5
5656 ac_status=$?
5657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5658 test $ac_status = 0; }
5659 if { ac_try='./conftest$ac_cv_build_exeext'
5660 { { case "(($ac_try" in
5661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5662 *) ac_try_echo=$ac_try;;
5663 esac
5664 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5665 $as_echo "$ac_try_echo"; } >&5
5666 (eval "$ac_try") 2>&5
5667 ac_status=$?
5668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5669 test $ac_status = 0; }; }; then
5670 cross_compiling_build=no
5671 else
5672 if test "$cross_compiling_build" = maybe; then
5673 cross_compiling_build=yes
5674 else
5675 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5676 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5677 as_fn_error $? "cannot run C compiled programs.
5678 If you meant to cross compile, use \`--build'.
5679 See \`config.log' for more details" "$LINENO" 5; }
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling_build" >&5
5684 $as_echo "$cross_compiling_build" >&6; }
5686 rm -f conftest.$ac_ext conftest$ac_cv_build_exeext conftest.out
5687 ac_clean_files=$ac_clean_files_save
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5690 $as_echo_n "checking for suffix of object files... " >&6; }
5691 if ${ac_cv_build_objext+:} false; then :
5692 $as_echo_n "(cached) " >&6
5693 else
5694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5695 /* end confdefs.h. */
5698 main ()
5702 return 0;
5704 _ACEOF
5705 rm -f conftest.o conftest.obj
5706 if { { ac_try="$ac_compile"
5707 case "(($ac_try" in
5708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5709 *) ac_try_echo=$ac_try;;
5710 esac
5711 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5712 $as_echo "$ac_try_echo"; } >&5
5713 (eval "$ac_compile") 2>&5
5714 ac_status=$?
5715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5716 test $ac_status = 0; }; then :
5717 for ac_file in conftest.o conftest.obj conftest.*; do
5718 test -f "$ac_file" || continue;
5719 case $ac_file in
5720 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5721 *) ac_cv_build_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5722 break;;
5723 esac
5724 done
5725 else
5726 $as_echo "$as_me: failed program was:" >&5
5727 sed 's/^/| /' conftest.$ac_ext >&5
5729 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5730 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5731 as_fn_error $? "cannot compute suffix of object files: cannot compile
5732 See \`config.log' for more details" "$LINENO" 5; }
5734 rm -f conftest.$ac_cv_build_objext conftest.$ac_ext
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_objext" >&5
5737 $as_echo "$ac_cv_build_objext" >&6; }
5738 BUILD_OBJEXT=$ac_cv_build_objext
5739 ac_build_objext=$BUILD_OBJEXT
5741 ac_ext=c
5742 ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
5743 ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
5744 ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
5745 ac_compiler_gnu=$ac_cv_build_c_compiler_gnu
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5747 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5748 # On Suns, sometimes $CPP names a directory.
5749 if test -n "$CPP_FOR_BUILD" && test -d "$CPP_FOR_BUILD"; then
5750 CPP_FOR_BUILD=
5752 if test -z "$CPP_FOR_BUILD"; then
5753 if ${ac_cv_build_prog_CPP+:} false; then :
5754 $as_echo_n "(cached) " >&6
5755 else
5756 # Double quotes because CPP needs to be expanded
5757 for CPP_FOR_BUILD in "$CC_FOR_BUILD -E" "$CC_FOR_BUILD -E -traditional-cpp" "/lib/cpp"
5759 ac_preproc_ok=false
5760 for ac_c_preproc_warn_flag in '' yes
5762 # Use a header file that comes with gcc, so configuring glibc
5763 # with a fresh cross-compiler works.
5764 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5765 # <limits.h> exists even on freestanding compilers.
5766 # On the NeXT, cc -E runs the code through the compiler's parser,
5767 # not just through cpp. "Syntax error" is here to catch this case.
5768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5769 /* end confdefs.h. */
5770 #ifdef __STDC__
5771 # include <limits.h>
5772 #else
5773 # include <assert.h>
5774 #endif
5775 Syntax error
5776 _ACEOF
5777 if ac_fn_c_try_cpp "$LINENO"; then :
5779 else
5780 # Broken: fails on valid input.
5781 continue
5783 rm -f conftest.err conftest.i conftest.$ac_ext
5785 # OK, works on sane cases. Now check whether nonexistent headers
5786 # can be detected and how.
5787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5788 /* end confdefs.h. */
5789 #include <ac_nonexistent.h>
5790 _ACEOF
5791 if ac_fn_c_try_cpp "$LINENO"; then :
5792 # Broken: success on invalid input.
5793 continue
5794 else
5795 # Passes both tests.
5796 ac_preproc_ok=:
5797 break
5799 rm -f conftest.err conftest.i conftest.$ac_ext
5801 done
5802 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5803 rm -f conftest.i conftest.err conftest.$ac_ext
5804 if $ac_preproc_ok; then :
5805 break
5808 done
5809 ac_cv_build_prog_CPP=$CPP_FOR_BUILD
5812 CPP_FOR_BUILD=$ac_cv_build_prog_CPP
5813 else
5814 ac_cv_build_prog_CPP=$CPP_FOR_BUILD
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP_FOR_BUILD" >&5
5817 $as_echo "$CPP_FOR_BUILD" >&6; }
5818 ac_preproc_ok=false
5819 for ac_c_preproc_warn_flag in '' yes
5821 # Use a header file that comes with gcc, so configuring glibc
5822 # with a fresh cross-compiler works.
5823 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5824 # <limits.h> exists even on freestanding compilers.
5825 # On the NeXT, cc -E runs the code through the compiler's parser,
5826 # not just through cpp. "Syntax error" is here to catch this case.
5827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5828 /* end confdefs.h. */
5829 #ifdef __STDC__
5830 # include <limits.h>
5831 #else
5832 # include <assert.h>
5833 #endif
5834 Syntax error
5835 _ACEOF
5836 if ac_fn_c_try_cpp "$LINENO"; then :
5838 else
5839 # Broken: fails on valid input.
5840 continue
5842 rm -f conftest.err conftest.i conftest.$ac_ext
5844 # OK, works on sane cases. Now check whether nonexistent headers
5845 # can be detected and how.
5846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5847 /* end confdefs.h. */
5848 #include <ac_nonexistent.h>
5849 _ACEOF
5850 if ac_fn_c_try_cpp "$LINENO"; then :
5851 # Broken: success on invalid input.
5852 continue
5853 else
5854 # Passes both tests.
5855 ac_preproc_ok=:
5856 break
5858 rm -f conftest.err conftest.i conftest.$ac_ext
5860 done
5861 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5862 rm -f conftest.i conftest.err conftest.$ac_ext
5863 if $ac_preproc_ok; then :
5865 else
5866 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5867 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5868 as_fn_error $? "C preprocessor \"$CPP_FOR_BUILD\" fails sanity check
5869 See \`config.log' for more details" "$LINENO" 5; }
5872 ac_ext=c
5873 ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
5874 ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
5875 ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
5876 ac_compiler_gnu=$ac_cv_build_c_compiler_gnu
5880 ac_ext=c
5881 ac_cpp='$CPP $CPPFLAGS'
5882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5888 case $ac_cv_prog_cc_stdc in #(
5889 no) :
5890 ac_cv_build_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
5891 *) :
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
5893 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
5894 if ${ac_cv_build_prog_cc_c99+:} false; then :
5895 $as_echo_n "(cached) " >&6
5896 else
5897 ac_cv_build_prog_cc_c99=no
5898 ac_save_CC=$CC
5899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5900 /* end confdefs.h. */
5901 #include <stdarg.h>
5902 #include <stdbool.h>
5903 #include <stdlib.h>
5904 #include <wchar.h>
5905 #include <stdio.h>
5907 // Check varargs macros. These examples are taken from C99 6.10.3.5.
5908 #define debug(...) fprintf (stderr, __VA_ARGS__)
5909 #define showlist(...) puts (#__VA_ARGS__)
5910 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5911 static void
5912 test_varargs_macros (void)
5914 int x = 1234;
5915 int y = 5678;
5916 debug ("Flag");
5917 debug ("X = %d\n", x);
5918 showlist (The first, second, and third items.);
5919 report (x>y, "x is %d but y is %d", x, y);
5922 // Check long long types.
5923 #define BIG64 18446744073709551615ull
5924 #define BIG32 4294967295ul
5925 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5926 #if !BIG_OK
5927 your preprocessor is broken;
5928 #endif
5929 #if BIG_OK
5930 #else
5931 your preprocessor is broken;
5932 #endif
5933 static long long int bignum = -9223372036854775807LL;
5934 static unsigned long long int ubignum = BIG64;
5936 struct incomplete_array
5938 int datasize;
5939 double data[];
5942 struct named_init {
5943 int number;
5944 const wchar_t *name;
5945 double average;
5948 typedef const char *ccp;
5950 static inline int
5951 test_restrict (ccp restrict text)
5953 // See if C++-style comments work.
5954 // Iterate through items via the restricted pointer.
5955 // Also check for declarations in for loops.
5956 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5957 continue;
5958 return 0;
5961 // Check varargs and va_copy.
5962 static void
5963 test_varargs (const char *format, ...)
5965 va_list args;
5966 va_start (args, format);
5967 va_list args_copy;
5968 va_copy (args_copy, args);
5970 const char *str;
5971 int number;
5972 float fnumber;
5974 while (*format)
5976 switch (*format++)
5978 case 's': // string
5979 str = va_arg (args_copy, const char *);
5980 break;
5981 case 'd': // int
5982 number = va_arg (args_copy, int);
5983 break;
5984 case 'f': // float
5985 fnumber = va_arg (args_copy, double);
5986 break;
5987 default:
5988 break;
5991 va_end (args_copy);
5992 va_end (args);
5996 main ()
5999 // Check bool.
6000 _Bool success = false;
6002 // Check restrict.
6003 if (test_restrict ("String literal") == 0)
6004 success = true;
6005 char *restrict newvar = "Another string";
6007 // Check varargs.
6008 test_varargs ("s, d' f .", "string", 65, 34.234);
6009 test_varargs_macros ();
6011 // Check flexible array members.
6012 struct incomplete_array *ia =
6013 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6014 ia->datasize = 10;
6015 for (int i = 0; i < ia->datasize; ++i)
6016 ia->data[i] = i * 1.234;
6018 // Check named initializers.
6019 struct named_init ni = {
6020 .number = 34,
6021 .name = L"Test wide string",
6022 .average = 543.34343,
6025 ni.number = 58;
6027 int dynamic_array[ni.number];
6028 dynamic_array[ni.number - 1] = 543;
6030 // work around unused variable warnings
6031 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6032 || dynamic_array[ni.number - 1] != 543);
6035 return 0;
6037 _ACEOF
6038 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
6040 CC="$ac_save_CC $ac_arg"
6041 if ac_fn_c_try_compile "$LINENO"; then :
6042 ac_cv_build_prog_cc_c99=$ac_arg
6044 rm -f core conftest.err conftest.$ac_objext
6045 test "x$ac_cv_build_prog_cc_c99" != "xno" && break
6046 done
6047 rm -f conftest.$ac_ext
6048 CC=$ac_save_CC
6051 # AC_CACHE_VAL
6052 case "x$ac_cv_build_prog_cc_c99" in
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6055 $as_echo "none needed" >&6; } ;;
6056 xno)
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6058 $as_echo "unsupported" >&6; } ;;
6060 CC="$CC $ac_cv_build_prog_cc_c99"
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_prog_cc_c99" >&5
6062 $as_echo "$ac_cv_build_prog_cc_c99" >&6; } ;;
6063 esac
6064 if test "x$ac_cv_build_prog_cc_c99" != xno; then :
6065 ac_cv_prog_cc_stdc=$ac_cv_build_prog_cc_c99
6066 else
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6068 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6069 if ${ac_cv_prog_cc_c89+:} false; then :
6070 $as_echo_n "(cached) " >&6
6071 else
6072 ac_cv_prog_cc_c89=no
6073 ac_save_CC=$CC
6074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6075 /* end confdefs.h. */
6076 #include <stdarg.h>
6077 #include <stdio.h>
6078 struct stat;
6079 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6080 struct buf { int x; };
6081 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6082 static char *e (p, i)
6083 char **p;
6084 int i;
6086 return p[i];
6088 static char *f (char * (*g) (char **, int), char **p, ...)
6090 char *s;
6091 va_list v;
6092 va_start (v,p);
6093 s = g (p, va_arg (v,int));
6094 va_end (v);
6095 return s;
6098 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6099 function prototypes and stuff, but not '\xHH' hex character constants.
6100 These don't provoke an error unfortunately, instead are silently treated
6101 as 'x'. The following induces an error, until -std is added to get
6102 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6103 array size at least. It's necessary to write '\x00'==0 to get something
6104 that's true only with -std. */
6105 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6107 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6108 inside strings and character constants. */
6109 #define FOO(x) 'x'
6110 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6112 int test (int i, double x);
6113 struct s1 {int (*f) (int a);};
6114 struct s2 {int (*f) (double a);};
6115 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6116 int argc;
6117 char **argv;
6119 main ()
6121 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6123 return 0;
6125 _ACEOF
6126 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6127 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6129 CC="$ac_save_CC $ac_arg"
6130 if ac_fn_c_try_compile "$LINENO"; then :
6131 ac_cv_prog_cc_c89=$ac_arg
6133 rm -f core conftest.err conftest.$ac_objext
6134 test "x$ac_cv_prog_cc_c89" != "xno" && break
6135 done
6136 rm -f conftest.$ac_ext
6137 CC=$ac_save_CC
6140 # AC_CACHE_VAL
6141 case "x$ac_cv_prog_cc_c89" in
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6144 $as_echo "none needed" >&6; } ;;
6145 xno)
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6147 $as_echo "unsupported" >&6; } ;;
6149 CC="$CC $ac_cv_prog_cc_c89"
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6151 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6152 esac
6153 if test "x$ac_cv_prog_cc_c89" != xno; then :
6154 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6155 else
6156 ac_cv_prog_cc_stdc=no
6161 esac
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
6163 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
6164 if ${ac_cv_prog_cc_stdc+:} false; then :
6165 $as_echo_n "(cached) " >&6
6168 case $ac_cv_prog_cc_stdc in #(
6169 no) :
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6171 $as_echo "unsupported" >&6; } ;; #(
6172 '') :
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6174 $as_echo "none needed" >&6; } ;; #(
6175 *) :
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
6177 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6178 esac
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6182 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6183 set x ${MAKE-make}
6184 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6185 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
6186 $as_echo_n "(cached) " >&6
6187 else
6188 cat >conftest.make <<\_ACEOF
6189 SHELL = /bin/sh
6190 all:
6191 @echo '@@@%%%=$(MAKE)=@@@%%%'
6192 _ACEOF
6193 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6194 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6195 *@@@%%%=?*=@@@%%%*)
6196 eval ac_cv_prog_make_${ac_make}_set=yes;;
6198 eval ac_cv_prog_make_${ac_make}_set=no;;
6199 esac
6200 rm -f conftest.make
6202 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6204 $as_echo "yes" >&6; }
6205 SET_MAKE=
6206 else
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6208 $as_echo "no" >&6; }
6209 SET_MAKE="MAKE=${MAKE-make}"
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6213 $as_echo_n "checking whether ln -s works... " >&6; }
6214 LN_S=$as_ln_s
6215 if test "$LN_S" = "ln -s"; then
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6217 $as_echo "yes" >&6; }
6218 else
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6220 $as_echo "no, using $LN_S" >&6; }
6223 for ac_prog in gawk mawk nawk awk
6225 # Extract the first word of "$ac_prog", so it can be a program name with args.
6226 set dummy $ac_prog; ac_word=$2
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6228 $as_echo_n "checking for $ac_word... " >&6; }
6229 if ${ac_cv_prog_AWK+:} false; then :
6230 $as_echo_n "(cached) " >&6
6231 else
6232 if test -n "$AWK"; then
6233 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6234 else
6235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6236 for as_dir in $PATH
6238 IFS=$as_save_IFS
6239 test -z "$as_dir" && as_dir=.
6240 for ac_exec_ext in '' $ac_executable_extensions; do
6241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6242 ac_cv_prog_AWK="$ac_prog"
6243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6244 break 2
6246 done
6247 done
6248 IFS=$as_save_IFS
6252 AWK=$ac_cv_prog_AWK
6253 if test -n "$AWK"; then
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6255 $as_echo "$AWK" >&6; }
6256 else
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6258 $as_echo "no" >&6; }
6262 test -n "$AWK" && break
6263 done
6265 case `pwd` in
6266 *\ * | *\ *)
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6268 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6269 esac
6273 macro_version='2.4.6'
6274 macro_revision='2.4.6'
6288 ltmain=$ac_aux_dir/ltmain.sh
6290 # Backslashify metacharacters that are still active within
6291 # double-quoted strings.
6292 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6294 # Same as above, but do not quote variable references.
6295 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6297 # Sed substitution to delay expansion of an escaped shell variable in a
6298 # double_quote_subst'ed string.
6299 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6301 # Sed substitution to delay expansion of an escaped single quote.
6302 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6304 # Sed substitution to avoid accidental globbing in evaled expressions
6305 no_glob_subst='s/\*/\\\*/g'
6307 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6308 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6309 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6312 $as_echo_n "checking how to print strings... " >&6; }
6313 # Test print first, because it will be a builtin if present.
6314 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6315 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6316 ECHO='print -r --'
6317 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6318 ECHO='printf %s\n'
6319 else
6320 # Use this function as a fallback that always works.
6321 func_fallback_echo ()
6323 eval 'cat <<_LTECHO_EOF
6325 _LTECHO_EOF'
6327 ECHO='func_fallback_echo'
6330 # func_echo_all arg...
6331 # Invoke $ECHO with all args, space-separated.
6332 func_echo_all ()
6334 $ECHO ""
6337 case $ECHO in
6338 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6339 $as_echo "printf" >&6; } ;;
6340 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6341 $as_echo "print -r" >&6; } ;;
6342 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6343 $as_echo "cat" >&6; } ;;
6344 esac
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6360 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6361 if ${ac_cv_path_SED+:} false; then :
6362 $as_echo_n "(cached) " >&6
6363 else
6364 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6365 for ac_i in 1 2 3 4 5 6 7; do
6366 ac_script="$ac_script$as_nl$ac_script"
6367 done
6368 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6369 { ac_script=; unset ac_script;}
6370 if test -z "$SED"; then
6371 ac_path_SED_found=false
6372 # Loop through the user's path and test for each of PROGNAME-LIST
6373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6374 for as_dir in $PATH
6376 IFS=$as_save_IFS
6377 test -z "$as_dir" && as_dir=.
6378 for ac_prog in sed gsed; do
6379 for ac_exec_ext in '' $ac_executable_extensions; do
6380 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6381 as_fn_executable_p "$ac_path_SED" || continue
6382 # Check for GNU ac_path_SED and select it if it is found.
6383 # Check for GNU $ac_path_SED
6384 case `"$ac_path_SED" --version 2>&1` in
6385 *GNU*)
6386 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6388 ac_count=0
6389 $as_echo_n 0123456789 >"conftest.in"
6390 while :
6392 cat "conftest.in" "conftest.in" >"conftest.tmp"
6393 mv "conftest.tmp" "conftest.in"
6394 cp "conftest.in" "conftest.nl"
6395 $as_echo '' >> "conftest.nl"
6396 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6397 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6398 as_fn_arith $ac_count + 1 && ac_count=$as_val
6399 if test $ac_count -gt ${ac_path_SED_max-0}; then
6400 # Best one so far, save it but keep looking for a better one
6401 ac_cv_path_SED="$ac_path_SED"
6402 ac_path_SED_max=$ac_count
6404 # 10*(2^10) chars as input seems more than enough
6405 test $ac_count -gt 10 && break
6406 done
6407 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6408 esac
6410 $ac_path_SED_found && break 3
6411 done
6412 done
6413 done
6414 IFS=$as_save_IFS
6415 if test -z "$ac_cv_path_SED"; then
6416 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6418 else
6419 ac_cv_path_SED=$SED
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6424 $as_echo "$ac_cv_path_SED" >&6; }
6425 SED="$ac_cv_path_SED"
6426 rm -f conftest.sed
6428 test -z "$SED" && SED=sed
6429 Xsed="$SED -e 1s/^X//"
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6442 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6443 if ${ac_cv_path_GREP+:} false; then :
6444 $as_echo_n "(cached) " >&6
6445 else
6446 if test -z "$GREP"; then
6447 ac_path_GREP_found=false
6448 # Loop through the user's path and test for each of PROGNAME-LIST
6449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6450 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6452 IFS=$as_save_IFS
6453 test -z "$as_dir" && as_dir=.
6454 for ac_prog in grep ggrep; do
6455 for ac_exec_ext in '' $ac_executable_extensions; do
6456 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6457 as_fn_executable_p "$ac_path_GREP" || continue
6458 # Check for GNU ac_path_GREP and select it if it is found.
6459 # Check for GNU $ac_path_GREP
6460 case `"$ac_path_GREP" --version 2>&1` in
6461 *GNU*)
6462 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6464 ac_count=0
6465 $as_echo_n 0123456789 >"conftest.in"
6466 while :
6468 cat "conftest.in" "conftest.in" >"conftest.tmp"
6469 mv "conftest.tmp" "conftest.in"
6470 cp "conftest.in" "conftest.nl"
6471 $as_echo 'GREP' >> "conftest.nl"
6472 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6473 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6474 as_fn_arith $ac_count + 1 && ac_count=$as_val
6475 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6476 # Best one so far, save it but keep looking for a better one
6477 ac_cv_path_GREP="$ac_path_GREP"
6478 ac_path_GREP_max=$ac_count
6480 # 10*(2^10) chars as input seems more than enough
6481 test $ac_count -gt 10 && break
6482 done
6483 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6484 esac
6486 $ac_path_GREP_found && break 3
6487 done
6488 done
6489 done
6490 IFS=$as_save_IFS
6491 if test -z "$ac_cv_path_GREP"; then
6492 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6494 else
6495 ac_cv_path_GREP=$GREP
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6500 $as_echo "$ac_cv_path_GREP" >&6; }
6501 GREP="$ac_cv_path_GREP"
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6505 $as_echo_n "checking for egrep... " >&6; }
6506 if ${ac_cv_path_EGREP+:} false; then :
6507 $as_echo_n "(cached) " >&6
6508 else
6509 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6510 then ac_cv_path_EGREP="$GREP -E"
6511 else
6512 if test -z "$EGREP"; then
6513 ac_path_EGREP_found=false
6514 # Loop through the user's path and test for each of PROGNAME-LIST
6515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6516 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6518 IFS=$as_save_IFS
6519 test -z "$as_dir" && as_dir=.
6520 for ac_prog in egrep; do
6521 for ac_exec_ext in '' $ac_executable_extensions; do
6522 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6523 as_fn_executable_p "$ac_path_EGREP" || continue
6524 # Check for GNU ac_path_EGREP and select it if it is found.
6525 # Check for GNU $ac_path_EGREP
6526 case `"$ac_path_EGREP" --version 2>&1` in
6527 *GNU*)
6528 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6530 ac_count=0
6531 $as_echo_n 0123456789 >"conftest.in"
6532 while :
6534 cat "conftest.in" "conftest.in" >"conftest.tmp"
6535 mv "conftest.tmp" "conftest.in"
6536 cp "conftest.in" "conftest.nl"
6537 $as_echo 'EGREP' >> "conftest.nl"
6538 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6539 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6540 as_fn_arith $ac_count + 1 && ac_count=$as_val
6541 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6542 # Best one so far, save it but keep looking for a better one
6543 ac_cv_path_EGREP="$ac_path_EGREP"
6544 ac_path_EGREP_max=$ac_count
6546 # 10*(2^10) chars as input seems more than enough
6547 test $ac_count -gt 10 && break
6548 done
6549 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6550 esac
6552 $ac_path_EGREP_found && break 3
6553 done
6554 done
6555 done
6556 IFS=$as_save_IFS
6557 if test -z "$ac_cv_path_EGREP"; then
6558 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6560 else
6561 ac_cv_path_EGREP=$EGREP
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6567 $as_echo "$ac_cv_path_EGREP" >&6; }
6568 EGREP="$ac_cv_path_EGREP"
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6572 $as_echo_n "checking for fgrep... " >&6; }
6573 if ${ac_cv_path_FGREP+:} false; then :
6574 $as_echo_n "(cached) " >&6
6575 else
6576 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6577 then ac_cv_path_FGREP="$GREP -F"
6578 else
6579 if test -z "$FGREP"; then
6580 ac_path_FGREP_found=false
6581 # Loop through the user's path and test for each of PROGNAME-LIST
6582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6583 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6585 IFS=$as_save_IFS
6586 test -z "$as_dir" && as_dir=.
6587 for ac_prog in fgrep; do
6588 for ac_exec_ext in '' $ac_executable_extensions; do
6589 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6590 as_fn_executable_p "$ac_path_FGREP" || continue
6591 # Check for GNU ac_path_FGREP and select it if it is found.
6592 # Check for GNU $ac_path_FGREP
6593 case `"$ac_path_FGREP" --version 2>&1` in
6594 *GNU*)
6595 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6597 ac_count=0
6598 $as_echo_n 0123456789 >"conftest.in"
6599 while :
6601 cat "conftest.in" "conftest.in" >"conftest.tmp"
6602 mv "conftest.tmp" "conftest.in"
6603 cp "conftest.in" "conftest.nl"
6604 $as_echo 'FGREP' >> "conftest.nl"
6605 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6606 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6607 as_fn_arith $ac_count + 1 && ac_count=$as_val
6608 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6609 # Best one so far, save it but keep looking for a better one
6610 ac_cv_path_FGREP="$ac_path_FGREP"
6611 ac_path_FGREP_max=$ac_count
6613 # 10*(2^10) chars as input seems more than enough
6614 test $ac_count -gt 10 && break
6615 done
6616 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6617 esac
6619 $ac_path_FGREP_found && break 3
6620 done
6621 done
6622 done
6623 IFS=$as_save_IFS
6624 if test -z "$ac_cv_path_FGREP"; then
6625 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6627 else
6628 ac_cv_path_FGREP=$FGREP
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6634 $as_echo "$ac_cv_path_FGREP" >&6; }
6635 FGREP="$ac_cv_path_FGREP"
6638 test -z "$GREP" && GREP=grep
6658 # Check whether --with-gnu-ld was given.
6659 if test "${with_gnu_ld+set}" = set; then :
6660 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
6661 else
6662 with_gnu_ld=no
6665 ac_prog=ld
6666 if test yes = "$GCC"; then
6667 # Check if gcc -print-prog-name=ld gives a path.
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6669 $as_echo_n "checking for ld used by $CC... " >&6; }
6670 case $host in
6671 *-*-mingw*)
6672 # gcc leaves a trailing carriage return, which upsets mingw
6673 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6675 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6676 esac
6677 case $ac_prog in
6678 # Accept absolute paths.
6679 [\\/]* | ?:[\\/]*)
6680 re_direlt='/[^/][^/]*/\.\./'
6681 # Canonicalize the pathname of ld
6682 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6683 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6684 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6685 done
6686 test -z "$LD" && LD=$ac_prog
6689 # If it fails, then pretend we aren't using GCC.
6690 ac_prog=ld
6693 # If it is relative, then search for the first ld in PATH.
6694 with_gnu_ld=unknown
6696 esac
6697 elif test yes = "$with_gnu_ld"; then
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6699 $as_echo_n "checking for GNU ld... " >&6; }
6700 else
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6702 $as_echo_n "checking for non-GNU ld... " >&6; }
6704 if ${lt_cv_path_LD+:} false; then :
6705 $as_echo_n "(cached) " >&6
6706 else
6707 if test -z "$LD"; then
6708 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6709 for ac_dir in $PATH; do
6710 IFS=$lt_save_ifs
6711 test -z "$ac_dir" && ac_dir=.
6712 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6713 lt_cv_path_LD=$ac_dir/$ac_prog
6714 # Check to see if the program is GNU ld. I'd rather use --version,
6715 # but apparently some variants of GNU ld only accept -v.
6716 # Break only if it was the GNU/non-GNU ld that we prefer.
6717 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6718 *GNU* | *'with BFD'*)
6719 test no != "$with_gnu_ld" && break
6722 test yes != "$with_gnu_ld" && break
6724 esac
6726 done
6727 IFS=$lt_save_ifs
6728 else
6729 lt_cv_path_LD=$LD # Let the user override the test with a path.
6733 LD=$lt_cv_path_LD
6734 if test -n "$LD"; then
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6736 $as_echo "$LD" >&6; }
6737 else
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6739 $as_echo "no" >&6; }
6741 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6743 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6744 if ${lt_cv_prog_gnu_ld+:} false; then :
6745 $as_echo_n "(cached) " >&6
6746 else
6747 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6748 case `$LD -v 2>&1 </dev/null` in
6749 *GNU* | *'with BFD'*)
6750 lt_cv_prog_gnu_ld=yes
6753 lt_cv_prog_gnu_ld=no
6755 esac
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6758 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6759 with_gnu_ld=$lt_cv_prog_gnu_ld
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6770 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6771 if ${lt_cv_path_NM+:} false; then :
6772 $as_echo_n "(cached) " >&6
6773 else
6774 if test -n "$NM"; then
6775 # Let the user override the test.
6776 lt_cv_path_NM=$NM
6777 else
6778 lt_nm_to_check=${ac_tool_prefix}nm
6779 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6780 lt_nm_to_check="$lt_nm_to_check nm"
6782 for lt_tmp_nm in $lt_nm_to_check; do
6783 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6784 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6785 IFS=$lt_save_ifs
6786 test -z "$ac_dir" && ac_dir=.
6787 tmp_nm=$ac_dir/$lt_tmp_nm
6788 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6789 # Check to see if the nm accepts a BSD-compat flag.
6790 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6791 # nm: unknown option "B" ignored
6792 # Tru64's nm complains that /dev/null is an invalid object file
6793 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6794 case $build_os in
6795 mingw*) lt_bad_file=conftest.nm/nofile ;;
6796 *) lt_bad_file=/dev/null ;;
6797 esac
6798 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
6799 *$lt_bad_file* | *'Invalid file or object type'*)
6800 lt_cv_path_NM="$tmp_nm -B"
6801 break 2
6804 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6805 */dev/null*)
6806 lt_cv_path_NM="$tmp_nm -p"
6807 break 2
6810 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6811 continue # so that we can try to find one that supports BSD flags
6813 esac
6815 esac
6817 done
6818 IFS=$lt_save_ifs
6819 done
6820 : ${lt_cv_path_NM=no}
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6824 $as_echo "$lt_cv_path_NM" >&6; }
6825 if test no != "$lt_cv_path_NM"; then
6826 NM=$lt_cv_path_NM
6827 else
6828 # Didn't find any BSD compatible name lister, look for dumpbin.
6829 if test -n "$DUMPBIN"; then :
6830 # Let the user override the test.
6831 else
6832 if test -n "$ac_tool_prefix"; then
6833 for ac_prog in dumpbin "link -dump"
6835 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6836 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6838 $as_echo_n "checking for $ac_word... " >&6; }
6839 if ${ac_cv_prog_DUMPBIN+:} false; then :
6840 $as_echo_n "(cached) " >&6
6841 else
6842 if test -n "$DUMPBIN"; then
6843 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6844 else
6845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6846 for as_dir in $PATH
6848 IFS=$as_save_IFS
6849 test -z "$as_dir" && as_dir=.
6850 for ac_exec_ext in '' $ac_executable_extensions; do
6851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6852 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6854 break 2
6856 done
6857 done
6858 IFS=$as_save_IFS
6862 DUMPBIN=$ac_cv_prog_DUMPBIN
6863 if test -n "$DUMPBIN"; then
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6865 $as_echo "$DUMPBIN" >&6; }
6866 else
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6868 $as_echo "no" >&6; }
6872 test -n "$DUMPBIN" && break
6873 done
6875 if test -z "$DUMPBIN"; then
6876 ac_ct_DUMPBIN=$DUMPBIN
6877 for ac_prog in dumpbin "link -dump"
6879 # Extract the first word of "$ac_prog", so it can be a program name with args.
6880 set dummy $ac_prog; ac_word=$2
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6882 $as_echo_n "checking for $ac_word... " >&6; }
6883 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6884 $as_echo_n "(cached) " >&6
6885 else
6886 if test -n "$ac_ct_DUMPBIN"; then
6887 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6888 else
6889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6890 for as_dir in $PATH
6892 IFS=$as_save_IFS
6893 test -z "$as_dir" && as_dir=.
6894 for ac_exec_ext in '' $ac_executable_extensions; do
6895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6896 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6898 break 2
6900 done
6901 done
6902 IFS=$as_save_IFS
6906 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6907 if test -n "$ac_ct_DUMPBIN"; then
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6909 $as_echo "$ac_ct_DUMPBIN" >&6; }
6910 else
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6912 $as_echo "no" >&6; }
6916 test -n "$ac_ct_DUMPBIN" && break
6917 done
6919 if test "x$ac_ct_DUMPBIN" = x; then
6920 DUMPBIN=":"
6921 else
6922 case $cross_compiling:$ac_tool_warned in
6923 yes:)
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6925 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6926 ac_tool_warned=yes ;;
6927 esac
6928 DUMPBIN=$ac_ct_DUMPBIN
6932 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6933 *COFF*)
6934 DUMPBIN="$DUMPBIN -symbols -headers"
6937 DUMPBIN=:
6939 esac
6942 if test : != "$DUMPBIN"; then
6943 NM=$DUMPBIN
6946 test -z "$NM" && NM=nm
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6954 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6955 if ${lt_cv_nm_interface+:} false; then :
6956 $as_echo_n "(cached) " >&6
6957 else
6958 lt_cv_nm_interface="BSD nm"
6959 echo "int some_variable = 0;" > conftest.$ac_ext
6960 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6961 (eval "$ac_compile" 2>conftest.err)
6962 cat conftest.err >&5
6963 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6964 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6965 cat conftest.err >&5
6966 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6967 cat conftest.out >&5
6968 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6969 lt_cv_nm_interface="MS dumpbin"
6971 rm -f conftest*
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6974 $as_echo "$lt_cv_nm_interface" >&6; }
6976 # find the maximum length of command line arguments
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6978 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6979 if ${lt_cv_sys_max_cmd_len+:} false; then :
6980 $as_echo_n "(cached) " >&6
6981 else
6983 teststring=ABCD
6985 case $build_os in
6986 msdosdjgpp*)
6987 # On DJGPP, this test can blow up pretty badly due to problems in libc
6988 # (any single argument exceeding 2000 bytes causes a buffer overrun
6989 # during glob expansion). Even if it were fixed, the result of this
6990 # check would be larger than it should be.
6991 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6994 gnu*)
6995 # Under GNU Hurd, this test is not required because there is
6996 # no limit to the length of command line arguments.
6997 # Libtool will interpret -1 as no limit whatsoever
6998 lt_cv_sys_max_cmd_len=-1;
7001 cygwin* | mingw* | cegcc*)
7002 # On Win9x/ME, this test blows up -- it succeeds, but takes
7003 # about 5 minutes as the teststring grows exponentially.
7004 # Worse, since 9x/ME are not pre-emptively multitasking,
7005 # you end up with a "frozen" computer, even though with patience
7006 # the test eventually succeeds (with a max line length of 256k).
7007 # Instead, let's just punt: use the minimum linelength reported by
7008 # all of the supported platforms: 8192 (on NT/2K/XP).
7009 lt_cv_sys_max_cmd_len=8192;
7012 mint*)
7013 # On MiNT this can take a long time and run out of memory.
7014 lt_cv_sys_max_cmd_len=8192;
7017 amigaos*)
7018 # On AmigaOS with pdksh, this test takes hours, literally.
7019 # So we just punt and use a minimum line length of 8192.
7020 lt_cv_sys_max_cmd_len=8192;
7023 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
7024 # This has been around since 386BSD, at least. Likely further.
7025 if test -x /sbin/sysctl; then
7026 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7027 elif test -x /usr/sbin/sysctl; then
7028 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7029 else
7030 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7032 # And add a safety zone
7033 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7034 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7037 interix*)
7038 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7039 lt_cv_sys_max_cmd_len=196608
7042 os2*)
7043 # The test takes a long time on OS/2.
7044 lt_cv_sys_max_cmd_len=8192
7047 osf*)
7048 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7049 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7050 # nice to cause kernel panics so lets avoid the loop below.
7051 # First set a reasonable default.
7052 lt_cv_sys_max_cmd_len=16384
7054 if test -x /sbin/sysconfig; then
7055 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7056 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7057 esac
7060 sco3.2v5*)
7061 lt_cv_sys_max_cmd_len=102400
7063 sysv5* | sco5v6* | sysv4.2uw2*)
7064 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7065 if test -n "$kargmax"; then
7066 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7067 else
7068 lt_cv_sys_max_cmd_len=32768
7072 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7073 if test -n "$lt_cv_sys_max_cmd_len" && \
7074 test undefined != "$lt_cv_sys_max_cmd_len"; then
7075 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7076 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7077 else
7078 # Make teststring a little bigger before we do anything with it.
7079 # a 1K string should be a reasonable start.
7080 for i in 1 2 3 4 5 6 7 8; do
7081 teststring=$teststring$teststring
7082 done
7083 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7084 # If test is not a shell built-in, we'll probably end up computing a
7085 # maximum length that is only half of the actual maximum length, but
7086 # we can't tell.
7087 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
7088 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7089 test 17 != "$i" # 1/2 MB should be enough
7091 i=`expr $i + 1`
7092 teststring=$teststring$teststring
7093 done
7094 # Only check the string length outside the loop.
7095 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7096 teststring=
7097 # Add a significant safety factor because C++ compilers can tack on
7098 # massive amounts of additional arguments before passing them to the
7099 # linker. It appears as though 1/2 is a usable value.
7100 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7103 esac
7107 if test -n "$lt_cv_sys_max_cmd_len"; then
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7109 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7110 else
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7112 $as_echo "none" >&6; }
7114 max_cmd_len=$lt_cv_sys_max_cmd_len
7121 : ${CP="cp -f"}
7122 : ${MV="mv -f"}
7123 : ${RM="rm -f"}
7125 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7126 lt_unset=unset
7127 else
7128 lt_unset=false
7135 # test EBCDIC or ASCII
7136 case `echo X|tr X '\101'` in
7137 A) # ASCII based system
7138 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7139 lt_SP2NL='tr \040 \012'
7140 lt_NL2SP='tr \015\012 \040\040'
7142 *) # EBCDIC based system
7143 lt_SP2NL='tr \100 \n'
7144 lt_NL2SP='tr \r\n \100\100'
7146 esac
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7157 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7158 if ${lt_cv_to_host_file_cmd+:} false; then :
7159 $as_echo_n "(cached) " >&6
7160 else
7161 case $host in
7162 *-*-mingw* )
7163 case $build in
7164 *-*-mingw* ) # actually msys
7165 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7167 *-*-cygwin* )
7168 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7170 * ) # otherwise, assume *nix
7171 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7173 esac
7175 *-*-cygwin* )
7176 case $build in
7177 *-*-mingw* ) # actually msys
7178 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7180 *-*-cygwin* )
7181 lt_cv_to_host_file_cmd=func_convert_file_noop
7183 * ) # otherwise, assume *nix
7184 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7186 esac
7188 * ) # unhandled hosts (and "normal" native builds)
7189 lt_cv_to_host_file_cmd=func_convert_file_noop
7191 esac
7195 to_host_file_cmd=$lt_cv_to_host_file_cmd
7196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7197 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7204 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7205 if ${lt_cv_to_tool_file_cmd+:} false; then :
7206 $as_echo_n "(cached) " >&6
7207 else
7208 #assume ordinary cross tools, or native build.
7209 lt_cv_to_tool_file_cmd=func_convert_file_noop
7210 case $host in
7211 *-*-mingw* )
7212 case $build in
7213 *-*-mingw* ) # actually msys
7214 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7216 esac
7218 esac
7222 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7224 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7231 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7232 if ${lt_cv_ld_reload_flag+:} false; then :
7233 $as_echo_n "(cached) " >&6
7234 else
7235 lt_cv_ld_reload_flag='-r'
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7238 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7239 reload_flag=$lt_cv_ld_reload_flag
7240 case $reload_flag in
7241 "" | " "*) ;;
7242 *) reload_flag=" $reload_flag" ;;
7243 esac
7244 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7245 case $host_os in
7246 cygwin* | mingw* | pw32* | cegcc*)
7247 if test yes != "$GCC"; then
7248 reload_cmds=false
7251 darwin*)
7252 if test yes = "$GCC"; then
7253 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
7254 else
7255 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7258 esac
7268 if test -n "$ac_tool_prefix"; then
7269 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7270 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7272 $as_echo_n "checking for $ac_word... " >&6; }
7273 if ${ac_cv_prog_OBJDUMP+:} false; then :
7274 $as_echo_n "(cached) " >&6
7275 else
7276 if test -n "$OBJDUMP"; then
7277 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7278 else
7279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7280 for as_dir in $PATH
7282 IFS=$as_save_IFS
7283 test -z "$as_dir" && as_dir=.
7284 for ac_exec_ext in '' $ac_executable_extensions; do
7285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7286 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7288 break 2
7290 done
7291 done
7292 IFS=$as_save_IFS
7296 OBJDUMP=$ac_cv_prog_OBJDUMP
7297 if test -n "$OBJDUMP"; then
7298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7299 $as_echo "$OBJDUMP" >&6; }
7300 else
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7302 $as_echo "no" >&6; }
7307 if test -z "$ac_cv_prog_OBJDUMP"; then
7308 ac_ct_OBJDUMP=$OBJDUMP
7309 # Extract the first word of "objdump", so it can be a program name with args.
7310 set dummy objdump; ac_word=$2
7311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7312 $as_echo_n "checking for $ac_word... " >&6; }
7313 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7314 $as_echo_n "(cached) " >&6
7315 else
7316 if test -n "$ac_ct_OBJDUMP"; then
7317 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7318 else
7319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7320 for as_dir in $PATH
7322 IFS=$as_save_IFS
7323 test -z "$as_dir" && as_dir=.
7324 for ac_exec_ext in '' $ac_executable_extensions; do
7325 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7326 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7328 break 2
7330 done
7331 done
7332 IFS=$as_save_IFS
7336 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7337 if test -n "$ac_ct_OBJDUMP"; then
7338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7339 $as_echo "$ac_ct_OBJDUMP" >&6; }
7340 else
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7342 $as_echo "no" >&6; }
7345 if test "x$ac_ct_OBJDUMP" = x; then
7346 OBJDUMP="false"
7347 else
7348 case $cross_compiling:$ac_tool_warned in
7349 yes:)
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7351 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7352 ac_tool_warned=yes ;;
7353 esac
7354 OBJDUMP=$ac_ct_OBJDUMP
7356 else
7357 OBJDUMP="$ac_cv_prog_OBJDUMP"
7360 test -z "$OBJDUMP" && OBJDUMP=objdump
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7371 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7372 if ${lt_cv_deplibs_check_method+:} false; then :
7373 $as_echo_n "(cached) " >&6
7374 else
7375 lt_cv_file_magic_cmd='$MAGIC_CMD'
7376 lt_cv_file_magic_test_file=
7377 lt_cv_deplibs_check_method='unknown'
7378 # Need to set the preceding variable on all platforms that support
7379 # interlibrary dependencies.
7380 # 'none' -- dependencies not supported.
7381 # 'unknown' -- same as none, but documents that we really don't know.
7382 # 'pass_all' -- all dependencies passed with no checks.
7383 # 'test_compile' -- check by making test program.
7384 # 'file_magic [[regex]]' -- check by looking for files in library path
7385 # that responds to the $file_magic_cmd with a given extended regex.
7386 # If you have 'file' or equivalent on your system and you're not sure
7387 # whether 'pass_all' will *always* work, you probably want this one.
7389 case $host_os in
7390 aix[4-9]*)
7391 lt_cv_deplibs_check_method=pass_all
7394 beos*)
7395 lt_cv_deplibs_check_method=pass_all
7398 bsdi[45]*)
7399 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7400 lt_cv_file_magic_cmd='/usr/bin/file -L'
7401 lt_cv_file_magic_test_file=/shlib/libc.so
7404 cygwin*)
7405 # func_win32_libid is a shell function defined in ltmain.sh
7406 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7407 lt_cv_file_magic_cmd='func_win32_libid'
7410 mingw* | pw32*)
7411 # Base MSYS/MinGW do not provide the 'file' command needed by
7412 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7413 # unless we find 'file', for example because we are cross-compiling.
7414 if ( file / ) >/dev/null 2>&1; then
7415 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7416 lt_cv_file_magic_cmd='func_win32_libid'
7417 else
7418 # Keep this pattern in sync with the one in func_win32_libid.
7419 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7420 lt_cv_file_magic_cmd='$OBJDUMP -f'
7424 cegcc*)
7425 # use the weaker test based on 'objdump'. See mingw*.
7426 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7427 lt_cv_file_magic_cmd='$OBJDUMP -f'
7430 darwin* | rhapsody*)
7431 lt_cv_deplibs_check_method=pass_all
7434 freebsd* | dragonfly*)
7435 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7436 case $host_cpu in
7437 i*86 )
7438 # Not sure whether the presence of OpenBSD here was a mistake.
7439 # Let's accept both of them until this is cleared up.
7440 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7441 lt_cv_file_magic_cmd=/usr/bin/file
7442 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7444 esac
7445 else
7446 lt_cv_deplibs_check_method=pass_all
7450 haiku*)
7451 lt_cv_deplibs_check_method=pass_all
7454 hpux10.20* | hpux11*)
7455 lt_cv_file_magic_cmd=/usr/bin/file
7456 case $host_cpu in
7457 ia64*)
7458 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7459 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7461 hppa*64*)
7462 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]'
7463 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7466 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7467 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7469 esac
7472 interix[3-9]*)
7473 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7474 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7477 irix5* | irix6* | nonstopux*)
7478 case $LD in
7479 *-32|*"-32 ") libmagic=32-bit;;
7480 *-n32|*"-n32 ") libmagic=N32;;
7481 *-64|*"-64 ") libmagic=64-bit;;
7482 *) libmagic=never-match;;
7483 esac
7484 lt_cv_deplibs_check_method=pass_all
7487 # This must be glibc/ELF.
7488 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7489 lt_cv_deplibs_check_method=pass_all
7492 netbsd*)
7493 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7494 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7495 else
7496 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7500 newos6*)
7501 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7502 lt_cv_file_magic_cmd=/usr/bin/file
7503 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7506 *nto* | *qnx*)
7507 lt_cv_deplibs_check_method=pass_all
7510 openbsd* | bitrig*)
7511 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
7512 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7513 else
7514 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7518 osf3* | osf4* | osf5*)
7519 lt_cv_deplibs_check_method=pass_all
7522 rdos*)
7523 lt_cv_deplibs_check_method=pass_all
7526 solaris*)
7527 lt_cv_deplibs_check_method=pass_all
7530 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7531 lt_cv_deplibs_check_method=pass_all
7534 sysv4 | sysv4.3*)
7535 case $host_vendor in
7536 motorola)
7537 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]'
7538 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7540 ncr)
7541 lt_cv_deplibs_check_method=pass_all
7543 sequent)
7544 lt_cv_file_magic_cmd='/bin/file'
7545 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7547 sni)
7548 lt_cv_file_magic_cmd='/bin/file'
7549 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7550 lt_cv_file_magic_test_file=/lib/libc.so
7552 siemens)
7553 lt_cv_deplibs_check_method=pass_all
7556 lt_cv_deplibs_check_method=pass_all
7558 esac
7561 tpf*)
7562 lt_cv_deplibs_check_method=pass_all
7564 os2*)
7565 lt_cv_deplibs_check_method=pass_all
7567 esac
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7571 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7573 file_magic_glob=
7574 want_nocaseglob=no
7575 if test "$build" = "$host"; then
7576 case $host_os in
7577 mingw* | pw32*)
7578 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7579 want_nocaseglob=yes
7580 else
7581 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7584 esac
7587 file_magic_cmd=$lt_cv_file_magic_cmd
7588 deplibs_check_method=$lt_cv_deplibs_check_method
7589 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7612 if test -n "$ac_tool_prefix"; then
7613 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7614 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7616 $as_echo_n "checking for $ac_word... " >&6; }
7617 if ${ac_cv_prog_DLLTOOL+:} false; then :
7618 $as_echo_n "(cached) " >&6
7619 else
7620 if test -n "$DLLTOOL"; then
7621 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7622 else
7623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7624 for as_dir in $PATH
7626 IFS=$as_save_IFS
7627 test -z "$as_dir" && as_dir=.
7628 for ac_exec_ext in '' $ac_executable_extensions; do
7629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7630 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7632 break 2
7634 done
7635 done
7636 IFS=$as_save_IFS
7640 DLLTOOL=$ac_cv_prog_DLLTOOL
7641 if test -n "$DLLTOOL"; then
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7643 $as_echo "$DLLTOOL" >&6; }
7644 else
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7646 $as_echo "no" >&6; }
7651 if test -z "$ac_cv_prog_DLLTOOL"; then
7652 ac_ct_DLLTOOL=$DLLTOOL
7653 # Extract the first word of "dlltool", so it can be a program name with args.
7654 set dummy dlltool; ac_word=$2
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7656 $as_echo_n "checking for $ac_word... " >&6; }
7657 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7658 $as_echo_n "(cached) " >&6
7659 else
7660 if test -n "$ac_ct_DLLTOOL"; then
7661 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7662 else
7663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7664 for as_dir in $PATH
7666 IFS=$as_save_IFS
7667 test -z "$as_dir" && as_dir=.
7668 for ac_exec_ext in '' $ac_executable_extensions; do
7669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7670 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7672 break 2
7674 done
7675 done
7676 IFS=$as_save_IFS
7680 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7681 if test -n "$ac_ct_DLLTOOL"; then
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7683 $as_echo "$ac_ct_DLLTOOL" >&6; }
7684 else
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7686 $as_echo "no" >&6; }
7689 if test "x$ac_ct_DLLTOOL" = x; then
7690 DLLTOOL="false"
7691 else
7692 case $cross_compiling:$ac_tool_warned in
7693 yes:)
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7695 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7696 ac_tool_warned=yes ;;
7697 esac
7698 DLLTOOL=$ac_ct_DLLTOOL
7700 else
7701 DLLTOOL="$ac_cv_prog_DLLTOOL"
7704 test -z "$DLLTOOL" && DLLTOOL=dlltool
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7716 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7717 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7718 $as_echo_n "(cached) " >&6
7719 else
7720 lt_cv_sharedlib_from_linklib_cmd='unknown'
7722 case $host_os in
7723 cygwin* | mingw* | pw32* | cegcc*)
7724 # two different shell functions defined in ltmain.sh;
7725 # decide which one to use based on capabilities of $DLLTOOL
7726 case `$DLLTOOL --help 2>&1` in
7727 *--identify-strict*)
7728 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7731 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7733 esac
7736 # fallback: assume linklib IS sharedlib
7737 lt_cv_sharedlib_from_linklib_cmd=$ECHO
7739 esac
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7743 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7744 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7745 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7754 if test -n "$ac_tool_prefix"; then
7755 for ac_prog in ar
7757 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7758 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7760 $as_echo_n "checking for $ac_word... " >&6; }
7761 if ${ac_cv_prog_AR+:} false; then :
7762 $as_echo_n "(cached) " >&6
7763 else
7764 if test -n "$AR"; then
7765 ac_cv_prog_AR="$AR" # Let the user override the test.
7766 else
7767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7768 for as_dir in $PATH
7770 IFS=$as_save_IFS
7771 test -z "$as_dir" && as_dir=.
7772 for ac_exec_ext in '' $ac_executable_extensions; do
7773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7774 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7776 break 2
7778 done
7779 done
7780 IFS=$as_save_IFS
7784 AR=$ac_cv_prog_AR
7785 if test -n "$AR"; then
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7787 $as_echo "$AR" >&6; }
7788 else
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7790 $as_echo "no" >&6; }
7794 test -n "$AR" && break
7795 done
7797 if test -z "$AR"; then
7798 ac_ct_AR=$AR
7799 for ac_prog in ar
7801 # Extract the first word of "$ac_prog", so it can be a program name with args.
7802 set dummy $ac_prog; ac_word=$2
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7804 $as_echo_n "checking for $ac_word... " >&6; }
7805 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7806 $as_echo_n "(cached) " >&6
7807 else
7808 if test -n "$ac_ct_AR"; then
7809 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7810 else
7811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7812 for as_dir in $PATH
7814 IFS=$as_save_IFS
7815 test -z "$as_dir" && as_dir=.
7816 for ac_exec_ext in '' $ac_executable_extensions; do
7817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7818 ac_cv_prog_ac_ct_AR="$ac_prog"
7819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7820 break 2
7822 done
7823 done
7824 IFS=$as_save_IFS
7828 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7829 if test -n "$ac_ct_AR"; then
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7831 $as_echo "$ac_ct_AR" >&6; }
7832 else
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7834 $as_echo "no" >&6; }
7838 test -n "$ac_ct_AR" && break
7839 done
7841 if test "x$ac_ct_AR" = x; then
7842 AR="false"
7843 else
7844 case $cross_compiling:$ac_tool_warned in
7845 yes:)
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7847 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7848 ac_tool_warned=yes ;;
7849 esac
7850 AR=$ac_ct_AR
7854 : ${AR=ar}
7855 : ${AR_FLAGS=cru}
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7868 $as_echo_n "checking for archiver @FILE support... " >&6; }
7869 if ${lt_cv_ar_at_file+:} false; then :
7870 $as_echo_n "(cached) " >&6
7871 else
7872 lt_cv_ar_at_file=no
7873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7874 /* end confdefs.h. */
7877 main ()
7881 return 0;
7883 _ACEOF
7884 if ac_fn_c_try_compile "$LINENO"; then :
7885 echo conftest.$ac_objext > conftest.lst
7886 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7887 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7888 (eval $lt_ar_try) 2>&5
7889 ac_status=$?
7890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7891 test $ac_status = 0; }
7892 if test 0 -eq "$ac_status"; then
7893 # Ensure the archiver fails upon bogus file names.
7894 rm -f conftest.$ac_objext libconftest.a
7895 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7896 (eval $lt_ar_try) 2>&5
7897 ac_status=$?
7898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7899 test $ac_status = 0; }
7900 if test 0 -ne "$ac_status"; then
7901 lt_cv_ar_at_file=@
7904 rm -f conftest.* libconftest.a
7907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7911 $as_echo "$lt_cv_ar_at_file" >&6; }
7913 if test no = "$lt_cv_ar_at_file"; then
7914 archiver_list_spec=
7915 else
7916 archiver_list_spec=$lt_cv_ar_at_file
7925 if test -n "$ac_tool_prefix"; then
7926 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7927 set dummy ${ac_tool_prefix}strip; ac_word=$2
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7929 $as_echo_n "checking for $ac_word... " >&6; }
7930 if ${ac_cv_prog_STRIP+:} false; then :
7931 $as_echo_n "(cached) " >&6
7932 else
7933 if test -n "$STRIP"; then
7934 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7935 else
7936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7937 for as_dir in $PATH
7939 IFS=$as_save_IFS
7940 test -z "$as_dir" && as_dir=.
7941 for ac_exec_ext in '' $ac_executable_extensions; do
7942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7943 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7945 break 2
7947 done
7948 done
7949 IFS=$as_save_IFS
7953 STRIP=$ac_cv_prog_STRIP
7954 if test -n "$STRIP"; then
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7956 $as_echo "$STRIP" >&6; }
7957 else
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7959 $as_echo "no" >&6; }
7964 if test -z "$ac_cv_prog_STRIP"; then
7965 ac_ct_STRIP=$STRIP
7966 # Extract the first word of "strip", so it can be a program name with args.
7967 set dummy strip; ac_word=$2
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7969 $as_echo_n "checking for $ac_word... " >&6; }
7970 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7971 $as_echo_n "(cached) " >&6
7972 else
7973 if test -n "$ac_ct_STRIP"; then
7974 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7975 else
7976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7977 for as_dir in $PATH
7979 IFS=$as_save_IFS
7980 test -z "$as_dir" && as_dir=.
7981 for ac_exec_ext in '' $ac_executable_extensions; do
7982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7983 ac_cv_prog_ac_ct_STRIP="strip"
7984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7985 break 2
7987 done
7988 done
7989 IFS=$as_save_IFS
7993 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7994 if test -n "$ac_ct_STRIP"; then
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7996 $as_echo "$ac_ct_STRIP" >&6; }
7997 else
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7999 $as_echo "no" >&6; }
8002 if test "x$ac_ct_STRIP" = x; then
8003 STRIP=":"
8004 else
8005 case $cross_compiling:$ac_tool_warned in
8006 yes:)
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8008 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8009 ac_tool_warned=yes ;;
8010 esac
8011 STRIP=$ac_ct_STRIP
8013 else
8014 STRIP="$ac_cv_prog_STRIP"
8017 test -z "$STRIP" && STRIP=:
8024 if test -n "$ac_tool_prefix"; then
8025 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8026 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8028 $as_echo_n "checking for $ac_word... " >&6; }
8029 if ${ac_cv_prog_RANLIB+:} false; then :
8030 $as_echo_n "(cached) " >&6
8031 else
8032 if test -n "$RANLIB"; then
8033 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8034 else
8035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8036 for as_dir in $PATH
8038 IFS=$as_save_IFS
8039 test -z "$as_dir" && as_dir=.
8040 for ac_exec_ext in '' $ac_executable_extensions; do
8041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8042 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8044 break 2
8046 done
8047 done
8048 IFS=$as_save_IFS
8052 RANLIB=$ac_cv_prog_RANLIB
8053 if test -n "$RANLIB"; then
8054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8055 $as_echo "$RANLIB" >&6; }
8056 else
8057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8058 $as_echo "no" >&6; }
8063 if test -z "$ac_cv_prog_RANLIB"; then
8064 ac_ct_RANLIB=$RANLIB
8065 # Extract the first word of "ranlib", so it can be a program name with args.
8066 set dummy ranlib; ac_word=$2
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8068 $as_echo_n "checking for $ac_word... " >&6; }
8069 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8070 $as_echo_n "(cached) " >&6
8071 else
8072 if test -n "$ac_ct_RANLIB"; then
8073 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8074 else
8075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8076 for as_dir in $PATH
8078 IFS=$as_save_IFS
8079 test -z "$as_dir" && as_dir=.
8080 for ac_exec_ext in '' $ac_executable_extensions; do
8081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8082 ac_cv_prog_ac_ct_RANLIB="ranlib"
8083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8084 break 2
8086 done
8087 done
8088 IFS=$as_save_IFS
8092 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8093 if test -n "$ac_ct_RANLIB"; then
8094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8095 $as_echo "$ac_ct_RANLIB" >&6; }
8096 else
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8098 $as_echo "no" >&6; }
8101 if test "x$ac_ct_RANLIB" = x; then
8102 RANLIB=":"
8103 else
8104 case $cross_compiling:$ac_tool_warned in
8105 yes:)
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8107 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8108 ac_tool_warned=yes ;;
8109 esac
8110 RANLIB=$ac_ct_RANLIB
8112 else
8113 RANLIB="$ac_cv_prog_RANLIB"
8116 test -z "$RANLIB" && RANLIB=:
8123 # Determine commands to create old-style static archives.
8124 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8125 old_postinstall_cmds='chmod 644 $oldlib'
8126 old_postuninstall_cmds=
8128 if test -n "$RANLIB"; then
8129 case $host_os in
8130 bitrig* | openbsd*)
8131 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8134 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8136 esac
8137 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8140 case $host_os in
8141 darwin*)
8142 lock_old_archive_extraction=yes ;;
8144 lock_old_archive_extraction=no ;;
8145 esac
8185 # If no C compiler was specified, use CC.
8186 LTCC=${LTCC-"$CC"}
8188 # If no C compiler flags were specified, use CFLAGS.
8189 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8191 # Allow CC to be a program name with arguments.
8192 compiler=$CC
8195 # Check for command to grab the raw symbol name followed by C symbol from nm.
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8197 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8198 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8199 $as_echo_n "(cached) " >&6
8200 else
8202 # These are sane defaults that work on at least a few old systems.
8203 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8205 # Character class describing NM global symbol codes.
8206 symcode='[BCDEGRST]'
8208 # Regexp to match symbols that can be accessed directly from C.
8209 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8211 # Define system-specific variables.
8212 case $host_os in
8213 aix*)
8214 symcode='[BCDT]'
8216 cygwin* | mingw* | pw32* | cegcc*)
8217 symcode='[ABCDGISTW]'
8219 hpux*)
8220 if test ia64 = "$host_cpu"; then
8221 symcode='[ABCDEGRST]'
8224 irix* | nonstopux*)
8225 symcode='[BCDEGRST]'
8227 osf*)
8228 symcode='[BCDEGQRST]'
8230 solaris*)
8231 symcode='[BDRT]'
8233 sco3.2v5*)
8234 symcode='[DT]'
8236 sysv4.2uw2*)
8237 symcode='[DT]'
8239 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8240 symcode='[ABDT]'
8242 sysv4)
8243 symcode='[DFNSTU]'
8245 esac
8247 # If we're using GNU nm, then use its standard symbol codes.
8248 case `$NM -V 2>&1` in
8249 *GNU* | *'with BFD'*)
8250 symcode='[ABCDGIRSTW]' ;;
8251 esac
8253 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8254 # Gets list of data symbols to import.
8255 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
8256 # Adjust the below global symbol transforms to fixup imported variables.
8257 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
8258 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
8259 lt_c_name_lib_hook="\
8260 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
8261 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
8262 else
8263 # Disable hooks by default.
8264 lt_cv_sys_global_symbol_to_import=
8265 lt_cdecl_hook=
8266 lt_c_name_hook=
8267 lt_c_name_lib_hook=
8270 # Transform an extracted symbol line into a proper C declaration.
8271 # Some systems (esp. on ia64) link data and code symbols differently,
8272 # so use this general approach.
8273 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
8274 $lt_cdecl_hook\
8275 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
8276 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
8278 # Transform an extracted symbol line into symbol name and symbol address
8279 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
8280 $lt_c_name_hook\
8281 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8282 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
8284 # Transform an extracted symbol line into symbol name with lib prefix and
8285 # symbol address.
8286 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
8287 $lt_c_name_lib_hook\
8288 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8289 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
8290 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
8292 # Handle CRLF in mingw tool chain
8293 opt_cr=
8294 case $build_os in
8295 mingw*)
8296 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8298 esac
8300 # Try without a prefix underscore, then with it.
8301 for ac_symprfx in "" "_"; do
8303 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8304 symxfrm="\\1 $ac_symprfx\\2 \\2"
8306 # Write the raw and C identifiers.
8307 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8308 # Fake it for dumpbin and say T for any non-static function,
8309 # D for any global variable and I for any imported variable.
8310 # Also find C++ and __fastcall symbols from MSVC++,
8311 # which start with @ or ?.
8312 lt_cv_sys_global_symbol_pipe="$AWK '"\
8313 " {last_section=section; section=\$ 3};"\
8314 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8315 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8316 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
8317 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
8318 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
8319 " \$ 0!~/External *\|/{next};"\
8320 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8321 " {if(hide[section]) next};"\
8322 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
8323 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
8324 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
8325 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
8326 " ' prfx=^$ac_symprfx"
8327 else
8328 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8330 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8332 # Check to see that the pipe works correctly.
8333 pipe_works=no
8335 rm -f conftest*
8336 cat > conftest.$ac_ext <<_LT_EOF
8337 #ifdef __cplusplus
8338 extern "C" {
8339 #endif
8340 char nm_test_var;
8341 void nm_test_func(void);
8342 void nm_test_func(void){}
8343 #ifdef __cplusplus
8345 #endif
8346 int main(){nm_test_var='a';nm_test_func();return(0);}
8347 _LT_EOF
8349 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8350 (eval $ac_compile) 2>&5
8351 ac_status=$?
8352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8353 test $ac_status = 0; }; then
8354 # Now try to grab the symbols.
8355 nlist=conftest.nm
8356 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8357 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8358 ac_status=$?
8359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8360 test $ac_status = 0; } && test -s "$nlist"; then
8361 # Try sorting and uniquifying the output.
8362 if sort "$nlist" | uniq > "$nlist"T; then
8363 mv -f "$nlist"T "$nlist"
8364 else
8365 rm -f "$nlist"T
8368 # Make sure that we snagged all the symbols we need.
8369 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8370 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8371 cat <<_LT_EOF > conftest.$ac_ext
8372 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
8373 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
8374 /* DATA imports from DLLs on WIN32 can't be const, because runtime
8375 relocations are performed -- see ld's documentation on pseudo-relocs. */
8376 # define LT_DLSYM_CONST
8377 #elif defined __osf__
8378 /* This system does not cope well with relocations in const data. */
8379 # define LT_DLSYM_CONST
8380 #else
8381 # define LT_DLSYM_CONST const
8382 #endif
8384 #ifdef __cplusplus
8385 extern "C" {
8386 #endif
8388 _LT_EOF
8389 # Now generate the symbol file.
8390 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8392 cat <<_LT_EOF >> conftest.$ac_ext
8394 /* The mapping between symbol names and symbols. */
8395 LT_DLSYM_CONST struct {
8396 const char *name;
8397 void *address;
8399 lt__PROGRAM__LTX_preloaded_symbols[] =
8401 { "@PROGRAM@", (void *) 0 },
8402 _LT_EOF
8403 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8404 cat <<\_LT_EOF >> conftest.$ac_ext
8405 {0, (void *) 0}
8408 /* This works around a problem in FreeBSD linker */
8409 #ifdef FREEBSD_WORKAROUND
8410 static const void *lt_preloaded_setup() {
8411 return lt__PROGRAM__LTX_preloaded_symbols;
8413 #endif
8415 #ifdef __cplusplus
8417 #endif
8418 _LT_EOF
8419 # Now try linking the two files.
8420 mv conftest.$ac_objext conftstm.$ac_objext
8421 lt_globsym_save_LIBS=$LIBS
8422 lt_globsym_save_CFLAGS=$CFLAGS
8423 LIBS=conftstm.$ac_objext
8424 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8425 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8426 (eval $ac_link) 2>&5
8427 ac_status=$?
8428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8429 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8430 pipe_works=yes
8432 LIBS=$lt_globsym_save_LIBS
8433 CFLAGS=$lt_globsym_save_CFLAGS
8434 else
8435 echo "cannot find nm_test_func in $nlist" >&5
8437 else
8438 echo "cannot find nm_test_var in $nlist" >&5
8440 else
8441 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8443 else
8444 echo "$progname: failed program was:" >&5
8445 cat conftest.$ac_ext >&5
8447 rm -rf conftest* conftst*
8449 # Do not use the global_symbol_pipe unless it works.
8450 if test yes = "$pipe_works"; then
8451 break
8452 else
8453 lt_cv_sys_global_symbol_pipe=
8455 done
8459 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8460 lt_cv_sys_global_symbol_to_cdecl=
8462 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8464 $as_echo "failed" >&6; }
8465 else
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8467 $as_echo "ok" >&6; }
8470 # Response file support.
8471 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8472 nm_file_list_spec='@'
8473 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8474 nm_file_list_spec='@'
8513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8514 $as_echo_n "checking for sysroot... " >&6; }
8516 # Check whether --with-sysroot was given.
8517 if test "${with_sysroot+set}" = set; then :
8518 withval=$with_sysroot;
8519 else
8520 with_sysroot=no
8524 lt_sysroot=
8525 case $with_sysroot in #(
8526 yes)
8527 if test yes = "$GCC"; then
8528 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8530 ;; #(
8532 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8533 ;; #(
8534 no|'')
8535 ;; #(
8537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
8538 $as_echo "$with_sysroot" >&6; }
8539 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8541 esac
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8544 $as_echo "${lt_sysroot:-no}" >&6; }
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
8551 $as_echo_n "checking for a working dd... " >&6; }
8552 if ${ac_cv_path_lt_DD+:} false; then :
8553 $as_echo_n "(cached) " >&6
8554 else
8555 printf 0123456789abcdef0123456789abcdef >conftest.i
8556 cat conftest.i conftest.i >conftest2.i
8557 : ${lt_DD:=$DD}
8558 if test -z "$lt_DD"; then
8559 ac_path_lt_DD_found=false
8560 # Loop through the user's path and test for each of PROGNAME-LIST
8561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8562 for as_dir in $PATH
8564 IFS=$as_save_IFS
8565 test -z "$as_dir" && as_dir=.
8566 for ac_prog in dd; do
8567 for ac_exec_ext in '' $ac_executable_extensions; do
8568 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
8569 as_fn_executable_p "$ac_path_lt_DD" || continue
8570 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8571 cmp -s conftest.i conftest.out \
8572 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
8574 $ac_path_lt_DD_found && break 3
8575 done
8576 done
8577 done
8578 IFS=$as_save_IFS
8579 if test -z "$ac_cv_path_lt_DD"; then
8582 else
8583 ac_cv_path_lt_DD=$lt_DD
8586 rm -f conftest.i conftest2.i conftest.out
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8589 $as_echo "$ac_cv_path_lt_DD" >&6; }
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8593 $as_echo_n "checking how to truncate binary pipes... " >&6; }
8594 if ${lt_cv_truncate_bin+:} false; then :
8595 $as_echo_n "(cached) " >&6
8596 else
8597 printf 0123456789abcdef0123456789abcdef >conftest.i
8598 cat conftest.i conftest.i >conftest2.i
8599 lt_cv_truncate_bin=
8600 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8601 cmp -s conftest.i conftest.out \
8602 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8604 rm -f conftest.i conftest2.i conftest.out
8605 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
8607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8608 $as_echo "$lt_cv_truncate_bin" >&6; }
8616 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
8617 func_cc_basename ()
8619 for cc_temp in $*""; do
8620 case $cc_temp in
8621 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8622 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8623 \-*) ;;
8624 *) break;;
8625 esac
8626 done
8627 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8630 # Check whether --enable-libtool-lock was given.
8631 if test "${enable_libtool_lock+set}" = set; then :
8632 enableval=$enable_libtool_lock;
8635 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8637 # Some flags need to be propagated to the compiler or linker for good
8638 # libtool support.
8639 case $host in
8640 ia64-*-hpux*)
8641 # Find out what ABI is being produced by ac_compile, and set mode
8642 # options accordingly.
8643 echo 'int i;' > conftest.$ac_ext
8644 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8645 (eval $ac_compile) 2>&5
8646 ac_status=$?
8647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8648 test $ac_status = 0; }; then
8649 case `/usr/bin/file conftest.$ac_objext` in
8650 *ELF-32*)
8651 HPUX_IA64_MODE=32
8653 *ELF-64*)
8654 HPUX_IA64_MODE=64
8656 esac
8658 rm -rf conftest*
8660 *-*-irix6*)
8661 # Find out what ABI is being produced by ac_compile, and set linker
8662 # options accordingly.
8663 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8664 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8665 (eval $ac_compile) 2>&5
8666 ac_status=$?
8667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8668 test $ac_status = 0; }; then
8669 if test yes = "$lt_cv_prog_gnu_ld"; then
8670 case `/usr/bin/file conftest.$ac_objext` in
8671 *32-bit*)
8672 LD="${LD-ld} -melf32bsmip"
8674 *N32*)
8675 LD="${LD-ld} -melf32bmipn32"
8677 *64-bit*)
8678 LD="${LD-ld} -melf64bmip"
8680 esac
8681 else
8682 case `/usr/bin/file conftest.$ac_objext` in
8683 *32-bit*)
8684 LD="${LD-ld} -32"
8686 *N32*)
8687 LD="${LD-ld} -n32"
8689 *64-bit*)
8690 LD="${LD-ld} -64"
8692 esac
8695 rm -rf conftest*
8698 mips64*-*linux*)
8699 # Find out what ABI is being produced by ac_compile, and set linker
8700 # options accordingly.
8701 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8702 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8703 (eval $ac_compile) 2>&5
8704 ac_status=$?
8705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8706 test $ac_status = 0; }; then
8707 emul=elf
8708 case `/usr/bin/file conftest.$ac_objext` in
8709 *32-bit*)
8710 emul="${emul}32"
8712 *64-bit*)
8713 emul="${emul}64"
8715 esac
8716 case `/usr/bin/file conftest.$ac_objext` in
8717 *MSB*)
8718 emul="${emul}btsmip"
8720 *LSB*)
8721 emul="${emul}ltsmip"
8723 esac
8724 case `/usr/bin/file conftest.$ac_objext` in
8725 *N32*)
8726 emul="${emul}n32"
8728 esac
8729 LD="${LD-ld} -m $emul"
8731 rm -rf conftest*
8734 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8735 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8736 # Find out what ABI is being produced by ac_compile, and set linker
8737 # options accordingly. Note that the listed cases only cover the
8738 # situations where additional linker options are needed (such as when
8739 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8740 # vice versa); the common cases where no linker options are needed do
8741 # not appear in the list.
8742 echo 'int i;' > conftest.$ac_ext
8743 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8744 (eval $ac_compile) 2>&5
8745 ac_status=$?
8746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8747 test $ac_status = 0; }; then
8748 case `/usr/bin/file conftest.o` in
8749 *32-bit*)
8750 case $host in
8751 x86_64-*kfreebsd*-gnu)
8752 LD="${LD-ld} -m elf_i386_fbsd"
8754 x86_64-*linux*)
8755 case `/usr/bin/file conftest.o` in
8756 *x86-64*)
8757 LD="${LD-ld} -m elf32_x86_64"
8760 LD="${LD-ld} -m elf_i386"
8762 esac
8764 powerpc64le-*linux*)
8765 LD="${LD-ld} -m elf32lppclinux"
8767 powerpc64-*linux*)
8768 LD="${LD-ld} -m elf32ppclinux"
8770 s390x-*linux*)
8771 LD="${LD-ld} -m elf_s390"
8773 sparc64-*linux*)
8774 LD="${LD-ld} -m elf32_sparc"
8776 esac
8778 *64-bit*)
8779 case $host in
8780 x86_64-*kfreebsd*-gnu)
8781 LD="${LD-ld} -m elf_x86_64_fbsd"
8783 x86_64-*linux*)
8784 LD="${LD-ld} -m elf_x86_64"
8786 powerpcle-*linux*)
8787 LD="${LD-ld} -m elf64lppc"
8789 powerpc-*linux*)
8790 LD="${LD-ld} -m elf64ppc"
8792 s390*-*linux*|s390*-*tpf*)
8793 LD="${LD-ld} -m elf64_s390"
8795 sparc*-*linux*)
8796 LD="${LD-ld} -m elf64_sparc"
8798 esac
8800 esac
8802 rm -rf conftest*
8805 *-*-sco3.2v5*)
8806 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8807 SAVE_CFLAGS=$CFLAGS
8808 CFLAGS="$CFLAGS -belf"
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8810 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8811 if ${lt_cv_cc_needs_belf+:} false; then :
8812 $as_echo_n "(cached) " >&6
8813 else
8814 ac_ext=c
8815 ac_cpp='$CPP $CPPFLAGS'
8816 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8817 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8818 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8821 /* end confdefs.h. */
8824 main ()
8828 return 0;
8830 _ACEOF
8831 if ac_fn_c_try_link "$LINENO"; then :
8832 lt_cv_cc_needs_belf=yes
8833 else
8834 lt_cv_cc_needs_belf=no
8836 rm -f core conftest.err conftest.$ac_objext \
8837 conftest$ac_exeext conftest.$ac_ext
8838 ac_ext=c
8839 ac_cpp='$CPP $CPPFLAGS'
8840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8846 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8847 if test yes != "$lt_cv_cc_needs_belf"; then
8848 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8849 CFLAGS=$SAVE_CFLAGS
8852 *-*solaris*)
8853 # Find out what ABI is being produced by ac_compile, and set linker
8854 # options accordingly.
8855 echo 'int i;' > conftest.$ac_ext
8856 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8857 (eval $ac_compile) 2>&5
8858 ac_status=$?
8859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8860 test $ac_status = 0; }; then
8861 case `/usr/bin/file conftest.o` in
8862 *64-bit*)
8863 case $lt_cv_prog_gnu_ld in
8864 yes*)
8865 case $host in
8866 i?86-*-solaris*|x86_64-*-solaris*)
8867 LD="${LD-ld} -m elf_x86_64"
8869 sparc*-*-solaris*)
8870 LD="${LD-ld} -m elf64_sparc"
8872 esac
8873 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8874 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8875 LD=${LD-ld}_sol2
8879 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8880 LD="${LD-ld} -64"
8883 esac
8885 esac
8887 rm -rf conftest*
8889 esac
8891 need_locks=$enable_libtool_lock
8893 if test -n "$ac_tool_prefix"; then
8894 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8895 set dummy ${ac_tool_prefix}mt; ac_word=$2
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8897 $as_echo_n "checking for $ac_word... " >&6; }
8898 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8899 $as_echo_n "(cached) " >&6
8900 else
8901 if test -n "$MANIFEST_TOOL"; then
8902 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8903 else
8904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8905 for as_dir in $PATH
8907 IFS=$as_save_IFS
8908 test -z "$as_dir" && as_dir=.
8909 for ac_exec_ext in '' $ac_executable_extensions; do
8910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8911 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8913 break 2
8915 done
8916 done
8917 IFS=$as_save_IFS
8921 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8922 if test -n "$MANIFEST_TOOL"; then
8923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8924 $as_echo "$MANIFEST_TOOL" >&6; }
8925 else
8926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8927 $as_echo "no" >&6; }
8932 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8933 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8934 # Extract the first word of "mt", so it can be a program name with args.
8935 set dummy mt; ac_word=$2
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8937 $as_echo_n "checking for $ac_word... " >&6; }
8938 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8939 $as_echo_n "(cached) " >&6
8940 else
8941 if test -n "$ac_ct_MANIFEST_TOOL"; then
8942 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8943 else
8944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8945 for as_dir in $PATH
8947 IFS=$as_save_IFS
8948 test -z "$as_dir" && as_dir=.
8949 for ac_exec_ext in '' $ac_executable_extensions; do
8950 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8951 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8953 break 2
8955 done
8956 done
8957 IFS=$as_save_IFS
8961 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8962 if test -n "$ac_ct_MANIFEST_TOOL"; then
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8964 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8965 else
8966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8967 $as_echo "no" >&6; }
8970 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8971 MANIFEST_TOOL=":"
8972 else
8973 case $cross_compiling:$ac_tool_warned in
8974 yes:)
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8976 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8977 ac_tool_warned=yes ;;
8978 esac
8979 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8981 else
8982 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8985 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8987 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8988 if ${lt_cv_path_mainfest_tool+:} false; then :
8989 $as_echo_n "(cached) " >&6
8990 else
8991 lt_cv_path_mainfest_tool=no
8992 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8993 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8994 cat conftest.err >&5
8995 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8996 lt_cv_path_mainfest_tool=yes
8998 rm -f conftest*
9000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9001 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
9002 if test yes != "$lt_cv_path_mainfest_tool"; then
9003 MANIFEST_TOOL=:
9011 case $host_os in
9012 rhapsody* | darwin*)
9013 if test -n "$ac_tool_prefix"; then
9014 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9015 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9017 $as_echo_n "checking for $ac_word... " >&6; }
9018 if ${ac_cv_prog_DSYMUTIL+:} false; then :
9019 $as_echo_n "(cached) " >&6
9020 else
9021 if test -n "$DSYMUTIL"; then
9022 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9023 else
9024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9025 for as_dir in $PATH
9027 IFS=$as_save_IFS
9028 test -z "$as_dir" && as_dir=.
9029 for ac_exec_ext in '' $ac_executable_extensions; do
9030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9031 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9033 break 2
9035 done
9036 done
9037 IFS=$as_save_IFS
9041 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9042 if test -n "$DSYMUTIL"; then
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9044 $as_echo "$DSYMUTIL" >&6; }
9045 else
9046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9047 $as_echo "no" >&6; }
9052 if test -z "$ac_cv_prog_DSYMUTIL"; then
9053 ac_ct_DSYMUTIL=$DSYMUTIL
9054 # Extract the first word of "dsymutil", so it can be a program name with args.
9055 set dummy dsymutil; ac_word=$2
9056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9057 $as_echo_n "checking for $ac_word... " >&6; }
9058 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9059 $as_echo_n "(cached) " >&6
9060 else
9061 if test -n "$ac_ct_DSYMUTIL"; then
9062 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9063 else
9064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9065 for as_dir in $PATH
9067 IFS=$as_save_IFS
9068 test -z "$as_dir" && as_dir=.
9069 for ac_exec_ext in '' $ac_executable_extensions; do
9070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9071 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9073 break 2
9075 done
9076 done
9077 IFS=$as_save_IFS
9081 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9082 if test -n "$ac_ct_DSYMUTIL"; then
9083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9084 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9085 else
9086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9087 $as_echo "no" >&6; }
9090 if test "x$ac_ct_DSYMUTIL" = x; then
9091 DSYMUTIL=":"
9092 else
9093 case $cross_compiling:$ac_tool_warned in
9094 yes:)
9095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9096 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9097 ac_tool_warned=yes ;;
9098 esac
9099 DSYMUTIL=$ac_ct_DSYMUTIL
9101 else
9102 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9105 if test -n "$ac_tool_prefix"; then
9106 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9107 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9109 $as_echo_n "checking for $ac_word... " >&6; }
9110 if ${ac_cv_prog_NMEDIT+:} false; then :
9111 $as_echo_n "(cached) " >&6
9112 else
9113 if test -n "$NMEDIT"; then
9114 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9115 else
9116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9117 for as_dir in $PATH
9119 IFS=$as_save_IFS
9120 test -z "$as_dir" && as_dir=.
9121 for ac_exec_ext in '' $ac_executable_extensions; do
9122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9123 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9125 break 2
9127 done
9128 done
9129 IFS=$as_save_IFS
9133 NMEDIT=$ac_cv_prog_NMEDIT
9134 if test -n "$NMEDIT"; then
9135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9136 $as_echo "$NMEDIT" >&6; }
9137 else
9138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9139 $as_echo "no" >&6; }
9144 if test -z "$ac_cv_prog_NMEDIT"; then
9145 ac_ct_NMEDIT=$NMEDIT
9146 # Extract the first word of "nmedit", so it can be a program name with args.
9147 set dummy nmedit; ac_word=$2
9148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9149 $as_echo_n "checking for $ac_word... " >&6; }
9150 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9151 $as_echo_n "(cached) " >&6
9152 else
9153 if test -n "$ac_ct_NMEDIT"; then
9154 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9155 else
9156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9157 for as_dir in $PATH
9159 IFS=$as_save_IFS
9160 test -z "$as_dir" && as_dir=.
9161 for ac_exec_ext in '' $ac_executable_extensions; do
9162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9163 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9165 break 2
9167 done
9168 done
9169 IFS=$as_save_IFS
9173 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9174 if test -n "$ac_ct_NMEDIT"; then
9175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9176 $as_echo "$ac_ct_NMEDIT" >&6; }
9177 else
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9179 $as_echo "no" >&6; }
9182 if test "x$ac_ct_NMEDIT" = x; then
9183 NMEDIT=":"
9184 else
9185 case $cross_compiling:$ac_tool_warned in
9186 yes:)
9187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9188 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9189 ac_tool_warned=yes ;;
9190 esac
9191 NMEDIT=$ac_ct_NMEDIT
9193 else
9194 NMEDIT="$ac_cv_prog_NMEDIT"
9197 if test -n "$ac_tool_prefix"; then
9198 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9199 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9201 $as_echo_n "checking for $ac_word... " >&6; }
9202 if ${ac_cv_prog_LIPO+:} false; then :
9203 $as_echo_n "(cached) " >&6
9204 else
9205 if test -n "$LIPO"; then
9206 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9207 else
9208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9209 for as_dir in $PATH
9211 IFS=$as_save_IFS
9212 test -z "$as_dir" && as_dir=.
9213 for ac_exec_ext in '' $ac_executable_extensions; do
9214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9215 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9217 break 2
9219 done
9220 done
9221 IFS=$as_save_IFS
9225 LIPO=$ac_cv_prog_LIPO
9226 if test -n "$LIPO"; then
9227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9228 $as_echo "$LIPO" >&6; }
9229 else
9230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9231 $as_echo "no" >&6; }
9236 if test -z "$ac_cv_prog_LIPO"; then
9237 ac_ct_LIPO=$LIPO
9238 # Extract the first word of "lipo", so it can be a program name with args.
9239 set dummy lipo; ac_word=$2
9240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9241 $as_echo_n "checking for $ac_word... " >&6; }
9242 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9243 $as_echo_n "(cached) " >&6
9244 else
9245 if test -n "$ac_ct_LIPO"; then
9246 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9247 else
9248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9249 for as_dir in $PATH
9251 IFS=$as_save_IFS
9252 test -z "$as_dir" && as_dir=.
9253 for ac_exec_ext in '' $ac_executable_extensions; do
9254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9255 ac_cv_prog_ac_ct_LIPO="lipo"
9256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9257 break 2
9259 done
9260 done
9261 IFS=$as_save_IFS
9265 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9266 if test -n "$ac_ct_LIPO"; then
9267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9268 $as_echo "$ac_ct_LIPO" >&6; }
9269 else
9270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9271 $as_echo "no" >&6; }
9274 if test "x$ac_ct_LIPO" = x; then
9275 LIPO=":"
9276 else
9277 case $cross_compiling:$ac_tool_warned in
9278 yes:)
9279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9280 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9281 ac_tool_warned=yes ;;
9282 esac
9283 LIPO=$ac_ct_LIPO
9285 else
9286 LIPO="$ac_cv_prog_LIPO"
9289 if test -n "$ac_tool_prefix"; then
9290 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9291 set dummy ${ac_tool_prefix}otool; ac_word=$2
9292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9293 $as_echo_n "checking for $ac_word... " >&6; }
9294 if ${ac_cv_prog_OTOOL+:} false; then :
9295 $as_echo_n "(cached) " >&6
9296 else
9297 if test -n "$OTOOL"; then
9298 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9299 else
9300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9301 for as_dir in $PATH
9303 IFS=$as_save_IFS
9304 test -z "$as_dir" && as_dir=.
9305 for ac_exec_ext in '' $ac_executable_extensions; do
9306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9307 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9309 break 2
9311 done
9312 done
9313 IFS=$as_save_IFS
9317 OTOOL=$ac_cv_prog_OTOOL
9318 if test -n "$OTOOL"; then
9319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9320 $as_echo "$OTOOL" >&6; }
9321 else
9322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9323 $as_echo "no" >&6; }
9328 if test -z "$ac_cv_prog_OTOOL"; then
9329 ac_ct_OTOOL=$OTOOL
9330 # Extract the first word of "otool", so it can be a program name with args.
9331 set dummy otool; ac_word=$2
9332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9333 $as_echo_n "checking for $ac_word... " >&6; }
9334 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9335 $as_echo_n "(cached) " >&6
9336 else
9337 if test -n "$ac_ct_OTOOL"; then
9338 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9339 else
9340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9341 for as_dir in $PATH
9343 IFS=$as_save_IFS
9344 test -z "$as_dir" && as_dir=.
9345 for ac_exec_ext in '' $ac_executable_extensions; do
9346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9347 ac_cv_prog_ac_ct_OTOOL="otool"
9348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9349 break 2
9351 done
9352 done
9353 IFS=$as_save_IFS
9357 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9358 if test -n "$ac_ct_OTOOL"; then
9359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9360 $as_echo "$ac_ct_OTOOL" >&6; }
9361 else
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9363 $as_echo "no" >&6; }
9366 if test "x$ac_ct_OTOOL" = x; then
9367 OTOOL=":"
9368 else
9369 case $cross_compiling:$ac_tool_warned in
9370 yes:)
9371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9372 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9373 ac_tool_warned=yes ;;
9374 esac
9375 OTOOL=$ac_ct_OTOOL
9377 else
9378 OTOOL="$ac_cv_prog_OTOOL"
9381 if test -n "$ac_tool_prefix"; then
9382 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9383 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9385 $as_echo_n "checking for $ac_word... " >&6; }
9386 if ${ac_cv_prog_OTOOL64+:} false; then :
9387 $as_echo_n "(cached) " >&6
9388 else
9389 if test -n "$OTOOL64"; then
9390 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9391 else
9392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9393 for as_dir in $PATH
9395 IFS=$as_save_IFS
9396 test -z "$as_dir" && as_dir=.
9397 for ac_exec_ext in '' $ac_executable_extensions; do
9398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9399 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9401 break 2
9403 done
9404 done
9405 IFS=$as_save_IFS
9409 OTOOL64=$ac_cv_prog_OTOOL64
9410 if test -n "$OTOOL64"; then
9411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9412 $as_echo "$OTOOL64" >&6; }
9413 else
9414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9415 $as_echo "no" >&6; }
9420 if test -z "$ac_cv_prog_OTOOL64"; then
9421 ac_ct_OTOOL64=$OTOOL64
9422 # Extract the first word of "otool64", so it can be a program name with args.
9423 set dummy otool64; ac_word=$2
9424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9425 $as_echo_n "checking for $ac_word... " >&6; }
9426 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9427 $as_echo_n "(cached) " >&6
9428 else
9429 if test -n "$ac_ct_OTOOL64"; then
9430 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9431 else
9432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9433 for as_dir in $PATH
9435 IFS=$as_save_IFS
9436 test -z "$as_dir" && as_dir=.
9437 for ac_exec_ext in '' $ac_executable_extensions; do
9438 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9439 ac_cv_prog_ac_ct_OTOOL64="otool64"
9440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9441 break 2
9443 done
9444 done
9445 IFS=$as_save_IFS
9449 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9450 if test -n "$ac_ct_OTOOL64"; then
9451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9452 $as_echo "$ac_ct_OTOOL64" >&6; }
9453 else
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9455 $as_echo "no" >&6; }
9458 if test "x$ac_ct_OTOOL64" = x; then
9459 OTOOL64=":"
9460 else
9461 case $cross_compiling:$ac_tool_warned in
9462 yes:)
9463 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9464 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9465 ac_tool_warned=yes ;;
9466 esac
9467 OTOOL64=$ac_ct_OTOOL64
9469 else
9470 OTOOL64="$ac_cv_prog_OTOOL64"
9499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9500 $as_echo_n "checking for -single_module linker flag... " >&6; }
9501 if ${lt_cv_apple_cc_single_mod+:} false; then :
9502 $as_echo_n "(cached) " >&6
9503 else
9504 lt_cv_apple_cc_single_mod=no
9505 if test -z "$LT_MULTI_MODULE"; then
9506 # By default we will add the -single_module flag. You can override
9507 # by either setting the environment variable LT_MULTI_MODULE
9508 # non-empty at configure time, or by adding -multi_module to the
9509 # link flags.
9510 rm -rf libconftest.dylib*
9511 echo "int foo(void){return 1;}" > conftest.c
9512 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9513 -dynamiclib -Wl,-single_module conftest.c" >&5
9514 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9515 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9516 _lt_result=$?
9517 # If there is a non-empty error log, and "single_module"
9518 # appears in it, assume the flag caused a linker warning
9519 if test -s conftest.err && $GREP single_module conftest.err; then
9520 cat conftest.err >&5
9521 # Otherwise, if the output was created with a 0 exit code from
9522 # the compiler, it worked.
9523 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
9524 lt_cv_apple_cc_single_mod=yes
9525 else
9526 cat conftest.err >&5
9528 rm -rf libconftest.dylib*
9529 rm -f conftest.*
9532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9533 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9536 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9537 if ${lt_cv_ld_exported_symbols_list+:} false; then :
9538 $as_echo_n "(cached) " >&6
9539 else
9540 lt_cv_ld_exported_symbols_list=no
9541 save_LDFLAGS=$LDFLAGS
9542 echo "_main" > conftest.sym
9543 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9545 /* end confdefs.h. */
9548 main ()
9552 return 0;
9554 _ACEOF
9555 if ac_fn_c_try_link "$LINENO"; then :
9556 lt_cv_ld_exported_symbols_list=yes
9557 else
9558 lt_cv_ld_exported_symbols_list=no
9560 rm -f core conftest.err conftest.$ac_objext \
9561 conftest$ac_exeext conftest.$ac_ext
9562 LDFLAGS=$save_LDFLAGS
9565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9566 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9569 $as_echo_n "checking for -force_load linker flag... " >&6; }
9570 if ${lt_cv_ld_force_load+:} false; then :
9571 $as_echo_n "(cached) " >&6
9572 else
9573 lt_cv_ld_force_load=no
9574 cat > conftest.c << _LT_EOF
9575 int forced_loaded() { return 2;}
9576 _LT_EOF
9577 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9578 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9579 echo "$AR cru libconftest.a conftest.o" >&5
9580 $AR cru libconftest.a conftest.o 2>&5
9581 echo "$RANLIB libconftest.a" >&5
9582 $RANLIB libconftest.a 2>&5
9583 cat > conftest.c << _LT_EOF
9584 int main() { return 0;}
9585 _LT_EOF
9586 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9587 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9588 _lt_result=$?
9589 if test -s conftest.err && $GREP force_load conftest.err; then
9590 cat conftest.err >&5
9591 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9592 lt_cv_ld_force_load=yes
9593 else
9594 cat conftest.err >&5
9596 rm -f conftest.err libconftest.a conftest conftest.c
9597 rm -rf conftest.dSYM
9600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9601 $as_echo "$lt_cv_ld_force_load" >&6; }
9602 case $host_os in
9603 rhapsody* | darwin1.[012])
9604 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9605 darwin1.*)
9606 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9607 darwin*) # darwin 5.x on
9608 # if running on 10.5 or later, the deployment target defaults
9609 # to the OS version, if on x86, and 10.4, the deployment
9610 # target defaults to 10.4. Don't you love it?
9611 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9612 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9613 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9614 10.[012][,.]*)
9615 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9616 10.*)
9617 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9618 esac
9620 esac
9621 if test yes = "$lt_cv_apple_cc_single_mod"; then
9622 _lt_dar_single_mod='$single_module'
9624 if test yes = "$lt_cv_ld_exported_symbols_list"; then
9625 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9626 else
9627 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9629 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9630 _lt_dsymutil='~$DSYMUTIL $lib || :'
9631 else
9632 _lt_dsymutil=
9635 esac
9637 # func_munge_path_list VARIABLE PATH
9638 # -----------------------------------
9639 # VARIABLE is name of variable containing _space_ separated list of
9640 # directories to be munged by the contents of PATH, which is string
9641 # having a format:
9642 # "DIR[:DIR]:"
9643 # string "DIR[ DIR]" will be prepended to VARIABLE
9644 # ":DIR[:DIR]"
9645 # string "DIR[ DIR]" will be appended to VARIABLE
9646 # "DIRP[:DIRP]::[DIRA:]DIRA"
9647 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9648 # "DIRA[ DIRA]" will be appended to VARIABLE
9649 # "DIR[:DIR]"
9650 # VARIABLE will be replaced by "DIR[ DIR]"
9651 func_munge_path_list ()
9653 case x$2 in
9657 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9659 x:*)
9660 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9662 *::*)
9663 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9664 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9667 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9669 esac
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9674 $as_echo_n "checking for ANSI C header files... " >&6; }
9675 if ${ac_cv_header_stdc+:} false; then :
9676 $as_echo_n "(cached) " >&6
9677 else
9678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9679 /* end confdefs.h. */
9680 #include <stdlib.h>
9681 #include <stdarg.h>
9682 #include <string.h>
9683 #include <float.h>
9686 main ()
9690 return 0;
9692 _ACEOF
9693 if ac_fn_c_try_compile "$LINENO"; then :
9694 ac_cv_header_stdc=yes
9695 else
9696 ac_cv_header_stdc=no
9698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9700 if test $ac_cv_header_stdc = yes; then
9701 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9703 /* end confdefs.h. */
9704 #include <string.h>
9706 _ACEOF
9707 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9708 $EGREP "memchr" >/dev/null 2>&1; then :
9710 else
9711 ac_cv_header_stdc=no
9713 rm -f conftest*
9717 if test $ac_cv_header_stdc = yes; then
9718 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9720 /* end confdefs.h. */
9721 #include <stdlib.h>
9723 _ACEOF
9724 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9725 $EGREP "free" >/dev/null 2>&1; then :
9727 else
9728 ac_cv_header_stdc=no
9730 rm -f conftest*
9734 if test $ac_cv_header_stdc = yes; then
9735 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9736 if test "$cross_compiling" = yes; then :
9738 else
9739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9740 /* end confdefs.h. */
9741 #include <ctype.h>
9742 #include <stdlib.h>
9743 #if ((' ' & 0x0FF) == 0x020)
9744 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9745 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9746 #else
9747 # define ISLOWER(c) \
9748 (('a' <= (c) && (c) <= 'i') \
9749 || ('j' <= (c) && (c) <= 'r') \
9750 || ('s' <= (c) && (c) <= 'z'))
9751 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9752 #endif
9754 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9756 main ()
9758 int i;
9759 for (i = 0; i < 256; i++)
9760 if (XOR (islower (i), ISLOWER (i))
9761 || toupper (i) != TOUPPER (i))
9762 return 2;
9763 return 0;
9765 _ACEOF
9766 if ac_fn_c_try_run "$LINENO"; then :
9768 else
9769 ac_cv_header_stdc=no
9771 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9772 conftest.$ac_objext conftest.beam conftest.$ac_ext
9777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9778 $as_echo "$ac_cv_header_stdc" >&6; }
9779 if test $ac_cv_header_stdc = yes; then
9781 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9785 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9786 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9787 inttypes.h stdint.h unistd.h
9788 do :
9789 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9790 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9792 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9793 cat >>confdefs.h <<_ACEOF
9794 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9795 _ACEOF
9799 done
9802 for ac_header in dlfcn.h
9803 do :
9804 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9806 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9807 cat >>confdefs.h <<_ACEOF
9808 #define HAVE_DLFCN_H 1
9809 _ACEOF
9813 done
9819 # Set options
9823 enable_dlopen=no
9826 enable_win32_dll=no
9829 # Check whether --enable-shared was given.
9830 if test "${enable_shared+set}" = set; then :
9831 enableval=$enable_shared; p=${PACKAGE-default}
9832 case $enableval in
9833 yes) enable_shared=yes ;;
9834 no) enable_shared=no ;;
9836 enable_shared=no
9837 # Look at the argument we got. We use all the common list separators.
9838 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9839 for pkg in $enableval; do
9840 IFS=$lt_save_ifs
9841 if test "X$pkg" = "X$p"; then
9842 enable_shared=yes
9844 done
9845 IFS=$lt_save_ifs
9847 esac
9848 else
9849 enable_shared=yes
9860 # Check whether --enable-static was given.
9861 if test "${enable_static+set}" = set; then :
9862 enableval=$enable_static; p=${PACKAGE-default}
9863 case $enableval in
9864 yes) enable_static=yes ;;
9865 no) enable_static=no ;;
9867 enable_static=no
9868 # Look at the argument we got. We use all the common list separators.
9869 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9870 for pkg in $enableval; do
9871 IFS=$lt_save_ifs
9872 if test "X$pkg" = "X$p"; then
9873 enable_static=yes
9875 done
9876 IFS=$lt_save_ifs
9878 esac
9879 else
9880 enable_static=yes
9892 # Check whether --with-pic was given.
9893 if test "${with_pic+set}" = set; then :
9894 withval=$with_pic; lt_p=${PACKAGE-default}
9895 case $withval in
9896 yes|no) pic_mode=$withval ;;
9898 pic_mode=default
9899 # Look at the argument we got. We use all the common list separators.
9900 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9901 for lt_pkg in $withval; do
9902 IFS=$lt_save_ifs
9903 if test "X$lt_pkg" = "X$lt_p"; then
9904 pic_mode=yes
9906 done
9907 IFS=$lt_save_ifs
9909 esac
9910 else
9911 pic_mode=default
9921 # Check whether --enable-fast-install was given.
9922 if test "${enable_fast_install+set}" = set; then :
9923 enableval=$enable_fast_install; p=${PACKAGE-default}
9924 case $enableval in
9925 yes) enable_fast_install=yes ;;
9926 no) enable_fast_install=no ;;
9928 enable_fast_install=no
9929 # Look at the argument we got. We use all the common list separators.
9930 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9931 for pkg in $enableval; do
9932 IFS=$lt_save_ifs
9933 if test "X$pkg" = "X$p"; then
9934 enable_fast_install=yes
9936 done
9937 IFS=$lt_save_ifs
9939 esac
9940 else
9941 enable_fast_install=yes
9951 shared_archive_member_spec=
9952 case $host,$enable_shared in
9953 power*-*-aix[5-9]*,yes)
9954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9955 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9957 # Check whether --with-aix-soname was given.
9958 if test "${with_aix_soname+set}" = set; then :
9959 withval=$with_aix_soname; case $withval in
9960 aix|svr4|both)
9963 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9965 esac
9966 lt_cv_with_aix_soname=$with_aix_soname
9967 else
9968 if ${lt_cv_with_aix_soname+:} false; then :
9969 $as_echo_n "(cached) " >&6
9970 else
9971 lt_cv_with_aix_soname=aix
9974 with_aix_soname=$lt_cv_with_aix_soname
9977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9978 $as_echo "$with_aix_soname" >&6; }
9979 if test aix != "$with_aix_soname"; then
9980 # For the AIX way of multilib, we name the shared archive member
9981 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9982 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9983 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9984 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9985 if test 64 = "${OBJECT_MODE-32}"; then
9986 shared_archive_member_spec=shr_64
9987 else
9988 shared_archive_member_spec=shr
9993 with_aix_soname=aix
9995 esac
10006 # This can be used to rebuild libtool when needed
10007 LIBTOOL_DEPS=$ltmain
10009 # Always use our own libtool.
10010 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10041 test -z "$LN_S" && LN_S="ln -s"
10056 if test -n "${ZSH_VERSION+set}"; then
10057 setopt NO_GLOB_SUBST
10060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10061 $as_echo_n "checking for objdir... " >&6; }
10062 if ${lt_cv_objdir+:} false; then :
10063 $as_echo_n "(cached) " >&6
10064 else
10065 rm -f .libs 2>/dev/null
10066 mkdir .libs 2>/dev/null
10067 if test -d .libs; then
10068 lt_cv_objdir=.libs
10069 else
10070 # MS-DOS does not allow filenames that begin with a dot.
10071 lt_cv_objdir=_libs
10073 rmdir .libs 2>/dev/null
10075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10076 $as_echo "$lt_cv_objdir" >&6; }
10077 objdir=$lt_cv_objdir
10083 cat >>confdefs.h <<_ACEOF
10084 #define LT_OBJDIR "$lt_cv_objdir/"
10085 _ACEOF
10090 case $host_os in
10091 aix3*)
10092 # AIX sometimes has problems with the GCC collect2 program. For some
10093 # reason, if we set the COLLECT_NAMES environment variable, the problems
10094 # vanish in a puff of smoke.
10095 if test set != "${COLLECT_NAMES+set}"; then
10096 COLLECT_NAMES=
10097 export COLLECT_NAMES
10100 esac
10102 # Global variables:
10103 ofile=libtool
10104 can_build_shared=yes
10106 # All known linkers require a '.a' archive for static linking (except MSVC,
10107 # which needs '.lib').
10108 libext=a
10110 with_gnu_ld=$lt_cv_prog_gnu_ld
10112 old_CC=$CC
10113 old_CFLAGS=$CFLAGS
10115 # Set sane defaults for various variables
10116 test -z "$CC" && CC=cc
10117 test -z "$LTCC" && LTCC=$CC
10118 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10119 test -z "$LD" && LD=ld
10120 test -z "$ac_objext" && ac_objext=o
10122 func_cc_basename $compiler
10123 cc_basename=$func_cc_basename_result
10126 # Only perform the check for file, if the check method requires it
10127 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10128 case $deplibs_check_method in
10129 file_magic*)
10130 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10132 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10133 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10134 $as_echo_n "(cached) " >&6
10135 else
10136 case $MAGIC_CMD in
10137 [\\/*] | ?:[\\/]*)
10138 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10141 lt_save_MAGIC_CMD=$MAGIC_CMD
10142 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10143 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10144 for ac_dir in $ac_dummy; do
10145 IFS=$lt_save_ifs
10146 test -z "$ac_dir" && ac_dir=.
10147 if test -f "$ac_dir/${ac_tool_prefix}file"; then
10148 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
10149 if test -n "$file_magic_test_file"; then
10150 case $deplibs_check_method in
10151 "file_magic "*)
10152 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10153 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10154 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10155 $EGREP "$file_magic_regex" > /dev/null; then
10157 else
10158 cat <<_LT_EOF 1>&2
10160 *** Warning: the command libtool uses to detect shared libraries,
10161 *** $file_magic_cmd, produces output that libtool cannot recognize.
10162 *** The result is that libtool may fail to recognize shared libraries
10163 *** as such. This will affect the creation of libtool libraries that
10164 *** depend on shared libraries, but programs linked with such libtool
10165 *** libraries will work regardless of this problem. Nevertheless, you
10166 *** may want to report the problem to your system manager and/or to
10167 *** bug-libtool@gnu.org
10169 _LT_EOF
10170 fi ;;
10171 esac
10173 break
10175 done
10176 IFS=$lt_save_ifs
10177 MAGIC_CMD=$lt_save_MAGIC_CMD
10179 esac
10182 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10183 if test -n "$MAGIC_CMD"; then
10184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10185 $as_echo "$MAGIC_CMD" >&6; }
10186 else
10187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10188 $as_echo "no" >&6; }
10195 if test -z "$lt_cv_path_MAGIC_CMD"; then
10196 if test -n "$ac_tool_prefix"; then
10197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10198 $as_echo_n "checking for file... " >&6; }
10199 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10200 $as_echo_n "(cached) " >&6
10201 else
10202 case $MAGIC_CMD in
10203 [\\/*] | ?:[\\/]*)
10204 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10207 lt_save_MAGIC_CMD=$MAGIC_CMD
10208 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10209 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10210 for ac_dir in $ac_dummy; do
10211 IFS=$lt_save_ifs
10212 test -z "$ac_dir" && ac_dir=.
10213 if test -f "$ac_dir/file"; then
10214 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10215 if test -n "$file_magic_test_file"; then
10216 case $deplibs_check_method in
10217 "file_magic "*)
10218 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10219 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10220 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10221 $EGREP "$file_magic_regex" > /dev/null; then
10223 else
10224 cat <<_LT_EOF 1>&2
10226 *** Warning: the command libtool uses to detect shared libraries,
10227 *** $file_magic_cmd, produces output that libtool cannot recognize.
10228 *** The result is that libtool may fail to recognize shared libraries
10229 *** as such. This will affect the creation of libtool libraries that
10230 *** depend on shared libraries, but programs linked with such libtool
10231 *** libraries will work regardless of this problem. Nevertheless, you
10232 *** may want to report the problem to your system manager and/or to
10233 *** bug-libtool@gnu.org
10235 _LT_EOF
10236 fi ;;
10237 esac
10239 break
10241 done
10242 IFS=$lt_save_ifs
10243 MAGIC_CMD=$lt_save_MAGIC_CMD
10245 esac
10248 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10249 if test -n "$MAGIC_CMD"; then
10250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10251 $as_echo "$MAGIC_CMD" >&6; }
10252 else
10253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10254 $as_echo "no" >&6; }
10258 else
10259 MAGIC_CMD=:
10265 esac
10267 # Use C for the default configuration in the libtool script
10269 lt_save_CC=$CC
10270 ac_ext=c
10271 ac_cpp='$CPP $CPPFLAGS'
10272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10277 # Source file extension for C test sources.
10278 ac_ext=c
10280 # Object file extension for compiled C test sources.
10281 objext=o
10282 objext=$objext
10284 # Code to be used in simple compile tests
10285 lt_simple_compile_test_code="int some_variable = 0;"
10287 # Code to be used in simple link tests
10288 lt_simple_link_test_code='int main(){return(0);}'
10296 # If no C compiler was specified, use CC.
10297 LTCC=${LTCC-"$CC"}
10299 # If no C compiler flags were specified, use CFLAGS.
10300 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10302 # Allow CC to be a program name with arguments.
10303 compiler=$CC
10305 # Save the default compiler, since it gets overwritten when the other
10306 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10307 compiler_DEFAULT=$CC
10309 # save warnings/boilerplate of simple test code
10310 ac_outfile=conftest.$ac_objext
10311 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10312 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10313 _lt_compiler_boilerplate=`cat conftest.err`
10314 $RM conftest*
10316 ac_outfile=conftest.$ac_objext
10317 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10318 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10319 _lt_linker_boilerplate=`cat conftest.err`
10320 $RM -r conftest*
10323 ## CAVEAT EMPTOR:
10324 ## There is no encapsulation within the following macros, do not change
10325 ## the running order or otherwise move them around unless you know exactly
10326 ## what you are doing...
10327 if test -n "$compiler"; then
10329 lt_prog_compiler_no_builtin_flag=
10331 if test yes = "$GCC"; then
10332 case $cc_basename in
10333 nvcc*)
10334 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10336 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10337 esac
10339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10340 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10341 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10342 $as_echo_n "(cached) " >&6
10343 else
10344 lt_cv_prog_compiler_rtti_exceptions=no
10345 ac_outfile=conftest.$ac_objext
10346 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10347 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
10348 # Insert the option either (1) after the last *FLAGS variable, or
10349 # (2) before a word containing "conftest.", or (3) at the end.
10350 # Note that $ac_compile itself does not contain backslashes and begins
10351 # with a dollar sign (not a hyphen), so the echo should work correctly.
10352 # The option is referenced via a variable to avoid confusing sed.
10353 lt_compile=`echo "$ac_compile" | $SED \
10354 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10355 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10356 -e 's:$: $lt_compiler_flag:'`
10357 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10358 (eval "$lt_compile" 2>conftest.err)
10359 ac_status=$?
10360 cat conftest.err >&5
10361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10362 if (exit $ac_status) && test -s "$ac_outfile"; then
10363 # The compiler can only warn and ignore the option if not recognized
10364 # So say no if there are warnings other than the usual output.
10365 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10366 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10367 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10368 lt_cv_prog_compiler_rtti_exceptions=yes
10371 $RM conftest*
10374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10375 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10377 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10378 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10379 else
10390 lt_prog_compiler_wl=
10391 lt_prog_compiler_pic=
10392 lt_prog_compiler_static=
10395 if test yes = "$GCC"; then
10396 lt_prog_compiler_wl='-Wl,'
10397 lt_prog_compiler_static='-static'
10399 case $host_os in
10400 aix*)
10401 # All AIX code is PIC.
10402 if test ia64 = "$host_cpu"; then
10403 # AIX 5 now supports IA64 processor
10404 lt_prog_compiler_static='-Bstatic'
10406 lt_prog_compiler_pic='-fPIC'
10409 amigaos*)
10410 case $host_cpu in
10411 powerpc)
10412 # see comment about AmigaOS4 .so support
10413 lt_prog_compiler_pic='-fPIC'
10415 m68k)
10416 # FIXME: we need at least 68020 code to build shared libraries, but
10417 # adding the '-m68020' flag to GCC prevents building anything better,
10418 # like '-m68040'.
10419 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10421 esac
10424 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10425 # PIC is the default for these OSes.
10428 mingw* | cygwin* | pw32* | os2* | cegcc*)
10429 # This hack is so that the source file can tell whether it is being
10430 # built for inclusion in a dll (and should export symbols for example).
10431 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10432 # (--disable-auto-import) libraries
10433 lt_prog_compiler_pic='-DDLL_EXPORT'
10434 case $host_os in
10435 os2*)
10436 lt_prog_compiler_static='$wl-static'
10438 esac
10441 darwin* | rhapsody*)
10442 # PIC is the default on this platform
10443 # Common symbols not allowed in MH_DYLIB files
10444 lt_prog_compiler_pic='-fno-common'
10447 haiku*)
10448 # PIC is the default for Haiku.
10449 # The "-static" flag exists, but is broken.
10450 lt_prog_compiler_static=
10453 hpux*)
10454 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10455 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10456 # sets the default TLS model and affects inlining.
10457 case $host_cpu in
10458 hppa*64*)
10459 # +Z the default
10462 lt_prog_compiler_pic='-fPIC'
10464 esac
10467 interix[3-9]*)
10468 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10469 # Instead, we relocate shared libraries at runtime.
10472 msdosdjgpp*)
10473 # Just because we use GCC doesn't mean we suddenly get shared libraries
10474 # on systems that don't support them.
10475 lt_prog_compiler_can_build_shared=no
10476 enable_shared=no
10479 *nto* | *qnx*)
10480 # QNX uses GNU C++, but need to define -shared option too, otherwise
10481 # it will coredump.
10482 lt_prog_compiler_pic='-fPIC -shared'
10485 sysv4*MP*)
10486 if test -d /usr/nec; then
10487 lt_prog_compiler_pic=-Kconform_pic
10492 lt_prog_compiler_pic='-fPIC'
10494 esac
10496 case $cc_basename in
10497 nvcc*) # Cuda Compiler Driver 2.2
10498 lt_prog_compiler_wl='-Xlinker '
10499 if test -n "$lt_prog_compiler_pic"; then
10500 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10503 esac
10504 else
10505 # PORTME Check for flag to pass linker flags through the system compiler.
10506 case $host_os in
10507 aix*)
10508 lt_prog_compiler_wl='-Wl,'
10509 if test ia64 = "$host_cpu"; then
10510 # AIX 5 now supports IA64 processor
10511 lt_prog_compiler_static='-Bstatic'
10512 else
10513 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10517 darwin* | rhapsody*)
10518 # PIC is the default on this platform
10519 # Common symbols not allowed in MH_DYLIB files
10520 lt_prog_compiler_pic='-fno-common'
10521 case $cc_basename in
10522 nagfor*)
10523 # NAG Fortran compiler
10524 lt_prog_compiler_wl='-Wl,-Wl,,'
10525 lt_prog_compiler_pic='-PIC'
10526 lt_prog_compiler_static='-Bstatic'
10528 esac
10531 mingw* | cygwin* | pw32* | os2* | cegcc*)
10532 # This hack is so that the source file can tell whether it is being
10533 # built for inclusion in a dll (and should export symbols for example).
10534 lt_prog_compiler_pic='-DDLL_EXPORT'
10535 case $host_os in
10536 os2*)
10537 lt_prog_compiler_static='$wl-static'
10539 esac
10542 hpux9* | hpux10* | hpux11*)
10543 lt_prog_compiler_wl='-Wl,'
10544 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10545 # not for PA HP-UX.
10546 case $host_cpu in
10547 hppa*64*|ia64*)
10548 # +Z the default
10551 lt_prog_compiler_pic='+Z'
10553 esac
10554 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10555 lt_prog_compiler_static='$wl-a ${wl}archive'
10558 irix5* | irix6* | nonstopux*)
10559 lt_prog_compiler_wl='-Wl,'
10560 # PIC (with -KPIC) is the default.
10561 lt_prog_compiler_static='-non_shared'
10564 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10565 case $cc_basename in
10566 # old Intel for x86_64, which still supported -KPIC.
10567 ecc*)
10568 lt_prog_compiler_wl='-Wl,'
10569 lt_prog_compiler_pic='-KPIC'
10570 lt_prog_compiler_static='-static'
10572 # icc used to be incompatible with GCC.
10573 # ICC 10 doesn't accept -KPIC any more.
10574 icc* | ifort*)
10575 lt_prog_compiler_wl='-Wl,'
10576 lt_prog_compiler_pic='-fPIC'
10577 lt_prog_compiler_static='-static'
10579 # Lahey Fortran 8.1.
10580 lf95*)
10581 lt_prog_compiler_wl='-Wl,'
10582 lt_prog_compiler_pic='--shared'
10583 lt_prog_compiler_static='--static'
10585 nagfor*)
10586 # NAG Fortran compiler
10587 lt_prog_compiler_wl='-Wl,-Wl,,'
10588 lt_prog_compiler_pic='-PIC'
10589 lt_prog_compiler_static='-Bstatic'
10591 tcc*)
10592 # Fabrice Bellard et al's Tiny C Compiler
10593 lt_prog_compiler_wl='-Wl,'
10594 lt_prog_compiler_pic='-fPIC'
10595 lt_prog_compiler_static='-static'
10597 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10598 # Portland Group compilers (*not* the Pentium gcc compiler,
10599 # which looks to be a dead project)
10600 lt_prog_compiler_wl='-Wl,'
10601 lt_prog_compiler_pic='-fpic'
10602 lt_prog_compiler_static='-Bstatic'
10604 ccc*)
10605 lt_prog_compiler_wl='-Wl,'
10606 # All Alpha code is PIC.
10607 lt_prog_compiler_static='-non_shared'
10609 xl* | bgxl* | bgf* | mpixl*)
10610 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10611 lt_prog_compiler_wl='-Wl,'
10612 lt_prog_compiler_pic='-qpic'
10613 lt_prog_compiler_static='-qstaticlink'
10616 case `$CC -V 2>&1 | sed 5q` in
10617 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10618 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10619 lt_prog_compiler_pic='-KPIC'
10620 lt_prog_compiler_static='-Bstatic'
10621 lt_prog_compiler_wl=''
10623 *Sun\ F* | *Sun*Fortran*)
10624 lt_prog_compiler_pic='-KPIC'
10625 lt_prog_compiler_static='-Bstatic'
10626 lt_prog_compiler_wl='-Qoption ld '
10628 *Sun\ C*)
10629 # Sun C 5.9
10630 lt_prog_compiler_pic='-KPIC'
10631 lt_prog_compiler_static='-Bstatic'
10632 lt_prog_compiler_wl='-Wl,'
10634 *Intel*\ [CF]*Compiler*)
10635 lt_prog_compiler_wl='-Wl,'
10636 lt_prog_compiler_pic='-fPIC'
10637 lt_prog_compiler_static='-static'
10639 *Portland\ Group*)
10640 lt_prog_compiler_wl='-Wl,'
10641 lt_prog_compiler_pic='-fpic'
10642 lt_prog_compiler_static='-Bstatic'
10644 esac
10646 esac
10649 newsos6)
10650 lt_prog_compiler_pic='-KPIC'
10651 lt_prog_compiler_static='-Bstatic'
10654 *nto* | *qnx*)
10655 # QNX uses GNU C++, but need to define -shared option too, otherwise
10656 # it will coredump.
10657 lt_prog_compiler_pic='-fPIC -shared'
10660 osf3* | osf4* | osf5*)
10661 lt_prog_compiler_wl='-Wl,'
10662 # All OSF/1 code is PIC.
10663 lt_prog_compiler_static='-non_shared'
10666 rdos*)
10667 lt_prog_compiler_static='-non_shared'
10670 solaris*)
10671 lt_prog_compiler_pic='-KPIC'
10672 lt_prog_compiler_static='-Bstatic'
10673 case $cc_basename in
10674 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10675 lt_prog_compiler_wl='-Qoption ld ';;
10677 lt_prog_compiler_wl='-Wl,';;
10678 esac
10681 sunos4*)
10682 lt_prog_compiler_wl='-Qoption ld '
10683 lt_prog_compiler_pic='-PIC'
10684 lt_prog_compiler_static='-Bstatic'
10687 sysv4 | sysv4.2uw2* | sysv4.3*)
10688 lt_prog_compiler_wl='-Wl,'
10689 lt_prog_compiler_pic='-KPIC'
10690 lt_prog_compiler_static='-Bstatic'
10693 sysv4*MP*)
10694 if test -d /usr/nec; then
10695 lt_prog_compiler_pic='-Kconform_pic'
10696 lt_prog_compiler_static='-Bstatic'
10700 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10701 lt_prog_compiler_wl='-Wl,'
10702 lt_prog_compiler_pic='-KPIC'
10703 lt_prog_compiler_static='-Bstatic'
10706 unicos*)
10707 lt_prog_compiler_wl='-Wl,'
10708 lt_prog_compiler_can_build_shared=no
10711 uts4*)
10712 lt_prog_compiler_pic='-pic'
10713 lt_prog_compiler_static='-Bstatic'
10717 lt_prog_compiler_can_build_shared=no
10719 esac
10722 case $host_os in
10723 # For platforms that do not support PIC, -DPIC is meaningless:
10724 *djgpp*)
10725 lt_prog_compiler_pic=
10728 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10730 esac
10732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10733 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10734 if ${lt_cv_prog_compiler_pic+:} false; then :
10735 $as_echo_n "(cached) " >&6
10736 else
10737 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10740 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10741 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10744 # Check to make sure the PIC flag actually works.
10746 if test -n "$lt_prog_compiler_pic"; then
10747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10748 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10749 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10750 $as_echo_n "(cached) " >&6
10751 else
10752 lt_cv_prog_compiler_pic_works=no
10753 ac_outfile=conftest.$ac_objext
10754 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10755 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
10756 # Insert the option either (1) after the last *FLAGS variable, or
10757 # (2) before a word containing "conftest.", or (3) at the end.
10758 # Note that $ac_compile itself does not contain backslashes and begins
10759 # with a dollar sign (not a hyphen), so the echo should work correctly.
10760 # The option is referenced via a variable to avoid confusing sed.
10761 lt_compile=`echo "$ac_compile" | $SED \
10762 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10763 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10764 -e 's:$: $lt_compiler_flag:'`
10765 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10766 (eval "$lt_compile" 2>conftest.err)
10767 ac_status=$?
10768 cat conftest.err >&5
10769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10770 if (exit $ac_status) && test -s "$ac_outfile"; then
10771 # The compiler can only warn and ignore the option if not recognized
10772 # So say no if there are warnings other than the usual output.
10773 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10774 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10775 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10776 lt_cv_prog_compiler_pic_works=yes
10779 $RM conftest*
10782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10783 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10785 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10786 case $lt_prog_compiler_pic in
10787 "" | " "*) ;;
10788 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10789 esac
10790 else
10791 lt_prog_compiler_pic=
10792 lt_prog_compiler_can_build_shared=no
10808 # Check to make sure the static flag actually works.
10810 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10812 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10813 if ${lt_cv_prog_compiler_static_works+:} false; then :
10814 $as_echo_n "(cached) " >&6
10815 else
10816 lt_cv_prog_compiler_static_works=no
10817 save_LDFLAGS=$LDFLAGS
10818 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10819 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10820 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10821 # The linker can only warn and ignore the option if not recognized
10822 # So say no if there are warnings
10823 if test -s conftest.err; then
10824 # Append any errors to the config.log.
10825 cat conftest.err 1>&5
10826 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10827 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10828 if diff conftest.exp conftest.er2 >/dev/null; then
10829 lt_cv_prog_compiler_static_works=yes
10831 else
10832 lt_cv_prog_compiler_static_works=yes
10835 $RM -r conftest*
10836 LDFLAGS=$save_LDFLAGS
10839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10840 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10842 if test yes = "$lt_cv_prog_compiler_static_works"; then
10844 else
10845 lt_prog_compiler_static=
10854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10855 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10856 if ${lt_cv_prog_compiler_c_o+:} false; then :
10857 $as_echo_n "(cached) " >&6
10858 else
10859 lt_cv_prog_compiler_c_o=no
10860 $RM -r conftest 2>/dev/null
10861 mkdir conftest
10862 cd conftest
10863 mkdir out
10864 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10866 lt_compiler_flag="-o out/conftest2.$ac_objext"
10867 # Insert the option either (1) after the last *FLAGS variable, or
10868 # (2) before a word containing "conftest.", or (3) at the end.
10869 # Note that $ac_compile itself does not contain backslashes and begins
10870 # with a dollar sign (not a hyphen), so the echo should work correctly.
10871 lt_compile=`echo "$ac_compile" | $SED \
10872 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10873 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10874 -e 's:$: $lt_compiler_flag:'`
10875 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10876 (eval "$lt_compile" 2>out/conftest.err)
10877 ac_status=$?
10878 cat out/conftest.err >&5
10879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10880 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10881 then
10882 # The compiler can only warn and ignore the option if not recognized
10883 # So say no if there are warnings
10884 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10885 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10886 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10887 lt_cv_prog_compiler_c_o=yes
10890 chmod u+w . 2>&5
10891 $RM conftest*
10892 # SGI C++ compiler will create directory out/ii_files/ for
10893 # template instantiation
10894 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10895 $RM out/* && rmdir out
10896 cd ..
10897 $RM -r conftest
10898 $RM conftest*
10901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10902 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10910 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10911 if ${lt_cv_prog_compiler_c_o+:} false; then :
10912 $as_echo_n "(cached) " >&6
10913 else
10914 lt_cv_prog_compiler_c_o=no
10915 $RM -r conftest 2>/dev/null
10916 mkdir conftest
10917 cd conftest
10918 mkdir out
10919 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10921 lt_compiler_flag="-o out/conftest2.$ac_objext"
10922 # Insert the option either (1) after the last *FLAGS variable, or
10923 # (2) before a word containing "conftest.", or (3) at the end.
10924 # Note that $ac_compile itself does not contain backslashes and begins
10925 # with a dollar sign (not a hyphen), so the echo should work correctly.
10926 lt_compile=`echo "$ac_compile" | $SED \
10927 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10928 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10929 -e 's:$: $lt_compiler_flag:'`
10930 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10931 (eval "$lt_compile" 2>out/conftest.err)
10932 ac_status=$?
10933 cat out/conftest.err >&5
10934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10935 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10936 then
10937 # The compiler can only warn and ignore the option if not recognized
10938 # So say no if there are warnings
10939 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10940 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10941 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10942 lt_cv_prog_compiler_c_o=yes
10945 chmod u+w . 2>&5
10946 $RM conftest*
10947 # SGI C++ compiler will create directory out/ii_files/ for
10948 # template instantiation
10949 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10950 $RM out/* && rmdir out
10951 cd ..
10952 $RM -r conftest
10953 $RM conftest*
10956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10957 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10962 hard_links=nottested
10963 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10964 # do not overwrite the value of need_locks provided by the user
10965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10966 $as_echo_n "checking if we can lock with hard links... " >&6; }
10967 hard_links=yes
10968 $RM conftest*
10969 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10970 touch conftest.a
10971 ln conftest.a conftest.b 2>&5 || hard_links=no
10972 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10974 $as_echo "$hard_links" >&6; }
10975 if test no = "$hard_links"; then
10976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10977 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10978 need_locks=warn
10980 else
10981 need_locks=no
10989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10990 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10992 runpath_var=
10993 allow_undefined_flag=
10994 always_export_symbols=no
10995 archive_cmds=
10996 archive_expsym_cmds=
10997 compiler_needs_object=no
10998 enable_shared_with_static_runtimes=no
10999 export_dynamic_flag_spec=
11000 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11001 hardcode_automatic=no
11002 hardcode_direct=no
11003 hardcode_direct_absolute=no
11004 hardcode_libdir_flag_spec=
11005 hardcode_libdir_separator=
11006 hardcode_minus_L=no
11007 hardcode_shlibpath_var=unsupported
11008 inherit_rpath=no
11009 link_all_deplibs=unknown
11010 module_cmds=
11011 module_expsym_cmds=
11012 old_archive_from_new_cmds=
11013 old_archive_from_expsyms_cmds=
11014 thread_safe_flag_spec=
11015 whole_archive_flag_spec=
11016 # include_expsyms should be a list of space-separated symbols to be *always*
11017 # included in the symbol list
11018 include_expsyms=
11019 # exclude_expsyms can be an extended regexp of symbols to exclude
11020 # it will be wrapped by ' (' and ')$', so one must not match beginning or
11021 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
11022 # as well as any symbol that contains 'd'.
11023 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11024 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11025 # platforms (ab)use it in PIC code, but their linkers get confused if
11026 # the symbol is explicitly referenced. Since portable code cannot
11027 # rely on this symbol name, it's probably fine to never include it in
11028 # preloaded symbol tables.
11029 # Exclude shared library initialization/finalization symbols.
11030 extract_expsyms_cmds=
11032 case $host_os in
11033 cygwin* | mingw* | pw32* | cegcc*)
11034 # FIXME: the MSVC++ port hasn't been tested in a loooong time
11035 # When not using gcc, we currently assume that we are using
11036 # Microsoft Visual C++.
11037 if test yes != "$GCC"; then
11038 with_gnu_ld=no
11041 interix*)
11042 # we just hope/assume this is gcc and not c89 (= MSVC++)
11043 with_gnu_ld=yes
11045 openbsd* | bitrig*)
11046 with_gnu_ld=no
11048 esac
11050 ld_shlibs=yes
11052 # On some targets, GNU ld is compatible enough with the native linker
11053 # that we're better off using the native interface for both.
11054 lt_use_gnu_ld_interface=no
11055 if test yes = "$with_gnu_ld"; then
11056 case $host_os in
11057 aix*)
11058 # The AIX port of GNU ld has always aspired to compatibility
11059 # with the native linker. However, as the warning in the GNU ld
11060 # block says, versions before 2.19.5* couldn't really create working
11061 # shared libraries, regardless of the interface used.
11062 case `$LD -v 2>&1` in
11063 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11064 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11065 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11067 lt_use_gnu_ld_interface=yes
11069 esac
11072 lt_use_gnu_ld_interface=yes
11074 esac
11077 if test yes = "$lt_use_gnu_ld_interface"; then
11078 # If archive_cmds runs LD, not CC, wlarc should be empty
11079 wlarc='$wl'
11081 # Set some defaults for GNU ld with shared library support. These
11082 # are reset later if shared libraries are not supported. Putting them
11083 # here allows them to be overridden if necessary.
11084 runpath_var=LD_RUN_PATH
11085 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11086 export_dynamic_flag_spec='$wl--export-dynamic'
11087 # ancient GNU ld didn't support --whole-archive et. al.
11088 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11089 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
11090 else
11091 whole_archive_flag_spec=
11093 supports_anon_versioning=no
11094 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
11095 *GNU\ gold*) supports_anon_versioning=yes ;;
11096 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11097 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11098 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11099 *\ 2.11.*) ;; # other 2.11 versions
11100 *) supports_anon_versioning=yes ;;
11101 esac
11103 # See if GNU ld supports shared libraries.
11104 case $host_os in
11105 aix[3-9]*)
11106 # On AIX/PPC, the GNU linker is very broken
11107 if test ia64 != "$host_cpu"; then
11108 ld_shlibs=no
11109 cat <<_LT_EOF 1>&2
11111 *** Warning: the GNU linker, at least up to release 2.19, is reported
11112 *** to be unable to reliably create shared libraries on AIX.
11113 *** Therefore, libtool is disabling shared libraries support. If you
11114 *** really care for shared libraries, you may want to install binutils
11115 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11116 *** You will then need to restart the configuration process.
11118 _LT_EOF
11122 amigaos*)
11123 case $host_cpu in
11124 powerpc)
11125 # see comment about AmigaOS4 .so support
11126 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11127 archive_expsym_cmds=''
11129 m68k)
11130 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)'
11131 hardcode_libdir_flag_spec='-L$libdir'
11132 hardcode_minus_L=yes
11134 esac
11137 beos*)
11138 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11139 allow_undefined_flag=unsupported
11140 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11141 # support --undefined. This deserves some investigation. FIXME
11142 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11143 else
11144 ld_shlibs=no
11148 cygwin* | mingw* | pw32* | cegcc*)
11149 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11150 # as there is no search path for DLLs.
11151 hardcode_libdir_flag_spec='-L$libdir'
11152 export_dynamic_flag_spec='$wl--export-all-symbols'
11153 allow_undefined_flag=unsupported
11154 always_export_symbols=no
11155 enable_shared_with_static_runtimes=yes
11156 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'
11157 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11159 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11160 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11161 # If the export-symbols file already is a .def file, use it as
11162 # is; otherwise, prepend EXPORTS...
11163 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11164 cp $export_symbols $output_objdir/$soname.def;
11165 else
11166 echo EXPORTS > $output_objdir/$soname.def;
11167 cat $export_symbols >> $output_objdir/$soname.def;
11169 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11170 else
11171 ld_shlibs=no
11175 haiku*)
11176 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11177 link_all_deplibs=yes
11180 os2*)
11181 hardcode_libdir_flag_spec='-L$libdir'
11182 hardcode_minus_L=yes
11183 allow_undefined_flag=unsupported
11184 shrext_cmds=.dll
11185 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11186 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11187 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11188 $ECHO EXPORTS >> $output_objdir/$libname.def~
11189 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11190 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11191 emximp -o $lib $output_objdir/$libname.def'
11192 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11193 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11194 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11195 $ECHO EXPORTS >> $output_objdir/$libname.def~
11196 prefix_cmds="$SED"~
11197 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11198 prefix_cmds="$prefix_cmds -e 1d";
11200 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11201 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11202 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11203 emximp -o $lib $output_objdir/$libname.def'
11204 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11205 enable_shared_with_static_runtimes=yes
11208 interix[3-9]*)
11209 hardcode_direct=no
11210 hardcode_shlibpath_var=no
11211 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11212 export_dynamic_flag_spec='$wl-E'
11213 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11214 # Instead, shared libraries are loaded at an image base (0x10000000 by
11215 # default) and relocated if they conflict, which is a slow very memory
11216 # consuming and fragmenting process. To avoid this, we pick a random,
11217 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11218 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11219 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11220 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'
11223 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11224 tmp_diet=no
11225 if test linux-dietlibc = "$host_os"; then
11226 case $cc_basename in
11227 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11228 esac
11230 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11231 && test no = "$tmp_diet"
11232 then
11233 tmp_addflag=' $pic_flag'
11234 tmp_sharedflag='-shared'
11235 case $cc_basename,$host_cpu in
11236 pgcc*) # Portland Group C compiler
11237 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'
11238 tmp_addflag=' $pic_flag'
11240 pgf77* | pgf90* | pgf95* | pgfortran*)
11241 # Portland Group f77 and f90 compilers
11242 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'
11243 tmp_addflag=' $pic_flag -Mnomain' ;;
11244 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11245 tmp_addflag=' -i_dynamic' ;;
11246 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11247 tmp_addflag=' -i_dynamic -nofor_main' ;;
11248 ifc* | ifort*) # Intel Fortran compiler
11249 tmp_addflag=' -nofor_main' ;;
11250 lf95*) # Lahey Fortran 8.1
11251 whole_archive_flag_spec=
11252 tmp_sharedflag='--shared' ;;
11253 nagfor*) # NAGFOR 5.3
11254 tmp_sharedflag='-Wl,-shared' ;;
11255 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11256 tmp_sharedflag='-qmkshrobj'
11257 tmp_addflag= ;;
11258 nvcc*) # Cuda Compiler Driver 2.2
11259 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'
11260 compiler_needs_object=yes
11262 esac
11263 case `$CC -V 2>&1 | sed 5q` in
11264 *Sun\ C*) # Sun C 5.9
11265 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'
11266 compiler_needs_object=yes
11267 tmp_sharedflag='-G' ;;
11268 *Sun\ F*) # Sun Fortran 8.3
11269 tmp_sharedflag='-G' ;;
11270 esac
11271 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11273 if test yes = "$supports_anon_versioning"; then
11274 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11275 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11276 echo "local: *; };" >> $output_objdir/$libname.ver~
11277 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11280 case $cc_basename in
11281 tcc*)
11282 export_dynamic_flag_spec='-rdynamic'
11284 xlf* | bgf* | bgxlf* | mpixlf*)
11285 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11286 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11287 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11288 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11289 if test yes = "$supports_anon_versioning"; then
11290 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11291 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11292 echo "local: *; };" >> $output_objdir/$libname.ver~
11293 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11296 esac
11297 else
11298 ld_shlibs=no
11302 netbsd*)
11303 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11304 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11305 wlarc=
11306 else
11307 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11308 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11312 solaris*)
11313 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11314 ld_shlibs=no
11315 cat <<_LT_EOF 1>&2
11317 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11318 *** create shared libraries on Solaris systems. Therefore, libtool
11319 *** is disabling shared libraries support. We urge you to upgrade GNU
11320 *** binutils to release 2.9.1 or newer. Another option is to modify
11321 *** your PATH or compiler configuration so that the native linker is
11322 *** used, and then restart.
11324 _LT_EOF
11325 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11326 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11327 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11328 else
11329 ld_shlibs=no
11333 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11334 case `$LD -v 2>&1` in
11335 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11336 ld_shlibs=no
11337 cat <<_LT_EOF 1>&2
11339 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11340 *** reliably create shared libraries on SCO systems. Therefore, libtool
11341 *** is disabling shared libraries support. We urge you to upgrade GNU
11342 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11343 *** your PATH or compiler configuration so that the native linker is
11344 *** used, and then restart.
11346 _LT_EOF
11349 # For security reasons, it is highly recommended that you always
11350 # use absolute paths for naming shared libraries, and exclude the
11351 # DT_RUNPATH tag from executables and libraries. But doing so
11352 # requires that you compile everything twice, which is a pain.
11353 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11354 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11355 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11356 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11357 else
11358 ld_shlibs=no
11361 esac
11364 sunos4*)
11365 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11366 wlarc=
11367 hardcode_direct=yes
11368 hardcode_shlibpath_var=no
11372 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11373 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11374 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11375 else
11376 ld_shlibs=no
11379 esac
11381 if test no = "$ld_shlibs"; then
11382 runpath_var=
11383 hardcode_libdir_flag_spec=
11384 export_dynamic_flag_spec=
11385 whole_archive_flag_spec=
11387 else
11388 # PORTME fill in a description of your system's linker (not GNU ld)
11389 case $host_os in
11390 aix3*)
11391 allow_undefined_flag=unsupported
11392 always_export_symbols=yes
11393 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'
11394 # Note: this linker hardcodes the directories in LIBPATH if there
11395 # are no directories specified by -L.
11396 hardcode_minus_L=yes
11397 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11398 # Neither direct hardcoding nor static linking is supported with a
11399 # broken collect2.
11400 hardcode_direct=unsupported
11404 aix[4-9]*)
11405 if test ia64 = "$host_cpu"; then
11406 # On IA64, the linker does run time linking by default, so we don't
11407 # have to do anything special.
11408 aix_use_runtimelinking=no
11409 exp_sym_flag='-Bexport'
11410 no_entry_flag=
11411 else
11412 # If we're using GNU nm, then we don't want the "-C" option.
11413 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
11414 # Without the "-l" option, or with the "-B" option, AIX nm treats
11415 # weak defined symbols like other global defined symbols, whereas
11416 # GNU nm marks them as "W".
11417 # While the 'weak' keyword is ignored in the Export File, we need
11418 # it in the Import File for the 'aix-soname' feature, so we have
11419 # to replace the "-B" option with "-P" for AIX nm.
11420 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11421 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'
11422 else
11423 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'
11425 aix_use_runtimelinking=no
11427 # Test if we are trying to use run time linking or normal
11428 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11429 # have runtime linking enabled, and use it for executables.
11430 # For shared libraries, we enable/disable runtime linking
11431 # depending on the kind of the shared library created -
11432 # when "with_aix_soname,aix_use_runtimelinking" is:
11433 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
11434 # "aix,yes" lib.so shared, rtl:yes, for executables
11435 # lib.a static archive
11436 # "both,no" lib.so.V(shr.o) shared, rtl:yes
11437 # lib.a(lib.so.V) shared, rtl:no, for executables
11438 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11439 # lib.a(lib.so.V) shared, rtl:no
11440 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
11441 # lib.a static archive
11442 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11443 for ld_flag in $LDFLAGS; do
11444 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11445 aix_use_runtimelinking=yes
11446 break
11448 done
11449 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11450 # With aix-soname=svr4, we create the lib.so.V shared archives only,
11451 # so we don't have lib.a shared libs to link our executables.
11452 # We have to force runtime linking in this case.
11453 aix_use_runtimelinking=yes
11454 LDFLAGS="$LDFLAGS -Wl,-brtl"
11457 esac
11459 exp_sym_flag='-bexport'
11460 no_entry_flag='-bnoentry'
11463 # When large executables or shared objects are built, AIX ld can
11464 # have problems creating the table of contents. If linking a library
11465 # or program results in "error TOC overflow" add -mminimal-toc to
11466 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11467 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11469 archive_cmds=''
11470 hardcode_direct=yes
11471 hardcode_direct_absolute=yes
11472 hardcode_libdir_separator=':'
11473 link_all_deplibs=yes
11474 file_list_spec='$wl-f,'
11475 case $with_aix_soname,$aix_use_runtimelinking in
11476 aix,*) ;; # traditional, no import file
11477 svr4,* | *,yes) # use import file
11478 # The Import File defines what to hardcode.
11479 hardcode_direct=no
11480 hardcode_direct_absolute=no
11482 esac
11484 if test yes = "$GCC"; then
11485 case $host_os in aix4.[012]|aix4.[012].*)
11486 # We only want to do this on AIX 4.2 and lower, the check
11487 # below for broken collect2 doesn't work under 4.3+
11488 collect2name=`$CC -print-prog-name=collect2`
11489 if test -f "$collect2name" &&
11490 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11491 then
11492 # We have reworked collect2
11494 else
11495 # We have old collect2
11496 hardcode_direct=unsupported
11497 # It fails to find uninstalled libraries when the uninstalled
11498 # path is not listed in the libpath. Setting hardcode_minus_L
11499 # to unsupported forces relinking
11500 hardcode_minus_L=yes
11501 hardcode_libdir_flag_spec='-L$libdir'
11502 hardcode_libdir_separator=
11505 esac
11506 shared_flag='-shared'
11507 if test yes = "$aix_use_runtimelinking"; then
11508 shared_flag="$shared_flag "'$wl-G'
11510 # Need to ensure runtime linking is disabled for the traditional
11511 # shared library, or the linker may eventually find shared libraries
11512 # /with/ Import File - we do not want to mix them.
11513 shared_flag_aix='-shared'
11514 shared_flag_svr4='-shared $wl-G'
11515 else
11516 # not using gcc
11517 if test ia64 = "$host_cpu"; then
11518 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11519 # chokes on -Wl,-G. The following line is correct:
11520 shared_flag='-G'
11521 else
11522 if test yes = "$aix_use_runtimelinking"; then
11523 shared_flag='$wl-G'
11524 else
11525 shared_flag='$wl-bM:SRE'
11527 shared_flag_aix='$wl-bM:SRE'
11528 shared_flag_svr4='$wl-G'
11532 export_dynamic_flag_spec='$wl-bexpall'
11533 # It seems that -bexpall does not export symbols beginning with
11534 # underscore (_), so it is better to generate a list of symbols to export.
11535 always_export_symbols=yes
11536 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11537 # Warning - without using the other runtime loading flags (-brtl),
11538 # -berok will link without error, but may produce a broken library.
11539 allow_undefined_flag='-berok'
11540 # Determine the default libpath from the value encoded in an
11541 # empty executable.
11542 if test set = "${lt_cv_aix_libpath+set}"; then
11543 aix_libpath=$lt_cv_aix_libpath
11544 else
11545 if ${lt_cv_aix_libpath_+:} false; then :
11546 $as_echo_n "(cached) " >&6
11547 else
11548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11549 /* end confdefs.h. */
11552 main ()
11556 return 0;
11558 _ACEOF
11559 if ac_fn_c_try_link "$LINENO"; then :
11561 lt_aix_libpath_sed='
11562 /Import File Strings/,/^$/ {
11563 /^0/ {
11564 s/^0 *\([^ ]*\) *$/\1/
11568 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11569 # Check for a 64-bit object if we didn't find anything.
11570 if test -z "$lt_cv_aix_libpath_"; then
11571 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11574 rm -f core conftest.err conftest.$ac_objext \
11575 conftest$ac_exeext conftest.$ac_ext
11576 if test -z "$lt_cv_aix_libpath_"; then
11577 lt_cv_aix_libpath_=/usr/lib:/lib
11582 aix_libpath=$lt_cv_aix_libpath_
11585 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11586 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
11587 else
11588 if test ia64 = "$host_cpu"; then
11589 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11590 allow_undefined_flag="-z nodefs"
11591 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"
11592 else
11593 # Determine the default libpath from the value encoded in an
11594 # empty executable.
11595 if test set = "${lt_cv_aix_libpath+set}"; then
11596 aix_libpath=$lt_cv_aix_libpath
11597 else
11598 if ${lt_cv_aix_libpath_+:} false; then :
11599 $as_echo_n "(cached) " >&6
11600 else
11601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11602 /* end confdefs.h. */
11605 main ()
11609 return 0;
11611 _ACEOF
11612 if ac_fn_c_try_link "$LINENO"; then :
11614 lt_aix_libpath_sed='
11615 /Import File Strings/,/^$/ {
11616 /^0/ {
11617 s/^0 *\([^ ]*\) *$/\1/
11621 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11622 # Check for a 64-bit object if we didn't find anything.
11623 if test -z "$lt_cv_aix_libpath_"; then
11624 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11627 rm -f core conftest.err conftest.$ac_objext \
11628 conftest$ac_exeext conftest.$ac_ext
11629 if test -z "$lt_cv_aix_libpath_"; then
11630 lt_cv_aix_libpath_=/usr/lib:/lib
11635 aix_libpath=$lt_cv_aix_libpath_
11638 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11639 # Warning - without using the other run time loading flags,
11640 # -berok will link without error, but may produce a broken library.
11641 no_undefined_flag=' $wl-bernotok'
11642 allow_undefined_flag=' $wl-berok'
11643 if test yes = "$with_gnu_ld"; then
11644 # We only use this code for GNU lds that support --whole-archive.
11645 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11646 else
11647 # Exported symbols can be pulled into shared objects from archives
11648 whole_archive_flag_spec='$convenience'
11650 archive_cmds_need_lc=yes
11651 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11652 # -brtl affects multiple linker settings, -berok does not and is overridden later
11653 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11654 if test svr4 != "$with_aix_soname"; then
11655 # This is similar to how AIX traditionally builds its shared libraries.
11656 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'
11658 if test aix != "$with_aix_soname"; then
11659 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'
11660 else
11661 # used by -dlpreopen to get the symbols
11662 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
11664 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11669 amigaos*)
11670 case $host_cpu in
11671 powerpc)
11672 # see comment about AmigaOS4 .so support
11673 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11674 archive_expsym_cmds=''
11676 m68k)
11677 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)'
11678 hardcode_libdir_flag_spec='-L$libdir'
11679 hardcode_minus_L=yes
11681 esac
11684 bsdi[45]*)
11685 export_dynamic_flag_spec=-rdynamic
11688 cygwin* | mingw* | pw32* | cegcc*)
11689 # When not using gcc, we currently assume that we are using
11690 # Microsoft Visual C++.
11691 # hardcode_libdir_flag_spec is actually meaningless, as there is
11692 # no search path for DLLs.
11693 case $cc_basename in
11694 cl*)
11695 # Native MSVC
11696 hardcode_libdir_flag_spec=' '
11697 allow_undefined_flag=unsupported
11698 always_export_symbols=yes
11699 file_list_spec='@'
11700 # Tell ltmain to make .lib files, not .a files.
11701 libext=lib
11702 # Tell ltmain to make .dll files, not .so files.
11703 shrext_cmds=.dll
11704 # FIXME: Setting linknames here is a bad hack.
11705 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11706 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11707 cp "$export_symbols" "$output_objdir/$soname.def";
11708 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11709 else
11710 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11712 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11713 linknames='
11714 # The linker will not automatically build a static lib if we build a DLL.
11715 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11716 enable_shared_with_static_runtimes=yes
11717 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11718 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11719 # Don't use ranlib
11720 old_postinstall_cmds='chmod 644 $oldlib'
11721 postlink_cmds='lt_outputfile="@OUTPUT@"~
11722 lt_tool_outputfile="@TOOL_OUTPUT@"~
11723 case $lt_outputfile in
11724 *.exe|*.EXE) ;;
11726 lt_outputfile=$lt_outputfile.exe
11727 lt_tool_outputfile=$lt_tool_outputfile.exe
11729 esac~
11730 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11731 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11732 $RM "$lt_outputfile.manifest";
11736 # Assume MSVC wrapper
11737 hardcode_libdir_flag_spec=' '
11738 allow_undefined_flag=unsupported
11739 # Tell ltmain to make .lib files, not .a files.
11740 libext=lib
11741 # Tell ltmain to make .dll files, not .so files.
11742 shrext_cmds=.dll
11743 # FIXME: Setting linknames here is a bad hack.
11744 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11745 # The linker will automatically build a .lib file if we build a DLL.
11746 old_archive_from_new_cmds='true'
11747 # FIXME: Should let the user specify the lib program.
11748 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11749 enable_shared_with_static_runtimes=yes
11751 esac
11754 darwin* | rhapsody*)
11757 archive_cmds_need_lc=no
11758 hardcode_direct=no
11759 hardcode_automatic=yes
11760 hardcode_shlibpath_var=unsupported
11761 if test yes = "$lt_cv_ld_force_load"; then
11762 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\"`'
11764 else
11765 whole_archive_flag_spec=''
11767 link_all_deplibs=yes
11768 allow_undefined_flag=$_lt_dar_allow_undefined
11769 case $cc_basename in
11770 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11771 *) _lt_dar_can_shared=$GCC ;;
11772 esac
11773 if test yes = "$_lt_dar_can_shared"; then
11774 output_verbose_link_cmd=func_echo_all
11775 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11776 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11777 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"
11778 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"
11780 else
11781 ld_shlibs=no
11786 dgux*)
11787 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11788 hardcode_libdir_flag_spec='-L$libdir'
11789 hardcode_shlibpath_var=no
11792 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11793 # support. Future versions do this automatically, but an explicit c++rt0.o
11794 # does not break anything, and helps significantly (at the cost of a little
11795 # extra space).
11796 freebsd2.2*)
11797 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11798 hardcode_libdir_flag_spec='-R$libdir'
11799 hardcode_direct=yes
11800 hardcode_shlibpath_var=no
11803 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11804 freebsd2.*)
11805 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11806 hardcode_direct=yes
11807 hardcode_minus_L=yes
11808 hardcode_shlibpath_var=no
11811 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11812 freebsd* | dragonfly*)
11813 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11814 hardcode_libdir_flag_spec='-R$libdir'
11815 hardcode_direct=yes
11816 hardcode_shlibpath_var=no
11819 hpux9*)
11820 if test yes = "$GCC"; then
11821 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'
11822 else
11823 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'
11825 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11826 hardcode_libdir_separator=:
11827 hardcode_direct=yes
11829 # hardcode_minus_L: Not really in the search PATH,
11830 # but as the default location of the library.
11831 hardcode_minus_L=yes
11832 export_dynamic_flag_spec='$wl-E'
11835 hpux10*)
11836 if test yes,no = "$GCC,$with_gnu_ld"; then
11837 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11838 else
11839 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11841 if test no = "$with_gnu_ld"; then
11842 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11843 hardcode_libdir_separator=:
11844 hardcode_direct=yes
11845 hardcode_direct_absolute=yes
11846 export_dynamic_flag_spec='$wl-E'
11847 # hardcode_minus_L: Not really in the search PATH,
11848 # but as the default location of the library.
11849 hardcode_minus_L=yes
11853 hpux11*)
11854 if test yes,no = "$GCC,$with_gnu_ld"; then
11855 case $host_cpu in
11856 hppa*64*)
11857 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11859 ia64*)
11860 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11863 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11865 esac
11866 else
11867 case $host_cpu in
11868 hppa*64*)
11869 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11871 ia64*)
11872 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11876 # Older versions of the 11.00 compiler do not understand -b yet
11877 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11879 $as_echo_n "checking if $CC understands -b... " >&6; }
11880 if ${lt_cv_prog_compiler__b+:} false; then :
11881 $as_echo_n "(cached) " >&6
11882 else
11883 lt_cv_prog_compiler__b=no
11884 save_LDFLAGS=$LDFLAGS
11885 LDFLAGS="$LDFLAGS -b"
11886 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11887 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11888 # The linker can only warn and ignore the option if not recognized
11889 # So say no if there are warnings
11890 if test -s conftest.err; then
11891 # Append any errors to the config.log.
11892 cat conftest.err 1>&5
11893 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11894 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11895 if diff conftest.exp conftest.er2 >/dev/null; then
11896 lt_cv_prog_compiler__b=yes
11898 else
11899 lt_cv_prog_compiler__b=yes
11902 $RM -r conftest*
11903 LDFLAGS=$save_LDFLAGS
11906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11907 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11909 if test yes = "$lt_cv_prog_compiler__b"; then
11910 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11911 else
11912 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11916 esac
11918 if test no = "$with_gnu_ld"; then
11919 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11920 hardcode_libdir_separator=:
11922 case $host_cpu in
11923 hppa*64*|ia64*)
11924 hardcode_direct=no
11925 hardcode_shlibpath_var=no
11928 hardcode_direct=yes
11929 hardcode_direct_absolute=yes
11930 export_dynamic_flag_spec='$wl-E'
11932 # hardcode_minus_L: Not really in the search PATH,
11933 # but as the default location of the library.
11934 hardcode_minus_L=yes
11936 esac
11940 irix5* | irix6* | nonstopux*)
11941 if test yes = "$GCC"; then
11942 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'
11943 # Try to use the -exported_symbol ld option, if it does not
11944 # work, assume that -exports_file does not work either and
11945 # implicitly export all symbols.
11946 # This should be the same for all languages, so no per-tag cache variable.
11947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11948 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11949 if ${lt_cv_irix_exported_symbol+:} false; then :
11950 $as_echo_n "(cached) " >&6
11951 else
11952 save_LDFLAGS=$LDFLAGS
11953 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11955 /* end confdefs.h. */
11956 int foo (void) { return 0; }
11957 _ACEOF
11958 if ac_fn_c_try_link "$LINENO"; then :
11959 lt_cv_irix_exported_symbol=yes
11960 else
11961 lt_cv_irix_exported_symbol=no
11963 rm -f core conftest.err conftest.$ac_objext \
11964 conftest$ac_exeext conftest.$ac_ext
11965 LDFLAGS=$save_LDFLAGS
11967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11968 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11969 if test yes = "$lt_cv_irix_exported_symbol"; then
11970 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'
11972 else
11973 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'
11974 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'
11976 archive_cmds_need_lc='no'
11977 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11978 hardcode_libdir_separator=:
11979 inherit_rpath=yes
11980 link_all_deplibs=yes
11983 linux*)
11984 case $cc_basename in
11985 tcc*)
11986 # Fabrice Bellard et al's Tiny C Compiler
11987 ld_shlibs=yes
11988 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11990 esac
11993 netbsd*)
11994 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11995 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11996 else
11997 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11999 hardcode_libdir_flag_spec='-R$libdir'
12000 hardcode_direct=yes
12001 hardcode_shlibpath_var=no
12004 newsos6)
12005 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12006 hardcode_direct=yes
12007 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12008 hardcode_libdir_separator=:
12009 hardcode_shlibpath_var=no
12012 *nto* | *qnx*)
12015 openbsd* | bitrig*)
12016 if test -f /usr/libexec/ld.so; then
12017 hardcode_direct=yes
12018 hardcode_shlibpath_var=no
12019 hardcode_direct_absolute=yes
12020 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12021 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12022 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
12023 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12024 export_dynamic_flag_spec='$wl-E'
12025 else
12026 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12027 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12029 else
12030 ld_shlibs=no
12034 os2*)
12035 hardcode_libdir_flag_spec='-L$libdir'
12036 hardcode_minus_L=yes
12037 allow_undefined_flag=unsupported
12038 shrext_cmds=.dll
12039 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12040 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12041 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12042 $ECHO EXPORTS >> $output_objdir/$libname.def~
12043 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12044 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12045 emximp -o $lib $output_objdir/$libname.def'
12046 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12047 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12048 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12049 $ECHO EXPORTS >> $output_objdir/$libname.def~
12050 prefix_cmds="$SED"~
12051 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12052 prefix_cmds="$prefix_cmds -e 1d";
12054 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12055 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12056 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12057 emximp -o $lib $output_objdir/$libname.def'
12058 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12059 enable_shared_with_static_runtimes=yes
12062 osf3*)
12063 if test yes = "$GCC"; then
12064 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12065 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'
12066 else
12067 allow_undefined_flag=' -expect_unresolved \*'
12068 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'
12070 archive_cmds_need_lc='no'
12071 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12072 hardcode_libdir_separator=:
12075 osf4* | osf5*) # as osf3* with the addition of -msym flag
12076 if test yes = "$GCC"; then
12077 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12078 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'
12079 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12080 else
12081 allow_undefined_flag=' -expect_unresolved \*'
12082 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'
12083 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~
12084 $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'
12086 # Both c and cxx compiler support -rpath directly
12087 hardcode_libdir_flag_spec='-rpath $libdir'
12089 archive_cmds_need_lc='no'
12090 hardcode_libdir_separator=:
12093 solaris*)
12094 no_undefined_flag=' -z defs'
12095 if test yes = "$GCC"; then
12096 wlarc='$wl'
12097 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12098 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12099 $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'
12100 else
12101 case `$CC -V 2>&1` in
12102 *"Compilers 5.0"*)
12103 wlarc=''
12104 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
12105 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12106 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12109 wlarc='$wl'
12110 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12111 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12112 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12114 esac
12116 hardcode_libdir_flag_spec='-R$libdir'
12117 hardcode_shlibpath_var=no
12118 case $host_os in
12119 solaris2.[0-5] | solaris2.[0-5].*) ;;
12121 # The compiler driver will combine and reorder linker options,
12122 # but understands '-z linker_flag'. GCC discards it without '$wl',
12123 # but is careful enough not to reorder.
12124 # Supported since Solaris 2.6 (maybe 2.5.1?)
12125 if test yes = "$GCC"; then
12126 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
12127 else
12128 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12131 esac
12132 link_all_deplibs=yes
12135 sunos4*)
12136 if test sequent = "$host_vendor"; then
12137 # Use $CC to link under sequent, because it throws in some extra .o
12138 # files that make .init and .fini sections work.
12139 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12140 else
12141 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12143 hardcode_libdir_flag_spec='-L$libdir'
12144 hardcode_direct=yes
12145 hardcode_minus_L=yes
12146 hardcode_shlibpath_var=no
12149 sysv4)
12150 case $host_vendor in
12151 sni)
12152 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12153 hardcode_direct=yes # is this really true???
12155 siemens)
12156 ## LD is ld it makes a PLAMLIB
12157 ## CC just makes a GrossModule.
12158 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12159 reload_cmds='$CC -r -o $output$reload_objs'
12160 hardcode_direct=no
12162 motorola)
12163 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12164 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12166 esac
12167 runpath_var='LD_RUN_PATH'
12168 hardcode_shlibpath_var=no
12171 sysv4.3*)
12172 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12173 hardcode_shlibpath_var=no
12174 export_dynamic_flag_spec='-Bexport'
12177 sysv4*MP*)
12178 if test -d /usr/nec; then
12179 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12180 hardcode_shlibpath_var=no
12181 runpath_var=LD_RUN_PATH
12182 hardcode_runpath_var=yes
12183 ld_shlibs=yes
12187 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12188 no_undefined_flag='$wl-z,text'
12189 archive_cmds_need_lc=no
12190 hardcode_shlibpath_var=no
12191 runpath_var='LD_RUN_PATH'
12193 if test yes = "$GCC"; then
12194 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12195 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12196 else
12197 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12198 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12202 sysv5* | sco3.2v5* | sco5v6*)
12203 # Note: We CANNOT use -z defs as we might desire, because we do not
12204 # link with -lc, and that would cause any symbols used from libc to
12205 # always be unresolved, which means just about no library would
12206 # ever link correctly. If we're not using GNU ld we use -z text
12207 # though, which does catch some bad symbols but isn't as heavy-handed
12208 # as -z defs.
12209 no_undefined_flag='$wl-z,text'
12210 allow_undefined_flag='$wl-z,nodefs'
12211 archive_cmds_need_lc=no
12212 hardcode_shlibpath_var=no
12213 hardcode_libdir_flag_spec='$wl-R,$libdir'
12214 hardcode_libdir_separator=':'
12215 link_all_deplibs=yes
12216 export_dynamic_flag_spec='$wl-Bexport'
12217 runpath_var='LD_RUN_PATH'
12219 if test yes = "$GCC"; then
12220 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12221 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12222 else
12223 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12224 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12228 uts4*)
12229 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12230 hardcode_libdir_flag_spec='-L$libdir'
12231 hardcode_shlibpath_var=no
12235 ld_shlibs=no
12237 esac
12239 if test sni = "$host_vendor"; then
12240 case $host in
12241 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12242 export_dynamic_flag_spec='$wl-Blargedynsym'
12244 esac
12248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12249 $as_echo "$ld_shlibs" >&6; }
12250 test no = "$ld_shlibs" && can_build_shared=no
12252 with_gnu_ld=$with_gnu_ld
12269 # Do we need to explicitly link libc?
12271 case "x$archive_cmds_need_lc" in
12272 x|xyes)
12273 # Assume -lc should be added
12274 archive_cmds_need_lc=yes
12276 if test yes,yes = "$GCC,$enable_shared"; then
12277 case $archive_cmds in
12278 *'~'*)
12279 # FIXME: we may have to deal with multi-command sequences.
12281 '$CC '*)
12282 # Test whether the compiler implicitly links with -lc since on some
12283 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12284 # to ld, don't add -lc before -lgcc.
12285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12286 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12287 if ${lt_cv_archive_cmds_need_lc+:} false; then :
12288 $as_echo_n "(cached) " >&6
12289 else
12290 $RM conftest*
12291 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12293 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12294 (eval $ac_compile) 2>&5
12295 ac_status=$?
12296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12297 test $ac_status = 0; } 2>conftest.err; then
12298 soname=conftest
12299 lib=conftest
12300 libobjs=conftest.$ac_objext
12301 deplibs=
12302 wl=$lt_prog_compiler_wl
12303 pic_flag=$lt_prog_compiler_pic
12304 compiler_flags=-v
12305 linker_flags=-v
12306 verstring=
12307 output_objdir=.
12308 libname=conftest
12309 lt_save_allow_undefined_flag=$allow_undefined_flag
12310 allow_undefined_flag=
12311 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12312 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12313 ac_status=$?
12314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12315 test $ac_status = 0; }
12316 then
12317 lt_cv_archive_cmds_need_lc=no
12318 else
12319 lt_cv_archive_cmds_need_lc=yes
12321 allow_undefined_flag=$lt_save_allow_undefined_flag
12322 else
12323 cat conftest.err 1>&5
12325 $RM conftest*
12328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12329 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12330 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12332 esac
12335 esac
12488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12489 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12491 if test yes = "$GCC"; then
12492 case $host_os in
12493 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12494 *) lt_awk_arg='/^libraries:/' ;;
12495 esac
12496 case $host_os in
12497 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12498 *) lt_sed_strip_eq='s|=/|/|g' ;;
12499 esac
12500 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12501 case $lt_search_path_spec in
12502 *\;*)
12503 # if the path contains ";" then we assume it to be the separator
12504 # otherwise default to the standard path separator (i.e. ":") - it is
12505 # assumed that no part of a normal pathname contains ";" but that should
12506 # okay in the real world where ";" in dirpaths is itself problematic.
12507 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12510 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12512 esac
12513 # Ok, now we have the path, separated by spaces, we can step through it
12514 # and add multilib dir if necessary...
12515 lt_tmp_lt_search_path_spec=
12516 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12517 # ...but if some path component already ends with the multilib dir we assume
12518 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12519 case "$lt_multi_os_dir; $lt_search_path_spec " in
12520 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12521 lt_multi_os_dir=
12523 esac
12524 for lt_sys_path in $lt_search_path_spec; do
12525 if test -d "$lt_sys_path$lt_multi_os_dir"; then
12526 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12527 elif test -n "$lt_multi_os_dir"; then
12528 test -d "$lt_sys_path" && \
12529 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12531 done
12532 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12533 BEGIN {RS = " "; FS = "/|\n";} {
12534 lt_foo = "";
12535 lt_count = 0;
12536 for (lt_i = NF; lt_i > 0; lt_i--) {
12537 if ($lt_i != "" && $lt_i != ".") {
12538 if ($lt_i == "..") {
12539 lt_count++;
12540 } else {
12541 if (lt_count == 0) {
12542 lt_foo = "/" $lt_i lt_foo;
12543 } else {
12544 lt_count--;
12549 if (lt_foo != "") { lt_freq[lt_foo]++; }
12550 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12552 # AWK program above erroneously prepends '/' to C:/dos/paths
12553 # for these hosts.
12554 case $host_os in
12555 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12556 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12557 esac
12558 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12559 else
12560 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12562 library_names_spec=
12563 libname_spec='lib$name'
12564 soname_spec=
12565 shrext_cmds=.so
12566 postinstall_cmds=
12567 postuninstall_cmds=
12568 finish_cmds=
12569 finish_eval=
12570 shlibpath_var=
12571 shlibpath_overrides_runpath=unknown
12572 version_type=none
12573 dynamic_linker="$host_os ld.so"
12574 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12575 need_lib_prefix=unknown
12576 hardcode_into_libs=no
12578 # when you set need_version to no, make sure it does not cause -set_version
12579 # flags to be left without arguments
12580 need_version=unknown
12584 case $host_os in
12585 aix3*)
12586 version_type=linux # correct to gnu/linux during the next big refactor
12587 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12588 shlibpath_var=LIBPATH
12590 # AIX 3 has no versioning support, so we append a major version to the name.
12591 soname_spec='$libname$release$shared_ext$major'
12594 aix[4-9]*)
12595 version_type=linux # correct to gnu/linux during the next big refactor
12596 need_lib_prefix=no
12597 need_version=no
12598 hardcode_into_libs=yes
12599 if test ia64 = "$host_cpu"; then
12600 # AIX 5 supports IA64
12601 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12602 shlibpath_var=LD_LIBRARY_PATH
12603 else
12604 # With GCC up to 2.95.x, collect2 would create an import file
12605 # for dependence libraries. The import file would start with
12606 # the line '#! .'. This would cause the generated library to
12607 # depend on '.', always an invalid library. This was fixed in
12608 # development snapshots of GCC prior to 3.0.
12609 case $host_os in
12610 aix4 | aix4.[01] | aix4.[01].*)
12611 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12612 echo ' yes '
12613 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12615 else
12616 can_build_shared=no
12619 esac
12620 # Using Import Files as archive members, it is possible to support
12621 # filename-based versioning of shared library archives on AIX. While
12622 # this would work for both with and without runtime linking, it will
12623 # prevent static linking of such archives. So we do filename-based
12624 # shared library versioning with .so extension only, which is used
12625 # when both runtime linking and shared linking is enabled.
12626 # Unfortunately, runtime linking may impact performance, so we do
12627 # not want this to be the default eventually. Also, we use the
12628 # versioned .so libs for executables only if there is the -brtl
12629 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
12630 # To allow for filename-based versioning support, we need to create
12631 # libNAME.so.V as an archive file, containing:
12632 # *) an Import File, referring to the versioned filename of the
12633 # archive as well as the shared archive member, telling the
12634 # bitwidth (32 or 64) of that shared object, and providing the
12635 # list of exported symbols of that shared object, eventually
12636 # decorated with the 'weak' keyword
12637 # *) the shared object with the F_LOADONLY flag set, to really avoid
12638 # it being seen by the linker.
12639 # At run time we better use the real file rather than another symlink,
12640 # but for link time we create the symlink libNAME.so -> libNAME.so.V
12642 case $with_aix_soname,$aix_use_runtimelinking in
12643 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12644 # soname into executable. Probably we can add versioning support to
12645 # collect2, so additional links can be useful in future.
12646 aix,yes) # traditional libtool
12647 dynamic_linker='AIX unversionable lib.so'
12648 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12649 # instead of lib<name>.a to let people know that these are not
12650 # typical AIX shared libraries.
12651 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12653 aix,no) # traditional AIX only
12654 dynamic_linker='AIX lib.a(lib.so.V)'
12655 # We preserve .a as extension for shared libraries through AIX4.2
12656 # and later when we are not doing run time linking.
12657 library_names_spec='$libname$release.a $libname.a'
12658 soname_spec='$libname$release$shared_ext$major'
12660 svr4,*) # full svr4 only
12661 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12662 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12663 # We do not specify a path in Import Files, so LIBPATH fires.
12664 shlibpath_overrides_runpath=yes
12666 *,yes) # both, prefer svr4
12667 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12668 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12669 # unpreferred sharedlib libNAME.a needs extra handling
12670 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"'
12671 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"'
12672 # We do not specify a path in Import Files, so LIBPATH fires.
12673 shlibpath_overrides_runpath=yes
12675 *,no) # both, prefer aix
12676 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12677 library_names_spec='$libname$release.a $libname.a'
12678 soname_spec='$libname$release$shared_ext$major'
12679 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12680 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)'
12681 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"'
12683 esac
12684 shlibpath_var=LIBPATH
12688 amigaos*)
12689 case $host_cpu in
12690 powerpc)
12691 # Since July 2007 AmigaOS4 officially supports .so libraries.
12692 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12693 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12695 m68k)
12696 library_names_spec='$libname.ixlibrary $libname.a'
12697 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12698 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'
12700 esac
12703 beos*)
12704 library_names_spec='$libname$shared_ext'
12705 dynamic_linker="$host_os ld.so"
12706 shlibpath_var=LIBRARY_PATH
12709 bsdi[45]*)
12710 version_type=linux # correct to gnu/linux during the next big refactor
12711 need_version=no
12712 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12713 soname_spec='$libname$release$shared_ext$major'
12714 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12715 shlibpath_var=LD_LIBRARY_PATH
12716 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12717 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12718 # the default ld.so.conf also contains /usr/contrib/lib and
12719 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12720 # libtool to hard-code these into programs
12723 cygwin* | mingw* | pw32* | cegcc*)
12724 version_type=windows
12725 shrext_cmds=.dll
12726 need_version=no
12727 need_lib_prefix=no
12729 case $GCC,$cc_basename in
12730 yes,*)
12731 # gcc
12732 library_names_spec='$libname.dll.a'
12733 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12734 postinstall_cmds='base_file=`basename \$file`~
12735 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12736 dldir=$destdir/`dirname \$dlpath`~
12737 test -d \$dldir || mkdir -p \$dldir~
12738 $install_prog $dir/$dlname \$dldir/$dlname~
12739 chmod a+x \$dldir/$dlname~
12740 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12741 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12743 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12744 dlpath=$dir/\$dldll~
12745 $RM \$dlpath'
12746 shlibpath_overrides_runpath=yes
12748 case $host_os in
12749 cygwin*)
12750 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12751 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12753 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12755 mingw* | cegcc*)
12756 # MinGW DLLs use traditional 'lib' prefix
12757 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12759 pw32*)
12760 # pw32 DLLs use 'pw' prefix rather than 'lib'
12761 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12763 esac
12764 dynamic_linker='Win32 ld.exe'
12767 *,cl*)
12768 # Native MSVC
12769 libname_spec='$name'
12770 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12771 library_names_spec='$libname.dll.lib'
12773 case $build_os in
12774 mingw*)
12775 sys_lib_search_path_spec=
12776 lt_save_ifs=$IFS
12777 IFS=';'
12778 for lt_path in $LIB
12780 IFS=$lt_save_ifs
12781 # Let DOS variable expansion print the short 8.3 style file name.
12782 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12783 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12784 done
12785 IFS=$lt_save_ifs
12786 # Convert to MSYS style.
12787 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12789 cygwin*)
12790 # Convert to unix form, then to dos form, then back to unix form
12791 # but this time dos style (no spaces!) so that the unix form looks
12792 # like /cygdrive/c/PROGRA~1:/cygdr...
12793 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12794 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12795 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12798 sys_lib_search_path_spec=$LIB
12799 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12800 # It is most probably a Windows format PATH.
12801 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12802 else
12803 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12805 # FIXME: find the short name or the path components, as spaces are
12806 # common. (e.g. "Program Files" -> "PROGRA~1")
12808 esac
12810 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12811 postinstall_cmds='base_file=`basename \$file`~
12812 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12813 dldir=$destdir/`dirname \$dlpath`~
12814 test -d \$dldir || mkdir -p \$dldir~
12815 $install_prog $dir/$dlname \$dldir/$dlname'
12816 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12817 dlpath=$dir/\$dldll~
12818 $RM \$dlpath'
12819 shlibpath_overrides_runpath=yes
12820 dynamic_linker='Win32 link.exe'
12824 # Assume MSVC wrapper
12825 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12826 dynamic_linker='Win32 ld.exe'
12828 esac
12829 # FIXME: first we should search . and the directory the executable is in
12830 shlibpath_var=PATH
12833 darwin* | rhapsody*)
12834 dynamic_linker="$host_os dyld"
12835 version_type=darwin
12836 need_lib_prefix=no
12837 need_version=no
12838 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12839 soname_spec='$libname$release$major$shared_ext'
12840 shlibpath_overrides_runpath=yes
12841 shlibpath_var=DYLD_LIBRARY_PATH
12842 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12844 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12845 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12848 dgux*)
12849 version_type=linux # correct to gnu/linux during the next big refactor
12850 need_lib_prefix=no
12851 need_version=no
12852 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12853 soname_spec='$libname$release$shared_ext$major'
12854 shlibpath_var=LD_LIBRARY_PATH
12857 freebsd* | dragonfly*)
12858 # DragonFly does not have aout. When/if they implement a new
12859 # versioning mechanism, adjust this.
12860 if test -x /usr/bin/objformat; then
12861 objformat=`/usr/bin/objformat`
12862 else
12863 case $host_os in
12864 freebsd[23].*) objformat=aout ;;
12865 *) objformat=elf ;;
12866 esac
12868 version_type=freebsd-$objformat
12869 case $version_type in
12870 freebsd-elf*)
12871 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12872 soname_spec='$libname$release$shared_ext$major'
12873 need_version=no
12874 need_lib_prefix=no
12876 freebsd-*)
12877 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12878 need_version=yes
12880 esac
12881 shlibpath_var=LD_LIBRARY_PATH
12882 case $host_os in
12883 freebsd2.*)
12884 shlibpath_overrides_runpath=yes
12886 freebsd3.[01]* | freebsdelf3.[01]*)
12887 shlibpath_overrides_runpath=yes
12888 hardcode_into_libs=yes
12890 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12891 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12892 shlibpath_overrides_runpath=no
12893 hardcode_into_libs=yes
12895 *) # from 4.6 on, and DragonFly
12896 shlibpath_overrides_runpath=yes
12897 hardcode_into_libs=yes
12899 esac
12902 haiku*)
12903 version_type=linux # correct to gnu/linux during the next big refactor
12904 need_lib_prefix=no
12905 need_version=no
12906 dynamic_linker="$host_os runtime_loader"
12907 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12908 soname_spec='$libname$release$shared_ext$major'
12909 shlibpath_var=LIBRARY_PATH
12910 shlibpath_overrides_runpath=no
12911 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12912 hardcode_into_libs=yes
12915 hpux9* | hpux10* | hpux11*)
12916 # Give a soname corresponding to the major version so that dld.sl refuses to
12917 # link against other versions.
12918 version_type=sunos
12919 need_lib_prefix=no
12920 need_version=no
12921 case $host_cpu in
12922 ia64*)
12923 shrext_cmds='.so'
12924 hardcode_into_libs=yes
12925 dynamic_linker="$host_os dld.so"
12926 shlibpath_var=LD_LIBRARY_PATH
12927 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12928 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12929 soname_spec='$libname$release$shared_ext$major'
12930 if test 32 = "$HPUX_IA64_MODE"; then
12931 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12932 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12933 else
12934 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12935 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12938 hppa*64*)
12939 shrext_cmds='.sl'
12940 hardcode_into_libs=yes
12941 dynamic_linker="$host_os dld.sl"
12942 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12943 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12944 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12945 soname_spec='$libname$release$shared_ext$major'
12946 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12947 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12950 shrext_cmds='.sl'
12951 dynamic_linker="$host_os dld.sl"
12952 shlibpath_var=SHLIB_PATH
12953 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12954 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12955 soname_spec='$libname$release$shared_ext$major'
12957 esac
12958 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12959 postinstall_cmds='chmod 555 $lib'
12960 # or fails outright, so override atomically:
12961 install_override_mode=555
12964 interix[3-9]*)
12965 version_type=linux # correct to gnu/linux during the next big refactor
12966 need_lib_prefix=no
12967 need_version=no
12968 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12969 soname_spec='$libname$release$shared_ext$major'
12970 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12971 shlibpath_var=LD_LIBRARY_PATH
12972 shlibpath_overrides_runpath=no
12973 hardcode_into_libs=yes
12976 irix5* | irix6* | nonstopux*)
12977 case $host_os in
12978 nonstopux*) version_type=nonstopux ;;
12980 if test yes = "$lt_cv_prog_gnu_ld"; then
12981 version_type=linux # correct to gnu/linux during the next big refactor
12982 else
12983 version_type=irix
12984 fi ;;
12985 esac
12986 need_lib_prefix=no
12987 need_version=no
12988 soname_spec='$libname$release$shared_ext$major'
12989 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12990 case $host_os in
12991 irix5* | nonstopux*)
12992 libsuff= shlibsuff=
12995 case $LD in # libtool.m4 will add one of these switches to LD
12996 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12997 libsuff= shlibsuff= libmagic=32-bit;;
12998 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12999 libsuff=32 shlibsuff=N32 libmagic=N32;;
13000 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13001 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13002 *) libsuff= shlibsuff= libmagic=never-match;;
13003 esac
13005 esac
13006 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13007 shlibpath_overrides_runpath=no
13008 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
13009 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
13010 hardcode_into_libs=yes
13013 # No shared lib support for Linux oldld, aout, or coff.
13014 linux*oldld* | linux*aout* | linux*coff*)
13015 dynamic_linker=no
13018 linux*android*)
13019 version_type=none # Android doesn't support versioned libraries.
13020 need_lib_prefix=no
13021 need_version=no
13022 library_names_spec='$libname$release$shared_ext'
13023 soname_spec='$libname$release$shared_ext'
13024 finish_cmds=
13025 shlibpath_var=LD_LIBRARY_PATH
13026 shlibpath_overrides_runpath=yes
13028 # This implies no fast_install, which is unacceptable.
13029 # Some rework will be needed to allow for fast_install
13030 # before this can be enabled.
13031 hardcode_into_libs=yes
13033 dynamic_linker='Android linker'
13034 # Don't embed -rpath directories since the linker doesn't support them.
13035 hardcode_libdir_flag_spec='-L$libdir'
13038 # This must be glibc/ELF.
13039 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13040 version_type=linux # correct to gnu/linux during the next big refactor
13041 need_lib_prefix=no
13042 need_version=no
13043 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13044 soname_spec='$libname$release$shared_ext$major'
13045 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13046 shlibpath_var=LD_LIBRARY_PATH
13047 shlibpath_overrides_runpath=no
13049 # Some binutils ld are patched to set DT_RUNPATH
13050 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
13051 $as_echo_n "(cached) " >&6
13052 else
13053 lt_cv_shlibpath_overrides_runpath=no
13054 save_LDFLAGS=$LDFLAGS
13055 save_libdir=$libdir
13056 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13057 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13059 /* end confdefs.h. */
13062 main ()
13066 return 0;
13068 _ACEOF
13069 if ac_fn_c_try_link "$LINENO"; then :
13070 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13071 lt_cv_shlibpath_overrides_runpath=yes
13074 rm -f core conftest.err conftest.$ac_objext \
13075 conftest$ac_exeext conftest.$ac_ext
13076 LDFLAGS=$save_LDFLAGS
13077 libdir=$save_libdir
13081 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13083 # This implies no fast_install, which is unacceptable.
13084 # Some rework will be needed to allow for fast_install
13085 # before this can be enabled.
13086 hardcode_into_libs=yes
13088 # Ideally, we could use ldconfig to report *all* directores which are
13089 # searched for libraries, however this is still not possible. Aside from not
13090 # being certain /sbin/ldconfig is available, command
13091 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
13092 # even though it is searched at run-time. Try to do the best guess by
13093 # appending ld.so.conf contents (and includes) to the search path.
13094 if test -f /etc/ld.so.conf; then
13095 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' ' '`
13096 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13099 # We used to test for /lib/ld.so.1 and disable shared libraries on
13100 # powerpc, because MkLinux only supported shared libraries with the
13101 # GNU dynamic linker. Since this was broken with cross compilers,
13102 # most powerpc-linux boxes support dynamic linking these days and
13103 # people can always --disable-shared, the test was removed, and we
13104 # assume the GNU/Linux dynamic linker is in use.
13105 dynamic_linker='GNU/Linux ld.so'
13108 netbsd*)
13109 version_type=sunos
13110 need_lib_prefix=no
13111 need_version=no
13112 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13113 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13114 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13115 dynamic_linker='NetBSD (a.out) ld.so'
13116 else
13117 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13118 soname_spec='$libname$release$shared_ext$major'
13119 dynamic_linker='NetBSD ld.elf_so'
13121 shlibpath_var=LD_LIBRARY_PATH
13122 shlibpath_overrides_runpath=yes
13123 hardcode_into_libs=yes
13126 newsos6)
13127 version_type=linux # correct to gnu/linux during the next big refactor
13128 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13129 shlibpath_var=LD_LIBRARY_PATH
13130 shlibpath_overrides_runpath=yes
13133 *nto* | *qnx*)
13134 version_type=qnx
13135 need_lib_prefix=no
13136 need_version=no
13137 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13138 soname_spec='$libname$release$shared_ext$major'
13139 shlibpath_var=LD_LIBRARY_PATH
13140 shlibpath_overrides_runpath=no
13141 hardcode_into_libs=yes
13142 dynamic_linker='ldqnx.so'
13145 openbsd* | bitrig*)
13146 version_type=sunos
13147 sys_lib_dlsearch_path_spec=/usr/lib
13148 need_lib_prefix=no
13149 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13150 need_version=no
13151 else
13152 need_version=yes
13154 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13155 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13156 shlibpath_var=LD_LIBRARY_PATH
13157 shlibpath_overrides_runpath=yes
13160 os2*)
13161 libname_spec='$name'
13162 version_type=windows
13163 shrext_cmds=.dll
13164 need_version=no
13165 need_lib_prefix=no
13166 # OS/2 can only load a DLL with a base name of 8 characters or less.
13167 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13168 v=$($ECHO $release$versuffix | tr -d .-);
13169 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13170 $ECHO $n$v`$shared_ext'
13171 library_names_spec='${libname}_dll.$libext'
13172 dynamic_linker='OS/2 ld.exe'
13173 shlibpath_var=BEGINLIBPATH
13174 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13175 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13176 postinstall_cmds='base_file=`basename \$file`~
13177 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13178 dldir=$destdir/`dirname \$dlpath`~
13179 test -d \$dldir || mkdir -p \$dldir~
13180 $install_prog $dir/$dlname \$dldir/$dlname~
13181 chmod a+x \$dldir/$dlname~
13182 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13183 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13185 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13186 dlpath=$dir/\$dldll~
13187 $RM \$dlpath'
13190 osf3* | osf4* | osf5*)
13191 version_type=osf
13192 need_lib_prefix=no
13193 need_version=no
13194 soname_spec='$libname$release$shared_ext$major'
13195 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13196 shlibpath_var=LD_LIBRARY_PATH
13197 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13198 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13201 rdos*)
13202 dynamic_linker=no
13205 solaris*)
13206 version_type=linux # correct to gnu/linux during the next big refactor
13207 need_lib_prefix=no
13208 need_version=no
13209 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13210 soname_spec='$libname$release$shared_ext$major'
13211 shlibpath_var=LD_LIBRARY_PATH
13212 shlibpath_overrides_runpath=yes
13213 hardcode_into_libs=yes
13214 # ldd complains unless libraries are executable
13215 postinstall_cmds='chmod +x $lib'
13218 sunos4*)
13219 version_type=sunos
13220 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13221 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13222 shlibpath_var=LD_LIBRARY_PATH
13223 shlibpath_overrides_runpath=yes
13224 if test yes = "$with_gnu_ld"; then
13225 need_lib_prefix=no
13227 need_version=yes
13230 sysv4 | sysv4.3*)
13231 version_type=linux # correct to gnu/linux during the next big refactor
13232 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13233 soname_spec='$libname$release$shared_ext$major'
13234 shlibpath_var=LD_LIBRARY_PATH
13235 case $host_vendor in
13236 sni)
13237 shlibpath_overrides_runpath=no
13238 need_lib_prefix=no
13239 runpath_var=LD_RUN_PATH
13241 siemens)
13242 need_lib_prefix=no
13244 motorola)
13245 need_lib_prefix=no
13246 need_version=no
13247 shlibpath_overrides_runpath=no
13248 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13250 esac
13253 sysv4*MP*)
13254 if test -d /usr/nec; then
13255 version_type=linux # correct to gnu/linux during the next big refactor
13256 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13257 soname_spec='$libname$shared_ext.$major'
13258 shlibpath_var=LD_LIBRARY_PATH
13262 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13263 version_type=sco
13264 need_lib_prefix=no
13265 need_version=no
13266 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
13267 soname_spec='$libname$release$shared_ext$major'
13268 shlibpath_var=LD_LIBRARY_PATH
13269 shlibpath_overrides_runpath=yes
13270 hardcode_into_libs=yes
13271 if test yes = "$with_gnu_ld"; then
13272 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13273 else
13274 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13275 case $host_os in
13276 sco3.2v5*)
13277 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13279 esac
13281 sys_lib_dlsearch_path_spec='/usr/lib'
13284 tpf*)
13285 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13286 version_type=linux # correct to gnu/linux during the next big refactor
13287 need_lib_prefix=no
13288 need_version=no
13289 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13290 shlibpath_var=LD_LIBRARY_PATH
13291 shlibpath_overrides_runpath=no
13292 hardcode_into_libs=yes
13295 uts4*)
13296 version_type=linux # correct to gnu/linux during the next big refactor
13297 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13298 soname_spec='$libname$release$shared_ext$major'
13299 shlibpath_var=LD_LIBRARY_PATH
13303 dynamic_linker=no
13305 esac
13306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13307 $as_echo "$dynamic_linker" >&6; }
13308 test no = "$dynamic_linker" && can_build_shared=no
13310 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13311 if test yes = "$GCC"; then
13312 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13315 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13316 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13319 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13320 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13323 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13324 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13326 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13327 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13329 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13330 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13429 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13430 hardcode_action=
13431 if test -n "$hardcode_libdir_flag_spec" ||
13432 test -n "$runpath_var" ||
13433 test yes = "$hardcode_automatic"; then
13435 # We can hardcode non-existent directories.
13436 if test no != "$hardcode_direct" &&
13437 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13438 # have to relink, otherwise we might link with an installed library
13439 # when we should be linking with a yet-to-be-installed one
13440 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13441 test no != "$hardcode_minus_L"; then
13442 # Linking always hardcodes the temporary library directory.
13443 hardcode_action=relink
13444 else
13445 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13446 hardcode_action=immediate
13448 else
13449 # We cannot hardcode anything, or else we can only hardcode existing
13450 # directories.
13451 hardcode_action=unsupported
13453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13454 $as_echo "$hardcode_action" >&6; }
13456 if test relink = "$hardcode_action" ||
13457 test yes = "$inherit_rpath"; then
13458 # Fast installation is not supported
13459 enable_fast_install=no
13460 elif test yes = "$shlibpath_overrides_runpath" ||
13461 test no = "$enable_shared"; then
13462 # Fast installation is not necessary
13463 enable_fast_install=needless
13471 if test yes != "$enable_dlopen"; then
13472 enable_dlopen=unknown
13473 enable_dlopen_self=unknown
13474 enable_dlopen_self_static=unknown
13475 else
13476 lt_cv_dlopen=no
13477 lt_cv_dlopen_libs=
13479 case $host_os in
13480 beos*)
13481 lt_cv_dlopen=load_add_on
13482 lt_cv_dlopen_libs=
13483 lt_cv_dlopen_self=yes
13486 mingw* | pw32* | cegcc*)
13487 lt_cv_dlopen=LoadLibrary
13488 lt_cv_dlopen_libs=
13491 cygwin*)
13492 lt_cv_dlopen=dlopen
13493 lt_cv_dlopen_libs=
13496 darwin*)
13497 # if libdl is installed we need to link against it
13498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13499 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13500 if ${ac_cv_lib_dl_dlopen+:} false; then :
13501 $as_echo_n "(cached) " >&6
13502 else
13503 ac_check_lib_save_LIBS=$LIBS
13504 LIBS="-ldl $LIBS"
13505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13506 /* end confdefs.h. */
13508 /* Override any GCC internal prototype to avoid an error.
13509 Use char because int might match the return type of a GCC
13510 builtin and then its argument prototype would still apply. */
13511 #ifdef __cplusplus
13512 extern "C"
13513 #endif
13514 char dlopen ();
13516 main ()
13518 return dlopen ();
13520 return 0;
13522 _ACEOF
13523 if ac_fn_c_try_link "$LINENO"; then :
13524 ac_cv_lib_dl_dlopen=yes
13525 else
13526 ac_cv_lib_dl_dlopen=no
13528 rm -f core conftest.err conftest.$ac_objext \
13529 conftest$ac_exeext conftest.$ac_ext
13530 LIBS=$ac_check_lib_save_LIBS
13532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13533 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13534 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13535 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13536 else
13538 lt_cv_dlopen=dyld
13539 lt_cv_dlopen_libs=
13540 lt_cv_dlopen_self=yes
13546 tpf*)
13547 # Don't try to run any link tests for TPF. We know it's impossible
13548 # because TPF is a cross-compiler, and we know how we open DSOs.
13549 lt_cv_dlopen=dlopen
13550 lt_cv_dlopen_libs=
13551 lt_cv_dlopen_self=no
13555 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13556 if test "x$ac_cv_func_shl_load" = xyes; then :
13557 lt_cv_dlopen=shl_load
13558 else
13559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13560 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13561 if ${ac_cv_lib_dld_shl_load+:} false; then :
13562 $as_echo_n "(cached) " >&6
13563 else
13564 ac_check_lib_save_LIBS=$LIBS
13565 LIBS="-ldld $LIBS"
13566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13567 /* end confdefs.h. */
13569 /* Override any GCC internal prototype to avoid an error.
13570 Use char because int might match the return type of a GCC
13571 builtin and then its argument prototype would still apply. */
13572 #ifdef __cplusplus
13573 extern "C"
13574 #endif
13575 char shl_load ();
13577 main ()
13579 return shl_load ();
13581 return 0;
13583 _ACEOF
13584 if ac_fn_c_try_link "$LINENO"; then :
13585 ac_cv_lib_dld_shl_load=yes
13586 else
13587 ac_cv_lib_dld_shl_load=no
13589 rm -f core conftest.err conftest.$ac_objext \
13590 conftest$ac_exeext conftest.$ac_ext
13591 LIBS=$ac_check_lib_save_LIBS
13593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13594 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13595 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13596 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13597 else
13598 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13599 if test "x$ac_cv_func_dlopen" = xyes; then :
13600 lt_cv_dlopen=dlopen
13601 else
13602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13603 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13604 if ${ac_cv_lib_dl_dlopen+:} false; then :
13605 $as_echo_n "(cached) " >&6
13606 else
13607 ac_check_lib_save_LIBS=$LIBS
13608 LIBS="-ldl $LIBS"
13609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13610 /* end confdefs.h. */
13612 /* Override any GCC internal prototype to avoid an error.
13613 Use char because int might match the return type of a GCC
13614 builtin and then its argument prototype would still apply. */
13615 #ifdef __cplusplus
13616 extern "C"
13617 #endif
13618 char dlopen ();
13620 main ()
13622 return dlopen ();
13624 return 0;
13626 _ACEOF
13627 if ac_fn_c_try_link "$LINENO"; then :
13628 ac_cv_lib_dl_dlopen=yes
13629 else
13630 ac_cv_lib_dl_dlopen=no
13632 rm -f core conftest.err conftest.$ac_objext \
13633 conftest$ac_exeext conftest.$ac_ext
13634 LIBS=$ac_check_lib_save_LIBS
13636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13637 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13638 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13639 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13640 else
13641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13642 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13643 if ${ac_cv_lib_svld_dlopen+:} false; then :
13644 $as_echo_n "(cached) " >&6
13645 else
13646 ac_check_lib_save_LIBS=$LIBS
13647 LIBS="-lsvld $LIBS"
13648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13649 /* end confdefs.h. */
13651 /* Override any GCC internal prototype to avoid an error.
13652 Use char because int might match the return type of a GCC
13653 builtin and then its argument prototype would still apply. */
13654 #ifdef __cplusplus
13655 extern "C"
13656 #endif
13657 char dlopen ();
13659 main ()
13661 return dlopen ();
13663 return 0;
13665 _ACEOF
13666 if ac_fn_c_try_link "$LINENO"; then :
13667 ac_cv_lib_svld_dlopen=yes
13668 else
13669 ac_cv_lib_svld_dlopen=no
13671 rm -f core conftest.err conftest.$ac_objext \
13672 conftest$ac_exeext conftest.$ac_ext
13673 LIBS=$ac_check_lib_save_LIBS
13675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13676 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13677 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13678 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13679 else
13680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13681 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13682 if ${ac_cv_lib_dld_dld_link+:} false; then :
13683 $as_echo_n "(cached) " >&6
13684 else
13685 ac_check_lib_save_LIBS=$LIBS
13686 LIBS="-ldld $LIBS"
13687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13688 /* end confdefs.h. */
13690 /* Override any GCC internal prototype to avoid an error.
13691 Use char because int might match the return type of a GCC
13692 builtin and then its argument prototype would still apply. */
13693 #ifdef __cplusplus
13694 extern "C"
13695 #endif
13696 char dld_link ();
13698 main ()
13700 return dld_link ();
13702 return 0;
13704 _ACEOF
13705 if ac_fn_c_try_link "$LINENO"; then :
13706 ac_cv_lib_dld_dld_link=yes
13707 else
13708 ac_cv_lib_dld_dld_link=no
13710 rm -f core conftest.err conftest.$ac_objext \
13711 conftest$ac_exeext conftest.$ac_ext
13712 LIBS=$ac_check_lib_save_LIBS
13714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13715 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13716 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13717 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13736 esac
13738 if test no = "$lt_cv_dlopen"; then
13739 enable_dlopen=no
13740 else
13741 enable_dlopen=yes
13744 case $lt_cv_dlopen in
13745 dlopen)
13746 save_CPPFLAGS=$CPPFLAGS
13747 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13749 save_LDFLAGS=$LDFLAGS
13750 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13752 save_LIBS=$LIBS
13753 LIBS="$lt_cv_dlopen_libs $LIBS"
13755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13756 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13757 if ${lt_cv_dlopen_self+:} false; then :
13758 $as_echo_n "(cached) " >&6
13759 else
13760 if test yes = "$cross_compiling"; then :
13761 lt_cv_dlopen_self=cross
13762 else
13763 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13764 lt_status=$lt_dlunknown
13765 cat > conftest.$ac_ext <<_LT_EOF
13766 #line $LINENO "configure"
13767 #include "confdefs.h"
13769 #if HAVE_DLFCN_H
13770 #include <dlfcn.h>
13771 #endif
13773 #include <stdio.h>
13775 #ifdef RTLD_GLOBAL
13776 # define LT_DLGLOBAL RTLD_GLOBAL
13777 #else
13778 # ifdef DL_GLOBAL
13779 # define LT_DLGLOBAL DL_GLOBAL
13780 # else
13781 # define LT_DLGLOBAL 0
13782 # endif
13783 #endif
13785 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13786 find out it does not work in some platform. */
13787 #ifndef LT_DLLAZY_OR_NOW
13788 # ifdef RTLD_LAZY
13789 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13790 # else
13791 # ifdef DL_LAZY
13792 # define LT_DLLAZY_OR_NOW DL_LAZY
13793 # else
13794 # ifdef RTLD_NOW
13795 # define LT_DLLAZY_OR_NOW RTLD_NOW
13796 # else
13797 # ifdef DL_NOW
13798 # define LT_DLLAZY_OR_NOW DL_NOW
13799 # else
13800 # define LT_DLLAZY_OR_NOW 0
13801 # endif
13802 # endif
13803 # endif
13804 # endif
13805 #endif
13807 /* When -fvisibility=hidden is used, assume the code has been annotated
13808 correspondingly for the symbols needed. */
13809 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13810 int fnord () __attribute__((visibility("default")));
13811 #endif
13813 int fnord () { return 42; }
13814 int main ()
13816 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13817 int status = $lt_dlunknown;
13819 if (self)
13821 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13822 else
13824 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13825 else puts (dlerror ());
13827 /* dlclose (self); */
13829 else
13830 puts (dlerror ());
13832 return status;
13834 _LT_EOF
13835 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13836 (eval $ac_link) 2>&5
13837 ac_status=$?
13838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13839 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13840 (./conftest; exit; ) >&5 2>/dev/null
13841 lt_status=$?
13842 case x$lt_status in
13843 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13844 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13845 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13846 esac
13847 else :
13848 # compilation failed
13849 lt_cv_dlopen_self=no
13852 rm -fr conftest*
13856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13857 $as_echo "$lt_cv_dlopen_self" >&6; }
13859 if test yes = "$lt_cv_dlopen_self"; then
13860 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13862 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13863 if ${lt_cv_dlopen_self_static+:} false; then :
13864 $as_echo_n "(cached) " >&6
13865 else
13866 if test yes = "$cross_compiling"; then :
13867 lt_cv_dlopen_self_static=cross
13868 else
13869 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13870 lt_status=$lt_dlunknown
13871 cat > conftest.$ac_ext <<_LT_EOF
13872 #line $LINENO "configure"
13873 #include "confdefs.h"
13875 #if HAVE_DLFCN_H
13876 #include <dlfcn.h>
13877 #endif
13879 #include <stdio.h>
13881 #ifdef RTLD_GLOBAL
13882 # define LT_DLGLOBAL RTLD_GLOBAL
13883 #else
13884 # ifdef DL_GLOBAL
13885 # define LT_DLGLOBAL DL_GLOBAL
13886 # else
13887 # define LT_DLGLOBAL 0
13888 # endif
13889 #endif
13891 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13892 find out it does not work in some platform. */
13893 #ifndef LT_DLLAZY_OR_NOW
13894 # ifdef RTLD_LAZY
13895 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13896 # else
13897 # ifdef DL_LAZY
13898 # define LT_DLLAZY_OR_NOW DL_LAZY
13899 # else
13900 # ifdef RTLD_NOW
13901 # define LT_DLLAZY_OR_NOW RTLD_NOW
13902 # else
13903 # ifdef DL_NOW
13904 # define LT_DLLAZY_OR_NOW DL_NOW
13905 # else
13906 # define LT_DLLAZY_OR_NOW 0
13907 # endif
13908 # endif
13909 # endif
13910 # endif
13911 #endif
13913 /* When -fvisibility=hidden is used, assume the code has been annotated
13914 correspondingly for the symbols needed. */
13915 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13916 int fnord () __attribute__((visibility("default")));
13917 #endif
13919 int fnord () { return 42; }
13920 int main ()
13922 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13923 int status = $lt_dlunknown;
13925 if (self)
13927 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13928 else
13930 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13931 else puts (dlerror ());
13933 /* dlclose (self); */
13935 else
13936 puts (dlerror ());
13938 return status;
13940 _LT_EOF
13941 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13942 (eval $ac_link) 2>&5
13943 ac_status=$?
13944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13945 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13946 (./conftest; exit; ) >&5 2>/dev/null
13947 lt_status=$?
13948 case x$lt_status in
13949 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13950 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13951 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13952 esac
13953 else :
13954 # compilation failed
13955 lt_cv_dlopen_self_static=no
13958 rm -fr conftest*
13962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13963 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13966 CPPFLAGS=$save_CPPFLAGS
13967 LDFLAGS=$save_LDFLAGS
13968 LIBS=$save_LIBS
13970 esac
13972 case $lt_cv_dlopen_self in
13973 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13974 *) enable_dlopen_self=unknown ;;
13975 esac
13977 case $lt_cv_dlopen_self_static in
13978 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13979 *) enable_dlopen_self_static=unknown ;;
13980 esac
13999 striplib=
14000 old_striplib=
14001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14002 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
14003 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14004 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14005 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14007 $as_echo "yes" >&6; }
14008 else
14009 # FIXME - insert some real tests, host_os isn't really good enough
14010 case $host_os in
14011 darwin*)
14012 if test -n "$STRIP"; then
14013 striplib="$STRIP -x"
14014 old_striplib="$STRIP -S"
14015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14016 $as_echo "yes" >&6; }
14017 else
14018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14019 $as_echo "no" >&6; }
14023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14024 $as_echo "no" >&6; }
14026 esac
14040 # Report what library types will actually be built
14041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14042 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
14043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14044 $as_echo "$can_build_shared" >&6; }
14046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14047 $as_echo_n "checking whether to build shared libraries... " >&6; }
14048 test no = "$can_build_shared" && enable_shared=no
14050 # On AIX, shared libraries and static libraries use the same namespace, and
14051 # are all built from PIC.
14052 case $host_os in
14053 aix3*)
14054 test yes = "$enable_shared" && enable_static=no
14055 if test -n "$RANLIB"; then
14056 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14057 postinstall_cmds='$RANLIB $lib'
14061 aix[4-9]*)
14062 if test ia64 != "$host_cpu"; then
14063 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
14064 yes,aix,yes) ;; # shared object as lib.so file only
14065 yes,svr4,*) ;; # shared object as lib.so archive member only
14066 yes,*) enable_static=no ;; # shared object in lib.a archive as well
14067 esac
14070 esac
14071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14072 $as_echo "$enable_shared" >&6; }
14074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14075 $as_echo_n "checking whether to build static libraries... " >&6; }
14076 # Make sure either enable_shared or enable_static is yes.
14077 test yes = "$enable_shared" || enable_static=yes
14078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14079 $as_echo "$enable_static" >&6; }
14085 ac_ext=c
14086 ac_cpp='$CPP $CPPFLAGS'
14087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14091 CC=$lt_save_CC
14107 ac_config_commands="$ac_config_commands libtool"
14112 # Only expand once:
14117 # Extract the first word of "ar", so it can be a program name with args.
14118 set dummy ar; ac_word=$2
14119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14120 $as_echo_n "checking for $ac_word... " >&6; }
14121 if ${ac_cv_path_AR+:} false; then :
14122 $as_echo_n "(cached) " >&6
14123 else
14124 case $AR in
14125 [\\/]* | ?:[\\/]*)
14126 ac_cv_path_AR="$AR" # Let the user override the test with a path.
14129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14130 for as_dir in $PATH
14132 IFS=$as_save_IFS
14133 test -z "$as_dir" && as_dir=.
14134 for ac_exec_ext in '' $ac_executable_extensions; do
14135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14136 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
14137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14138 break 2
14140 done
14141 done
14142 IFS=$as_save_IFS
14144 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
14146 esac
14148 AR=$ac_cv_path_AR
14149 if test -n "$AR"; then
14150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
14151 $as_echo "$AR" >&6; }
14152 else
14153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14154 $as_echo "no" >&6; }
14158 # Extract the first word of "rm", so it can be a program name with args.
14159 set dummy rm; ac_word=$2
14160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14161 $as_echo_n "checking for $ac_word... " >&6; }
14162 if ${ac_cv_path_RM+:} false; then :
14163 $as_echo_n "(cached) " >&6
14164 else
14165 case $RM in
14166 [\\/]* | ?:[\\/]*)
14167 ac_cv_path_RM="$RM" # Let the user override the test with a path.
14170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14171 for as_dir in $PATH
14173 IFS=$as_save_IFS
14174 test -z "$as_dir" && as_dir=.
14175 for ac_exec_ext in '' $ac_executable_extensions; do
14176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14177 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
14178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14179 break 2
14181 done
14182 done
14183 IFS=$as_save_IFS
14185 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
14187 esac
14189 RM=$ac_cv_path_RM
14190 if test -n "$RM"; then
14191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
14192 $as_echo "$RM" >&6; }
14193 else
14194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14195 $as_echo "no" >&6; }
14199 # Extract the first word of "cp", so it can be a program name with args.
14200 set dummy cp; ac_word=$2
14201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14202 $as_echo_n "checking for $ac_word... " >&6; }
14203 if ${ac_cv_path_CP+:} false; then :
14204 $as_echo_n "(cached) " >&6
14205 else
14206 case $CP in
14207 [\\/]* | ?:[\\/]*)
14208 ac_cv_path_CP="$CP" # Let the user override the test with a path.
14211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14212 for as_dir in $PATH
14214 IFS=$as_save_IFS
14215 test -z "$as_dir" && as_dir=.
14216 for ac_exec_ext in '' $ac_executable_extensions; do
14217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14218 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
14219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14220 break 2
14222 done
14223 done
14224 IFS=$as_save_IFS
14226 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
14228 esac
14230 CP=$ac_cv_path_CP
14231 if test -n "$CP"; then
14232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
14233 $as_echo "$CP" >&6; }
14234 else
14235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14236 $as_echo "no" >&6; }
14240 # Extract the first word of "ln", so it can be a program name with args.
14241 set dummy ln; ac_word=$2
14242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14243 $as_echo_n "checking for $ac_word... " >&6; }
14244 if ${ac_cv_path_LN+:} false; then :
14245 $as_echo_n "(cached) " >&6
14246 else
14247 case $LN in
14248 [\\/]* | ?:[\\/]*)
14249 ac_cv_path_LN="$LN" # Let the user override the test with a path.
14252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14253 for as_dir in $PATH
14255 IFS=$as_save_IFS
14256 test -z "$as_dir" && as_dir=.
14257 for ac_exec_ext in '' $ac_executable_extensions; do
14258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14259 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
14260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14261 break 2
14263 done
14264 done
14265 IFS=$as_save_IFS
14267 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
14269 esac
14271 LN=$ac_cv_path_LN
14272 if test -n "$LN"; then
14273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
14274 $as_echo "$LN" >&6; }
14275 else
14276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14277 $as_echo "no" >&6; }
14281 # Extract the first word of "ls", so it can be a program name with args.
14282 set dummy ls; ac_word=$2
14283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14284 $as_echo_n "checking for $ac_word... " >&6; }
14285 if ${ac_cv_path_LS+:} false; then :
14286 $as_echo_n "(cached) " >&6
14287 else
14288 case $LS in
14289 [\\/]* | ?:[\\/]*)
14290 ac_cv_path_LS="$LS" # Let the user override the test with a path.
14293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14294 for as_dir in $PATH
14296 IFS=$as_save_IFS
14297 test -z "$as_dir" && as_dir=.
14298 for ac_exec_ext in '' $ac_executable_extensions; do
14299 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14300 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
14301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14302 break 2
14304 done
14305 done
14306 IFS=$as_save_IFS
14308 test -z "$ac_cv_path_LS" && ac_cv_path_LS="ls"
14310 esac
14312 LS=$ac_cv_path_LS
14313 if test -n "$LS"; then
14314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
14315 $as_echo "$LS" >&6; }
14316 else
14317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14318 $as_echo "no" >&6; }
14322 # Extract the first word of "sed", so it can be a program name with args.
14323 set dummy sed; ac_word=$2
14324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14325 $as_echo_n "checking for $ac_word... " >&6; }
14326 if ${ac_cv_path_SED+:} false; then :
14327 $as_echo_n "(cached) " >&6
14328 else
14329 case $SED in
14330 [\\/]* | ?:[\\/]*)
14331 ac_cv_path_SED="$SED" # Let the user override the test with a path.
14334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14335 for as_dir in $PATH
14337 IFS=$as_save_IFS
14338 test -z "$as_dir" && as_dir=.
14339 for ac_exec_ext in '' $ac_executable_extensions; do
14340 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14341 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
14342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14343 break 2
14345 done
14346 done
14347 IFS=$as_save_IFS
14349 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
14351 esac
14353 SED=$ac_cv_path_SED
14354 if test -n "$SED"; then
14355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
14356 $as_echo "$SED" >&6; }
14357 else
14358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14359 $as_echo "no" >&6; }
14363 # Extract the first word of "make", so it can be a program name with args.
14364 set dummy make; ac_word=$2
14365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14366 $as_echo_n "checking for $ac_word... " >&6; }
14367 if ${ac_cv_path_MAKE+:} false; then :
14368 $as_echo_n "(cached) " >&6
14369 else
14370 case $MAKE in
14371 [\\/]* | ?:[\\/]*)
14372 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
14375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14376 for as_dir in $PATH
14378 IFS=$as_save_IFS
14379 test -z "$as_dir" && as_dir=.
14380 for ac_exec_ext in '' $ac_executable_extensions; do
14381 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14382 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
14383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14384 break 2
14386 done
14387 done
14388 IFS=$as_save_IFS
14391 esac
14393 MAKE=$ac_cv_path_MAKE
14394 if test -n "$MAKE"; then
14395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
14396 $as_echo "$MAKE" >&6; }
14397 else
14398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14399 $as_echo "no" >&6; }
14407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
14408 $as_echo_n "checking whether NLS is requested... " >&6; }
14409 # Check whether --enable-nls was given.
14410 if test "${enable_nls+set}" = set; then :
14411 enableval=$enable_nls; USE_NLS=$enableval
14412 else
14413 USE_NLS=yes
14416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
14417 $as_echo "$USE_NLS" >&6; }
14424 # Prepare PATH_SEPARATOR.
14425 # The user is always right.
14426 if test "${PATH_SEPARATOR+set}" != set; then
14427 echo "#! /bin/sh" >conf$$.sh
14428 echo "exit 0" >>conf$$.sh
14429 chmod +x conf$$.sh
14430 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14431 PATH_SEPARATOR=';'
14432 else
14433 PATH_SEPARATOR=:
14435 rm -f conf$$.sh
14438 # Find out how to test for executable files. Don't use a zero-byte file,
14439 # as systems may use methods other than mode bits to determine executability.
14440 cat >conf$$.file <<_ASEOF
14441 #! /bin/sh
14442 exit 0
14443 _ASEOF
14444 chmod +x conf$$.file
14445 if test -x conf$$.file >/dev/null 2>&1; then
14446 ac_executable_p="test -x"
14447 else
14448 ac_executable_p="test -f"
14450 rm -f conf$$.file
14452 # Extract the first word of "msgfmt", so it can be a program name with args.
14453 set dummy msgfmt; ac_word=$2
14454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14455 $as_echo_n "checking for $ac_word... " >&6; }
14456 if ${ac_cv_path_MSGFMT+:} false; then :
14457 $as_echo_n "(cached) " >&6
14458 else
14459 case "$MSGFMT" in
14460 [\\/]* | ?:[\\/]*)
14461 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
14464 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14465 for ac_dir in $PATH; do
14466 IFS="$ac_save_IFS"
14467 test -z "$ac_dir" && ac_dir=.
14468 for ac_exec_ext in '' $ac_executable_extensions; do
14469 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14470 echo "$as_me: trying $ac_dir/$ac_word..." >&5
14471 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
14472 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
14473 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
14474 break 2
14477 done
14478 done
14479 IFS="$ac_save_IFS"
14480 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
14482 esac
14484 MSGFMT="$ac_cv_path_MSGFMT"
14485 if test "$MSGFMT" != ":"; then
14486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
14487 $as_echo "$MSGFMT" >&6; }
14488 else
14489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14490 $as_echo "no" >&6; }
14493 # Extract the first word of "gmsgfmt", so it can be a program name with args.
14494 set dummy gmsgfmt; ac_word=$2
14495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14496 $as_echo_n "checking for $ac_word... " >&6; }
14497 if ${ac_cv_path_GMSGFMT+:} false; then :
14498 $as_echo_n "(cached) " >&6
14499 else
14500 case $GMSGFMT in
14501 [\\/]* | ?:[\\/]*)
14502 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
14505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14506 for as_dir in $PATH
14508 IFS=$as_save_IFS
14509 test -z "$as_dir" && as_dir=.
14510 for ac_exec_ext in '' $ac_executable_extensions; do
14511 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14512 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
14513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14514 break 2
14516 done
14517 done
14518 IFS=$as_save_IFS
14520 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
14522 esac
14524 GMSGFMT=$ac_cv_path_GMSGFMT
14525 if test -n "$GMSGFMT"; then
14526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
14527 $as_echo "$GMSGFMT" >&6; }
14528 else
14529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14530 $as_echo "no" >&6; }
14535 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
14536 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
14537 *) MSGFMT_015=$MSGFMT ;;
14538 esac
14540 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
14541 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
14542 *) GMSGFMT_015=$GMSGFMT ;;
14543 esac
14547 # Prepare PATH_SEPARATOR.
14548 # The user is always right.
14549 if test "${PATH_SEPARATOR+set}" != set; then
14550 echo "#! /bin/sh" >conf$$.sh
14551 echo "exit 0" >>conf$$.sh
14552 chmod +x conf$$.sh
14553 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14554 PATH_SEPARATOR=';'
14555 else
14556 PATH_SEPARATOR=:
14558 rm -f conf$$.sh
14561 # Find out how to test for executable files. Don't use a zero-byte file,
14562 # as systems may use methods other than mode bits to determine executability.
14563 cat >conf$$.file <<_ASEOF
14564 #! /bin/sh
14565 exit 0
14566 _ASEOF
14567 chmod +x conf$$.file
14568 if test -x conf$$.file >/dev/null 2>&1; then
14569 ac_executable_p="test -x"
14570 else
14571 ac_executable_p="test -f"
14573 rm -f conf$$.file
14575 # Extract the first word of "xgettext", so it can be a program name with args.
14576 set dummy xgettext; ac_word=$2
14577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14578 $as_echo_n "checking for $ac_word... " >&6; }
14579 if ${ac_cv_path_XGETTEXT+:} false; then :
14580 $as_echo_n "(cached) " >&6
14581 else
14582 case "$XGETTEXT" in
14583 [\\/]* | ?:[\\/]*)
14584 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
14587 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14588 for ac_dir in $PATH; do
14589 IFS="$ac_save_IFS"
14590 test -z "$ac_dir" && ac_dir=.
14591 for ac_exec_ext in '' $ac_executable_extensions; do
14592 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14593 echo "$as_me: trying $ac_dir/$ac_word..." >&5
14594 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
14595 (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
14596 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
14597 break 2
14600 done
14601 done
14602 IFS="$ac_save_IFS"
14603 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
14605 esac
14607 XGETTEXT="$ac_cv_path_XGETTEXT"
14608 if test "$XGETTEXT" != ":"; then
14609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
14610 $as_echo "$XGETTEXT" >&6; }
14611 else
14612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14613 $as_echo "no" >&6; }
14616 rm -f messages.po
14618 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
14619 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
14620 *) XGETTEXT_015=$XGETTEXT ;;
14621 esac
14625 # Prepare PATH_SEPARATOR.
14626 # The user is always right.
14627 if test "${PATH_SEPARATOR+set}" != set; then
14628 echo "#! /bin/sh" >conf$$.sh
14629 echo "exit 0" >>conf$$.sh
14630 chmod +x conf$$.sh
14631 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14632 PATH_SEPARATOR=';'
14633 else
14634 PATH_SEPARATOR=:
14636 rm -f conf$$.sh
14639 # Find out how to test for executable files. Don't use a zero-byte file,
14640 # as systems may use methods other than mode bits to determine executability.
14641 cat >conf$$.file <<_ASEOF
14642 #! /bin/sh
14643 exit 0
14644 _ASEOF
14645 chmod +x conf$$.file
14646 if test -x conf$$.file >/dev/null 2>&1; then
14647 ac_executable_p="test -x"
14648 else
14649 ac_executable_p="test -f"
14651 rm -f conf$$.file
14653 # Extract the first word of "msgmerge", so it can be a program name with args.
14654 set dummy msgmerge; ac_word=$2
14655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14656 $as_echo_n "checking for $ac_word... " >&6; }
14657 if ${ac_cv_path_MSGMERGE+:} false; then :
14658 $as_echo_n "(cached) " >&6
14659 else
14660 case "$MSGMERGE" in
14661 [\\/]* | ?:[\\/]*)
14662 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
14665 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14666 for ac_dir in $PATH; do
14667 IFS="$ac_save_IFS"
14668 test -z "$ac_dir" && ac_dir=.
14669 for ac_exec_ext in '' $ac_executable_extensions; do
14670 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14671 echo "$as_me: trying $ac_dir/$ac_word..." >&5
14672 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
14673 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
14674 break 2
14677 done
14678 done
14679 IFS="$ac_save_IFS"
14680 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
14682 esac
14684 MSGMERGE="$ac_cv_path_MSGMERGE"
14685 if test "$MSGMERGE" != ":"; then
14686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
14687 $as_echo "$MSGMERGE" >&6; }
14688 else
14689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14690 $as_echo "no" >&6; }
14694 test -n "$localedir" || localedir='${datadir}/locale'
14697 ac_config_commands="$ac_config_commands po-directories"
14701 if test "X$prefix" = "XNONE"; then
14702 acl_final_prefix="$ac_default_prefix"
14703 else
14704 acl_final_prefix="$prefix"
14706 if test "X$exec_prefix" = "XNONE"; then
14707 acl_final_exec_prefix='${prefix}'
14708 else
14709 acl_final_exec_prefix="$exec_prefix"
14711 acl_save_prefix="$prefix"
14712 prefix="$acl_final_prefix"
14713 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
14714 prefix="$acl_save_prefix"
14717 # Check whether --with-gnu-ld was given.
14718 if test "${with_gnu_ld+set}" = set; then :
14719 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14720 else
14721 with_gnu_ld=no
14724 # Prepare PATH_SEPARATOR.
14725 # The user is always right.
14726 if test "${PATH_SEPARATOR+set}" != set; then
14727 echo "#! /bin/sh" >conf$$.sh
14728 echo "exit 0" >>conf$$.sh
14729 chmod +x conf$$.sh
14730 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14731 PATH_SEPARATOR=';'
14732 else
14733 PATH_SEPARATOR=:
14735 rm -f conf$$.sh
14737 ac_prog=ld
14738 if test "$GCC" = yes; then
14739 # Check if gcc -print-prog-name=ld gives a path.
14740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
14741 $as_echo_n "checking for ld used by GCC... " >&6; }
14742 case $host in
14743 *-*-mingw*)
14744 # gcc leaves a trailing carriage return which upsets mingw
14745 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14747 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14748 esac
14749 case $ac_prog in
14750 # Accept absolute paths.
14751 [\\/]* | [A-Za-z]:[\\/]*)
14752 re_direlt='/[^/][^/]*/\.\./'
14753 # Canonicalize the path of ld
14754 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
14755 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
14756 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
14757 done
14758 test -z "$LD" && LD="$ac_prog"
14761 # If it fails, then pretend we aren't using GCC.
14762 ac_prog=ld
14765 # If it is relative, then search for the first ld in PATH.
14766 with_gnu_ld=unknown
14768 esac
14769 elif test "$with_gnu_ld" = yes; then
14770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14771 $as_echo_n "checking for GNU ld... " >&6; }
14772 else
14773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14774 $as_echo_n "checking for non-GNU ld... " >&6; }
14776 if ${acl_cv_path_LD+:} false; then :
14777 $as_echo_n "(cached) " >&6
14778 else
14779 if test -z "$LD"; then
14780 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
14781 for ac_dir in $PATH; do
14782 test -z "$ac_dir" && ac_dir=.
14783 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14784 acl_cv_path_LD="$ac_dir/$ac_prog"
14785 # Check to see if the program is GNU ld. I'd rather use --version,
14786 # but apparently some GNU ld's only accept -v.
14787 # Break only if it was the GNU/non-GNU ld that we prefer.
14788 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
14789 *GNU* | *'with BFD'*)
14790 test "$with_gnu_ld" != no && break ;;
14792 test "$with_gnu_ld" != yes && break ;;
14793 esac
14795 done
14796 IFS="$ac_save_ifs"
14797 else
14798 acl_cv_path_LD="$LD" # Let the user override the test with a path.
14802 LD="$acl_cv_path_LD"
14803 if test -n "$LD"; then
14804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14805 $as_echo "$LD" >&6; }
14806 else
14807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14808 $as_echo "no" >&6; }
14810 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14812 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14813 if ${acl_cv_prog_gnu_ld+:} false; then :
14814 $as_echo_n "(cached) " >&6
14815 else
14816 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
14817 case `$LD -v 2>&1 </dev/null` in
14818 *GNU* | *'with BFD'*)
14819 acl_cv_prog_gnu_ld=yes ;;
14821 acl_cv_prog_gnu_ld=no ;;
14822 esac
14824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
14825 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
14826 with_gnu_ld=$acl_cv_prog_gnu_ld
14831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
14832 $as_echo_n "checking for shared library run path origin... " >&6; }
14833 if ${acl_cv_rpath+:} false; then :
14834 $as_echo_n "(cached) " >&6
14835 else
14837 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
14838 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
14839 . ./conftest.sh
14840 rm -f ./conftest.sh
14841 acl_cv_rpath=done
14844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
14845 $as_echo "$acl_cv_rpath" >&6; }
14846 wl="$acl_cv_wl"
14847 libext="$acl_cv_libext"
14848 shlibext="$acl_cv_shlibext"
14849 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
14850 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
14851 hardcode_direct="$acl_cv_hardcode_direct"
14852 hardcode_minus_L="$acl_cv_hardcode_minus_L"
14853 # Check whether --enable-rpath was given.
14854 if test "${enable_rpath+set}" = set; then :
14855 enableval=$enable_rpath; :
14856 else
14857 enable_rpath=yes
14862 acl_libdirstem=lib
14863 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
14864 if test -n "$searchpath"; then
14865 acl_save_IFS="${IFS= }"; IFS=":"
14866 for searchdir in $searchpath; do
14867 if test -d "$searchdir"; then
14868 case "$searchdir" in
14869 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
14870 *) searchdir=`cd "$searchdir" && pwd`
14871 case "$searchdir" in
14872 */lib64 ) acl_libdirstem=lib64 ;;
14873 esac ;;
14874 esac
14876 done
14877 IFS="$acl_save_IFS"
14887 use_additional=yes
14889 acl_save_prefix="$prefix"
14890 prefix="$acl_final_prefix"
14891 acl_save_exec_prefix="$exec_prefix"
14892 exec_prefix="$acl_final_exec_prefix"
14894 eval additional_includedir=\"$includedir\"
14895 eval additional_libdir=\"$libdir\"
14897 exec_prefix="$acl_save_exec_prefix"
14898 prefix="$acl_save_prefix"
14901 # Check whether --with-libiconv-prefix was given.
14902 if test "${with_libiconv_prefix+set}" = set; then :
14903 withval=$with_libiconv_prefix;
14904 if test "X$withval" = "Xno"; then
14905 use_additional=no
14906 else
14907 if test "X$withval" = "X"; then
14909 acl_save_prefix="$prefix"
14910 prefix="$acl_final_prefix"
14911 acl_save_exec_prefix="$exec_prefix"
14912 exec_prefix="$acl_final_exec_prefix"
14914 eval additional_includedir=\"$includedir\"
14915 eval additional_libdir=\"$libdir\"
14917 exec_prefix="$acl_save_exec_prefix"
14918 prefix="$acl_save_prefix"
14920 else
14921 additional_includedir="$withval/include"
14922 additional_libdir="$withval/$acl_libdirstem"
14928 LIBICONV=
14929 LTLIBICONV=
14930 INCICONV=
14931 rpathdirs=
14932 ltrpathdirs=
14933 names_already_handled=
14934 names_next_round='iconv '
14935 while test -n "$names_next_round"; do
14936 names_this_round="$names_next_round"
14937 names_next_round=
14938 for name in $names_this_round; do
14939 already_handled=
14940 for n in $names_already_handled; do
14941 if test "$n" = "$name"; then
14942 already_handled=yes
14943 break
14945 done
14946 if test -z "$already_handled"; then
14947 names_already_handled="$names_already_handled $name"
14948 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14949 eval value=\"\$HAVE_LIB$uppername\"
14950 if test -n "$value"; then
14951 if test "$value" = yes; then
14952 eval value=\"\$LIB$uppername\"
14953 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
14954 eval value=\"\$LTLIB$uppername\"
14955 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
14956 else
14959 else
14960 found_dir=
14961 found_la=
14962 found_so=
14963 found_a=
14964 if test $use_additional = yes; then
14965 if test -n "$shlibext" \
14966 && { test -f "$additional_libdir/lib$name.$shlibext" \
14967 || { test "$shlibext" = dll \
14968 && test -f "$additional_libdir/lib$name.dll.a"; }; }; then
14969 found_dir="$additional_libdir"
14970 if test -f "$additional_libdir/lib$name.$shlibext"; then
14971 found_so="$additional_libdir/lib$name.$shlibext"
14972 else
14973 found_so="$additional_libdir/lib$name.dll.a"
14975 if test -f "$additional_libdir/lib$name.la"; then
14976 found_la="$additional_libdir/lib$name.la"
14978 else
14979 if test -f "$additional_libdir/lib$name.$libext"; then
14980 found_dir="$additional_libdir"
14981 found_a="$additional_libdir/lib$name.$libext"
14982 if test -f "$additional_libdir/lib$name.la"; then
14983 found_la="$additional_libdir/lib$name.la"
14988 if test "X$found_dir" = "X"; then
14989 for x in $LDFLAGS $LTLIBICONV; do
14991 acl_save_prefix="$prefix"
14992 prefix="$acl_final_prefix"
14993 acl_save_exec_prefix="$exec_prefix"
14994 exec_prefix="$acl_final_exec_prefix"
14995 eval x=\"$x\"
14996 exec_prefix="$acl_save_exec_prefix"
14997 prefix="$acl_save_prefix"
14999 case "$x" in
15000 -L*)
15001 dir=`echo "X$x" | sed -e 's/^X-L//'`
15002 if test -n "$shlibext" \
15003 && { test -f "$dir/lib$name.$shlibext" \
15004 || { test "$shlibext" = dll \
15005 && test -f "$dir/lib$name.dll.a"; }; }; then
15006 found_dir="$dir"
15007 if test -f "$dir/lib$name.$shlibext"; then
15008 found_so="$dir/lib$name.$shlibext"
15009 else
15010 found_so="$dir/lib$name.dll.a"
15012 if test -f "$dir/lib$name.la"; then
15013 found_la="$dir/lib$name.la"
15015 else
15016 if test -f "$dir/lib$name.$libext"; then
15017 found_dir="$dir"
15018 found_a="$dir/lib$name.$libext"
15019 if test -f "$dir/lib$name.la"; then
15020 found_la="$dir/lib$name.la"
15025 esac
15026 if test "X$found_dir" != "X"; then
15027 break
15029 done
15031 if test "X$found_dir" != "X"; then
15032 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
15033 if test "X$found_so" != "X"; then
15034 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
15035 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15036 else
15037 haveit=
15038 for x in $ltrpathdirs; do
15039 if test "X$x" = "X$found_dir"; then
15040 haveit=yes
15041 break
15043 done
15044 if test -z "$haveit"; then
15045 ltrpathdirs="$ltrpathdirs $found_dir"
15047 if test "$hardcode_direct" = yes; then
15048 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15049 else
15050 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
15051 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15052 haveit=
15053 for x in $rpathdirs; do
15054 if test "X$x" = "X$found_dir"; then
15055 haveit=yes
15056 break
15058 done
15059 if test -z "$haveit"; then
15060 rpathdirs="$rpathdirs $found_dir"
15062 else
15063 haveit=
15064 for x in $LDFLAGS $LIBICONV; do
15066 acl_save_prefix="$prefix"
15067 prefix="$acl_final_prefix"
15068 acl_save_exec_prefix="$exec_prefix"
15069 exec_prefix="$acl_final_exec_prefix"
15070 eval x=\"$x\"
15071 exec_prefix="$acl_save_exec_prefix"
15072 prefix="$acl_save_prefix"
15074 if test "X$x" = "X-L$found_dir"; then
15075 haveit=yes
15076 break
15078 done
15079 if test -z "$haveit"; then
15080 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
15082 if test "$hardcode_minus_L" != no; then
15083 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15084 else
15085 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
15090 else
15091 if test "X$found_a" != "X"; then
15092 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
15093 else
15094 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
15097 additional_includedir=
15098 case "$found_dir" in
15099 */$acl_libdirstem | */$acl_libdirstem/)
15100 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
15101 additional_includedir="$basedir/include"
15103 esac
15104 if test "X$additional_includedir" != "X"; then
15105 if test "X$additional_includedir" != "X/usr/include"; then
15106 haveit=
15107 if test "X$additional_includedir" = "X/usr/local/include"; then
15108 if test -n "$GCC"; then
15109 case $host_os in
15110 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15111 esac
15114 if test -z "$haveit"; then
15115 for x in $CPPFLAGS $INCICONV; do
15117 acl_save_prefix="$prefix"
15118 prefix="$acl_final_prefix"
15119 acl_save_exec_prefix="$exec_prefix"
15120 exec_prefix="$acl_final_exec_prefix"
15121 eval x=\"$x\"
15122 exec_prefix="$acl_save_exec_prefix"
15123 prefix="$acl_save_prefix"
15125 if test "X$x" = "X-I$additional_includedir"; then
15126 haveit=yes
15127 break
15129 done
15130 if test -z "$haveit"; then
15131 if test -d "$additional_includedir"; then
15132 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
15138 if test -n "$found_la"; then
15139 save_libdir="$libdir"
15140 case "$found_la" in
15141 */* | *\\*) . "$found_la" ;;
15142 *) . "./$found_la" ;;
15143 esac
15144 libdir="$save_libdir"
15145 for dep in $dependency_libs; do
15146 case "$dep" in
15147 -L*)
15148 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
15149 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
15150 haveit=
15151 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
15152 if test -n "$GCC"; then
15153 case $host_os in
15154 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15155 esac
15158 if test -z "$haveit"; then
15159 haveit=
15160 for x in $LDFLAGS $LIBICONV; do
15162 acl_save_prefix="$prefix"
15163 prefix="$acl_final_prefix"
15164 acl_save_exec_prefix="$exec_prefix"
15165 exec_prefix="$acl_final_exec_prefix"
15166 eval x=\"$x\"
15167 exec_prefix="$acl_save_exec_prefix"
15168 prefix="$acl_save_prefix"
15170 if test "X$x" = "X-L$additional_libdir"; then
15171 haveit=yes
15172 break
15174 done
15175 if test -z "$haveit"; then
15176 if test -d "$additional_libdir"; then
15177 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
15180 haveit=
15181 for x in $LDFLAGS $LTLIBICONV; do
15183 acl_save_prefix="$prefix"
15184 prefix="$acl_final_prefix"
15185 acl_save_exec_prefix="$exec_prefix"
15186 exec_prefix="$acl_final_exec_prefix"
15187 eval x=\"$x\"
15188 exec_prefix="$acl_save_exec_prefix"
15189 prefix="$acl_save_prefix"
15191 if test "X$x" = "X-L$additional_libdir"; then
15192 haveit=yes
15193 break
15195 done
15196 if test -z "$haveit"; then
15197 if test -d "$additional_libdir"; then
15198 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
15204 -R*)
15205 dir=`echo "X$dep" | sed -e 's/^X-R//'`
15206 if test "$enable_rpath" != no; then
15207 haveit=
15208 for x in $rpathdirs; do
15209 if test "X$x" = "X$dir"; then
15210 haveit=yes
15211 break
15213 done
15214 if test -z "$haveit"; then
15215 rpathdirs="$rpathdirs $dir"
15217 haveit=
15218 for x in $ltrpathdirs; do
15219 if test "X$x" = "X$dir"; then
15220 haveit=yes
15221 break
15223 done
15224 if test -z "$haveit"; then
15225 ltrpathdirs="$ltrpathdirs $dir"
15229 -l*)
15230 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15232 *.la)
15233 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15236 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
15237 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
15239 esac
15240 done
15242 else
15243 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
15244 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
15248 done
15249 done
15250 if test "X$rpathdirs" != "X"; then
15251 if test -n "$hardcode_libdir_separator"; then
15252 alldirs=
15253 for found_dir in $rpathdirs; do
15254 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
15255 done
15256 acl_save_libdir="$libdir"
15257 libdir="$alldirs"
15258 eval flag=\"$hardcode_libdir_flag_spec\"
15259 libdir="$acl_save_libdir"
15260 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
15261 else
15262 for found_dir in $rpathdirs; do
15263 acl_save_libdir="$libdir"
15264 libdir="$found_dir"
15265 eval flag=\"$hardcode_libdir_flag_spec\"
15266 libdir="$acl_save_libdir"
15267 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
15268 done
15271 if test "X$ltrpathdirs" != "X"; then
15272 for found_dir in $ltrpathdirs; do
15273 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
15274 done
15301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
15302 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
15303 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
15304 $as_echo_n "(cached) " >&6
15305 else
15306 gt_save_LIBS="$LIBS"
15307 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
15308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15309 /* end confdefs.h. */
15310 #include <CoreFoundation/CFPreferences.h>
15312 main ()
15314 CFPreferencesCopyAppValue(NULL, NULL)
15316 return 0;
15318 _ACEOF
15319 if ac_fn_c_try_link "$LINENO"; then :
15320 gt_cv_func_CFPreferencesCopyAppValue=yes
15321 else
15322 gt_cv_func_CFPreferencesCopyAppValue=no
15324 rm -f core conftest.err conftest.$ac_objext \
15325 conftest$ac_exeext conftest.$ac_ext
15326 LIBS="$gt_save_LIBS"
15328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
15329 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
15330 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
15332 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
15335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
15336 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
15337 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
15338 $as_echo_n "(cached) " >&6
15339 else
15340 gt_save_LIBS="$LIBS"
15341 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
15342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15343 /* end confdefs.h. */
15344 #include <CoreFoundation/CFLocale.h>
15346 main ()
15348 CFLocaleCopyCurrent();
15350 return 0;
15352 _ACEOF
15353 if ac_fn_c_try_link "$LINENO"; then :
15354 gt_cv_func_CFLocaleCopyCurrent=yes
15355 else
15356 gt_cv_func_CFLocaleCopyCurrent=no
15358 rm -f core conftest.err conftest.$ac_objext \
15359 conftest$ac_exeext conftest.$ac_ext
15360 LIBS="$gt_save_LIBS"
15362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
15363 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
15364 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
15366 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
15369 INTL_MACOSX_LIBS=
15370 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
15371 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
15379 LIBINTL=
15380 LTLIBINTL=
15381 POSUB=
15383 case " $gt_needs " in
15384 *" need-formatstring-macros "*) gt_api_version=3 ;;
15385 *" need-ngettext "*) gt_api_version=2 ;;
15386 *) gt_api_version=1 ;;
15387 esac
15388 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
15389 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
15391 if test "$USE_NLS" = "yes"; then
15392 gt_use_preinstalled_gnugettext=no
15395 if test $gt_api_version -ge 3; then
15396 gt_revision_test_code='
15397 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
15398 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
15399 #endif
15400 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
15402 else
15403 gt_revision_test_code=
15405 if test $gt_api_version -ge 2; then
15406 gt_expression_test_code=' + * ngettext ("", "", 0)'
15407 else
15408 gt_expression_test_code=
15411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
15412 $as_echo_n "checking for GNU gettext in libc... " >&6; }
15413 if eval \${$gt_func_gnugettext_libc+:} false; then :
15414 $as_echo_n "(cached) " >&6
15415 else
15416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15417 /* end confdefs.h. */
15418 #include <libintl.h>
15419 $gt_revision_test_code
15420 extern int _nl_msg_cat_cntr;
15421 extern int *_nl_domain_bindings;
15423 main ()
15425 bindtextdomain ("", "");
15426 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
15428 return 0;
15430 _ACEOF
15431 if ac_fn_c_try_link "$LINENO"; then :
15432 eval "$gt_func_gnugettext_libc=yes"
15433 else
15434 eval "$gt_func_gnugettext_libc=no"
15436 rm -f core conftest.err conftest.$ac_objext \
15437 conftest$ac_exeext conftest.$ac_ext
15439 eval ac_res=\$$gt_func_gnugettext_libc
15440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15441 $as_echo "$ac_res" >&6; }
15443 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
15449 am_save_CPPFLAGS="$CPPFLAGS"
15451 for element in $INCICONV; do
15452 haveit=
15453 for x in $CPPFLAGS; do
15455 acl_save_prefix="$prefix"
15456 prefix="$acl_final_prefix"
15457 acl_save_exec_prefix="$exec_prefix"
15458 exec_prefix="$acl_final_exec_prefix"
15459 eval x=\"$x\"
15460 exec_prefix="$acl_save_exec_prefix"
15461 prefix="$acl_save_prefix"
15463 if test "X$x" = "X$element"; then
15464 haveit=yes
15465 break
15467 done
15468 if test -z "$haveit"; then
15469 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15471 done
15474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
15475 $as_echo_n "checking for iconv... " >&6; }
15476 if ${am_cv_func_iconv+:} false; then :
15477 $as_echo_n "(cached) " >&6
15478 else
15480 am_cv_func_iconv="no, consider installing GNU libiconv"
15481 am_cv_lib_iconv=no
15482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15483 /* end confdefs.h. */
15484 #include <stdlib.h>
15485 #include <iconv.h>
15487 main ()
15489 iconv_t cd = iconv_open("","");
15490 iconv(cd,NULL,NULL,NULL,NULL);
15491 iconv_close(cd);
15493 return 0;
15495 _ACEOF
15496 if ac_fn_c_try_link "$LINENO"; then :
15497 am_cv_func_iconv=yes
15499 rm -f core conftest.err conftest.$ac_objext \
15500 conftest$ac_exeext conftest.$ac_ext
15501 if test "$am_cv_func_iconv" != yes; then
15502 am_save_LIBS="$LIBS"
15503 LIBS="$LIBS $LIBICONV"
15504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15505 /* end confdefs.h. */
15506 #include <stdlib.h>
15507 #include <iconv.h>
15509 main ()
15511 iconv_t cd = iconv_open("","");
15512 iconv(cd,NULL,NULL,NULL,NULL);
15513 iconv_close(cd);
15515 return 0;
15517 _ACEOF
15518 if ac_fn_c_try_link "$LINENO"; then :
15519 am_cv_lib_iconv=yes
15520 am_cv_func_iconv=yes
15522 rm -f core conftest.err conftest.$ac_objext \
15523 conftest$ac_exeext conftest.$ac_ext
15524 LIBS="$am_save_LIBS"
15528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
15529 $as_echo "$am_cv_func_iconv" >&6; }
15530 if test "$am_cv_func_iconv" = yes; then
15532 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
15535 if test "$am_cv_lib_iconv" = yes; then
15536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
15537 $as_echo_n "checking how to link with libiconv... " >&6; }
15538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
15539 $as_echo "$LIBICONV" >&6; }
15540 else
15541 CPPFLAGS="$am_save_CPPFLAGS"
15542 LIBICONV=
15543 LTLIBICONV=
15552 use_additional=yes
15554 acl_save_prefix="$prefix"
15555 prefix="$acl_final_prefix"
15556 acl_save_exec_prefix="$exec_prefix"
15557 exec_prefix="$acl_final_exec_prefix"
15559 eval additional_includedir=\"$includedir\"
15560 eval additional_libdir=\"$libdir\"
15562 exec_prefix="$acl_save_exec_prefix"
15563 prefix="$acl_save_prefix"
15566 # Check whether --with-libintl-prefix was given.
15567 if test "${with_libintl_prefix+set}" = set; then :
15568 withval=$with_libintl_prefix;
15569 if test "X$withval" = "Xno"; then
15570 use_additional=no
15571 else
15572 if test "X$withval" = "X"; then
15574 acl_save_prefix="$prefix"
15575 prefix="$acl_final_prefix"
15576 acl_save_exec_prefix="$exec_prefix"
15577 exec_prefix="$acl_final_exec_prefix"
15579 eval additional_includedir=\"$includedir\"
15580 eval additional_libdir=\"$libdir\"
15582 exec_prefix="$acl_save_exec_prefix"
15583 prefix="$acl_save_prefix"
15585 else
15586 additional_includedir="$withval/include"
15587 additional_libdir="$withval/$acl_libdirstem"
15593 LIBINTL=
15594 LTLIBINTL=
15595 INCINTL=
15596 rpathdirs=
15597 ltrpathdirs=
15598 names_already_handled=
15599 names_next_round='intl '
15600 while test -n "$names_next_round"; do
15601 names_this_round="$names_next_round"
15602 names_next_round=
15603 for name in $names_this_round; do
15604 already_handled=
15605 for n in $names_already_handled; do
15606 if test "$n" = "$name"; then
15607 already_handled=yes
15608 break
15610 done
15611 if test -z "$already_handled"; then
15612 names_already_handled="$names_already_handled $name"
15613 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
15614 eval value=\"\$HAVE_LIB$uppername\"
15615 if test -n "$value"; then
15616 if test "$value" = yes; then
15617 eval value=\"\$LIB$uppername\"
15618 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
15619 eval value=\"\$LTLIB$uppername\"
15620 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
15621 else
15624 else
15625 found_dir=
15626 found_la=
15627 found_so=
15628 found_a=
15629 if test $use_additional = yes; then
15630 if test -n "$shlibext" \
15631 && { test -f "$additional_libdir/lib$name.$shlibext" \
15632 || { test "$shlibext" = dll \
15633 && test -f "$additional_libdir/lib$name.dll.a"; }; }; then
15634 found_dir="$additional_libdir"
15635 if test -f "$additional_libdir/lib$name.$shlibext"; then
15636 found_so="$additional_libdir/lib$name.$shlibext"
15637 else
15638 found_so="$additional_libdir/lib$name.dll.a"
15640 if test -f "$additional_libdir/lib$name.la"; then
15641 found_la="$additional_libdir/lib$name.la"
15643 else
15644 if test -f "$additional_libdir/lib$name.$libext"; then
15645 found_dir="$additional_libdir"
15646 found_a="$additional_libdir/lib$name.$libext"
15647 if test -f "$additional_libdir/lib$name.la"; then
15648 found_la="$additional_libdir/lib$name.la"
15653 if test "X$found_dir" = "X"; then
15654 for x in $LDFLAGS $LTLIBINTL; do
15656 acl_save_prefix="$prefix"
15657 prefix="$acl_final_prefix"
15658 acl_save_exec_prefix="$exec_prefix"
15659 exec_prefix="$acl_final_exec_prefix"
15660 eval x=\"$x\"
15661 exec_prefix="$acl_save_exec_prefix"
15662 prefix="$acl_save_prefix"
15664 case "$x" in
15665 -L*)
15666 dir=`echo "X$x" | sed -e 's/^X-L//'`
15667 if test -n "$shlibext" \
15668 && { test -f "$dir/lib$name.$shlibext" \
15669 || { test "$shlibext" = dll \
15670 && test -f "$dir/lib$name.dll.a"; }; }; then
15671 found_dir="$dir"
15672 if test -f "$dir/lib$name.$shlibext"; then
15673 found_so="$dir/lib$name.$shlibext"
15674 else
15675 found_so="$dir/lib$name.dll.a"
15677 if test -f "$dir/lib$name.la"; then
15678 found_la="$dir/lib$name.la"
15680 else
15681 if test -f "$dir/lib$name.$libext"; then
15682 found_dir="$dir"
15683 found_a="$dir/lib$name.$libext"
15684 if test -f "$dir/lib$name.la"; then
15685 found_la="$dir/lib$name.la"
15690 esac
15691 if test "X$found_dir" != "X"; then
15692 break
15694 done
15696 if test "X$found_dir" != "X"; then
15697 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
15698 if test "X$found_so" != "X"; then
15699 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
15700 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15701 else
15702 haveit=
15703 for x in $ltrpathdirs; do
15704 if test "X$x" = "X$found_dir"; then
15705 haveit=yes
15706 break
15708 done
15709 if test -z "$haveit"; then
15710 ltrpathdirs="$ltrpathdirs $found_dir"
15712 if test "$hardcode_direct" = yes; then
15713 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15714 else
15715 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
15716 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15717 haveit=
15718 for x in $rpathdirs; do
15719 if test "X$x" = "X$found_dir"; then
15720 haveit=yes
15721 break
15723 done
15724 if test -z "$haveit"; then
15725 rpathdirs="$rpathdirs $found_dir"
15727 else
15728 haveit=
15729 for x in $LDFLAGS $LIBINTL; do
15731 acl_save_prefix="$prefix"
15732 prefix="$acl_final_prefix"
15733 acl_save_exec_prefix="$exec_prefix"
15734 exec_prefix="$acl_final_exec_prefix"
15735 eval x=\"$x\"
15736 exec_prefix="$acl_save_exec_prefix"
15737 prefix="$acl_save_prefix"
15739 if test "X$x" = "X-L$found_dir"; then
15740 haveit=yes
15741 break
15743 done
15744 if test -z "$haveit"; then
15745 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
15747 if test "$hardcode_minus_L" != no; then
15748 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15749 else
15750 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
15755 else
15756 if test "X$found_a" != "X"; then
15757 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
15758 else
15759 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
15762 additional_includedir=
15763 case "$found_dir" in
15764 */$acl_libdirstem | */$acl_libdirstem/)
15765 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
15766 additional_includedir="$basedir/include"
15768 esac
15769 if test "X$additional_includedir" != "X"; then
15770 if test "X$additional_includedir" != "X/usr/include"; then
15771 haveit=
15772 if test "X$additional_includedir" = "X/usr/local/include"; then
15773 if test -n "$GCC"; then
15774 case $host_os in
15775 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15776 esac
15779 if test -z "$haveit"; then
15780 for x in $CPPFLAGS $INCINTL; do
15782 acl_save_prefix="$prefix"
15783 prefix="$acl_final_prefix"
15784 acl_save_exec_prefix="$exec_prefix"
15785 exec_prefix="$acl_final_exec_prefix"
15786 eval x=\"$x\"
15787 exec_prefix="$acl_save_exec_prefix"
15788 prefix="$acl_save_prefix"
15790 if test "X$x" = "X-I$additional_includedir"; then
15791 haveit=yes
15792 break
15794 done
15795 if test -z "$haveit"; then
15796 if test -d "$additional_includedir"; then
15797 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
15803 if test -n "$found_la"; then
15804 save_libdir="$libdir"
15805 case "$found_la" in
15806 */* | *\\*) . "$found_la" ;;
15807 *) . "./$found_la" ;;
15808 esac
15809 libdir="$save_libdir"
15810 for dep in $dependency_libs; do
15811 case "$dep" in
15812 -L*)
15813 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
15814 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
15815 haveit=
15816 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
15817 if test -n "$GCC"; then
15818 case $host_os in
15819 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15820 esac
15823 if test -z "$haveit"; then
15824 haveit=
15825 for x in $LDFLAGS $LIBINTL; do
15827 acl_save_prefix="$prefix"
15828 prefix="$acl_final_prefix"
15829 acl_save_exec_prefix="$exec_prefix"
15830 exec_prefix="$acl_final_exec_prefix"
15831 eval x=\"$x\"
15832 exec_prefix="$acl_save_exec_prefix"
15833 prefix="$acl_save_prefix"
15835 if test "X$x" = "X-L$additional_libdir"; then
15836 haveit=yes
15837 break
15839 done
15840 if test -z "$haveit"; then
15841 if test -d "$additional_libdir"; then
15842 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
15845 haveit=
15846 for x in $LDFLAGS $LTLIBINTL; do
15848 acl_save_prefix="$prefix"
15849 prefix="$acl_final_prefix"
15850 acl_save_exec_prefix="$exec_prefix"
15851 exec_prefix="$acl_final_exec_prefix"
15852 eval x=\"$x\"
15853 exec_prefix="$acl_save_exec_prefix"
15854 prefix="$acl_save_prefix"
15856 if test "X$x" = "X-L$additional_libdir"; then
15857 haveit=yes
15858 break
15860 done
15861 if test -z "$haveit"; then
15862 if test -d "$additional_libdir"; then
15863 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
15869 -R*)
15870 dir=`echo "X$dep" | sed -e 's/^X-R//'`
15871 if test "$enable_rpath" != no; then
15872 haveit=
15873 for x in $rpathdirs; do
15874 if test "X$x" = "X$dir"; then
15875 haveit=yes
15876 break
15878 done
15879 if test -z "$haveit"; then
15880 rpathdirs="$rpathdirs $dir"
15882 haveit=
15883 for x in $ltrpathdirs; do
15884 if test "X$x" = "X$dir"; then
15885 haveit=yes
15886 break
15888 done
15889 if test -z "$haveit"; then
15890 ltrpathdirs="$ltrpathdirs $dir"
15894 -l*)
15895 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15897 *.la)
15898 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15901 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
15902 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
15904 esac
15905 done
15907 else
15908 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
15909 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
15913 done
15914 done
15915 if test "X$rpathdirs" != "X"; then
15916 if test -n "$hardcode_libdir_separator"; then
15917 alldirs=
15918 for found_dir in $rpathdirs; do
15919 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
15920 done
15921 acl_save_libdir="$libdir"
15922 libdir="$alldirs"
15923 eval flag=\"$hardcode_libdir_flag_spec\"
15924 libdir="$acl_save_libdir"
15925 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
15926 else
15927 for found_dir in $rpathdirs; do
15928 acl_save_libdir="$libdir"
15929 libdir="$found_dir"
15930 eval flag=\"$hardcode_libdir_flag_spec\"
15931 libdir="$acl_save_libdir"
15932 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
15933 done
15936 if test "X$ltrpathdirs" != "X"; then
15937 for found_dir in $ltrpathdirs; do
15938 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
15939 done
15942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
15943 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
15944 if eval \${$gt_func_gnugettext_libintl+:} false; then :
15945 $as_echo_n "(cached) " >&6
15946 else
15947 gt_save_CPPFLAGS="$CPPFLAGS"
15948 CPPFLAGS="$CPPFLAGS $INCINTL"
15949 gt_save_LIBS="$LIBS"
15950 LIBS="$LIBS $LIBINTL"
15951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15952 /* end confdefs.h. */
15953 #include <libintl.h>
15954 $gt_revision_test_code
15955 extern int _nl_msg_cat_cntr;
15956 extern
15957 #ifdef __cplusplus
15959 #endif
15960 const char *_nl_expand_alias (const char *);
15962 main ()
15964 bindtextdomain ("", "");
15965 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
15967 return 0;
15969 _ACEOF
15970 if ac_fn_c_try_link "$LINENO"; then :
15971 eval "$gt_func_gnugettext_libintl=yes"
15972 else
15973 eval "$gt_func_gnugettext_libintl=no"
15975 rm -f core conftest.err conftest.$ac_objext \
15976 conftest$ac_exeext conftest.$ac_ext
15977 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
15978 LIBS="$LIBS $LIBICONV"
15979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15980 /* end confdefs.h. */
15981 #include <libintl.h>
15982 $gt_revision_test_code
15983 extern int _nl_msg_cat_cntr;
15984 extern
15985 #ifdef __cplusplus
15987 #endif
15988 const char *_nl_expand_alias (const char *);
15990 main ()
15992 bindtextdomain ("", "");
15993 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
15995 return 0;
15997 _ACEOF
15998 if ac_fn_c_try_link "$LINENO"; then :
15999 LIBINTL="$LIBINTL $LIBICONV"
16000 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
16001 eval "$gt_func_gnugettext_libintl=yes"
16004 rm -f core conftest.err conftest.$ac_objext \
16005 conftest$ac_exeext conftest.$ac_ext
16007 CPPFLAGS="$gt_save_CPPFLAGS"
16008 LIBS="$gt_save_LIBS"
16010 eval ac_res=\$$gt_func_gnugettext_libintl
16011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16012 $as_echo "$ac_res" >&6; }
16015 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
16016 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
16017 && test "$PACKAGE" != gettext-runtime \
16018 && test "$PACKAGE" != gettext-tools; }; then
16019 gt_use_preinstalled_gnugettext=yes
16020 else
16021 LIBINTL=
16022 LTLIBINTL=
16023 INCINTL=
16028 if test -n "$INTL_MACOSX_LIBS"; then
16029 if test "$gt_use_preinstalled_gnugettext" = "yes" \
16030 || test "$nls_cv_use_gnu_gettext" = "yes"; then
16031 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
16032 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
16036 if test "$gt_use_preinstalled_gnugettext" = "yes" \
16037 || test "$nls_cv_use_gnu_gettext" = "yes"; then
16039 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
16041 else
16042 USE_NLS=no
16046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
16047 $as_echo_n "checking whether to use NLS... " >&6; }
16048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
16049 $as_echo "$USE_NLS" >&6; }
16050 if test "$USE_NLS" = "yes"; then
16051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
16052 $as_echo_n "checking where the gettext function comes from... " >&6; }
16053 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
16054 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
16055 gt_source="external libintl"
16056 else
16057 gt_source="libc"
16059 else
16060 gt_source="included intl directory"
16062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
16063 $as_echo "$gt_source" >&6; }
16066 if test "$USE_NLS" = "yes"; then
16068 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
16069 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
16070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
16071 $as_echo_n "checking how to link with libintl... " >&6; }
16072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
16073 $as_echo "$LIBINTL" >&6; }
16075 for element in $INCINTL; do
16076 haveit=
16077 for x in $CPPFLAGS; do
16079 acl_save_prefix="$prefix"
16080 prefix="$acl_final_prefix"
16081 acl_save_exec_prefix="$exec_prefix"
16082 exec_prefix="$acl_final_exec_prefix"
16083 eval x=\"$x\"
16084 exec_prefix="$acl_save_exec_prefix"
16085 prefix="$acl_save_prefix"
16087 if test "X$x" = "X$element"; then
16088 haveit=yes
16089 break
16091 done
16092 if test -z "$haveit"; then
16093 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
16095 done
16100 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
16103 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
16107 POSUB=po
16112 INTLLIBS="$LIBINTL"
16120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: dmalloc enabled" >&5
16121 $as_echo_n "checking option: dmalloc enabled... " >&6; }
16122 # Check whether --enable-dmalloc was given.
16123 if test "${enable_dmalloc+set}" = set; then :
16124 enableval=$enable_dmalloc;
16127 if test x$enable_dmalloc = "xyes" ; then
16128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16129 $as_echo "yes" >&6; }
16130 else
16131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16132 $as_echo "no" >&6; }
16136 # Check whether --with-dmalloc-dir was given.
16137 if test "${with_dmalloc_dir+set}" = set; then :
16138 withval=$with_dmalloc_dir;
16139 if test "x$withval" != "xno" ; then
16140 enable_dmalloc = "yes"
16141 CPPFLAGS="$CPPFLAGS -I${withval}"
16142 LDFLAGS="$LDFLAGS -L${withval}"
16148 if test x$enable_dmalloc = "xyes" ; then
16150 $as_echo "#define ENABLE_DMALLOC 1" >>confdefs.h
16154 ALPINE_datestamp=`date`
16156 # Check whether --with-date-stamp was given.
16157 if test "${with_date_stamp+set}" = set; then :
16158 withval=$with_date_stamp;
16159 if test "x$withval" != "xno" ; then
16160 ALPINE_datestamp=$withval
16165 ALPINE_DATESTAMP=$ALPINE_datestamp
16168 ALPINE_hoststamp=`hostname`
16170 # Check whether --with-host-stamp was given.
16171 if test "${with_host_stamp+set}" = set; then :
16172 withval=$with_host_stamp;
16173 if test "x$withval" != "xno" ; then
16174 ALPINE_hoststamp="$withval"
16179 ALPINE_HOSTSTAMP=$ALPINE_hoststamp
16182 case $host in
16183 *apple-darwin*)
16184 if test -d /opt/local ; then
16185 localedir="/opt/local/share/locale"
16186 else
16187 localedir="\${datadir}/locale"
16190 *-*-cygwin)
16191 localedir="/usr/share"
16194 localedir="\${datadir}/locale"
16196 esac
16199 # Check whether --with-localedir was given.
16200 if test "${with_localedir+set}" = set; then :
16201 withval=$with_localedir;
16202 case $withval in
16203 yes)
16208 localedir=$withval
16210 esac
16214 localedir="$localedir"
16217 # Setup OS-Specific features
16218 case "$host" in
16219 *darwin*)
16220 # Check whether --enable-osx-universal-binaries was given.
16221 if test "${enable_osx_universal_binaries+set}" = set; then :
16222 enableval=$enable_osx_universal_binaries;
16225 if test "x$enable_osx_universal_binaries" = "xyes" ; then
16226 if test "x$enable_dependency_tracking" != xno ; then
16227 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
16228 Please re-run configure with these options:
16229 --disable-dependency-tracking --enable-osx-universal-binary" "$LINENO" 5
16231 if test -d /Developer/SDKs/MacOSX10.5.sdk ; then
16232 alpine_sysroot=/Developer/SDKs/MacOSX10.5.sdk
16233 elif test -d /Developer/SDKs/MacOSX10.4u.sdk ; then
16234 alpine_sysroot=/Developer/SDKs/MacOSX10.4u.sdk
16235 else
16236 as_fn_error $? "No suitable MacOSX SDK found. Make sure Xcode tools are installed" "$LINENO" 5
16238 ub_cflags="-isysroot $alpine_sysroot -arch ppc -arch i386"
16239 ub_ldflags="-Wl,-syslibroot,$alpine_sysroot -arch ppc -arch i386"
16240 AM_CFLAGS="$AM_CFLAGS $ub_cflags"
16241 AM_LDFLAGS="$AM_LDFLAGS $ub_ldflags"
16242 alpine_c_client_cflags="$alpine_c_client_cflags $ub_cflags"
16243 alpine_c_client_ldflags="$alpine_c_client_ldflags $ub_ldflags"
16246 esac
16249 # Check whether --with-include-path was given.
16250 if test "${with_include_path+set}" = set; then :
16251 withval=$with_include_path;
16252 case $withval in
16255 yes)
16258 new_cppflags="-I`echo ${withval} | ${SED} 's/:/ -I/g'`"
16259 CPPFLAGS="$CPPFLAGS ${new_cppflags}"
16260 alpine_c_client_cflags="$alpine_c_client_cflags ${new_cppflags}"
16262 esac
16268 # Check whether --with-lib-path was given.
16269 if test "${with_lib_path+set}" = set; then :
16270 withval=$with_lib_path;
16271 case $withval in
16274 yes)
16277 new_ldflags="-L`echo ${withval} | ${SED} 's/:/ -L/g'`"
16278 LDFLAGS="$LDFLAGS $new_ldflags"
16279 alpine_c_client_ldflags="$alpine_c_client_ldflags ${new_ldflags}"
16281 esac
16287 # Check whether --with-pubcookie was given.
16288 if test "${with_pubcookie+set}" = set; then :
16289 withval=$with_pubcookie;
16290 if test "x$withval" != "xno" ; then
16291 WEB_PUBCOOKIE_BUILD=web/src/pubcookie
16299 # Check whether --with-web-bin was given.
16300 if test "${with_web_bin+set}" = set; then :
16301 withval=$with_web_bin;
16302 case "$withval" in
16305 yes)
16308 WEB_BINDIR=$withval
16310 esac
16315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: debugging is enabled" >&5
16316 $as_echo_n "checking option: debugging is enabled... " >&6; }
16317 # Check whether --enable-debug was given.
16318 if test "${enable_debug+set}" = set; then :
16319 enableval=$enable_debug;
16322 if test x$enable_debug != "xno" ; then
16323 AM_CFLAGS="$AM_CFLAGS -g"
16324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16325 $as_echo "yes" >&6; }
16326 else
16327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16328 $as_echo "no" >&6; }
16331 $as_echo "#define DEBUG 1" >>confdefs.h
16334 $as_echo "#define DEBUGJOURNAL 1" >>confdefs.h
16338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: optimization is enabled" >&5
16339 $as_echo_n "checking option: optimization is enabled... " >&6; }
16340 # Check whether --enable-optimization was given.
16341 if test "${enable_optimization+set}" = set; then :
16342 enableval=$enable_optimization;
16345 if test x$enable_optimization != "xno" ; then
16346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16347 $as_echo "yes" >&6; }
16348 else
16349 CFLAGS="`echo $CFLAGS | ${SED} 's/-O2//g'`"
16350 C_FLAGS="`echo $AM_CFLAGS | ${SED} 's/-O2//g'`"
16351 CFLAGS="$CFLAGS $C_FLAGS"
16352 alpine_c_client_gccoptlevel="-O0"
16353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16354 $as_echo "no" >&6; }
16357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: mouse support enabled" >&5
16358 $as_echo_n "checking option: mouse support enabled... " >&6; }
16359 # Check whether --enable-mouse was given.
16360 if test "${enable_mouse+set}" = set; then :
16361 enableval=$enable_mouse;
16364 if test x$enable_mouse != "xno" ; then
16366 $as_echo "#define MOUSE /**/" >>confdefs.h
16368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16369 $as_echo "yes" >&6; }
16370 else
16371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16372 $as_echo "no" >&6; }
16375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: quotas enabled" >&5
16376 $as_echo_n "checking option: quotas enabled... " >&6; }
16377 # Check whether --enable-quotas was given.
16378 if test "${enable_quotas+set}" = set; then :
16379 enableval=$enable_quotas;
16382 if test x$enable_quotas = "xyes" ; then
16384 $as_echo "#define USE_QUOTAS /**/" >>confdefs.h
16386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16387 $as_echo "yes" >&6; }
16388 else
16389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16390 $as_echo "no" >&6; }
16393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: From changing enabled" >&5
16394 $as_echo_n "checking option: From changing enabled... " >&6; }
16395 # Check whether --enable-from_changing was given.
16396 if test "${enable_from_changing+set}" = set; then :
16397 enableval=$enable_from_changing;
16400 if test x$enable_from_changing != "xno" ; then
16401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16402 $as_echo "yes" >&6; }
16403 else
16405 $as_echo "#define NEVER_ALLOW_CHANGING_FROM /**/" >>confdefs.h
16407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16408 $as_echo "no" >&6; }
16411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: background post enabled" >&5
16412 $as_echo_n "checking option: background post enabled... " >&6; }
16413 # Check whether --enable-background-post was given.
16414 if test "${enable_background_post+set}" = set; then :
16415 enableval=$enable_background_post;
16418 if test x$enable_background_post != "xno" ; then
16420 $as_echo "#define BACKGROUND_POST /**/" >>confdefs.h
16422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16423 $as_echo "yes" >&6; }
16424 else
16425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16426 $as_echo "no" >&6; }
16429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: keyboard lock enabled" >&5
16430 $as_echo_n "checking option: keyboard lock enabled... " >&6; }
16431 # Check whether --enable-keyboard-lock was given.
16432 if test "${enable_keyboard_lock+set}" = set; then :
16433 enableval=$enable_keyboard_lock;
16436 if test x$enable_keyboard_lock != "xno" ; then
16438 $as_echo "#define KEYBOARD_LOCK /**/" >>confdefs.h
16440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16441 $as_echo "yes" >&6; }
16442 else
16443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16444 $as_echo "no" >&6; }
16447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: from encoding enabled" >&5
16448 $as_echo_n "checking option: from encoding enabled... " >&6; }
16449 # Check whether --enable-from-encoding was given.
16450 if test "${enable_from_encoding+set}" = set; then :
16451 enableval=$enable_from_encoding;
16454 if test x$enable_from_encoding = "xyes" ; then
16456 $as_echo "#define ENCODE_FROMS /**/" >>confdefs.h
16458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16459 $as_echo "yes" >&6; }
16460 else
16461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16462 $as_echo "no" >&6; }
16466 # Check whether --with-smtp-msa was given.
16467 if test "${with_smtp_msa+set}" = set; then :
16468 withval=$with_smtp_msa;
16469 case "$withval" in
16472 yes)
16473 # Extract the first word of "sendmail", so it can be a program name with args.
16474 set dummy sendmail; ac_word=$2
16475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16476 $as_echo_n "checking for $ac_word... " >&6; }
16477 if ${ac_cv_path_SENDMAIL+:} false; then :
16478 $as_echo_n "(cached) " >&6
16479 else
16480 case $SENDMAIL in
16481 [\\/]* | ?:[\\/]*)
16482 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
16485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16486 as_dummy="$PATH:/usr/sbin:/usr/lib"
16487 for as_dir in $as_dummy
16489 IFS=$as_save_IFS
16490 test -z "$as_dir" && as_dir=.
16491 for ac_exec_ext in '' $ac_executable_extensions; do
16492 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16493 ac_cv_path_SENDMAIL="$as_dir/$ac_word$ac_exec_ext"
16494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16495 break 2
16497 done
16498 done
16499 IFS=$as_save_IFS
16501 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL=""""
16503 esac
16505 SENDMAIL=$ac_cv_path_SENDMAIL
16506 if test -n "$SENDMAIL"; then
16507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SENDMAIL" >&5
16508 $as_echo "$SENDMAIL" >&6; }
16509 else
16510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16511 $as_echo "no" >&6; }
16517 SENDMAIL=$withval
16519 esac
16521 else
16523 # Extract the first word of "sendmail", so it can be a program name with args.
16524 set dummy sendmail; ac_word=$2
16525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16526 $as_echo_n "checking for $ac_word... " >&6; }
16527 if ${ac_cv_path_SENDMAIL+:} false; then :
16528 $as_echo_n "(cached) " >&6
16529 else
16530 case $SENDMAIL in
16531 [\\/]* | ?:[\\/]*)
16532 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
16535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16536 as_dummy="$PATH:/usr/sbin:/usr/lib"
16537 for as_dir in $as_dummy
16539 IFS=$as_save_IFS
16540 test -z "$as_dir" && as_dir=.
16541 for ac_exec_ext in '' $ac_executable_extensions; do
16542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16543 ac_cv_path_SENDMAIL="$as_dir/$ac_word$ac_exec_ext"
16544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16545 break 2
16547 done
16548 done
16549 IFS=$as_save_IFS
16551 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL=""""
16553 esac
16555 SENDMAIL=$ac_cv_path_SENDMAIL
16556 if test -n "$SENDMAIL"; then
16557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SENDMAIL" >&5
16558 $as_echo "$SENDMAIL" >&6; }
16559 else
16560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16561 $as_echo "no" >&6; }
16568 if test -n "$SENDMAIL" ; then
16570 cat >>confdefs.h <<_ACEOF
16571 #define SENDMAIL "$SENDMAIL"
16572 _ACEOF
16576 smtp_msa_flags="-bs -odb -oem"
16578 # Check whether --with-smtp-msa-flags was given.
16579 if test "${with_smtp_msa_flags+set}" = set; then :
16580 withval=$with_smtp_msa_flags;
16581 if test "x$withval" != "xno" ; then
16582 smtp_msa_flags=$withval
16588 cat >>confdefs.h <<_ACEOF
16589 #define SENDMAILFLAGS "$smtp_msa_flags"
16590 _ACEOF
16593 npa="inews"
16595 # Check whether --with-npa was given.
16596 if test "${with_npa+set}" = set; then :
16597 withval=$with_npa;
16598 case "$withval" in
16601 yes)
16602 # Extract the first word of "inews", so it can be a program name with args.
16603 set dummy inews; ac_word=$2
16604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16605 $as_echo_n "checking for $ac_word... " >&6; }
16606 if ${ac_cv_path_NPA_PROG+:} false; then :
16607 $as_echo_n "(cached) " >&6
16608 else
16609 case $NPA_PROG in
16610 [\\/]* | ?:[\\/]*)
16611 ac_cv_path_NPA_PROG="$NPA_PROG" # Let the user override the test with a path.
16614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16615 as_dummy="$PATH:/usr/sbin:/usr/lib"
16616 for as_dir in $as_dummy
16618 IFS=$as_save_IFS
16619 test -z "$as_dir" && as_dir=.
16620 for ac_exec_ext in '' $ac_executable_extensions; do
16621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16622 ac_cv_path_NPA_PROG="$as_dir/$ac_word$ac_exec_ext"
16623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16624 break 2
16626 done
16627 done
16628 IFS=$as_save_IFS
16630 test -z "$ac_cv_path_NPA_PROG" && ac_cv_path_NPA_PROG=""""
16632 esac
16634 NPA_PROG=$ac_cv_path_NPA_PROG
16635 if test -n "$NPA_PROG"; then
16636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NPA_PROG" >&5
16637 $as_echo "$NPA_PROG" >&6; }
16638 else
16639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16640 $as_echo "no" >&6; }
16646 NPA_PROG=$withval
16648 esac
16650 else
16652 # Extract the first word of "inews", so it can be a program name with args.
16653 set dummy inews; ac_word=$2
16654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16655 $as_echo_n "checking for $ac_word... " >&6; }
16656 if ${ac_cv_path_NPA_PROG+:} false; then :
16657 $as_echo_n "(cached) " >&6
16658 else
16659 case $NPA_PROG in
16660 [\\/]* | ?:[\\/]*)
16661 ac_cv_path_NPA_PROG="$NPA_PROG" # Let the user override the test with a path.
16664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16665 as_dummy="$PATH:/usr/sbin:/usr/lib"
16666 for as_dir in $as_dummy
16668 IFS=$as_save_IFS
16669 test -z "$as_dir" && as_dir=.
16670 for ac_exec_ext in '' $ac_executable_extensions; do
16671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16672 ac_cv_path_NPA_PROG="$as_dir/$ac_word$ac_exec_ext"
16673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16674 break 2
16676 done
16677 done
16678 IFS=$as_save_IFS
16680 test -z "$ac_cv_path_NPA_PROG" && ac_cv_path_NPA_PROG=""""
16682 esac
16684 NPA_PROG=$ac_cv_path_NPA_PROG
16685 if test -n "$NPA_PROG"; then
16686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NPA_PROG" >&5
16687 $as_echo "$NPA_PROG" >&6; }
16688 else
16689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16690 $as_echo "no" >&6; }
16698 npa_flags="-h"
16700 # Check whether --with-npa-flags was given.
16701 if test "${with_npa_flags+set}" = set; then :
16702 withval=$with_npa_flags;
16703 if test "x$withval" != "xno" ; then
16704 npa_flags=$withval
16709 if test -n "$NPA_PROG" ; then
16711 cat >>confdefs.h <<_ACEOF
16712 #define SENDNEWS "$NPA_PROG $npa_flags"
16713 _ACEOF
16718 # Check whether --with-password-prog was given.
16719 if test "${with_password_prog+set}" = set; then :
16720 withval=$with_password_prog;
16721 case "$withval" in
16724 yes)
16725 # Extract the first word of "passwd", so it can be a program name with args.
16726 set dummy passwd; ac_word=$2
16727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16728 $as_echo_n "checking for $ac_word... " >&6; }
16729 if ${ac_cv_path_PWPROG+:} false; then :
16730 $as_echo_n "(cached) " >&6
16731 else
16732 case $PWPROG in
16733 [\\/]* | ?:[\\/]*)
16734 ac_cv_path_PWPROG="$PWPROG" # Let the user override the test with a path.
16737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16738 as_dummy="$PATH:/usr/sbin:/usr/lib"
16739 for as_dir in $as_dummy
16741 IFS=$as_save_IFS
16742 test -z "$as_dir" && as_dir=.
16743 for ac_exec_ext in '' $ac_executable_extensions; do
16744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16745 ac_cv_path_PWPROG="$as_dir/$ac_word$ac_exec_ext"
16746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16747 break 2
16749 done
16750 done
16751 IFS=$as_save_IFS
16753 test -z "$ac_cv_path_PWPROG" && ac_cv_path_PWPROG=""""
16755 esac
16757 PWPROG=$ac_cv_path_PWPROG
16758 if test -n "$PWPROG"; then
16759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PWPROG" >&5
16760 $as_echo "$PWPROG" >&6; }
16761 else
16762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16763 $as_echo "no" >&6; }
16769 # Extract the first word of "$withval", so it can be a program name with args.
16770 set dummy $withval; ac_word=$2
16771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16772 $as_echo_n "checking for $ac_word... " >&6; }
16773 if ${ac_cv_path_PWPROG+:} false; then :
16774 $as_echo_n "(cached) " >&6
16775 else
16776 case $PWPROG in
16777 [\\/]* | ?:[\\/]*)
16778 ac_cv_path_PWPROG="$PWPROG" # Let the user override the test with a path.
16781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16782 as_dummy="$PATH:/usr/sbin:/usr/lib"
16783 for as_dir in $as_dummy
16785 IFS=$as_save_IFS
16786 test -z "$as_dir" && as_dir=.
16787 for ac_exec_ext in '' $ac_executable_extensions; do
16788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16789 ac_cv_path_PWPROG="$as_dir/$ac_word$ac_exec_ext"
16790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16791 break 2
16793 done
16794 done
16795 IFS=$as_save_IFS
16797 test -z "$ac_cv_path_PWPROG" && ac_cv_path_PWPROG=""""
16799 esac
16801 PWPROG=$ac_cv_path_PWPROG
16802 if test -n "$PWPROG"; then
16803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PWPROG" >&5
16804 $as_echo "$PWPROG" >&6; }
16805 else
16806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16807 $as_echo "no" >&6; }
16812 esac
16814 else
16816 # Extract the first word of "passwd", so it can be a program name with args.
16817 set dummy passwd; ac_word=$2
16818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16819 $as_echo_n "checking for $ac_word... " >&6; }
16820 if ${ac_cv_path_PWPROG+:} false; then :
16821 $as_echo_n "(cached) " >&6
16822 else
16823 case $PWPROG in
16824 [\\/]* | ?:[\\/]*)
16825 ac_cv_path_PWPROG="$PWPROG" # Let the user override the test with a path.
16828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16829 as_dummy="$PATH:/usr/sbin:/usr/lib"
16830 for as_dir in $as_dummy
16832 IFS=$as_save_IFS
16833 test -z "$as_dir" && as_dir=.
16834 for ac_exec_ext in '' $ac_executable_extensions; do
16835 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16836 ac_cv_path_PWPROG="$as_dir/$ac_word$ac_exec_ext"
16837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16838 break 2
16840 done
16841 done
16842 IFS=$as_save_IFS
16844 test -z "$ac_cv_path_PWPROG" && ac_cv_path_PWPROG=""""
16846 esac
16848 PWPROG=$ac_cv_path_PWPROG
16849 if test -n "$PWPROG"; then
16850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PWPROG" >&5
16851 $as_echo "$PWPROG" >&6; }
16852 else
16853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16854 $as_echo "no" >&6; }
16861 if test -n "$PWPROG" ; then
16863 cat >>confdefs.h <<_ACEOF
16864 #define PASSWD_PROG "$PWPROG"
16865 _ACEOF
16870 # Check whether --with-simple-spellcheck was given.
16871 if test "${with_simple_spellcheck+set}" = set; then :
16872 withval=$with_simple_spellcheck;
16873 if test "x$withval" != "xno" ; then
16874 SPELLPROG=$withval
16877 else
16879 # Extract the first word of "hunspell", so it can be a program name with args.
16880 set dummy hunspell; ac_word=$2
16881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16882 $as_echo_n "checking for $ac_word... " >&6; }
16883 if ${ac_cv_prog_SPELLPROG+:} false; then :
16884 $as_echo_n "(cached) " >&6
16885 else
16886 if test -n "$SPELLPROG"; then
16887 ac_cv_prog_SPELLPROG="$SPELLPROG" # Let the user override the test.
16888 else
16889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16890 for as_dir in $PATH
16892 IFS=$as_save_IFS
16893 test -z "$as_dir" && as_dir=.
16894 for ac_exec_ext in '' $ac_executable_extensions; do
16895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16896 ac_cv_prog_SPELLPROG="hunspell"
16897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16898 break 2
16900 done
16901 done
16902 IFS=$as_save_IFS
16906 SPELLPROG=$ac_cv_prog_SPELLPROG
16907 if test -n "$SPELLPROG"; then
16908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPELLPROG" >&5
16909 $as_echo "$SPELLPROG" >&6; }
16910 else
16911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16912 $as_echo "no" >&6; }
16916 if test -z "$SPELLPROG" ; then
16917 # Extract the first word of "aspell", so it can be a program name with args.
16918 set dummy aspell; ac_word=$2
16919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16920 $as_echo_n "checking for $ac_word... " >&6; }
16921 if ${ac_cv_prog_SPELLPROG+:} false; then :
16922 $as_echo_n "(cached) " >&6
16923 else
16924 if test -n "$SPELLPROG"; then
16925 ac_cv_prog_SPELLPROG="$SPELLPROG" # Let the user override the test.
16926 else
16927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16928 for as_dir in $PATH
16930 IFS=$as_save_IFS
16931 test -z "$as_dir" && as_dir=.
16932 for ac_exec_ext in '' $ac_executable_extensions; do
16933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16934 ac_cv_prog_SPELLPROG="aspell"
16935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16936 break 2
16938 done
16939 done
16940 IFS=$as_save_IFS
16944 SPELLPROG=$ac_cv_prog_SPELLPROG
16945 if test -n "$SPELLPROG"; then
16946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPELLPROG" >&5
16947 $as_echo "$SPELLPROG" >&6; }
16948 else
16949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16950 $as_echo "no" >&6; }
16954 if test -z "$SPELLPROG" ; then
16955 # Extract the first word of "ispell", so it can be a program name with args.
16956 set dummy ispell; ac_word=$2
16957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16958 $as_echo_n "checking for $ac_word... " >&6; }
16959 if ${ac_cv_prog_SPELLPROG+:} false; then :
16960 $as_echo_n "(cached) " >&6
16961 else
16962 if test -n "$SPELLPROG"; then
16963 ac_cv_prog_SPELLPROG="$SPELLPROG" # Let the user override the test.
16964 else
16965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16966 for as_dir in $PATH
16968 IFS=$as_save_IFS
16969 test -z "$as_dir" && as_dir=.
16970 for ac_exec_ext in '' $ac_executable_extensions; do
16971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16972 ac_cv_prog_SPELLPROG="ispell"
16973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16974 break 2
16976 done
16977 done
16978 IFS=$as_save_IFS
16982 SPELLPROG=$ac_cv_prog_SPELLPROG
16983 if test -n "$SPELLPROG"; then
16984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPELLPROG" >&5
16985 $as_echo "$SPELLPROG" >&6; }
16986 else
16987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16988 $as_echo "no" >&6; }
16992 if test -z "$SPELLPROG" ; then
16993 SPELLPROG="spell"
17001 if test "x$SPELLPROG" != "xno" ; then
17002 # Extract the first word of "$SPELLPROG", so it can be a program name with args.
17003 set dummy $SPELLPROG; ac_word=$2
17004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17005 $as_echo_n "checking for $ac_word... " >&6; }
17006 if ${ac_cv_path_alpine_simple_spellcheck+:} false; then :
17007 $as_echo_n "(cached) " >&6
17008 else
17009 case $alpine_simple_spellcheck in
17010 [\\/]* | ?:[\\/]*)
17011 ac_cv_path_alpine_simple_spellcheck="$alpine_simple_spellcheck" # Let the user override the test with a path.
17014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17015 for as_dir in $PATH
17017 IFS=$as_save_IFS
17018 test -z "$as_dir" && as_dir=.
17019 for ac_exec_ext in '' $ac_executable_extensions; do
17020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17021 ac_cv_path_alpine_simple_spellcheck="$as_dir/$ac_word$ac_exec_ext"
17022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17023 break 2
17025 done
17026 done
17027 IFS=$as_save_IFS
17030 esac
17032 alpine_simple_spellcheck=$ac_cv_path_alpine_simple_spellcheck
17033 if test -n "$alpine_simple_spellcheck"; then
17034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $alpine_simple_spellcheck" >&5
17035 $as_echo "$alpine_simple_spellcheck" >&6; }
17036 else
17037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17038 $as_echo "no" >&6; }
17042 if test -n "$alpine_simple_spellcheck" ; then
17043 case "$SPELLPROG" in
17044 hunspell)
17045 alpine_simple_spellcheck="$alpine_simple_spellcheck -l"
17047 aspell)
17048 alpine_simple_spellcheck="$alpine_simple_spellcheck --dont-backup --mode=email list"
17050 ispell)
17051 alpine_simple_spellcheck="$alpine_simple_spellcheck -l"
17055 esac
17060 # Check whether --with-interactive-spellcheck was given.
17061 if test "${with_interactive_spellcheck+set}" = set; then :
17062 withval=$with_interactive_spellcheck;
17063 if test "x$withval" != "xno" ; then
17064 ISPELLPROG=$withval
17067 else
17069 # Extract the first word of "hunspell", so it can be a program name with args.
17070 set dummy hunspell; ac_word=$2
17071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17072 $as_echo_n "checking for $ac_word... " >&6; }
17073 if ${ac_cv_prog_ISPELLPROG+:} false; then :
17074 $as_echo_n "(cached) " >&6
17075 else
17076 if test -n "$ISPELLPROG"; then
17077 ac_cv_prog_ISPELLPROG="$ISPELLPROG" # Let the user override the test.
17078 else
17079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17080 for as_dir in $PATH
17082 IFS=$as_save_IFS
17083 test -z "$as_dir" && as_dir=.
17084 for ac_exec_ext in '' $ac_executable_extensions; do
17085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17086 ac_cv_prog_ISPELLPROG="hunspell"
17087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17088 break 2
17090 done
17091 done
17092 IFS=$as_save_IFS
17096 ISPELLPROG=$ac_cv_prog_ISPELLPROG
17097 if test -n "$ISPELLPROG"; then
17098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ISPELLPROG" >&5
17099 $as_echo "$ISPELLPROG" >&6; }
17100 else
17101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17102 $as_echo "no" >&6; }
17106 if test -z "$ISPELLPROG" ; then
17107 # Extract the first word of "aspell", so it can be a program name with args.
17108 set dummy aspell; ac_word=$2
17109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17110 $as_echo_n "checking for $ac_word... " >&6; }
17111 if ${ac_cv_prog_ISPELLPROG+:} false; then :
17112 $as_echo_n "(cached) " >&6
17113 else
17114 if test -n "$ISPELLPROG"; then
17115 ac_cv_prog_ISPELLPROG="$ISPELLPROG" # Let the user override the test.
17116 else
17117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17118 for as_dir in $PATH
17120 IFS=$as_save_IFS
17121 test -z "$as_dir" && as_dir=.
17122 for ac_exec_ext in '' $ac_executable_extensions; do
17123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17124 ac_cv_prog_ISPELLPROG="aspell"
17125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17126 break 2
17128 done
17129 done
17130 IFS=$as_save_IFS
17134 ISPELLPROG=$ac_cv_prog_ISPELLPROG
17135 if test -n "$ISPELLPROG"; then
17136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ISPELLPROG" >&5
17137 $as_echo "$ISPELLPROG" >&6; }
17138 else
17139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17140 $as_echo "no" >&6; }
17144 if test -z "$SPELLPROG" ; then
17145 ISPELLPROG="ispell"
17152 if test "x$ISPELLPROG" != "xno" ; then
17153 # Extract the first word of "$ISPELLPROG", so it can be a program name with args.
17154 set dummy $ISPELLPROG; ac_word=$2
17155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17156 $as_echo_n "checking for $ac_word... " >&6; }
17157 if ${ac_cv_path_alpine_interactive_spellcheck+:} false; then :
17158 $as_echo_n "(cached) " >&6
17159 else
17160 case $alpine_interactive_spellcheck in
17161 [\\/]* | ?:[\\/]*)
17162 ac_cv_path_alpine_interactive_spellcheck="$alpine_interactive_spellcheck" # Let the user override the test with a path.
17165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17166 for as_dir in $PATH
17168 IFS=$as_save_IFS
17169 test -z "$as_dir" && as_dir=.
17170 for ac_exec_ext in '' $ac_executable_extensions; do
17171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17172 ac_cv_path_alpine_interactive_spellcheck="$as_dir/$ac_word$ac_exec_ext"
17173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17174 break 2
17176 done
17177 done
17178 IFS=$as_save_IFS
17181 esac
17183 alpine_interactive_spellcheck=$ac_cv_path_alpine_interactive_spellcheck
17184 if test -n "$alpine_interactive_spellcheck"; then
17185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $alpine_interactive_spellcheck" >&5
17186 $as_echo "$alpine_interactive_spellcheck" >&6; }
17187 else
17188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17189 $as_echo "no" >&6; }
17193 if test -n "$alpine_interactive_spellcheck" ; then
17194 case "$ISPELLPROG" in
17195 aspell)
17196 alpine_interactive_spellcheck="$alpine_interactive_spellcheck --dont-backup --mode=email check"
17200 esac
17204 if test -n "$alpine_interactive_spellcheck" ; then
17206 cat >>confdefs.h <<_ACEOF
17207 #define DF_VAR_SPELLER "$alpine_interactive_spellcheck"
17208 _ACEOF
17212 if test -z "$alpine_simple_spellcheck" -a -n "$alpine_interactive_spellcheck" ; then
17213 alpine_simple_spellcheck=test
17216 cat >>confdefs.h <<_ACEOF
17217 #define SPELLER "$alpine_simple_spellcheck"
17218 _ACEOF
17221 case "$prefix" in
17222 NONE) dpv=/usr/local/lib/pine.conf ;;
17223 *) dpv=${prefix}/lib/pine.conf ;;
17224 esac
17226 # Check whether --with-system-pinerc was given.
17227 if test "${with_system_pinerc+set}" = set; then :
17228 withval=$with_system_pinerc;
17229 case "$withval" in
17232 yes)
17235 dpv=$withval
17237 esac
17242 cat >>confdefs.h <<_ACEOF
17243 #define SYSTEM_PINERC "$dpv"
17244 _ACEOF
17247 case "$prefix" in
17248 NONE) dpv=/usr/local/lib/pine.conf.fixed ;;
17249 *) dpv=${prefix}/lib/pine.conf.fixed ;;
17250 esac
17252 # Check whether --with-system-fixed-pinerc was given.
17253 if test "${with_system_fixed_pinerc+set}" = set; then :
17254 withval=$with_system_fixed_pinerc;
17255 case "$withval" in
17258 yes)
17261 dpv=$withval
17263 esac
17268 cat >>confdefs.h <<_ACEOF
17269 #define SYSTEM_PINERC_FIXED "$dpv"
17270 _ACEOF
17273 case "$prefix" in
17274 NONE) dpv=/usr/local/lib/pine.info ;;
17275 *) dpv=${prefix}/lib/pine.info ;;
17276 esac
17278 # Check whether --with-local-support-info was given.
17279 if test "${with_local_support_info+set}" = set; then :
17280 withval=$with_local_support_info;
17281 case "$withval" in
17284 yes)
17287 dpv=$withval
17289 esac
17294 cat >>confdefs.h <<_ACEOF
17295 #define SYSTEM_PINE_INFO_PATH "$dpv"
17296 _ACEOF
17304 dpv=150
17306 # Check whether --with-mailcheck-interval was given.
17307 if test "${with_mailcheck_interval+set}" = set; then :
17308 withval=$with_mailcheck_interval;
17309 if test "x$withval" != "xno" ; then
17310 dpv=$withval
17316 cat >>confdefs.h <<_ACEOF
17317 #define DF_MAILCHECK "$dpv"
17318 _ACEOF
17322 dpv=420
17324 # Check whether --with-checkpoint-interval was given.
17325 if test "${with_checkpoint_interval+set}" = set; then :
17326 withval=$with_checkpoint_interval;
17327 if test "x$withval" != "xno" ; then
17328 dpv=$withval
17334 cat >>confdefs.h <<_ACEOF
17335 #define CHECK_POINT_TIME $dpv
17336 _ACEOF
17340 dpv=12
17342 # Check whether --with-checkpoint-frequency was given.
17343 if test "${with_checkpoint_frequency+set}" = set; then :
17344 withval=$with_checkpoint_frequency;
17345 if test "x$withval" != "xno" ; then
17346 dpv=$withval
17352 cat >>confdefs.h <<_ACEOF
17353 #define CHECK_POINT_FREQ $dpv
17354 _ACEOF
17358 dpv=24
17360 # Check whether --with-display-rows was given.
17361 if test "${with_display_rows+set}" = set; then :
17362 withval=$with_display_rows;
17363 if test "x$withval" != "xno" ; then
17364 dpv=$withval
17370 cat >>confdefs.h <<_ACEOF
17371 #define DEFAULT_LINES_ON_TERMINAL $dpv
17372 _ACEOF
17376 dpv=80
17378 # Check whether --with-display-columns was given.
17379 if test "${with_display_columns+set}" = set; then :
17380 withval=$with_display_columns;
17381 if test "x$withval" != "xno" ; then
17382 dpv=$withval
17388 cat >>confdefs.h <<_ACEOF
17389 #define DEFAULT_COLUMNS_ON_TERMINAL $dpv
17390 _ACEOF
17394 dpv=200
17396 # Check whether --with-max-display-rows was given.
17397 if test "${with_max_display_rows+set}" = set; then :
17398 withval=$with_max_display_rows;
17399 if test "x$withval" != "xno" ; then
17400 dpv=$withval
17406 cat >>confdefs.h <<_ACEOF
17407 #define MAX_SCREEN_ROWS $dpv
17408 _ACEOF
17412 dpv=500
17414 # Check whether --with-max-display-columns was given.
17415 if test "${with_max_display_columns+set}" = set; then :
17416 withval=$with_max_display_columns;
17417 if test "x$withval" != "xno" ; then
17418 dpv=$withval
17424 cat >>confdefs.h <<_ACEOF
17425 #define MAX_SCREEN_COLS $dpv
17426 _ACEOF
17430 dpv=74
17432 # Check whether --with-fill-column was given.
17433 if test "${with_fill_column+set}" = set; then :
17434 withval=$with_fill_column;
17435 if test "x$withval" != "xno" ; then
17436 dpv=$withval
17442 cat >>confdefs.h <<_ACEOF
17443 #define DF_FILLCOL "$dpv"
17444 _ACEOF
17448 dpv=80
17450 # Check whether --with-max_fill-column was given.
17451 if test "${with_max_fill_column+set}" = set; then :
17452 withval=$with_max_fill_column;
17453 if test "x$withval" != "xno" ; then
17454 dpv=$withval
17460 cat >>confdefs.h <<_ACEOF
17461 #define MAX_FILLCOL $dpv
17462 _ACEOF
17466 dpv=2
17468 # Check whether --with-debug-level was given.
17469 if test "${with_debug_level+set}" = set; then :
17470 withval=$with_debug_level;
17471 if test "x$withval" != "xno" ; then
17472 dpv=$withval
17478 cat >>confdefs.h <<_ACEOF
17479 #define DEFAULT_DEBUG $dpv
17480 _ACEOF
17484 dpv=4
17486 # Check whether --with-debug-files was given.
17487 if test "${with_debug_files+set}" = set; then :
17488 withval=$with_debug_files;
17489 if test "x$withval" != "xno" ; then
17490 dpv=$withval
17496 cat >>confdefs.h <<_ACEOF
17497 #define NUMDEBUGFILES $dpv
17498 _ACEOF
17502 dpv=.pine-debug
17504 # Check whether --with-debug-file was given.
17505 if test "${with_debug_file+set}" = set; then :
17506 withval=$with_debug_file;
17507 if test "x$withval" != "xno" ; then
17508 dpv=$withval
17514 cat >>confdefs.h <<_ACEOF
17515 #define DEBUGFILE "$dpv"
17516 _ACEOF
17520 dpv="\$Forwarded"
17522 # Check whether --with-forwarded-keyword was given.
17523 if test "${with_forwarded_keyword+set}" = set; then :
17524 withval=$with_forwarded_keyword;
17525 if test "x$withval" != "xno" ; then
17526 dpv=$withval
17532 cat >>confdefs.h <<_ACEOF
17533 #define FORWARDED_FLAG "$dpv"
17534 _ACEOF
17538 dpv=2
17540 # Check whether --with-display-overlap was given.
17541 if test "${with_display_overlap+set}" = set; then :
17542 withval=$with_display_overlap;
17543 if test "x$withval" != "xno" ; then
17544 dpv=$withval
17550 cat >>confdefs.h <<_ACEOF
17551 #define DF_OVERLAP "$dpv"
17552 _ACEOF
17556 dpv=0
17558 # Check whether --with-display-margin was given.
17559 if test "${with_display_margin+set}" = set; then :
17560 withval=$with_display_margin;
17561 if test "x$withval" != "xno" ; then
17562 dpv=$withval
17568 cat >>confdefs.h <<_ACEOF
17569 #define DF_MARGIN "$dpv"
17570 _ACEOF
17574 dpv=sent-mail
17576 # Check whether --with-default-fcc was given.
17577 if test "${with_default_fcc+set}" = set; then :
17578 withval=$with_default_fcc;
17579 if test "x$withval" != "xno" ; then
17580 dpv=$withval
17586 cat >>confdefs.h <<_ACEOF
17587 #define DF_DEFAULT_FCC "$dpv"
17588 _ACEOF
17592 dpv=saved-messages
17594 # Check whether --with-default-save-folder was given.
17595 if test "${with_default_save_folder+set}" = set; then :
17596 withval=$with_default_save_folder;
17597 if test "x$withval" != "xno" ; then
17598 dpv=$withval
17604 cat >>confdefs.h <<_ACEOF
17605 #define DEFAULT_SAVE "$dpv"
17606 _ACEOF
17610 dpv=postponed-mail
17612 # Check whether --with-default-legacy-postponed-folder was given.
17613 if test "${with_default_legacy_postponed_folder+set}" = set; then :
17614 withval=$with_default_legacy_postponed_folder;
17615 if test "x$withval" != "xno" ; then
17616 dpv=$withval
17622 cat >>confdefs.h <<_ACEOF
17623 #define POSTPONED_MAIL "$dpv"
17624 _ACEOF
17628 dpv=postponed-msgs
17630 # Check whether --with-default-postponed-folder was given.
17631 if test "${with_default_postponed_folder+set}" = set; then :
17632 withval=$with_default_postponed_folder;
17633 if test "x$withval" != "xno" ; then
17634 dpv=$withval
17640 cat >>confdefs.h <<_ACEOF
17641 #define POSTPONED_MSGS "$dpv"
17642 _ACEOF
17646 dpv=Trash
17648 # Check whether --with-default-trash-folder was given.
17649 if test "${with_default_trash_folder+set}" = set; then :
17650 withval=$with_default_trash_folder;
17651 if test "x$withval" != "xno" ; then
17652 dpv=$withval
17658 cat >>confdefs.h <<_ACEOF
17659 #define TRASH_FOLDER "$dpv"
17660 _ACEOF
17664 dpv=.pine-interrupted-mail
17666 # Check whether --with-default-interrupted-mail was given.
17667 if test "${with_default_interrupted_mail+set}" = set; then :
17668 withval=$with_default_interrupted_mail;
17669 if test "x$withval" != "xno" ; then
17670 dpv=$withval
17676 cat >>confdefs.h <<_ACEOF
17677 #define INTERRUPTED_MAIL "$dpv"
17678 _ACEOF
17682 dpv=dead.letter
17684 # Check whether --with-default-dead-letter-folder was given.
17685 if test "${with_default_dead_letter_folder+set}" = set; then :
17686 withval=$with_default_dead_letter_folder;
17687 if test "x$withval" != "xno" ; then
17688 dpv=$withval
17694 cat >>confdefs.h <<_ACEOF
17695 #define DEADLETTER "$dpv"
17696 _ACEOF
17700 dpv=mail
17702 # Check whether --with-default-mail-directory was given.
17703 if test "${with_default_mail_directory+set}" = set; then :
17704 withval=$with_default_mail_directory;
17705 if test "x$withval" != "xno" ; then
17706 dpv=$withval
17712 cat >>confdefs.h <<_ACEOF
17713 #define DF_MAIL_DIRECTORY "$dpv"
17714 _ACEOF
17718 dpv=INBOX
17720 # Check whether --with-default-inbox-name was given.
17721 if test "${with_default_inbox_name+set}" = set; then :
17722 withval=$with_default_inbox_name;
17723 if test "x$withval" != "xno" ; then
17724 dpv=$withval
17730 cat >>confdefs.h <<_ACEOF
17731 #define INBOX_NAME "$dpv"
17732 _ACEOF
17736 dpv=.signature
17738 # Check whether --with-default-signature-file was given.
17739 if test "${with_default_signature_file+set}" = set; then :
17740 withval=$with_default_signature_file;
17741 if test "x$withval" != "xno" ; then
17742 dpv=$withval
17748 cat >>confdefs.h <<_ACEOF
17749 #define DF_SIGNATURE_FILE "$dpv"
17750 _ACEOF
17754 dpv=no
17756 # Check whether --with-default-elm-style-save was given.
17757 if test "${with_default_elm_style_save+set}" = set; then :
17758 withval=$with_default_elm_style_save;
17759 if test "x$withval" != "xno" ; then
17760 dpv=$withval
17766 cat >>confdefs.h <<_ACEOF
17767 #define DF_ELM_STYLE_SAVE "$dpv"
17768 _ACEOF
17772 dpv=no
17774 # Check whether --with-default-header-in-reply was given.
17775 if test "${with_default_header_in_reply+set}" = set; then :
17776 withval=$with_default_header_in_reply;
17777 if test "x$withval" != "xno" ; then
17778 dpv=$withval
17784 cat >>confdefs.h <<_ACEOF
17785 #define DF_HEADER_IN_REPLY "$dpv"
17786 _ACEOF
17790 dpv=no
17792 # Check whether --with-default-old-style-reply was given.
17793 if test "${with_default_old_style_reply+set}" = set; then :
17794 withval=$with_default_old_style_reply;
17795 if test "x$withval" != "xno" ; then
17796 dpv=$withval
17802 cat >>confdefs.h <<_ACEOF
17803 #define DF_OLD_STYLE_REPLY "$dpv"
17804 _ACEOF
17808 dpv=no
17810 # Check whether --with-default-use-only-domain-name was given.
17811 if test "${with_default_use_only_domain_name+set}" = set; then :
17812 withval=$with_default_use_only_domain_name;
17813 if test "x$withval" != "xno" ; then
17814 dpv=$withval
17820 cat >>confdefs.h <<_ACEOF
17821 #define DF_USE_ONLY_DOMAIN_NAME "$dpv"
17822 _ACEOF
17826 dpv=no
17828 # Check whether --with-default-save-by-sender was given.
17829 if test "${with_default_save_by_sender+set}" = set; then :
17830 withval=$with_default_save_by_sender;
17831 if test "x$withval" != "xno" ; then
17832 dpv=$withval
17838 cat >>confdefs.h <<_ACEOF
17839 #define DF_SAVE_BY_SENDER "$dpv"
17840 _ACEOF
17844 dpv=arrival
17846 # Check whether --with-default-sort-key was given.
17847 if test "${with_default_sort_key+set}" = set; then :
17848 withval=$with_default_sort_key;
17849 if test "x$withval" != "xno" ; then
17850 dpv=$withval
17856 cat >>confdefs.h <<_ACEOF
17857 #define DF_SORT_KEY "$dpv"
17858 _ACEOF
17862 dpv=fullname-with-lists-last
17864 # Check whether --with-default-addressbook-sort-rule was given.
17865 if test "${with_default_addressbook_sort_rule+set}" = set; then :
17866 withval=$with_default_addressbook_sort_rule;
17867 if test "x$withval" != "xno" ; then
17868 dpv=$withval
17874 cat >>confdefs.h <<_ACEOF
17875 #define DF_AB_SORT_RULE "$dpv"
17876 _ACEOF
17880 dpv=alphabetical
17882 # Check whether --with-default-folder-sort-rule was given.
17883 if test "${with_default_folder_sort_rule+set}" = set; then :
17884 withval=$with_default_folder_sort_rule;
17885 if test "x$withval" != "xno" ; then
17886 dpv=$withval
17892 cat >>confdefs.h <<_ACEOF
17893 #define DF_FLD_SORT_RULE "$dpv"
17894 _ACEOF
17898 dpv=default-folder
17900 # Check whether --with-default-saved-message-name-rule was given.
17901 if test "${with_default_saved_message_name_rule+set}" = set; then :
17902 withval=$with_default_saved_message_name_rule;
17903 if test "x$withval" != "xno" ; then
17904 dpv=$withval
17910 cat >>confdefs.h <<_ACEOF
17911 #define DF_SAVED_MSG_NAME_RULE "$dpv"
17912 _ACEOF
17916 dpv=default-fcc
17918 # Check whether --with-default-fcc-rule was given.
17919 if test "${with_default_fcc_rule+set}" = set; then :
17920 withval=$with_default_fcc_rule;
17921 if test "x$withval" != "xno" ; then
17922 dpv=$withval
17928 cat >>confdefs.h <<_ACEOF
17929 #define DF_FCC_RULE "$dpv"
17930 _ACEOF
17934 dpv=lpr
17936 # Check whether --with-default-standard-printer was given.
17937 if test "${with_default_standard_printer+set}" = set; then :
17938 withval=$with_default_standard_printer;
17939 if test "x$withval" != "xno" ; then
17940 dpv=$withval
17946 cat >>confdefs.h <<_ACEOF
17947 #define DF_STANDARD_PRINTER "$dpv"
17948 _ACEOF
17952 dpv=attached-to-ansi
17954 # Check whether --with-default-ansi-printer was given.
17955 if test "${with_default_ansi_printer+set}" = set; then :
17956 withval=$with_default_ansi_printer;
17957 if test "x$withval" != "xno" ; then
17958 dpv=$withval
17964 cat >>confdefs.h <<_ACEOF
17965 #define ANSI_PRINTER "$dpv"
17966 _ACEOF
17970 dpv=.addressbook
17972 # Check whether --with-default-addressbook was given.
17973 if test "${with_default_addressbook+set}" = set; then :
17974 withval=$with_default_addressbook;
17975 if test "x$withval" != "xno" ; then
17976 dpv=$withval
17982 cat >>confdefs.h <<_ACEOF
17983 #define DF_ADDRESSBOOK "$dpv"
17984 _ACEOF
17988 dpv="Local Support"
17990 # Check whether --with-default-local-fullname was given.
17991 if test "${with_default_local_fullname+set}" = set; then :
17992 withval=$with_default_local_fullname;
17993 if test "x$withval" != "xno" ; then
17994 dpv=$withval
18000 cat >>confdefs.h <<_ACEOF
18001 #define DF_LOCAL_FULLNAME "$dpv"
18002 _ACEOF
18006 dpv=postmaster
18008 # Check whether --with-default-local-address was given.
18009 if test "${with_default_local_address+set}" = set; then :
18010 withval=$with_default_local_address;
18011 if test "x$withval" != "xno" ; then
18012 dpv=$withval
18018 cat >>confdefs.h <<_ACEOF
18019 #define DF_LOCAL_ADDRESS "$dpv"
18020 _ACEOF
18024 dpv=1
18026 # Check whether --with-default-keyboard-lock-count was given.
18027 if test "${with_default_keyboard_lock_count+set}" = set; then :
18028 withval=$with_default_keyboard_lock_count;
18029 if test "x$withval" != "xno" ; then
18030 dpv=$withval
18036 cat >>confdefs.h <<_ACEOF
18037 #define DF_KBLOCK_PASSWD_COUNT "$dpv"
18038 _ACEOF
18042 dpv=3
18044 # Check whether --with-default-remote-addressbook-history was given.
18045 if test "${with_default_remote_addressbook_history+set}" = set; then :
18046 withval=$with_default_remote_addressbook_history;
18047 if test "x$withval" != "xno" ; then
18048 dpv=$withval
18054 cat >>confdefs.h <<_ACEOF
18055 #define DF_REMOTE_ABOOK_HISTORY "$dpv"
18056 _ACEOF
18060 dpv=.alpine-html
18062 # Check whether --with-default-html-directory was given.
18063 if test "${with_default_html_directory+set}" = set; then :
18064 withval=$with_default_html_directory;
18065 if test "x$withval" != "xno" ; then
18066 dpv=$withval
18072 cat >>confdefs.h <<_ACEOF
18073 #define DF_HTML_DIRECTORY "$dpv"
18074 _ACEOF
18078 dpv=.alpine-smime/public
18080 # Check whether --with-smime-public-cert-directory was given.
18081 if test "${with_smime_public_cert_directory+set}" = set; then :
18082 withval=$with_smime_public_cert_directory;
18083 if test "x$withval" != "xno" ; then
18084 dpv=$withval
18090 cat >>confdefs.h <<_ACEOF
18091 #define DF_PUBLICCERT_DIR "$dpv"
18092 _ACEOF
18096 dpv=.alpine-smime/private
18098 # Check whether --with-smime-private-key-directory was given.
18099 if test "${with_smime_private_key_directory+set}" = set; then :
18100 withval=$with_smime_private_key_directory;
18101 if test "x$withval" != "xno" ; then
18102 dpv=$withval
18108 cat >>confdefs.h <<_ACEOF
18109 #define DF_PRIVATEKEY_DIR "$dpv"
18110 _ACEOF
18114 dpv=.alpine-smime/ca
18116 # Check whether --with-smime-cacert-directory was given.
18117 if test "${with_smime_cacert_directory+set}" = set; then :
18118 withval=$with_smime_cacert_directory;
18119 if test "x$withval" != "xno" ; then
18120 dpv=$withval
18126 cat >>confdefs.h <<_ACEOF
18127 #define DF_CACERT_DIR "$dpv"
18128 _ACEOF
18132 dpv=ANSI_PRINTER
18134 # Check whether --with-default-printer was given.
18135 if test "${with_default_printer+set}" = set; then :
18136 withval=$with_default_printer;
18137 if test "x$withval" != "xno" ; then
18138 dpv=$withval
18144 cat >>confdefs.h <<_ACEOF
18145 #define DF_DEFAULT_PRINTER $dpv
18146 _ACEOF
18151 cat >>confdefs.h <<_ACEOF
18152 #define DF_PUBLIC_CONTAINER "PublicContainer"
18153 _ACEOF
18156 cat >>confdefs.h <<_ACEOF
18157 #define DF_PRIVATE_CONTAINER "PrivateContainer"
18158 _ACEOF
18161 cat >>confdefs.h <<_ACEOF
18162 #define DF_CA_CONTAINER "CAContainer"
18163 _ACEOF
18166 cat >>confdefs.h <<_ACEOF
18167 #define DEFAULT_SSLUSERCAPATH ".alpine-certs"
18168 _ACEOF
18171 cat >>confdefs.h <<_ACEOF
18172 #define DEFAULT_SSLUSERCAFILE ".alpine-certs/certs.pem"
18173 _ACEOF
18177 # Check whether --with-passfile was given.
18178 if test "${with_passfile+set}" = set; then :
18179 withval=$with_passfile;
18180 case "$withval" in
18183 yes)
18186 alpine_PASSFILE=$withval
18188 esac
18195 # Check whether --with-local-password-cache was given.
18196 if test "${with_local_password_cache+set}" = set; then :
18197 withval=$with_local_password_cache;
18198 alpine_os_credential_cache=$withval
18204 # Check whether --with-local-password-cache-method was given.
18205 if test "${with_local_password_cache_method+set}" = set; then :
18206 withval=$with_local_password_cache_method;
18207 alpine_os_credential_cache_method=$withval
18212 if test -n "$alpine_PASSFILE" ; then
18213 case $alpine_os_credential_cache in
18217 alpine_os_credential_cache="no"
18218 { $as_echo "$as_me:${as_lineno-$LINENO}: --with-passfile definition overrides OS-Specific password caching" >&5
18219 $as_echo "$as_me: --with-passfile definition overrides OS-Specific password caching" >&6;}
18221 esac
18223 cat >>confdefs.h <<_ACEOF
18224 #define PASSFILE "$alpine_PASSFILE"
18225 _ACEOF
18230 # Check whether --with-default-sshpath was given.
18231 if test "${with_default_sshpath+set}" = set; then :
18232 withval=$with_default_sshpath;
18233 case "$withval" in
18236 yes)
18240 cat >>confdefs.h <<_ACEOF
18241 #define DF_SSHPATH "$withval"
18242 _ACEOF
18245 esac
18251 # Check whether --with-default-sshcmd was given.
18252 if test "${with_default_sshcmd+set}" = set; then :
18253 withval=$with_default_sshcmd;
18254 case "$withval" in
18257 yes)
18261 cat >>confdefs.h <<_ACEOF
18262 #define DF_SSHCMD "$withval"
18263 _ACEOF
18266 esac
18272 # Check whether --with-ssl was given.
18273 if test "${with_ssl+set}" = set; then :
18274 withval=$with_ssl; with_ssl=$withval
18278 if test "x$with_ssl" = "xno" ; then
18279 alpine_SSLTYPE="none"
18280 elif test -d /usr/local/ssl ; then
18281 alpine_SSLDIR="/usr/local/ssl"
18282 alpine_SSLINCLUDE="$alpine_SSLDIR/include"
18283 alpine_SSLLIB="$alpine_SSLDIR/lib"
18284 alpine_SSLCERTS="$alpine_SSLDIR/certs"
18285 alpine_SSLTYPE="nopwd"
18286 else
18287 case $host in
18288 *-linux*|*-k*bsd*-gnu*|*-gnu*)
18289 if test -f /etc/fedora-release -o -f /etc/redhat-release -o -f /etc/redhat_version ; then
18290 alpine_SSLTYPE="nopwd"
18291 if test -d /etc/pki/tls ; then
18292 alpine_SSLDIR="/etc/pki/tls"
18293 else
18294 alpine_SSLDIR="/usr/share/ssl"
18296 alpine_SSLCERTS="$alpine_SSLDIR/certs"
18297 alpine_SSLKEYS="$alpine_SSLDIR/private"
18298 alpine_SSLINCLUDE="/usr/include/openssl"
18299 alpine_SSLLIB="/usr/lib"
18300 elif test -f /etc/mandrake-release ; then
18301 alpine_SSLDIR="/usr/lib/ssl"
18302 alpine_SSLCERTS="$alpine_SSLDIR/certs"
18303 alpine_SSLKEYS="$alpine_SSLDIR/private"
18304 alpine_SSLINCLUDE="/usr/include/openssl"
18305 alpine_SSLLIB="/usr/lib"
18306 elif test -f /etc/SuSE-release ; then
18307 alpine_SSLTYPE="nopwd"
18308 alpine_SSLDIR="/etc/ssl"
18309 alpine_SSLCERTS="$alpine_SSLDIR/certs"
18310 alpine_SSLKEYS="$alpine_SSLDIR/private"
18311 alpine_SSLINCLUDE="/usr/include/openssl"
18312 alpine_SSLLIB="/usr/lib"
18313 elif test -d /etc/osso-af-init ; then
18314 alpine_SSLTYPE="nopwd"
18315 alpine_SSLDIR="/usr"
18316 alpine_SSLCERTS="/usr/share/certs"
18317 alpine_SSLINCLUDE="/usr/include/openssl"
18318 alpine_SSLLIB="/usr/lib"
18319 elif test -f /etc/debian_release -o -f /etc/debian_version ; then
18320 if test ! -d /etc/osso-af-init ; then
18321 alpine_SSLDIR="/etc/ssl"
18322 alpine_SSLCERTS="$alpine_SSLDIR/certs"
18323 alpine_SSLKEYS="$alpine_SSLDIR/private"
18324 alpine_SSLINCLUDE="/usr/include/openssl"
18325 alpine_SSLLIB="/usr/lib"
18327 elif test -f /etc/manjaro-release ; then
18328 alpine_SSLDIR="/etc/ssl"
18329 alpine_SSLCERTS="$alpine_SSLDIR/certs"
18330 alpine_SSLKEYS="$alpine_SSLDIR/private"
18331 alpine_SSLINCLUDE="/usr/include/openssl"
18332 alpine_SSLLIB="/usr/lib"
18333 else
18334 alpine_SSLTYPE="nopwd"
18335 alpine_SSLDIR="/usr"
18336 alpine_SSLCERTS="/etc/ssl/certs"
18339 *-apple-darwin*)
18340 alpine_SSLTYPE="nopwd"
18341 alpine_SSLCERTS_ORIG="/System/Library/OpenSSL/certs"
18342 if test -d /usr/local/opt/openssl ; then
18343 alpine_SSLDIR="/usr/local/opt/openssl"
18344 alpine_SSLINCLUDE="$alpine_SSLDIR/include"
18345 alpine_SSLLIB="$alpine_SSLDIR/lib"
18346 alpine_SSLCERTS="/usr/local/etc/openssl"
18347 alpine_SSLKEYS="$alpine_SSLDIR/private"
18348 elif test -d /opt/local/etc/openssl ; then
18349 alpine_SSLDIR="/opt/local"
18350 alpine_SSLINCLUDE="$alpine_SSLDIR/include"
18351 alpine_SSLLIB="$alpine_SSLDIR/lib"
18352 alpine_SSLCERTS="/opt/local/etc/openssl/certs"
18353 alpine_SSLKEYS="/opt/local/etc/openssl/private"
18354 elif test -d /sw/etc/ssl ; then
18355 alpine_SSLDIR="/sw/etc/ssl"
18356 alpine_SSLINCLUDE="/sw/include"
18357 alpine_SSLLIB="/sw/lib"
18358 alpine_SSLCERTS="/sw/etc/ssl/certs"
18359 alpine_SSLKEYS="/sw/etc/ssl/private"
18360 elif test -d /usr/local/ssl ; then
18361 alpine_SSLDIR="/usr/local/ssl"
18362 elif test -d /System/Library/OpenSSL ; then
18363 alpine_SSLDIR="/System/Library/OpenSSL"
18364 alpine_SSLCERTS="$alpine_SSLDIR/certs"
18365 alpine_SSLKEYS="$alpine_SSLDIR/private"
18366 alpine_SSLLIB="/usr/lib"
18367 alpine_SSLINCLUDE="/usr/include/openssl"
18370 *-*-netbsd*)
18371 alpine_SSLDIR="/etc/openssl"
18372 alpine_SSLCERTS="$alpine_SSLDIR/certs"
18373 alpine_SSLKEYS="$alpine_SSLDIR/private"
18374 alpine_SSLINCLUDE="/usr/include/openssl"
18375 alpine_SSLLIB="/usr/lib"
18377 *-*-dragonfly*)
18378 alpine_SSLDIR="/etc/openssl"
18379 alpine_SSLCERTS="$alpine_SSLDIR/certs"
18380 alpine_SSLKEYS="$alpine_SSLDIR/private"
18381 alpine_SSLINCLUDE="/usr/include/openssl"
18382 alpine_SSLLIB="/usr/lib"
18384 *-openbsd*)
18385 alpine_SSLTYPE="nopwd"
18386 alpine_SSLDIR="/usr"
18387 alpine_SSLCERTS="/etc/ssl/certs"
18389 *-*-freebsd*)
18390 alpine_SSLDIR="/etc/ssl"
18391 alpine_SSLCERTS="$alpine_SSLDIR/certs"
18392 alpine_SSLKEYS="$alpine_SSLDIR/private"
18393 if test -d /usr/local/include/openssl ; then
18394 alpine_SSLINCLUDE="/usr/local/include/openssl"
18395 alpine_SSLLIB="/usr/local/lib"
18396 else
18397 alpine_SSLINCLUDE="/usr/include/openssl"
18398 alpine_SSLLIB="/usr/lib"
18401 *-*-openbsd*)
18402 alpine_SSLDIR="/etc/ssl"
18403 alpine_SSLINCLUDE="/usr/include/openssl"
18404 alpine_SSLLIB="/usr/lib"
18405 alpine_SSLCERTS="/etc/ssl"
18406 alpine_SSLKEYS="/etc/ssl/private"
18408 *-*-cygwin)
18409 alpine_SSLDIR="/usr/ssl"
18410 alpine_SSLCERTS="$alpine_SSLDIR/certs"
18411 alpine_SSLKEYS="$alpine_SSLDIR/certs"
18412 alpine_SSLINCLUDE="/usr/include/openssl"
18413 alpine_SSLLIB="/usr/lib"
18415 *-sco-sysv* | *-sysv*UnixWare | *-sysv*OpenUNIX)
18416 alpine_SSLTYPE="sco.nopwd"
18417 alpine_SSLDIR="/usr/local/ssl"
18419 *-*-solaris*)
18420 if test -d /usr/include/openssl ; then
18421 alpine_SSLINCLUDE="/usr/include/openssl"
18422 elif test -d /usr/sfw/include/openssl ; then
18423 alpine_SSLDIR="/usr/sfw"
18424 elif test -d /opt/csw/include/openssl ; then
18425 alpine_SSLDIR="/opt/csw"
18426 if test -d /opt/csw/ssl/certs ; then
18427 alpine_SSLCERTS="/opt/csw/ssl/certs"
18430 if test -z "$alpine_SSLCERTS" -a -d /etc/certs ; then
18431 alpine_SSLCERTS="/etc/certs"
18435 alpine_SSLTYPE="nopwd"
18436 alpine_SSLDIR="/usr/local/ssl"
18438 esac
18441 if test "x$alpine_SSLTYPE" != "xnone" ; then
18443 # Check whether --with-ssl-dir was given.
18444 if test "${with_ssl_dir+set}" = set; then :
18445 withval=$with_ssl_dir;
18446 if test "x$withval" != "xno" ; then
18447 alpine_SSLDIR=$withval
18448 alpine_SSLINCLUDE=$alpine_SSLDIR/include
18449 alpine_SSLLIB=$alpine_SSLDIR/lib
18456 # Check whether --with-ssl-certs-dir was given.
18457 if test "${with_ssl_certs_dir+set}" = set; then :
18458 withval=$with_ssl_certs_dir;
18459 if test "x$withval" != "xno" ; then
18460 alpine_SSLCERTS=$withval
18467 # Check whether --with-ssl-include-dir was given.
18468 if test "${with_ssl_include_dir+set}" = set; then :
18469 withval=$with_ssl_include_dir;
18470 if test "x$withval" != "xno" ; then
18471 alpine_SSLINCLUDE=$withval
18478 # Check whether --with-ssl-lib-dir was given.
18479 if test "${with_ssl_lib_dir+set}" = set; then :
18480 withval=$with_ssl_lib_dir;
18481 if test "x$withval" != "xno" ; then
18482 alpine_SSLLIB=$withval
18488 if test -n "$alpine_SSLINCLUDE" ; then
18489 CPPFLAGS="-I$alpine_SSLINCLUDE $CPPFLAGS"
18490 elif test -n "$alpine_SSLDIR" ; then
18491 CPPFLAGS="-I${alpine_SSLDIR}/include $CPPFLAGS"
18493 if test -n "$alpine_SSLLIB" ; then
18494 LDFLAGS="-L$alpine_SSLLIB $LDFLAGS"
18495 elif test -n "$alpine_SSLDIR" ; then
18496 LDFLAGS="-L${alpine_SSLDIR}/lib $LDFLAGS"
18500 if test "x$alpine_SSLTYPE" != "xnone" ; then
18501 alpine_default_SSLMIN="no_min"
18502 alpine_default_SSLMAX="no_max"
18503 alpine_default_RANGE="${alpine_default_SSLMIN},${alpine_default_SSLMAX}"
18504 alpine_ENCRYPTION="$alpine_default_SSLMIN ssl3 tls1 tls1_1 tls1_2 tls1_3 $alpine_default_SSLMAX"
18505 alpine_SSLMIN="$alpine_default_SSLMIN"
18506 alpine_SSLMAX="$alpine_default_SSLMAX"
18507 alpine_RANGE="$alpine_default_RANGE"
18509 # Check whether --with-encryption-minimum-version was given.
18510 if test "${with_encryption_minimum_version+set}" = set; then :
18511 withval=$with_encryption_minimum_version;
18512 if test "x$withval" != "xno" ; then
18513 alpine_SSLMIN=$withval
18519 # Check whether --with-encryption-maximum-version was given.
18520 if test "${with_encryption_maximum_version+set}" = set; then :
18521 withval=$with_encryption_maximum_version;
18522 if test "x$withval" != "xno" ; then
18523 alpine_SSLMAX=$withval
18528 alpine_RANGE="$alpine_SSLMIN $alpine_SSLMAX"
18529 for range in ${alpine_RANGE} ; do
18530 for encryption in ${alpine_ENCRYPTION} ; do
18531 if test "x$range" = "x$encryption" ; then
18532 if test -z $alpine_min ; then
18533 alpine_min="yes"
18534 else
18535 alpine_max="yes"
18538 done
18539 done
18541 if test -z $alpine_max ; then
18542 as_fn_error $? "Unrecognized maximum encryption version: $alpine_max" "$LINENO" 5
18545 if test -z $alpine_min ; then
18546 as_fn_error $? "Unrecognized minimum encryption version: $alpine_min" "$LINENO" 5
18549 if test "x$alpine_SSLMIN" != "x$alpine_SSLMAX" ; then
18550 alpine_RANGE_FEASIBLE=`echo "$alpine_ENCRYPTION" | sed "s/^.*$alpine_SSLMIN//" | grep "$alpine_SSLMAX"`
18551 if test -n "$alpine_RANGE_FEASIBLE" ; then
18552 alpine_RANGE="${alpine_SSLMIN},${alpine_SSLMAX}"
18553 else
18554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Reversing order of minimum and maximum encryption" >&5
18555 $as_echo "$as_me: WARNING: Reversing order of minimum and maximum encryption" >&2;}
18556 alpine_RANGE="${alpine_SSLMAX},${alpine_SSLMIN}"
18558 else
18559 if test "x$alpine_SSLMIN" = "x$alpine_default_SSLMIN" ; then
18560 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Overriding maximum encryption to default" >&5
18561 $as_echo "$as_me: WARNING: Overriding maximum encryption to default" >&2;}
18562 alpine_SSLMAX="$alpine_default_SSLMAX"
18564 if test "x$alpine_SSLMAX" = "x$alpine_default_SSLMAX" ; then
18565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Overriding minimum encryption to default" >&5
18566 $as_echo "$as_me: WARNING: Overriding minimum encryption to default" >&2;}
18567 alpine_SSLMIN="$alpine_default_SSLMIN"
18569 alpine_RANGE="${alpine_SSLMIN},${alpine_SSLMAX}"
18572 dpv=$alpine_RANGE
18574 # Check whether --with-encryption-range was given.
18575 if test "${with_encryption_range+set}" = set; then :
18576 withval=$with_encryption_range;
18577 if test "x$withval" != "xno" ; then
18578 dpv=$withval
18584 cat >>confdefs.h <<_ACEOF
18585 #define DF_ENCRYPTION_RANGE "$dpv"
18586 _ACEOF
18592 # Check whether --with-krb5 was given.
18593 if test "${with_krb5+set}" = set; then :
18594 withval=$with_krb5; with_krb5=$withval
18598 if test "x$with_krb5" = "xno" ; then
18599 alpine_GSSTYPE="none"
18600 else
18601 alpine_GSSTYPE=
18604 # Check whether --with-krb5-dir was given.
18605 if test "${with_krb5_dir+set}" = set; then :
18606 withval=$with_krb5_dir;
18607 if test "x$withval" != "xno" ; then
18608 CPPFLAGS="$CPPFLAGS -I${withval}/include"
18609 LDFLAGS="$LDFLAGS -L${withval}/lib"
18616 # Check whether --with-krb5-include-dir was given.
18617 if test "${with_krb5_include_dir+set}" = set; then :
18618 withval=$with_krb5_include_dir;
18619 if test "x$withval" != "xno" ; then
18620 CPPFLAGS="$CPPFLAGS -I$withval"
18627 # Check whether --with-krb5-lib-dir was given.
18628 if test "${with_krb5_lib_dir+set}" = set; then :
18629 withval=$with_krb5_lib_dir;
18630 if test "x$withval" != "xno" ; then
18631 LDFLAGS="$LDFLAGS -L$withval"
18639 # Check whether --with-ldap was given.
18640 if test "${with_ldap+set}" = set; then :
18641 withval=$with_ldap; with_ldap=$withval
18645 if test "x$with_ldap" = "xno" ; then
18646 alpine_with_ldap=
18647 { $as_echo "$as_me:${as_lineno-$LINENO}: Excluding LDAP Support" >&5
18648 $as_echo "$as_me: Excluding LDAP Support" >&6;}
18649 else
18651 case $host in
18652 *-*-freebsd*)
18653 alpine_LDAPDIR="/usr/local"
18654 alpine_LDAPINCLUDE="${alpine_LDAPDIR}/include"
18655 alpine_LDAPLIB="${alpine_LDAPDIR}/lib"
18657 esac;
18659 alpine_with_ldap=yes
18662 # Check whether --with-ldap-dir was given.
18663 if test "${with_ldap_dir+set}" = set; then :
18664 withval=$with_ldap_dir;
18665 if test "x$withval" != "xno" ; then
18666 alpine_LDAPDIR="${withval}"
18667 alpine_LDAPINCLUDE="${alpine_LDAPDIR}/include"
18668 alpine_LDAPLIB="${alpine_LDAPDIR}/lib"
18675 # Check whether --with-ldap-include-dir was given.
18676 if test "${with_ldap_include_dir+set}" = set; then :
18677 withval=$with_ldap_include_dir;
18678 if test "x$withval" != "xno" ; then
18679 alpine_LDAPINCLUDE="$withval"
18686 # Check whether --with-ldap-lib-dir was given.
18687 if test "${with_ldap_lib_dir+set}" = set; then :
18688 withval=$with_ldap_lib_dir;
18689 if test "x$withval" != "xno" ; then
18690 alpine_LDAPLIB="${withval}"
18696 if test -n "$alpine_LDAPINCLUDE" ; then
18697 CPPFLAGS="$CPPFLAGS -I${alpine_LDAPINCLUDE}/include"
18699 if test -n "$alpine_LDAPLIB" ; then
18700 LDFLAGS="$LDFLAGS -L${alpine_LDAPLIB}/lib"
18705 # Check whether --with-smime was given.
18706 if test "${with_smime+set}" = set; then :
18707 withval=$with_smime; with_smime=$withval
18712 # Check whether --with-tcl was given.
18713 if test "${with_tcl+set}" = set; then :
18714 withval=$with_tcl; with_tcl=$withval
18718 if test "x$with_tcl" = "xno" ; then
18719 WEB_BUILD=
18720 { $as_echo "$as_me:${as_lineno-$LINENO}: Excluding TCL Support, and thus Web Alpine Support" >&5
18721 $as_echo "$as_me: Excluding TCL Support, and thus Web Alpine Support" >&6;}
18722 else
18724 # Check whether --with-tcl-lib-dir was given.
18725 if test "${with_tcl_lib_dir+set}" = set; then :
18726 withval=$with_tcl_lib_dir;
18727 if test "x$withval" != "xno" ; then
18728 alpine_TCLLIBDIR=$withval
18729 if test -n "$alpine_TCLLIBDIR" ; then
18730 LDFLAGS="-L$alpine_TCLLIBDIR $LDFLAGS"
18737 # Check whether --with-tcl-lib was given.
18738 if test "${with_tcl_lib+set}" = set; then :
18739 withval=$with_tcl_lib;
18740 if test "x$withval" != "xno" ; then
18741 alpine_TCLLIB=$withval
18747 # Check whether --with-tcl-include was given.
18748 if test "${with_tcl_include+set}" = set; then :
18749 withval=$with_tcl_include;
18750 if test "x$withval" != "xno" ; then
18751 CPPFLAGS="$CPPFLAGS -I$withval"
18752 alpine_TCLINC=$withval
18760 # Check whether --with-supplied-regex was given.
18761 if test "${with_supplied_regex+set}" = set; then :
18762 withval=$with_supplied_regex; alpine_REGEX=$withval
18767 # Check whether --with-pthread was given.
18768 if test "${with_pthread+set}" = set; then :
18769 withval=$with_pthread; with_pthread=$withval
18774 # Check whether --with-system-mail-directory was given.
18775 if test "${with_system_mail_directory+set}" = set; then :
18776 withval=$with_system_mail_directory;
18777 if test "x$withval" != "xno" ; then
18778 alpine_with_local_maildir="$withval"
18785 # Check whether --with-c-client-target was given.
18786 if test "${with_c_client_target+set}" = set; then :
18787 withval=$with_c_client_target;
18788 if test "x$withval" != "xno" ;then
18789 alpine_with_c_client_target="$withval"
18796 alpine_c_client_bundled="no"
18798 # Check whether --with-bundled-tools was given.
18799 if test "${with_bundled_tools+set}" = set; then :
18800 withval=$with_bundled_tools;
18801 if test "x$withval" = "xyes" ; then
18802 alpine_c_client_bundled=""
18808 alpine_PAM="none"
18810 case "$host" in
18811 *-linux*|*-k*bsd*-gnu*|*-gnu*)
18812 alpine_path_delim="/"
18813 alpine_mode_readonly="(0600)"
18814 if test -f /etc/fedora-release ; then
18815 systype="LFD"
18816 alpine_PAM="yes"
18817 if test -d /etc/pki/tls ; then
18818 alpine_c_client_target="lfd"
18819 else
18820 alpine_c_client_target="lrh"
18822 elif test -f /etc/mandrake-release ; then
18823 systype="LMD"
18824 alpine_c_client_target="lmd"
18825 alpine_PAM="yes"
18826 elif test -f /etc/redhat-release -o -f /etc/redhat_version ; then
18827 systype="LRH"
18828 alpine_PAM="yes"
18829 if test -d /etc/pki/tls ; then
18830 alpine_c_client_target="lr5"
18831 else
18832 alpine_c_client_target="lrh"
18834 elif test -f /etc/debian_release -o -f /etc/debian_version ; then
18835 if test -d /etc/osso-af-init ; then
18836 systype="LN8"
18837 alpine_c_client_target="ln8"
18838 else
18839 systype="DEB"
18840 alpine_c_client_target="ldb"
18841 alpine_PAM="yes"
18843 elif test -f /etc/SuSE-release; then
18844 systype="LSU"
18845 alpine_c_client_target="lsu"
18846 alpine_PAM="yes"
18847 else
18848 systype="LNX"
18849 if test -z "$alpine_c_client_bundled" ; then
18850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for am_start in -lpam" >&5
18851 $as_echo_n "checking for am_start in -lpam... " >&6; }
18852 if ${ac_cv_lib_pam_am_start+:} false; then :
18853 $as_echo_n "(cached) " >&6
18854 else
18855 ac_check_lib_save_LIBS=$LIBS
18856 LIBS="-lpam $LIBS"
18857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18858 /* end confdefs.h. */
18860 /* Override any GCC internal prototype to avoid an error.
18861 Use char because int might match the return type of a GCC
18862 builtin and then its argument prototype would still apply. */
18863 #ifdef __cplusplus
18864 extern "C"
18865 #endif
18866 char am_start ();
18868 main ()
18870 return am_start ();
18872 return 0;
18874 _ACEOF
18875 if ac_fn_c_try_link "$LINENO"; then :
18876 ac_cv_lib_pam_am_start=yes
18877 else
18878 ac_cv_lib_pam_am_start=no
18880 rm -f core conftest.err conftest.$ac_objext \
18881 conftest$ac_exeext conftest.$ac_ext
18882 LIBS=$ac_check_lib_save_LIBS
18884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_am_start" >&5
18885 $as_echo "$ac_cv_lib_pam_am_start" >&6; }
18886 if test "x$ac_cv_lib_pam_am_start" = xyes; then :
18888 alpine_c_client_target="lnp"
18889 alpine_PAM="yes"
18891 else
18893 if test -f /etc/shadow ; then
18894 alpine_c_client_target="slx"
18895 else
18896 alpine_c_client_target="lnx"
18901 else
18902 if test -f /etc/shadow ; then
18903 alpine_c_client_target="slx"
18904 else
18905 alpine_c_client_target="lnx"
18910 *-apple-darwin*)
18911 systype="OSX"
18912 alpine_path_delim="/"
18913 alpine_mode_readonly="(0600)"
18914 LIBS="$LIBS -framework Carbon -framework ApplicationServices -framework Security"
18915 AM_CFLAGS="$AM_CFLAGS -Dbsd"
18917 $as_echo "#define OSX_TARGET 1" >>confdefs.h
18919 case "$alpine_os_credential_cache" in
18924 $as_echo "#define APPLEKEYCHAIN 1" >>confdefs.h
18927 esac
18928 if test -z "$alpine_c_client_bundled" ; then
18929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
18930 $as_echo_n "checking for pam_start in -lpam... " >&6; }
18931 if ${ac_cv_lib_pam_pam_start+:} false; then :
18932 $as_echo_n "(cached) " >&6
18933 else
18934 ac_check_lib_save_LIBS=$LIBS
18935 LIBS="-lpam $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 if ac_fn_c_try_link "$LINENO"; then :
18955 ac_cv_lib_pam_pam_start=yes
18956 else
18957 ac_cv_lib_pam_pam_start=no
18959 rm -f core conftest.err conftest.$ac_objext \
18960 conftest$ac_exeext conftest.$ac_ext
18961 LIBS=$ac_check_lib_save_LIBS
18963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
18964 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
18965 if test "x$ac_cv_lib_pam_pam_start" = xyes; then :
18967 ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
18968 if test "x$ac_cv_header_security_pam_appl_h" = xyes; then :
18970 alpine_PAM="yes"
18971 alpine_c_client_target="oxs"
18973 else
18974 ac_fn_c_check_header_mongrel "$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default"
18975 if test "x$ac_cv_header_pam_pam_appl_h" = xyes; then :
18977 alpine_PAM="yes"
18978 alpine_c_client_target="oxp"
18980 else
18982 alpine_PAM="none"
18983 alpine_pam_none_reason="header files not found"
18993 else
18995 alpine_c_client_target="osx"
18999 else
19000 alpine_c_client_target="osx"
19003 *-*-solaris*)
19004 if test x$GCC = "xyes" ; then
19005 systype="GSO"
19006 alpine_c_client_target="gso"
19007 CFLAGS="$CFLAGS -D__USE_LEGACY_PROTOTYPES__"
19008 else
19009 systype="SOC"
19010 alpine_c_client_target="soc"
19012 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
19015 alpine_path_delim="/"
19016 alpine_mode_readonly="(0600)"
19018 *-*-sunos4*)
19019 systype="SUN"
19020 alpine_path_delim="/"
19021 alpine_mode_readonly="(0600)"
19022 alpine_c_client_target="s40"
19024 *-*-sco3.2v5*)
19025 if test x$GCC = "xyes" ; then
19026 systype="GO5"
19027 alpine_c_client_target="go5"
19028 else
19029 systype="SC5"
19030 alpine_c_client_target="sc5"
19032 alpine_path_delim="/"
19033 alpine_mode_readonly="(0600)"
19035 *-next-*)
19036 systype="NXT"
19037 alpine_path_delim="/"
19038 alpine_mode_readonly="(0600)"
19039 alpine_c_client_target="nx3"
19041 *-*-netbsd*)
19042 systype="NEB"
19043 alpine_path_delim="/"
19044 alpine_mode_readonly="(0600)"
19045 alpine_c_client_target="neb"
19047 *-*-hpux9*)
19048 systype="HPP"
19049 alpine_path_delim="/"
19050 alpine_mode_readonly="(0600)"
19051 alpine_c_client_target="gh9"
19053 *-*-dragonfly*)
19054 systype="DFB"
19055 alpine_path_delim="/"
19056 alpine_mode_readonly="(0600)"
19057 alpine_c_client_target="neb"
19059 *-*-bsdi*)
19060 systype="BSI"
19061 alpine_path_delim="/"
19062 alpine_mode_readonly="(0600)"
19063 alpine_c_client_target="bsi"
19065 *-*-freebsd*)
19066 systype="BSF"
19067 alpine_path_delim="/"
19068 alpine_mode_readonly="(0600)"
19069 alpine_c_client_target="bsf"
19070 LIBS="$LIBS $LIBINTL"
19072 *-*-openbsd*)
19073 systype="BSO"
19074 alpine_path_delim="/"
19075 alpine_mode_readonly="(0600)"
19076 alpine_c_client_target="bso"
19077 LIBS="$LIBS $LIBINTL"
19079 *-*-aix5*)
19080 systype="A52"
19081 alpine_path_delim="/"
19082 alpine_mode_readonly="(0600)"
19083 alpine_c_client_target="a52"
19085 *-*-aix4*)
19086 systype="A41"
19087 alpine_path_delim="/"
19088 alpine_mode_readonly="(0600)"
19089 alpine_c_client_target="a41"
19091 *-*-aix3*)
19092 systype="A32"
19093 alpine_path_delim="/"
19094 alpine_mode_readonly="(0600)"
19095 alpine_c_client_target="a32"
19097 *-*UNIX_SV | *-*-sysv5UnixWare7* | *-*OpenUNIX*)
19098 systype="UW2"
19099 alpine_path_delim="/"
19100 alpine_mode_readonly="(0600)"
19101 alpine_c_client_target="uw2"
19103 *-*-osf5*)
19104 systype="OSF"
19105 alpine_path_delim="/"
19106 alpine_mode_readonly="(0600)"
19107 alpine_c_client_target="osf"
19109 *-*-cygwin)
19110 systype="CYG"
19111 alpine_path_delim="/"
19112 alpine_mode_readonly="(S_IREAD | S_IWRITE)"
19113 alpine_c_client_target="cyg"
19114 LIBS="$LIBS $LIBINTL"
19116 windows* | *-*-pw32*)
19117 systype="WNT"
19118 alpine_path_delim="\\"
19119 alpine_mode_readonly="(S_IREAD | S_IWRITE)"
19120 alpine_c_client_target="wnt"
19122 $as_echo "#define _WINDOWS 1" >>confdefs.h
19126 as_fn_error $? "Unrecognized system: $host" "$LINENO" 5
19128 esac
19131 # Check whether --with-ipv6 was given.
19132 if test "${with_ipv6+set}" = set; then :
19133 withval=$with_ipv6; with_ipv6=$withval
19137 if test "x$with_ipv6" = "xno" ; then
19138 { $as_echo "$as_me:${as_lineno-$LINENO}: Excluding IPv6 Support" >&5
19139 $as_echo "$as_me: Excluding IPv6 Support" >&6;}
19140 c_client_specials="${c_client_specials}IP6=4 "
19141 c_client_ip6="true"
19142 else
19143 c_client_ip6="touch imap/ip6"
19148 if test x$enable_dmalloc = "xyes" ; then
19149 if test "x$with_pthread" = "xyes" ; then
19150 dmalloc_lib=dmallocth
19151 else
19152 dmalloc_lib=dmalloc
19155 as_ac_Lib=`$as_echo "ac_cv_lib_$dmalloc_lib''_dmalloc_shutdown" | $as_tr_sh`
19156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dmalloc_shutdown in -l$dmalloc_lib" >&5
19157 $as_echo_n "checking for dmalloc_shutdown in -l$dmalloc_lib... " >&6; }
19158 if eval \${$as_ac_Lib+:} false; then :
19159 $as_echo_n "(cached) " >&6
19160 else
19161 ac_check_lib_save_LIBS=$LIBS
19162 LIBS="-l$dmalloc_lib $LIBS"
19163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19164 /* end confdefs.h. */
19166 /* Override any GCC internal prototype to avoid an error.
19167 Use char because int might match the return type of a GCC
19168 builtin and then its argument prototype would still apply. */
19169 #ifdef __cplusplus
19170 extern "C"
19171 #endif
19172 char dmalloc_shutdown ();
19174 main ()
19176 return dmalloc_shutdown ();
19178 return 0;
19180 _ACEOF
19181 if ac_fn_c_try_link "$LINENO"; then :
19182 eval "$as_ac_Lib=yes"
19183 else
19184 eval "$as_ac_Lib=no"
19186 rm -f core conftest.err conftest.$ac_objext \
19187 conftest$ac_exeext conftest.$ac_ext
19188 LIBS=$ac_check_lib_save_LIBS
19190 eval ac_res=\$$as_ac_Lib
19191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19192 $as_echo "$ac_res" >&6; }
19193 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
19194 cat >>confdefs.h <<_ACEOF
19195 #define `$as_echo "HAVE_LIB$dmalloc_lib" | $as_tr_cpp` 1
19196 _ACEOF
19198 LIBS="-l$dmalloc_lib $LIBS"
19200 else
19202 as_fn_error but -ldmalloc not found "$dmalloc_lib requested" "$LINENO" 5
19208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setupterm in -ltinfo" >&5
19209 $as_echo_n "checking for setupterm in -ltinfo... " >&6; }
19210 if ${ac_cv_lib_tinfo_setupterm+:} false; then :
19211 $as_echo_n "(cached) " >&6
19212 else
19213 ac_check_lib_save_LIBS=$LIBS
19214 LIBS="-ltinfo $LIBS"
19215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19216 /* end confdefs.h. */
19218 /* Override any GCC internal prototype to avoid an error.
19219 Use char because int might match the return type of a GCC
19220 builtin and then its argument prototype would still apply. */
19221 #ifdef __cplusplus
19222 extern "C"
19223 #endif
19224 char setupterm ();
19226 main ()
19228 return setupterm ();
19230 return 0;
19232 _ACEOF
19233 if ac_fn_c_try_link "$LINENO"; then :
19234 ac_cv_lib_tinfo_setupterm=yes
19235 else
19236 ac_cv_lib_tinfo_setupterm=no
19238 rm -f core conftest.err conftest.$ac_objext \
19239 conftest$ac_exeext conftest.$ac_ext
19240 LIBS=$ac_check_lib_save_LIBS
19242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_setupterm" >&5
19243 $as_echo "$ac_cv_lib_tinfo_setupterm" >&6; }
19244 if test "x$ac_cv_lib_tinfo_setupterm" = xyes; then :
19246 alpine_termdata=info
19247 LIBS="$LIBS -ltinfo"
19249 else
19251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setupterm in -lncurses" >&5
19252 $as_echo_n "checking for setupterm in -lncurses... " >&6; }
19253 if ${ac_cv_lib_ncurses_setupterm+:} false; then :
19254 $as_echo_n "(cached) " >&6
19255 else
19256 ac_check_lib_save_LIBS=$LIBS
19257 LIBS="-lncurses $LIBS"
19258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19259 /* end confdefs.h. */
19261 /* Override any GCC internal prototype to avoid an error.
19262 Use char because int might match the return type of a GCC
19263 builtin and then its argument prototype would still apply. */
19264 #ifdef __cplusplus
19265 extern "C"
19266 #endif
19267 char setupterm ();
19269 main ()
19271 return setupterm ();
19273 return 0;
19275 _ACEOF
19276 if ac_fn_c_try_link "$LINENO"; then :
19277 ac_cv_lib_ncurses_setupterm=yes
19278 else
19279 ac_cv_lib_ncurses_setupterm=no
19281 rm -f core conftest.err conftest.$ac_objext \
19282 conftest$ac_exeext conftest.$ac_ext
19283 LIBS=$ac_check_lib_save_LIBS
19285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_setupterm" >&5
19286 $as_echo "$ac_cv_lib_ncurses_setupterm" >&6; }
19287 if test "x$ac_cv_lib_ncurses_setupterm" = xyes; then :
19289 alpine_termdata=info
19290 LIBS="$LIBS -lncurses"
19292 else
19294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setupterm in -lcurses" >&5
19295 $as_echo_n "checking for setupterm in -lcurses... " >&6; }
19296 if ${ac_cv_lib_curses_setupterm+:} false; then :
19297 $as_echo_n "(cached) " >&6
19298 else
19299 ac_check_lib_save_LIBS=$LIBS
19300 LIBS="-lcurses $LIBS"
19301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19302 /* end confdefs.h. */
19304 /* Override any GCC internal prototype to avoid an error.
19305 Use char because int might match the return type of a GCC
19306 builtin and then its argument prototype would still apply. */
19307 #ifdef __cplusplus
19308 extern "C"
19309 #endif
19310 char setupterm ();
19312 main ()
19314 return setupterm ();
19316 return 0;
19318 _ACEOF
19319 if ac_fn_c_try_link "$LINENO"; then :
19320 ac_cv_lib_curses_setupterm=yes
19321 else
19322 ac_cv_lib_curses_setupterm=no
19324 rm -f core conftest.err conftest.$ac_objext \
19325 conftest$ac_exeext conftest.$ac_ext
19326 LIBS=$ac_check_lib_save_LIBS
19328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_setupterm" >&5
19329 $as_echo "$ac_cv_lib_curses_setupterm" >&6; }
19330 if test "x$ac_cv_lib_curses_setupterm" = xyes; then :
19332 alpine_termdata=info
19333 LIBS="$LIBS -lcurses"
19335 else
19337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermlib" >&5
19338 $as_echo_n "checking for tgetent in -ltermlib... " >&6; }
19339 if ${ac_cv_lib_termlib_tgetent+:} false; then :
19340 $as_echo_n "(cached) " >&6
19341 else
19342 ac_check_lib_save_LIBS=$LIBS
19343 LIBS="-ltermlib $LIBS"
19344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19345 /* end confdefs.h. */
19347 /* Override any GCC internal prototype to avoid an error.
19348 Use char because int might match the return type of a GCC
19349 builtin and then its argument prototype would still apply. */
19350 #ifdef __cplusplus
19351 extern "C"
19352 #endif
19353 char tgetent ();
19355 main ()
19357 return tgetent ();
19359 return 0;
19361 _ACEOF
19362 if ac_fn_c_try_link "$LINENO"; then :
19363 ac_cv_lib_termlib_tgetent=yes
19364 else
19365 ac_cv_lib_termlib_tgetent=no
19367 rm -f core conftest.err conftest.$ac_objext \
19368 conftest$ac_exeext conftest.$ac_ext
19369 LIBS=$ac_check_lib_save_LIBS
19371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termlib_tgetent" >&5
19372 $as_echo "$ac_cv_lib_termlib_tgetent" >&6; }
19373 if test "x$ac_cv_lib_termlib_tgetent" = xyes; then :
19375 alpine_termdata=cap
19376 LIBS="$LIBS -ltermlib"
19378 else
19380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
19381 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
19382 if ${ac_cv_lib_termcap_tgetent+:} false; then :
19383 $as_echo_n "(cached) " >&6
19384 else
19385 ac_check_lib_save_LIBS=$LIBS
19386 LIBS="-ltermcap $LIBS"
19387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19388 /* end confdefs.h. */
19390 /* Override any GCC internal prototype to avoid an error.
19391 Use char because int might match the return type of a GCC
19392 builtin and then its argument prototype would still apply. */
19393 #ifdef __cplusplus
19394 extern "C"
19395 #endif
19396 char tgetent ();
19398 main ()
19400 return tgetent ();
19402 return 0;
19404 _ACEOF
19405 if ac_fn_c_try_link "$LINENO"; then :
19406 ac_cv_lib_termcap_tgetent=yes
19407 else
19408 ac_cv_lib_termcap_tgetent=no
19410 rm -f core conftest.err conftest.$ac_objext \
19411 conftest$ac_exeext conftest.$ac_ext
19412 LIBS=$ac_check_lib_save_LIBS
19414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
19415 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
19416 if test "x$ac_cv_lib_termcap_tgetent" = xyes; then :
19418 alpine_termdata=cap
19419 LIBS="$LIBS -ltermcap"
19421 else
19423 as_fn_error $? "Terminfo/termcap not found" "$LINENO" 5
19439 case $alpine_termdata in
19440 info)
19442 $as_echo "#define HAS_TERMINFO 1" >>confdefs.h
19445 cap)
19447 $as_echo "#define HAS_TERMCAP 1" >>confdefs.h
19450 esac
19452 alpine_dlopen="yes"
19454 # Check whether --with-dlopen was given.
19455 if test "${with_dlopen+set}" = set; then :
19456 withval=$with_dlopen;
19457 alpine_dlopen=$withval
19462 if test "x$alpine_dlopen" != "xno" ; then
19463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
19464 $as_echo_n "checking for library containing dlopen... " >&6; }
19465 if ${ac_cv_search_dlopen+:} false; then :
19466 $as_echo_n "(cached) " >&6
19467 else
19468 ac_func_search_save_LIBS=$LIBS
19469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19470 /* end confdefs.h. */
19472 /* Override any GCC internal prototype to avoid an error.
19473 Use char because int might match the return type of a GCC
19474 builtin and then its argument prototype would still apply. */
19475 #ifdef __cplusplus
19476 extern "C"
19477 #endif
19478 char dlopen ();
19480 main ()
19482 return dlopen ();
19484 return 0;
19486 _ACEOF
19487 for ac_lib in '' dl dld; do
19488 if test -z "$ac_lib"; then
19489 ac_res="none required"
19490 else
19491 ac_res=-l$ac_lib
19492 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19494 if ac_fn_c_try_link "$LINENO"; then :
19495 ac_cv_search_dlopen=$ac_res
19497 rm -f core conftest.err conftest.$ac_objext \
19498 conftest$ac_exeext
19499 if ${ac_cv_search_dlopen+:} false; then :
19500 break
19502 done
19503 if ${ac_cv_search_dlopen+:} false; then :
19505 else
19506 ac_cv_search_dlopen=no
19508 rm conftest.$ac_ext
19509 LIBS=$ac_func_search_save_LIBS
19511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
19512 $as_echo "$ac_cv_search_dlopen" >&6; }
19513 ac_res=$ac_cv_search_dlopen
19514 if test "$ac_res" != no; then :
19515 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19517 else
19518 alpine_DL="none"
19521 if test "x$alpine_DL" = "xnone" ; then
19522 as_fn_error $? "No library containing dlopen found" "$LINENO" 5
19523 exit 1
19526 if test "x$alpine_SSLTYPE" != "xnone" ; then
19527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OpenSSL is LibreSSL" >&5
19528 $as_echo_n "checking if OpenSSL is LibreSSL... " >&6; }
19529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19530 /* end confdefs.h. */
19532 #include <stdio.h>
19533 #include <stdlib.h>
19534 #if HAVE_STDINT_H
19535 #include <stdint.h>
19536 #endif /* HAVE_STDINT_H */
19537 #include <openssl/ssl.h>
19540 main ()
19543 #if OPENSSL_VERSION_NUMBER != 0x20000000L
19544 #error
19545 #endif
19548 return 0;
19550 _ACEOF
19551 if ac_fn_c_try_compile "$LINENO"; then :
19552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19553 $as_echo "yes" >&6; }
19554 alpine_SSLPROVIDER="libressl"
19556 else
19557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19558 $as_echo "no" >&6; }
19561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19564 if test "x$alpine_SSLTYPE" != "xnone" -a "x$alpine_SSLPROVIDER" != "xlibressl" ; then
19565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Openssl library version >= 1.0.0c" >&5
19566 $as_echo_n "checking Openssl library version >= 1.0.0c... " >&6; }
19567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19568 /* end confdefs.h. */
19570 #include <stdio.h>
19571 #include <stdlib.h>
19572 #if HAVE_STDINT_H
19573 #include <stdint.h>
19574 #endif /* HAVE_STDINT_H */
19575 #include <openssl/ssl.h>
19578 main ()
19581 #if OPENSSL_VERSION_NUMBER < 0x1000003fL
19582 #error
19583 #endif
19586 return 0;
19588 _ACEOF
19589 if ac_fn_c_try_compile "$LINENO"; then :
19590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19591 $as_echo "yes" >&6; }
19592 alpine_SSLPROVIDER="openssl"
19594 else
19595 alpine_SSLTYPE="none"
19597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19599 if test "x$alpine_SSLTYPE" = "xnone" ; then
19600 as_fn_error $? "Install openssl version >= 1.0.0c" "$LINENO" 5
19601 exit 1
19605 if test "x$alpine_SSLTYPE" != "xnone" -a "x$alpine_SSLPROVIDER" != "xlibressl" ; then
19606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Openssl library version >= 1.1.0" >&5
19607 $as_echo_n "checking Openssl library version >= 1.1.0... " >&6; }
19608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19609 /* end confdefs.h. */
19611 #include <stdio.h>
19612 #include <stdlib.h>
19613 #if HAVE_STDINT_H
19614 #include <stdint.h>
19615 #endif /* HAVE_STDINT_H */
19616 #include <openssl/ssl.h>
19619 main ()
19622 #if OPENSSL_VERSION_NUMBER < 0x10100000L
19623 #error
19624 #endif
19627 return 0;
19629 _ACEOF
19630 if ac_fn_c_try_compile "$LINENO"; then :
19631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19632 $as_echo "yes" >&6; }
19633 alpine_SSLVERSION="new"
19634 CFLAGS="$CFLAGS -DOPENSSL_1_1_0 -DOPENSSL_API_COMPAT=0x10100000L"
19636 else
19637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19638 $as_echo "no" >&6; }
19639 alpine_SSLVERSION="old"
19641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19644 if test "x$alpine_SSLTYPE" != "xnone" ; then
19645 if test "x$alpine_SSLVERSION" = "xold" ; then
19646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSLeay" >&5
19647 $as_echo_n "checking for library containing SSLeay... " >&6; }
19648 if ${ac_cv_search_SSLeay+:} false; then :
19649 $as_echo_n "(cached) " >&6
19650 else
19651 ac_func_search_save_LIBS=$LIBS
19652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19653 /* end confdefs.h. */
19655 /* Override any GCC internal prototype to avoid an error.
19656 Use char because int might match the return type of a GCC
19657 builtin and then its argument prototype would still apply. */
19658 #ifdef __cplusplus
19659 extern "C"
19660 #endif
19661 char SSLeay ();
19663 main ()
19665 return SSLeay ();
19667 return 0;
19669 _ACEOF
19670 for ac_lib in '' crypto; do
19671 if test -z "$ac_lib"; then
19672 ac_res="none required"
19673 else
19674 ac_res=-l$ac_lib
19675 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19677 if ac_fn_c_try_link "$LINENO"; then :
19678 ac_cv_search_SSLeay=$ac_res
19680 rm -f core conftest.err conftest.$ac_objext \
19681 conftest$ac_exeext
19682 if ${ac_cv_search_SSLeay+:} false; then :
19683 break
19685 done
19686 if ${ac_cv_search_SSLeay+:} false; then :
19688 else
19689 ac_cv_search_SSLeay=no
19691 rm conftest.$ac_ext
19692 LIBS=$ac_func_search_save_LIBS
19694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SSLeay" >&5
19695 $as_echo "$ac_cv_search_SSLeay" >&6; }
19696 ac_res=$ac_cv_search_SSLeay
19697 if test "$ac_res" != no; then :
19698 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19700 else
19701 alpine_CRYPTO="none"
19704 else
19705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing OpenSSL_version_num" >&5
19706 $as_echo_n "checking for library containing OpenSSL_version_num... " >&6; }
19707 if ${ac_cv_search_OpenSSL_version_num+:} false; then :
19708 $as_echo_n "(cached) " >&6
19709 else
19710 ac_func_search_save_LIBS=$LIBS
19711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19712 /* end confdefs.h. */
19714 /* Override any GCC internal prototype to avoid an error.
19715 Use char because int might match the return type of a GCC
19716 builtin and then its argument prototype would still apply. */
19717 #ifdef __cplusplus
19718 extern "C"
19719 #endif
19720 char OpenSSL_version_num ();
19722 main ()
19724 return OpenSSL_version_num ();
19726 return 0;
19728 _ACEOF
19729 for ac_lib in '' crypto; do
19730 if test -z "$ac_lib"; then
19731 ac_res="none required"
19732 else
19733 ac_res=-l$ac_lib
19734 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19736 if ac_fn_c_try_link "$LINENO"; then :
19737 ac_cv_search_OpenSSL_version_num=$ac_res
19739 rm -f core conftest.err conftest.$ac_objext \
19740 conftest$ac_exeext
19741 if ${ac_cv_search_OpenSSL_version_num+:} false; then :
19742 break
19744 done
19745 if ${ac_cv_search_OpenSSL_version_num+:} false; then :
19747 else
19748 ac_cv_search_OpenSSL_version_num=no
19750 rm conftest.$ac_ext
19751 LIBS=$ac_func_search_save_LIBS
19753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_OpenSSL_version_num" >&5
19754 $as_echo "$ac_cv_search_OpenSSL_version_num" >&6; }
19755 ac_res=$ac_cv_search_OpenSSL_version_num
19756 if test "$ac_res" != no; then :
19757 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19759 else
19760 alpine_CRYPTO="none"
19764 if test "x$alpine_CRYPTO" = "xnone" ; then
19765 as_fn_error $? "crypto library NOT found" "$LINENO" 5
19766 exit 1
19768 case $host in
19769 *-*-cygwin)
19770 ac_fn_c_check_header_mongrel "$LINENO" "crypto.h" "ac_cv_header_crypto_h" "$ac_includes_default"
19771 if test "x$ac_cv_header_crypto_h" = xyes; then :
19773 else
19774 alpine_CRYPTO_DEVEL="none"
19778 if test "x$alpine_CRYPTO_DEVEL" = "xnone" ; then
19779 as_fn_error $? "crypto library file crypto.h NOT found. Install corresponding libcrypt-devel package" "$LINENO" 5
19780 exit 1
19783 *) ;;
19784 esac
19787 if test "x$alpine_SSLTYPE" != "xnone" ; then
19788 if test "x$alpine_SSLVERSION" = "xold" ; then
19789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSL_library_init" >&5
19790 $as_echo_n "checking for library containing SSL_library_init... " >&6; }
19791 if ${ac_cv_search_SSL_library_init+:} false; then :
19792 $as_echo_n "(cached) " >&6
19793 else
19794 ac_func_search_save_LIBS=$LIBS
19795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19796 /* end confdefs.h. */
19798 /* Override any GCC internal prototype to avoid an error.
19799 Use char because int might match the return type of a GCC
19800 builtin and then its argument prototype would still apply. */
19801 #ifdef __cplusplus
19802 extern "C"
19803 #endif
19804 char SSL_library_init ();
19806 main ()
19808 return SSL_library_init ();
19810 return 0;
19812 _ACEOF
19813 for ac_lib in '' ssl; do
19814 if test -z "$ac_lib"; then
19815 ac_res="none required"
19816 else
19817 ac_res=-l$ac_lib
19818 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19820 if ac_fn_c_try_link "$LINENO"; then :
19821 ac_cv_search_SSL_library_init=$ac_res
19823 rm -f core conftest.err conftest.$ac_objext \
19824 conftest$ac_exeext
19825 if ${ac_cv_search_SSL_library_init+:} false; then :
19826 break
19828 done
19829 if ${ac_cv_search_SSL_library_init+:} false; then :
19831 else
19832 ac_cv_search_SSL_library_init=no
19834 rm conftest.$ac_ext
19835 LIBS=$ac_func_search_save_LIBS
19837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SSL_library_init" >&5
19838 $as_echo "$ac_cv_search_SSL_library_init" >&6; }
19839 ac_res=$ac_cv_search_SSL_library_init
19840 if test "$ac_res" != no; then :
19841 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19843 else
19844 alpine_SSLTYPE="none"
19847 if test "x$alpine_SSLTYPE" = "xnone" ; then
19848 as_fn_error $? "No library containing SSL_library_init found in your path" "$LINENO" 5
19849 exit 1
19851 else
19852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing OPENSSL_init_ssl" >&5
19853 $as_echo_n "checking for library containing OPENSSL_init_ssl... " >&6; }
19854 if ${ac_cv_search_OPENSSL_init_ssl+:} false; then :
19855 $as_echo_n "(cached) " >&6
19856 else
19857 ac_func_search_save_LIBS=$LIBS
19858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19859 /* end confdefs.h. */
19861 /* Override any GCC internal prototype to avoid an error.
19862 Use char because int might match the return type of a GCC
19863 builtin and then its argument prototype would still apply. */
19864 #ifdef __cplusplus
19865 extern "C"
19866 #endif
19867 char OPENSSL_init_ssl ();
19869 main ()
19871 return OPENSSL_init_ssl ();
19873 return 0;
19875 _ACEOF
19876 for ac_lib in '' ssl; do
19877 if test -z "$ac_lib"; then
19878 ac_res="none required"
19879 else
19880 ac_res=-l$ac_lib
19881 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19883 if ac_fn_c_try_link "$LINENO"; then :
19884 ac_cv_search_OPENSSL_init_ssl=$ac_res
19886 rm -f core conftest.err conftest.$ac_objext \
19887 conftest$ac_exeext
19888 if ${ac_cv_search_OPENSSL_init_ssl+:} false; then :
19889 break
19891 done
19892 if ${ac_cv_search_OPENSSL_init_ssl+:} false; then :
19894 else
19895 ac_cv_search_OPENSSL_init_ssl=no
19897 rm conftest.$ac_ext
19898 LIBS=$ac_func_search_save_LIBS
19900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_OPENSSL_init_ssl" >&5
19901 $as_echo "$ac_cv_search_OPENSSL_init_ssl" >&6; }
19902 ac_res=$ac_cv_search_OPENSSL_init_ssl
19903 if test "$ac_res" != no; then :
19904 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19906 else
19907 alpine_SSLTYPE="none"
19910 if test "x$aalpiLlpine_SSLTYPE" = "xnone" ; then
19911 as_fn_error $? "No library containing OPENSSL_init_ssl found in your path" "$LINENO" 5
19912 exit 1
19917 if test "$alpine_with_ldap" = "yes" ; then
19918 alpine_has_ldap=
19919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_alloc in -llber" >&5
19920 $as_echo_n "checking for ber_alloc in -llber... " >&6; }
19921 if ${ac_cv_lib_lber_ber_alloc+:} false; then :
19922 $as_echo_n "(cached) " >&6
19923 else
19924 ac_check_lib_save_LIBS=$LIBS
19925 LIBS="-llber $LIBS"
19926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19927 /* end confdefs.h. */
19929 /* Override any GCC internal prototype to avoid an error.
19930 Use char because int might match the return type of a GCC
19931 builtin and then its argument prototype would still apply. */
19932 #ifdef __cplusplus
19933 extern "C"
19934 #endif
19935 char ber_alloc ();
19937 main ()
19939 return ber_alloc ();
19941 return 0;
19943 _ACEOF
19944 if ac_fn_c_try_link "$LINENO"; then :
19945 ac_cv_lib_lber_ber_alloc=yes
19946 else
19947 ac_cv_lib_lber_ber_alloc=no
19949 rm -f core conftest.err conftest.$ac_objext \
19950 conftest$ac_exeext conftest.$ac_ext
19951 LIBS=$ac_check_lib_save_LIBS
19953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_alloc" >&5
19954 $as_echo "$ac_cv_lib_lber_ber_alloc" >&6; }
19955 if test "x$ac_cv_lib_lber_ber_alloc" = xyes; then :
19957 LIBS="$LIBS -llber"
19961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldap_initialize" >&5
19962 $as_echo_n "checking for library containing ldap_initialize... " >&6; }
19963 if ${ac_cv_search_ldap_initialize+:} false; then :
19964 $as_echo_n "(cached) " >&6
19965 else
19966 ac_func_search_save_LIBS=$LIBS
19967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19968 /* end confdefs.h. */
19970 /* Override any GCC internal prototype to avoid an error.
19971 Use char because int might match the return type of a GCC
19972 builtin and then its argument prototype would still apply. */
19973 #ifdef __cplusplus
19974 extern "C"
19975 #endif
19976 char ldap_initialize ();
19978 main ()
19980 return ldap_initialize ();
19982 return 0;
19984 _ACEOF
19985 for ac_lib in '' ldap; do
19986 if test -z "$ac_lib"; then
19987 ac_res="none required"
19988 else
19989 ac_res=-l$ac_lib
19990 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19992 if ac_fn_c_try_link "$LINENO"; then :
19993 ac_cv_search_ldap_initialize=$ac_res
19995 rm -f core conftest.err conftest.$ac_objext \
19996 conftest$ac_exeext
19997 if ${ac_cv_search_ldap_initialize+:} false; then :
19998 break
20000 done
20001 if ${ac_cv_search_ldap_initialize+:} false; then :
20003 else
20004 ac_cv_search_ldap_initialize=no
20006 rm conftest.$ac_ext
20007 LIBS=$ac_func_search_save_LIBS
20009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldap_initialize" >&5
20010 $as_echo "$ac_cv_search_ldap_initialize" >&6; }
20011 ac_res=$ac_cv_search_ldap_initialize
20012 if test "$ac_res" != no; then :
20013 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20015 alpine_has_ldap=yes
20017 else
20019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldap_open" >&5
20020 $as_echo_n "checking for library containing ldap_open... " >&6; }
20021 if ${ac_cv_search_ldap_open+:} false; then :
20022 $as_echo_n "(cached) " >&6
20023 else
20024 ac_func_search_save_LIBS=$LIBS
20025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20026 /* end confdefs.h. */
20028 /* Override any GCC internal prototype to avoid an error.
20029 Use char because int might match the return type of a GCC
20030 builtin and then its argument prototype would still apply. */
20031 #ifdef __cplusplus
20032 extern "C"
20033 #endif
20034 char ldap_open ();
20036 main ()
20038 return ldap_open ();
20040 return 0;
20042 _ACEOF
20043 for ac_lib in '' ldap; do
20044 if test -z "$ac_lib"; then
20045 ac_res="none required"
20046 else
20047 ac_res=-l$ac_lib
20048 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20050 if ac_fn_c_try_link "$LINENO"; then :
20051 ac_cv_search_ldap_open=$ac_res
20053 rm -f core conftest.err conftest.$ac_objext \
20054 conftest$ac_exeext
20055 if ${ac_cv_search_ldap_open+:} false; then :
20056 break
20058 done
20059 if ${ac_cv_search_ldap_open+:} false; then :
20061 else
20062 ac_cv_search_ldap_open=no
20064 rm conftest.$ac_ext
20065 LIBS=$ac_func_search_save_LIBS
20067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldap_open" >&5
20068 $as_echo "$ac_cv_search_ldap_open" >&6; }
20069 ac_res=$ac_cv_search_ldap_open
20070 if test "$ac_res" != no; then :
20071 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20073 alpine_has_ldap=yes
20081 if test "$alpine_has_ldap" = "yes" ; then
20082 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * Including LDAP Support" >&5
20083 $as_echo "$as_me: * * * Including LDAP Support" >&6;}
20085 $as_echo "#define ENABLE_LDAP /**/" >>confdefs.h
20090 if test -z "$alpine_c_client_bundled" ; then
20091 if test "x$alpine_PAM" != "xnone" ; then
20092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pam_start" >&5
20093 $as_echo_n "checking for library containing pam_start... " >&6; }
20094 if ${ac_cv_search_pam_start+:} false; then :
20095 $as_echo_n "(cached) " >&6
20096 else
20097 ac_func_search_save_LIBS=$LIBS
20098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20099 /* end confdefs.h. */
20101 /* Override any GCC internal prototype to avoid an error.
20102 Use char because int might match the return type of a GCC
20103 builtin and then its argument prototype would still apply. */
20104 #ifdef __cplusplus
20105 extern "C"
20106 #endif
20107 char pam_start ();
20109 main ()
20111 return pam_start ();
20113 return 0;
20115 _ACEOF
20116 for ac_lib in '' pam; do
20117 if test -z "$ac_lib"; then
20118 ac_res="none required"
20119 else
20120 ac_res=-l$ac_lib
20121 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20123 if ac_fn_c_try_link "$LINENO"; then :
20124 ac_cv_search_pam_start=$ac_res
20126 rm -f core conftest.err conftest.$ac_objext \
20127 conftest$ac_exeext
20128 if ${ac_cv_search_pam_start+:} false; then :
20129 break
20131 done
20132 if ${ac_cv_search_pam_start+:} false; then :
20134 else
20135 ac_cv_search_pam_start=no
20137 rm conftest.$ac_ext
20138 LIBS=$ac_func_search_save_LIBS
20140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pam_start" >&5
20141 $as_echo "$ac_cv_search_pam_start" >&6; }
20142 ac_res=$ac_cv_search_pam_start
20143 if test "$ac_res" != no; then :
20144 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20146 LIBS="$LIBS -lpam"
20147 ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
20148 if test "x$ac_cv_header_security_pam_appl_h" = xyes; then :
20150 alpine_PAM="yes"
20152 else
20153 ac_fn_c_check_header_mongrel "$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default"
20154 if test "x$ac_cv_header_pam_pam_appl_h" = xyes; then :
20156 alpine_PAM="yes"
20157 if test "x$alpine_c_client_target" != "xoxp" ; then
20158 alpine_PAM="none"
20159 alpine_pam_none_reason="header files not in security/ directory"
20162 else
20164 alpine_PAM="none"
20165 alpine_pam_none_reason="header files not found"
20175 else
20177 alpine_PAM="none"
20178 alpine_pam_none_reason="library files not found"
20182 if test -n "$alpine_pam_none_reason" ; then
20183 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
20188 if test -n "$alpine_c_client_bundled" ; then
20189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
20190 $as_echo_n "checking for library containing crypt... " >&6; }
20191 if ${ac_cv_search_crypt+:} false; then :
20192 $as_echo_n "(cached) " >&6
20193 else
20194 ac_func_search_save_LIBS=$LIBS
20195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20196 /* end confdefs.h. */
20198 /* Override any GCC internal prototype to avoid an error.
20199 Use char because int might match the return type of a GCC
20200 builtin and then its argument prototype would still apply. */
20201 #ifdef __cplusplus
20202 extern "C"
20203 #endif
20204 char crypt ();
20206 main ()
20208 return crypt ();
20210 return 0;
20212 _ACEOF
20213 for ac_lib in '' crypt; do
20214 if test -z "$ac_lib"; then
20215 ac_res="none required"
20216 else
20217 ac_res=-l$ac_lib
20218 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20220 if ac_fn_c_try_link "$LINENO"; then :
20221 ac_cv_search_crypt=$ac_res
20223 rm -f core conftest.err conftest.$ac_objext \
20224 conftest$ac_exeext
20225 if ${ac_cv_search_crypt+:} false; then :
20226 break
20228 done
20229 if ${ac_cv_search_crypt+:} false; then :
20231 else
20232 ac_cv_search_crypt=no
20234 rm conftest.$ac_ext
20235 LIBS=$ac_func_search_save_LIBS
20237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
20238 $as_echo "$ac_cv_search_crypt" >&6; }
20239 ac_res=$ac_cv_search_crypt
20240 if test "$ac_res" != no; then :
20241 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20243 else
20245 as_fn_error $? "crypt library not found." "$LINENO" 5
20251 C_CLIENT_BUNDLED=$alpine_c_client_bundled
20254 if test "x$alpine_GSSTYPE" != "xnone" ; then
20255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gss_init_sec_context" >&5
20256 $as_echo_n "checking for library containing gss_init_sec_context... " >&6; }
20257 if ${ac_cv_search_gss_init_sec_context+:} false; then :
20258 $as_echo_n "(cached) " >&6
20259 else
20260 ac_func_search_save_LIBS=$LIBS
20261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20262 /* end confdefs.h. */
20264 /* Override any GCC internal prototype to avoid an error.
20265 Use char because int might match the return type of a GCC
20266 builtin and then its argument prototype would still apply. */
20267 #ifdef __cplusplus
20268 extern "C"
20269 #endif
20270 char gss_init_sec_context ();
20272 main ()
20274 return gss_init_sec_context ();
20276 return 0;
20278 _ACEOF
20279 for ac_lib in '' gss gssapi gssapi_krb5; do
20280 if test -z "$ac_lib"; then
20281 ac_res="none required"
20282 else
20283 ac_res=-l$ac_lib
20284 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20286 if ac_fn_c_try_link "$LINENO"; then :
20287 ac_cv_search_gss_init_sec_context=$ac_res
20289 rm -f core conftest.err conftest.$ac_objext \
20290 conftest$ac_exeext
20291 if ${ac_cv_search_gss_init_sec_context+:} false; then :
20292 break
20294 done
20295 if ${ac_cv_search_gss_init_sec_context+:} false; then :
20297 else
20298 ac_cv_search_gss_init_sec_context=no
20300 rm conftest.$ac_ext
20301 LIBS=$ac_func_search_save_LIBS
20303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gss_init_sec_context" >&5
20304 $as_echo "$ac_cv_search_gss_init_sec_context" >&6; }
20305 ac_res=$ac_cv_search_gss_init_sec_context
20306 if test "$ac_res" != no; then :
20307 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20309 LIBS="$LIBS -lkrb5"
20310 ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi_generic.h" "ac_cv_header_gssapi_gssapi_generic_h" "$ac_includes_default"
20311 if test "x$ac_cv_header_gssapi_gssapi_generic_h" = xyes; then :
20313 else
20315 if test ! -d /usr/kerberos/include ; then
20316 alpine_GSSTYPE="none"
20317 alpine_gss_none_reason="header files not found"
20324 else
20326 alpine_GSSTYPE="none"
20327 alpine_gss_none_reason="libraries not found"
20331 if test -n "$alpine_gss_none_reason" ; then
20332 { $as_echo "$as_me:${as_lineno-$LINENO}: NOT including Kerberos Support: $alpine_gss_none_reason" >&5
20333 $as_echo "$as_me: NOT including Kerberos Support: $alpine_gss_none_reason" >&6;}
20338 # Check whether --with-ntlm was given.
20339 if test "${with_ntlm+set}" = set; then :
20340 withval=$with_ntlm; with_ntlm=$withval
20344 if test "x$with_ntlm" = "xno" ; then
20345 alpine_NTLM="none"
20346 else
20347 alpine_NTLM=
20349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing buildSmbNtlmAuthRequest" >&5
20350 $as_echo_n "checking for library containing buildSmbNtlmAuthRequest... " >&6; }
20351 if ${ac_cv_search_buildSmbNtlmAuthRequest+:} false; then :
20352 $as_echo_n "(cached) " >&6
20353 else
20354 ac_func_search_save_LIBS=$LIBS
20355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20356 /* end confdefs.h. */
20358 /* Override any GCC internal prototype to avoid an error.
20359 Use char because int might match the return type of a GCC
20360 builtin and then its argument prototype would still apply. */
20361 #ifdef __cplusplus
20362 extern "C"
20363 #endif
20364 char buildSmbNtlmAuthRequest ();
20366 main ()
20368 return buildSmbNtlmAuthRequest ();
20370 return 0;
20372 _ACEOF
20373 for ac_lib in '' ntlm; do
20374 if test -z "$ac_lib"; then
20375 ac_res="none required"
20376 else
20377 ac_res=-l$ac_lib
20378 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20380 if ac_fn_c_try_link "$LINENO"; then :
20381 ac_cv_search_buildSmbNtlmAuthRequest=$ac_res
20383 rm -f core conftest.err conftest.$ac_objext \
20384 conftest$ac_exeext
20385 if ${ac_cv_search_buildSmbNtlmAuthRequest+:} false; then :
20386 break
20388 done
20389 if ${ac_cv_search_buildSmbNtlmAuthRequest+:} false; then :
20391 else
20392 ac_cv_search_buildSmbNtlmAuthRequest=no
20394 rm conftest.$ac_ext
20395 LIBS=$ac_func_search_save_LIBS
20397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_buildSmbNtlmAuthRequest" >&5
20398 $as_echo "$ac_cv_search_buildSmbNtlmAuthRequest" >&6; }
20399 ac_res=$ac_cv_search_buildSmbNtlmAuthRequest
20400 if test "$ac_res" != no; then :
20401 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20403 ac_fn_c_check_header_mongrel "$LINENO" "ntlm.h" "ac_cv_header_ntlm_h" "$ac_includes_default"
20404 if test "x$ac_cv_header_ntlm_h" = xyes; then :
20406 extra_auth_ntlm=ntl
20407 { $as_echo "$as_me:${as_lineno-$LINENO}: including NTLM support" >&5
20408 $as_echo "$as_me: including NTLM support" >&6;}
20410 else
20412 alpine_NTLM="none"
20413 alpine_ntlm_none_reason="header file ntlm.h not found"
20419 else
20421 alpine_NTLM="none"
20422 alpine_ntlm_none_reason="ntlm library not found"
20426 if test -n "$alpine_ntlm_none_reason" ; then
20427 { $as_echo "$as_me:${as_lineno-$LINENO}: NOT including NTLM Support: $alpine_ntlm_none_reason" >&5
20428 $as_echo "$as_me: NOT including NTLM Support: $alpine_ntlm_none_reason" >&6;}
20432 if test -n "$WEB_BUILD" ; then
20433 TCL_VERSIONS_DOT="tcl8.6 tcl8.5 tcl8.4 tcl8.3"
20434 TCL_VERSIONS_NODOT="`echo ${TCL_VERSIONS_DOT} | ${SED} 's/\.//g'`"
20435 TCL_VERSIONS="${TCL_VERSIONS_DOT} ${TCL_VERSIONS_NODOT} tcl"
20436 if test -n "$alpine_TCLINC" ; then
20437 as_ac_Header=`$as_echo "ac_cv_header_$alpine_TCLINC/tcl.h" | $as_tr_sh`
20438 ac_fn_c_check_header_mongrel "$LINENO" "$alpine_TCLINC/tcl.h" "$as_ac_Header" "$ac_includes_default"
20439 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20441 else
20443 WEB_BUILD=
20448 if test -z "$WEB_BUILD" ; then
20449 { $as_echo "$as_me:${as_lineno-$LINENO}: Tcl Include file NOT found" >&5
20450 $as_echo "$as_me: Tcl Include file NOT found" >&6;}
20452 else
20453 ac_fn_c_check_header_mongrel "$LINENO" "tcl.h" "ac_cv_header_tcl_h" "$ac_includes_default"
20454 if test "x$ac_cv_header_tcl_h" = xyes; then :
20456 else
20458 for base in /usr /usr/local ; do
20459 for dir in ${TCL_VERSIONS} ; do
20460 if test -f $base/include/$dir/tcl.h ; then
20461 CPPFLAGS="$CPPFLAGS -I$base/include/$dir"
20462 found=yes
20463 break
20465 done
20466 if test "x$found" = "xyes" ; then
20467 break
20469 done
20470 if test "$found" != "yes" ; then
20471 WEB_BUILD=
20472 { $as_echo "$as_me:${as_lineno-$LINENO}: header file tcl.h NOT found: Web Alpine will not be built" >&5
20473 $as_echo "$as_me: header file tcl.h NOT found: Web Alpine will not be built" >&6;}
20480 if test -n "$WEB_BUILD" ; then
20481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing Tcl_Eval" >&5
20482 $as_echo_n "checking for library containing Tcl_Eval... " >&6; }
20483 if ${ac_cv_search_Tcl_Eval+:} false; then :
20484 $as_echo_n "(cached) " >&6
20485 else
20486 ac_func_search_save_LIBS=$LIBS
20487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20488 /* end confdefs.h. */
20490 /* Override any GCC internal prototype to avoid an error.
20491 Use char because int might match the return type of a GCC
20492 builtin and then its argument prototype would still apply. */
20493 #ifdef __cplusplus
20494 extern "C"
20495 #endif
20496 char Tcl_Eval ();
20498 main ()
20500 return Tcl_Eval ();
20502 return 0;
20504 _ACEOF
20505 for ac_lib in '' $alpine_TCLLIB ${TCL_VERSIONS}; do
20506 if test -z "$ac_lib"; then
20507 ac_res="none required"
20508 else
20509 ac_res=-l$ac_lib
20510 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20512 if ac_fn_c_try_link "$LINENO"; then :
20513 ac_cv_search_Tcl_Eval=$ac_res
20515 rm -f core conftest.err conftest.$ac_objext \
20516 conftest$ac_exeext
20517 if ${ac_cv_search_Tcl_Eval+:} false; then :
20518 break
20520 done
20521 if ${ac_cv_search_Tcl_Eval+:} false; then :
20523 else
20524 ac_cv_search_Tcl_Eval=no
20526 rm conftest.$ac_ext
20527 LIBS=$ac_func_search_save_LIBS
20529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_Tcl_Eval" >&5
20530 $as_echo "$ac_cv_search_Tcl_Eval" >&6; }
20531 ac_res=$ac_cv_search_Tcl_Eval
20532 if test "$ac_res" != no; then :
20533 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20535 else
20537 WEB_BUILD=
20544 if test "x$alpine_REGEX" != "xyes" ; then
20545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing regcomp" >&5
20546 $as_echo_n "checking for library containing regcomp... " >&6; }
20547 if ${ac_cv_search_regcomp+:} false; then :
20548 $as_echo_n "(cached) " >&6
20549 else
20550 ac_func_search_save_LIBS=$LIBS
20551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20552 /* end confdefs.h. */
20554 /* Override any GCC internal prototype to avoid an error.
20555 Use char because int might match the return type of a GCC
20556 builtin and then its argument prototype would still apply. */
20557 #ifdef __cplusplus
20558 extern "C"
20559 #endif
20560 char regcomp ();
20562 main ()
20564 return regcomp ();
20566 return 0;
20568 _ACEOF
20569 for ac_lib in '' posix regexp regex re; do
20570 if test -z "$ac_lib"; then
20571 ac_res="none required"
20572 else
20573 ac_res=-l$ac_lib
20574 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20576 if ac_fn_c_try_link "$LINENO"; then :
20577 ac_cv_search_regcomp=$ac_res
20579 rm -f core conftest.err conftest.$ac_objext \
20580 conftest$ac_exeext
20581 if ${ac_cv_search_regcomp+:} false; then :
20582 break
20584 done
20585 if ${ac_cv_search_regcomp+:} false; then :
20587 else
20588 ac_cv_search_regcomp=no
20590 rm conftest.$ac_ext
20591 LIBS=$ac_func_search_save_LIBS
20593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_regcomp" >&5
20594 $as_echo "$ac_cv_search_regcomp" >&6; }
20595 ac_res=$ac_cv_search_regcomp
20596 if test "$ac_res" != no; then :
20597 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20599 else
20601 if test x$alpine_REGEX = "xno" ; then
20602 as_fn_error $? "Unable to find system regex library" "$LINENO" 5
20603 else
20604 alpine_REGEX=yes
20610 if test "x$alpine_REGEX" != "xyes" ; then
20611 ac_fn_c_check_header_mongrel "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default"
20612 if test "x$ac_cv_header_regex_h" = xyes; then :
20614 else
20616 if test x$alpine_REGEX = "xno" ; then
20617 as_fn_error $? "Unable to find system regex include file" "$LINENO" 5
20618 else
20619 alpine_REGEX=yes
20627 $as_echo "#define HAVE_REGEX_H 1" >>confdefs.h
20629 if test "x$alpine_REGEX" = "xyes" ; then
20630 CPPFLAGS="$CPPFLAGS -I${top_builddir}/regex"
20631 LDFLAGS="$LDFLAGS -L${top_builddir}/regex"
20632 REGEX_BUILD=regex
20633 REGEX_MAKEFILE="$REGEX_BUILD/Makefile"
20636 if test "x$with_pthread" != "xno" ; then
20637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread support" >&5
20638 $as_echo_n "checking for pthread support... " >&6; }
20642 ac_ext=c
20643 ac_cpp='$CPP $CPPFLAGS'
20644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20648 acx_pthread_ok=no
20650 # We used to check for pthread.h first, but this fails if pthread.h
20651 # requires special compiler flags (e.g. on True64 or Sequent).
20652 # It gets checked for in the link test anyway.
20654 # First of all, check if the user has set any of the PTHREAD_LIBS,
20655 # etcetera environment variables, and if threads linking works using
20656 # them:
20657 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
20658 save_CFLAGS="$CFLAGS"
20659 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
20660 save_LIBS="$LIBS"
20661 LIBS="$PTHREAD_LIBS $LIBS"
20662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
20663 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
20664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20665 /* end confdefs.h. */
20667 /* Override any GCC internal prototype to avoid an error.
20668 Use char because int might match the return type of a GCC
20669 builtin and then its argument prototype would still apply. */
20670 #ifdef __cplusplus
20671 extern "C"
20672 #endif
20673 char pthread_join ();
20675 main ()
20677 return pthread_join ();
20679 return 0;
20681 _ACEOF
20682 if ac_fn_c_try_link "$LINENO"; then :
20683 acx_pthread_ok=yes
20685 rm -f core conftest.err conftest.$ac_objext \
20686 conftest$ac_exeext conftest.$ac_ext
20687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
20688 $as_echo "$acx_pthread_ok" >&6; }
20689 if test x"$acx_pthread_ok" = xno; then
20690 PTHREAD_LIBS=""
20691 PTHREAD_CFLAGS=""
20693 LIBS="$save_LIBS"
20694 CFLAGS="$save_CFLAGS"
20697 # We must check for the threads library under a number of different
20698 # names; the ordering is very important because some systems
20699 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
20700 # libraries is broken (non-POSIX).
20702 # Create a list of thread flags to try. Items starting with a "-" are
20703 # C compiler flags, and other items are library names, except for "none"
20704 # which indicates that we try without any flags at all, and "pthread-config"
20705 # which is a program returning the flags for the Pth emulation library.
20707 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
20709 # The ordering *is* (sometimes) important. Some notes on the
20710 # individual items follow:
20712 # pthreads: AIX (must check this before -lpthread)
20713 # none: in case threads are in libc; should be tried before -Kthread and
20714 # other compiler flags to prevent continual compiler warnings
20715 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
20716 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
20717 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
20718 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
20719 # -pthreads: Solaris/gcc
20720 # -mthreads: Mingw32/gcc, Lynx/gcc
20721 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
20722 # doesn't hurt to check since this sometimes defines pthreads too;
20723 # also defines -D_REENTRANT)
20724 # ... -mt is also the pthreads flag for HP/aCC
20725 # pthread: Linux, etcetera
20726 # --thread-safe: KAI C++
20727 # pthread-config: use pthread-config program (for GNU Pth library)
20729 case "${host_cpu}-${host_os}" in
20730 *solaris*)
20732 # On Solaris (at least, for some versions), libc contains stubbed
20733 # (non-functional) versions of the pthreads routines, so link-based
20734 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
20735 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
20736 # a function called by this macro, so we could check for that, but
20737 # who knows whether they'll stub that too in a future libc.) So,
20738 # we'll just look for -pthreads and -lpthread first:
20740 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
20742 esac
20744 if test x"$acx_pthread_ok" = xno; then
20745 for flag in $acx_pthread_flags; do
20747 case $flag in
20748 none)
20749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
20750 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
20754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
20755 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
20756 PTHREAD_CFLAGS="$flag"
20759 pthread-config)
20760 # Extract the first word of "pthread-config", so it can be a program name with args.
20761 set dummy pthread-config; ac_word=$2
20762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20763 $as_echo_n "checking for $ac_word... " >&6; }
20764 if ${ac_cv_prog_acx_pthread_config+:} false; then :
20765 $as_echo_n "(cached) " >&6
20766 else
20767 if test -n "$acx_pthread_config"; then
20768 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
20769 else
20770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20771 for as_dir in $PATH
20773 IFS=$as_save_IFS
20774 test -z "$as_dir" && as_dir=.
20775 for ac_exec_ext in '' $ac_executable_extensions; do
20776 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20777 ac_cv_prog_acx_pthread_config="yes"
20778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20779 break 2
20781 done
20782 done
20783 IFS=$as_save_IFS
20785 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
20788 acx_pthread_config=$ac_cv_prog_acx_pthread_config
20789 if test -n "$acx_pthread_config"; then
20790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
20791 $as_echo "$acx_pthread_config" >&6; }
20792 else
20793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20794 $as_echo "no" >&6; }
20798 if test x"$acx_pthread_config" = xno; then continue; fi
20799 PTHREAD_CFLAGS="`pthread-config --cflags`"
20800 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
20804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
20805 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
20806 PTHREAD_LIBS="-l$flag"
20808 esac
20810 save_LIBS="$LIBS"
20811 save_CFLAGS="$CFLAGS"
20812 LIBS="$PTHREAD_LIBS $LIBS"
20813 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
20815 # Check for various functions. We must include pthread.h,
20816 # since some functions may be macros. (On the Sequent, we
20817 # need a special flag -Kthread to make this header compile.)
20818 # We check for pthread_join because it is in -lpthread on IRIX
20819 # while pthread_create is in libc. We check for pthread_attr_init
20820 # due to DEC craziness with -lpthreads. We check for
20821 # pthread_cleanup_push because it is one of the few pthread
20822 # functions on Solaris that doesn't have a non-functional libc stub.
20823 # We try pthread_create on general principles.
20824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20825 /* end confdefs.h. */
20826 #include <pthread.h>
20828 main ()
20830 pthread_t th; pthread_join(th, 0);
20831 pthread_attr_init(0); pthread_cleanup_push(0, 0);
20832 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
20834 return 0;
20836 _ACEOF
20837 if ac_fn_c_try_link "$LINENO"; then :
20838 acx_pthread_ok=yes
20840 rm -f core conftest.err conftest.$ac_objext \
20841 conftest$ac_exeext conftest.$ac_ext
20843 LIBS="$save_LIBS"
20844 CFLAGS="$save_CFLAGS"
20846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
20847 $as_echo "$acx_pthread_ok" >&6; }
20848 if test "x$acx_pthread_ok" = xyes; then
20849 break;
20852 PTHREAD_LIBS=""
20853 PTHREAD_CFLAGS=""
20854 done
20857 # Various other checks:
20858 if test "x$acx_pthread_ok" = xyes; then
20859 save_LIBS="$LIBS"
20860 LIBS="$PTHREAD_LIBS $LIBS"
20861 save_CFLAGS="$CFLAGS"
20862 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
20864 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
20865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
20866 $as_echo_n "checking for joinable pthread attribute... " >&6; }
20867 attr_name=unknown
20868 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
20869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20870 /* end confdefs.h. */
20871 #include <pthread.h>
20873 main ()
20875 int attr=$attr; return attr;
20877 return 0;
20879 _ACEOF
20880 if ac_fn_c_try_link "$LINENO"; then :
20881 attr_name=$attr; break
20883 rm -f core conftest.err conftest.$ac_objext \
20884 conftest$ac_exeext conftest.$ac_ext
20885 done
20886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
20887 $as_echo "$attr_name" >&6; }
20888 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
20890 cat >>confdefs.h <<_ACEOF
20891 #define PTHREAD_CREATE_JOINABLE $attr_name
20892 _ACEOF
20896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
20897 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
20898 flag=no
20899 case "${host_cpu}-${host_os}" in
20900 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
20901 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
20902 esac
20903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
20904 $as_echo "${flag}" >&6; }
20905 if test "x$flag" != xno; then
20906 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
20909 LIBS="$save_LIBS"
20910 CFLAGS="$save_CFLAGS"
20912 # More AIX lossage: must compile with xlc_r or cc_r
20913 if test x"$GCC" != xyes; then
20914 for ac_prog in xlc_r cc_r
20916 # Extract the first word of "$ac_prog", so it can be a program name with args.
20917 set dummy $ac_prog; ac_word=$2
20918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20919 $as_echo_n "checking for $ac_word... " >&6; }
20920 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
20921 $as_echo_n "(cached) " >&6
20922 else
20923 if test -n "$PTHREAD_CC"; then
20924 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
20925 else
20926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20927 for as_dir in $PATH
20929 IFS=$as_save_IFS
20930 test -z "$as_dir" && as_dir=.
20931 for ac_exec_ext in '' $ac_executable_extensions; do
20932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20933 ac_cv_prog_PTHREAD_CC="$ac_prog"
20934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20935 break 2
20937 done
20938 done
20939 IFS=$as_save_IFS
20943 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
20944 if test -n "$PTHREAD_CC"; then
20945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
20946 $as_echo "$PTHREAD_CC" >&6; }
20947 else
20948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20949 $as_echo "no" >&6; }
20953 test -n "$PTHREAD_CC" && break
20954 done
20955 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
20957 else
20958 PTHREAD_CC=$CC
20960 else
20961 PTHREAD_CC="$CC"
20968 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
20969 if test x"$acx_pthread_ok" = xyes; then
20971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20972 $as_echo "yes" >&6; }
20973 case "$target" in
20974 *openbsd*)
20975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pthread support on OpenBSD is unstable!" >&5
20976 $as_echo "$as_me: WARNING: pthread support on OpenBSD is unstable!" >&6;}
20977 AM_CFLAGS="$AM_CFLAGS -pthread"
20979 esac
20980 LIBS="$PTHREAD_LIBS $LIBS"
20981 AM_CFLAGS="$AM_CFLAGS $PTHREAD_CFLAGS"
20982 CC="$PTHREAD_CC"
20984 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
20988 else
20989 acx_pthread_ok=no
20991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20992 $as_echo "no" >&6; }
20995 ac_ext=c
20996 ac_cpp='$CPP $CPPFLAGS'
20997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
21004 $as_echo_n "checking for library containing nanosleep... " >&6; }
21005 if ${ac_cv_search_nanosleep+:} false; then :
21006 $as_echo_n "(cached) " >&6
21007 else
21008 ac_func_search_save_LIBS=$LIBS
21009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21010 /* end confdefs.h. */
21012 /* Override any GCC internal prototype to avoid an error.
21013 Use char because int might match the return type of a GCC
21014 builtin and then its argument prototype would still apply. */
21015 #ifdef __cplusplus
21016 extern "C"
21017 #endif
21018 char nanosleep ();
21020 main ()
21022 return nanosleep ();
21024 return 0;
21026 _ACEOF
21027 for ac_lib in '' rt posix4; do
21028 if test -z "$ac_lib"; then
21029 ac_res="none required"
21030 else
21031 ac_res=-l$ac_lib
21032 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21034 if ac_fn_c_try_link "$LINENO"; then :
21035 ac_cv_search_nanosleep=$ac_res
21037 rm -f core conftest.err conftest.$ac_objext \
21038 conftest$ac_exeext
21039 if ${ac_cv_search_nanosleep+:} false; then :
21040 break
21042 done
21043 if ${ac_cv_search_nanosleep+:} false; then :
21045 else
21046 ac_cv_search_nanosleep=no
21048 rm conftest.$ac_ext
21049 LIBS=$ac_func_search_save_LIBS
21051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
21052 $as_echo "$ac_cv_search_nanosleep" >&6; }
21053 ac_res=$ac_cv_search_nanosleep
21054 if test "$ac_res" != no; then :
21055 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21058 $as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h
21068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
21069 $as_echo_n "checking for ANSI C header files... " >&6; }
21070 if ${ac_cv_header_stdc+:} false; then :
21071 $as_echo_n "(cached) " >&6
21072 else
21073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21074 /* end confdefs.h. */
21075 #include <stdlib.h>
21076 #include <stdarg.h>
21077 #include <string.h>
21078 #include <float.h>
21081 main ()
21085 return 0;
21087 _ACEOF
21088 if ac_fn_c_try_compile "$LINENO"; then :
21089 ac_cv_header_stdc=yes
21090 else
21091 ac_cv_header_stdc=no
21093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21095 if test $ac_cv_header_stdc = yes; then
21096 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21098 /* end confdefs.h. */
21099 #include <string.h>
21101 _ACEOF
21102 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21103 $EGREP "memchr" >/dev/null 2>&1; then :
21105 else
21106 ac_cv_header_stdc=no
21108 rm -f conftest*
21112 if test $ac_cv_header_stdc = yes; then
21113 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21115 /* end confdefs.h. */
21116 #include <stdlib.h>
21118 _ACEOF
21119 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21120 $EGREP "free" >/dev/null 2>&1; then :
21122 else
21123 ac_cv_header_stdc=no
21125 rm -f conftest*
21129 if test $ac_cv_header_stdc = yes; then
21130 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21131 if test "$cross_compiling" = yes; then :
21133 else
21134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21135 /* end confdefs.h. */
21136 #include <ctype.h>
21137 #include <stdlib.h>
21138 #if ((' ' & 0x0FF) == 0x020)
21139 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21140 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21141 #else
21142 # define ISLOWER(c) \
21143 (('a' <= (c) && (c) <= 'i') \
21144 || ('j' <= (c) && (c) <= 'r') \
21145 || ('s' <= (c) && (c) <= 'z'))
21146 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21147 #endif
21149 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21151 main ()
21153 int i;
21154 for (i = 0; i < 256; i++)
21155 if (XOR (islower (i), ISLOWER (i))
21156 || toupper (i) != TOUPPER (i))
21157 return 2;
21158 return 0;
21160 _ACEOF
21161 if ac_fn_c_try_run "$LINENO"; then :
21163 else
21164 ac_cv_header_stdc=no
21166 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21167 conftest.$ac_objext conftest.beam conftest.$ac_ext
21172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
21173 $as_echo "$ac_cv_header_stdc" >&6; }
21174 if test $ac_cv_header_stdc = yes; then
21176 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
21180 ac_header_dirent=no
21181 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21182 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
21183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
21184 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
21185 if eval \${$as_ac_Header+:} false; then :
21186 $as_echo_n "(cached) " >&6
21187 else
21188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21189 /* end confdefs.h. */
21190 #include <sys/types.h>
21191 #include <$ac_hdr>
21194 main ()
21196 if ((DIR *) 0)
21197 return 0;
21199 return 0;
21201 _ACEOF
21202 if ac_fn_c_try_compile "$LINENO"; then :
21203 eval "$as_ac_Header=yes"
21204 else
21205 eval "$as_ac_Header=no"
21207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21209 eval ac_res=\$$as_ac_Header
21210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21211 $as_echo "$ac_res" >&6; }
21212 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21213 cat >>confdefs.h <<_ACEOF
21214 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21215 _ACEOF
21217 ac_header_dirent=$ac_hdr; break
21220 done
21221 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21222 if test $ac_header_dirent = dirent.h; then
21223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
21224 $as_echo_n "checking for library containing opendir... " >&6; }
21225 if ${ac_cv_search_opendir+:} false; then :
21226 $as_echo_n "(cached) " >&6
21227 else
21228 ac_func_search_save_LIBS=$LIBS
21229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21230 /* end confdefs.h. */
21232 /* Override any GCC internal prototype to avoid an error.
21233 Use char because int might match the return type of a GCC
21234 builtin and then its argument prototype would still apply. */
21235 #ifdef __cplusplus
21236 extern "C"
21237 #endif
21238 char opendir ();
21240 main ()
21242 return opendir ();
21244 return 0;
21246 _ACEOF
21247 for ac_lib in '' dir; do
21248 if test -z "$ac_lib"; then
21249 ac_res="none required"
21250 else
21251 ac_res=-l$ac_lib
21252 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21254 if ac_fn_c_try_link "$LINENO"; then :
21255 ac_cv_search_opendir=$ac_res
21257 rm -f core conftest.err conftest.$ac_objext \
21258 conftest$ac_exeext
21259 if ${ac_cv_search_opendir+:} false; then :
21260 break
21262 done
21263 if ${ac_cv_search_opendir+:} false; then :
21265 else
21266 ac_cv_search_opendir=no
21268 rm conftest.$ac_ext
21269 LIBS=$ac_func_search_save_LIBS
21271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
21272 $as_echo "$ac_cv_search_opendir" >&6; }
21273 ac_res=$ac_cv_search_opendir
21274 if test "$ac_res" != no; then :
21275 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21279 else
21280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
21281 $as_echo_n "checking for library containing opendir... " >&6; }
21282 if ${ac_cv_search_opendir+:} false; then :
21283 $as_echo_n "(cached) " >&6
21284 else
21285 ac_func_search_save_LIBS=$LIBS
21286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21287 /* end confdefs.h. */
21289 /* Override any GCC internal prototype to avoid an error.
21290 Use char because int might match the return type of a GCC
21291 builtin and then its argument prototype would still apply. */
21292 #ifdef __cplusplus
21293 extern "C"
21294 #endif
21295 char opendir ();
21297 main ()
21299 return opendir ();
21301 return 0;
21303 _ACEOF
21304 for ac_lib in '' x; do
21305 if test -z "$ac_lib"; then
21306 ac_res="none required"
21307 else
21308 ac_res=-l$ac_lib
21309 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21311 if ac_fn_c_try_link "$LINENO"; then :
21312 ac_cv_search_opendir=$ac_res
21314 rm -f core conftest.err conftest.$ac_objext \
21315 conftest$ac_exeext
21316 if ${ac_cv_search_opendir+:} false; then :
21317 break
21319 done
21320 if ${ac_cv_search_opendir+:} false; then :
21322 else
21323 ac_cv_search_opendir=no
21325 rm conftest.$ac_ext
21326 LIBS=$ac_func_search_save_LIBS
21328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
21329 $as_echo "$ac_cv_search_opendir" >&6; }
21330 ac_res=$ac_cv_search_opendir
21331 if test "$ac_res" != no; then :
21332 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
21339 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
21340 if ${ac_cv_header_stat_broken+:} false; then :
21341 $as_echo_n "(cached) " >&6
21342 else
21343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21344 /* end confdefs.h. */
21345 #include <sys/types.h>
21346 #include <sys/stat.h>
21348 #if defined S_ISBLK && defined S_IFDIR
21349 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21350 #endif
21352 #if defined S_ISBLK && defined S_IFCHR
21353 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21354 #endif
21356 #if defined S_ISLNK && defined S_IFREG
21357 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21358 #endif
21360 #if defined S_ISSOCK && defined S_IFREG
21361 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
21362 #endif
21364 _ACEOF
21365 if ac_fn_c_try_compile "$LINENO"; then :
21366 ac_cv_header_stat_broken=no
21367 else
21368 ac_cv_header_stat_broken=yes
21370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
21373 $as_echo "$ac_cv_header_stat_broken" >&6; }
21374 if test $ac_cv_header_stat_broken = yes; then
21376 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
21380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
21381 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
21382 if ${ac_cv_header_sys_wait_h+:} false; then :
21383 $as_echo_n "(cached) " >&6
21384 else
21385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21386 /* end confdefs.h. */
21387 #include <sys/types.h>
21388 #include <sys/wait.h>
21389 #ifndef WEXITSTATUS
21390 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
21391 #endif
21392 #ifndef WIFEXITED
21393 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
21394 #endif
21397 main ()
21399 int s;
21400 wait (&s);
21401 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
21403 return 0;
21405 _ACEOF
21406 if ac_fn_c_try_compile "$LINENO"; then :
21407 ac_cv_header_sys_wait_h=yes
21408 else
21409 ac_cv_header_sys_wait_h=no
21411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
21414 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
21415 if test $ac_cv_header_sys_wait_h = yes; then
21417 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
21421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
21422 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
21423 if ${ac_cv_header_time+:} false; then :
21424 $as_echo_n "(cached) " >&6
21425 else
21426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21427 /* end confdefs.h. */
21428 #include <sys/types.h>
21429 #include <sys/time.h>
21430 #include <time.h>
21433 main ()
21435 if ((struct tm *) 0)
21436 return 0;
21438 return 0;
21440 _ACEOF
21441 if ac_fn_c_try_compile "$LINENO"; then :
21442 ac_cv_header_time=yes
21443 else
21444 ac_cv_header_time=no
21446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
21449 $as_echo "$ac_cv_header_time" >&6; }
21450 if test $ac_cv_header_time = yes; then
21452 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
21456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
21457 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
21458 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false; then :
21459 $as_echo_n "(cached) " >&6
21460 else
21461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21462 /* end confdefs.h. */
21463 #include <sys/types.h>
21464 #include <termios.h>
21465 #ifdef TIOCGWINSZ
21467 #endif
21469 _ACEOF
21470 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21471 $EGREP "yes" >/dev/null 2>&1; then :
21472 ac_cv_sys_tiocgwinsz_in_termios_h=yes
21473 else
21474 ac_cv_sys_tiocgwinsz_in_termios_h=no
21476 rm -f conftest*
21479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
21480 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
21482 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
21483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
21484 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
21485 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false; then :
21486 $as_echo_n "(cached) " >&6
21487 else
21488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21489 /* end confdefs.h. */
21490 #include <sys/types.h>
21491 #include <sys/ioctl.h>
21492 #ifdef TIOCGWINSZ
21494 #endif
21496 _ACEOF
21497 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21498 $EGREP "yes" >/dev/null 2>&1; then :
21499 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
21500 else
21501 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
21503 rm -f conftest*
21506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
21507 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
21509 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
21511 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
21517 for ac_header in unistd.h
21518 do :
21519 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
21520 if test "x$ac_cv_header_unistd_h" = xyes; then :
21521 cat >>confdefs.h <<_ACEOF
21522 #define HAVE_UNISTD_H 1
21523 _ACEOF
21527 done
21530 for ac_header in errno.h \
21531 ctype.h \
21532 fcntl.h \
21533 signal.h \
21534 setjmp.h \
21535 memory.h \
21536 sys/ioctl.h \
21537 sys/param.h \
21538 sys/socket.h \
21539 sys/uio.h \
21540 sys/un.h \
21541 limits.h \
21542 wchar.h \
21543 sys/poll.h \
21544 stropts.h \
21545 netdb.h \
21546 syslog.h \
21547 sys/syslog.h \
21548 locale.h \
21549 langinfo.h \
21550 utime.h \
21551 sys/utime.h \
21552 pthread.h \
21553 pwd.h \
21554 assert.h
21555 do :
21556 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21557 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21558 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21559 cat >>confdefs.h <<_ACEOF
21560 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21561 _ACEOF
21565 done
21568 ac_fn_c_check_header_mongrel "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default"
21569 if test "x$ac_cv_header_termios_h" = xyes; then :
21571 $as_echo "#define HAS_TERMIOS 1" >>confdefs.h
21573 else
21575 ac_fn_c_check_header_mongrel "$LINENO" "termio.h" "ac_cv_header_termio_h" "$ac_includes_default"
21576 if test "x$ac_cv_header_termio_h" = xyes; then :
21578 $as_echo "#define HAS_TERMIO 1" >>confdefs.h
21580 else
21582 ac_fn_c_check_header_mongrel "$LINENO" "sgtty.h" "ac_cv_header_sgtty_h" "$ac_includes_default"
21583 if test "x$ac_cv_header_sgtty_h" = xyes; then :
21585 $as_echo "#define HAS_SGTTY 1" >>confdefs.h
21587 else
21589 as_fn_error $? "Unable to figure out terminal control method" "$LINENO" 5
21605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
21606 $as_echo_n "checking return type of signal handlers... " >&6; }
21607 if ${ac_cv_type_signal+:} false; then :
21608 $as_echo_n "(cached) " >&6
21609 else
21610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21611 /* end confdefs.h. */
21612 #include <sys/types.h>
21613 #include <signal.h>
21616 main ()
21618 return *(signal (0, 0)) (0) == 1;
21620 return 0;
21622 _ACEOF
21623 if ac_fn_c_try_compile "$LINENO"; then :
21624 ac_cv_type_signal=int
21625 else
21626 ac_cv_type_signal=void
21628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
21631 $as_echo "$ac_cv_type_signal" >&6; }
21633 cat >>confdefs.h <<_ACEOF
21634 #define RETSIGTYPE $ac_cv_type_signal
21635 _ACEOF
21638 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
21639 if test "x$ac_cv_type_size_t" = xyes; then :
21641 else
21643 cat >>confdefs.h <<_ACEOF
21644 #define size_t unsigned int
21645 _ACEOF
21649 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
21650 if test "x$ac_cv_type_mode_t" = xyes; then :
21652 else
21654 cat >>confdefs.h <<_ACEOF
21655 #define mode_t int
21656 _ACEOF
21660 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
21661 if test "x$ac_cv_type_pid_t" = xyes; then :
21663 else
21665 cat >>confdefs.h <<_ACEOF
21666 #define pid_t int
21667 _ACEOF
21671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
21672 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
21673 if ${ac_cv_type_uid_t+:} false; then :
21674 $as_echo_n "(cached) " >&6
21675 else
21676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21677 /* end confdefs.h. */
21678 #include <sys/types.h>
21680 _ACEOF
21681 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21682 $EGREP "uid_t" >/dev/null 2>&1; then :
21683 ac_cv_type_uid_t=yes
21684 else
21685 ac_cv_type_uid_t=no
21687 rm -f conftest*
21690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
21691 $as_echo "$ac_cv_type_uid_t" >&6; }
21692 if test $ac_cv_type_uid_t = no; then
21694 $as_echo "#define uid_t int" >>confdefs.h
21697 $as_echo "#define gid_t int" >>confdefs.h
21701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
21702 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
21703 if ${ac_cv_struct_tm+:} false; then :
21704 $as_echo_n "(cached) " >&6
21705 else
21706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21707 /* end confdefs.h. */
21708 #include <sys/types.h>
21709 #include <time.h>
21712 main ()
21714 struct tm tm;
21715 int *p = &tm.tm_sec;
21716 return !p;
21718 return 0;
21720 _ACEOF
21721 if ac_fn_c_try_compile "$LINENO"; then :
21722 ac_cv_struct_tm=time.h
21723 else
21724 ac_cv_struct_tm=sys/time.h
21726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
21729 $as_echo "$ac_cv_struct_tm" >&6; }
21730 if test $ac_cv_struct_tm = sys/time.h; then
21732 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
21737 ac_fn_c_check_type "$LINENO" "union wait" "ac_cv_type_union_wait" "$ac_includes_default"
21738 if test "x$ac_cv_type_union_wait" = xyes; then :
21740 cat >>confdefs.h <<_ACEOF
21741 #define HAVE_UNION_WAIT 1
21742 _ACEOF
21748 for ac_header in stdint.h
21749 do :
21750 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
21751 if test "x$ac_cv_header_stdint_h" = xyes; then :
21752 cat >>confdefs.h <<_ACEOF
21753 #define HAVE_STDINT_H 1
21754 _ACEOF
21755 uint16=uint16_t
21756 else
21758 for ac_header in inttypes.h
21759 do :
21760 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
21761 if test "x$ac_cv_header_inttypes_h" = xyes; then :
21762 cat >>confdefs.h <<_ACEOF
21763 #define HAVE_INTTYPES_H 1
21764 _ACEOF
21765 uint16=uint16_t
21766 else
21768 for ac_header in sys/types.h
21769 do :
21770 ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
21771 if test "x$ac_cv_header_sys_types_h" = xyes; then :
21772 cat >>confdefs.h <<_ACEOF
21773 #define HAVE_SYS_TYPES_H 1
21774 _ACEOF
21775 uint16=u_int16_t
21776 else
21778 # The cast to long int works around a bug in the HP C Compiler
21779 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21780 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21781 # This bug is HP SR number 8606223364.
21782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
21783 $as_echo_n "checking size of unsigned short... " >&6; }
21784 if ${ac_cv_sizeof_unsigned_short+:} false; then :
21785 $as_echo_n "(cached) " >&6
21786 else
21787 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short" "$ac_includes_default"; then :
21789 else
21790 if test "$ac_cv_type_unsigned_short" = yes; then
21791 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21792 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21793 as_fn_error 77 "cannot compute sizeof (unsigned short)
21794 See \`config.log' for more details" "$LINENO" 5; }
21795 else
21796 ac_cv_sizeof_unsigned_short=0
21801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
21802 $as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
21806 cat >>confdefs.h <<_ACEOF
21807 #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
21808 _ACEOF
21811 if test $ac_cv_sizeof_unsigned_short -eq 2 ; then
21812 uint16="unsigned short"
21813 else
21814 # The cast to long int works around a bug in the HP C Compiler
21815 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21816 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21817 # This bug is HP SR number 8606223364.
21818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
21819 $as_echo_n "checking size of unsigned int... " >&6; }
21820 if ${ac_cv_sizeof_unsigned_int+:} false; then :
21821 $as_echo_n "(cached) " >&6
21822 else
21823 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
21825 else
21826 if test "$ac_cv_type_unsigned_int" = yes; then
21827 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21828 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21829 as_fn_error 77 "cannot compute sizeof (unsigned int)
21830 See \`config.log' for more details" "$LINENO" 5; }
21831 else
21832 ac_cv_sizeof_unsigned_int=0
21837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
21838 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
21842 cat >>confdefs.h <<_ACEOF
21843 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
21844 _ACEOF
21847 if $ac_cv_sizeof_unsigned_int -eq 2 ; then
21848 uint16="unsigned int"
21849 else
21850 as_fn_error $? "Unable to determine 16 bit integer type" "$LINENO" 5
21856 done
21861 done
21866 done
21869 cat >>confdefs.h <<_ACEOF
21870 #define UINT16 $uint16
21871 _ACEOF
21874 for ac_header in stdint.h
21875 do :
21876 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
21877 if test "x$ac_cv_header_stdint_h" = xyes; then :
21878 cat >>confdefs.h <<_ACEOF
21879 #define HAVE_STDINT_H 1
21880 _ACEOF
21881 uint32=uint32_t
21882 else
21884 for ac_header in inttypes.h
21885 do :
21886 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
21887 if test "x$ac_cv_header_inttypes_h" = xyes; then :
21888 cat >>confdefs.h <<_ACEOF
21889 #define HAVE_INTTYPES_H 1
21890 _ACEOF
21891 uint32=uint32_t
21892 else
21894 for ac_header in sys/types.h
21895 do :
21896 ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
21897 if test "x$ac_cv_header_sys_types_h" = xyes; then :
21898 cat >>confdefs.h <<_ACEOF
21899 #define HAVE_SYS_TYPES_H 1
21900 _ACEOF
21901 uint32=u_int32_t
21902 else
21904 # The cast to long int works around a bug in the HP C Compiler
21905 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21906 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21907 # This bug is HP SR number 8606223364.
21908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
21909 $as_echo_n "checking size of unsigned int... " >&6; }
21910 if ${ac_cv_sizeof_unsigned_int+:} false; then :
21911 $as_echo_n "(cached) " >&6
21912 else
21913 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
21915 else
21916 if test "$ac_cv_type_unsigned_int" = yes; then
21917 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21918 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21919 as_fn_error 77 "cannot compute sizeof (unsigned int)
21920 See \`config.log' for more details" "$LINENO" 5; }
21921 else
21922 ac_cv_sizeof_unsigned_int=0
21927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
21928 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
21932 cat >>confdefs.h <<_ACEOF
21933 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
21934 _ACEOF
21937 if test $ac_cv_sizeof_unsigned_int -eq 4 ; then
21938 uint32="unsigned int"
21939 else
21940 # The cast to long int works around a bug in the HP C Compiler
21941 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21942 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21943 # This bug is HP SR number 8606223364.
21944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
21945 $as_echo_n "checking size of unsigned long... " >&6; }
21946 if ${ac_cv_sizeof_unsigned_long+:} false; then :
21947 $as_echo_n "(cached) " >&6
21948 else
21949 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
21951 else
21952 if test "$ac_cv_type_unsigned_long" = yes; then
21953 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21954 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21955 as_fn_error 77 "cannot compute sizeof (unsigned long)
21956 See \`config.log' for more details" "$LINENO" 5; }
21957 else
21958 ac_cv_sizeof_unsigned_long=0
21963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
21964 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
21968 cat >>confdefs.h <<_ACEOF
21969 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
21970 _ACEOF
21973 if $ac_cv_sizeof_unsigned_long -eq 4 ; then
21974 uint32="unsigned long"
21975 else
21976 as_fn_error $? "Unable to determine 32 bit integer type" "$LINENO" 5
21982 done
21987 done
21992 done
21995 cat >>confdefs.h <<_ACEOF
21996 #define UINT32 $uint32
21997 _ACEOF
22000 if test -z "$SUINT32" ; then
22001 SUINT32="$uint32"
22005 cat >>confdefs.h <<_ACEOF
22006 #define SUINT32 $SUINT32
22007 _ACEOF
22010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking argument pointer type of qsort compare function and base" >&5
22011 $as_echo_n "checking argument pointer type of qsort compare function and base... " >&6; }
22012 if ${ac_cv_func_qsort_argtype+:} false; then :
22013 $as_echo_n "(cached) " >&6
22014 else
22015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22016 /* end confdefs.h. */
22018 #if HAVE_STDLIB_H
22019 #include "stdlib.h"
22020 #endif
22022 extern void *base;
22023 extern sortf(const void *, const void *);
22024 int sortf(a, b)
22025 const void *a;
22026 const void *b; { return 0; }
22029 main ()
22032 qsort(base, 2, sizeof(char *), sortf);
22035 return 0;
22037 _ACEOF
22038 if ac_fn_c_try_compile "$LINENO"; then :
22039 ac_cv_func_qsort_argtype=void
22040 else
22041 ac_cv_func_qsort_argtype=char
22043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_qsort_argtype" >&5
22047 $as_echo "$ac_cv_func_qsort_argtype" >&6; }
22049 cat >>confdefs.h <<_ACEOF
22050 #define qsort_t $ac_cv_func_qsort_argtype
22051 _ACEOF
22055 for ac_header in sys/select.h sys/socket.h
22056 do :
22057 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22058 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22059 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22060 cat >>confdefs.h <<_ACEOF
22061 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22062 _ACEOF
22066 done
22068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
22069 $as_echo_n "checking types of arguments for select... " >&6; }
22070 if ${ac_cv_func_select_args+:} false; then :
22071 $as_echo_n "(cached) " >&6
22072 else
22073 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
22074 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
22075 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
22076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22077 /* end confdefs.h. */
22078 $ac_includes_default
22079 #ifdef HAVE_SYS_SELECT_H
22080 # include <sys/select.h>
22081 #endif
22082 #ifdef HAVE_SYS_SOCKET_H
22083 # include <sys/socket.h>
22084 #endif
22087 main ()
22089 extern int select ($ac_arg1,
22090 $ac_arg234, $ac_arg234, $ac_arg234,
22091 $ac_arg5);
22093 return 0;
22095 _ACEOF
22096 if ac_fn_c_try_compile "$LINENO"; then :
22097 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
22099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22100 done
22101 done
22102 done
22103 # Provide a safe default value.
22104 : "${ac_cv_func_select_args=int,int *,struct timeval *}"
22107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
22108 $as_echo "$ac_cv_func_select_args" >&6; }
22109 ac_save_IFS=$IFS; IFS=','
22110 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
22111 IFS=$ac_save_IFS
22112 shift
22114 cat >>confdefs.h <<_ACEOF
22115 #define SELECT_TYPE_ARG1 $1
22116 _ACEOF
22119 cat >>confdefs.h <<_ACEOF
22120 #define SELECT_TYPE_ARG234 ($2)
22121 _ACEOF
22124 cat >>confdefs.h <<_ACEOF
22125 #define SELECT_TYPE_ARG5 ($3)
22126 _ACEOF
22128 rm -f conftest*
22131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
22132 $as_echo_n "checking for working strcoll... " >&6; }
22133 if ${ac_cv_func_strcoll_works+:} false; then :
22134 $as_echo_n "(cached) " >&6
22135 else
22136 if test "$cross_compiling" = yes; then :
22137 ac_cv_func_strcoll_works=no
22138 else
22139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22140 /* end confdefs.h. */
22141 $ac_includes_default
22143 main ()
22145 return (strcoll ("abc", "def") >= 0 ||
22146 strcoll ("ABC", "DEF") >= 0 ||
22147 strcoll ("123", "456") >= 0)
22149 return 0;
22151 _ACEOF
22152 if ac_fn_c_try_run "$LINENO"; then :
22153 ac_cv_func_strcoll_works=yes
22154 else
22155 ac_cv_func_strcoll_works=no
22157 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22158 conftest.$ac_objext conftest.beam conftest.$ac_ext
22162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
22163 $as_echo "$ac_cv_func_strcoll_works" >&6; }
22164 if test $ac_cv_func_strcoll_works = yes; then
22166 $as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
22172 for ac_header in vfork.h
22173 do :
22174 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
22175 if test "x$ac_cv_header_vfork_h" = xyes; then :
22176 cat >>confdefs.h <<_ACEOF
22177 #define HAVE_VFORK_H 1
22178 _ACEOF
22182 done
22184 for ac_func in fork vfork
22185 do :
22186 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22187 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22188 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22189 cat >>confdefs.h <<_ACEOF
22190 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22191 _ACEOF
22194 done
22196 if test "x$ac_cv_func_fork" = xyes; then
22197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
22198 $as_echo_n "checking for working fork... " >&6; }
22199 if ${ac_cv_func_fork_works+:} false; then :
22200 $as_echo_n "(cached) " >&6
22201 else
22202 if test "$cross_compiling" = yes; then :
22203 ac_cv_func_fork_works=cross
22204 else
22205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22206 /* end confdefs.h. */
22207 $ac_includes_default
22209 main ()
22212 /* By Ruediger Kuhlmann. */
22213 return fork () < 0;
22216 return 0;
22218 _ACEOF
22219 if ac_fn_c_try_run "$LINENO"; then :
22220 ac_cv_func_fork_works=yes
22221 else
22222 ac_cv_func_fork_works=no
22224 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22225 conftest.$ac_objext conftest.beam conftest.$ac_ext
22229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
22230 $as_echo "$ac_cv_func_fork_works" >&6; }
22232 else
22233 ac_cv_func_fork_works=$ac_cv_func_fork
22235 if test "x$ac_cv_func_fork_works" = xcross; then
22236 case $host in
22237 *-*-amigaos* | *-*-msdosdjgpp*)
22238 # Override, as these systems have only a dummy fork() stub
22239 ac_cv_func_fork_works=no
22242 ac_cv_func_fork_works=yes
22244 esac
22245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
22246 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22248 ac_cv_func_vfork_works=$ac_cv_func_vfork
22249 if test "x$ac_cv_func_vfork" = xyes; then
22250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
22251 $as_echo_n "checking for working vfork... " >&6; }
22252 if ${ac_cv_func_vfork_works+:} false; then :
22253 $as_echo_n "(cached) " >&6
22254 else
22255 if test "$cross_compiling" = yes; then :
22256 ac_cv_func_vfork_works=cross
22257 else
22258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22259 /* end confdefs.h. */
22260 /* Thanks to Paul Eggert for this test. */
22261 $ac_includes_default
22262 #include <sys/wait.h>
22263 #ifdef HAVE_VFORK_H
22264 # include <vfork.h>
22265 #endif
22266 /* On some sparc systems, changes by the child to local and incoming
22267 argument registers are propagated back to the parent. The compiler
22268 is told about this with #include <vfork.h>, but some compilers
22269 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22270 static variable whose address is put into a register that is
22271 clobbered by the vfork. */
22272 static void
22273 #ifdef __cplusplus
22274 sparc_address_test (int arg)
22275 # else
22276 sparc_address_test (arg) int arg;
22277 #endif
22279 static pid_t child;
22280 if (!child) {
22281 child = vfork ();
22282 if (child < 0) {
22283 perror ("vfork");
22284 _exit(2);
22286 if (!child) {
22287 arg = getpid();
22288 write(-1, "", 0);
22289 _exit (arg);
22295 main ()
22297 pid_t parent = getpid ();
22298 pid_t child;
22300 sparc_address_test (0);
22302 child = vfork ();
22304 if (child == 0) {
22305 /* Here is another test for sparc vfork register problems. This
22306 test uses lots of local variables, at least as many local
22307 variables as main has allocated so far including compiler
22308 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22309 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22310 reuse the register of parent for one of the local variables,
22311 since it will think that parent can't possibly be used any more
22312 in this routine. Assigning to the local variable will thus
22313 munge parent in the parent process. */
22314 pid_t
22315 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22316 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22317 /* Convince the compiler that p..p7 are live; otherwise, it might
22318 use the same hardware register for all 8 local variables. */
22319 if (p != p1 || p != p2 || p != p3 || p != p4
22320 || p != p5 || p != p6 || p != p7)
22321 _exit(1);
22323 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22324 from child file descriptors. If the child closes a descriptor
22325 before it execs or exits, this munges the parent's descriptor
22326 as well. Test for this by closing stdout in the child. */
22327 _exit(close(fileno(stdout)) != 0);
22328 } else {
22329 int status;
22330 struct stat st;
22332 while (wait(&status) != child)
22334 return (
22335 /* Was there some problem with vforking? */
22336 child < 0
22338 /* Did the child fail? (This shouldn't happen.) */
22339 || status
22341 /* Did the vfork/compiler bug occur? */
22342 || parent != getpid()
22344 /* Did the file descriptor bug occur? */
22345 || fstat(fileno(stdout), &st) != 0
22349 _ACEOF
22350 if ac_fn_c_try_run "$LINENO"; then :
22351 ac_cv_func_vfork_works=yes
22352 else
22353 ac_cv_func_vfork_works=no
22355 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22356 conftest.$ac_objext conftest.beam conftest.$ac_ext
22360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
22361 $as_echo "$ac_cv_func_vfork_works" >&6; }
22364 if test "x$ac_cv_func_fork_works" = xcross; then
22365 ac_cv_func_vfork_works=$ac_cv_func_vfork
22366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
22367 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22370 if test "x$ac_cv_func_vfork_works" = xyes; then
22372 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
22374 else
22376 $as_echo "#define vfork fork" >>confdefs.h
22379 if test "x$ac_cv_func_fork_works" = xyes; then
22381 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
22385 for ac_func in strchr \
22386 memcpy \
22387 strtol \
22388 strtoul \
22389 select \
22390 poll \
22391 qsort \
22392 getuid \
22393 getpwuid \
22394 getpwnam \
22395 gettimeofday \
22396 tmpfile \
22397 uname \
22398 rename \
22399 read \
22400 signal \
22401 setjmp \
22402 chown \
22403 wait4 \
22404 waitpid \
22405 wait \
22406 srandom \
22407 popen \
22408 pclose \
22409 fsync \
22410 truncate \
22411 listen \
22412 wcwidth \
22413 mbstowcs \
22414 wcrtomb \
22415 wctomb \
22416 putenv \
22417 setenv
22418 do :
22419 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22420 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22421 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22422 cat >>confdefs.h <<_ACEOF
22423 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22424 _ACEOF
22427 done
22430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostname" >&5
22431 $as_echo_n "checking for library containing gethostname... " >&6; }
22432 if ${ac_cv_search_gethostname+:} false; then :
22433 $as_echo_n "(cached) " >&6
22434 else
22435 ac_func_search_save_LIBS=$LIBS
22436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22437 /* end confdefs.h. */
22439 /* Override any GCC internal prototype to avoid an error.
22440 Use char because int might match the return type of a GCC
22441 builtin and then its argument prototype would still apply. */
22442 #ifdef __cplusplus
22443 extern "C"
22444 #endif
22445 char gethostname ();
22447 main ()
22449 return gethostname ();
22451 return 0;
22453 _ACEOF
22454 for ac_lib in '' nsl; do
22455 if test -z "$ac_lib"; then
22456 ac_res="none required"
22457 else
22458 ac_res=-l$ac_lib
22459 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22461 if ac_fn_c_try_link "$LINENO"; then :
22462 ac_cv_search_gethostname=$ac_res
22464 rm -f core conftest.err conftest.$ac_objext \
22465 conftest$ac_exeext
22466 if ${ac_cv_search_gethostname+:} false; then :
22467 break
22469 done
22470 if ${ac_cv_search_gethostname+:} false; then :
22472 else
22473 ac_cv_search_gethostname=no
22475 rm conftest.$ac_ext
22476 LIBS=$ac_func_search_save_LIBS
22478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostname" >&5
22479 $as_echo "$ac_cv_search_gethostname" >&6; }
22480 ac_res=$ac_cv_search_gethostname
22481 if test "$ac_res" != no; then :
22482 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
22488 $as_echo_n "checking for library containing socket... " >&6; }
22489 if ${ac_cv_search_socket+:} false; then :
22490 $as_echo_n "(cached) " >&6
22491 else
22492 ac_func_search_save_LIBS=$LIBS
22493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22494 /* end confdefs.h. */
22496 /* Override any GCC internal prototype to avoid an error.
22497 Use char because int might match the return type of a GCC
22498 builtin and then its argument prototype would still apply. */
22499 #ifdef __cplusplus
22500 extern "C"
22501 #endif
22502 char socket ();
22504 main ()
22506 return socket ();
22508 return 0;
22510 _ACEOF
22511 for ac_lib in '' socket; do
22512 if test -z "$ac_lib"; then
22513 ac_res="none required"
22514 else
22515 ac_res=-l$ac_lib
22516 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22518 if ac_fn_c_try_link "$LINENO"; then :
22519 ac_cv_search_socket=$ac_res
22521 rm -f core conftest.err conftest.$ac_objext \
22522 conftest$ac_exeext
22523 if ${ac_cv_search_socket+:} false; then :
22524 break
22526 done
22527 if ${ac_cv_search_socket+:} false; then :
22529 else
22530 ac_cv_search_socket=no
22532 rm conftest.$ac_ext
22533 LIBS=$ac_func_search_save_LIBS
22535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
22536 $as_echo "$ac_cv_search_socket" >&6; }
22537 ac_res=$ac_cv_search_socket
22538 if test "$ac_res" != no; then :
22539 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22541 else
22543 WEB_BUILD=
22548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bind" >&5
22549 $as_echo_n "checking for library containing bind... " >&6; }
22550 if ${ac_cv_search_bind+:} false; then :
22551 $as_echo_n "(cached) " >&6
22552 else
22553 ac_func_search_save_LIBS=$LIBS
22554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22555 /* end confdefs.h. */
22557 /* Override any GCC internal prototype to avoid an error.
22558 Use char because int might match the return type of a GCC
22559 builtin and then its argument prototype would still apply. */
22560 #ifdef __cplusplus
22561 extern "C"
22562 #endif
22563 char bind ();
22565 main ()
22567 return bind ();
22569 return 0;
22571 _ACEOF
22572 for ac_lib in '' bind; do
22573 if test -z "$ac_lib"; then
22574 ac_res="none required"
22575 else
22576 ac_res=-l$ac_lib
22577 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22579 if ac_fn_c_try_link "$LINENO"; then :
22580 ac_cv_search_bind=$ac_res
22582 rm -f core conftest.err conftest.$ac_objext \
22583 conftest$ac_exeext
22584 if ${ac_cv_search_bind+:} false; then :
22585 break
22587 done
22588 if ${ac_cv_search_bind+:} false; then :
22590 else
22591 ac_cv_search_bind=no
22593 rm conftest.$ac_ext
22594 LIBS=$ac_func_search_save_LIBS
22596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bind" >&5
22597 $as_echo "$ac_cv_search_bind" >&6; }
22598 ac_res=$ac_cv_search_bind
22599 if test "$ac_res" != no; then :
22600 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22602 else
22604 WEB_BUILD=
22609 for ac_func in sigaction sigemptyset sigaddset sigprocmask
22610 do :
22611 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22612 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22613 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22614 cat >>confdefs.h <<_ACEOF
22615 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22616 _ACEOF
22619 $as_echo "#define POSIX_SIGNALS /**/" >>confdefs.h
22622 else
22624 for ac_func in sigset sigrelse
22625 do :
22626 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22627 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22628 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22629 cat >>confdefs.h <<_ACEOF
22630 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22631 _ACEOF
22634 $as_echo "#define SYSV_SIGNALS /**/" >>confdefs.h
22638 done
22642 done
22645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing syslog" >&5
22646 $as_echo_n "checking for library containing syslog... " >&6; }
22647 if ${ac_cv_search_syslog+:} false; then :
22648 $as_echo_n "(cached) " >&6
22649 else
22650 ac_func_search_save_LIBS=$LIBS
22651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22652 /* end confdefs.h. */
22654 /* Override any GCC internal prototype to avoid an error.
22655 Use char because int might match the return type of a GCC
22656 builtin and then its argument prototype would still apply. */
22657 #ifdef __cplusplus
22658 extern "C"
22659 #endif
22660 char syslog ();
22662 main ()
22664 return syslog ();
22666 return 0;
22668 _ACEOF
22669 for ac_lib in '' bsd socket inet; do
22670 if test -z "$ac_lib"; then
22671 ac_res="none required"
22672 else
22673 ac_res=-l$ac_lib
22674 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22676 if ac_fn_c_try_link "$LINENO"; then :
22677 ac_cv_search_syslog=$ac_res
22679 rm -f core conftest.err conftest.$ac_objext \
22680 conftest$ac_exeext
22681 if ${ac_cv_search_syslog+:} false; then :
22682 break
22684 done
22685 if ${ac_cv_search_syslog+:} false; then :
22687 else
22688 ac_cv_search_syslog=no
22690 rm conftest.$ac_ext
22691 LIBS=$ac_func_search_save_LIBS
22693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_syslog" >&5
22694 $as_echo "$ac_cv_search_syslog" >&6; }
22695 ac_res=$ac_cv_search_syslog
22696 if test "$ac_res" != no; then :
22697 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22700 $as_echo "#define HAVE_SYSLOG 1" >>confdefs.h
22707 if test -n "$alpine_with_local_maildir" ; then
22708 alpine_local_maildir=$alpine_with_local_maildir
22709 elif test -d /var/spool/mail ; then
22710 alpine_local_maildir="/var/spool/mail"
22711 elif test -d /var/mail ; then
22712 alpine_local_maildir="/var/mail"
22713 else
22714 alpine_local_maildir="/usr/spool/mail"
22717 if test -n "$alpine_with_c_client_target" ; then
22718 alpine_c_client_target=$alpine_with_c_client_target
22722 cat >>confdefs.h <<_ACEOF
22723 #define SYSTYPE "$systype"
22724 _ACEOF
22727 cat >>confdefs.h <<_ACEOF
22728 #define C_FILESEP '$alpine_path_delim'
22729 _ACEOF
22732 cat >>confdefs.h <<_ACEOF
22733 #define S_FILESEP "$alpine_path_delim"
22734 _ACEOF
22737 cat >>confdefs.h <<_ACEOF
22738 #define MAILDIR "$alpine_local_maildir"
22739 _ACEOF
22742 cat >>confdefs.h <<_ACEOF
22743 #define MODE_READONLY $alpine_mode_readonly
22744 _ACEOF
22747 cat >>confdefs.h <<_ACEOF
22748 #define HTML_EXT "html"
22749 _ACEOF
22752 C_CLIENT_TARGET=$alpine_c_client_target
22754 C_CLIENT_WITH_IPV6=$c_client_ip6
22756 if test "x$alpine_SSLTYPE" = "xnone" ; then
22757 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * NOT Including SSL Support" >&5
22758 $as_echo "$as_me: * * * NOT Including SSL Support" >&6;}
22759 c_client_specials="${c_client_specials}SSLTYPE=none "
22760 else
22762 if test -n "$alpine_SSLCERTS" -a -d "$alpine_SSLCERTS" ; then
22763 certdir="$alpine_SSLCERTS"
22764 elif test -n "$alpine_SSLDIR" -a -d "${alpine_SSLDIR}/certs" ; then
22765 certdir="${alpine_SSLDIR}/certs"
22766 elif test -n "$alpine_SSLDIR" -a -d "${alpine_SSLDIR}/ssl/certs" ; then
22767 certdir="${alpine_SSLDIR}/ssl/certs"
22768 elif test -n "$alpine_SSLCERTS_ORIG" -a -d "$alpine_SSLCERTS_ORIG" ; then
22769 certdir="$alpine_SSLCERTS_ORIG"
22770 elif test -n "$alpine_SSLCERTS" ; then
22771 certdir="$alpine_SSLCERTS"
22772 else
22773 { $as_echo "$as_me:${as_lineno-$LINENO}: SSL Problem: certificate directory not found" >&5
22774 $as_echo "$as_me: SSL Problem: certificate directory not found" >&6;}
22777 if test "x$with_smime" != "xno" ; then
22778 if test -n "$certdir" ; then
22779 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * S/MIME support enabled" >&5
22780 $as_echo "$as_me: * * * S/MIME support enabled" >&6;}
22782 $as_echo "#define SMIME /**/" >>confdefs.h
22785 cat >>confdefs.h <<_ACEOF
22786 #define SMIME_SSLCERTS "$certdir"
22787 _ACEOF
22793 SSL_CERT_LINK="no"
22794 if test -z "`ls ${certdir} | $EGREP '^[0-9A-Fa-f]{8}\.[0-9]'`" ; then
22795 SSL_BUNDLE_EXISTS="no"
22796 SSL_PEM="factory.pem ca-bundle.pem cert.pem ca-bundle.crt ca-root-nss.crt"
22797 for SSL_BUNDLE in $SSL_PEM
22799 if test -f ${certdir}/${SSL_BUNDLE} ; then
22800 SSL_BUNDLE_EXISTS="yes"
22802 done
22803 else
22804 SSL_CERT_LINK="yes"
22807 if test "x$SSL_BUNDLE_EXISTS" = "xno" -a "x$SSL_CERT_LINK" = "xno" ; then
22808 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * No certificates found in \"${certdir}\"." >&5
22809 $as_echo "$as_me: * * * No certificates found in \"${certdir}\"." >&6;}
22810 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * This might indicate that CA certs did not get properly" >&5
22811 $as_echo "$as_me: * * * This might indicate that CA certs did not get properly" >&6;}
22812 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * installed. If you get certificate validation failures" >&5
22813 $as_echo "$as_me: * * * installed. If you get certificate validation failures" >&6;}
22814 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * in Alpine, this might be the reason for them." >&5
22815 $as_echo "$as_me: * * * in Alpine, this might be the reason for them." >&6;}
22818 if test -n "$alpine_SSLINCLUDE" ; then
22819 c_client_specials="${c_client_specials}SSLINCLUDE=$alpine_SSLINCLUDE "
22822 if test -n "$alpine_SSLLIB" ; then
22823 c_client_specials="${c_client_specials}SSLLIB=$alpine_SSLLIB "
22826 if test -n "$alpine_SSLDIR" ; then
22827 c_client_specials="${c_client_specials}SSLDIR=$alpine_SSLDIR "
22830 if test -n "$certdir" ; then
22831 c_client_specials="${c_client_specials}SSLCERTS=$certdir "
22834 if test -n "$alpine_SSLKEYS" ; then
22835 c_client_specials="${c_client_specials}SSLKEYS=$alpine_SSLKEYS "
22839 extra_auth_gss=
22840 if test "x$alpine_GSSTYPE" != "xnone" ; then
22841 extra_auth_gss=gss
22842 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * Including Kerberos5 functionality" >&5
22843 $as_echo "$as_me: * * * Including Kerberos5 functionality" >&6;}
22846 extra_auth_ntlm=
22847 if test "x$alpine_NTLM" != "xnone" ; then
22848 extra_auth_ntlm=ntl
22849 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * Including NTLM Authenticator" >&5
22850 $as_echo "$as_me: * * * Including NTLM Authenticator" >&6;}
22853 if test -n "$CPPFLAGS" ; then
22854 alpine_c_client_cflags="$alpine_c_client_cflags ${CPPFLAGS}"
22856 if test -n "$CFLAGS" ; then
22857 alpine_c_client_cflags="$alpine_c_client_cflags ${CFLAGS}"
22860 if test -n "$alpine_c_client_cflags" ; then
22861 C_CLIENT_CFLAGS=EXTRACFLAGS=\"$alpine_c_client_cflags\"
22865 if test -n "$LDFLAGS" ; then
22866 alpine_c_client_ldflags="$alpine_c_client_ldflags ${LDFLAGS}"
22868 if test -n "$LIBS" ; then
22869 alpine_c_client_ldflags="$alpine_c_client_ldflags ${LIBS}"
22872 if test -n "$alpine_c_client_ldflags" ; then
22873 C_CLIENT_LDFLAGS=EXTRALDFLAGS=\"$alpine_c_client_ldflags\"
22877 if test -n "$alpine_c_client_gccoptlevel" ; then
22878 C_CLIENT_GCCOPTLEVEL=GCCOPTLEVEL=\"$alpine_c_client_gccoptlevel\"
22882 c_client_auths="$extra_auth_gss $extra_auth_ntlm"
22883 C_CLIENT_AUTHS=$c_client_auths
22886 C_CLIENT_SPECIALS=$c_client_specials
22889 if test -z "$WEB_BUILD" ; then
22890 WEB_PUBCOOKIE_BUILD=
22891 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * TCL libraries could not be found." >&5
22892 $as_echo "$as_me: * * * TCL libraries could not be found." >&6;}
22893 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * WEB ALPINE COMPONENT WILL NOT BE BUILT." >&5
22894 $as_echo "$as_me: * * * WEB ALPINE COMPONENT WILL NOT BE BUILT." >&6;}
22895 else
22896 if test -n "$WEB_PUBCOOKIE_BUILD" ; then
22897 if test "x$alpine_GSSTYPE" = "xnone" ; then
22898 WEB_PUBCOOKIE_BUILD=
22899 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * Kerberos5 support not found." >&5
22900 $as_echo "$as_me: * * * Kerberos5 support not found." >&6;}
22901 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * WEB ALPINE PUBCOOKIE COMPONENT WILL NOT BE BUILT." >&5
22902 $as_echo "$as_me: * * * WEB ALPINE PUBCOOKIE COMPONENT WILL NOT BE BUILT." >&6;}
22903 elif test -z "$WEB_BINDIR" ; then
22904 WEB_PUBCOOKIE_BUILD=
22905 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * Web Alpine binary directory not provided." >&5
22906 $as_echo "$as_me: * * * Web Alpine binary directory not provided." >&6;}
22907 as_fn_error $? "* * * --with-pubcookie requires --with-web-bin=PATH.
22908 Please re-run configure with these options:
22909 --with-pubcookie --with-web-bin=/usr/local/libexec/alpine/bin" "$LINENO" 5
22910 else
22912 $as_echo "#define PUBCOOKIE 1" >>confdefs.h
22914 WEB_PUBCOOKIE_LIB=../pubcookie/libauthgssproxy.a
22915 WEB_PUBCOOKIE_LINK=gssapi_proxy.l
22931 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"
22933 cat >confcache <<\_ACEOF
22934 # This file is a shell script that caches the results of configure
22935 # tests run on this system so they can be shared between configure
22936 # scripts and configure runs, see configure's option --config-cache.
22937 # It is not useful on other systems. If it contains results you don't
22938 # want to keep, you may remove or edit it.
22940 # config.status only pays attention to the cache file if you give it
22941 # the --recheck option to rerun configure.
22943 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22944 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22945 # following values.
22947 _ACEOF
22949 # The following way of writing the cache mishandles newlines in values,
22950 # but we know of no workaround that is simple, portable, and efficient.
22951 # So, we kill variables containing newlines.
22952 # Ultrix sh set writes to stderr and can't be redirected directly,
22953 # and sets the high bit in the cache file unless we assign to the vars.
22955 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22956 eval ac_val=\$$ac_var
22957 case $ac_val in #(
22958 *${as_nl}*)
22959 case $ac_var in #(
22960 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
22961 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22962 esac
22963 case $ac_var in #(
22964 _ | IFS | as_nl) ;; #(
22965 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
22966 *) { eval $ac_var=; unset $ac_var;} ;;
22967 esac ;;
22968 esac
22969 done
22971 (set) 2>&1 |
22972 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22973 *${as_nl}ac_space=\ *)
22974 # `set' does not quote correctly, so add quotes: double-quote
22975 # substitution turns \\\\ into \\, and sed turns \\ into \.
22976 sed -n \
22977 "s/'/'\\\\''/g;
22978 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22979 ;; #(
22981 # `set' quotes correctly as required by POSIX, so do not add quotes.
22982 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22984 esac |
22985 sort
22987 sed '
22988 /^ac_cv_env_/b end
22989 t clear
22990 :clear
22991 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22992 t end
22993 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22994 :end' >>confcache
22995 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22996 if test -w "$cache_file"; then
22997 if test "x$cache_file" != "x/dev/null"; then
22998 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
22999 $as_echo "$as_me: updating cache $cache_file" >&6;}
23000 if test ! -f "$cache_file" || test -h "$cache_file"; then
23001 cat confcache >"$cache_file"
23002 else
23003 case $cache_file in #(
23004 */* | ?:*)
23005 mv -f confcache "$cache_file"$$ &&
23006 mv -f "$cache_file"$$ "$cache_file" ;; #(
23008 mv -f confcache "$cache_file" ;;
23009 esac
23012 else
23013 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
23014 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23017 rm -f confcache
23019 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23020 # Let make expand exec_prefix.
23021 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23023 DEFS=-DHAVE_CONFIG_H
23025 ac_libobjs=
23026 ac_ltlibobjs=
23028 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23029 # 1. Remove the extension, and $U if already installed.
23030 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23031 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
23032 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23033 # will be set to the directory where LIBOBJS objects are built.
23034 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23035 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
23036 done
23037 LIBOBJS=$ac_libobjs
23039 LTLIBOBJS=$ac_ltlibobjs
23042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
23043 $as_echo_n "checking that generated files are newer than configure... " >&6; }
23044 if test -n "$am_sleep_pid"; then
23045 # Hide warnings about reused PIDs.
23046 wait $am_sleep_pid 2>/dev/null
23048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
23049 $as_echo "done" >&6; }
23050 if test -n "$EXEEXT"; then
23051 am__EXEEXT_TRUE=
23052 am__EXEEXT_FALSE='#'
23053 else
23054 am__EXEEXT_TRUE='#'
23055 am__EXEEXT_FALSE=
23058 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
23059 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
23060 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23062 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23063 as_fn_error $? "conditional \"AMDEP\" was never defined.
23064 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23066 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23067 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
23068 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23070 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23071 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
23072 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23075 : "${CONFIG_STATUS=./config.status}"
23076 ac_write_fail=0
23077 ac_clean_files_save=$ac_clean_files
23078 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23079 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
23080 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
23081 as_write_fail=0
23082 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
23083 #! $SHELL
23084 # Generated by $as_me.
23085 # Run this file to recreate the current configuration.
23086 # Compiler output produced by configure, useful for debugging
23087 # configure, is in config.log if it exists.
23089 debug=false
23090 ac_cs_recheck=false
23091 ac_cs_silent=false
23093 SHELL=\${CONFIG_SHELL-$SHELL}
23094 export SHELL
23095 _ASEOF
23096 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
23097 ## -------------------- ##
23098 ## M4sh Initialization. ##
23099 ## -------------------- ##
23101 # Be more Bourne compatible
23102 DUALCASE=1; export DUALCASE # for MKS sh
23103 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
23104 emulate sh
23105 NULLCMD=:
23106 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23107 # is contrary to our usage. Disable this feature.
23108 alias -g '${1+"$@"}'='"$@"'
23109 setopt NO_GLOB_SUBST
23110 else
23111 case `(set -o) 2>/dev/null` in #(
23112 *posix*) :
23113 set -o posix ;; #(
23114 *) :
23116 esac
23120 as_nl='
23122 export as_nl
23123 # Printing a long string crashes Solaris 7 /usr/bin/printf.
23124 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
23125 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
23126 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
23127 # Prefer a ksh shell builtin over an external printf program on Solaris,
23128 # but without wasting forks for bash or zsh.
23129 if test -z "$BASH_VERSION$ZSH_VERSION" \
23130 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
23131 as_echo='print -r --'
23132 as_echo_n='print -rn --'
23133 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
23134 as_echo='printf %s\n'
23135 as_echo_n='printf %s'
23136 else
23137 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
23138 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
23139 as_echo_n='/usr/ucb/echo -n'
23140 else
23141 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
23142 as_echo_n_body='eval
23143 arg=$1;
23144 case $arg in #(
23145 *"$as_nl"*)
23146 expr "X$arg" : "X\\(.*\\)$as_nl";
23147 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
23148 esac;
23149 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
23151 export as_echo_n_body
23152 as_echo_n='sh -c $as_echo_n_body as_echo'
23154 export as_echo_body
23155 as_echo='sh -c $as_echo_body as_echo'
23158 # The user is always right.
23159 if test "${PATH_SEPARATOR+set}" != set; then
23160 PATH_SEPARATOR=:
23161 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
23162 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
23163 PATH_SEPARATOR=';'
23168 # IFS
23169 # We need space, tab and new line, in precisely that order. Quoting is
23170 # there to prevent editors from complaining about space-tab.
23171 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23172 # splitting by setting IFS to empty value.)
23173 IFS=" "" $as_nl"
23175 # Find who we are. Look in the path if we contain no directory separator.
23176 as_myself=
23177 case $0 in #((
23178 *[\\/]* ) as_myself=$0 ;;
23179 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23180 for as_dir in $PATH
23182 IFS=$as_save_IFS
23183 test -z "$as_dir" && as_dir=.
23184 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23185 done
23186 IFS=$as_save_IFS
23189 esac
23190 # We did not find ourselves, most probably we were run as `sh COMMAND'
23191 # in which case we are not to be found in the path.
23192 if test "x$as_myself" = x; then
23193 as_myself=$0
23195 if test ! -f "$as_myself"; then
23196 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23197 exit 1
23200 # Unset variables that we do not need and which cause bugs (e.g. in
23201 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
23202 # suppresses any "Segmentation fault" message there. '((' could
23203 # trigger a bug in pdksh 5.2.14.
23204 for as_var in BASH_ENV ENV MAIL MAILPATH
23205 do eval test x\${$as_var+set} = xset \
23206 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
23207 done
23208 PS1='$ '
23209 PS2='> '
23210 PS4='+ '
23212 # NLS nuisances.
23213 LC_ALL=C
23214 export LC_ALL
23215 LANGUAGE=C
23216 export LANGUAGE
23218 # CDPATH.
23219 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
23222 # as_fn_error STATUS ERROR [LINENO LOG_FD]
23223 # ----------------------------------------
23224 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
23225 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
23226 # script with STATUS, using 1 if that was 0.
23227 as_fn_error ()
23229 as_status=$1; test $as_status -eq 0 && as_status=1
23230 if test "$4"; then
23231 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
23232 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
23234 $as_echo "$as_me: error: $2" >&2
23235 as_fn_exit $as_status
23236 } # as_fn_error
23239 # as_fn_set_status STATUS
23240 # -----------------------
23241 # Set $? to STATUS, without forking.
23242 as_fn_set_status ()
23244 return $1
23245 } # as_fn_set_status
23247 # as_fn_exit STATUS
23248 # -----------------
23249 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
23250 as_fn_exit ()
23252 set +e
23253 as_fn_set_status $1
23254 exit $1
23255 } # as_fn_exit
23257 # as_fn_unset VAR
23258 # ---------------
23259 # Portably unset VAR.
23260 as_fn_unset ()
23262 { eval $1=; unset $1;}
23264 as_unset=as_fn_unset
23265 # as_fn_append VAR VALUE
23266 # ----------------------
23267 # Append the text in VALUE to the end of the definition contained in VAR. Take
23268 # advantage of any shell optimizations that allow amortized linear growth over
23269 # repeated appends, instead of the typical quadratic growth present in naive
23270 # implementations.
23271 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
23272 eval 'as_fn_append ()
23274 eval $1+=\$2
23276 else
23277 as_fn_append ()
23279 eval $1=\$$1\$2
23281 fi # as_fn_append
23283 # as_fn_arith ARG...
23284 # ------------------
23285 # Perform arithmetic evaluation on the ARGs, and store the result in the
23286 # global $as_val. Take advantage of shells that can avoid forks. The arguments
23287 # must be portable across $(()) and expr.
23288 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
23289 eval 'as_fn_arith ()
23291 as_val=$(( $* ))
23293 else
23294 as_fn_arith ()
23296 as_val=`expr "$@" || test $? -eq 1`
23298 fi # as_fn_arith
23301 if expr a : '\(a\)' >/dev/null 2>&1 &&
23302 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23303 as_expr=expr
23304 else
23305 as_expr=false
23308 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23309 as_basename=basename
23310 else
23311 as_basename=false
23314 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23315 as_dirname=dirname
23316 else
23317 as_dirname=false
23320 as_me=`$as_basename -- "$0" ||
23321 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23322 X"$0" : 'X\(//\)$' \| \
23323 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23324 $as_echo X/"$0" |
23325 sed '/^.*\/\([^/][^/]*\)\/*$/{
23326 s//\1/
23329 /^X\/\(\/\/\)$/{
23330 s//\1/
23333 /^X\/\(\/\).*/{
23334 s//\1/
23337 s/.*/./; q'`
23339 # Avoid depending upon Character Ranges.
23340 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23341 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23342 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23343 as_cr_digits='0123456789'
23344 as_cr_alnum=$as_cr_Letters$as_cr_digits
23346 ECHO_C= ECHO_N= ECHO_T=
23347 case `echo -n x` in #(((((
23348 -n*)
23349 case `echo 'xy\c'` in
23350 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23351 xy) ECHO_C='\c';;
23352 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
23353 ECHO_T=' ';;
23354 esac;;
23356 ECHO_N='-n';;
23357 esac
23359 rm -f conf$$ conf$$.exe conf$$.file
23360 if test -d conf$$.dir; then
23361 rm -f conf$$.dir/conf$$.file
23362 else
23363 rm -f conf$$.dir
23364 mkdir conf$$.dir 2>/dev/null
23366 if (echo >conf$$.file) 2>/dev/null; then
23367 if ln -s conf$$.file conf$$ 2>/dev/null; then
23368 as_ln_s='ln -s'
23369 # ... but there are two gotchas:
23370 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23371 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23372 # In both cases, we have to default to `cp -pR'.
23373 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23374 as_ln_s='cp -pR'
23375 elif ln conf$$.file conf$$ 2>/dev/null; then
23376 as_ln_s=ln
23377 else
23378 as_ln_s='cp -pR'
23380 else
23381 as_ln_s='cp -pR'
23383 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23384 rmdir conf$$.dir 2>/dev/null
23387 # as_fn_mkdir_p
23388 # -------------
23389 # Create "$as_dir" as a directory, including parents if necessary.
23390 as_fn_mkdir_p ()
23393 case $as_dir in #(
23394 -*) as_dir=./$as_dir;;
23395 esac
23396 test -d "$as_dir" || eval $as_mkdir_p || {
23397 as_dirs=
23398 while :; do
23399 case $as_dir in #(
23400 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23401 *) as_qdir=$as_dir;;
23402 esac
23403 as_dirs="'$as_qdir' $as_dirs"
23404 as_dir=`$as_dirname -- "$as_dir" ||
23405 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23406 X"$as_dir" : 'X\(//\)[^/]' \| \
23407 X"$as_dir" : 'X\(//\)$' \| \
23408 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23409 $as_echo X"$as_dir" |
23410 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23411 s//\1/
23414 /^X\(\/\/\)[^/].*/{
23415 s//\1/
23418 /^X\(\/\/\)$/{
23419 s//\1/
23422 /^X\(\/\).*/{
23423 s//\1/
23426 s/.*/./; q'`
23427 test -d "$as_dir" && break
23428 done
23429 test -z "$as_dirs" || eval "mkdir $as_dirs"
23430 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
23433 } # as_fn_mkdir_p
23434 if mkdir -p . 2>/dev/null; then
23435 as_mkdir_p='mkdir -p "$as_dir"'
23436 else
23437 test -d ./-p && rmdir ./-p
23438 as_mkdir_p=false
23442 # as_fn_executable_p FILE
23443 # -----------------------
23444 # Test if FILE is an executable regular file.
23445 as_fn_executable_p ()
23447 test -f "$1" && test -x "$1"
23448 } # as_fn_executable_p
23449 as_test_x='test -x'
23450 as_executable_p=as_fn_executable_p
23452 # Sed expression to map a string onto a valid CPP name.
23453 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23455 # Sed expression to map a string onto a valid variable name.
23456 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23459 exec 6>&1
23460 ## ----------------------------------- ##
23461 ## Main body of $CONFIG_STATUS script. ##
23462 ## ----------------------------------- ##
23463 _ASEOF
23464 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
23466 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23467 # Save the log message, to keep $0 and so on meaningful, and to
23468 # report actual input values of CONFIG_FILES etc. instead of their
23469 # values after options handling.
23470 ac_log="
23471 This file was extended by alpine $as_me 2.25, which was
23472 generated by GNU Autoconf 2.69. Invocation command line was
23474 CONFIG_FILES = $CONFIG_FILES
23475 CONFIG_HEADERS = $CONFIG_HEADERS
23476 CONFIG_LINKS = $CONFIG_LINKS
23477 CONFIG_COMMANDS = $CONFIG_COMMANDS
23478 $ $0 $@
23480 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23483 _ACEOF
23485 case $ac_config_files in *"
23486 "*) set x $ac_config_files; shift; ac_config_files=$*;;
23487 esac
23489 case $ac_config_headers in *"
23490 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
23491 esac
23494 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23495 # Files that config.status was made for.
23496 config_files="$ac_config_files"
23497 config_headers="$ac_config_headers"
23498 config_commands="$ac_config_commands"
23500 _ACEOF
23502 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23503 ac_cs_usage="\
23504 \`$as_me' instantiates files and other configuration actions
23505 from templates according to the current configuration. Unless the files
23506 and actions are specified as TAGs, all are instantiated by default.
23508 Usage: $0 [OPTION]... [TAG]...
23510 -h, --help print this help, then exit
23511 -V, --version print version number and configuration settings, then exit
23512 --config print configuration, then exit
23513 -q, --quiet, --silent
23514 do not print progress messages
23515 -d, --debug don't remove temporary files
23516 --recheck update $as_me by reconfiguring in the same conditions
23517 --file=FILE[:TEMPLATE]
23518 instantiate the configuration file FILE
23519 --header=FILE[:TEMPLATE]
23520 instantiate the configuration header FILE
23522 Configuration files:
23523 $config_files
23525 Configuration headers:
23526 $config_headers
23528 Configuration commands:
23529 $config_commands
23531 Report bugs to <chappa@washington.edu>."
23533 _ACEOF
23534 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23535 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
23536 ac_cs_version="\\
23537 alpine config.status 2.25
23538 configured by $0, generated by GNU Autoconf 2.69,
23539 with options \\"\$ac_cs_config\\"
23541 Copyright (C) 2012 Free Software Foundation, Inc.
23542 This config.status script is free software; the Free Software Foundation
23543 gives unlimited permission to copy, distribute and modify it."
23545 ac_pwd='$ac_pwd'
23546 srcdir='$srcdir'
23547 INSTALL='$INSTALL'
23548 MKDIR_P='$MKDIR_P'
23549 AWK='$AWK'
23550 test -n "\$AWK" || AWK=awk
23551 _ACEOF
23553 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23554 # The default lists apply if the user does not specify any file.
23555 ac_need_defaults=:
23556 while test $# != 0
23558 case $1 in
23559 --*=?*)
23560 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23561 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23562 ac_shift=:
23564 --*=)
23565 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23566 ac_optarg=
23567 ac_shift=:
23570 ac_option=$1
23571 ac_optarg=$2
23572 ac_shift=shift
23574 esac
23576 case $ac_option in
23577 # Handling of the options.
23578 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23579 ac_cs_recheck=: ;;
23580 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23581 $as_echo "$ac_cs_version"; exit ;;
23582 --config | --confi | --conf | --con | --co | --c )
23583 $as_echo "$ac_cs_config"; exit ;;
23584 --debug | --debu | --deb | --de | --d | -d )
23585 debug=: ;;
23586 --file | --fil | --fi | --f )
23587 $ac_shift
23588 case $ac_optarg in
23589 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23590 '') as_fn_error $? "missing file argument" ;;
23591 esac
23592 as_fn_append CONFIG_FILES " '$ac_optarg'"
23593 ac_need_defaults=false;;
23594 --header | --heade | --head | --hea )
23595 $ac_shift
23596 case $ac_optarg in
23597 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23598 esac
23599 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
23600 ac_need_defaults=false;;
23601 --he | --h)
23602 # Conflict between --help and --header
23603 as_fn_error $? "ambiguous option: \`$1'
23604 Try \`$0 --help' for more information.";;
23605 --help | --hel | -h )
23606 $as_echo "$ac_cs_usage"; exit ;;
23607 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23608 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23609 ac_cs_silent=: ;;
23611 # This is an error.
23612 -*) as_fn_error $? "unrecognized option: \`$1'
23613 Try \`$0 --help' for more information." ;;
23615 *) as_fn_append ac_config_targets " $1"
23616 ac_need_defaults=false ;;
23618 esac
23619 shift
23620 done
23622 ac_configure_extra_args=
23624 if $ac_cs_silent; then
23625 exec 6>/dev/null
23626 ac_configure_extra_args="$ac_configure_extra_args --silent"
23629 _ACEOF
23630 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23631 if \$ac_cs_recheck; then
23632 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23633 shift
23634 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
23635 CONFIG_SHELL='$SHELL'
23636 export CONFIG_SHELL
23637 exec "\$@"
23640 _ACEOF
23641 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23642 exec 5>>config.log
23644 echo
23645 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23646 ## Running $as_me. ##
23647 _ASBOX
23648 $as_echo "$ac_log"
23649 } >&5
23651 _ACEOF
23652 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23654 # INIT-COMMANDS
23656 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23659 # The HP-UX ksh and POSIX shell print the target directory to stdout
23660 # if CDPATH is set.
23661 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
23663 sed_quote_subst='$sed_quote_subst'
23664 double_quote_subst='$double_quote_subst'
23665 delay_variable_subst='$delay_variable_subst'
23666 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
23667 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
23668 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
23669 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
23670 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
23671 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
23672 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
23673 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
23674 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
23675 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
23676 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
23677 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
23678 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
23679 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
23680 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
23681 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
23682 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
23683 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
23684 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
23685 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
23686 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
23687 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
23688 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
23689 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
23690 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
23691 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
23692 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
23693 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
23694 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
23695 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
23696 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
23697 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
23698 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
23699 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
23700 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
23701 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
23702 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
23703 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
23704 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
23705 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
23706 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
23707 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
23708 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
23709 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
23710 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
23711 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
23712 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
23713 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
23714 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
23715 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
23716 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
23717 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
23718 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
23719 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
23720 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
23721 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
23722 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
23723 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
23724 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"`'
23725 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
23726 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
23727 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
23728 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
23729 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
23730 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
23731 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
23732 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
23733 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
23734 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
23735 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
23736 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
23737 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
23738 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
23739 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
23740 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
23741 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
23742 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
23743 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
23744 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
23745 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
23746 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
23747 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
23748 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
23749 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
23750 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
23751 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
23752 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
23753 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
23754 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
23755 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
23756 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
23757 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
23758 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
23759 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
23760 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
23761 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
23762 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
23763 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
23764 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
23765 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
23766 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
23767 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
23768 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
23769 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
23770 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
23771 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
23772 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
23773 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
23774 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
23775 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
23776 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
23777 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
23778 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
23779 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
23780 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
23781 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
23782 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
23783 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
23784 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
23785 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
23786 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
23787 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
23788 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
23789 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
23790 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
23791 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
23792 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
23793 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
23794 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
23795 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
23796 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
23797 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
23798 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
23799 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
23800 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
23802 LTCC='$LTCC'
23803 LTCFLAGS='$LTCFLAGS'
23804 compiler='$compiler_DEFAULT'
23806 # A function that is used when there is no print builtin or printf.
23807 func_fallback_echo ()
23809 eval 'cat <<_LTECHO_EOF
23811 _LTECHO_EOF'
23814 # Quote evaled strings.
23815 for var in SHELL \
23816 ECHO \
23817 PATH_SEPARATOR \
23818 SED \
23819 GREP \
23820 EGREP \
23821 FGREP \
23822 LD \
23823 NM \
23824 LN_S \
23825 lt_SP2NL \
23826 lt_NL2SP \
23827 reload_flag \
23828 OBJDUMP \
23829 deplibs_check_method \
23830 file_magic_cmd \
23831 file_magic_glob \
23832 want_nocaseglob \
23833 DLLTOOL \
23834 sharedlib_from_linklib_cmd \
23835 AR \
23836 AR_FLAGS \
23837 archiver_list_spec \
23838 STRIP \
23839 RANLIB \
23840 CC \
23841 CFLAGS \
23842 compiler \
23843 lt_cv_sys_global_symbol_pipe \
23844 lt_cv_sys_global_symbol_to_cdecl \
23845 lt_cv_sys_global_symbol_to_import \
23846 lt_cv_sys_global_symbol_to_c_name_address \
23847 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
23848 lt_cv_nm_interface \
23849 nm_file_list_spec \
23850 lt_cv_truncate_bin \
23851 lt_prog_compiler_no_builtin_flag \
23852 lt_prog_compiler_pic \
23853 lt_prog_compiler_wl \
23854 lt_prog_compiler_static \
23855 lt_cv_prog_compiler_c_o \
23856 need_locks \
23857 MANIFEST_TOOL \
23858 DSYMUTIL \
23859 NMEDIT \
23860 LIPO \
23861 OTOOL \
23862 OTOOL64 \
23863 shrext_cmds \
23864 export_dynamic_flag_spec \
23865 whole_archive_flag_spec \
23866 compiler_needs_object \
23867 with_gnu_ld \
23868 allow_undefined_flag \
23869 no_undefined_flag \
23870 hardcode_libdir_flag_spec \
23871 hardcode_libdir_separator \
23872 exclude_expsyms \
23873 include_expsyms \
23874 file_list_spec \
23875 variables_saved_for_relink \
23876 libname_spec \
23877 library_names_spec \
23878 soname_spec \
23879 install_override_mode \
23880 finish_eval \
23881 old_striplib \
23882 striplib; do
23883 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
23884 *[\\\\\\\`\\"\\\$]*)
23885 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
23888 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23890 esac
23891 done
23893 # Double-quote double-evaled strings.
23894 for var in reload_cmds \
23895 old_postinstall_cmds \
23896 old_postuninstall_cmds \
23897 old_archive_cmds \
23898 extract_expsyms_cmds \
23899 old_archive_from_new_cmds \
23900 old_archive_from_expsyms_cmds \
23901 archive_cmds \
23902 archive_expsym_cmds \
23903 module_cmds \
23904 module_expsym_cmds \
23905 export_symbols_cmds \
23906 prelink_cmds \
23907 postlink_cmds \
23908 postinstall_cmds \
23909 postuninstall_cmds \
23910 finish_cmds \
23911 sys_lib_search_path_spec \
23912 configure_time_dlsearch_path \
23913 configure_time_lt_sys_library_path; do
23914 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
23915 *[\\\\\\\`\\"\\\$]*)
23916 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
23919 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23921 esac
23922 done
23924 ac_aux_dir='$ac_aux_dir'
23926 # See if we are running on zsh, and set the options that allow our
23927 # commands through without removal of \ escapes INIT.
23928 if test -n "\${ZSH_VERSION+set}"; then
23929 setopt NO_GLOB_SUBST
23933 PACKAGE='$PACKAGE'
23934 VERSION='$VERSION'
23935 RM='$RM'
23936 ofile='$ofile'
23940 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
23941 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
23942 # from automake < 1.5.
23943 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
23944 # Capture the value of LINGUAS because we need it to compute CATALOGS.
23945 LINGUAS="${LINGUAS-%UNSET%}"
23948 _ACEOF
23950 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23952 # Handling of arguments.
23953 for ac_config_target in $ac_config_targets
23955 case $ac_config_target in
23956 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
23957 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23958 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
23959 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
23960 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
23961 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
23962 "$REGEX_MAKEFILE") CONFIG_FILES="$CONFIG_FILES $REGEX_MAKEFILE" ;;
23963 "pith/osdep/Makefile") CONFIG_FILES="$CONFIG_FILES pith/osdep/Makefile" ;;
23964 "pith/charconv/Makefile") CONFIG_FILES="$CONFIG_FILES pith/charconv/Makefile" ;;
23965 "pith/Makefile") CONFIG_FILES="$CONFIG_FILES pith/Makefile" ;;
23966 "pico/osdep/Makefile") CONFIG_FILES="$CONFIG_FILES pico/osdep/Makefile" ;;
23967 "pico/Makefile") CONFIG_FILES="$CONFIG_FILES pico/Makefile" ;;
23968 "alpine/osdep/Makefile") CONFIG_FILES="$CONFIG_FILES alpine/osdep/Makefile" ;;
23969 "alpine/Makefile") CONFIG_FILES="$CONFIG_FILES alpine/Makefile" ;;
23970 "web/src/Makefile") CONFIG_FILES="$CONFIG_FILES web/src/Makefile" ;;
23971 "web/src/pubcookie/Makefile") CONFIG_FILES="$CONFIG_FILES web/src/pubcookie/Makefile" ;;
23972 "web/src/alpined.d/Makefile") CONFIG_FILES="$CONFIG_FILES web/src/alpined.d/Makefile" ;;
23973 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23975 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
23976 esac
23977 done
23980 # If the user did not use the arguments to specify the items to instantiate,
23981 # then the envvar interface is used. Set only those that are not.
23982 # We use the long form for the default assignment because of an extremely
23983 # bizarre bug on SunOS 4.1.3.
23984 if $ac_need_defaults; then
23985 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23986 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23987 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23990 # Have a temporary directory for convenience. Make it in the build tree
23991 # simply because there is no reason against having it here, and in addition,
23992 # creating and moving files from /tmp can sometimes cause problems.
23993 # Hook for its removal unless debugging.
23994 # Note that there is a small window in which the directory will not be cleaned:
23995 # after its creation but before its name has been assigned to `$tmp'.
23996 $debug ||
23998 tmp= ac_tmp=
23999 trap 'exit_status=$?
24000 : "${ac_tmp:=$tmp}"
24001 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
24003 trap 'as_fn_exit 1' 1 2 13 15
24005 # Create a (secure) tmp directory for tmp files.
24008 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24009 test -d "$tmp"
24010 } ||
24012 tmp=./conf$$-$RANDOM
24013 (umask 077 && mkdir "$tmp")
24014 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
24015 ac_tmp=$tmp
24017 # Set up the scripts for CONFIG_FILES section.
24018 # No need to generate them if there are no CONFIG_FILES.
24019 # This happens for instance with `./config.status config.h'.
24020 if test -n "$CONFIG_FILES"; then
24023 ac_cr=`echo X | tr X '\015'`
24024 # On cygwin, bash can eat \r inside `` if the user requested igncr.
24025 # But we know of no other shell where ac_cr would be empty at this
24026 # point, so we can use a bashism as a fallback.
24027 if test "x$ac_cr" = x; then
24028 eval ac_cr=\$\'\\r\'
24030 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
24031 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
24032 ac_cs_awk_cr='\\r'
24033 else
24034 ac_cs_awk_cr=$ac_cr
24037 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
24038 _ACEOF
24042 echo "cat >conf$$subs.awk <<_ACEOF" &&
24043 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
24044 echo "_ACEOF"
24045 } >conf$$subs.sh ||
24046 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24047 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
24048 ac_delim='%!_!# '
24049 for ac_last_try in false false false false false :; do
24050 . ./conf$$subs.sh ||
24051 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24053 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
24054 if test $ac_delim_n = $ac_delim_num; then
24055 break
24056 elif $ac_last_try; then
24057 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24058 else
24059 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24061 done
24062 rm -f conf$$subs.sh
24064 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24065 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
24066 _ACEOF
24067 sed -n '
24069 s/^/S["/; s/!.*/"]=/
24072 s/^[^!]*!//
24073 :repl
24074 t repl
24075 s/'"$ac_delim"'$//
24076 t delim
24079 s/\(.\{148\}\)..*/\1/
24080 t more1
24081 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
24084 b repl
24085 :more1
24086 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24089 s/.\{148\}//
24090 t nl
24091 :delim
24093 s/\(.\{148\}\)..*/\1/
24094 t more2
24095 s/["\\]/\\&/g; s/^/"/; s/$/"/
24098 :more2
24099 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24102 s/.\{148\}//
24103 t delim
24104 ' <conf$$subs.awk | sed '
24105 /^[^""]/{
24107 s/\n//
24109 ' >>$CONFIG_STATUS || ac_write_fail=1
24110 rm -f conf$$subs.awk
24111 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24112 _ACAWK
24113 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
24114 for (key in S) S_is_set[key] = 1
24115 FS = "\a"
24119 line = $ 0
24120 nfields = split(line, field, "@")
24121 substed = 0
24122 len = length(field[1])
24123 for (i = 2; i < nfields; i++) {
24124 key = field[i]
24125 keylen = length(key)
24126 if (S_is_set[key]) {
24127 value = S[key]
24128 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
24129 len += length(value) + length(field[++i])
24130 substed = 1
24131 } else
24132 len += 1 + keylen
24135 print line
24138 _ACAWK
24139 _ACEOF
24140 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24141 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
24142 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
24143 else
24145 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
24146 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
24147 _ACEOF
24149 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
24150 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
24151 # trailing colons and then remove the whole line if VPATH becomes empty
24152 # (actually we leave an empty line to preserve line numbers).
24153 if test "x$srcdir" = x.; then
24154 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
24156 s///
24157 s/^/:/
24158 s/[ ]*$/:/
24159 s/:\$(srcdir):/:/g
24160 s/:\${srcdir}:/:/g
24161 s/:@srcdir@:/:/g
24162 s/^:*//
24163 s/:*$//
24165 s/\(=[ ]*\).*/\1/
24167 s/\n//
24168 s/^[^=]*=[ ]*$//
24172 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24173 fi # test -n "$CONFIG_FILES"
24175 # Set up the scripts for CONFIG_HEADERS section.
24176 # No need to generate them if there are no CONFIG_HEADERS.
24177 # This happens for instance with `./config.status Makefile'.
24178 if test -n "$CONFIG_HEADERS"; then
24179 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
24180 BEGIN {
24181 _ACEOF
24183 # Transform confdefs.h into an awk script `defines.awk', embedded as
24184 # here-document in config.status, that substitutes the proper values into
24185 # config.h.in to produce config.h.
24187 # Create a delimiter string that does not exist in confdefs.h, to ease
24188 # handling of long lines.
24189 ac_delim='%!_!# '
24190 for ac_last_try in false false :; do
24191 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
24192 if test -z "$ac_tt"; then
24193 break
24194 elif $ac_last_try; then
24195 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
24196 else
24197 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24199 done
24201 # For the awk script, D is an array of macro values keyed by name,
24202 # likewise P contains macro parameters if any. Preserve backslash
24203 # newline sequences.
24205 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24206 sed -n '
24207 s/.\{148\}/&'"$ac_delim"'/g
24208 t rset
24209 :rset
24210 s/^[ ]*#[ ]*define[ ][ ]*/ /
24211 t def
24213 :def
24214 s/\\$//
24215 t bsnl
24216 s/["\\]/\\&/g
24217 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
24218 D["\1"]=" \3"/p
24219 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
24221 :bsnl
24222 s/["\\]/\\&/g
24223 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
24224 D["\1"]=" \3\\\\\\n"\\/p
24225 t cont
24226 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
24227 t cont
24229 :cont
24231 s/.\{148\}/&'"$ac_delim"'/g
24232 t clear
24233 :clear
24234 s/\\$//
24235 t bsnlc
24236 s/["\\]/\\&/g; s/^/"/; s/$/"/p
24238 :bsnlc
24239 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
24240 b cont
24241 ' <confdefs.h | sed '
24242 s/'"$ac_delim"'/"\\\
24243 "/g' >>$CONFIG_STATUS || ac_write_fail=1
24245 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24246 for (key in D) D_is_set[key] = 1
24247 FS = "\a"
24249 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
24250 line = \$ 0
24251 split(line, arg, " ")
24252 if (arg[1] == "#") {
24253 defundef = arg[2]
24254 mac1 = arg[3]
24255 } else {
24256 defundef = substr(arg[1], 2)
24257 mac1 = arg[2]
24259 split(mac1, mac2, "(") #)
24260 macro = mac2[1]
24261 prefix = substr(line, 1, index(line, defundef) - 1)
24262 if (D_is_set[macro]) {
24263 # Preserve the white space surrounding the "#".
24264 print prefix "define", macro P[macro] D[macro]
24265 next
24266 } else {
24267 # Replace #undef with comments. This is necessary, for example,
24268 # in the case of _POSIX_SOURCE, which is predefined and required
24269 # on some systems where configure will not decide to define it.
24270 if (defundef == "undef") {
24271 print "/*", prefix defundef, macro, "*/"
24272 next
24276 { print }
24277 _ACAWK
24278 _ACEOF
24279 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24280 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
24281 fi # test -n "$CONFIG_HEADERS"
24284 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
24285 shift
24286 for ac_tag
24288 case $ac_tag in
24289 :[FHLC]) ac_mode=$ac_tag; continue;;
24290 esac
24291 case $ac_mode$ac_tag in
24292 :[FHL]*:*);;
24293 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
24294 :[FH]-) ac_tag=-:-;;
24295 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24296 esac
24297 ac_save_IFS=$IFS
24298 IFS=:
24299 set x $ac_tag
24300 IFS=$ac_save_IFS
24301 shift
24302 ac_file=$1
24303 shift
24305 case $ac_mode in
24306 :L) ac_source=$1;;
24307 :[FH])
24308 ac_file_inputs=
24309 for ac_f
24311 case $ac_f in
24312 -) ac_f="$ac_tmp/stdin";;
24313 *) # Look for the file first in the build tree, then in the source tree
24314 # (if the path is not absolute). The absolute path cannot be DOS-style,
24315 # because $ac_f cannot contain `:'.
24316 test -f "$ac_f" ||
24317 case $ac_f in
24318 [\\/$]*) false;;
24319 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24320 esac ||
24321 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
24322 esac
24323 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
24324 as_fn_append ac_file_inputs " '$ac_f'"
24325 done
24327 # Let's still pretend it is `configure' which instantiates (i.e., don't
24328 # use $as_me), people would be surprised to read:
24329 # /* config.h. Generated by config.status. */
24330 configure_input='Generated from '`
24331 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
24332 `' by configure.'
24333 if test x"$ac_file" != x-; then
24334 configure_input="$ac_file. $configure_input"
24335 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
24336 $as_echo "$as_me: creating $ac_file" >&6;}
24338 # Neutralize special characters interpreted by sed in replacement strings.
24339 case $configure_input in #(
24340 *\&* | *\|* | *\\* )
24341 ac_sed_conf_input=`$as_echo "$configure_input" |
24342 sed 's/[\\\\&|]/\\\\&/g'`;; #(
24343 *) ac_sed_conf_input=$configure_input;;
24344 esac
24346 case $ac_tag in
24347 *:-:* | *:-) cat >"$ac_tmp/stdin" \
24348 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
24349 esac
24351 esac
24353 ac_dir=`$as_dirname -- "$ac_file" ||
24354 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24355 X"$ac_file" : 'X\(//\)[^/]' \| \
24356 X"$ac_file" : 'X\(//\)$' \| \
24357 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24358 $as_echo X"$ac_file" |
24359 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24360 s//\1/
24363 /^X\(\/\/\)[^/].*/{
24364 s//\1/
24367 /^X\(\/\/\)$/{
24368 s//\1/
24371 /^X\(\/\).*/{
24372 s//\1/
24375 s/.*/./; q'`
24376 as_dir="$ac_dir"; as_fn_mkdir_p
24377 ac_builddir=.
24379 case "$ac_dir" in
24380 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24382 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
24383 # A ".." for each directory in $ac_dir_suffix.
24384 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
24385 case $ac_top_builddir_sub in
24386 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24387 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24388 esac ;;
24389 esac
24390 ac_abs_top_builddir=$ac_pwd
24391 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24392 # for backward compatibility:
24393 ac_top_builddir=$ac_top_build_prefix
24395 case $srcdir in
24396 .) # We are building in place.
24397 ac_srcdir=.
24398 ac_top_srcdir=$ac_top_builddir_sub
24399 ac_abs_top_srcdir=$ac_pwd ;;
24400 [\\/]* | ?:[\\/]* ) # Absolute name.
24401 ac_srcdir=$srcdir$ac_dir_suffix;
24402 ac_top_srcdir=$srcdir
24403 ac_abs_top_srcdir=$srcdir ;;
24404 *) # Relative name.
24405 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24406 ac_top_srcdir=$ac_top_build_prefix$srcdir
24407 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24408 esac
24409 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24412 case $ac_mode in
24415 # CONFIG_FILE
24418 case $INSTALL in
24419 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24420 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24421 esac
24422 ac_MKDIR_P=$MKDIR_P
24423 case $MKDIR_P in
24424 [\\/$]* | ?:[\\/]* ) ;;
24425 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
24426 esac
24427 _ACEOF
24429 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24430 # If the template does not know about datarootdir, expand it.
24431 # FIXME: This hack should be removed a few years after 2.60.
24432 ac_datarootdir_hack=; ac_datarootdir_seen=
24433 ac_sed_dataroot='
24434 /datarootdir/ {
24438 /@datadir@/p
24439 /@docdir@/p
24440 /@infodir@/p
24441 /@localedir@/p
24442 /@mandir@/p'
24443 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
24444 *datarootdir*) ac_datarootdir_seen=yes;;
24445 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24446 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24447 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24448 _ACEOF
24449 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24450 ac_datarootdir_hack='
24451 s&@datadir@&$datadir&g
24452 s&@docdir@&$docdir&g
24453 s&@infodir@&$infodir&g
24454 s&@localedir@&$localedir&g
24455 s&@mandir@&$mandir&g
24456 s&\\\${datarootdir}&$datarootdir&g' ;;
24457 esac
24458 _ACEOF
24460 # Neutralize VPATH when `$srcdir' = `.'.
24461 # Shell code in configure.ac might set extrasub.
24462 # FIXME: do we really want to maintain this feature?
24463 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24464 ac_sed_extra="$ac_vpsub
24465 $extrasub
24466 _ACEOF
24467 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24469 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24470 s|@configure_input@|$ac_sed_conf_input|;t t
24471 s&@top_builddir@&$ac_top_builddir_sub&;t t
24472 s&@top_build_prefix@&$ac_top_build_prefix&;t t
24473 s&@srcdir@&$ac_srcdir&;t t
24474 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24475 s&@top_srcdir@&$ac_top_srcdir&;t t
24476 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24477 s&@builddir@&$ac_builddir&;t t
24478 s&@abs_builddir@&$ac_abs_builddir&;t t
24479 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24480 s&@INSTALL@&$ac_INSTALL&;t t
24481 s&@MKDIR_P@&$ac_MKDIR_P&;t t
24482 $ac_datarootdir_hack
24484 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
24485 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24487 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24488 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
24489 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
24490 "$ac_tmp/out"`; test -z "$ac_out"; } &&
24491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24492 which seems to be undefined. Please make sure it is defined" >&5
24493 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24494 which seems to be undefined. Please make sure it is defined" >&2;}
24496 rm -f "$ac_tmp/stdin"
24497 case $ac_file in
24498 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
24499 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
24500 esac \
24501 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24505 # CONFIG_HEADER
24507 if test x"$ac_file" != x-; then
24509 $as_echo "/* $configure_input */" \
24510 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
24511 } >"$ac_tmp/config.h" \
24512 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24513 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
24514 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
24515 $as_echo "$as_me: $ac_file is unchanged" >&6;}
24516 else
24517 rm -f "$ac_file"
24518 mv "$ac_tmp/config.h" "$ac_file" \
24519 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24521 else
24522 $as_echo "/* $configure_input */" \
24523 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
24524 || as_fn_error $? "could not create -" "$LINENO" 5
24526 # Compute "$ac_file"'s index in $config_headers.
24527 _am_arg="$ac_file"
24528 _am_stamp_count=1
24529 for _am_header in $config_headers :; do
24530 case $_am_header in
24531 $_am_arg | $_am_arg:* )
24532 break ;;
24534 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24535 esac
24536 done
24537 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
24538 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24539 X"$_am_arg" : 'X\(//\)[^/]' \| \
24540 X"$_am_arg" : 'X\(//\)$' \| \
24541 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
24542 $as_echo X"$_am_arg" |
24543 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24544 s//\1/
24547 /^X\(\/\/\)[^/].*/{
24548 s//\1/
24551 /^X\(\/\/\)$/{
24552 s//\1/
24555 /^X\(\/\).*/{
24556 s//\1/
24559 s/.*/./; q'`/stamp-h$_am_stamp_count
24562 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
24563 $as_echo "$as_me: executing $ac_file commands" >&6;}
24565 esac
24568 case $ac_file$ac_mode in
24569 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
24570 # Older Autoconf quotes --file arguments for eval, but not when files
24571 # are listed without --file. Let's play safe and only enable the eval
24572 # if we detect the quoting.
24573 case $CONFIG_FILES in
24574 *\'*) eval set x "$CONFIG_FILES" ;;
24575 *) set x $CONFIG_FILES ;;
24576 esac
24577 shift
24578 for mf
24580 # Strip MF so we end up with the name of the file.
24581 mf=`echo "$mf" | sed -e 's/:.*$//'`
24582 # Check whether this is an Automake generated Makefile or not.
24583 # We used to match only the files named 'Makefile.in', but
24584 # some people rename them; so instead we look at the file content.
24585 # Grep'ing the first line is not enough: some people post-process
24586 # each Makefile.in and add a new line on top of each file to say so.
24587 # Grep'ing the whole file is not good either: AIX grep has a line
24588 # limit of 2048, but all sed's we know have understand at least 4000.
24589 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
24590 dirpart=`$as_dirname -- "$mf" ||
24591 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24592 X"$mf" : 'X\(//\)[^/]' \| \
24593 X"$mf" : 'X\(//\)$' \| \
24594 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
24595 $as_echo X"$mf" |
24596 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24597 s//\1/
24600 /^X\(\/\/\)[^/].*/{
24601 s//\1/
24604 /^X\(\/\/\)$/{
24605 s//\1/
24608 /^X\(\/\).*/{
24609 s//\1/
24612 s/.*/./; q'`
24613 else
24614 continue
24616 # Extract the definition of DEPDIR, am__include, and am__quote
24617 # from the Makefile without running 'make'.
24618 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
24619 test -z "$DEPDIR" && continue
24620 am__include=`sed -n 's/^am__include = //p' < "$mf"`
24621 test -z "$am__include" && continue
24622 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
24623 # Find all dependency output files, they are included files with
24624 # $(DEPDIR) in their names. We invoke sed twice because it is the
24625 # simplest approach to changing $(DEPDIR) to its actual value in the
24626 # expansion.
24627 for file in `sed -n "
24628 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24629 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
24630 # Make sure the directory exists.
24631 test -f "$dirpart/$file" && continue
24632 fdir=`$as_dirname -- "$file" ||
24633 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24634 X"$file" : 'X\(//\)[^/]' \| \
24635 X"$file" : 'X\(//\)$' \| \
24636 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
24637 $as_echo X"$file" |
24638 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24639 s//\1/
24642 /^X\(\/\/\)[^/].*/{
24643 s//\1/
24646 /^X\(\/\/\)$/{
24647 s//\1/
24650 /^X\(\/\).*/{
24651 s//\1/
24654 s/.*/./; q'`
24655 as_dir=$dirpart/$fdir; as_fn_mkdir_p
24656 # echo "creating $dirpart/$file"
24657 echo '# dummy' > "$dirpart/$file"
24658 done
24659 done
24662 "libtool":C)
24664 # See if we are running on zsh, and set the options that allow our
24665 # commands through without removal of \ escapes.
24666 if test -n "${ZSH_VERSION+set}"; then
24667 setopt NO_GLOB_SUBST
24670 cfgfile=${ofile}T
24671 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
24672 $RM "$cfgfile"
24674 cat <<_LT_EOF >> "$cfgfile"
24675 #! $SHELL
24676 # Generated automatically by $as_me ($PACKAGE) $VERSION
24677 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
24679 # Provide generalized library-building support services.
24680 # Written by Gordon Matzigkeit, 1996
24682 # Copyright (C) 2014 Free Software Foundation, Inc.
24683 # This is free software; see the source for copying conditions. There is NO
24684 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
24686 # GNU Libtool is free software; you can redistribute it and/or modify
24687 # it under the terms of the GNU General Public License as published by
24688 # the Free Software Foundation; either version 2 of of the License, or
24689 # (at your option) any later version.
24691 # As a special exception to the GNU General Public License, if you
24692 # distribute this file as part of a program or library that is built
24693 # using GNU Libtool, you may include this file under the same
24694 # distribution terms that you use for the rest of that program.
24696 # GNU Libtool is distributed in the hope that it will be useful, but
24697 # WITHOUT ANY WARRANTY; without even the implied warranty of
24698 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24699 # GNU General Public License for more details.
24701 # You should have received a copy of the GNU General Public License
24702 # along with this program. If not, see <http://www.gnu.org/licenses/>.
24705 # The names of the tagged configurations supported by this script.
24706 available_tags=''
24708 # Configured defaults for sys_lib_dlsearch_path munging.
24709 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
24711 # ### BEGIN LIBTOOL CONFIG
24713 # Which release of libtool.m4 was used?
24714 macro_version=$macro_version
24715 macro_revision=$macro_revision
24717 # Whether or not to build shared libraries.
24718 build_libtool_libs=$enable_shared
24720 # Whether or not to build static libraries.
24721 build_old_libs=$enable_static
24723 # What type of objects to build.
24724 pic_mode=$pic_mode
24726 # Whether or not to optimize for fast installation.
24727 fast_install=$enable_fast_install
24729 # Shared archive member basename,for filename based shared library versioning on AIX.
24730 shared_archive_member_spec=$shared_archive_member_spec
24732 # Shell to use when invoking shell scripts.
24733 SHELL=$lt_SHELL
24735 # An echo program that protects backslashes.
24736 ECHO=$lt_ECHO
24738 # The PATH separator for the build system.
24739 PATH_SEPARATOR=$lt_PATH_SEPARATOR
24741 # The host system.
24742 host_alias=$host_alias
24743 host=$host
24744 host_os=$host_os
24746 # The build system.
24747 build_alias=$build_alias
24748 build=$build
24749 build_os=$build_os
24751 # A sed program that does not truncate output.
24752 SED=$lt_SED
24754 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
24755 Xsed="\$SED -e 1s/^X//"
24757 # A grep program that handles long lines.
24758 GREP=$lt_GREP
24760 # An ERE matcher.
24761 EGREP=$lt_EGREP
24763 # A literal string matcher.
24764 FGREP=$lt_FGREP
24766 # A BSD- or MS-compatible name lister.
24767 NM=$lt_NM
24769 # Whether we need soft or hard links.
24770 LN_S=$lt_LN_S
24772 # What is the maximum length of a command?
24773 max_cmd_len=$max_cmd_len
24775 # Object file suffix (normally "o").
24776 objext=$ac_objext
24778 # Executable file suffix (normally "").
24779 exeext=$exeext
24781 # whether the shell understands "unset".
24782 lt_unset=$lt_unset
24784 # turn spaces into newlines.
24785 SP2NL=$lt_lt_SP2NL
24787 # turn newlines into spaces.
24788 NL2SP=$lt_lt_NL2SP
24790 # convert \$build file names to \$host format.
24791 to_host_file_cmd=$lt_cv_to_host_file_cmd
24793 # convert \$build files to toolchain format.
24794 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
24796 # An object symbol dumper.
24797 OBJDUMP=$lt_OBJDUMP
24799 # Method to check whether dependent libraries are shared objects.
24800 deplibs_check_method=$lt_deplibs_check_method
24802 # Command to use when deplibs_check_method = "file_magic".
24803 file_magic_cmd=$lt_file_magic_cmd
24805 # How to find potential files when deplibs_check_method = "file_magic".
24806 file_magic_glob=$lt_file_magic_glob
24808 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
24809 want_nocaseglob=$lt_want_nocaseglob
24811 # DLL creation program.
24812 DLLTOOL=$lt_DLLTOOL
24814 # Command to associate shared and link libraries.
24815 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
24817 # The archiver.
24818 AR=$lt_AR
24820 # Flags to create an archive.
24821 AR_FLAGS=$lt_AR_FLAGS
24823 # How to feed a file listing to the archiver.
24824 archiver_list_spec=$lt_archiver_list_spec
24826 # A symbol stripping program.
24827 STRIP=$lt_STRIP
24829 # Commands used to install an old-style archive.
24830 RANLIB=$lt_RANLIB
24831 old_postinstall_cmds=$lt_old_postinstall_cmds
24832 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24834 # Whether to use a lock for old archive extraction.
24835 lock_old_archive_extraction=$lock_old_archive_extraction
24837 # A C compiler.
24838 LTCC=$lt_CC
24840 # LTCC compiler flags.
24841 LTCFLAGS=$lt_CFLAGS
24843 # Take the output of nm and produce a listing of raw symbols and C names.
24844 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24846 # Transform the output of nm in a proper C declaration.
24847 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24849 # Transform the output of nm into a list of symbols to manually relocate.
24850 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
24852 # Transform the output of nm in a C name address pair.
24853 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24855 # Transform the output of nm in a C name address pair when lib prefix is needed.
24856 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
24858 # The name lister interface.
24859 nm_interface=$lt_lt_cv_nm_interface
24861 # Specify filename containing input files for \$NM.
24862 nm_file_list_spec=$lt_nm_file_list_spec
24864 # The root where to search for dependent libraries,and where our libraries should be installed.
24865 lt_sysroot=$lt_sysroot
24867 # Command to truncate a binary pipe.
24868 lt_truncate_bin=$lt_lt_cv_truncate_bin
24870 # The name of the directory that contains temporary libtool files.
24871 objdir=$objdir
24873 # Used to examine libraries when file_magic_cmd begins with "file".
24874 MAGIC_CMD=$MAGIC_CMD
24876 # Must we lock files when doing compilation?
24877 need_locks=$lt_need_locks
24879 # Manifest tool.
24880 MANIFEST_TOOL=$lt_MANIFEST_TOOL
24882 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
24883 DSYMUTIL=$lt_DSYMUTIL
24885 # Tool to change global to local symbols on Mac OS X.
24886 NMEDIT=$lt_NMEDIT
24888 # Tool to manipulate fat objects and archives on Mac OS X.
24889 LIPO=$lt_LIPO
24891 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
24892 OTOOL=$lt_OTOOL
24894 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
24895 OTOOL64=$lt_OTOOL64
24897 # Old archive suffix (normally "a").
24898 libext=$libext
24900 # Shared library suffix (normally ".so").
24901 shrext_cmds=$lt_shrext_cmds
24903 # The commands to extract the exported symbol list from a shared archive.
24904 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24906 # Variables whose values should be saved in libtool wrapper scripts and
24907 # restored at link time.
24908 variables_saved_for_relink=$lt_variables_saved_for_relink
24910 # Do we need the "lib" prefix for modules?
24911 need_lib_prefix=$need_lib_prefix
24913 # Do we need a version for libraries?
24914 need_version=$need_version
24916 # Library versioning type.
24917 version_type=$version_type
24919 # Shared library runtime path variable.
24920 runpath_var=$runpath_var
24922 # Shared library path variable.
24923 shlibpath_var=$shlibpath_var
24925 # Is shlibpath searched before the hard-coded library search path?
24926 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24928 # Format of library name prefix.
24929 libname_spec=$lt_libname_spec
24931 # List of archive names. First name is the real one, the rest are links.
24932 # The last name is the one that the linker finds with -lNAME
24933 library_names_spec=$lt_library_names_spec
24935 # The coded name of the library, if different from the real name.
24936 soname_spec=$lt_soname_spec
24938 # Permission mode override for installation of shared libraries.
24939 install_override_mode=$lt_install_override_mode
24941 # Command to use after installation of a shared archive.
24942 postinstall_cmds=$lt_postinstall_cmds
24944 # Command to use after uninstallation of a shared archive.
24945 postuninstall_cmds=$lt_postuninstall_cmds
24947 # Commands used to finish a libtool library installation in a directory.
24948 finish_cmds=$lt_finish_cmds
24950 # As "finish_cmds", except a single script fragment to be evaled but
24951 # not shown.
24952 finish_eval=$lt_finish_eval
24954 # Whether we should hardcode library paths into libraries.
24955 hardcode_into_libs=$hardcode_into_libs
24957 # Compile-time system search path for libraries.
24958 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24960 # Detected run-time system search path for libraries.
24961 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
24963 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
24964 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
24966 # Whether dlopen is supported.
24967 dlopen_support=$enable_dlopen
24969 # Whether dlopen of programs is supported.
24970 dlopen_self=$enable_dlopen_self
24972 # Whether dlopen of statically linked programs is supported.
24973 dlopen_self_static=$enable_dlopen_self_static
24975 # Commands to strip libraries.
24976 old_striplib=$lt_old_striplib
24977 striplib=$lt_striplib
24980 # The linker used to build libraries.
24981 LD=$lt_LD
24983 # How to create reloadable object files.
24984 reload_flag=$lt_reload_flag
24985 reload_cmds=$lt_reload_cmds
24987 # Commands used to build an old-style archive.
24988 old_archive_cmds=$lt_old_archive_cmds
24990 # A language specific compiler.
24991 CC=$lt_compiler
24993 # Is the compiler the GNU compiler?
24994 with_gcc=$GCC
24996 # Compiler flag to turn off builtin functions.
24997 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
24999 # Additional compiler flags for building library objects.
25000 pic_flag=$lt_lt_prog_compiler_pic
25002 # How to pass a linker flag through the compiler.
25003 wl=$lt_lt_prog_compiler_wl
25005 # Compiler flag to prevent dynamic linking.
25006 link_static_flag=$lt_lt_prog_compiler_static
25008 # Does compiler simultaneously support -c and -o options?
25009 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
25011 # Whether or not to add -lc for building shared libraries.
25012 build_libtool_need_lc=$archive_cmds_need_lc
25014 # Whether or not to disallow shared libs when runtime libs are static.
25015 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
25017 # Compiler flag to allow reflexive dlopens.
25018 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
25020 # Compiler flag to generate shared objects directly from archives.
25021 whole_archive_flag_spec=$lt_whole_archive_flag_spec
25023 # Whether the compiler copes with passing no objects directly.
25024 compiler_needs_object=$lt_compiler_needs_object
25026 # Create an old-style archive from a shared archive.
25027 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
25029 # Create a temporary old-style archive to link instead of a shared archive.
25030 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
25032 # Commands used to build a shared archive.
25033 archive_cmds=$lt_archive_cmds
25034 archive_expsym_cmds=$lt_archive_expsym_cmds
25036 # Commands used to build a loadable module if different from building
25037 # a shared archive.
25038 module_cmds=$lt_module_cmds
25039 module_expsym_cmds=$lt_module_expsym_cmds
25041 # Whether we are building with GNU ld or not.
25042 with_gnu_ld=$lt_with_gnu_ld
25044 # Flag that allows shared libraries with undefined symbols to be built.
25045 allow_undefined_flag=$lt_allow_undefined_flag
25047 # Flag that enforces no undefined symbols.
25048 no_undefined_flag=$lt_no_undefined_flag
25050 # Flag to hardcode \$libdir into a binary during linking.
25051 # This must work even if \$libdir does not exist
25052 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
25054 # Whether we need a single "-rpath" flag with a separated argument.
25055 hardcode_libdir_separator=$lt_hardcode_libdir_separator
25057 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
25058 # DIR into the resulting binary.
25059 hardcode_direct=$hardcode_direct
25061 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
25062 # DIR into the resulting binary and the resulting library dependency is
25063 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
25064 # library is relocated.
25065 hardcode_direct_absolute=$hardcode_direct_absolute
25067 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
25068 # into the resulting binary.
25069 hardcode_minus_L=$hardcode_minus_L
25071 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
25072 # into the resulting binary.
25073 hardcode_shlibpath_var=$hardcode_shlibpath_var
25075 # Set to "yes" if building a shared library automatically hardcodes DIR
25076 # into the library and all subsequent libraries and executables linked
25077 # against it.
25078 hardcode_automatic=$hardcode_automatic
25080 # Set to yes if linker adds runtime paths of dependent libraries
25081 # to runtime path list.
25082 inherit_rpath=$inherit_rpath
25084 # Whether libtool must link a program against all its dependency libraries.
25085 link_all_deplibs=$link_all_deplibs
25087 # Set to "yes" if exported symbols are required.
25088 always_export_symbols=$always_export_symbols
25090 # The commands to list exported symbols.
25091 export_symbols_cmds=$lt_export_symbols_cmds
25093 # Symbols that should not be listed in the preloaded symbols.
25094 exclude_expsyms=$lt_exclude_expsyms
25096 # Symbols that must always be exported.
25097 include_expsyms=$lt_include_expsyms
25099 # Commands necessary for linking programs (against libraries) with templates.
25100 prelink_cmds=$lt_prelink_cmds
25102 # Commands necessary for finishing linking programs.
25103 postlink_cmds=$lt_postlink_cmds
25105 # Specify filename containing input files.
25106 file_list_spec=$lt_file_list_spec
25108 # How to hardcode a shared library path into an executable.
25109 hardcode_action=$hardcode_action
25111 # ### END LIBTOOL CONFIG
25113 _LT_EOF
25115 cat <<'_LT_EOF' >> "$cfgfile"
25117 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
25119 # func_munge_path_list VARIABLE PATH
25120 # -----------------------------------
25121 # VARIABLE is name of variable containing _space_ separated list of
25122 # directories to be munged by the contents of PATH, which is string
25123 # having a format:
25124 # "DIR[:DIR]:"
25125 # string "DIR[ DIR]" will be prepended to VARIABLE
25126 # ":DIR[:DIR]"
25127 # string "DIR[ DIR]" will be appended to VARIABLE
25128 # "DIRP[:DIRP]::[DIRA:]DIRA"
25129 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
25130 # "DIRA[ DIRA]" will be appended to VARIABLE
25131 # "DIR[:DIR]"
25132 # VARIABLE will be replaced by "DIR[ DIR]"
25133 func_munge_path_list ()
25135 case x$2 in
25139 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
25141 x:*)
25142 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
25144 *::*)
25145 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
25146 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
25149 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
25151 esac
25155 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
25156 func_cc_basename ()
25158 for cc_temp in $*""; do
25159 case $cc_temp in
25160 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
25161 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
25162 \-*) ;;
25163 *) break;;
25164 esac
25165 done
25166 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
25170 # ### END FUNCTIONS SHARED WITH CONFIGURE
25172 _LT_EOF
25174 case $host_os in
25175 aix3*)
25176 cat <<\_LT_EOF >> "$cfgfile"
25177 # AIX sometimes has problems with the GCC collect2 program. For some
25178 # reason, if we set the COLLECT_NAMES environment variable, the problems
25179 # vanish in a puff of smoke.
25180 if test set != "${COLLECT_NAMES+set}"; then
25181 COLLECT_NAMES=
25182 export COLLECT_NAMES
25184 _LT_EOF
25186 esac
25189 ltmain=$ac_aux_dir/ltmain.sh
25192 # We use sed instead of cat because bash on DJGPP gets confused if
25193 # if finds mixed CR/LF and LF-only lines. Since sed operates in
25194 # text mode, it properly converts lines to CR/LF. This bash problem
25195 # is reportedly fixed, but why not run on old versions too?
25196 sed '$q' "$ltmain" >> "$cfgfile" \
25197 || (rm -f "$cfgfile"; exit 1)
25199 mv -f "$cfgfile" "$ofile" ||
25200 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
25201 chmod +x "$ofile"
25204 "po-directories":C)
25205 for ac_file in $CONFIG_FILES; do
25206 # Support "outfile[:infile[:infile...]]"
25207 case "$ac_file" in
25208 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
25209 esac
25210 # PO directories have a Makefile.in generated from Makefile.in.in.
25211 case "$ac_file" in */Makefile.in)
25212 # Adjust a relative srcdir.
25213 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
25214 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
25215 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
25216 # In autoconf-2.13 it is called $ac_given_srcdir.
25217 # In autoconf-2.50 it is called $srcdir.
25218 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
25219 case "$ac_given_srcdir" in
25220 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
25221 /*) top_srcdir="$ac_given_srcdir" ;;
25222 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
25223 esac
25224 # Treat a directory as a PO directory if and only if it has a
25225 # POTFILES.in file. This allows packages to have multiple PO
25226 # directories under different names or in different locations.
25227 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
25228 rm -f "$ac_dir/POTFILES"
25229 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
25230 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
25231 POMAKEFILEDEPS="POTFILES.in"
25232 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
25233 # on $ac_dir but don't depend on user-specified configuration
25234 # parameters.
25235 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
25236 # The LINGUAS file contains the set of available languages.
25237 if test -n "$OBSOLETE_ALL_LINGUAS"; then
25238 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
25240 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
25241 # Hide the ALL_LINGUAS assigment from automake < 1.5.
25242 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
25243 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
25244 else
25245 # The set of available languages was given in configure.in.
25246 # Hide the ALL_LINGUAS assigment from automake < 1.5.
25247 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
25249 # Compute POFILES
25250 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
25251 # Compute UPDATEPOFILES
25252 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
25253 # Compute DUMMYPOFILES
25254 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
25255 # Compute GMOFILES
25256 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
25257 case "$ac_given_srcdir" in
25258 .) srcdirpre= ;;
25259 *) srcdirpre='$(srcdir)/' ;;
25260 esac
25261 POFILES=
25262 UPDATEPOFILES=
25263 DUMMYPOFILES=
25264 GMOFILES=
25265 for lang in $ALL_LINGUAS; do
25266 POFILES="$POFILES $srcdirpre$lang.po"
25267 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
25268 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
25269 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
25270 done
25271 # CATALOGS depends on both $ac_dir and the user's LINGUAS
25272 # environment variable.
25273 INST_LINGUAS=
25274 if test -n "$ALL_LINGUAS"; then
25275 for presentlang in $ALL_LINGUAS; do
25276 useit=no
25277 if test "%UNSET%" != "$LINGUAS"; then
25278 desiredlanguages="$LINGUAS"
25279 else
25280 desiredlanguages="$ALL_LINGUAS"
25282 for desiredlang in $desiredlanguages; do
25283 # Use the presentlang catalog if desiredlang is
25284 # a. equal to presentlang, or
25285 # b. a variant of presentlang (because in this case,
25286 # presentlang can be used as a fallback for messages
25287 # which are not translated in the desiredlang catalog).
25288 case "$desiredlang" in
25289 "$presentlang"*) useit=yes;;
25290 esac
25291 done
25292 if test $useit = yes; then
25293 INST_LINGUAS="$INST_LINGUAS $presentlang"
25295 done
25297 CATALOGS=
25298 if test -n "$INST_LINGUAS"; then
25299 for lang in $INST_LINGUAS; do
25300 CATALOGS="$CATALOGS $lang.gmo"
25301 done
25303 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
25304 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"
25305 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
25306 if test -f "$f"; then
25307 case "$f" in
25308 *.orig | *.bak | *~) ;;
25309 *) cat "$f" >> "$ac_dir/Makefile" ;;
25310 esac
25312 done
25315 esac
25316 done ;;
25318 esac
25319 done # for ac_tag
25322 as_fn_exit 0
25323 _ACEOF
25324 ac_clean_files=$ac_clean_files_save
25326 test $ac_write_fail = 0 ||
25327 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
25330 # configure is writing to config.log, and then calls config.status.
25331 # config.status does its own redirection, appending to config.log.
25332 # Unfortunately, on DOS this fails, as config.log is still kept open
25333 # by configure, so config.status won't be able to write to it; its
25334 # output is simply discarded. So we exec the FD to /dev/null,
25335 # effectively closing config.log, so it can be properly (re)opened and
25336 # appended to by config.status. When coming back to configure, we
25337 # need to make the FD available again.
25338 if test "$no_create" != yes; then
25339 ac_cs_success=:
25340 ac_config_status_args=
25341 test "$silent" = yes &&
25342 ac_config_status_args="$ac_config_status_args --quiet"
25343 exec 5>/dev/null
25344 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25345 exec 5>>config.log
25346 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25347 # would make configure fail if this is the last instruction.
25348 $ac_cs_success || as_fn_exit 1
25350 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
25351 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
25352 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}