* Fix of the list of files in the browser for terminals that need to erase
[alpine.git] / configure
blob4acb2721c75e5d59a40fe45ed1f88440b6cadcaa
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.24.1.
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.24.1'
595 PACKAGE_STRING='alpine 2.24.1'
596 PACKAGE_BUGREPORT='chappa@washington.edu'
597 PACKAGE_URL=''
599 ac_unique_file="include/system.h"
600 # Factoring default headers for most tests.
601 ac_includes_default="\
602 #include <stdio.h>
603 #ifdef HAVE_SYS_TYPES_H
604 # include <sys/types.h>
605 #endif
606 #ifdef HAVE_SYS_STAT_H
607 # include <sys/stat.h>
608 #endif
609 #ifdef STDC_HEADERS
610 # include <stdlib.h>
611 # include <stddef.h>
612 #else
613 # ifdef HAVE_STDLIB_H
614 # include <stdlib.h>
615 # endif
616 #endif
617 #ifdef HAVE_STRING_H
618 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619 # include <memory.h>
620 # endif
621 # include <string.h>
622 #endif
623 #ifdef HAVE_STRINGS_H
624 # include <strings.h>
625 #endif
626 #ifdef HAVE_INTTYPES_H
627 # include <inttypes.h>
628 #endif
629 #ifdef HAVE_STDINT_H
630 # include <stdint.h>
631 #endif
632 #ifdef HAVE_UNISTD_H
633 # include <unistd.h>
634 #endif"
636 gt_needs=
637 ac_subst_vars='am__EXEEXT_FALSE
638 am__EXEEXT_TRUE
639 LTLIBOBJS
640 LIBOBJS
641 AM_LDFLAGS
642 AM_CFLAGS
643 WEB_PUBCOOKIE_LINK
644 WEB_PUBCOOKIE_LIB
645 WEB_PUBCOOKIE_BUILD
646 WEB_BINDIR
647 WEB_BUILD
648 REGEX_BUILD
649 C_CLIENT_SPECIALS
650 C_CLIENT_AUTHS
651 C_CLIENT_GCCOPTLEVEL
652 C_CLIENT_LDFLAGS
653 C_CLIENT_CFLAGS
654 C_CLIENT_WITH_IPV6
655 C_CLIENT_TARGET
656 PTHREAD_CFLAGS
657 PTHREAD_LIBS
658 PTHREAD_CC
659 acx_pthread_config
660 C_CLIENT_BUNDLED
661 alpine_interactive_spellcheck
662 ISPELLPROG
663 alpine_simple_spellcheck
664 SPELLPROG
665 PWPROG
666 NPA_PROG
667 SENDMAIL
668 ALPINE_HOSTSTAMP
669 ALPINE_DATESTAMP
670 POSUB
671 LTLIBINTL
672 LIBINTL
673 INTLLIBS
674 LTLIBICONV
675 LIBICONV
676 INTL_MACOSX_LIBS
677 MSGMERGE
678 XGETTEXT_015
679 XGETTEXT
680 GMSGFMT_015
681 MSGFMT_015
682 GMSGFMT
683 MSGFMT
684 USE_NLS
685 MAKE
690 LIBTOOL_DEPS
692 LT_SYS_LIBRARY_PATH
693 OTOOL64
694 OTOOL
695 LIPO
696 NMEDIT
697 DSYMUTIL
698 MANIFEST_TOOL
699 RANLIB
700 ac_ct_AR
702 DLLTOOL
703 OBJDUMP
705 ac_ct_DUMPBIN
706 DUMPBIN
708 FGREP
709 EGREP
710 GREP
712 LIBTOOL
713 LN_S
714 am__fastdepCC_FALSE
715 am__fastdepCC_TRUE
716 CCDEPMODE
717 am__nodep
718 AMDEPBACKSLASH
719 AMDEP_FALSE
720 AMDEP_TRUE
721 am__quote
722 am__include
723 DEPDIR
724 OBJEXT
725 EXEEXT
726 ac_ct_CC
727 CPPFLAGS
728 LDFLAGS
729 CFLAGS
731 host_os
732 host_vendor
733 host_cpu
734 host
735 build_os
736 build_vendor
737 build_cpu
738 build
739 MAINT
740 MAINTAINER_MODE_FALSE
741 MAINTAINER_MODE_TRUE
742 AM_BACKSLASH
743 AM_DEFAULT_VERBOSITY
744 AM_DEFAULT_V
745 AM_V
746 am__untar
747 am__tar
748 AMTAR
749 am__leading_dot
750 SET_MAKE
752 mkdir_p
753 MKDIR_P
754 INSTALL_STRIP_PROGRAM
755 STRIP
756 install_sh
757 MAKEINFO
758 AUTOHEADER
759 AUTOMAKE
760 AUTOCONF
761 ACLOCAL
762 VERSION
763 PACKAGE
764 CYGPATH_W
765 am__isrc
766 INSTALL_DATA
767 INSTALL_SCRIPT
768 INSTALL_PROGRAM
769 target_alias
770 host_alias
771 build_alias
772 LIBS
773 ECHO_T
774 ECHO_N
775 ECHO_C
776 DEFS
777 mandir
778 localedir
779 libdir
780 psdir
781 pdfdir
782 dvidir
783 htmldir
784 infodir
785 docdir
786 oldincludedir
787 includedir
788 localstatedir
789 sharedstatedir
790 sysconfdir
791 datadir
792 datarootdir
793 libexecdir
794 sbindir
795 bindir
796 program_transform_name
797 prefix
798 exec_prefix
799 PACKAGE_URL
800 PACKAGE_BUGREPORT
801 PACKAGE_STRING
802 PACKAGE_VERSION
803 PACKAGE_TARNAME
804 PACKAGE_NAME
805 PATH_SEPARATOR
806 SHELL'
807 ac_subst_files=''
808 ac_user_opts='
809 enable_option_checking
810 enable_silent_rules
811 enable_maintainer_mode
812 enable_dependency_tracking
813 enable_shared
814 enable_static
815 with_pic
816 enable_fast_install
817 with_aix_soname
818 with_gnu_ld
819 with_sysroot
820 enable_libtool_lock
821 enable_nls
822 enable_rpath
823 with_libiconv_prefix
824 with_libintl_prefix
825 enable_dmalloc
826 with_dmalloc_dir
827 with_date_stamp
828 with_host_stamp
829 with_localedir
830 enable_osx_universal_binaries
831 with_include_path
832 with_lib_path
833 with_pubcookie
834 with_web_bin
835 enable_debug
836 enable_optimization
837 enable_mouse
838 enable_quotas
839 enable_from_changing
840 enable_background_post
841 enable_keyboard_lock
842 enable_from_encoding
843 with_smtp_msa
844 with_smtp_msa_flags
845 with_npa
846 with_npa_flags
847 with_password_prog
848 with_simple_spellcheck
849 with_interactive_spellcheck
850 with_system_pinerc
851 with_system_fixed_pinerc
852 with_local_support_info
853 with_mailcheck_interval
854 with_checkpoint_interval
855 with_checkpoint_frequency
856 with_display_rows
857 with_display_columns
858 with_max_display_rows
859 with_max_display_columns
860 with_fill_column
861 with_max_fill_column
862 with_debug_level
863 with_debug_files
864 with_debug_file
865 with_forwarded_keyword
866 with_display_overlap
867 with_display_margin
868 with_default_fcc
869 with_default_save_folder
870 with_default_legacy_postponed_folder
871 with_default_postponed_folder
872 with_default_trash_folder
873 with_default_interrupted_mail
874 with_default_dead_letter_folder
875 with_default_mail_directory
876 with_default_inbox_name
877 with_default_signature_file
878 with_default_elm_style_save
879 with_default_header_in_reply
880 with_default_old_style_reply
881 with_default_use_only_domain_name
882 with_default_save_by_sender
883 with_default_sort_key
884 with_default_addressbook_sort_rule
885 with_default_folder_sort_rule
886 with_default_saved_message_name_rule
887 with_default_fcc_rule
888 with_default_standard_printer
889 with_default_ansi_printer
890 with_default_addressbook
891 with_default_local_fullname
892 with_default_local_address
893 with_default_keyboard_lock_count
894 with_default_remote_addressbook_history
895 with_default_html_directory
896 with_smime_public_cert_directory
897 with_smime_private_key_directory
898 with_smime_cacert_directory
899 with_default_printer
900 with_passfile
901 with_local_password_cache
902 with_local_password_cache_method
903 with_default_sshpath
904 with_default_sshcmd
905 with_ssl
906 with_ssl_dir
907 with_ssl_certs_dir
908 with_ssl_include_dir
909 with_ssl_lib_dir
910 with_encryption_minimum_version
911 with_encryption_maximum_version
912 with_encryption_range
913 with_krb5
914 with_krb5_dir
915 with_krb5_include_dir
916 with_krb5_lib_dir
917 with_ldap
918 with_ldap_dir
919 with_ldap_include_dir
920 with_ldap_lib_dir
921 with_smime
922 with_tcl
923 with_tcl_lib_dir
924 with_tcl_lib
925 with_tcl_include
926 with_supplied_regex
927 with_pthread
928 with_system_mail_directory
929 with_c_client_target
930 with_bundled_tools
931 with_ipv6
932 with_dlopen
933 with_ntlm
935 ac_precious_vars='build_alias
936 host_alias
937 target_alias
939 CFLAGS
940 LDFLAGS
941 LIBS
942 CPPFLAGS
943 LT_SYS_LIBRARY_PATH
944 CPP'
947 # Initialize some variables set by options.
948 ac_init_help=
949 ac_init_version=false
950 ac_unrecognized_opts=
951 ac_unrecognized_sep=
952 # The variables have the same names as the options, with
953 # dashes changed to underlines.
954 cache_file=/dev/null
955 exec_prefix=NONE
956 no_create=
957 no_recursion=
958 prefix=NONE
959 program_prefix=NONE
960 program_suffix=NONE
961 program_transform_name=s,x,x,
962 silent=
963 site=
964 srcdir=
965 verbose=
966 x_includes=NONE
967 x_libraries=NONE
969 # Installation directory options.
970 # These are left unexpanded so users can "make install exec_prefix=/foo"
971 # and all the variables that are supposed to be based on exec_prefix
972 # by default will actually change.
973 # Use braces instead of parens because sh, perl, etc. also accept them.
974 # (The list follows the same order as the GNU Coding Standards.)
975 bindir='${exec_prefix}/bin'
976 sbindir='${exec_prefix}/sbin'
977 libexecdir='${exec_prefix}/libexec'
978 datarootdir='${prefix}/share'
979 datadir='${datarootdir}'
980 sysconfdir='${prefix}/etc'
981 sharedstatedir='${prefix}/com'
982 localstatedir='${prefix}/var'
983 includedir='${prefix}/include'
984 oldincludedir='/usr/include'
985 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
986 infodir='${datarootdir}/info'
987 htmldir='${docdir}'
988 dvidir='${docdir}'
989 pdfdir='${docdir}'
990 psdir='${docdir}'
991 libdir='${exec_prefix}/lib'
992 localedir='${datarootdir}/locale'
993 mandir='${datarootdir}/man'
995 ac_prev=
996 ac_dashdash=
997 for ac_option
999 # If the previous option needs an argument, assign it.
1000 if test -n "$ac_prev"; then
1001 eval $ac_prev=\$ac_option
1002 ac_prev=
1003 continue
1006 case $ac_option in
1007 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1008 *=) ac_optarg= ;;
1009 *) ac_optarg=yes ;;
1010 esac
1012 # Accept the important Cygnus configure options, so we can diagnose typos.
1014 case $ac_dashdash$ac_option in
1016 ac_dashdash=yes ;;
1018 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1019 ac_prev=bindir ;;
1020 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1021 bindir=$ac_optarg ;;
1023 -build | --build | --buil | --bui | --bu)
1024 ac_prev=build_alias ;;
1025 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1026 build_alias=$ac_optarg ;;
1028 -cache-file | --cache-file | --cache-fil | --cache-fi \
1029 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1030 ac_prev=cache_file ;;
1031 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1032 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1033 cache_file=$ac_optarg ;;
1035 --config-cache | -C)
1036 cache_file=config.cache ;;
1038 -datadir | --datadir | --datadi | --datad)
1039 ac_prev=datadir ;;
1040 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1041 datadir=$ac_optarg ;;
1043 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1044 | --dataroo | --dataro | --datar)
1045 ac_prev=datarootdir ;;
1046 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1047 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1048 datarootdir=$ac_optarg ;;
1050 -disable-* | --disable-*)
1051 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1052 # Reject names that are not valid shell variable names.
1053 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1054 as_fn_error $? "invalid feature name: $ac_useropt"
1055 ac_useropt_orig=$ac_useropt
1056 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1057 case $ac_user_opts in
1059 "enable_$ac_useropt"
1060 "*) ;;
1061 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1062 ac_unrecognized_sep=', ';;
1063 esac
1064 eval enable_$ac_useropt=no ;;
1066 -docdir | --docdir | --docdi | --doc | --do)
1067 ac_prev=docdir ;;
1068 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1069 docdir=$ac_optarg ;;
1071 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1072 ac_prev=dvidir ;;
1073 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1074 dvidir=$ac_optarg ;;
1076 -enable-* | --enable-*)
1077 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1078 # Reject names that are not valid shell variable names.
1079 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1080 as_fn_error $? "invalid feature name: $ac_useropt"
1081 ac_useropt_orig=$ac_useropt
1082 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1083 case $ac_user_opts in
1085 "enable_$ac_useropt"
1086 "*) ;;
1087 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1088 ac_unrecognized_sep=', ';;
1089 esac
1090 eval enable_$ac_useropt=\$ac_optarg ;;
1092 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1093 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1094 | --exec | --exe | --ex)
1095 ac_prev=exec_prefix ;;
1096 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1097 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1098 | --exec=* | --exe=* | --ex=*)
1099 exec_prefix=$ac_optarg ;;
1101 -gas | --gas | --ga | --g)
1102 # Obsolete; use --with-gas.
1103 with_gas=yes ;;
1105 -help | --help | --hel | --he | -h)
1106 ac_init_help=long ;;
1107 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1108 ac_init_help=recursive ;;
1109 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1110 ac_init_help=short ;;
1112 -host | --host | --hos | --ho)
1113 ac_prev=host_alias ;;
1114 -host=* | --host=* | --hos=* | --ho=*)
1115 host_alias=$ac_optarg ;;
1117 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1118 ac_prev=htmldir ;;
1119 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1120 | --ht=*)
1121 htmldir=$ac_optarg ;;
1123 -includedir | --includedir | --includedi | --included | --include \
1124 | --includ | --inclu | --incl | --inc)
1125 ac_prev=includedir ;;
1126 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1127 | --includ=* | --inclu=* | --incl=* | --inc=*)
1128 includedir=$ac_optarg ;;
1130 -infodir | --infodir | --infodi | --infod | --info | --inf)
1131 ac_prev=infodir ;;
1132 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1133 infodir=$ac_optarg ;;
1135 -libdir | --libdir | --libdi | --libd)
1136 ac_prev=libdir ;;
1137 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1138 libdir=$ac_optarg ;;
1140 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1141 | --libexe | --libex | --libe)
1142 ac_prev=libexecdir ;;
1143 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1144 | --libexe=* | --libex=* | --libe=*)
1145 libexecdir=$ac_optarg ;;
1147 -localedir | --localedir | --localedi | --localed | --locale)
1148 ac_prev=localedir ;;
1149 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1150 localedir=$ac_optarg ;;
1152 -localstatedir | --localstatedir | --localstatedi | --localstated \
1153 | --localstate | --localstat | --localsta | --localst | --locals)
1154 ac_prev=localstatedir ;;
1155 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1156 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1157 localstatedir=$ac_optarg ;;
1159 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1160 ac_prev=mandir ;;
1161 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1162 mandir=$ac_optarg ;;
1164 -nfp | --nfp | --nf)
1165 # Obsolete; use --without-fp.
1166 with_fp=no ;;
1168 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1169 | --no-cr | --no-c | -n)
1170 no_create=yes ;;
1172 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1173 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1174 no_recursion=yes ;;
1176 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1177 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1178 | --oldin | --oldi | --old | --ol | --o)
1179 ac_prev=oldincludedir ;;
1180 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1181 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1182 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1183 oldincludedir=$ac_optarg ;;
1185 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1186 ac_prev=prefix ;;
1187 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1188 prefix=$ac_optarg ;;
1190 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1191 | --program-pre | --program-pr | --program-p)
1192 ac_prev=program_prefix ;;
1193 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1194 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1195 program_prefix=$ac_optarg ;;
1197 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1198 | --program-suf | --program-su | --program-s)
1199 ac_prev=program_suffix ;;
1200 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1201 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1202 program_suffix=$ac_optarg ;;
1204 -program-transform-name | --program-transform-name \
1205 | --program-transform-nam | --program-transform-na \
1206 | --program-transform-n | --program-transform- \
1207 | --program-transform | --program-transfor \
1208 | --program-transfo | --program-transf \
1209 | --program-trans | --program-tran \
1210 | --progr-tra | --program-tr | --program-t)
1211 ac_prev=program_transform_name ;;
1212 -program-transform-name=* | --program-transform-name=* \
1213 | --program-transform-nam=* | --program-transform-na=* \
1214 | --program-transform-n=* | --program-transform-=* \
1215 | --program-transform=* | --program-transfor=* \
1216 | --program-transfo=* | --program-transf=* \
1217 | --program-trans=* | --program-tran=* \
1218 | --progr-tra=* | --program-tr=* | --program-t=*)
1219 program_transform_name=$ac_optarg ;;
1221 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1222 ac_prev=pdfdir ;;
1223 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1224 pdfdir=$ac_optarg ;;
1226 -psdir | --psdir | --psdi | --psd | --ps)
1227 ac_prev=psdir ;;
1228 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1229 psdir=$ac_optarg ;;
1231 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1232 | -silent | --silent | --silen | --sile | --sil)
1233 silent=yes ;;
1235 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1236 ac_prev=sbindir ;;
1237 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1238 | --sbi=* | --sb=*)
1239 sbindir=$ac_optarg ;;
1241 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1242 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1243 | --sharedst | --shareds | --shared | --share | --shar \
1244 | --sha | --sh)
1245 ac_prev=sharedstatedir ;;
1246 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1247 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1248 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1249 | --sha=* | --sh=*)
1250 sharedstatedir=$ac_optarg ;;
1252 -site | --site | --sit)
1253 ac_prev=site ;;
1254 -site=* | --site=* | --sit=*)
1255 site=$ac_optarg ;;
1257 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1258 ac_prev=srcdir ;;
1259 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1260 srcdir=$ac_optarg ;;
1262 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1263 | --syscon | --sysco | --sysc | --sys | --sy)
1264 ac_prev=sysconfdir ;;
1265 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1266 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1267 sysconfdir=$ac_optarg ;;
1269 -target | --target | --targe | --targ | --tar | --ta | --t)
1270 ac_prev=target_alias ;;
1271 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1272 target_alias=$ac_optarg ;;
1274 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1275 verbose=yes ;;
1277 -version | --version | --versio | --versi | --vers | -V)
1278 ac_init_version=: ;;
1280 -with-* | --with-*)
1281 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1282 # Reject names that are not valid shell variable names.
1283 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1284 as_fn_error $? "invalid package name: $ac_useropt"
1285 ac_useropt_orig=$ac_useropt
1286 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1287 case $ac_user_opts in
1289 "with_$ac_useropt"
1290 "*) ;;
1291 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1292 ac_unrecognized_sep=', ';;
1293 esac
1294 eval with_$ac_useropt=\$ac_optarg ;;
1296 -without-* | --without-*)
1297 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1298 # Reject names that are not valid shell variable names.
1299 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1300 as_fn_error $? "invalid package name: $ac_useropt"
1301 ac_useropt_orig=$ac_useropt
1302 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1303 case $ac_user_opts in
1305 "with_$ac_useropt"
1306 "*) ;;
1307 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1308 ac_unrecognized_sep=', ';;
1309 esac
1310 eval with_$ac_useropt=no ;;
1312 --x)
1313 # Obsolete; use --with-x.
1314 with_x=yes ;;
1316 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1317 | --x-incl | --x-inc | --x-in | --x-i)
1318 ac_prev=x_includes ;;
1319 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1320 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1321 x_includes=$ac_optarg ;;
1323 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1324 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1325 ac_prev=x_libraries ;;
1326 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1327 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1328 x_libraries=$ac_optarg ;;
1330 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1331 Try \`$0 --help' for more information"
1334 *=*)
1335 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1336 # Reject names that are not valid shell variable names.
1337 case $ac_envvar in #(
1338 '' | [0-9]* | *[!_$as_cr_alnum]* )
1339 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1340 esac
1341 eval $ac_envvar=\$ac_optarg
1342 export $ac_envvar ;;
1345 # FIXME: should be removed in autoconf 3.0.
1346 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1347 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1348 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1349 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1352 esac
1353 done
1355 if test -n "$ac_prev"; then
1356 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1357 as_fn_error $? "missing argument to $ac_option"
1360 if test -n "$ac_unrecognized_opts"; then
1361 case $enable_option_checking in
1362 no) ;;
1363 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1364 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1365 esac
1368 # Check all directory arguments for consistency.
1369 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1370 datadir sysconfdir sharedstatedir localstatedir includedir \
1371 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1372 libdir localedir mandir
1374 eval ac_val=\$$ac_var
1375 # Remove trailing slashes.
1376 case $ac_val in
1377 */ )
1378 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1379 eval $ac_var=\$ac_val;;
1380 esac
1381 # Be sure to have absolute directory names.
1382 case $ac_val in
1383 [\\/$]* | ?:[\\/]* ) continue;;
1384 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1385 esac
1386 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1387 done
1389 # There might be people who depend on the old broken behavior: `$host'
1390 # used to hold the argument of --host etc.
1391 # FIXME: To remove some day.
1392 build=$build_alias
1393 host=$host_alias
1394 target=$target_alias
1396 # FIXME: To remove some day.
1397 if test "x$host_alias" != x; then
1398 if test "x$build_alias" = x; then
1399 cross_compiling=maybe
1400 elif test "x$build_alias" != "x$host_alias"; then
1401 cross_compiling=yes
1405 ac_tool_prefix=
1406 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1408 test "$silent" = yes && exec 6>/dev/null
1411 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1412 ac_ls_di=`ls -di .` &&
1413 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1414 as_fn_error $? "working directory cannot be determined"
1415 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1416 as_fn_error $? "pwd does not report name of working directory"
1419 # Find the source files, if location was not specified.
1420 if test -z "$srcdir"; then
1421 ac_srcdir_defaulted=yes
1422 # Try the directory containing this script, then the parent directory.
1423 ac_confdir=`$as_dirname -- "$as_myself" ||
1424 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1425 X"$as_myself" : 'X\(//\)[^/]' \| \
1426 X"$as_myself" : 'X\(//\)$' \| \
1427 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1428 $as_echo X"$as_myself" |
1429 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1430 s//\1/
1433 /^X\(\/\/\)[^/].*/{
1434 s//\1/
1437 /^X\(\/\/\)$/{
1438 s//\1/
1441 /^X\(\/\).*/{
1442 s//\1/
1445 s/.*/./; q'`
1446 srcdir=$ac_confdir
1447 if test ! -r "$srcdir/$ac_unique_file"; then
1448 srcdir=..
1450 else
1451 ac_srcdir_defaulted=no
1453 if test ! -r "$srcdir/$ac_unique_file"; then
1454 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1455 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1457 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1458 ac_abs_confdir=`(
1459 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1460 pwd)`
1461 # When building in place, set srcdir=.
1462 if test "$ac_abs_confdir" = "$ac_pwd"; then
1463 srcdir=.
1465 # Remove unnecessary trailing slashes from srcdir.
1466 # Double slashes in file names in object file debugging info
1467 # mess up M-x gdb in Emacs.
1468 case $srcdir in
1469 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1470 esac
1471 for ac_var in $ac_precious_vars; do
1472 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1473 eval ac_env_${ac_var}_value=\$${ac_var}
1474 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1475 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1476 done
1479 # Report the --help message.
1481 if test "$ac_init_help" = "long"; then
1482 # Omit some internal or obsolete options to make the list less imposing.
1483 # This message is too long to be a string in the A/UX 3.1 sh.
1484 cat <<_ACEOF
1485 \`configure' configures alpine 2.24.1 to adapt to many kinds of systems.
1487 Usage: $0 [OPTION]... [VAR=VALUE]...
1489 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1490 VAR=VALUE. See below for descriptions of some of the useful variables.
1492 Defaults for the options are specified in brackets.
1494 Configuration:
1495 -h, --help display this help and exit
1496 --help=short display options specific to this package
1497 --help=recursive display the short help of all the included packages
1498 -V, --version display version information and exit
1499 -q, --quiet, --silent do not print \`checking ...' messages
1500 --cache-file=FILE cache test results in FILE [disabled]
1501 -C, --config-cache alias for \`--cache-file=config.cache'
1502 -n, --no-create do not create output files
1503 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1505 Installation directories:
1506 --prefix=PREFIX install architecture-independent files in PREFIX
1507 [$ac_default_prefix]
1508 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1509 [PREFIX]
1511 By default, \`make install' will install all the files in
1512 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1513 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1514 for instance \`--prefix=\$HOME'.
1516 For better control, use the options below.
1518 Fine tuning of the installation directories:
1519 --bindir=DIR user executables [EPREFIX/bin]
1520 --sbindir=DIR system admin executables [EPREFIX/sbin]
1521 --libexecdir=DIR program executables [EPREFIX/libexec]
1522 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1523 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1524 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1525 --libdir=DIR object code libraries [EPREFIX/lib]
1526 --includedir=DIR C header files [PREFIX/include]
1527 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1528 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1529 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1530 --infodir=DIR info documentation [DATAROOTDIR/info]
1531 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1532 --mandir=DIR man documentation [DATAROOTDIR/man]
1533 --docdir=DIR documentation root [DATAROOTDIR/doc/alpine]
1534 --htmldir=DIR html documentation [DOCDIR]
1535 --dvidir=DIR dvi documentation [DOCDIR]
1536 --pdfdir=DIR pdf documentation [DOCDIR]
1537 --psdir=DIR ps documentation [DOCDIR]
1538 _ACEOF
1540 cat <<\_ACEOF
1542 Program names:
1543 --program-prefix=PREFIX prepend PREFIX to installed program names
1544 --program-suffix=SUFFIX append SUFFIX to installed program names
1545 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1547 System types:
1548 --build=BUILD configure for building on BUILD [guessed]
1549 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1550 _ACEOF
1553 if test -n "$ac_init_help"; then
1554 case $ac_init_help in
1555 short | recursive ) echo "Configuration of alpine 2.24.1:";;
1556 esac
1557 cat <<\_ACEOF
1559 Optional Features:
1560 --disable-option-checking ignore unrecognized --enable/--with options
1561 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1562 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1563 --enable-silent-rules less verbose build output (undo: "make V=1")
1564 --disable-silent-rules verbose build output (undo: "make V=0")
1565 --enable-maintainer-mode
1566 enable make rules and dependencies not useful (and
1567 sometimes confusing) to the casual installer
1568 --enable-dependency-tracking
1569 do not reject slow dependency extractors
1570 --disable-dependency-tracking
1571 speeds up one-time build
1572 --enable-shared[=PKGS] build shared libraries [default=yes]
1573 --enable-static[=PKGS] build static libraries [default=yes]
1574 --enable-fast-install[=PKGS]
1575 optimize for fast installation [default=yes]
1576 --disable-libtool-lock avoid locking (might break parallel builds)
1577 --disable-nls do not use Native Language Support
1578 --disable-rpath do not hardcode runtime library paths
1579 --enable-dmalloc Enable dmalloc debugging
1580 --enable-osx-universal-binaries
1581 Produce universal binaries under OS X [[default=no]]
1582 --disable-debug Exclude debug from the binary
1583 --disable-optimization Exclude optimizing compiler flags
1584 --disable-mouse Disable mouse support
1585 --enable-quotas Enable disk quota checking on startup
1586 --disable-from-changing Disallow users changing From address
1587 --disable-background-post
1588 Disable background posting
1589 --disable-keyboard-lock Disable keyboard locking
1590 --enable-from-encoding Enable From encoding in sent messages
1592 Optional Packages:
1593 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1594 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1595 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1596 both]
1597 --with-aix-soname=aix|svr4|both
1598 shared library versioning (aka "SONAME") variant to
1599 provide on AIX, [default=aix].
1600 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1601 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1602 compiler's sysroot if not specified).
1603 --with-gnu-ld assume the C compiler uses GNU ld default=no
1604 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1605 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1606 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1607 --without-libintl-prefix don't search for libintl in includedir and libdir
1608 --with-dmalloc-dir=DIR Root of dmalloc lib/include path
1609 --with-date-stamp=DATE Set this as the date this program was built.
1610 Default: output of `date`
1611 --with-host-stamp=HOST Set name of computer for compilation. Default:
1612 output of `hostname`
1613 --with-localedir=DIR Name of gettext locale directory
1614 --with-include-path=PATHS
1615 Colon-separated list of directories used for include
1616 file search
1617 --with-lib-path=PATHS Colon-separated list of directories used for library
1618 search
1619 --with-pubcookie Include support for UW-Pubcookie Web Authentication
1620 --with-web-bin=PATH Directory to hold Web Alpine component binary files
1621 --with-smtp-msa=PATH Local Mail Submission Agent (sendmail)
1622 --with-smtp-msa-flags=FLAGS
1623 MSA flags for SMTP on stdin/stdout (-bs -odb -oem)
1624 --with-npa=PATH Posting agent when no nntp-servers defined (inews)
1625 --with-npa-flags=FLAGS Flags to allow posting via local agent (-h)
1626 --with-password-prog=PATH
1627 Password change program (/bin/passwd)
1628 --with-simple-spellcheck=PROG
1629 Spellcheck program reads stdin, emits misspellings
1630 on stdout
1631 --with-interactive-spellcheck=PROG
1632 Interactive, filewise spell checker
1633 --with-system-pinerc=VALUE
1634 System pinerc (/usr/local/lib/pine.conf)
1635 --with-system-fixed-pinerc=VALUE
1636 System fixed pinerc (/usr/local/lib/pine.conf.fixed)
1637 --with-local-support-info=VALUE
1638 Local Support Info File (/usr/local/lib/pine.info)
1639 --with-mailcheck-interval=VALUE
1640 Specify default mail-check-interval (150)
1641 --with-checkpoint-interval=VALUE
1642 Specify default checkpoint-interval (420)
1643 --with-checkpoint-frequency=VALUE
1644 State change count before checkpoint (12)
1645 --with-display-rows=VALUE
1646 Initial rows on display (24)
1647 --with-display-columns=VALUE
1648 Initial columns on display (80)
1649 --with-max-display-rows=VALUE
1650 Maximum display rows (200)
1651 --with-max-display-columns=VALUE
1652 Maximum display columns (500)
1653 --with-fill-column=VALUE
1654 Default fill column (74)
1655 --with-max_fill-column=VALUE
1656 Maximum fill column (80)
1657 --with-debug-level=VALUE
1658 Specify default debug verbosity level (2)
1659 --with-debug-files=VALUE
1660 Specify number of debug files (4)
1661 --with-debug-file=VALUE Specify debug file name (.pine-debug)
1662 --with-forwarded-keyword=VALUE
1663 IMAP (c-client) keyword to store forwarded status
1664 ("\$Forwarded")
1665 --with-display-overlap=VALUE
1666 Lines preserved while paging (2)
1667 --with-display-margin=VALUE
1668 Lines visible while scrolling (0)
1669 --with-default-fcc=VALUE
1670 Default sent mail folder (sent-mail)
1671 --with-default-save-folder=VALUE
1672 Default save folder (saved-messages)
1673 --with-default-legacy-postponed-folder=VALUE
1674 Pre Pine 3.90 postponed folder (postponed-mail)
1675 --with-default-postponed-folder=VALUE
1676 Default postponed folder (postponed-msgs)
1677 --with-default-trash-folder=VALUE
1678 Default Trash folder for Web Alpine (Trash)
1679 --with-default-interrupted-mail=VALUE
1680 Default folder for interrupted mail
1681 (.pine-interrupted-mail)
1682 --with-default-dead-letter-folder=VALUE
1683 Default dead letter folder (dead.letter)
1684 --with-default-mail-directory=VALUE
1685 Default mail directory (mail)
1686 --with-default-inbox-name=VALUE
1687 Default inbox name (INBOX)
1688 --with-default-signature-file=VALUE
1689 Default signature file (.signature)
1690 --with-default-elm-style-save=VALUE
1691 Default to Elm style save (no)
1692 --with-default-header-in-reply=VALUE
1693 Include header in reply (no)
1694 --with-default-old-style-reply=VALUE
1695 Default to old style reply (no)
1696 --with-default-use-only-domain-name=VALUE
1697 Default to using only the domain name (no)
1698 --with-default-save-by-sender=VALUE
1699 Default to save by sender (no)
1700 --with-default-sort-key=VALUE
1701 Default sort key (arrival)
1702 --with-default-addressbook-sort-rule=VALUE
1703 Default addressbook sort rule
1704 (fullname-with-lists-last)
1705 --with-default-folder-sort-rule=VALUE
1706 Default folder sort rule (alphabetical)
1707 --with-default-saved-message-name-rule=VALUE
1708 Default saved message name rule (default-folder)
1709 --with-default-fcc-rule=VALUE
1710 Default fcc rule (default-fcc)
1711 --with-default-standard-printer=VALUE
1712 Default standard printern (lpr)
1713 --with-default-ansi-printer=VALUE
1714 ANSI printer definition (attached-to-ansi)
1715 --with-default-addressbook=VALUE
1716 Default addressbook name (.addressbook)
1717 --with-default-local-fullname=VALUE
1718 Default local support fullname ("Local Support")
1719 --with-default-local-address=VALUE
1720 Default local support address (postmaster)
1721 --with-default-keyboard-lock-count=VALUE
1722 Default keyboard lock count (1)
1723 --with-default-remote-addressbook-history=VALUE
1724 Default address book history count (3)
1725 --with-default-html-directory=VALUE
1726 Default Directory to Temporarily Save HTML Messages
1727 (.alpine-html)
1728 --with-smime-public-cert-directory=VALUE
1729 Default Public Cert Directory (.alpine-smime/public)
1730 --with-smime-private-key-directory=VALUE
1731 Default Private Key Directory
1732 (.alpine-smime/private)
1733 --with-smime-cacert-directory=VALUE
1734 Default Cert Authority Directory (.alpine-smime/ca)
1735 --with-default-printer=VALUE
1736 Default printer (ANSI_PRINTER)
1737 --with-passfile=FILENAME
1738 Password cache file (recommended when S/MIME is
1739 enabled and configured)
1740 --without-local-password-cache
1741 Disable OS-specific password cache, if supported
1742 --with-local-password-cache-method
1743 OS-specific credential cache (OSX=APPLEKEYCHAIN,
1744 Windows=WINCRED)
1745 --with-default-sshpath=FILENAME
1746 set default value of ssh command path (defining
1747 should cause ssh to be preferred to rsh)
1748 --with-default-sshcmd=PERCENT_S_STRING
1749 set default value of ssh command string (usually "%s
1750 %s -l %s exec /etc/r%sd")
1751 --without-ssl Disable SSL support (OpenSSL)
1752 --with-ssl-dir=DIR Root of SSL lib/include path
1753 --with-ssl-certs-dir=DIR
1754 Path to SSL certificate directory
1755 --with-ssl-include-dir=DIR
1756 SSL include file path
1757 --with-ssl-lib-dir=DIR SSL library path
1758 --encryption-minimum-version=VERSION
1759 Minimum SSL encryption version. Default: no_min
1760 --encryption-maximum-version=VERSION
1761 Maximum SSL encryption version. Default: no_max
1762 --with-encryption-range=VALUE
1763 Default Encryption Range ($alpine_RANGE )
1764 --without-krb5 Disable Kerberos support
1765 --with-krb5-dir=DIR Root of Kerberos lib/include path
1766 --with-krb5-include-dir=DIR
1767 Kerberos include file path
1768 --with-krb5-lib-dir=DIR Kerberos library path
1769 --without-ldap Disable LDAP query support
1770 --with-ldap-dir=DIR Root of LDAP lib/include path
1771 --with-ldap-include-dir=DIR
1772 Directory containing LDAP include files
1773 --with-ldap-lib-dir=DIR LDAP library path
1774 --without-smime Disable S/MIME
1775 --without-tcl Disable TCL, thus Web Alpine support
1776 --with-tcl-lib-dir=PATH Specific TCL Librar dir, like \"/usr/opt/tcl86/lib\"
1777 --with-tcl-lib=LIBRARY Specific TCL Library, like \"tcl8.6\"
1778 --with-tcl-include=DIR Directory containing TCL include files
1779 --with-supplied-regex Use regex library supplied with alpine
1780 --without-pthread Do NOT test for nor build with POSIX thread support
1781 --with-system-mail-directory=DIR
1782 Directory where local mail is delivered
1783 --with-c-client-target=TARGET
1784 IMAP build target (see imap/Makefile)
1785 --with-bundled-tools Build additional tools (mtest, imapd, etc.) Default:
1786 --with-bundled-tools=no
1787 --without-ipv6 Disable IPv6, primarily to work around resolver
1788 problems
1789 --without-dlopen Do not test for dlopen because this system does not
1790 need it
1791 --without-ntlm Disable NTLM client support
1793 Some influential environment variables:
1794 CC C compiler command
1795 CFLAGS C compiler flags
1796 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1797 nonstandard directory <lib dir>
1798 LIBS libraries to pass to the linker, e.g. -l<library>
1799 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1800 you have headers in a nonstandard directory <include dir>
1801 LT_SYS_LIBRARY_PATH
1802 User-defined run-time library search path.
1803 CPP C preprocessor
1805 Use these variables to override the choices made by `configure' or to help
1806 it to find libraries and programs with nonstandard names/locations.
1808 Report bugs to <chappa@washington.edu>.
1809 _ACEOF
1810 ac_status=$?
1813 if test "$ac_init_help" = "recursive"; then
1814 # If there are subdirs, report their specific --help.
1815 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1816 test -d "$ac_dir" ||
1817 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1818 continue
1819 ac_builddir=.
1821 case "$ac_dir" in
1822 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1824 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1825 # A ".." for each directory in $ac_dir_suffix.
1826 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1827 case $ac_top_builddir_sub in
1828 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1829 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1830 esac ;;
1831 esac
1832 ac_abs_top_builddir=$ac_pwd
1833 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1834 # for backward compatibility:
1835 ac_top_builddir=$ac_top_build_prefix
1837 case $srcdir in
1838 .) # We are building in place.
1839 ac_srcdir=.
1840 ac_top_srcdir=$ac_top_builddir_sub
1841 ac_abs_top_srcdir=$ac_pwd ;;
1842 [\\/]* | ?:[\\/]* ) # Absolute name.
1843 ac_srcdir=$srcdir$ac_dir_suffix;
1844 ac_top_srcdir=$srcdir
1845 ac_abs_top_srcdir=$srcdir ;;
1846 *) # Relative name.
1847 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1848 ac_top_srcdir=$ac_top_build_prefix$srcdir
1849 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1850 esac
1851 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1853 cd "$ac_dir" || { ac_status=$?; continue; }
1854 # Check for guested configure.
1855 if test -f "$ac_srcdir/configure.gnu"; then
1856 echo &&
1857 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1858 elif test -f "$ac_srcdir/configure"; then
1859 echo &&
1860 $SHELL "$ac_srcdir/configure" --help=recursive
1861 else
1862 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1863 fi || ac_status=$?
1864 cd "$ac_pwd" || { ac_status=$?; break; }
1865 done
1868 test -n "$ac_init_help" && exit $ac_status
1869 if $ac_init_version; then
1870 cat <<\_ACEOF
1871 alpine configure 2.24.1
1872 generated by GNU Autoconf 2.69
1874 Copyright (C) 2012 Free Software Foundation, Inc.
1875 This configure script is free software; the Free Software Foundation
1876 gives unlimited permission to copy, distribute and modify it.
1877 _ACEOF
1878 exit
1881 ## ------------------------ ##
1882 ## Autoconf initialization. ##
1883 ## ------------------------ ##
1885 # ac_fn_c_try_compile LINENO
1886 # --------------------------
1887 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1888 ac_fn_c_try_compile ()
1890 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1891 rm -f conftest.$ac_objext
1892 if { { ac_try="$ac_compile"
1893 case "(($ac_try" in
1894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1895 *) ac_try_echo=$ac_try;;
1896 esac
1897 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1898 $as_echo "$ac_try_echo"; } >&5
1899 (eval "$ac_compile") 2>conftest.err
1900 ac_status=$?
1901 if test -s conftest.err; then
1902 grep -v '^ *+' conftest.err >conftest.er1
1903 cat conftest.er1 >&5
1904 mv -f conftest.er1 conftest.err
1906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1907 test $ac_status = 0; } && {
1908 test -z "$ac_c_werror_flag" ||
1909 test ! -s conftest.err
1910 } && test -s conftest.$ac_objext; then :
1911 ac_retval=0
1912 else
1913 $as_echo "$as_me: failed program was:" >&5
1914 sed 's/^/| /' conftest.$ac_ext >&5
1916 ac_retval=1
1918 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1919 as_fn_set_status $ac_retval
1921 } # ac_fn_c_try_compile
1923 # ac_fn_c_try_link LINENO
1924 # -----------------------
1925 # Try to link conftest.$ac_ext, and return whether this succeeded.
1926 ac_fn_c_try_link ()
1928 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1929 rm -f conftest.$ac_objext conftest$ac_exeext
1930 if { { ac_try="$ac_link"
1931 case "(($ac_try" in
1932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1933 *) ac_try_echo=$ac_try;;
1934 esac
1935 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1936 $as_echo "$ac_try_echo"; } >&5
1937 (eval "$ac_link") 2>conftest.err
1938 ac_status=$?
1939 if test -s conftest.err; then
1940 grep -v '^ *+' conftest.err >conftest.er1
1941 cat conftest.er1 >&5
1942 mv -f conftest.er1 conftest.err
1944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1945 test $ac_status = 0; } && {
1946 test -z "$ac_c_werror_flag" ||
1947 test ! -s conftest.err
1948 } && test -s conftest$ac_exeext && {
1949 test "$cross_compiling" = yes ||
1950 test -x conftest$ac_exeext
1951 }; then :
1952 ac_retval=0
1953 else
1954 $as_echo "$as_me: failed program was:" >&5
1955 sed 's/^/| /' conftest.$ac_ext >&5
1957 ac_retval=1
1959 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1960 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1961 # interfere with the next link command; also delete a directory that is
1962 # left behind by Apple's compiler. We do this before executing the actions.
1963 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1964 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1965 as_fn_set_status $ac_retval
1967 } # ac_fn_c_try_link
1969 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1970 # -------------------------------------------------------
1971 # Tests whether HEADER exists and can be compiled using the include files in
1972 # INCLUDES, setting the cache variable VAR accordingly.
1973 ac_fn_c_check_header_compile ()
1975 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1977 $as_echo_n "checking for $2... " >&6; }
1978 if eval \${$3+:} false; then :
1979 $as_echo_n "(cached) " >&6
1980 else
1981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1982 /* end confdefs.h. */
1984 #include <$2>
1985 _ACEOF
1986 if ac_fn_c_try_compile "$LINENO"; then :
1987 eval "$3=yes"
1988 else
1989 eval "$3=no"
1991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1993 eval ac_res=\$$3
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1995 $as_echo "$ac_res" >&6; }
1996 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1998 } # ac_fn_c_check_header_compile
2000 # ac_fn_c_try_cpp LINENO
2001 # ----------------------
2002 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2003 ac_fn_c_try_cpp ()
2005 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2006 if { { ac_try="$ac_cpp conftest.$ac_ext"
2007 case "(($ac_try" in
2008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2009 *) ac_try_echo=$ac_try;;
2010 esac
2011 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2012 $as_echo "$ac_try_echo"; } >&5
2013 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2014 ac_status=$?
2015 if test -s conftest.err; then
2016 grep -v '^ *+' conftest.err >conftest.er1
2017 cat conftest.er1 >&5
2018 mv -f conftest.er1 conftest.err
2020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2021 test $ac_status = 0; } > conftest.i && {
2022 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2023 test ! -s conftest.err
2024 }; then :
2025 ac_retval=0
2026 else
2027 $as_echo "$as_me: failed program was:" >&5
2028 sed 's/^/| /' conftest.$ac_ext >&5
2030 ac_retval=1
2032 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2033 as_fn_set_status $ac_retval
2035 } # ac_fn_c_try_cpp
2037 # ac_fn_c_try_run LINENO
2038 # ----------------------
2039 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2040 # that executables *can* be run.
2041 ac_fn_c_try_run ()
2043 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2044 if { { ac_try="$ac_link"
2045 case "(($ac_try" in
2046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2047 *) ac_try_echo=$ac_try;;
2048 esac
2049 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2050 $as_echo "$ac_try_echo"; } >&5
2051 (eval "$ac_link") 2>&5
2052 ac_status=$?
2053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2054 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2055 { { case "(($ac_try" in
2056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2057 *) ac_try_echo=$ac_try;;
2058 esac
2059 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2060 $as_echo "$ac_try_echo"; } >&5
2061 (eval "$ac_try") 2>&5
2062 ac_status=$?
2063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2064 test $ac_status = 0; }; }; then :
2065 ac_retval=0
2066 else
2067 $as_echo "$as_me: program exited with status $ac_status" >&5
2068 $as_echo "$as_me: failed program was:" >&5
2069 sed 's/^/| /' conftest.$ac_ext >&5
2071 ac_retval=$ac_status
2073 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2074 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2075 as_fn_set_status $ac_retval
2077 } # ac_fn_c_try_run
2079 # ac_fn_c_check_func LINENO FUNC VAR
2080 # ----------------------------------
2081 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2082 ac_fn_c_check_func ()
2084 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2086 $as_echo_n "checking for $2... " >&6; }
2087 if eval \${$3+:} false; then :
2088 $as_echo_n "(cached) " >&6
2089 else
2090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2091 /* end confdefs.h. */
2092 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2093 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2094 #define $2 innocuous_$2
2096 /* System header to define __stub macros and hopefully few prototypes,
2097 which can conflict with char $2 (); below.
2098 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2099 <limits.h> exists even on freestanding compilers. */
2101 #ifdef __STDC__
2102 # include <limits.h>
2103 #else
2104 # include <assert.h>
2105 #endif
2107 #undef $2
2109 /* Override any GCC internal prototype to avoid an error.
2110 Use char because int might match the return type of a GCC
2111 builtin and then its argument prototype would still apply. */
2112 #ifdef __cplusplus
2113 extern "C"
2114 #endif
2115 char $2 ();
2116 /* The GNU C library defines this for functions which it implements
2117 to always fail with ENOSYS. Some functions are actually named
2118 something starting with __ and the normal name is an alias. */
2119 #if defined __stub_$2 || defined __stub___$2
2120 choke me
2121 #endif
2124 main ()
2126 return $2 ();
2128 return 0;
2130 _ACEOF
2131 if ac_fn_c_try_link "$LINENO"; then :
2132 eval "$3=yes"
2133 else
2134 eval "$3=no"
2136 rm -f core conftest.err conftest.$ac_objext \
2137 conftest$ac_exeext conftest.$ac_ext
2139 eval ac_res=\$$3
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2141 $as_echo "$ac_res" >&6; }
2142 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2144 } # ac_fn_c_check_func
2146 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2147 # -------------------------------------------------------
2148 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2149 # the include files in INCLUDES and setting the cache variable VAR
2150 # accordingly.
2151 ac_fn_c_check_header_mongrel ()
2153 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2154 if eval \${$3+:} false; then :
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2156 $as_echo_n "checking for $2... " >&6; }
2157 if eval \${$3+:} false; then :
2158 $as_echo_n "(cached) " >&6
2160 eval ac_res=\$$3
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2162 $as_echo "$ac_res" >&6; }
2163 else
2164 # Is the header compilable?
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2166 $as_echo_n "checking $2 usability... " >&6; }
2167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2168 /* end confdefs.h. */
2170 #include <$2>
2171 _ACEOF
2172 if ac_fn_c_try_compile "$LINENO"; then :
2173 ac_header_compiler=yes
2174 else
2175 ac_header_compiler=no
2177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2179 $as_echo "$ac_header_compiler" >&6; }
2181 # Is the header present?
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2183 $as_echo_n "checking $2 presence... " >&6; }
2184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2185 /* end confdefs.h. */
2186 #include <$2>
2187 _ACEOF
2188 if ac_fn_c_try_cpp "$LINENO"; then :
2189 ac_header_preproc=yes
2190 else
2191 ac_header_preproc=no
2193 rm -f conftest.err conftest.i conftest.$ac_ext
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2195 $as_echo "$ac_header_preproc" >&6; }
2197 # So? What about this header?
2198 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2199 yes:no: )
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2201 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2203 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2205 no:yes:* )
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2207 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2209 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2211 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2213 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2215 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2216 ( $as_echo "## ------------------------------------ ##
2217 ## Report this to chappa@washington.edu ##
2218 ## ------------------------------------ ##"
2219 ) | sed "s/^/$as_me: WARNING: /" >&2
2221 esac
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2223 $as_echo_n "checking for $2... " >&6; }
2224 if eval \${$3+:} false; then :
2225 $as_echo_n "(cached) " >&6
2226 else
2227 eval "$3=\$ac_header_compiler"
2229 eval ac_res=\$$3
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2231 $as_echo "$ac_res" >&6; }
2233 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2235 } # ac_fn_c_check_header_mongrel
2237 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2238 # -------------------------------------------
2239 # Tests whether TYPE exists after having included INCLUDES, setting cache
2240 # variable VAR accordingly.
2241 ac_fn_c_check_type ()
2243 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2245 $as_echo_n "checking for $2... " >&6; }
2246 if eval \${$3+:} false; then :
2247 $as_echo_n "(cached) " >&6
2248 else
2249 eval "$3=no"
2250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2251 /* end confdefs.h. */
2254 main ()
2256 if (sizeof ($2))
2257 return 0;
2259 return 0;
2261 _ACEOF
2262 if ac_fn_c_try_compile "$LINENO"; then :
2263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2264 /* end confdefs.h. */
2267 main ()
2269 if (sizeof (($2)))
2270 return 0;
2272 return 0;
2274 _ACEOF
2275 if ac_fn_c_try_compile "$LINENO"; then :
2277 else
2278 eval "$3=yes"
2280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2284 eval ac_res=\$$3
2285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2286 $as_echo "$ac_res" >&6; }
2287 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2289 } # ac_fn_c_check_type
2291 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2292 # --------------------------------------------
2293 # Tries to find the compile-time value of EXPR in a program that includes
2294 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2295 # computed
2296 ac_fn_c_compute_int ()
2298 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2299 if test "$cross_compiling" = yes; then
2300 # Depending upon the size, compute the lo and hi bounds.
2301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2302 /* end confdefs.h. */
2305 main ()
2307 static int test_array [1 - 2 * !(($2) >= 0)];
2308 test_array [0] = 0;
2309 return test_array [0];
2312 return 0;
2314 _ACEOF
2315 if ac_fn_c_try_compile "$LINENO"; then :
2316 ac_lo=0 ac_mid=0
2317 while :; do
2318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2319 /* end confdefs.h. */
2322 main ()
2324 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2325 test_array [0] = 0;
2326 return test_array [0];
2329 return 0;
2331 _ACEOF
2332 if ac_fn_c_try_compile "$LINENO"; then :
2333 ac_hi=$ac_mid; break
2334 else
2335 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2336 if test $ac_lo -le $ac_mid; then
2337 ac_lo= ac_hi=
2338 break
2340 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2343 done
2344 else
2345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2346 /* end confdefs.h. */
2349 main ()
2351 static int test_array [1 - 2 * !(($2) < 0)];
2352 test_array [0] = 0;
2353 return test_array [0];
2356 return 0;
2358 _ACEOF
2359 if ac_fn_c_try_compile "$LINENO"; then :
2360 ac_hi=-1 ac_mid=-1
2361 while :; do
2362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2363 /* end confdefs.h. */
2366 main ()
2368 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2369 test_array [0] = 0;
2370 return test_array [0];
2373 return 0;
2375 _ACEOF
2376 if ac_fn_c_try_compile "$LINENO"; then :
2377 ac_lo=$ac_mid; break
2378 else
2379 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2380 if test $ac_mid -le $ac_hi; then
2381 ac_lo= ac_hi=
2382 break
2384 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2387 done
2388 else
2389 ac_lo= ac_hi=
2391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2394 # Binary search between lo and hi bounds.
2395 while test "x$ac_lo" != "x$ac_hi"; do
2396 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2398 /* end confdefs.h. */
2401 main ()
2403 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2404 test_array [0] = 0;
2405 return test_array [0];
2408 return 0;
2410 _ACEOF
2411 if ac_fn_c_try_compile "$LINENO"; then :
2412 ac_hi=$ac_mid
2413 else
2414 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2417 done
2418 case $ac_lo in #((
2419 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2420 '') ac_retval=1 ;;
2421 esac
2422 else
2423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2424 /* end confdefs.h. */
2426 static long int longval () { return $2; }
2427 static unsigned long int ulongval () { return $2; }
2428 #include <stdio.h>
2429 #include <stdlib.h>
2431 main ()
2434 FILE *f = fopen ("conftest.val", "w");
2435 if (! f)
2436 return 1;
2437 if (($2) < 0)
2439 long int i = longval ();
2440 if (i != ($2))
2441 return 1;
2442 fprintf (f, "%ld", i);
2444 else
2446 unsigned long int i = ulongval ();
2447 if (i != ($2))
2448 return 1;
2449 fprintf (f, "%lu", i);
2451 /* Do not output a trailing newline, as this causes \r\n confusion
2452 on some platforms. */
2453 return ferror (f) || fclose (f) != 0;
2456 return 0;
2458 _ACEOF
2459 if ac_fn_c_try_run "$LINENO"; then :
2460 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2461 else
2462 ac_retval=1
2464 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2465 conftest.$ac_objext conftest.beam conftest.$ac_ext
2466 rm -f conftest.val
2469 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2470 as_fn_set_status $ac_retval
2472 } # ac_fn_c_compute_int
2473 cat >config.log <<_ACEOF
2474 This file contains any messages produced by compilers while
2475 running configure, to aid debugging if configure makes a mistake.
2477 It was created by alpine $as_me 2.24.1, which was
2478 generated by GNU Autoconf 2.69. Invocation command line was
2480 $ $0 $@
2482 _ACEOF
2483 exec 5>>config.log
2485 cat <<_ASUNAME
2486 ## --------- ##
2487 ## Platform. ##
2488 ## --------- ##
2490 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2491 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2492 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2493 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2494 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2496 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2497 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2499 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2500 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2501 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2502 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2503 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2504 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2505 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2507 _ASUNAME
2509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2510 for as_dir in $PATH
2512 IFS=$as_save_IFS
2513 test -z "$as_dir" && as_dir=.
2514 $as_echo "PATH: $as_dir"
2515 done
2516 IFS=$as_save_IFS
2518 } >&5
2520 cat >&5 <<_ACEOF
2523 ## ----------- ##
2524 ## Core tests. ##
2525 ## ----------- ##
2527 _ACEOF
2530 # Keep a trace of the command line.
2531 # Strip out --no-create and --no-recursion so they do not pile up.
2532 # Strip out --silent because we don't want to record it for future runs.
2533 # Also quote any args containing shell meta-characters.
2534 # Make two passes to allow for proper duplicate-argument suppression.
2535 ac_configure_args=
2536 ac_configure_args0=
2537 ac_configure_args1=
2538 ac_must_keep_next=false
2539 for ac_pass in 1 2
2541 for ac_arg
2543 case $ac_arg in
2544 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2545 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2546 | -silent | --silent | --silen | --sile | --sil)
2547 continue ;;
2548 *\'*)
2549 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2550 esac
2551 case $ac_pass in
2552 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2554 as_fn_append ac_configure_args1 " '$ac_arg'"
2555 if test $ac_must_keep_next = true; then
2556 ac_must_keep_next=false # Got value, back to normal.
2557 else
2558 case $ac_arg in
2559 *=* | --config-cache | -C | -disable-* | --disable-* \
2560 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2561 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2562 | -with-* | --with-* | -without-* | --without-* | --x)
2563 case "$ac_configure_args0 " in
2564 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2565 esac
2567 -* ) ac_must_keep_next=true ;;
2568 esac
2570 as_fn_append ac_configure_args " '$ac_arg'"
2572 esac
2573 done
2574 done
2575 { ac_configure_args0=; unset ac_configure_args0;}
2576 { ac_configure_args1=; unset ac_configure_args1;}
2578 # When interrupted or exit'd, cleanup temporary files, and complete
2579 # config.log. We remove comments because anyway the quotes in there
2580 # would cause problems or look ugly.
2581 # WARNING: Use '\'' to represent an apostrophe within the trap.
2582 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2583 trap 'exit_status=$?
2584 # Save into config.log some information that might help in debugging.
2586 echo
2588 $as_echo "## ---------------- ##
2589 ## Cache variables. ##
2590 ## ---------------- ##"
2591 echo
2592 # The following way of writing the cache mishandles newlines in values,
2594 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2595 eval ac_val=\$$ac_var
2596 case $ac_val in #(
2597 *${as_nl}*)
2598 case $ac_var in #(
2599 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2600 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2601 esac
2602 case $ac_var in #(
2603 _ | IFS | as_nl) ;; #(
2604 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2605 *) { eval $ac_var=; unset $ac_var;} ;;
2606 esac ;;
2607 esac
2608 done
2609 (set) 2>&1 |
2610 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2611 *${as_nl}ac_space=\ *)
2612 sed -n \
2613 "s/'\''/'\''\\\\'\'''\''/g;
2614 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2615 ;; #(
2617 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2619 esac |
2620 sort
2622 echo
2624 $as_echo "## ----------------- ##
2625 ## Output variables. ##
2626 ## ----------------- ##"
2627 echo
2628 for ac_var in $ac_subst_vars
2630 eval ac_val=\$$ac_var
2631 case $ac_val in
2632 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2633 esac
2634 $as_echo "$ac_var='\''$ac_val'\''"
2635 done | sort
2636 echo
2638 if test -n "$ac_subst_files"; then
2639 $as_echo "## ------------------- ##
2640 ## File substitutions. ##
2641 ## ------------------- ##"
2642 echo
2643 for ac_var in $ac_subst_files
2645 eval ac_val=\$$ac_var
2646 case $ac_val in
2647 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2648 esac
2649 $as_echo "$ac_var='\''$ac_val'\''"
2650 done | sort
2651 echo
2654 if test -s confdefs.h; then
2655 $as_echo "## ----------- ##
2656 ## confdefs.h. ##
2657 ## ----------- ##"
2658 echo
2659 cat confdefs.h
2660 echo
2662 test "$ac_signal" != 0 &&
2663 $as_echo "$as_me: caught signal $ac_signal"
2664 $as_echo "$as_me: exit $exit_status"
2665 } >&5
2666 rm -f core *.core core.conftest.* &&
2667 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2668 exit $exit_status
2670 for ac_signal in 1 2 13 15; do
2671 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2672 done
2673 ac_signal=0
2675 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2676 rm -f -r conftest* confdefs.h
2678 $as_echo "/* confdefs.h */" > confdefs.h
2680 # Predefined preprocessor variables.
2682 cat >>confdefs.h <<_ACEOF
2683 #define PACKAGE_NAME "$PACKAGE_NAME"
2684 _ACEOF
2686 cat >>confdefs.h <<_ACEOF
2687 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2688 _ACEOF
2690 cat >>confdefs.h <<_ACEOF
2691 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2692 _ACEOF
2694 cat >>confdefs.h <<_ACEOF
2695 #define PACKAGE_STRING "$PACKAGE_STRING"
2696 _ACEOF
2698 cat >>confdefs.h <<_ACEOF
2699 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2700 _ACEOF
2702 cat >>confdefs.h <<_ACEOF
2703 #define PACKAGE_URL "$PACKAGE_URL"
2704 _ACEOF
2707 # Let the site file select an alternate cache file if it wants to.
2708 # Prefer an explicitly selected file to automatically selected ones.
2709 ac_site_file1=NONE
2710 ac_site_file2=NONE
2711 if test -n "$CONFIG_SITE"; then
2712 # We do not want a PATH search for config.site.
2713 case $CONFIG_SITE in #((
2714 -*) ac_site_file1=./$CONFIG_SITE;;
2715 */*) ac_site_file1=$CONFIG_SITE;;
2716 *) ac_site_file1=./$CONFIG_SITE;;
2717 esac
2718 elif test "x$prefix" != xNONE; then
2719 ac_site_file1=$prefix/share/config.site
2720 ac_site_file2=$prefix/etc/config.site
2721 else
2722 ac_site_file1=$ac_default_prefix/share/config.site
2723 ac_site_file2=$ac_default_prefix/etc/config.site
2725 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2727 test "x$ac_site_file" = xNONE && continue
2728 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2730 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2731 sed 's/^/| /' "$ac_site_file" >&5
2732 . "$ac_site_file" \
2733 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2734 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2735 as_fn_error $? "failed to load site script $ac_site_file
2736 See \`config.log' for more details" "$LINENO" 5; }
2738 done
2740 if test -r "$cache_file"; then
2741 # Some versions of bash will fail to source /dev/null (special files
2742 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2743 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2745 $as_echo "$as_me: loading cache $cache_file" >&6;}
2746 case $cache_file in
2747 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2748 *) . "./$cache_file";;
2749 esac
2751 else
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2753 $as_echo "$as_me: creating cache $cache_file" >&6;}
2754 >$cache_file
2757 gt_needs="$gt_needs "
2758 # Check that the precious variables saved in the cache have kept the same
2759 # value.
2760 ac_cache_corrupted=false
2761 for ac_var in $ac_precious_vars; do
2762 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2763 eval ac_new_set=\$ac_env_${ac_var}_set
2764 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2765 eval ac_new_val=\$ac_env_${ac_var}_value
2766 case $ac_old_set,$ac_new_set in
2767 set,)
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2769 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2770 ac_cache_corrupted=: ;;
2771 ,set)
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2773 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2774 ac_cache_corrupted=: ;;
2775 ,);;
2777 if test "x$ac_old_val" != "x$ac_new_val"; then
2778 # differences in whitespace do not lead to failure.
2779 ac_old_val_w=`echo x $ac_old_val`
2780 ac_new_val_w=`echo x $ac_new_val`
2781 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2783 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2784 ac_cache_corrupted=:
2785 else
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2787 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2788 eval $ac_var=\$ac_old_val
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2791 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2793 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2794 fi;;
2795 esac
2796 # Pass precious variables to config.status.
2797 if test "$ac_new_set" = set; then
2798 case $ac_new_val in
2799 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2800 *) ac_arg=$ac_var=$ac_new_val ;;
2801 esac
2802 case " $ac_configure_args " in
2803 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2804 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2805 esac
2807 done
2808 if $ac_cache_corrupted; then
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2810 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2812 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2813 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2815 ## -------------------- ##
2816 ## Main body of script. ##
2817 ## -------------------- ##
2819 ac_ext=c
2820 ac_cpp='$CPP $CPPFLAGS'
2821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2828 ac_config_headers="$ac_config_headers include/config.h"
2831 am__api_version='1.15'
2833 ac_aux_dir=
2834 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2835 if test -f "$ac_dir/install-sh"; then
2836 ac_aux_dir=$ac_dir
2837 ac_install_sh="$ac_aux_dir/install-sh -c"
2838 break
2839 elif test -f "$ac_dir/install.sh"; then
2840 ac_aux_dir=$ac_dir
2841 ac_install_sh="$ac_aux_dir/install.sh -c"
2842 break
2843 elif test -f "$ac_dir/shtool"; then
2844 ac_aux_dir=$ac_dir
2845 ac_install_sh="$ac_aux_dir/shtool install -c"
2846 break
2848 done
2849 if test -z "$ac_aux_dir"; then
2850 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2853 # These three variables are undocumented and unsupported,
2854 # and are intended to be withdrawn in a future Autoconf release.
2855 # They can cause serious problems if a builder's source tree is in a directory
2856 # whose full name contains unusual characters.
2857 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2858 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2859 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2862 # Find a good install program. We prefer a C program (faster),
2863 # so one script is as good as another. But avoid the broken or
2864 # incompatible versions:
2865 # SysV /etc/install, /usr/sbin/install
2866 # SunOS /usr/etc/install
2867 # IRIX /sbin/install
2868 # AIX /bin/install
2869 # AmigaOS /C/install, which installs bootblocks on floppy discs
2870 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2871 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2872 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2873 # OS/2's system install, which has a completely different semantic
2874 # ./install, which can be erroneously created by make from ./install.sh.
2875 # Reject install programs that cannot install multiple files.
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2877 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2878 if test -z "$INSTALL"; then
2879 if ${ac_cv_path_install+:} false; then :
2880 $as_echo_n "(cached) " >&6
2881 else
2882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2883 for as_dir in $PATH
2885 IFS=$as_save_IFS
2886 test -z "$as_dir" && as_dir=.
2887 # Account for people who put trailing slashes in PATH elements.
2888 case $as_dir/ in #((
2889 ./ | .// | /[cC]/* | \
2890 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2891 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2892 /usr/ucb/* ) ;;
2894 # OSF1 and SCO ODT 3.0 have their own names for install.
2895 # Don't use installbsd from OSF since it installs stuff as root
2896 # by default.
2897 for ac_prog in ginstall scoinst install; do
2898 for ac_exec_ext in '' $ac_executable_extensions; do
2899 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2900 if test $ac_prog = install &&
2901 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2902 # AIX install. It has an incompatible calling convention.
2904 elif test $ac_prog = install &&
2905 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2906 # program-specific install script used by HP pwplus--don't use.
2908 else
2909 rm -rf conftest.one conftest.two conftest.dir
2910 echo one > conftest.one
2911 echo two > conftest.two
2912 mkdir conftest.dir
2913 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2914 test -s conftest.one && test -s conftest.two &&
2915 test -s conftest.dir/conftest.one &&
2916 test -s conftest.dir/conftest.two
2917 then
2918 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2919 break 3
2923 done
2924 done
2926 esac
2928 done
2929 IFS=$as_save_IFS
2931 rm -rf conftest.one conftest.two conftest.dir
2934 if test "${ac_cv_path_install+set}" = set; then
2935 INSTALL=$ac_cv_path_install
2936 else
2937 # As a last resort, use the slow shell script. Don't cache a
2938 # value for INSTALL within a source directory, because that will
2939 # break other packages using the cache if that directory is
2940 # removed, or if the value is a relative name.
2941 INSTALL=$ac_install_sh
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2945 $as_echo "$INSTALL" >&6; }
2947 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2948 # It thinks the first close brace ends the variable substitution.
2949 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2951 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2953 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2956 $as_echo_n "checking whether build environment is sane... " >&6; }
2957 # Reject unsafe characters in $srcdir or the absolute working directory
2958 # name. Accept space and tab only in the latter.
2959 am_lf='
2961 case `pwd` in
2962 *[\\\"\#\$\&\'\`$am_lf]*)
2963 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2964 esac
2965 case $srcdir in
2966 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2967 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2968 esac
2970 # Do 'set' in a subshell so we don't clobber the current shell's
2971 # arguments. Must try -L first in case configure is actually a
2972 # symlink; some systems play weird games with the mod time of symlinks
2973 # (eg FreeBSD returns the mod time of the symlink's containing
2974 # directory).
2975 if (
2976 am_has_slept=no
2977 for am_try in 1 2; do
2978 echo "timestamp, slept: $am_has_slept" > conftest.file
2979 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2980 if test "$*" = "X"; then
2981 # -L didn't work.
2982 set X `ls -t "$srcdir/configure" conftest.file`
2984 if test "$*" != "X $srcdir/configure conftest.file" \
2985 && test "$*" != "X conftest.file $srcdir/configure"; then
2987 # If neither matched, then we have a broken ls. This can happen
2988 # if, for instance, CONFIG_SHELL is bash and it inherits a
2989 # broken ls alias from the environment. This has actually
2990 # happened. Such a system could not be considered "sane".
2991 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2992 alias in your environment" "$LINENO" 5
2994 if test "$2" = conftest.file || test $am_try -eq 2; then
2995 break
2997 # Just in case.
2998 sleep 1
2999 am_has_slept=yes
3000 done
3001 test "$2" = conftest.file
3003 then
3004 # Ok.
3006 else
3007 as_fn_error $? "newly created file is older than distributed files!
3008 Check your system clock" "$LINENO" 5
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3011 $as_echo "yes" >&6; }
3012 # If we didn't sleep, we still need to ensure time stamps of config.status and
3013 # generated files are strictly newer.
3014 am_sleep_pid=
3015 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3016 ( sleep 1 ) &
3017 am_sleep_pid=$!
3020 rm -f conftest.file
3022 test "$program_prefix" != NONE &&
3023 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3024 # Use a double $ so make ignores it.
3025 test "$program_suffix" != NONE &&
3026 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3027 # Double any \ or $.
3028 # By default was `s,x,x', remove it if useless.
3029 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3030 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3032 # Expand $ac_aux_dir to an absolute path.
3033 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3035 if test x"${MISSING+set}" != xset; then
3036 case $am_aux_dir in
3037 *\ * | *\ *)
3038 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3040 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3041 esac
3043 # Use eval to expand $SHELL
3044 if eval "$MISSING --is-lightweight"; then
3045 am_missing_run="$MISSING "
3046 else
3047 am_missing_run=
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3049 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3052 if test x"${install_sh+set}" != xset; then
3053 case $am_aux_dir in
3054 *\ * | *\ *)
3055 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3057 install_sh="\${SHELL} $am_aux_dir/install-sh"
3058 esac
3061 # Installed binaries are usually stripped using 'strip' when the user
3062 # run "make install-strip". However 'strip' might not be the right
3063 # tool to use in cross-compilation environments, therefore Automake
3064 # will honor the 'STRIP' environment variable to overrule this program.
3065 if test "$cross_compiling" != no; then
3066 if test -n "$ac_tool_prefix"; then
3067 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3068 set dummy ${ac_tool_prefix}strip; ac_word=$2
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3070 $as_echo_n "checking for $ac_word... " >&6; }
3071 if ${ac_cv_prog_STRIP+:} false; then :
3072 $as_echo_n "(cached) " >&6
3073 else
3074 if test -n "$STRIP"; then
3075 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3076 else
3077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3078 for as_dir in $PATH
3080 IFS=$as_save_IFS
3081 test -z "$as_dir" && as_dir=.
3082 for ac_exec_ext in '' $ac_executable_extensions; do
3083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3084 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3086 break 2
3088 done
3089 done
3090 IFS=$as_save_IFS
3094 STRIP=$ac_cv_prog_STRIP
3095 if test -n "$STRIP"; then
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3097 $as_echo "$STRIP" >&6; }
3098 else
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3100 $as_echo "no" >&6; }
3105 if test -z "$ac_cv_prog_STRIP"; then
3106 ac_ct_STRIP=$STRIP
3107 # Extract the first word of "strip", so it can be a program name with args.
3108 set dummy strip; ac_word=$2
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3110 $as_echo_n "checking for $ac_word... " >&6; }
3111 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3112 $as_echo_n "(cached) " >&6
3113 else
3114 if test -n "$ac_ct_STRIP"; then
3115 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3116 else
3117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3118 for as_dir in $PATH
3120 IFS=$as_save_IFS
3121 test -z "$as_dir" && as_dir=.
3122 for ac_exec_ext in '' $ac_executable_extensions; do
3123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3124 ac_cv_prog_ac_ct_STRIP="strip"
3125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3126 break 2
3128 done
3129 done
3130 IFS=$as_save_IFS
3134 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3135 if test -n "$ac_ct_STRIP"; then
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3137 $as_echo "$ac_ct_STRIP" >&6; }
3138 else
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3140 $as_echo "no" >&6; }
3143 if test "x$ac_ct_STRIP" = x; then
3144 STRIP=":"
3145 else
3146 case $cross_compiling:$ac_tool_warned in
3147 yes:)
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3149 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3150 ac_tool_warned=yes ;;
3151 esac
3152 STRIP=$ac_ct_STRIP
3154 else
3155 STRIP="$ac_cv_prog_STRIP"
3159 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3162 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3163 if test -z "$MKDIR_P"; then
3164 if ${ac_cv_path_mkdir+:} false; then :
3165 $as_echo_n "(cached) " >&6
3166 else
3167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3168 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3170 IFS=$as_save_IFS
3171 test -z "$as_dir" && as_dir=.
3172 for ac_prog in mkdir gmkdir; do
3173 for ac_exec_ext in '' $ac_executable_extensions; do
3174 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3175 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3176 'mkdir (GNU coreutils) '* | \
3177 'mkdir (coreutils) '* | \
3178 'mkdir (fileutils) '4.1*)
3179 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3180 break 3;;
3181 esac
3182 done
3183 done
3184 done
3185 IFS=$as_save_IFS
3189 test -d ./--version && rmdir ./--version
3190 if test "${ac_cv_path_mkdir+set}" = set; then
3191 MKDIR_P="$ac_cv_path_mkdir -p"
3192 else
3193 # As a last resort, use the slow shell script. Don't cache a
3194 # value for MKDIR_P within a source directory, because that will
3195 # break other packages using the cache if that directory is
3196 # removed, or if the value is a relative name.
3197 MKDIR_P="$ac_install_sh -d"
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3201 $as_echo "$MKDIR_P" >&6; }
3203 for ac_prog in gawk mawk nawk awk
3205 # Extract the first word of "$ac_prog", so it can be a program name with args.
3206 set dummy $ac_prog; ac_word=$2
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3208 $as_echo_n "checking for $ac_word... " >&6; }
3209 if ${ac_cv_prog_AWK+:} false; then :
3210 $as_echo_n "(cached) " >&6
3211 else
3212 if test -n "$AWK"; then
3213 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3214 else
3215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3216 for as_dir in $PATH
3218 IFS=$as_save_IFS
3219 test -z "$as_dir" && as_dir=.
3220 for ac_exec_ext in '' $ac_executable_extensions; do
3221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3222 ac_cv_prog_AWK="$ac_prog"
3223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3224 break 2
3226 done
3227 done
3228 IFS=$as_save_IFS
3232 AWK=$ac_cv_prog_AWK
3233 if test -n "$AWK"; then
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3235 $as_echo "$AWK" >&6; }
3236 else
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3238 $as_echo "no" >&6; }
3242 test -n "$AWK" && break
3243 done
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3246 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3247 set x ${MAKE-make}
3248 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3249 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3250 $as_echo_n "(cached) " >&6
3251 else
3252 cat >conftest.make <<\_ACEOF
3253 SHELL = /bin/sh
3254 all:
3255 @echo '@@@%%%=$(MAKE)=@@@%%%'
3256 _ACEOF
3257 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3258 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3259 *@@@%%%=?*=@@@%%%*)
3260 eval ac_cv_prog_make_${ac_make}_set=yes;;
3262 eval ac_cv_prog_make_${ac_make}_set=no;;
3263 esac
3264 rm -f conftest.make
3266 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3268 $as_echo "yes" >&6; }
3269 SET_MAKE=
3270 else
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3272 $as_echo "no" >&6; }
3273 SET_MAKE="MAKE=${MAKE-make}"
3276 rm -rf .tst 2>/dev/null
3277 mkdir .tst 2>/dev/null
3278 if test -d .tst; then
3279 am__leading_dot=.
3280 else
3281 am__leading_dot=_
3283 rmdir .tst 2>/dev/null
3285 # Check whether --enable-silent-rules was given.
3286 if test "${enable_silent_rules+set}" = set; then :
3287 enableval=$enable_silent_rules;
3290 case $enable_silent_rules in # (((
3291 yes) AM_DEFAULT_VERBOSITY=0;;
3292 no) AM_DEFAULT_VERBOSITY=1;;
3293 *) AM_DEFAULT_VERBOSITY=1;;
3294 esac
3295 am_make=${MAKE-make}
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3297 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3298 if ${am_cv_make_support_nested_variables+:} false; then :
3299 $as_echo_n "(cached) " >&6
3300 else
3301 if $as_echo 'TRUE=$(BAR$(V))
3302 BAR0=false
3303 BAR1=true
3305 am__doit:
3306 @$(TRUE)
3307 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3308 am_cv_make_support_nested_variables=yes
3309 else
3310 am_cv_make_support_nested_variables=no
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3314 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3315 if test $am_cv_make_support_nested_variables = yes; then
3316 AM_V='$(V)'
3317 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3318 else
3319 AM_V=$AM_DEFAULT_VERBOSITY
3320 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3322 AM_BACKSLASH='\'
3324 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3325 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3326 # is not polluted with repeated "-I."
3327 am__isrc=' -I$(srcdir)'
3328 # test to see if srcdir already configured
3329 if test -f $srcdir/config.status; then
3330 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3334 # test whether we have cygpath
3335 if test -z "$CYGPATH_W"; then
3336 if (cygpath --version) >/dev/null 2>/dev/null; then
3337 CYGPATH_W='cygpath -w'
3338 else
3339 CYGPATH_W=echo
3344 # Define the identity of the package.
3345 PACKAGE='alpine'
3346 VERSION='2.24.1'
3349 cat >>confdefs.h <<_ACEOF
3350 #define PACKAGE "$PACKAGE"
3351 _ACEOF
3354 cat >>confdefs.h <<_ACEOF
3355 #define VERSION "$VERSION"
3356 _ACEOF
3358 # Some tools Automake needs.
3360 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3363 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3366 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3369 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3372 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3374 # For better backward compatibility. To be removed once Automake 1.9.x
3375 # dies out for good. For more background, see:
3376 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3377 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3378 mkdir_p='$(MKDIR_P)'
3380 # We need awk for the "check" target (and possibly the TAP driver). The
3381 # system "awk" is bad on some platforms.
3382 # Always define AMTAR for backward compatibility. Yes, it's still used
3383 # in the wild :-( We should find a proper way to deprecate it ...
3384 AMTAR='$${TAR-tar}'
3387 # We'll loop over all known methods to create a tar archive until one works.
3388 _am_tools='gnutar pax cpio none'
3390 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3397 # POSIX will say in a future version that running "rm -f" with no argument
3398 # is OK; and we want to be able to make that assumption in our Makefile
3399 # recipes. So use an aggressive probe to check that the usage we want is
3400 # actually supported "in the wild" to an acceptable degree.
3401 # See automake bug#10828.
3402 # To make any issue more visible, cause the running configure to be aborted
3403 # by default if the 'rm' program in use doesn't match our expectations; the
3404 # user can still override this though.
3405 if rm -f && rm -fr && rm -rf; then : OK; else
3406 cat >&2 <<'END'
3407 Oops!
3409 Your 'rm' program seems unable to run without file operands specified
3410 on the command line, even when the '-f' option is present. This is contrary
3411 to the behaviour of most rm programs out there, and not conforming with
3412 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3414 Please tell bug-automake@gnu.org about your system, including the value
3415 of your $PATH and any error possibly output before this message. This
3416 can help us improve future automake versions.
3419 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3420 echo 'Configuration will proceed anyway, since you have set the' >&2
3421 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3422 echo >&2
3423 else
3424 cat >&2 <<'END'
3425 Aborting the configuration process, to ensure you take notice of the issue.
3427 You can download and install GNU coreutils to get an 'rm' implementation
3428 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3430 If you want to complete the configuration process using your problematic
3431 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3432 to "yes", and re-run configure.
3435 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3442 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3443 # Check whether --enable-maintainer-mode was given.
3444 if test "${enable_maintainer_mode+set}" = set; then :
3445 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3446 else
3447 USE_MAINTAINER_MODE=no
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3451 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3452 if test $USE_MAINTAINER_MODE = yes; then
3453 MAINTAINER_MODE_TRUE=
3454 MAINTAINER_MODE_FALSE='#'
3455 else
3456 MAINTAINER_MODE_TRUE='#'
3457 MAINTAINER_MODE_FALSE=
3460 MAINT=$MAINTAINER_MODE_TRUE
3464 # Make sure we can run config.sub.
3465 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3466 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3469 $as_echo_n "checking build system type... " >&6; }
3470 if ${ac_cv_build+:} false; then :
3471 $as_echo_n "(cached) " >&6
3472 else
3473 ac_build_alias=$build_alias
3474 test "x$ac_build_alias" = x &&
3475 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3476 test "x$ac_build_alias" = x &&
3477 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3478 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3479 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3483 $as_echo "$ac_cv_build" >&6; }
3484 case $ac_cv_build in
3485 *-*-*) ;;
3486 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3487 esac
3488 build=$ac_cv_build
3489 ac_save_IFS=$IFS; IFS='-'
3490 set x $ac_cv_build
3491 shift
3492 build_cpu=$1
3493 build_vendor=$2
3494 shift; shift
3495 # Remember, the first character of IFS is used to create $*,
3496 # except with old shells:
3497 build_os=$*
3498 IFS=$ac_save_IFS
3499 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3503 $as_echo_n "checking host system type... " >&6; }
3504 if ${ac_cv_host+:} false; then :
3505 $as_echo_n "(cached) " >&6
3506 else
3507 if test "x$host_alias" = x; then
3508 ac_cv_host=$ac_cv_build
3509 else
3510 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3511 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3516 $as_echo "$ac_cv_host" >&6; }
3517 case $ac_cv_host in
3518 *-*-*) ;;
3519 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3520 esac
3521 host=$ac_cv_host
3522 ac_save_IFS=$IFS; IFS='-'
3523 set x $ac_cv_host
3524 shift
3525 host_cpu=$1
3526 host_vendor=$2
3527 shift; shift
3528 # Remember, the first character of IFS is used to create $*,
3529 # except with old shells:
3530 host_os=$*
3531 IFS=$ac_save_IFS
3532 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3536 ac_ext=c
3537 ac_cpp='$CPP $CPPFLAGS'
3538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring for $PACKAGE_STRING ($host)" >&5
3544 $as_echo "$as_me: Configuring for $PACKAGE_STRING ($host)" >&6;}
3546 # start out with intent to build Web Alpine
3547 WEB_BUILD=web/src/alpined.d
3550 ac_ext=c
3551 ac_cpp='$CPP $CPPFLAGS'
3552 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3553 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3554 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3555 if test -n "$ac_tool_prefix"; then
3556 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3557 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3559 $as_echo_n "checking for $ac_word... " >&6; }
3560 if ${ac_cv_prog_CC+:} false; then :
3561 $as_echo_n "(cached) " >&6
3562 else
3563 if test -n "$CC"; then
3564 ac_cv_prog_CC="$CC" # Let the user override the test.
3565 else
3566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3567 for as_dir in $PATH
3569 IFS=$as_save_IFS
3570 test -z "$as_dir" && as_dir=.
3571 for ac_exec_ext in '' $ac_executable_extensions; do
3572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3573 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3575 break 2
3577 done
3578 done
3579 IFS=$as_save_IFS
3583 CC=$ac_cv_prog_CC
3584 if test -n "$CC"; then
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3586 $as_echo "$CC" >&6; }
3587 else
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3589 $as_echo "no" >&6; }
3594 if test -z "$ac_cv_prog_CC"; then
3595 ac_ct_CC=$CC
3596 # Extract the first word of "gcc", so it can be a program name with args.
3597 set dummy gcc; ac_word=$2
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3599 $as_echo_n "checking for $ac_word... " >&6; }
3600 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3601 $as_echo_n "(cached) " >&6
3602 else
3603 if test -n "$ac_ct_CC"; then
3604 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3605 else
3606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3607 for as_dir in $PATH
3609 IFS=$as_save_IFS
3610 test -z "$as_dir" && as_dir=.
3611 for ac_exec_ext in '' $ac_executable_extensions; do
3612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3613 ac_cv_prog_ac_ct_CC="gcc"
3614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3615 break 2
3617 done
3618 done
3619 IFS=$as_save_IFS
3623 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3624 if test -n "$ac_ct_CC"; then
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3626 $as_echo "$ac_ct_CC" >&6; }
3627 else
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3629 $as_echo "no" >&6; }
3632 if test "x$ac_ct_CC" = x; then
3633 CC=""
3634 else
3635 case $cross_compiling:$ac_tool_warned in
3636 yes:)
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3638 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3639 ac_tool_warned=yes ;;
3640 esac
3641 CC=$ac_ct_CC
3643 else
3644 CC="$ac_cv_prog_CC"
3647 if test -z "$CC"; then
3648 if test -n "$ac_tool_prefix"; then
3649 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3650 set dummy ${ac_tool_prefix}cc; ac_word=$2
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3652 $as_echo_n "checking for $ac_word... " >&6; }
3653 if ${ac_cv_prog_CC+:} false; then :
3654 $as_echo_n "(cached) " >&6
3655 else
3656 if test -n "$CC"; then
3657 ac_cv_prog_CC="$CC" # Let the user override the test.
3658 else
3659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3660 for as_dir in $PATH
3662 IFS=$as_save_IFS
3663 test -z "$as_dir" && as_dir=.
3664 for ac_exec_ext in '' $ac_executable_extensions; do
3665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3666 ac_cv_prog_CC="${ac_tool_prefix}cc"
3667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3668 break 2
3670 done
3671 done
3672 IFS=$as_save_IFS
3676 CC=$ac_cv_prog_CC
3677 if test -n "$CC"; then
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3679 $as_echo "$CC" >&6; }
3680 else
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3682 $as_echo "no" >&6; }
3688 if test -z "$CC"; then
3689 # Extract the first word of "cc", so it can be a program name with args.
3690 set dummy cc; ac_word=$2
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3692 $as_echo_n "checking for $ac_word... " >&6; }
3693 if ${ac_cv_prog_CC+:} false; then :
3694 $as_echo_n "(cached) " >&6
3695 else
3696 if test -n "$CC"; then
3697 ac_cv_prog_CC="$CC" # Let the user override the test.
3698 else
3699 ac_prog_rejected=no
3700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3701 for as_dir in $PATH
3703 IFS=$as_save_IFS
3704 test -z "$as_dir" && as_dir=.
3705 for ac_exec_ext in '' $ac_executable_extensions; do
3706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3707 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3708 ac_prog_rejected=yes
3709 continue
3711 ac_cv_prog_CC="cc"
3712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3713 break 2
3715 done
3716 done
3717 IFS=$as_save_IFS
3719 if test $ac_prog_rejected = yes; then
3720 # We found a bogon in the path, so make sure we never use it.
3721 set dummy $ac_cv_prog_CC
3722 shift
3723 if test $# != 0; then
3724 # We chose a different compiler from the bogus one.
3725 # However, it has the same basename, so the bogon will be chosen
3726 # first if we set CC to just the basename; use the full file name.
3727 shift
3728 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3733 CC=$ac_cv_prog_CC
3734 if test -n "$CC"; then
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3736 $as_echo "$CC" >&6; }
3737 else
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3739 $as_echo "no" >&6; }
3744 if test -z "$CC"; then
3745 if test -n "$ac_tool_prefix"; then
3746 for ac_prog in cl.exe
3748 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3749 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3751 $as_echo_n "checking for $ac_word... " >&6; }
3752 if ${ac_cv_prog_CC+:} false; then :
3753 $as_echo_n "(cached) " >&6
3754 else
3755 if test -n "$CC"; then
3756 ac_cv_prog_CC="$CC" # Let the user override the test.
3757 else
3758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3759 for as_dir in $PATH
3761 IFS=$as_save_IFS
3762 test -z "$as_dir" && as_dir=.
3763 for ac_exec_ext in '' $ac_executable_extensions; do
3764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3765 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3767 break 2
3769 done
3770 done
3771 IFS=$as_save_IFS
3775 CC=$ac_cv_prog_CC
3776 if test -n "$CC"; then
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3778 $as_echo "$CC" >&6; }
3779 else
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3781 $as_echo "no" >&6; }
3785 test -n "$CC" && break
3786 done
3788 if test -z "$CC"; then
3789 ac_ct_CC=$CC
3790 for ac_prog in cl.exe
3792 # Extract the first word of "$ac_prog", so it can be a program name with args.
3793 set dummy $ac_prog; ac_word=$2
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3795 $as_echo_n "checking for $ac_word... " >&6; }
3796 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3797 $as_echo_n "(cached) " >&6
3798 else
3799 if test -n "$ac_ct_CC"; then
3800 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3801 else
3802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3803 for as_dir in $PATH
3805 IFS=$as_save_IFS
3806 test -z "$as_dir" && as_dir=.
3807 for ac_exec_ext in '' $ac_executable_extensions; do
3808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3809 ac_cv_prog_ac_ct_CC="$ac_prog"
3810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3811 break 2
3813 done
3814 done
3815 IFS=$as_save_IFS
3819 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3820 if test -n "$ac_ct_CC"; then
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3822 $as_echo "$ac_ct_CC" >&6; }
3823 else
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3825 $as_echo "no" >&6; }
3829 test -n "$ac_ct_CC" && break
3830 done
3832 if test "x$ac_ct_CC" = x; then
3833 CC=""
3834 else
3835 case $cross_compiling:$ac_tool_warned in
3836 yes:)
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3838 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3839 ac_tool_warned=yes ;;
3840 esac
3841 CC=$ac_ct_CC
3848 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3849 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3850 as_fn_error $? "no acceptable C compiler found in \$PATH
3851 See \`config.log' for more details" "$LINENO" 5; }
3853 # Provide some information about the compiler.
3854 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3855 set X $ac_compile
3856 ac_compiler=$2
3857 for ac_option in --version -v -V -qversion; do
3858 { { ac_try="$ac_compiler $ac_option >&5"
3859 case "(($ac_try" in
3860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3861 *) ac_try_echo=$ac_try;;
3862 esac
3863 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3864 $as_echo "$ac_try_echo"; } >&5
3865 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3866 ac_status=$?
3867 if test -s conftest.err; then
3868 sed '10a\
3869 ... rest of stderr output deleted ...
3870 10q' conftest.err >conftest.er1
3871 cat conftest.er1 >&5
3873 rm -f conftest.er1 conftest.err
3874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3875 test $ac_status = 0; }
3876 done
3878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3879 /* end confdefs.h. */
3882 main ()
3886 return 0;
3888 _ACEOF
3889 ac_clean_files_save=$ac_clean_files
3890 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3891 # Try to create an executable without -o first, disregard a.out.
3892 # It will help us diagnose broken compilers, and finding out an intuition
3893 # of exeext.
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3895 $as_echo_n "checking whether the C compiler works... " >&6; }
3896 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3898 # The possible output files:
3899 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3901 ac_rmfiles=
3902 for ac_file in $ac_files
3904 case $ac_file in
3905 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3906 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3907 esac
3908 done
3909 rm -f $ac_rmfiles
3911 if { { ac_try="$ac_link_default"
3912 case "(($ac_try" in
3913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3914 *) ac_try_echo=$ac_try;;
3915 esac
3916 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3917 $as_echo "$ac_try_echo"; } >&5
3918 (eval "$ac_link_default") 2>&5
3919 ac_status=$?
3920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3921 test $ac_status = 0; }; then :
3922 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3923 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3924 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3925 # so that the user can short-circuit this test for compilers unknown to
3926 # Autoconf.
3927 for ac_file in $ac_files ''
3929 test -f "$ac_file" || continue
3930 case $ac_file in
3931 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3933 [ab].out )
3934 # We found the default executable, but exeext='' is most
3935 # certainly right.
3936 break;;
3937 *.* )
3938 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3939 then :; else
3940 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3942 # We set ac_cv_exeext here because the later test for it is not
3943 # safe: cross compilers may not add the suffix if given an `-o'
3944 # argument, so we may need to know it at that point already.
3945 # Even if this section looks crufty: it has the advantage of
3946 # actually working.
3947 break;;
3949 break;;
3950 esac
3951 done
3952 test "$ac_cv_exeext" = no && ac_cv_exeext=
3954 else
3955 ac_file=''
3957 if test -z "$ac_file"; then :
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3959 $as_echo "no" >&6; }
3960 $as_echo "$as_me: failed program was:" >&5
3961 sed 's/^/| /' conftest.$ac_ext >&5
3963 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3964 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3965 as_fn_error 77 "C compiler cannot create executables
3966 See \`config.log' for more details" "$LINENO" 5; }
3967 else
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3969 $as_echo "yes" >&6; }
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3972 $as_echo_n "checking for C compiler default output file name... " >&6; }
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3974 $as_echo "$ac_file" >&6; }
3975 ac_exeext=$ac_cv_exeext
3977 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3978 ac_clean_files=$ac_clean_files_save
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3980 $as_echo_n "checking for suffix of executables... " >&6; }
3981 if { { ac_try="$ac_link"
3982 case "(($ac_try" in
3983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3984 *) ac_try_echo=$ac_try;;
3985 esac
3986 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3987 $as_echo "$ac_try_echo"; } >&5
3988 (eval "$ac_link") 2>&5
3989 ac_status=$?
3990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3991 test $ac_status = 0; }; then :
3992 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3993 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3994 # work properly (i.e., refer to `conftest.exe'), while it won't with
3995 # `rm'.
3996 for ac_file in conftest.exe conftest conftest.*; do
3997 test -f "$ac_file" || continue
3998 case $ac_file in
3999 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4000 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4001 break;;
4002 * ) break;;
4003 esac
4004 done
4005 else
4006 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4007 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4008 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4009 See \`config.log' for more details" "$LINENO" 5; }
4011 rm -f conftest conftest$ac_cv_exeext
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4013 $as_echo "$ac_cv_exeext" >&6; }
4015 rm -f conftest.$ac_ext
4016 EXEEXT=$ac_cv_exeext
4017 ac_exeext=$EXEEXT
4018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4019 /* end confdefs.h. */
4020 #include <stdio.h>
4022 main ()
4024 FILE *f = fopen ("conftest.out", "w");
4025 return ferror (f) || fclose (f) != 0;
4028 return 0;
4030 _ACEOF
4031 ac_clean_files="$ac_clean_files conftest.out"
4032 # Check that the compiler produces executables we can run. If not, either
4033 # the compiler is broken, or we cross compile.
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4035 $as_echo_n "checking whether we are cross compiling... " >&6; }
4036 if test "$cross_compiling" != yes; then
4037 { { ac_try="$ac_link"
4038 case "(($ac_try" in
4039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4040 *) ac_try_echo=$ac_try;;
4041 esac
4042 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4043 $as_echo "$ac_try_echo"; } >&5
4044 (eval "$ac_link") 2>&5
4045 ac_status=$?
4046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4047 test $ac_status = 0; }
4048 if { ac_try='./conftest$ac_cv_exeext'
4049 { { case "(($ac_try" in
4050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4051 *) ac_try_echo=$ac_try;;
4052 esac
4053 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4054 $as_echo "$ac_try_echo"; } >&5
4055 (eval "$ac_try") 2>&5
4056 ac_status=$?
4057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4058 test $ac_status = 0; }; }; then
4059 cross_compiling=no
4060 else
4061 if test "$cross_compiling" = maybe; then
4062 cross_compiling=yes
4063 else
4064 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4065 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4066 as_fn_error $? "cannot run C compiled programs.
4067 If you meant to cross compile, use \`--host'.
4068 See \`config.log' for more details" "$LINENO" 5; }
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4073 $as_echo "$cross_compiling" >&6; }
4075 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4076 ac_clean_files=$ac_clean_files_save
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4078 $as_echo_n "checking for suffix of object files... " >&6; }
4079 if ${ac_cv_objext+:} false; then :
4080 $as_echo_n "(cached) " >&6
4081 else
4082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4083 /* end confdefs.h. */
4086 main ()
4090 return 0;
4092 _ACEOF
4093 rm -f conftest.o conftest.obj
4094 if { { ac_try="$ac_compile"
4095 case "(($ac_try" in
4096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4097 *) ac_try_echo=$ac_try;;
4098 esac
4099 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4100 $as_echo "$ac_try_echo"; } >&5
4101 (eval "$ac_compile") 2>&5
4102 ac_status=$?
4103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4104 test $ac_status = 0; }; then :
4105 for ac_file in conftest.o conftest.obj conftest.*; do
4106 test -f "$ac_file" || continue;
4107 case $ac_file in
4108 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4109 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4110 break;;
4111 esac
4112 done
4113 else
4114 $as_echo "$as_me: failed program was:" >&5
4115 sed 's/^/| /' conftest.$ac_ext >&5
4117 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4118 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4119 as_fn_error $? "cannot compute suffix of object files: cannot compile
4120 See \`config.log' for more details" "$LINENO" 5; }
4122 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4125 $as_echo "$ac_cv_objext" >&6; }
4126 OBJEXT=$ac_cv_objext
4127 ac_objext=$OBJEXT
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4129 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4130 if ${ac_cv_c_compiler_gnu+:} false; then :
4131 $as_echo_n "(cached) " >&6
4132 else
4133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4134 /* end confdefs.h. */
4137 main ()
4139 #ifndef __GNUC__
4140 choke me
4141 #endif
4144 return 0;
4146 _ACEOF
4147 if ac_fn_c_try_compile "$LINENO"; then :
4148 ac_compiler_gnu=yes
4149 else
4150 ac_compiler_gnu=no
4152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4153 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4157 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4158 if test $ac_compiler_gnu = yes; then
4159 GCC=yes
4160 else
4161 GCC=
4163 ac_test_CFLAGS=${CFLAGS+set}
4164 ac_save_CFLAGS=$CFLAGS
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4166 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4167 if ${ac_cv_prog_cc_g+:} false; then :
4168 $as_echo_n "(cached) " >&6
4169 else
4170 ac_save_c_werror_flag=$ac_c_werror_flag
4171 ac_c_werror_flag=yes
4172 ac_cv_prog_cc_g=no
4173 CFLAGS="-g"
4174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4175 /* end confdefs.h. */
4178 main ()
4182 return 0;
4184 _ACEOF
4185 if ac_fn_c_try_compile "$LINENO"; then :
4186 ac_cv_prog_cc_g=yes
4187 else
4188 CFLAGS=""
4189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4190 /* end confdefs.h. */
4193 main ()
4197 return 0;
4199 _ACEOF
4200 if ac_fn_c_try_compile "$LINENO"; then :
4202 else
4203 ac_c_werror_flag=$ac_save_c_werror_flag
4204 CFLAGS="-g"
4205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4206 /* end confdefs.h. */
4209 main ()
4213 return 0;
4215 _ACEOF
4216 if ac_fn_c_try_compile "$LINENO"; then :
4217 ac_cv_prog_cc_g=yes
4219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4224 ac_c_werror_flag=$ac_save_c_werror_flag
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4227 $as_echo "$ac_cv_prog_cc_g" >&6; }
4228 if test "$ac_test_CFLAGS" = set; then
4229 CFLAGS=$ac_save_CFLAGS
4230 elif test $ac_cv_prog_cc_g = yes; then
4231 if test "$GCC" = yes; then
4232 CFLAGS="-g -O2"
4233 else
4234 CFLAGS="-g"
4236 else
4237 if test "$GCC" = yes; then
4238 CFLAGS="-O2"
4239 else
4240 CFLAGS=
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4244 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4245 if ${ac_cv_prog_cc_c89+:} false; then :
4246 $as_echo_n "(cached) " >&6
4247 else
4248 ac_cv_prog_cc_c89=no
4249 ac_save_CC=$CC
4250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4251 /* end confdefs.h. */
4252 #include <stdarg.h>
4253 #include <stdio.h>
4254 struct stat;
4255 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4256 struct buf { int x; };
4257 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4258 static char *e (p, i)
4259 char **p;
4260 int i;
4262 return p[i];
4264 static char *f (char * (*g) (char **, int), char **p, ...)
4266 char *s;
4267 va_list v;
4268 va_start (v,p);
4269 s = g (p, va_arg (v,int));
4270 va_end (v);
4271 return s;
4274 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4275 function prototypes and stuff, but not '\xHH' hex character constants.
4276 These don't provoke an error unfortunately, instead are silently treated
4277 as 'x'. The following induces an error, until -std is added to get
4278 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4279 array size at least. It's necessary to write '\x00'==0 to get something
4280 that's true only with -std. */
4281 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4283 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4284 inside strings and character constants. */
4285 #define FOO(x) 'x'
4286 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4288 int test (int i, double x);
4289 struct s1 {int (*f) (int a);};
4290 struct s2 {int (*f) (double a);};
4291 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4292 int argc;
4293 char **argv;
4295 main ()
4297 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4299 return 0;
4301 _ACEOF
4302 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4303 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4305 CC="$ac_save_CC $ac_arg"
4306 if ac_fn_c_try_compile "$LINENO"; then :
4307 ac_cv_prog_cc_c89=$ac_arg
4309 rm -f core conftest.err conftest.$ac_objext
4310 test "x$ac_cv_prog_cc_c89" != "xno" && break
4311 done
4312 rm -f conftest.$ac_ext
4313 CC=$ac_save_CC
4316 # AC_CACHE_VAL
4317 case "x$ac_cv_prog_cc_c89" in
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4320 $as_echo "none needed" >&6; } ;;
4321 xno)
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4323 $as_echo "unsupported" >&6; } ;;
4325 CC="$CC $ac_cv_prog_cc_c89"
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4327 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4328 esac
4329 if test "x$ac_cv_prog_cc_c89" != xno; then :
4333 ac_ext=c
4334 ac_cpp='$CPP $CPPFLAGS'
4335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4339 ac_ext=c
4340 ac_cpp='$CPP $CPPFLAGS'
4341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4345 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4346 if ${am_cv_prog_cc_c_o+:} false; then :
4347 $as_echo_n "(cached) " >&6
4348 else
4349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4350 /* end confdefs.h. */
4353 main ()
4357 return 0;
4359 _ACEOF
4360 # Make sure it works both with $CC and with simple cc.
4361 # Following AC_PROG_CC_C_O, we do the test twice because some
4362 # compilers refuse to overwrite an existing .o file with -o,
4363 # though they will create one.
4364 am_cv_prog_cc_c_o=yes
4365 for am_i in 1 2; do
4366 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4367 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4368 ac_status=$?
4369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370 (exit $ac_status); } \
4371 && test -f conftest2.$ac_objext; then
4372 : OK
4373 else
4374 am_cv_prog_cc_c_o=no
4375 break
4377 done
4378 rm -f core conftest*
4379 unset am_i
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4382 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4383 if test "$am_cv_prog_cc_c_o" != yes; then
4384 # Losing compiler, so override with the script.
4385 # FIXME: It is wrong to rewrite CC.
4386 # But if we don't then we get into trouble of one sort or another.
4387 # A longer-term fix would be to have automake use am__CC in this case,
4388 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4389 CC="$am_aux_dir/compile $CC"
4391 ac_ext=c
4392 ac_cpp='$CPP $CPPFLAGS'
4393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4397 DEPDIR="${am__leading_dot}deps"
4399 ac_config_commands="$ac_config_commands depfiles"
4402 am_make=${MAKE-make}
4403 cat > confinc << 'END'
4404 am__doit:
4405 @echo this is the am__doit target
4406 .PHONY: am__doit
4408 # If we don't find an include directive, just comment out the code.
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4410 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4411 am__include="#"
4412 am__quote=
4413 _am_result=none
4414 # First try GNU make style include.
4415 echo "include confinc" > confmf
4416 # Ignore all kinds of additional output from 'make'.
4417 case `$am_make -s -f confmf 2> /dev/null` in #(
4418 *the\ am__doit\ target*)
4419 am__include=include
4420 am__quote=
4421 _am_result=GNU
4423 esac
4424 # Now try BSD make style include.
4425 if test "$am__include" = "#"; then
4426 echo '.include "confinc"' > confmf
4427 case `$am_make -s -f confmf 2> /dev/null` in #(
4428 *the\ am__doit\ target*)
4429 am__include=.include
4430 am__quote="\""
4431 _am_result=BSD
4433 esac
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4438 $as_echo "$_am_result" >&6; }
4439 rm -f confinc confmf
4441 # Check whether --enable-dependency-tracking was given.
4442 if test "${enable_dependency_tracking+set}" = set; then :
4443 enableval=$enable_dependency_tracking;
4446 if test "x$enable_dependency_tracking" != xno; then
4447 am_depcomp="$ac_aux_dir/depcomp"
4448 AMDEPBACKSLASH='\'
4449 am__nodep='_no'
4451 if test "x$enable_dependency_tracking" != xno; then
4452 AMDEP_TRUE=
4453 AMDEP_FALSE='#'
4454 else
4455 AMDEP_TRUE='#'
4456 AMDEP_FALSE=
4461 depcc="$CC" am_compiler_list=
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4464 $as_echo_n "checking dependency style of $depcc... " >&6; }
4465 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4466 $as_echo_n "(cached) " >&6
4467 else
4468 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4469 # We make a subdir and do the tests there. Otherwise we can end up
4470 # making bogus files that we don't know about and never remove. For
4471 # instance it was reported that on HP-UX the gcc test will end up
4472 # making a dummy file named 'D' -- because '-MD' means "put the output
4473 # in D".
4474 rm -rf conftest.dir
4475 mkdir conftest.dir
4476 # Copy depcomp to subdir because otherwise we won't find it if we're
4477 # using a relative directory.
4478 cp "$am_depcomp" conftest.dir
4479 cd conftest.dir
4480 # We will build objects and dependencies in a subdirectory because
4481 # it helps to detect inapplicable dependency modes. For instance
4482 # both Tru64's cc and ICC support -MD to output dependencies as a
4483 # side effect of compilation, but ICC will put the dependencies in
4484 # the current directory while Tru64 will put them in the object
4485 # directory.
4486 mkdir sub
4488 am_cv_CC_dependencies_compiler_type=none
4489 if test "$am_compiler_list" = ""; then
4490 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4492 am__universal=false
4493 case " $depcc " in #(
4494 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4495 esac
4497 for depmode in $am_compiler_list; do
4498 # Setup a source with many dependencies, because some compilers
4499 # like to wrap large dependency lists on column 80 (with \), and
4500 # we should not choose a depcomp mode which is confused by this.
4502 # We need to recreate these files for each test, as the compiler may
4503 # overwrite some of them when testing with obscure command lines.
4504 # This happens at least with the AIX C compiler.
4505 : > sub/conftest.c
4506 for i in 1 2 3 4 5 6; do
4507 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4508 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4509 # Solaris 10 /bin/sh.
4510 echo '/* dummy */' > sub/conftst$i.h
4511 done
4512 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4514 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4515 # mode. It turns out that the SunPro C++ compiler does not properly
4516 # handle '-M -o', and we need to detect this. Also, some Intel
4517 # versions had trouble with output in subdirs.
4518 am__obj=sub/conftest.${OBJEXT-o}
4519 am__minus_obj="-o $am__obj"
4520 case $depmode in
4521 gcc)
4522 # This depmode causes a compiler race in universal mode.
4523 test "$am__universal" = false || continue
4525 nosideeffect)
4526 # After this tag, mechanisms are not by side-effect, so they'll
4527 # only be used when explicitly requested.
4528 if test "x$enable_dependency_tracking" = xyes; then
4529 continue
4530 else
4531 break
4534 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4535 # This compiler won't grok '-c -o', but also, the minuso test has
4536 # not run yet. These depmodes are late enough in the game, and
4537 # so weak that their functioning should not be impacted.
4538 am__obj=conftest.${OBJEXT-o}
4539 am__minus_obj=
4541 none) break ;;
4542 esac
4543 if depmode=$depmode \
4544 source=sub/conftest.c object=$am__obj \
4545 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4546 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4547 >/dev/null 2>conftest.err &&
4548 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4549 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4550 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4551 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4552 # icc doesn't choke on unknown options, it will just issue warnings
4553 # or remarks (even with -Werror). So we grep stderr for any message
4554 # that says an option was ignored or not supported.
4555 # When given -MP, icc 7.0 and 7.1 complain thusly:
4556 # icc: Command line warning: ignoring option '-M'; no argument required
4557 # The diagnosis changed in icc 8.0:
4558 # icc: Command line remark: option '-MP' not supported
4559 if (grep 'ignoring option' conftest.err ||
4560 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4561 am_cv_CC_dependencies_compiler_type=$depmode
4562 break
4565 done
4567 cd ..
4568 rm -rf conftest.dir
4569 else
4570 am_cv_CC_dependencies_compiler_type=none
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4575 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4576 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4579 test "x$enable_dependency_tracking" != xno \
4580 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4581 am__fastdepCC_TRUE=
4582 am__fastdepCC_FALSE='#'
4583 else
4584 am__fastdepCC_TRUE='#'
4585 am__fastdepCC_FALSE=
4589 AX_PROG_CC_FOR_BUILD
4590 case $ac_cv_prog_cc_stdc in #(
4591 no) :
4592 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
4593 *) :
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4595 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4596 if ${ac_cv_prog_cc_c99+:} false; then :
4597 $as_echo_n "(cached) " >&6
4598 else
4599 ac_cv_prog_cc_c99=no
4600 ac_save_CC=$CC
4601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4602 /* end confdefs.h. */
4603 #include <stdarg.h>
4604 #include <stdbool.h>
4605 #include <stdlib.h>
4606 #include <wchar.h>
4607 #include <stdio.h>
4609 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4610 #define debug(...) fprintf (stderr, __VA_ARGS__)
4611 #define showlist(...) puts (#__VA_ARGS__)
4612 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4613 static void
4614 test_varargs_macros (void)
4616 int x = 1234;
4617 int y = 5678;
4618 debug ("Flag");
4619 debug ("X = %d\n", x);
4620 showlist (The first, second, and third items.);
4621 report (x>y, "x is %d but y is %d", x, y);
4624 // Check long long types.
4625 #define BIG64 18446744073709551615ull
4626 #define BIG32 4294967295ul
4627 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4628 #if !BIG_OK
4629 your preprocessor is broken;
4630 #endif
4631 #if BIG_OK
4632 #else
4633 your preprocessor is broken;
4634 #endif
4635 static long long int bignum = -9223372036854775807LL;
4636 static unsigned long long int ubignum = BIG64;
4638 struct incomplete_array
4640 int datasize;
4641 double data[];
4644 struct named_init {
4645 int number;
4646 const wchar_t *name;
4647 double average;
4650 typedef const char *ccp;
4652 static inline int
4653 test_restrict (ccp restrict text)
4655 // See if C++-style comments work.
4656 // Iterate through items via the restricted pointer.
4657 // Also check for declarations in for loops.
4658 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4659 continue;
4660 return 0;
4663 // Check varargs and va_copy.
4664 static void
4665 test_varargs (const char *format, ...)
4667 va_list args;
4668 va_start (args, format);
4669 va_list args_copy;
4670 va_copy (args_copy, args);
4672 const char *str;
4673 int number;
4674 float fnumber;
4676 while (*format)
4678 switch (*format++)
4680 case 's': // string
4681 str = va_arg (args_copy, const char *);
4682 break;
4683 case 'd': // int
4684 number = va_arg (args_copy, int);
4685 break;
4686 case 'f': // float
4687 fnumber = va_arg (args_copy, double);
4688 break;
4689 default:
4690 break;
4693 va_end (args_copy);
4694 va_end (args);
4698 main ()
4701 // Check bool.
4702 _Bool success = false;
4704 // Check restrict.
4705 if (test_restrict ("String literal") == 0)
4706 success = true;
4707 char *restrict newvar = "Another string";
4709 // Check varargs.
4710 test_varargs ("s, d' f .", "string", 65, 34.234);
4711 test_varargs_macros ();
4713 // Check flexible array members.
4714 struct incomplete_array *ia =
4715 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4716 ia->datasize = 10;
4717 for (int i = 0; i < ia->datasize; ++i)
4718 ia->data[i] = i * 1.234;
4720 // Check named initializers.
4721 struct named_init ni = {
4722 .number = 34,
4723 .name = L"Test wide string",
4724 .average = 543.34343,
4727 ni.number = 58;
4729 int dynamic_array[ni.number];
4730 dynamic_array[ni.number - 1] = 543;
4732 // work around unused variable warnings
4733 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4734 || dynamic_array[ni.number - 1] != 543);
4737 return 0;
4739 _ACEOF
4740 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4742 CC="$ac_save_CC $ac_arg"
4743 if ac_fn_c_try_compile "$LINENO"; then :
4744 ac_cv_prog_cc_c99=$ac_arg
4746 rm -f core conftest.err conftest.$ac_objext
4747 test "x$ac_cv_prog_cc_c99" != "xno" && break
4748 done
4749 rm -f conftest.$ac_ext
4750 CC=$ac_save_CC
4753 # AC_CACHE_VAL
4754 case "x$ac_cv_prog_cc_c99" in
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4757 $as_echo "none needed" >&6; } ;;
4758 xno)
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4760 $as_echo "unsupported" >&6; } ;;
4762 CC="$CC $ac_cv_prog_cc_c99"
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4764 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4765 esac
4766 if test "x$ac_cv_prog_cc_c99" != xno; then :
4767 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4768 else
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4770 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4771 if ${ac_cv_prog_cc_c89+:} false; then :
4772 $as_echo_n "(cached) " >&6
4773 else
4774 ac_cv_prog_cc_c89=no
4775 ac_save_CC=$CC
4776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4777 /* end confdefs.h. */
4778 #include <stdarg.h>
4779 #include <stdio.h>
4780 struct stat;
4781 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4782 struct buf { int x; };
4783 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4784 static char *e (p, i)
4785 char **p;
4786 int i;
4788 return p[i];
4790 static char *f (char * (*g) (char **, int), char **p, ...)
4792 char *s;
4793 va_list v;
4794 va_start (v,p);
4795 s = g (p, va_arg (v,int));
4796 va_end (v);
4797 return s;
4800 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4801 function prototypes and stuff, but not '\xHH' hex character constants.
4802 These don't provoke an error unfortunately, instead are silently treated
4803 as 'x'. The following induces an error, until -std is added to get
4804 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4805 array size at least. It's necessary to write '\x00'==0 to get something
4806 that's true only with -std. */
4807 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4809 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4810 inside strings and character constants. */
4811 #define FOO(x) 'x'
4812 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4814 int test (int i, double x);
4815 struct s1 {int (*f) (int a);};
4816 struct s2 {int (*f) (double a);};
4817 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4818 int argc;
4819 char **argv;
4821 main ()
4823 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4825 return 0;
4827 _ACEOF
4828 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4829 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4831 CC="$ac_save_CC $ac_arg"
4832 if ac_fn_c_try_compile "$LINENO"; then :
4833 ac_cv_prog_cc_c89=$ac_arg
4835 rm -f core conftest.err conftest.$ac_objext
4836 test "x$ac_cv_prog_cc_c89" != "xno" && break
4837 done
4838 rm -f conftest.$ac_ext
4839 CC=$ac_save_CC
4842 # AC_CACHE_VAL
4843 case "x$ac_cv_prog_cc_c89" in
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4846 $as_echo "none needed" >&6; } ;;
4847 xno)
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4849 $as_echo "unsupported" >&6; } ;;
4851 CC="$CC $ac_cv_prog_cc_c89"
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4853 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4854 esac
4855 if test "x$ac_cv_prog_cc_c89" != xno; then :
4856 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4857 else
4858 ac_cv_prog_cc_stdc=no
4863 esac
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4865 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4866 if ${ac_cv_prog_cc_stdc+:} false; then :
4867 $as_echo_n "(cached) " >&6
4870 case $ac_cv_prog_cc_stdc in #(
4871 no) :
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4873 $as_echo "unsupported" >&6; } ;; #(
4874 '') :
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4876 $as_echo "none needed" >&6; } ;; #(
4877 *) :
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4879 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4880 esac
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4884 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4885 set x ${MAKE-make}
4886 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4887 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4888 $as_echo_n "(cached) " >&6
4889 else
4890 cat >conftest.make <<\_ACEOF
4891 SHELL = /bin/sh
4892 all:
4893 @echo '@@@%%%=$(MAKE)=@@@%%%'
4894 _ACEOF
4895 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4896 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4897 *@@@%%%=?*=@@@%%%*)
4898 eval ac_cv_prog_make_${ac_make}_set=yes;;
4900 eval ac_cv_prog_make_${ac_make}_set=no;;
4901 esac
4902 rm -f conftest.make
4904 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4906 $as_echo "yes" >&6; }
4907 SET_MAKE=
4908 else
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4910 $as_echo "no" >&6; }
4911 SET_MAKE="MAKE=${MAKE-make}"
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4915 $as_echo_n "checking whether ln -s works... " >&6; }
4916 LN_S=$as_ln_s
4917 if test "$LN_S" = "ln -s"; then
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4919 $as_echo "yes" >&6; }
4920 else
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4922 $as_echo "no, using $LN_S" >&6; }
4925 for ac_prog in gawk mawk nawk awk
4927 # Extract the first word of "$ac_prog", so it can be a program name with args.
4928 set dummy $ac_prog; ac_word=$2
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4930 $as_echo_n "checking for $ac_word... " >&6; }
4931 if ${ac_cv_prog_AWK+:} false; then :
4932 $as_echo_n "(cached) " >&6
4933 else
4934 if test -n "$AWK"; then
4935 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4936 else
4937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4938 for as_dir in $PATH
4940 IFS=$as_save_IFS
4941 test -z "$as_dir" && as_dir=.
4942 for ac_exec_ext in '' $ac_executable_extensions; do
4943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4944 ac_cv_prog_AWK="$ac_prog"
4945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4946 break 2
4948 done
4949 done
4950 IFS=$as_save_IFS
4954 AWK=$ac_cv_prog_AWK
4955 if test -n "$AWK"; then
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4957 $as_echo "$AWK" >&6; }
4958 else
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4960 $as_echo "no" >&6; }
4964 test -n "$AWK" && break
4965 done
4967 case `pwd` in
4968 *\ * | *\ *)
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4970 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4971 esac
4975 macro_version='2.4.6'
4976 macro_revision='2.4.6'
4990 ltmain=$ac_aux_dir/ltmain.sh
4992 # Backslashify metacharacters that are still active within
4993 # double-quoted strings.
4994 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4996 # Same as above, but do not quote variable references.
4997 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4999 # Sed substitution to delay expansion of an escaped shell variable in a
5000 # double_quote_subst'ed string.
5001 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5003 # Sed substitution to delay expansion of an escaped single quote.
5004 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5006 # Sed substitution to avoid accidental globbing in evaled expressions
5007 no_glob_subst='s/\*/\\\*/g'
5009 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5010 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5011 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5014 $as_echo_n "checking how to print strings... " >&6; }
5015 # Test print first, because it will be a builtin if present.
5016 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5017 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5018 ECHO='print -r --'
5019 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5020 ECHO='printf %s\n'
5021 else
5022 # Use this function as a fallback that always works.
5023 func_fallback_echo ()
5025 eval 'cat <<_LTECHO_EOF
5027 _LTECHO_EOF'
5029 ECHO='func_fallback_echo'
5032 # func_echo_all arg...
5033 # Invoke $ECHO with all args, space-separated.
5034 func_echo_all ()
5036 $ECHO ""
5039 case $ECHO in
5040 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5041 $as_echo "printf" >&6; } ;;
5042 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5043 $as_echo "print -r" >&6; } ;;
5044 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5045 $as_echo "cat" >&6; } ;;
5046 esac
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5062 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5063 if ${ac_cv_path_SED+:} false; then :
5064 $as_echo_n "(cached) " >&6
5065 else
5066 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5067 for ac_i in 1 2 3 4 5 6 7; do
5068 ac_script="$ac_script$as_nl$ac_script"
5069 done
5070 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5071 { ac_script=; unset ac_script;}
5072 if test -z "$SED"; then
5073 ac_path_SED_found=false
5074 # Loop through the user's path and test for each of PROGNAME-LIST
5075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5076 for as_dir in $PATH
5078 IFS=$as_save_IFS
5079 test -z "$as_dir" && as_dir=.
5080 for ac_prog in sed gsed; do
5081 for ac_exec_ext in '' $ac_executable_extensions; do
5082 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5083 as_fn_executable_p "$ac_path_SED" || continue
5084 # Check for GNU ac_path_SED and select it if it is found.
5085 # Check for GNU $ac_path_SED
5086 case `"$ac_path_SED" --version 2>&1` in
5087 *GNU*)
5088 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5090 ac_count=0
5091 $as_echo_n 0123456789 >"conftest.in"
5092 while :
5094 cat "conftest.in" "conftest.in" >"conftest.tmp"
5095 mv "conftest.tmp" "conftest.in"
5096 cp "conftest.in" "conftest.nl"
5097 $as_echo '' >> "conftest.nl"
5098 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5099 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5100 as_fn_arith $ac_count + 1 && ac_count=$as_val
5101 if test $ac_count -gt ${ac_path_SED_max-0}; then
5102 # Best one so far, save it but keep looking for a better one
5103 ac_cv_path_SED="$ac_path_SED"
5104 ac_path_SED_max=$ac_count
5106 # 10*(2^10) chars as input seems more than enough
5107 test $ac_count -gt 10 && break
5108 done
5109 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5110 esac
5112 $ac_path_SED_found && break 3
5113 done
5114 done
5115 done
5116 IFS=$as_save_IFS
5117 if test -z "$ac_cv_path_SED"; then
5118 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5120 else
5121 ac_cv_path_SED=$SED
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5126 $as_echo "$ac_cv_path_SED" >&6; }
5127 SED="$ac_cv_path_SED"
5128 rm -f conftest.sed
5130 test -z "$SED" && SED=sed
5131 Xsed="$SED -e 1s/^X//"
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5144 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5145 if ${ac_cv_path_GREP+:} false; then :
5146 $as_echo_n "(cached) " >&6
5147 else
5148 if test -z "$GREP"; then
5149 ac_path_GREP_found=false
5150 # Loop through the user's path and test for each of PROGNAME-LIST
5151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5152 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5154 IFS=$as_save_IFS
5155 test -z "$as_dir" && as_dir=.
5156 for ac_prog in grep ggrep; do
5157 for ac_exec_ext in '' $ac_executable_extensions; do
5158 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5159 as_fn_executable_p "$ac_path_GREP" || continue
5160 # Check for GNU ac_path_GREP and select it if it is found.
5161 # Check for GNU $ac_path_GREP
5162 case `"$ac_path_GREP" --version 2>&1` in
5163 *GNU*)
5164 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5166 ac_count=0
5167 $as_echo_n 0123456789 >"conftest.in"
5168 while :
5170 cat "conftest.in" "conftest.in" >"conftest.tmp"
5171 mv "conftest.tmp" "conftest.in"
5172 cp "conftest.in" "conftest.nl"
5173 $as_echo 'GREP' >> "conftest.nl"
5174 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5175 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5176 as_fn_arith $ac_count + 1 && ac_count=$as_val
5177 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5178 # Best one so far, save it but keep looking for a better one
5179 ac_cv_path_GREP="$ac_path_GREP"
5180 ac_path_GREP_max=$ac_count
5182 # 10*(2^10) chars as input seems more than enough
5183 test $ac_count -gt 10 && break
5184 done
5185 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5186 esac
5188 $ac_path_GREP_found && break 3
5189 done
5190 done
5191 done
5192 IFS=$as_save_IFS
5193 if test -z "$ac_cv_path_GREP"; then
5194 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5196 else
5197 ac_cv_path_GREP=$GREP
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5202 $as_echo "$ac_cv_path_GREP" >&6; }
5203 GREP="$ac_cv_path_GREP"
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5207 $as_echo_n "checking for egrep... " >&6; }
5208 if ${ac_cv_path_EGREP+:} false; then :
5209 $as_echo_n "(cached) " >&6
5210 else
5211 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5212 then ac_cv_path_EGREP="$GREP -E"
5213 else
5214 if test -z "$EGREP"; then
5215 ac_path_EGREP_found=false
5216 # Loop through the user's path and test for each of PROGNAME-LIST
5217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5218 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5220 IFS=$as_save_IFS
5221 test -z "$as_dir" && as_dir=.
5222 for ac_prog in egrep; do
5223 for ac_exec_ext in '' $ac_executable_extensions; do
5224 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5225 as_fn_executable_p "$ac_path_EGREP" || continue
5226 # Check for GNU ac_path_EGREP and select it if it is found.
5227 # Check for GNU $ac_path_EGREP
5228 case `"$ac_path_EGREP" --version 2>&1` in
5229 *GNU*)
5230 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5232 ac_count=0
5233 $as_echo_n 0123456789 >"conftest.in"
5234 while :
5236 cat "conftest.in" "conftest.in" >"conftest.tmp"
5237 mv "conftest.tmp" "conftest.in"
5238 cp "conftest.in" "conftest.nl"
5239 $as_echo 'EGREP' >> "conftest.nl"
5240 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5241 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5242 as_fn_arith $ac_count + 1 && ac_count=$as_val
5243 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5244 # Best one so far, save it but keep looking for a better one
5245 ac_cv_path_EGREP="$ac_path_EGREP"
5246 ac_path_EGREP_max=$ac_count
5248 # 10*(2^10) chars as input seems more than enough
5249 test $ac_count -gt 10 && break
5250 done
5251 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5252 esac
5254 $ac_path_EGREP_found && break 3
5255 done
5256 done
5257 done
5258 IFS=$as_save_IFS
5259 if test -z "$ac_cv_path_EGREP"; then
5260 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5262 else
5263 ac_cv_path_EGREP=$EGREP
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5269 $as_echo "$ac_cv_path_EGREP" >&6; }
5270 EGREP="$ac_cv_path_EGREP"
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5274 $as_echo_n "checking for fgrep... " >&6; }
5275 if ${ac_cv_path_FGREP+:} false; then :
5276 $as_echo_n "(cached) " >&6
5277 else
5278 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5279 then ac_cv_path_FGREP="$GREP -F"
5280 else
5281 if test -z "$FGREP"; then
5282 ac_path_FGREP_found=false
5283 # Loop through the user's path and test for each of PROGNAME-LIST
5284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5285 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5287 IFS=$as_save_IFS
5288 test -z "$as_dir" && as_dir=.
5289 for ac_prog in fgrep; do
5290 for ac_exec_ext in '' $ac_executable_extensions; do
5291 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5292 as_fn_executable_p "$ac_path_FGREP" || continue
5293 # Check for GNU ac_path_FGREP and select it if it is found.
5294 # Check for GNU $ac_path_FGREP
5295 case `"$ac_path_FGREP" --version 2>&1` in
5296 *GNU*)
5297 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5299 ac_count=0
5300 $as_echo_n 0123456789 >"conftest.in"
5301 while :
5303 cat "conftest.in" "conftest.in" >"conftest.tmp"
5304 mv "conftest.tmp" "conftest.in"
5305 cp "conftest.in" "conftest.nl"
5306 $as_echo 'FGREP' >> "conftest.nl"
5307 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5308 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5309 as_fn_arith $ac_count + 1 && ac_count=$as_val
5310 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5311 # Best one so far, save it but keep looking for a better one
5312 ac_cv_path_FGREP="$ac_path_FGREP"
5313 ac_path_FGREP_max=$ac_count
5315 # 10*(2^10) chars as input seems more than enough
5316 test $ac_count -gt 10 && break
5317 done
5318 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5319 esac
5321 $ac_path_FGREP_found && break 3
5322 done
5323 done
5324 done
5325 IFS=$as_save_IFS
5326 if test -z "$ac_cv_path_FGREP"; then
5327 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5329 else
5330 ac_cv_path_FGREP=$FGREP
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5336 $as_echo "$ac_cv_path_FGREP" >&6; }
5337 FGREP="$ac_cv_path_FGREP"
5340 test -z "$GREP" && GREP=grep
5360 # Check whether --with-gnu-ld was given.
5361 if test "${with_gnu_ld+set}" = set; then :
5362 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5363 else
5364 with_gnu_ld=no
5367 ac_prog=ld
5368 if test yes = "$GCC"; then
5369 # Check if gcc -print-prog-name=ld gives a path.
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5371 $as_echo_n "checking for ld used by $CC... " >&6; }
5372 case $host in
5373 *-*-mingw*)
5374 # gcc leaves a trailing carriage return, which upsets mingw
5375 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5377 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5378 esac
5379 case $ac_prog in
5380 # Accept absolute paths.
5381 [\\/]* | ?:[\\/]*)
5382 re_direlt='/[^/][^/]*/\.\./'
5383 # Canonicalize the pathname of ld
5384 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5385 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5386 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5387 done
5388 test -z "$LD" && LD=$ac_prog
5391 # If it fails, then pretend we aren't using GCC.
5392 ac_prog=ld
5395 # If it is relative, then search for the first ld in PATH.
5396 with_gnu_ld=unknown
5398 esac
5399 elif test yes = "$with_gnu_ld"; then
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5401 $as_echo_n "checking for GNU ld... " >&6; }
5402 else
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5404 $as_echo_n "checking for non-GNU ld... " >&6; }
5406 if ${lt_cv_path_LD+:} false; then :
5407 $as_echo_n "(cached) " >&6
5408 else
5409 if test -z "$LD"; then
5410 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5411 for ac_dir in $PATH; do
5412 IFS=$lt_save_ifs
5413 test -z "$ac_dir" && ac_dir=.
5414 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5415 lt_cv_path_LD=$ac_dir/$ac_prog
5416 # Check to see if the program is GNU ld. I'd rather use --version,
5417 # but apparently some variants of GNU ld only accept -v.
5418 # Break only if it was the GNU/non-GNU ld that we prefer.
5419 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5420 *GNU* | *'with BFD'*)
5421 test no != "$with_gnu_ld" && break
5424 test yes != "$with_gnu_ld" && break
5426 esac
5428 done
5429 IFS=$lt_save_ifs
5430 else
5431 lt_cv_path_LD=$LD # Let the user override the test with a path.
5435 LD=$lt_cv_path_LD
5436 if test -n "$LD"; then
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5438 $as_echo "$LD" >&6; }
5439 else
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5441 $as_echo "no" >&6; }
5443 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5445 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5446 if ${lt_cv_prog_gnu_ld+:} false; then :
5447 $as_echo_n "(cached) " >&6
5448 else
5449 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5450 case `$LD -v 2>&1 </dev/null` in
5451 *GNU* | *'with BFD'*)
5452 lt_cv_prog_gnu_ld=yes
5455 lt_cv_prog_gnu_ld=no
5457 esac
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5460 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5461 with_gnu_ld=$lt_cv_prog_gnu_ld
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5472 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5473 if ${lt_cv_path_NM+:} false; then :
5474 $as_echo_n "(cached) " >&6
5475 else
5476 if test -n "$NM"; then
5477 # Let the user override the test.
5478 lt_cv_path_NM=$NM
5479 else
5480 lt_nm_to_check=${ac_tool_prefix}nm
5481 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5482 lt_nm_to_check="$lt_nm_to_check nm"
5484 for lt_tmp_nm in $lt_nm_to_check; do
5485 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5486 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5487 IFS=$lt_save_ifs
5488 test -z "$ac_dir" && ac_dir=.
5489 tmp_nm=$ac_dir/$lt_tmp_nm
5490 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5491 # Check to see if the nm accepts a BSD-compat flag.
5492 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5493 # nm: unknown option "B" ignored
5494 # Tru64's nm complains that /dev/null is an invalid object file
5495 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5496 case $build_os in
5497 mingw*) lt_bad_file=conftest.nm/nofile ;;
5498 *) lt_bad_file=/dev/null ;;
5499 esac
5500 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5501 *$lt_bad_file* | *'Invalid file or object type'*)
5502 lt_cv_path_NM="$tmp_nm -B"
5503 break 2
5506 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5507 */dev/null*)
5508 lt_cv_path_NM="$tmp_nm -p"
5509 break 2
5512 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5513 continue # so that we can try to find one that supports BSD flags
5515 esac
5517 esac
5519 done
5520 IFS=$lt_save_ifs
5521 done
5522 : ${lt_cv_path_NM=no}
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5526 $as_echo "$lt_cv_path_NM" >&6; }
5527 if test no != "$lt_cv_path_NM"; then
5528 NM=$lt_cv_path_NM
5529 else
5530 # Didn't find any BSD compatible name lister, look for dumpbin.
5531 if test -n "$DUMPBIN"; then :
5532 # Let the user override the test.
5533 else
5534 if test -n "$ac_tool_prefix"; then
5535 for ac_prog in dumpbin "link -dump"
5537 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5538 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5540 $as_echo_n "checking for $ac_word... " >&6; }
5541 if ${ac_cv_prog_DUMPBIN+:} false; then :
5542 $as_echo_n "(cached) " >&6
5543 else
5544 if test -n "$DUMPBIN"; then
5545 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5546 else
5547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5548 for as_dir in $PATH
5550 IFS=$as_save_IFS
5551 test -z "$as_dir" && as_dir=.
5552 for ac_exec_ext in '' $ac_executable_extensions; do
5553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5554 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5556 break 2
5558 done
5559 done
5560 IFS=$as_save_IFS
5564 DUMPBIN=$ac_cv_prog_DUMPBIN
5565 if test -n "$DUMPBIN"; then
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5567 $as_echo "$DUMPBIN" >&6; }
5568 else
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5570 $as_echo "no" >&6; }
5574 test -n "$DUMPBIN" && break
5575 done
5577 if test -z "$DUMPBIN"; then
5578 ac_ct_DUMPBIN=$DUMPBIN
5579 for ac_prog in dumpbin "link -dump"
5581 # Extract the first word of "$ac_prog", so it can be a program name with args.
5582 set dummy $ac_prog; ac_word=$2
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5584 $as_echo_n "checking for $ac_word... " >&6; }
5585 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5586 $as_echo_n "(cached) " >&6
5587 else
5588 if test -n "$ac_ct_DUMPBIN"; then
5589 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5590 else
5591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5592 for as_dir in $PATH
5594 IFS=$as_save_IFS
5595 test -z "$as_dir" && as_dir=.
5596 for ac_exec_ext in '' $ac_executable_extensions; do
5597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5598 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5600 break 2
5602 done
5603 done
5604 IFS=$as_save_IFS
5608 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5609 if test -n "$ac_ct_DUMPBIN"; then
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5611 $as_echo "$ac_ct_DUMPBIN" >&6; }
5612 else
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5614 $as_echo "no" >&6; }
5618 test -n "$ac_ct_DUMPBIN" && break
5619 done
5621 if test "x$ac_ct_DUMPBIN" = x; then
5622 DUMPBIN=":"
5623 else
5624 case $cross_compiling:$ac_tool_warned in
5625 yes:)
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5627 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5628 ac_tool_warned=yes ;;
5629 esac
5630 DUMPBIN=$ac_ct_DUMPBIN
5634 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5635 *COFF*)
5636 DUMPBIN="$DUMPBIN -symbols -headers"
5639 DUMPBIN=:
5641 esac
5644 if test : != "$DUMPBIN"; then
5645 NM=$DUMPBIN
5648 test -z "$NM" && NM=nm
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5656 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5657 if ${lt_cv_nm_interface+:} false; then :
5658 $as_echo_n "(cached) " >&6
5659 else
5660 lt_cv_nm_interface="BSD nm"
5661 echo "int some_variable = 0;" > conftest.$ac_ext
5662 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5663 (eval "$ac_compile" 2>conftest.err)
5664 cat conftest.err >&5
5665 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5666 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5667 cat conftest.err >&5
5668 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5669 cat conftest.out >&5
5670 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5671 lt_cv_nm_interface="MS dumpbin"
5673 rm -f conftest*
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5676 $as_echo "$lt_cv_nm_interface" >&6; }
5678 # find the maximum length of command line arguments
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5680 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5681 if ${lt_cv_sys_max_cmd_len+:} false; then :
5682 $as_echo_n "(cached) " >&6
5683 else
5685 teststring=ABCD
5687 case $build_os in
5688 msdosdjgpp*)
5689 # On DJGPP, this test can blow up pretty badly due to problems in libc
5690 # (any single argument exceeding 2000 bytes causes a buffer overrun
5691 # during glob expansion). Even if it were fixed, the result of this
5692 # check would be larger than it should be.
5693 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5696 gnu*)
5697 # Under GNU Hurd, this test is not required because there is
5698 # no limit to the length of command line arguments.
5699 # Libtool will interpret -1 as no limit whatsoever
5700 lt_cv_sys_max_cmd_len=-1;
5703 cygwin* | mingw* | cegcc*)
5704 # On Win9x/ME, this test blows up -- it succeeds, but takes
5705 # about 5 minutes as the teststring grows exponentially.
5706 # Worse, since 9x/ME are not pre-emptively multitasking,
5707 # you end up with a "frozen" computer, even though with patience
5708 # the test eventually succeeds (with a max line length of 256k).
5709 # Instead, let's just punt: use the minimum linelength reported by
5710 # all of the supported platforms: 8192 (on NT/2K/XP).
5711 lt_cv_sys_max_cmd_len=8192;
5714 mint*)
5715 # On MiNT this can take a long time and run out of memory.
5716 lt_cv_sys_max_cmd_len=8192;
5719 amigaos*)
5720 # On AmigaOS with pdksh, this test takes hours, literally.
5721 # So we just punt and use a minimum line length of 8192.
5722 lt_cv_sys_max_cmd_len=8192;
5725 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5726 # This has been around since 386BSD, at least. Likely further.
5727 if test -x /sbin/sysctl; then
5728 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5729 elif test -x /usr/sbin/sysctl; then
5730 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5731 else
5732 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5734 # And add a safety zone
5735 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5736 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5739 interix*)
5740 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5741 lt_cv_sys_max_cmd_len=196608
5744 os2*)
5745 # The test takes a long time on OS/2.
5746 lt_cv_sys_max_cmd_len=8192
5749 osf*)
5750 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5751 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5752 # nice to cause kernel panics so lets avoid the loop below.
5753 # First set a reasonable default.
5754 lt_cv_sys_max_cmd_len=16384
5756 if test -x /sbin/sysconfig; then
5757 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5758 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5759 esac
5762 sco3.2v5*)
5763 lt_cv_sys_max_cmd_len=102400
5765 sysv5* | sco5v6* | sysv4.2uw2*)
5766 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5767 if test -n "$kargmax"; then
5768 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5769 else
5770 lt_cv_sys_max_cmd_len=32768
5774 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5775 if test -n "$lt_cv_sys_max_cmd_len" && \
5776 test undefined != "$lt_cv_sys_max_cmd_len"; then
5777 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5778 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5779 else
5780 # Make teststring a little bigger before we do anything with it.
5781 # a 1K string should be a reasonable start.
5782 for i in 1 2 3 4 5 6 7 8; do
5783 teststring=$teststring$teststring
5784 done
5785 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5786 # If test is not a shell built-in, we'll probably end up computing a
5787 # maximum length that is only half of the actual maximum length, but
5788 # we can't tell.
5789 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5790 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5791 test 17 != "$i" # 1/2 MB should be enough
5793 i=`expr $i + 1`
5794 teststring=$teststring$teststring
5795 done
5796 # Only check the string length outside the loop.
5797 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5798 teststring=
5799 # Add a significant safety factor because C++ compilers can tack on
5800 # massive amounts of additional arguments before passing them to the
5801 # linker. It appears as though 1/2 is a usable value.
5802 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5805 esac
5809 if test -n "$lt_cv_sys_max_cmd_len"; then
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5811 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5812 else
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5814 $as_echo "none" >&6; }
5816 max_cmd_len=$lt_cv_sys_max_cmd_len
5823 : ${CP="cp -f"}
5824 : ${MV="mv -f"}
5825 : ${RM="rm -f"}
5827 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5828 lt_unset=unset
5829 else
5830 lt_unset=false
5837 # test EBCDIC or ASCII
5838 case `echo X|tr X '\101'` in
5839 A) # ASCII based system
5840 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5841 lt_SP2NL='tr \040 \012'
5842 lt_NL2SP='tr \015\012 \040\040'
5844 *) # EBCDIC based system
5845 lt_SP2NL='tr \100 \n'
5846 lt_NL2SP='tr \r\n \100\100'
5848 esac
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5859 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5860 if ${lt_cv_to_host_file_cmd+:} false; then :
5861 $as_echo_n "(cached) " >&6
5862 else
5863 case $host in
5864 *-*-mingw* )
5865 case $build in
5866 *-*-mingw* ) # actually msys
5867 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5869 *-*-cygwin* )
5870 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5872 * ) # otherwise, assume *nix
5873 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5875 esac
5877 *-*-cygwin* )
5878 case $build in
5879 *-*-mingw* ) # actually msys
5880 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5882 *-*-cygwin* )
5883 lt_cv_to_host_file_cmd=func_convert_file_noop
5885 * ) # otherwise, assume *nix
5886 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5888 esac
5890 * ) # unhandled hosts (and "normal" native builds)
5891 lt_cv_to_host_file_cmd=func_convert_file_noop
5893 esac
5897 to_host_file_cmd=$lt_cv_to_host_file_cmd
5898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5899 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5906 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5907 if ${lt_cv_to_tool_file_cmd+:} false; then :
5908 $as_echo_n "(cached) " >&6
5909 else
5910 #assume ordinary cross tools, or native build.
5911 lt_cv_to_tool_file_cmd=func_convert_file_noop
5912 case $host in
5913 *-*-mingw* )
5914 case $build in
5915 *-*-mingw* ) # actually msys
5916 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5918 esac
5920 esac
5924 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5926 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5933 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5934 if ${lt_cv_ld_reload_flag+:} false; then :
5935 $as_echo_n "(cached) " >&6
5936 else
5937 lt_cv_ld_reload_flag='-r'
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5940 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5941 reload_flag=$lt_cv_ld_reload_flag
5942 case $reload_flag in
5943 "" | " "*) ;;
5944 *) reload_flag=" $reload_flag" ;;
5945 esac
5946 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5947 case $host_os in
5948 cygwin* | mingw* | pw32* | cegcc*)
5949 if test yes != "$GCC"; then
5950 reload_cmds=false
5953 darwin*)
5954 if test yes = "$GCC"; then
5955 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5956 else
5957 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5960 esac
5970 if test -n "$ac_tool_prefix"; then
5971 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5972 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5974 $as_echo_n "checking for $ac_word... " >&6; }
5975 if ${ac_cv_prog_OBJDUMP+:} false; then :
5976 $as_echo_n "(cached) " >&6
5977 else
5978 if test -n "$OBJDUMP"; then
5979 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5980 else
5981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5982 for as_dir in $PATH
5984 IFS=$as_save_IFS
5985 test -z "$as_dir" && as_dir=.
5986 for ac_exec_ext in '' $ac_executable_extensions; do
5987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5988 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5990 break 2
5992 done
5993 done
5994 IFS=$as_save_IFS
5998 OBJDUMP=$ac_cv_prog_OBJDUMP
5999 if test -n "$OBJDUMP"; then
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6001 $as_echo "$OBJDUMP" >&6; }
6002 else
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6004 $as_echo "no" >&6; }
6009 if test -z "$ac_cv_prog_OBJDUMP"; then
6010 ac_ct_OBJDUMP=$OBJDUMP
6011 # Extract the first word of "objdump", so it can be a program name with args.
6012 set dummy objdump; ac_word=$2
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6014 $as_echo_n "checking for $ac_word... " >&6; }
6015 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6016 $as_echo_n "(cached) " >&6
6017 else
6018 if test -n "$ac_ct_OBJDUMP"; then
6019 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6020 else
6021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6022 for as_dir in $PATH
6024 IFS=$as_save_IFS
6025 test -z "$as_dir" && as_dir=.
6026 for ac_exec_ext in '' $ac_executable_extensions; do
6027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6028 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6030 break 2
6032 done
6033 done
6034 IFS=$as_save_IFS
6038 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6039 if test -n "$ac_ct_OBJDUMP"; then
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6041 $as_echo "$ac_ct_OBJDUMP" >&6; }
6042 else
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6044 $as_echo "no" >&6; }
6047 if test "x$ac_ct_OBJDUMP" = x; then
6048 OBJDUMP="false"
6049 else
6050 case $cross_compiling:$ac_tool_warned in
6051 yes:)
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6053 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6054 ac_tool_warned=yes ;;
6055 esac
6056 OBJDUMP=$ac_ct_OBJDUMP
6058 else
6059 OBJDUMP="$ac_cv_prog_OBJDUMP"
6062 test -z "$OBJDUMP" && OBJDUMP=objdump
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6073 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6074 if ${lt_cv_deplibs_check_method+:} false; then :
6075 $as_echo_n "(cached) " >&6
6076 else
6077 lt_cv_file_magic_cmd='$MAGIC_CMD'
6078 lt_cv_file_magic_test_file=
6079 lt_cv_deplibs_check_method='unknown'
6080 # Need to set the preceding variable on all platforms that support
6081 # interlibrary dependencies.
6082 # 'none' -- dependencies not supported.
6083 # 'unknown' -- same as none, but documents that we really don't know.
6084 # 'pass_all' -- all dependencies passed with no checks.
6085 # 'test_compile' -- check by making test program.
6086 # 'file_magic [[regex]]' -- check by looking for files in library path
6087 # that responds to the $file_magic_cmd with a given extended regex.
6088 # If you have 'file' or equivalent on your system and you're not sure
6089 # whether 'pass_all' will *always* work, you probably want this one.
6091 case $host_os in
6092 aix[4-9]*)
6093 lt_cv_deplibs_check_method=pass_all
6096 beos*)
6097 lt_cv_deplibs_check_method=pass_all
6100 bsdi[45]*)
6101 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6102 lt_cv_file_magic_cmd='/usr/bin/file -L'
6103 lt_cv_file_magic_test_file=/shlib/libc.so
6106 cygwin*)
6107 # func_win32_libid is a shell function defined in ltmain.sh
6108 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6109 lt_cv_file_magic_cmd='func_win32_libid'
6112 mingw* | pw32*)
6113 # Base MSYS/MinGW do not provide the 'file' command needed by
6114 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6115 # unless we find 'file', for example because we are cross-compiling.
6116 if ( file / ) >/dev/null 2>&1; then
6117 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6118 lt_cv_file_magic_cmd='func_win32_libid'
6119 else
6120 # Keep this pattern in sync with the one in func_win32_libid.
6121 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6122 lt_cv_file_magic_cmd='$OBJDUMP -f'
6126 cegcc*)
6127 # use the weaker test based on 'objdump'. See mingw*.
6128 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6129 lt_cv_file_magic_cmd='$OBJDUMP -f'
6132 darwin* | rhapsody*)
6133 lt_cv_deplibs_check_method=pass_all
6136 freebsd* | dragonfly*)
6137 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6138 case $host_cpu in
6139 i*86 )
6140 # Not sure whether the presence of OpenBSD here was a mistake.
6141 # Let's accept both of them until this is cleared up.
6142 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6143 lt_cv_file_magic_cmd=/usr/bin/file
6144 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6146 esac
6147 else
6148 lt_cv_deplibs_check_method=pass_all
6152 haiku*)
6153 lt_cv_deplibs_check_method=pass_all
6156 hpux10.20* | hpux11*)
6157 lt_cv_file_magic_cmd=/usr/bin/file
6158 case $host_cpu in
6159 ia64*)
6160 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6161 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6163 hppa*64*)
6164 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
6165 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6168 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6169 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6171 esac
6174 interix[3-9]*)
6175 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6176 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6179 irix5* | irix6* | nonstopux*)
6180 case $LD in
6181 *-32|*"-32 ") libmagic=32-bit;;
6182 *-n32|*"-n32 ") libmagic=N32;;
6183 *-64|*"-64 ") libmagic=64-bit;;
6184 *) libmagic=never-match;;
6185 esac
6186 lt_cv_deplibs_check_method=pass_all
6189 # This must be glibc/ELF.
6190 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6191 lt_cv_deplibs_check_method=pass_all
6194 netbsd*)
6195 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6196 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6197 else
6198 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6202 newos6*)
6203 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6204 lt_cv_file_magic_cmd=/usr/bin/file
6205 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6208 *nto* | *qnx*)
6209 lt_cv_deplibs_check_method=pass_all
6212 openbsd* | bitrig*)
6213 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6214 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6215 else
6216 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6220 osf3* | osf4* | osf5*)
6221 lt_cv_deplibs_check_method=pass_all
6224 rdos*)
6225 lt_cv_deplibs_check_method=pass_all
6228 solaris*)
6229 lt_cv_deplibs_check_method=pass_all
6232 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6233 lt_cv_deplibs_check_method=pass_all
6236 sysv4 | sysv4.3*)
6237 case $host_vendor in
6238 motorola)
6239 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
6240 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6242 ncr)
6243 lt_cv_deplibs_check_method=pass_all
6245 sequent)
6246 lt_cv_file_magic_cmd='/bin/file'
6247 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6249 sni)
6250 lt_cv_file_magic_cmd='/bin/file'
6251 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6252 lt_cv_file_magic_test_file=/lib/libc.so
6254 siemens)
6255 lt_cv_deplibs_check_method=pass_all
6258 lt_cv_deplibs_check_method=pass_all
6260 esac
6263 tpf*)
6264 lt_cv_deplibs_check_method=pass_all
6266 os2*)
6267 lt_cv_deplibs_check_method=pass_all
6269 esac
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6273 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6275 file_magic_glob=
6276 want_nocaseglob=no
6277 if test "$build" = "$host"; then
6278 case $host_os in
6279 mingw* | pw32*)
6280 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6281 want_nocaseglob=yes
6282 else
6283 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6286 esac
6289 file_magic_cmd=$lt_cv_file_magic_cmd
6290 deplibs_check_method=$lt_cv_deplibs_check_method
6291 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6314 if test -n "$ac_tool_prefix"; then
6315 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6316 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6318 $as_echo_n "checking for $ac_word... " >&6; }
6319 if ${ac_cv_prog_DLLTOOL+:} false; then :
6320 $as_echo_n "(cached) " >&6
6321 else
6322 if test -n "$DLLTOOL"; then
6323 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6324 else
6325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6326 for as_dir in $PATH
6328 IFS=$as_save_IFS
6329 test -z "$as_dir" && as_dir=.
6330 for ac_exec_ext in '' $ac_executable_extensions; do
6331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6332 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6334 break 2
6336 done
6337 done
6338 IFS=$as_save_IFS
6342 DLLTOOL=$ac_cv_prog_DLLTOOL
6343 if test -n "$DLLTOOL"; then
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6345 $as_echo "$DLLTOOL" >&6; }
6346 else
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6348 $as_echo "no" >&6; }
6353 if test -z "$ac_cv_prog_DLLTOOL"; then
6354 ac_ct_DLLTOOL=$DLLTOOL
6355 # Extract the first word of "dlltool", so it can be a program name with args.
6356 set dummy dlltool; ac_word=$2
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6358 $as_echo_n "checking for $ac_word... " >&6; }
6359 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6360 $as_echo_n "(cached) " >&6
6361 else
6362 if test -n "$ac_ct_DLLTOOL"; then
6363 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6364 else
6365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6366 for as_dir in $PATH
6368 IFS=$as_save_IFS
6369 test -z "$as_dir" && as_dir=.
6370 for ac_exec_ext in '' $ac_executable_extensions; do
6371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6372 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6374 break 2
6376 done
6377 done
6378 IFS=$as_save_IFS
6382 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6383 if test -n "$ac_ct_DLLTOOL"; then
6384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6385 $as_echo "$ac_ct_DLLTOOL" >&6; }
6386 else
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6388 $as_echo "no" >&6; }
6391 if test "x$ac_ct_DLLTOOL" = x; then
6392 DLLTOOL="false"
6393 else
6394 case $cross_compiling:$ac_tool_warned in
6395 yes:)
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6397 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6398 ac_tool_warned=yes ;;
6399 esac
6400 DLLTOOL=$ac_ct_DLLTOOL
6402 else
6403 DLLTOOL="$ac_cv_prog_DLLTOOL"
6406 test -z "$DLLTOOL" && DLLTOOL=dlltool
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6418 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6419 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6420 $as_echo_n "(cached) " >&6
6421 else
6422 lt_cv_sharedlib_from_linklib_cmd='unknown'
6424 case $host_os in
6425 cygwin* | mingw* | pw32* | cegcc*)
6426 # two different shell functions defined in ltmain.sh;
6427 # decide which one to use based on capabilities of $DLLTOOL
6428 case `$DLLTOOL --help 2>&1` in
6429 *--identify-strict*)
6430 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6433 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6435 esac
6438 # fallback: assume linklib IS sharedlib
6439 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6441 esac
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6445 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6446 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6447 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6456 if test -n "$ac_tool_prefix"; then
6457 for ac_prog in ar
6459 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6460 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6462 $as_echo_n "checking for $ac_word... " >&6; }
6463 if ${ac_cv_prog_AR+:} false; then :
6464 $as_echo_n "(cached) " >&6
6465 else
6466 if test -n "$AR"; then
6467 ac_cv_prog_AR="$AR" # Let the user override the test.
6468 else
6469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6470 for as_dir in $PATH
6472 IFS=$as_save_IFS
6473 test -z "$as_dir" && as_dir=.
6474 for ac_exec_ext in '' $ac_executable_extensions; do
6475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6476 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6478 break 2
6480 done
6481 done
6482 IFS=$as_save_IFS
6486 AR=$ac_cv_prog_AR
6487 if test -n "$AR"; then
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6489 $as_echo "$AR" >&6; }
6490 else
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6492 $as_echo "no" >&6; }
6496 test -n "$AR" && break
6497 done
6499 if test -z "$AR"; then
6500 ac_ct_AR=$AR
6501 for ac_prog in ar
6503 # Extract the first word of "$ac_prog", so it can be a program name with args.
6504 set dummy $ac_prog; ac_word=$2
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6506 $as_echo_n "checking for $ac_word... " >&6; }
6507 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6508 $as_echo_n "(cached) " >&6
6509 else
6510 if test -n "$ac_ct_AR"; then
6511 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6512 else
6513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6514 for as_dir in $PATH
6516 IFS=$as_save_IFS
6517 test -z "$as_dir" && as_dir=.
6518 for ac_exec_ext in '' $ac_executable_extensions; do
6519 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6520 ac_cv_prog_ac_ct_AR="$ac_prog"
6521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6522 break 2
6524 done
6525 done
6526 IFS=$as_save_IFS
6530 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6531 if test -n "$ac_ct_AR"; then
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6533 $as_echo "$ac_ct_AR" >&6; }
6534 else
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6536 $as_echo "no" >&6; }
6540 test -n "$ac_ct_AR" && break
6541 done
6543 if test "x$ac_ct_AR" = x; then
6544 AR="false"
6545 else
6546 case $cross_compiling:$ac_tool_warned in
6547 yes:)
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6549 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6550 ac_tool_warned=yes ;;
6551 esac
6552 AR=$ac_ct_AR
6556 : ${AR=ar}
6557 : ${AR_FLAGS=cru}
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6570 $as_echo_n "checking for archiver @FILE support... " >&6; }
6571 if ${lt_cv_ar_at_file+:} false; then :
6572 $as_echo_n "(cached) " >&6
6573 else
6574 lt_cv_ar_at_file=no
6575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6576 /* end confdefs.h. */
6579 main ()
6583 return 0;
6585 _ACEOF
6586 if ac_fn_c_try_compile "$LINENO"; then :
6587 echo conftest.$ac_objext > conftest.lst
6588 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6589 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6590 (eval $lt_ar_try) 2>&5
6591 ac_status=$?
6592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6593 test $ac_status = 0; }
6594 if test 0 -eq "$ac_status"; then
6595 # Ensure the archiver fails upon bogus file names.
6596 rm -f conftest.$ac_objext libconftest.a
6597 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6598 (eval $lt_ar_try) 2>&5
6599 ac_status=$?
6600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6601 test $ac_status = 0; }
6602 if test 0 -ne "$ac_status"; then
6603 lt_cv_ar_at_file=@
6606 rm -f conftest.* libconftest.a
6609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6613 $as_echo "$lt_cv_ar_at_file" >&6; }
6615 if test no = "$lt_cv_ar_at_file"; then
6616 archiver_list_spec=
6617 else
6618 archiver_list_spec=$lt_cv_ar_at_file
6627 if test -n "$ac_tool_prefix"; then
6628 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6629 set dummy ${ac_tool_prefix}strip; ac_word=$2
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6631 $as_echo_n "checking for $ac_word... " >&6; }
6632 if ${ac_cv_prog_STRIP+:} false; then :
6633 $as_echo_n "(cached) " >&6
6634 else
6635 if test -n "$STRIP"; then
6636 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6637 else
6638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6639 for as_dir in $PATH
6641 IFS=$as_save_IFS
6642 test -z "$as_dir" && as_dir=.
6643 for ac_exec_ext in '' $ac_executable_extensions; do
6644 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6645 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6647 break 2
6649 done
6650 done
6651 IFS=$as_save_IFS
6655 STRIP=$ac_cv_prog_STRIP
6656 if test -n "$STRIP"; then
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6658 $as_echo "$STRIP" >&6; }
6659 else
6660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6661 $as_echo "no" >&6; }
6666 if test -z "$ac_cv_prog_STRIP"; then
6667 ac_ct_STRIP=$STRIP
6668 # Extract the first word of "strip", so it can be a program name with args.
6669 set dummy strip; ac_word=$2
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6671 $as_echo_n "checking for $ac_word... " >&6; }
6672 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6673 $as_echo_n "(cached) " >&6
6674 else
6675 if test -n "$ac_ct_STRIP"; then
6676 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6677 else
6678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6679 for as_dir in $PATH
6681 IFS=$as_save_IFS
6682 test -z "$as_dir" && as_dir=.
6683 for ac_exec_ext in '' $ac_executable_extensions; do
6684 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6685 ac_cv_prog_ac_ct_STRIP="strip"
6686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6687 break 2
6689 done
6690 done
6691 IFS=$as_save_IFS
6695 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6696 if test -n "$ac_ct_STRIP"; then
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6698 $as_echo "$ac_ct_STRIP" >&6; }
6699 else
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6701 $as_echo "no" >&6; }
6704 if test "x$ac_ct_STRIP" = x; then
6705 STRIP=":"
6706 else
6707 case $cross_compiling:$ac_tool_warned in
6708 yes:)
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6710 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6711 ac_tool_warned=yes ;;
6712 esac
6713 STRIP=$ac_ct_STRIP
6715 else
6716 STRIP="$ac_cv_prog_STRIP"
6719 test -z "$STRIP" && STRIP=:
6726 if test -n "$ac_tool_prefix"; then
6727 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6728 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6730 $as_echo_n "checking for $ac_word... " >&6; }
6731 if ${ac_cv_prog_RANLIB+:} false; then :
6732 $as_echo_n "(cached) " >&6
6733 else
6734 if test -n "$RANLIB"; then
6735 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6736 else
6737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6738 for as_dir in $PATH
6740 IFS=$as_save_IFS
6741 test -z "$as_dir" && as_dir=.
6742 for ac_exec_ext in '' $ac_executable_extensions; do
6743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6744 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6746 break 2
6748 done
6749 done
6750 IFS=$as_save_IFS
6754 RANLIB=$ac_cv_prog_RANLIB
6755 if test -n "$RANLIB"; then
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6757 $as_echo "$RANLIB" >&6; }
6758 else
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6760 $as_echo "no" >&6; }
6765 if test -z "$ac_cv_prog_RANLIB"; then
6766 ac_ct_RANLIB=$RANLIB
6767 # Extract the first word of "ranlib", so it can be a program name with args.
6768 set dummy ranlib; ac_word=$2
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6770 $as_echo_n "checking for $ac_word... " >&6; }
6771 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6772 $as_echo_n "(cached) " >&6
6773 else
6774 if test -n "$ac_ct_RANLIB"; then
6775 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6776 else
6777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6778 for as_dir in $PATH
6780 IFS=$as_save_IFS
6781 test -z "$as_dir" && as_dir=.
6782 for ac_exec_ext in '' $ac_executable_extensions; do
6783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6784 ac_cv_prog_ac_ct_RANLIB="ranlib"
6785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6786 break 2
6788 done
6789 done
6790 IFS=$as_save_IFS
6794 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6795 if test -n "$ac_ct_RANLIB"; then
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6797 $as_echo "$ac_ct_RANLIB" >&6; }
6798 else
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6800 $as_echo "no" >&6; }
6803 if test "x$ac_ct_RANLIB" = x; then
6804 RANLIB=":"
6805 else
6806 case $cross_compiling:$ac_tool_warned in
6807 yes:)
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6809 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6810 ac_tool_warned=yes ;;
6811 esac
6812 RANLIB=$ac_ct_RANLIB
6814 else
6815 RANLIB="$ac_cv_prog_RANLIB"
6818 test -z "$RANLIB" && RANLIB=:
6825 # Determine commands to create old-style static archives.
6826 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6827 old_postinstall_cmds='chmod 644 $oldlib'
6828 old_postuninstall_cmds=
6830 if test -n "$RANLIB"; then
6831 case $host_os in
6832 bitrig* | openbsd*)
6833 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6836 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6838 esac
6839 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6842 case $host_os in
6843 darwin*)
6844 lock_old_archive_extraction=yes ;;
6846 lock_old_archive_extraction=no ;;
6847 esac
6887 # If no C compiler was specified, use CC.
6888 LTCC=${LTCC-"$CC"}
6890 # If no C compiler flags were specified, use CFLAGS.
6891 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6893 # Allow CC to be a program name with arguments.
6894 compiler=$CC
6897 # Check for command to grab the raw symbol name followed by C symbol from nm.
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6899 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6900 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6901 $as_echo_n "(cached) " >&6
6902 else
6904 # These are sane defaults that work on at least a few old systems.
6905 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6907 # Character class describing NM global symbol codes.
6908 symcode='[BCDEGRST]'
6910 # Regexp to match symbols that can be accessed directly from C.
6911 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6913 # Define system-specific variables.
6914 case $host_os in
6915 aix*)
6916 symcode='[BCDT]'
6918 cygwin* | mingw* | pw32* | cegcc*)
6919 symcode='[ABCDGISTW]'
6921 hpux*)
6922 if test ia64 = "$host_cpu"; then
6923 symcode='[ABCDEGRST]'
6926 irix* | nonstopux*)
6927 symcode='[BCDEGRST]'
6929 osf*)
6930 symcode='[BCDEGQRST]'
6932 solaris*)
6933 symcode='[BDRT]'
6935 sco3.2v5*)
6936 symcode='[DT]'
6938 sysv4.2uw2*)
6939 symcode='[DT]'
6941 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6942 symcode='[ABDT]'
6944 sysv4)
6945 symcode='[DFNSTU]'
6947 esac
6949 # If we're using GNU nm, then use its standard symbol codes.
6950 case `$NM -V 2>&1` in
6951 *GNU* | *'with BFD'*)
6952 symcode='[ABCDGIRSTW]' ;;
6953 esac
6955 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6956 # Gets list of data symbols to import.
6957 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6958 # Adjust the below global symbol transforms to fixup imported variables.
6959 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6960 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6961 lt_c_name_lib_hook="\
6962 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6963 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6964 else
6965 # Disable hooks by default.
6966 lt_cv_sys_global_symbol_to_import=
6967 lt_cdecl_hook=
6968 lt_c_name_hook=
6969 lt_c_name_lib_hook=
6972 # Transform an extracted symbol line into a proper C declaration.
6973 # Some systems (esp. on ia64) link data and code symbols differently,
6974 # so use this general approach.
6975 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6976 $lt_cdecl_hook\
6977 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6978 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6980 # Transform an extracted symbol line into symbol name and symbol address
6981 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6982 $lt_c_name_hook\
6983 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6984 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6986 # Transform an extracted symbol line into symbol name with lib prefix and
6987 # symbol address.
6988 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6989 $lt_c_name_lib_hook\
6990 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6991 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6992 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6994 # Handle CRLF in mingw tool chain
6995 opt_cr=
6996 case $build_os in
6997 mingw*)
6998 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7000 esac
7002 # Try without a prefix underscore, then with it.
7003 for ac_symprfx in "" "_"; do
7005 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7006 symxfrm="\\1 $ac_symprfx\\2 \\2"
7008 # Write the raw and C identifiers.
7009 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7010 # Fake it for dumpbin and say T for any non-static function,
7011 # D for any global variable and I for any imported variable.
7012 # Also find C++ and __fastcall symbols from MSVC++,
7013 # which start with @ or ?.
7014 lt_cv_sys_global_symbol_pipe="$AWK '"\
7015 " {last_section=section; section=\$ 3};"\
7016 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7017 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7018 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7019 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7020 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7021 " \$ 0!~/External *\|/{next};"\
7022 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7023 " {if(hide[section]) next};"\
7024 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7025 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7026 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7027 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7028 " ' prfx=^$ac_symprfx"
7029 else
7030 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7032 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7034 # Check to see that the pipe works correctly.
7035 pipe_works=no
7037 rm -f conftest*
7038 cat > conftest.$ac_ext <<_LT_EOF
7039 #ifdef __cplusplus
7040 extern "C" {
7041 #endif
7042 char nm_test_var;
7043 void nm_test_func(void);
7044 void nm_test_func(void){}
7045 #ifdef __cplusplus
7047 #endif
7048 int main(){nm_test_var='a';nm_test_func();return(0);}
7049 _LT_EOF
7051 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7052 (eval $ac_compile) 2>&5
7053 ac_status=$?
7054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7055 test $ac_status = 0; }; then
7056 # Now try to grab the symbols.
7057 nlist=conftest.nm
7058 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7059 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7060 ac_status=$?
7061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7062 test $ac_status = 0; } && test -s "$nlist"; then
7063 # Try sorting and uniquifying the output.
7064 if sort "$nlist" | uniq > "$nlist"T; then
7065 mv -f "$nlist"T "$nlist"
7066 else
7067 rm -f "$nlist"T
7070 # Make sure that we snagged all the symbols we need.
7071 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7072 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7073 cat <<_LT_EOF > conftest.$ac_ext
7074 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7075 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7076 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7077 relocations are performed -- see ld's documentation on pseudo-relocs. */
7078 # define LT_DLSYM_CONST
7079 #elif defined __osf__
7080 /* This system does not cope well with relocations in const data. */
7081 # define LT_DLSYM_CONST
7082 #else
7083 # define LT_DLSYM_CONST const
7084 #endif
7086 #ifdef __cplusplus
7087 extern "C" {
7088 #endif
7090 _LT_EOF
7091 # Now generate the symbol file.
7092 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7094 cat <<_LT_EOF >> conftest.$ac_ext
7096 /* The mapping between symbol names and symbols. */
7097 LT_DLSYM_CONST struct {
7098 const char *name;
7099 void *address;
7101 lt__PROGRAM__LTX_preloaded_symbols[] =
7103 { "@PROGRAM@", (void *) 0 },
7104 _LT_EOF
7105 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7106 cat <<\_LT_EOF >> conftest.$ac_ext
7107 {0, (void *) 0}
7110 /* This works around a problem in FreeBSD linker */
7111 #ifdef FREEBSD_WORKAROUND
7112 static const void *lt_preloaded_setup() {
7113 return lt__PROGRAM__LTX_preloaded_symbols;
7115 #endif
7117 #ifdef __cplusplus
7119 #endif
7120 _LT_EOF
7121 # Now try linking the two files.
7122 mv conftest.$ac_objext conftstm.$ac_objext
7123 lt_globsym_save_LIBS=$LIBS
7124 lt_globsym_save_CFLAGS=$CFLAGS
7125 LIBS=conftstm.$ac_objext
7126 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7127 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7128 (eval $ac_link) 2>&5
7129 ac_status=$?
7130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7131 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7132 pipe_works=yes
7134 LIBS=$lt_globsym_save_LIBS
7135 CFLAGS=$lt_globsym_save_CFLAGS
7136 else
7137 echo "cannot find nm_test_func in $nlist" >&5
7139 else
7140 echo "cannot find nm_test_var in $nlist" >&5
7142 else
7143 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7145 else
7146 echo "$progname: failed program was:" >&5
7147 cat conftest.$ac_ext >&5
7149 rm -rf conftest* conftst*
7151 # Do not use the global_symbol_pipe unless it works.
7152 if test yes = "$pipe_works"; then
7153 break
7154 else
7155 lt_cv_sys_global_symbol_pipe=
7157 done
7161 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7162 lt_cv_sys_global_symbol_to_cdecl=
7164 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7166 $as_echo "failed" >&6; }
7167 else
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7169 $as_echo "ok" >&6; }
7172 # Response file support.
7173 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7174 nm_file_list_spec='@'
7175 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7176 nm_file_list_spec='@'
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7216 $as_echo_n "checking for sysroot... " >&6; }
7218 # Check whether --with-sysroot was given.
7219 if test "${with_sysroot+set}" = set; then :
7220 withval=$with_sysroot;
7221 else
7222 with_sysroot=no
7226 lt_sysroot=
7227 case $with_sysroot in #(
7228 yes)
7229 if test yes = "$GCC"; then
7230 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7232 ;; #(
7234 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7235 ;; #(
7236 no|'')
7237 ;; #(
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7240 $as_echo "$with_sysroot" >&6; }
7241 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7243 esac
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7246 $as_echo "${lt_sysroot:-no}" >&6; }
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7253 $as_echo_n "checking for a working dd... " >&6; }
7254 if ${ac_cv_path_lt_DD+:} false; then :
7255 $as_echo_n "(cached) " >&6
7256 else
7257 printf 0123456789abcdef0123456789abcdef >conftest.i
7258 cat conftest.i conftest.i >conftest2.i
7259 : ${lt_DD:=$DD}
7260 if test -z "$lt_DD"; then
7261 ac_path_lt_DD_found=false
7262 # Loop through the user's path and test for each of PROGNAME-LIST
7263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7264 for as_dir in $PATH
7266 IFS=$as_save_IFS
7267 test -z "$as_dir" && as_dir=.
7268 for ac_prog in dd; do
7269 for ac_exec_ext in '' $ac_executable_extensions; do
7270 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7271 as_fn_executable_p "$ac_path_lt_DD" || continue
7272 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7273 cmp -s conftest.i conftest.out \
7274 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7276 $ac_path_lt_DD_found && break 3
7277 done
7278 done
7279 done
7280 IFS=$as_save_IFS
7281 if test -z "$ac_cv_path_lt_DD"; then
7284 else
7285 ac_cv_path_lt_DD=$lt_DD
7288 rm -f conftest.i conftest2.i conftest.out
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7291 $as_echo "$ac_cv_path_lt_DD" >&6; }
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7295 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7296 if ${lt_cv_truncate_bin+:} false; then :
7297 $as_echo_n "(cached) " >&6
7298 else
7299 printf 0123456789abcdef0123456789abcdef >conftest.i
7300 cat conftest.i conftest.i >conftest2.i
7301 lt_cv_truncate_bin=
7302 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7303 cmp -s conftest.i conftest.out \
7304 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7306 rm -f conftest.i conftest2.i conftest.out
7307 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7310 $as_echo "$lt_cv_truncate_bin" >&6; }
7318 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7319 func_cc_basename ()
7321 for cc_temp in $*""; do
7322 case $cc_temp in
7323 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7324 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7325 \-*) ;;
7326 *) break;;
7327 esac
7328 done
7329 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7332 # Check whether --enable-libtool-lock was given.
7333 if test "${enable_libtool_lock+set}" = set; then :
7334 enableval=$enable_libtool_lock;
7337 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7339 # Some flags need to be propagated to the compiler or linker for good
7340 # libtool support.
7341 case $host in
7342 ia64-*-hpux*)
7343 # Find out what ABI is being produced by ac_compile, and set mode
7344 # options accordingly.
7345 echo 'int i;' > conftest.$ac_ext
7346 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7347 (eval $ac_compile) 2>&5
7348 ac_status=$?
7349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7350 test $ac_status = 0; }; then
7351 case `/usr/bin/file conftest.$ac_objext` in
7352 *ELF-32*)
7353 HPUX_IA64_MODE=32
7355 *ELF-64*)
7356 HPUX_IA64_MODE=64
7358 esac
7360 rm -rf conftest*
7362 *-*-irix6*)
7363 # Find out what ABI is being produced by ac_compile, and set linker
7364 # options accordingly.
7365 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7366 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7367 (eval $ac_compile) 2>&5
7368 ac_status=$?
7369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7370 test $ac_status = 0; }; then
7371 if test yes = "$lt_cv_prog_gnu_ld"; then
7372 case `/usr/bin/file conftest.$ac_objext` in
7373 *32-bit*)
7374 LD="${LD-ld} -melf32bsmip"
7376 *N32*)
7377 LD="${LD-ld} -melf32bmipn32"
7379 *64-bit*)
7380 LD="${LD-ld} -melf64bmip"
7382 esac
7383 else
7384 case `/usr/bin/file conftest.$ac_objext` in
7385 *32-bit*)
7386 LD="${LD-ld} -32"
7388 *N32*)
7389 LD="${LD-ld} -n32"
7391 *64-bit*)
7392 LD="${LD-ld} -64"
7394 esac
7397 rm -rf conftest*
7400 mips64*-*linux*)
7401 # Find out what ABI is being produced by ac_compile, and set linker
7402 # options accordingly.
7403 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7404 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7405 (eval $ac_compile) 2>&5
7406 ac_status=$?
7407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7408 test $ac_status = 0; }; then
7409 emul=elf
7410 case `/usr/bin/file conftest.$ac_objext` in
7411 *32-bit*)
7412 emul="${emul}32"
7414 *64-bit*)
7415 emul="${emul}64"
7417 esac
7418 case `/usr/bin/file conftest.$ac_objext` in
7419 *MSB*)
7420 emul="${emul}btsmip"
7422 *LSB*)
7423 emul="${emul}ltsmip"
7425 esac
7426 case `/usr/bin/file conftest.$ac_objext` in
7427 *N32*)
7428 emul="${emul}n32"
7430 esac
7431 LD="${LD-ld} -m $emul"
7433 rm -rf conftest*
7436 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7437 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7438 # Find out what ABI is being produced by ac_compile, and set linker
7439 # options accordingly. Note that the listed cases only cover the
7440 # situations where additional linker options are needed (such as when
7441 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7442 # vice versa); the common cases where no linker options are needed do
7443 # not appear in the list.
7444 echo 'int i;' > conftest.$ac_ext
7445 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7446 (eval $ac_compile) 2>&5
7447 ac_status=$?
7448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7449 test $ac_status = 0; }; then
7450 case `/usr/bin/file conftest.o` in
7451 *32-bit*)
7452 case $host in
7453 x86_64-*kfreebsd*-gnu)
7454 LD="${LD-ld} -m elf_i386_fbsd"
7456 x86_64-*linux*)
7457 case `/usr/bin/file conftest.o` in
7458 *x86-64*)
7459 LD="${LD-ld} -m elf32_x86_64"
7462 LD="${LD-ld} -m elf_i386"
7464 esac
7466 powerpc64le-*linux*)
7467 LD="${LD-ld} -m elf32lppclinux"
7469 powerpc64-*linux*)
7470 LD="${LD-ld} -m elf32ppclinux"
7472 s390x-*linux*)
7473 LD="${LD-ld} -m elf_s390"
7475 sparc64-*linux*)
7476 LD="${LD-ld} -m elf32_sparc"
7478 esac
7480 *64-bit*)
7481 case $host in
7482 x86_64-*kfreebsd*-gnu)
7483 LD="${LD-ld} -m elf_x86_64_fbsd"
7485 x86_64-*linux*)
7486 LD="${LD-ld} -m elf_x86_64"
7488 powerpcle-*linux*)
7489 LD="${LD-ld} -m elf64lppc"
7491 powerpc-*linux*)
7492 LD="${LD-ld} -m elf64ppc"
7494 s390*-*linux*|s390*-*tpf*)
7495 LD="${LD-ld} -m elf64_s390"
7497 sparc*-*linux*)
7498 LD="${LD-ld} -m elf64_sparc"
7500 esac
7502 esac
7504 rm -rf conftest*
7507 *-*-sco3.2v5*)
7508 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7509 SAVE_CFLAGS=$CFLAGS
7510 CFLAGS="$CFLAGS -belf"
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7512 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7513 if ${lt_cv_cc_needs_belf+:} false; then :
7514 $as_echo_n "(cached) " >&6
7515 else
7516 ac_ext=c
7517 ac_cpp='$CPP $CPPFLAGS'
7518 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7519 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7520 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7523 /* end confdefs.h. */
7526 main ()
7530 return 0;
7532 _ACEOF
7533 if ac_fn_c_try_link "$LINENO"; then :
7534 lt_cv_cc_needs_belf=yes
7535 else
7536 lt_cv_cc_needs_belf=no
7538 rm -f core conftest.err conftest.$ac_objext \
7539 conftest$ac_exeext conftest.$ac_ext
7540 ac_ext=c
7541 ac_cpp='$CPP $CPPFLAGS'
7542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7548 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7549 if test yes != "$lt_cv_cc_needs_belf"; then
7550 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7551 CFLAGS=$SAVE_CFLAGS
7554 *-*solaris*)
7555 # Find out what ABI is being produced by ac_compile, and set linker
7556 # options accordingly.
7557 echo 'int i;' > conftest.$ac_ext
7558 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7559 (eval $ac_compile) 2>&5
7560 ac_status=$?
7561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7562 test $ac_status = 0; }; then
7563 case `/usr/bin/file conftest.o` in
7564 *64-bit*)
7565 case $lt_cv_prog_gnu_ld in
7566 yes*)
7567 case $host in
7568 i?86-*-solaris*|x86_64-*-solaris*)
7569 LD="${LD-ld} -m elf_x86_64"
7571 sparc*-*-solaris*)
7572 LD="${LD-ld} -m elf64_sparc"
7574 esac
7575 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7576 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7577 LD=${LD-ld}_sol2
7581 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7582 LD="${LD-ld} -64"
7585 esac
7587 esac
7589 rm -rf conftest*
7591 esac
7593 need_locks=$enable_libtool_lock
7595 if test -n "$ac_tool_prefix"; then
7596 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7597 set dummy ${ac_tool_prefix}mt; ac_word=$2
7598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7599 $as_echo_n "checking for $ac_word... " >&6; }
7600 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7601 $as_echo_n "(cached) " >&6
7602 else
7603 if test -n "$MANIFEST_TOOL"; then
7604 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7605 else
7606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7607 for as_dir in $PATH
7609 IFS=$as_save_IFS
7610 test -z "$as_dir" && as_dir=.
7611 for ac_exec_ext in '' $ac_executable_extensions; do
7612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7613 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7615 break 2
7617 done
7618 done
7619 IFS=$as_save_IFS
7623 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7624 if test -n "$MANIFEST_TOOL"; then
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7626 $as_echo "$MANIFEST_TOOL" >&6; }
7627 else
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7629 $as_echo "no" >&6; }
7634 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7635 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7636 # Extract the first word of "mt", so it can be a program name with args.
7637 set dummy mt; ac_word=$2
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7639 $as_echo_n "checking for $ac_word... " >&6; }
7640 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7641 $as_echo_n "(cached) " >&6
7642 else
7643 if test -n "$ac_ct_MANIFEST_TOOL"; then
7644 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7645 else
7646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7647 for as_dir in $PATH
7649 IFS=$as_save_IFS
7650 test -z "$as_dir" && as_dir=.
7651 for ac_exec_ext in '' $ac_executable_extensions; do
7652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7653 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7655 break 2
7657 done
7658 done
7659 IFS=$as_save_IFS
7663 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7664 if test -n "$ac_ct_MANIFEST_TOOL"; then
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7666 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7667 else
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7669 $as_echo "no" >&6; }
7672 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7673 MANIFEST_TOOL=":"
7674 else
7675 case $cross_compiling:$ac_tool_warned in
7676 yes:)
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7678 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7679 ac_tool_warned=yes ;;
7680 esac
7681 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7683 else
7684 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7687 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7689 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7690 if ${lt_cv_path_mainfest_tool+:} false; then :
7691 $as_echo_n "(cached) " >&6
7692 else
7693 lt_cv_path_mainfest_tool=no
7694 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7695 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7696 cat conftest.err >&5
7697 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7698 lt_cv_path_mainfest_tool=yes
7700 rm -f conftest*
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7703 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7704 if test yes != "$lt_cv_path_mainfest_tool"; then
7705 MANIFEST_TOOL=:
7713 case $host_os in
7714 rhapsody* | darwin*)
7715 if test -n "$ac_tool_prefix"; then
7716 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7717 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7719 $as_echo_n "checking for $ac_word... " >&6; }
7720 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7721 $as_echo_n "(cached) " >&6
7722 else
7723 if test -n "$DSYMUTIL"; then
7724 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7725 else
7726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7727 for as_dir in $PATH
7729 IFS=$as_save_IFS
7730 test -z "$as_dir" && as_dir=.
7731 for ac_exec_ext in '' $ac_executable_extensions; do
7732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7733 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7735 break 2
7737 done
7738 done
7739 IFS=$as_save_IFS
7743 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7744 if test -n "$DSYMUTIL"; then
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7746 $as_echo "$DSYMUTIL" >&6; }
7747 else
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7749 $as_echo "no" >&6; }
7754 if test -z "$ac_cv_prog_DSYMUTIL"; then
7755 ac_ct_DSYMUTIL=$DSYMUTIL
7756 # Extract the first word of "dsymutil", so it can be a program name with args.
7757 set dummy dsymutil; ac_word=$2
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7759 $as_echo_n "checking for $ac_word... " >&6; }
7760 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7761 $as_echo_n "(cached) " >&6
7762 else
7763 if test -n "$ac_ct_DSYMUTIL"; then
7764 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7765 else
7766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7767 for as_dir in $PATH
7769 IFS=$as_save_IFS
7770 test -z "$as_dir" && as_dir=.
7771 for ac_exec_ext in '' $ac_executable_extensions; do
7772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7773 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7775 break 2
7777 done
7778 done
7779 IFS=$as_save_IFS
7783 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7784 if test -n "$ac_ct_DSYMUTIL"; then
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7786 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7787 else
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7789 $as_echo "no" >&6; }
7792 if test "x$ac_ct_DSYMUTIL" = x; then
7793 DSYMUTIL=":"
7794 else
7795 case $cross_compiling:$ac_tool_warned in
7796 yes:)
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7798 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7799 ac_tool_warned=yes ;;
7800 esac
7801 DSYMUTIL=$ac_ct_DSYMUTIL
7803 else
7804 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7807 if test -n "$ac_tool_prefix"; then
7808 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7809 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7811 $as_echo_n "checking for $ac_word... " >&6; }
7812 if ${ac_cv_prog_NMEDIT+:} false; then :
7813 $as_echo_n "(cached) " >&6
7814 else
7815 if test -n "$NMEDIT"; then
7816 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7817 else
7818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7819 for as_dir in $PATH
7821 IFS=$as_save_IFS
7822 test -z "$as_dir" && as_dir=.
7823 for ac_exec_ext in '' $ac_executable_extensions; do
7824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7825 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7827 break 2
7829 done
7830 done
7831 IFS=$as_save_IFS
7835 NMEDIT=$ac_cv_prog_NMEDIT
7836 if test -n "$NMEDIT"; then
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7838 $as_echo "$NMEDIT" >&6; }
7839 else
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7841 $as_echo "no" >&6; }
7846 if test -z "$ac_cv_prog_NMEDIT"; then
7847 ac_ct_NMEDIT=$NMEDIT
7848 # Extract the first word of "nmedit", so it can be a program name with args.
7849 set dummy nmedit; ac_word=$2
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7851 $as_echo_n "checking for $ac_word... " >&6; }
7852 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7853 $as_echo_n "(cached) " >&6
7854 else
7855 if test -n "$ac_ct_NMEDIT"; then
7856 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7857 else
7858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7859 for as_dir in $PATH
7861 IFS=$as_save_IFS
7862 test -z "$as_dir" && as_dir=.
7863 for ac_exec_ext in '' $ac_executable_extensions; do
7864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7865 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7867 break 2
7869 done
7870 done
7871 IFS=$as_save_IFS
7875 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7876 if test -n "$ac_ct_NMEDIT"; then
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7878 $as_echo "$ac_ct_NMEDIT" >&6; }
7879 else
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7881 $as_echo "no" >&6; }
7884 if test "x$ac_ct_NMEDIT" = x; then
7885 NMEDIT=":"
7886 else
7887 case $cross_compiling:$ac_tool_warned in
7888 yes:)
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7890 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7891 ac_tool_warned=yes ;;
7892 esac
7893 NMEDIT=$ac_ct_NMEDIT
7895 else
7896 NMEDIT="$ac_cv_prog_NMEDIT"
7899 if test -n "$ac_tool_prefix"; then
7900 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7901 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7903 $as_echo_n "checking for $ac_word... " >&6; }
7904 if ${ac_cv_prog_LIPO+:} false; then :
7905 $as_echo_n "(cached) " >&6
7906 else
7907 if test -n "$LIPO"; then
7908 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7909 else
7910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7911 for as_dir in $PATH
7913 IFS=$as_save_IFS
7914 test -z "$as_dir" && as_dir=.
7915 for ac_exec_ext in '' $ac_executable_extensions; do
7916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7917 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7919 break 2
7921 done
7922 done
7923 IFS=$as_save_IFS
7927 LIPO=$ac_cv_prog_LIPO
7928 if test -n "$LIPO"; then
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7930 $as_echo "$LIPO" >&6; }
7931 else
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7933 $as_echo "no" >&6; }
7938 if test -z "$ac_cv_prog_LIPO"; then
7939 ac_ct_LIPO=$LIPO
7940 # Extract the first word of "lipo", so it can be a program name with args.
7941 set dummy lipo; ac_word=$2
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7943 $as_echo_n "checking for $ac_word... " >&6; }
7944 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7945 $as_echo_n "(cached) " >&6
7946 else
7947 if test -n "$ac_ct_LIPO"; then
7948 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7949 else
7950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7951 for as_dir in $PATH
7953 IFS=$as_save_IFS
7954 test -z "$as_dir" && as_dir=.
7955 for ac_exec_ext in '' $ac_executable_extensions; do
7956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7957 ac_cv_prog_ac_ct_LIPO="lipo"
7958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7959 break 2
7961 done
7962 done
7963 IFS=$as_save_IFS
7967 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7968 if test -n "$ac_ct_LIPO"; then
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7970 $as_echo "$ac_ct_LIPO" >&6; }
7971 else
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7973 $as_echo "no" >&6; }
7976 if test "x$ac_ct_LIPO" = x; then
7977 LIPO=":"
7978 else
7979 case $cross_compiling:$ac_tool_warned in
7980 yes:)
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7982 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7983 ac_tool_warned=yes ;;
7984 esac
7985 LIPO=$ac_ct_LIPO
7987 else
7988 LIPO="$ac_cv_prog_LIPO"
7991 if test -n "$ac_tool_prefix"; then
7992 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7993 set dummy ${ac_tool_prefix}otool; ac_word=$2
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7995 $as_echo_n "checking for $ac_word... " >&6; }
7996 if ${ac_cv_prog_OTOOL+:} false; then :
7997 $as_echo_n "(cached) " >&6
7998 else
7999 if test -n "$OTOOL"; then
8000 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8001 else
8002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8003 for as_dir in $PATH
8005 IFS=$as_save_IFS
8006 test -z "$as_dir" && as_dir=.
8007 for ac_exec_ext in '' $ac_executable_extensions; do
8008 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8009 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8011 break 2
8013 done
8014 done
8015 IFS=$as_save_IFS
8019 OTOOL=$ac_cv_prog_OTOOL
8020 if test -n "$OTOOL"; then
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8022 $as_echo "$OTOOL" >&6; }
8023 else
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8025 $as_echo "no" >&6; }
8030 if test -z "$ac_cv_prog_OTOOL"; then
8031 ac_ct_OTOOL=$OTOOL
8032 # Extract the first word of "otool", so it can be a program name with args.
8033 set dummy otool; ac_word=$2
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8035 $as_echo_n "checking for $ac_word... " >&6; }
8036 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8037 $as_echo_n "(cached) " >&6
8038 else
8039 if test -n "$ac_ct_OTOOL"; then
8040 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8041 else
8042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8043 for as_dir in $PATH
8045 IFS=$as_save_IFS
8046 test -z "$as_dir" && as_dir=.
8047 for ac_exec_ext in '' $ac_executable_extensions; do
8048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8049 ac_cv_prog_ac_ct_OTOOL="otool"
8050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8051 break 2
8053 done
8054 done
8055 IFS=$as_save_IFS
8059 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8060 if test -n "$ac_ct_OTOOL"; then
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8062 $as_echo "$ac_ct_OTOOL" >&6; }
8063 else
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8065 $as_echo "no" >&6; }
8068 if test "x$ac_ct_OTOOL" = x; then
8069 OTOOL=":"
8070 else
8071 case $cross_compiling:$ac_tool_warned in
8072 yes:)
8073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8074 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8075 ac_tool_warned=yes ;;
8076 esac
8077 OTOOL=$ac_ct_OTOOL
8079 else
8080 OTOOL="$ac_cv_prog_OTOOL"
8083 if test -n "$ac_tool_prefix"; then
8084 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8085 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8087 $as_echo_n "checking for $ac_word... " >&6; }
8088 if ${ac_cv_prog_OTOOL64+:} false; then :
8089 $as_echo_n "(cached) " >&6
8090 else
8091 if test -n "$OTOOL64"; then
8092 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8093 else
8094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8095 for as_dir in $PATH
8097 IFS=$as_save_IFS
8098 test -z "$as_dir" && as_dir=.
8099 for ac_exec_ext in '' $ac_executable_extensions; do
8100 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8101 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8103 break 2
8105 done
8106 done
8107 IFS=$as_save_IFS
8111 OTOOL64=$ac_cv_prog_OTOOL64
8112 if test -n "$OTOOL64"; then
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8114 $as_echo "$OTOOL64" >&6; }
8115 else
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8117 $as_echo "no" >&6; }
8122 if test -z "$ac_cv_prog_OTOOL64"; then
8123 ac_ct_OTOOL64=$OTOOL64
8124 # Extract the first word of "otool64", so it can be a program name with args.
8125 set dummy otool64; ac_word=$2
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8127 $as_echo_n "checking for $ac_word... " >&6; }
8128 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8129 $as_echo_n "(cached) " >&6
8130 else
8131 if test -n "$ac_ct_OTOOL64"; then
8132 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8133 else
8134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8135 for as_dir in $PATH
8137 IFS=$as_save_IFS
8138 test -z "$as_dir" && as_dir=.
8139 for ac_exec_ext in '' $ac_executable_extensions; do
8140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8141 ac_cv_prog_ac_ct_OTOOL64="otool64"
8142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8143 break 2
8145 done
8146 done
8147 IFS=$as_save_IFS
8151 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8152 if test -n "$ac_ct_OTOOL64"; then
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8154 $as_echo "$ac_ct_OTOOL64" >&6; }
8155 else
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8157 $as_echo "no" >&6; }
8160 if test "x$ac_ct_OTOOL64" = x; then
8161 OTOOL64=":"
8162 else
8163 case $cross_compiling:$ac_tool_warned in
8164 yes:)
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8166 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8167 ac_tool_warned=yes ;;
8168 esac
8169 OTOOL64=$ac_ct_OTOOL64
8171 else
8172 OTOOL64="$ac_cv_prog_OTOOL64"
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8202 $as_echo_n "checking for -single_module linker flag... " >&6; }
8203 if ${lt_cv_apple_cc_single_mod+:} false; then :
8204 $as_echo_n "(cached) " >&6
8205 else
8206 lt_cv_apple_cc_single_mod=no
8207 if test -z "$LT_MULTI_MODULE"; then
8208 # By default we will add the -single_module flag. You can override
8209 # by either setting the environment variable LT_MULTI_MODULE
8210 # non-empty at configure time, or by adding -multi_module to the
8211 # link flags.
8212 rm -rf libconftest.dylib*
8213 echo "int foo(void){return 1;}" > conftest.c
8214 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8215 -dynamiclib -Wl,-single_module conftest.c" >&5
8216 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8217 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8218 _lt_result=$?
8219 # If there is a non-empty error log, and "single_module"
8220 # appears in it, assume the flag caused a linker warning
8221 if test -s conftest.err && $GREP single_module conftest.err; then
8222 cat conftest.err >&5
8223 # Otherwise, if the output was created with a 0 exit code from
8224 # the compiler, it worked.
8225 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8226 lt_cv_apple_cc_single_mod=yes
8227 else
8228 cat conftest.err >&5
8230 rm -rf libconftest.dylib*
8231 rm -f conftest.*
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8235 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8238 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8239 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8240 $as_echo_n "(cached) " >&6
8241 else
8242 lt_cv_ld_exported_symbols_list=no
8243 save_LDFLAGS=$LDFLAGS
8244 echo "_main" > conftest.sym
8245 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8247 /* end confdefs.h. */
8250 main ()
8254 return 0;
8256 _ACEOF
8257 if ac_fn_c_try_link "$LINENO"; then :
8258 lt_cv_ld_exported_symbols_list=yes
8259 else
8260 lt_cv_ld_exported_symbols_list=no
8262 rm -f core conftest.err conftest.$ac_objext \
8263 conftest$ac_exeext conftest.$ac_ext
8264 LDFLAGS=$save_LDFLAGS
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8268 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8271 $as_echo_n "checking for -force_load linker flag... " >&6; }
8272 if ${lt_cv_ld_force_load+:} false; then :
8273 $as_echo_n "(cached) " >&6
8274 else
8275 lt_cv_ld_force_load=no
8276 cat > conftest.c << _LT_EOF
8277 int forced_loaded() { return 2;}
8278 _LT_EOF
8279 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8280 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8281 echo "$AR cru libconftest.a conftest.o" >&5
8282 $AR cru libconftest.a conftest.o 2>&5
8283 echo "$RANLIB libconftest.a" >&5
8284 $RANLIB libconftest.a 2>&5
8285 cat > conftest.c << _LT_EOF
8286 int main() { return 0;}
8287 _LT_EOF
8288 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8289 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8290 _lt_result=$?
8291 if test -s conftest.err && $GREP force_load conftest.err; then
8292 cat conftest.err >&5
8293 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8294 lt_cv_ld_force_load=yes
8295 else
8296 cat conftest.err >&5
8298 rm -f conftest.err libconftest.a conftest conftest.c
8299 rm -rf conftest.dSYM
8302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8303 $as_echo "$lt_cv_ld_force_load" >&6; }
8304 case $host_os in
8305 rhapsody* | darwin1.[012])
8306 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8307 darwin1.*)
8308 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8309 darwin*) # darwin 5.x on
8310 # if running on 10.5 or later, the deployment target defaults
8311 # to the OS version, if on x86, and 10.4, the deployment
8312 # target defaults to 10.4. Don't you love it?
8313 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8314 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8315 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8316 10.[012][,.]*)
8317 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8318 10.*)
8319 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8320 esac
8322 esac
8323 if test yes = "$lt_cv_apple_cc_single_mod"; then
8324 _lt_dar_single_mod='$single_module'
8326 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8327 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8328 else
8329 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8331 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8332 _lt_dsymutil='~$DSYMUTIL $lib || :'
8333 else
8334 _lt_dsymutil=
8337 esac
8339 # func_munge_path_list VARIABLE PATH
8340 # -----------------------------------
8341 # VARIABLE is name of variable containing _space_ separated list of
8342 # directories to be munged by the contents of PATH, which is string
8343 # having a format:
8344 # "DIR[:DIR]:"
8345 # string "DIR[ DIR]" will be prepended to VARIABLE
8346 # ":DIR[:DIR]"
8347 # string "DIR[ DIR]" will be appended to VARIABLE
8348 # "DIRP[:DIRP]::[DIRA:]DIRA"
8349 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8350 # "DIRA[ DIRA]" will be appended to VARIABLE
8351 # "DIR[:DIR]"
8352 # VARIABLE will be replaced by "DIR[ DIR]"
8353 func_munge_path_list ()
8355 case x$2 in
8359 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8361 x:*)
8362 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8364 *::*)
8365 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8366 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8369 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8371 esac
8374 ac_ext=c
8375 ac_cpp='$CPP $CPPFLAGS'
8376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8380 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8381 # On Suns, sometimes $CPP names a directory.
8382 if test -n "$CPP" && test -d "$CPP"; then
8383 CPP=
8385 if test -z "$CPP"; then
8386 if ${ac_cv_prog_CPP+:} false; then :
8387 $as_echo_n "(cached) " >&6
8388 else
8389 # Double quotes because CPP needs to be expanded
8390 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8392 ac_preproc_ok=false
8393 for ac_c_preproc_warn_flag in '' yes
8395 # Use a header file that comes with gcc, so configuring glibc
8396 # with a fresh cross-compiler works.
8397 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8398 # <limits.h> exists even on freestanding compilers.
8399 # On the NeXT, cc -E runs the code through the compiler's parser,
8400 # not just through cpp. "Syntax error" is here to catch this case.
8401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8402 /* end confdefs.h. */
8403 #ifdef __STDC__
8404 # include <limits.h>
8405 #else
8406 # include <assert.h>
8407 #endif
8408 Syntax error
8409 _ACEOF
8410 if ac_fn_c_try_cpp "$LINENO"; then :
8412 else
8413 # Broken: fails on valid input.
8414 continue
8416 rm -f conftest.err conftest.i conftest.$ac_ext
8418 # OK, works on sane cases. Now check whether nonexistent headers
8419 # can be detected and how.
8420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8421 /* end confdefs.h. */
8422 #include <ac_nonexistent.h>
8423 _ACEOF
8424 if ac_fn_c_try_cpp "$LINENO"; then :
8425 # Broken: success on invalid input.
8426 continue
8427 else
8428 # Passes both tests.
8429 ac_preproc_ok=:
8430 break
8432 rm -f conftest.err conftest.i conftest.$ac_ext
8434 done
8435 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8436 rm -f conftest.i conftest.err conftest.$ac_ext
8437 if $ac_preproc_ok; then :
8438 break
8441 done
8442 ac_cv_prog_CPP=$CPP
8445 CPP=$ac_cv_prog_CPP
8446 else
8447 ac_cv_prog_CPP=$CPP
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8450 $as_echo "$CPP" >&6; }
8451 ac_preproc_ok=false
8452 for ac_c_preproc_warn_flag in '' yes
8454 # Use a header file that comes with gcc, so configuring glibc
8455 # with a fresh cross-compiler works.
8456 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8457 # <limits.h> exists even on freestanding compilers.
8458 # On the NeXT, cc -E runs the code through the compiler's parser,
8459 # not just through cpp. "Syntax error" is here to catch this case.
8460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8461 /* end confdefs.h. */
8462 #ifdef __STDC__
8463 # include <limits.h>
8464 #else
8465 # include <assert.h>
8466 #endif
8467 Syntax error
8468 _ACEOF
8469 if ac_fn_c_try_cpp "$LINENO"; then :
8471 else
8472 # Broken: fails on valid input.
8473 continue
8475 rm -f conftest.err conftest.i conftest.$ac_ext
8477 # OK, works on sane cases. Now check whether nonexistent headers
8478 # can be detected and how.
8479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8480 /* end confdefs.h. */
8481 #include <ac_nonexistent.h>
8482 _ACEOF
8483 if ac_fn_c_try_cpp "$LINENO"; then :
8484 # Broken: success on invalid input.
8485 continue
8486 else
8487 # Passes both tests.
8488 ac_preproc_ok=:
8489 break
8491 rm -f conftest.err conftest.i conftest.$ac_ext
8493 done
8494 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8495 rm -f conftest.i conftest.err conftest.$ac_ext
8496 if $ac_preproc_ok; then :
8498 else
8499 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8500 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8501 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8502 See \`config.log' for more details" "$LINENO" 5; }
8505 ac_ext=c
8506 ac_cpp='$CPP $CPPFLAGS'
8507 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8508 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8509 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8513 $as_echo_n "checking for ANSI C header files... " >&6; }
8514 if ${ac_cv_header_stdc+:} false; then :
8515 $as_echo_n "(cached) " >&6
8516 else
8517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8518 /* end confdefs.h. */
8519 #include <stdlib.h>
8520 #include <stdarg.h>
8521 #include <string.h>
8522 #include <float.h>
8525 main ()
8529 return 0;
8531 _ACEOF
8532 if ac_fn_c_try_compile "$LINENO"; then :
8533 ac_cv_header_stdc=yes
8534 else
8535 ac_cv_header_stdc=no
8537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8539 if test $ac_cv_header_stdc = yes; then
8540 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8542 /* end confdefs.h. */
8543 #include <string.h>
8545 _ACEOF
8546 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8547 $EGREP "memchr" >/dev/null 2>&1; then :
8549 else
8550 ac_cv_header_stdc=no
8552 rm -f conftest*
8556 if test $ac_cv_header_stdc = yes; then
8557 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8559 /* end confdefs.h. */
8560 #include <stdlib.h>
8562 _ACEOF
8563 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8564 $EGREP "free" >/dev/null 2>&1; then :
8566 else
8567 ac_cv_header_stdc=no
8569 rm -f conftest*
8573 if test $ac_cv_header_stdc = yes; then
8574 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8575 if test "$cross_compiling" = yes; then :
8577 else
8578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8579 /* end confdefs.h. */
8580 #include <ctype.h>
8581 #include <stdlib.h>
8582 #if ((' ' & 0x0FF) == 0x020)
8583 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8584 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8585 #else
8586 # define ISLOWER(c) \
8587 (('a' <= (c) && (c) <= 'i') \
8588 || ('j' <= (c) && (c) <= 'r') \
8589 || ('s' <= (c) && (c) <= 'z'))
8590 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8591 #endif
8593 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8595 main ()
8597 int i;
8598 for (i = 0; i < 256; i++)
8599 if (XOR (islower (i), ISLOWER (i))
8600 || toupper (i) != TOUPPER (i))
8601 return 2;
8602 return 0;
8604 _ACEOF
8605 if ac_fn_c_try_run "$LINENO"; then :
8607 else
8608 ac_cv_header_stdc=no
8610 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8611 conftest.$ac_objext conftest.beam conftest.$ac_ext
8616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8617 $as_echo "$ac_cv_header_stdc" >&6; }
8618 if test $ac_cv_header_stdc = yes; then
8620 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8624 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8625 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8626 inttypes.h stdint.h unistd.h
8627 do :
8628 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8629 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8631 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8632 cat >>confdefs.h <<_ACEOF
8633 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8634 _ACEOF
8638 done
8641 for ac_header in dlfcn.h
8642 do :
8643 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8645 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8646 cat >>confdefs.h <<_ACEOF
8647 #define HAVE_DLFCN_H 1
8648 _ACEOF
8652 done
8658 # Set options
8662 enable_dlopen=no
8665 enable_win32_dll=no
8668 # Check whether --enable-shared was given.
8669 if test "${enable_shared+set}" = set; then :
8670 enableval=$enable_shared; p=${PACKAGE-default}
8671 case $enableval in
8672 yes) enable_shared=yes ;;
8673 no) enable_shared=no ;;
8675 enable_shared=no
8676 # Look at the argument we got. We use all the common list separators.
8677 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8678 for pkg in $enableval; do
8679 IFS=$lt_save_ifs
8680 if test "X$pkg" = "X$p"; then
8681 enable_shared=yes
8683 done
8684 IFS=$lt_save_ifs
8686 esac
8687 else
8688 enable_shared=yes
8699 # Check whether --enable-static was given.
8700 if test "${enable_static+set}" = set; then :
8701 enableval=$enable_static; p=${PACKAGE-default}
8702 case $enableval in
8703 yes) enable_static=yes ;;
8704 no) enable_static=no ;;
8706 enable_static=no
8707 # Look at the argument we got. We use all the common list separators.
8708 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8709 for pkg in $enableval; do
8710 IFS=$lt_save_ifs
8711 if test "X$pkg" = "X$p"; then
8712 enable_static=yes
8714 done
8715 IFS=$lt_save_ifs
8717 esac
8718 else
8719 enable_static=yes
8731 # Check whether --with-pic was given.
8732 if test "${with_pic+set}" = set; then :
8733 withval=$with_pic; lt_p=${PACKAGE-default}
8734 case $withval in
8735 yes|no) pic_mode=$withval ;;
8737 pic_mode=default
8738 # Look at the argument we got. We use all the common list separators.
8739 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8740 for lt_pkg in $withval; do
8741 IFS=$lt_save_ifs
8742 if test "X$lt_pkg" = "X$lt_p"; then
8743 pic_mode=yes
8745 done
8746 IFS=$lt_save_ifs
8748 esac
8749 else
8750 pic_mode=default
8760 # Check whether --enable-fast-install was given.
8761 if test "${enable_fast_install+set}" = set; then :
8762 enableval=$enable_fast_install; p=${PACKAGE-default}
8763 case $enableval in
8764 yes) enable_fast_install=yes ;;
8765 no) enable_fast_install=no ;;
8767 enable_fast_install=no
8768 # Look at the argument we got. We use all the common list separators.
8769 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8770 for pkg in $enableval; do
8771 IFS=$lt_save_ifs
8772 if test "X$pkg" = "X$p"; then
8773 enable_fast_install=yes
8775 done
8776 IFS=$lt_save_ifs
8778 esac
8779 else
8780 enable_fast_install=yes
8790 shared_archive_member_spec=
8791 case $host,$enable_shared in
8792 power*-*-aix[5-9]*,yes)
8793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8794 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8796 # Check whether --with-aix-soname was given.
8797 if test "${with_aix_soname+set}" = set; then :
8798 withval=$with_aix_soname; case $withval in
8799 aix|svr4|both)
8802 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8804 esac
8805 lt_cv_with_aix_soname=$with_aix_soname
8806 else
8807 if ${lt_cv_with_aix_soname+:} false; then :
8808 $as_echo_n "(cached) " >&6
8809 else
8810 lt_cv_with_aix_soname=aix
8813 with_aix_soname=$lt_cv_with_aix_soname
8816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8817 $as_echo "$with_aix_soname" >&6; }
8818 if test aix != "$with_aix_soname"; then
8819 # For the AIX way of multilib, we name the shared archive member
8820 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8821 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8822 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8823 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8824 if test 64 = "${OBJECT_MODE-32}"; then
8825 shared_archive_member_spec=shr_64
8826 else
8827 shared_archive_member_spec=shr
8832 with_aix_soname=aix
8834 esac
8845 # This can be used to rebuild libtool when needed
8846 LIBTOOL_DEPS=$ltmain
8848 # Always use our own libtool.
8849 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8880 test -z "$LN_S" && LN_S="ln -s"
8895 if test -n "${ZSH_VERSION+set}"; then
8896 setopt NO_GLOB_SUBST
8899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8900 $as_echo_n "checking for objdir... " >&6; }
8901 if ${lt_cv_objdir+:} false; then :
8902 $as_echo_n "(cached) " >&6
8903 else
8904 rm -f .libs 2>/dev/null
8905 mkdir .libs 2>/dev/null
8906 if test -d .libs; then
8907 lt_cv_objdir=.libs
8908 else
8909 # MS-DOS does not allow filenames that begin with a dot.
8910 lt_cv_objdir=_libs
8912 rmdir .libs 2>/dev/null
8914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8915 $as_echo "$lt_cv_objdir" >&6; }
8916 objdir=$lt_cv_objdir
8922 cat >>confdefs.h <<_ACEOF
8923 #define LT_OBJDIR "$lt_cv_objdir/"
8924 _ACEOF
8929 case $host_os in
8930 aix3*)
8931 # AIX sometimes has problems with the GCC collect2 program. For some
8932 # reason, if we set the COLLECT_NAMES environment variable, the problems
8933 # vanish in a puff of smoke.
8934 if test set != "${COLLECT_NAMES+set}"; then
8935 COLLECT_NAMES=
8936 export COLLECT_NAMES
8939 esac
8941 # Global variables:
8942 ofile=libtool
8943 can_build_shared=yes
8945 # All known linkers require a '.a' archive for static linking (except MSVC,
8946 # which needs '.lib').
8947 libext=a
8949 with_gnu_ld=$lt_cv_prog_gnu_ld
8951 old_CC=$CC
8952 old_CFLAGS=$CFLAGS
8954 # Set sane defaults for various variables
8955 test -z "$CC" && CC=cc
8956 test -z "$LTCC" && LTCC=$CC
8957 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8958 test -z "$LD" && LD=ld
8959 test -z "$ac_objext" && ac_objext=o
8961 func_cc_basename $compiler
8962 cc_basename=$func_cc_basename_result
8965 # Only perform the check for file, if the check method requires it
8966 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8967 case $deplibs_check_method in
8968 file_magic*)
8969 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8971 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8972 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8973 $as_echo_n "(cached) " >&6
8974 else
8975 case $MAGIC_CMD in
8976 [\\/*] | ?:[\\/]*)
8977 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8980 lt_save_MAGIC_CMD=$MAGIC_CMD
8981 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8982 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8983 for ac_dir in $ac_dummy; do
8984 IFS=$lt_save_ifs
8985 test -z "$ac_dir" && ac_dir=.
8986 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8987 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8988 if test -n "$file_magic_test_file"; then
8989 case $deplibs_check_method in
8990 "file_magic "*)
8991 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8992 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8993 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8994 $EGREP "$file_magic_regex" > /dev/null; then
8996 else
8997 cat <<_LT_EOF 1>&2
8999 *** Warning: the command libtool uses to detect shared libraries,
9000 *** $file_magic_cmd, produces output that libtool cannot recognize.
9001 *** The result is that libtool may fail to recognize shared libraries
9002 *** as such. This will affect the creation of libtool libraries that
9003 *** depend on shared libraries, but programs linked with such libtool
9004 *** libraries will work regardless of this problem. Nevertheless, you
9005 *** may want to report the problem to your system manager and/or to
9006 *** bug-libtool@gnu.org
9008 _LT_EOF
9009 fi ;;
9010 esac
9012 break
9014 done
9015 IFS=$lt_save_ifs
9016 MAGIC_CMD=$lt_save_MAGIC_CMD
9018 esac
9021 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9022 if test -n "$MAGIC_CMD"; then
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9024 $as_echo "$MAGIC_CMD" >&6; }
9025 else
9026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9027 $as_echo "no" >&6; }
9034 if test -z "$lt_cv_path_MAGIC_CMD"; then
9035 if test -n "$ac_tool_prefix"; then
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9037 $as_echo_n "checking for file... " >&6; }
9038 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9039 $as_echo_n "(cached) " >&6
9040 else
9041 case $MAGIC_CMD in
9042 [\\/*] | ?:[\\/]*)
9043 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9046 lt_save_MAGIC_CMD=$MAGIC_CMD
9047 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9048 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9049 for ac_dir in $ac_dummy; do
9050 IFS=$lt_save_ifs
9051 test -z "$ac_dir" && ac_dir=.
9052 if test -f "$ac_dir/file"; then
9053 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9054 if test -n "$file_magic_test_file"; then
9055 case $deplibs_check_method in
9056 "file_magic "*)
9057 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9058 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9059 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9060 $EGREP "$file_magic_regex" > /dev/null; then
9062 else
9063 cat <<_LT_EOF 1>&2
9065 *** Warning: the command libtool uses to detect shared libraries,
9066 *** $file_magic_cmd, produces output that libtool cannot recognize.
9067 *** The result is that libtool may fail to recognize shared libraries
9068 *** as such. This will affect the creation of libtool libraries that
9069 *** depend on shared libraries, but programs linked with such libtool
9070 *** libraries will work regardless of this problem. Nevertheless, you
9071 *** may want to report the problem to your system manager and/or to
9072 *** bug-libtool@gnu.org
9074 _LT_EOF
9075 fi ;;
9076 esac
9078 break
9080 done
9081 IFS=$lt_save_ifs
9082 MAGIC_CMD=$lt_save_MAGIC_CMD
9084 esac
9087 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9088 if test -n "$MAGIC_CMD"; then
9089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9090 $as_echo "$MAGIC_CMD" >&6; }
9091 else
9092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9093 $as_echo "no" >&6; }
9097 else
9098 MAGIC_CMD=:
9104 esac
9106 # Use C for the default configuration in the libtool script
9108 lt_save_CC=$CC
9109 ac_ext=c
9110 ac_cpp='$CPP $CPPFLAGS'
9111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9116 # Source file extension for C test sources.
9117 ac_ext=c
9119 # Object file extension for compiled C test sources.
9120 objext=o
9121 objext=$objext
9123 # Code to be used in simple compile tests
9124 lt_simple_compile_test_code="int some_variable = 0;"
9126 # Code to be used in simple link tests
9127 lt_simple_link_test_code='int main(){return(0);}'
9135 # If no C compiler was specified, use CC.
9136 LTCC=${LTCC-"$CC"}
9138 # If no C compiler flags were specified, use CFLAGS.
9139 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9141 # Allow CC to be a program name with arguments.
9142 compiler=$CC
9144 # Save the default compiler, since it gets overwritten when the other
9145 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9146 compiler_DEFAULT=$CC
9148 # save warnings/boilerplate of simple test code
9149 ac_outfile=conftest.$ac_objext
9150 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9151 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9152 _lt_compiler_boilerplate=`cat conftest.err`
9153 $RM conftest*
9155 ac_outfile=conftest.$ac_objext
9156 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9157 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9158 _lt_linker_boilerplate=`cat conftest.err`
9159 $RM -r conftest*
9162 ## CAVEAT EMPTOR:
9163 ## There is no encapsulation within the following macros, do not change
9164 ## the running order or otherwise move them around unless you know exactly
9165 ## what you are doing...
9166 if test -n "$compiler"; then
9168 lt_prog_compiler_no_builtin_flag=
9170 if test yes = "$GCC"; then
9171 case $cc_basename in
9172 nvcc*)
9173 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9175 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9176 esac
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9179 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9180 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9181 $as_echo_n "(cached) " >&6
9182 else
9183 lt_cv_prog_compiler_rtti_exceptions=no
9184 ac_outfile=conftest.$ac_objext
9185 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9186 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9187 # Insert the option either (1) after the last *FLAGS variable, or
9188 # (2) before a word containing "conftest.", or (3) at the end.
9189 # Note that $ac_compile itself does not contain backslashes and begins
9190 # with a dollar sign (not a hyphen), so the echo should work correctly.
9191 # The option is referenced via a variable to avoid confusing sed.
9192 lt_compile=`echo "$ac_compile" | $SED \
9193 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9194 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9195 -e 's:$: $lt_compiler_flag:'`
9196 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9197 (eval "$lt_compile" 2>conftest.err)
9198 ac_status=$?
9199 cat conftest.err >&5
9200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9201 if (exit $ac_status) && test -s "$ac_outfile"; then
9202 # The compiler can only warn and ignore the option if not recognized
9203 # So say no if there are warnings other than the usual output.
9204 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9205 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9206 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9207 lt_cv_prog_compiler_rtti_exceptions=yes
9210 $RM conftest*
9213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9214 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9216 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9217 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9218 else
9229 lt_prog_compiler_wl=
9230 lt_prog_compiler_pic=
9231 lt_prog_compiler_static=
9234 if test yes = "$GCC"; then
9235 lt_prog_compiler_wl='-Wl,'
9236 lt_prog_compiler_static='-static'
9238 case $host_os in
9239 aix*)
9240 # All AIX code is PIC.
9241 if test ia64 = "$host_cpu"; then
9242 # AIX 5 now supports IA64 processor
9243 lt_prog_compiler_static='-Bstatic'
9245 lt_prog_compiler_pic='-fPIC'
9248 amigaos*)
9249 case $host_cpu in
9250 powerpc)
9251 # see comment about AmigaOS4 .so support
9252 lt_prog_compiler_pic='-fPIC'
9254 m68k)
9255 # FIXME: we need at least 68020 code to build shared libraries, but
9256 # adding the '-m68020' flag to GCC prevents building anything better,
9257 # like '-m68040'.
9258 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9260 esac
9263 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9264 # PIC is the default for these OSes.
9267 mingw* | cygwin* | pw32* | os2* | cegcc*)
9268 # This hack is so that the source file can tell whether it is being
9269 # built for inclusion in a dll (and should export symbols for example).
9270 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9271 # (--disable-auto-import) libraries
9272 lt_prog_compiler_pic='-DDLL_EXPORT'
9273 case $host_os in
9274 os2*)
9275 lt_prog_compiler_static='$wl-static'
9277 esac
9280 darwin* | rhapsody*)
9281 # PIC is the default on this platform
9282 # Common symbols not allowed in MH_DYLIB files
9283 lt_prog_compiler_pic='-fno-common'
9286 haiku*)
9287 # PIC is the default for Haiku.
9288 # The "-static" flag exists, but is broken.
9289 lt_prog_compiler_static=
9292 hpux*)
9293 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9294 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9295 # sets the default TLS model and affects inlining.
9296 case $host_cpu in
9297 hppa*64*)
9298 # +Z the default
9301 lt_prog_compiler_pic='-fPIC'
9303 esac
9306 interix[3-9]*)
9307 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9308 # Instead, we relocate shared libraries at runtime.
9311 msdosdjgpp*)
9312 # Just because we use GCC doesn't mean we suddenly get shared libraries
9313 # on systems that don't support them.
9314 lt_prog_compiler_can_build_shared=no
9315 enable_shared=no
9318 *nto* | *qnx*)
9319 # QNX uses GNU C++, but need to define -shared option too, otherwise
9320 # it will coredump.
9321 lt_prog_compiler_pic='-fPIC -shared'
9324 sysv4*MP*)
9325 if test -d /usr/nec; then
9326 lt_prog_compiler_pic=-Kconform_pic
9331 lt_prog_compiler_pic='-fPIC'
9333 esac
9335 case $cc_basename in
9336 nvcc*) # Cuda Compiler Driver 2.2
9337 lt_prog_compiler_wl='-Xlinker '
9338 if test -n "$lt_prog_compiler_pic"; then
9339 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9342 esac
9343 else
9344 # PORTME Check for flag to pass linker flags through the system compiler.
9345 case $host_os in
9346 aix*)
9347 lt_prog_compiler_wl='-Wl,'
9348 if test ia64 = "$host_cpu"; then
9349 # AIX 5 now supports IA64 processor
9350 lt_prog_compiler_static='-Bstatic'
9351 else
9352 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9356 darwin* | rhapsody*)
9357 # PIC is the default on this platform
9358 # Common symbols not allowed in MH_DYLIB files
9359 lt_prog_compiler_pic='-fno-common'
9360 case $cc_basename in
9361 nagfor*)
9362 # NAG Fortran compiler
9363 lt_prog_compiler_wl='-Wl,-Wl,,'
9364 lt_prog_compiler_pic='-PIC'
9365 lt_prog_compiler_static='-Bstatic'
9367 esac
9370 mingw* | cygwin* | pw32* | os2* | cegcc*)
9371 # This hack is so that the source file can tell whether it is being
9372 # built for inclusion in a dll (and should export symbols for example).
9373 lt_prog_compiler_pic='-DDLL_EXPORT'
9374 case $host_os in
9375 os2*)
9376 lt_prog_compiler_static='$wl-static'
9378 esac
9381 hpux9* | hpux10* | hpux11*)
9382 lt_prog_compiler_wl='-Wl,'
9383 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9384 # not for PA HP-UX.
9385 case $host_cpu in
9386 hppa*64*|ia64*)
9387 # +Z the default
9390 lt_prog_compiler_pic='+Z'
9392 esac
9393 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9394 lt_prog_compiler_static='$wl-a ${wl}archive'
9397 irix5* | irix6* | nonstopux*)
9398 lt_prog_compiler_wl='-Wl,'
9399 # PIC (with -KPIC) is the default.
9400 lt_prog_compiler_static='-non_shared'
9403 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9404 case $cc_basename in
9405 # old Intel for x86_64, which still supported -KPIC.
9406 ecc*)
9407 lt_prog_compiler_wl='-Wl,'
9408 lt_prog_compiler_pic='-KPIC'
9409 lt_prog_compiler_static='-static'
9411 # icc used to be incompatible with GCC.
9412 # ICC 10 doesn't accept -KPIC any more.
9413 icc* | ifort*)
9414 lt_prog_compiler_wl='-Wl,'
9415 lt_prog_compiler_pic='-fPIC'
9416 lt_prog_compiler_static='-static'
9418 # Lahey Fortran 8.1.
9419 lf95*)
9420 lt_prog_compiler_wl='-Wl,'
9421 lt_prog_compiler_pic='--shared'
9422 lt_prog_compiler_static='--static'
9424 nagfor*)
9425 # NAG Fortran compiler
9426 lt_prog_compiler_wl='-Wl,-Wl,,'
9427 lt_prog_compiler_pic='-PIC'
9428 lt_prog_compiler_static='-Bstatic'
9430 tcc*)
9431 # Fabrice Bellard et al's Tiny C Compiler
9432 lt_prog_compiler_wl='-Wl,'
9433 lt_prog_compiler_pic='-fPIC'
9434 lt_prog_compiler_static='-static'
9436 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9437 # Portland Group compilers (*not* the Pentium gcc compiler,
9438 # which looks to be a dead project)
9439 lt_prog_compiler_wl='-Wl,'
9440 lt_prog_compiler_pic='-fpic'
9441 lt_prog_compiler_static='-Bstatic'
9443 ccc*)
9444 lt_prog_compiler_wl='-Wl,'
9445 # All Alpha code is PIC.
9446 lt_prog_compiler_static='-non_shared'
9448 xl* | bgxl* | bgf* | mpixl*)
9449 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9450 lt_prog_compiler_wl='-Wl,'
9451 lt_prog_compiler_pic='-qpic'
9452 lt_prog_compiler_static='-qstaticlink'
9455 case `$CC -V 2>&1 | sed 5q` in
9456 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9457 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9458 lt_prog_compiler_pic='-KPIC'
9459 lt_prog_compiler_static='-Bstatic'
9460 lt_prog_compiler_wl=''
9462 *Sun\ F* | *Sun*Fortran*)
9463 lt_prog_compiler_pic='-KPIC'
9464 lt_prog_compiler_static='-Bstatic'
9465 lt_prog_compiler_wl='-Qoption ld '
9467 *Sun\ C*)
9468 # Sun C 5.9
9469 lt_prog_compiler_pic='-KPIC'
9470 lt_prog_compiler_static='-Bstatic'
9471 lt_prog_compiler_wl='-Wl,'
9473 *Intel*\ [CF]*Compiler*)
9474 lt_prog_compiler_wl='-Wl,'
9475 lt_prog_compiler_pic='-fPIC'
9476 lt_prog_compiler_static='-static'
9478 *Portland\ Group*)
9479 lt_prog_compiler_wl='-Wl,'
9480 lt_prog_compiler_pic='-fpic'
9481 lt_prog_compiler_static='-Bstatic'
9483 esac
9485 esac
9488 newsos6)
9489 lt_prog_compiler_pic='-KPIC'
9490 lt_prog_compiler_static='-Bstatic'
9493 *nto* | *qnx*)
9494 # QNX uses GNU C++, but need to define -shared option too, otherwise
9495 # it will coredump.
9496 lt_prog_compiler_pic='-fPIC -shared'
9499 osf3* | osf4* | osf5*)
9500 lt_prog_compiler_wl='-Wl,'
9501 # All OSF/1 code is PIC.
9502 lt_prog_compiler_static='-non_shared'
9505 rdos*)
9506 lt_prog_compiler_static='-non_shared'
9509 solaris*)
9510 lt_prog_compiler_pic='-KPIC'
9511 lt_prog_compiler_static='-Bstatic'
9512 case $cc_basename in
9513 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9514 lt_prog_compiler_wl='-Qoption ld ';;
9516 lt_prog_compiler_wl='-Wl,';;
9517 esac
9520 sunos4*)
9521 lt_prog_compiler_wl='-Qoption ld '
9522 lt_prog_compiler_pic='-PIC'
9523 lt_prog_compiler_static='-Bstatic'
9526 sysv4 | sysv4.2uw2* | sysv4.3*)
9527 lt_prog_compiler_wl='-Wl,'
9528 lt_prog_compiler_pic='-KPIC'
9529 lt_prog_compiler_static='-Bstatic'
9532 sysv4*MP*)
9533 if test -d /usr/nec; then
9534 lt_prog_compiler_pic='-Kconform_pic'
9535 lt_prog_compiler_static='-Bstatic'
9539 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9540 lt_prog_compiler_wl='-Wl,'
9541 lt_prog_compiler_pic='-KPIC'
9542 lt_prog_compiler_static='-Bstatic'
9545 unicos*)
9546 lt_prog_compiler_wl='-Wl,'
9547 lt_prog_compiler_can_build_shared=no
9550 uts4*)
9551 lt_prog_compiler_pic='-pic'
9552 lt_prog_compiler_static='-Bstatic'
9556 lt_prog_compiler_can_build_shared=no
9558 esac
9561 case $host_os in
9562 # For platforms that do not support PIC, -DPIC is meaningless:
9563 *djgpp*)
9564 lt_prog_compiler_pic=
9567 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9569 esac
9571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9572 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9573 if ${lt_cv_prog_compiler_pic+:} false; then :
9574 $as_echo_n "(cached) " >&6
9575 else
9576 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9579 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9580 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9583 # Check to make sure the PIC flag actually works.
9585 if test -n "$lt_prog_compiler_pic"; then
9586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9587 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9588 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9589 $as_echo_n "(cached) " >&6
9590 else
9591 lt_cv_prog_compiler_pic_works=no
9592 ac_outfile=conftest.$ac_objext
9593 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9594 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9595 # Insert the option either (1) after the last *FLAGS variable, or
9596 # (2) before a word containing "conftest.", or (3) at the end.
9597 # Note that $ac_compile itself does not contain backslashes and begins
9598 # with a dollar sign (not a hyphen), so the echo should work correctly.
9599 # The option is referenced via a variable to avoid confusing sed.
9600 lt_compile=`echo "$ac_compile" | $SED \
9601 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9602 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9603 -e 's:$: $lt_compiler_flag:'`
9604 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9605 (eval "$lt_compile" 2>conftest.err)
9606 ac_status=$?
9607 cat conftest.err >&5
9608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9609 if (exit $ac_status) && test -s "$ac_outfile"; then
9610 # The compiler can only warn and ignore the option if not recognized
9611 # So say no if there are warnings other than the usual output.
9612 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9613 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9614 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9615 lt_cv_prog_compiler_pic_works=yes
9618 $RM conftest*
9621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9622 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9624 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9625 case $lt_prog_compiler_pic in
9626 "" | " "*) ;;
9627 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9628 esac
9629 else
9630 lt_prog_compiler_pic=
9631 lt_prog_compiler_can_build_shared=no
9647 # Check to make sure the static flag actually works.
9649 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9651 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9652 if ${lt_cv_prog_compiler_static_works+:} false; then :
9653 $as_echo_n "(cached) " >&6
9654 else
9655 lt_cv_prog_compiler_static_works=no
9656 save_LDFLAGS=$LDFLAGS
9657 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9658 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9659 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9660 # The linker can only warn and ignore the option if not recognized
9661 # So say no if there are warnings
9662 if test -s conftest.err; then
9663 # Append any errors to the config.log.
9664 cat conftest.err 1>&5
9665 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9666 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9667 if diff conftest.exp conftest.er2 >/dev/null; then
9668 lt_cv_prog_compiler_static_works=yes
9670 else
9671 lt_cv_prog_compiler_static_works=yes
9674 $RM -r conftest*
9675 LDFLAGS=$save_LDFLAGS
9678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9679 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9681 if test yes = "$lt_cv_prog_compiler_static_works"; then
9683 else
9684 lt_prog_compiler_static=
9693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9694 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9695 if ${lt_cv_prog_compiler_c_o+:} false; then :
9696 $as_echo_n "(cached) " >&6
9697 else
9698 lt_cv_prog_compiler_c_o=no
9699 $RM -r conftest 2>/dev/null
9700 mkdir conftest
9701 cd conftest
9702 mkdir out
9703 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9705 lt_compiler_flag="-o out/conftest2.$ac_objext"
9706 # Insert the option either (1) after the last *FLAGS variable, or
9707 # (2) before a word containing "conftest.", or (3) at the end.
9708 # Note that $ac_compile itself does not contain backslashes and begins
9709 # with a dollar sign (not a hyphen), so the echo should work correctly.
9710 lt_compile=`echo "$ac_compile" | $SED \
9711 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9712 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9713 -e 's:$: $lt_compiler_flag:'`
9714 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9715 (eval "$lt_compile" 2>out/conftest.err)
9716 ac_status=$?
9717 cat out/conftest.err >&5
9718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9719 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9720 then
9721 # The compiler can only warn and ignore the option if not recognized
9722 # So say no if there are warnings
9723 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9724 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9725 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9726 lt_cv_prog_compiler_c_o=yes
9729 chmod u+w . 2>&5
9730 $RM conftest*
9731 # SGI C++ compiler will create directory out/ii_files/ for
9732 # template instantiation
9733 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9734 $RM out/* && rmdir out
9735 cd ..
9736 $RM -r conftest
9737 $RM conftest*
9740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9741 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9749 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9750 if ${lt_cv_prog_compiler_c_o+:} false; then :
9751 $as_echo_n "(cached) " >&6
9752 else
9753 lt_cv_prog_compiler_c_o=no
9754 $RM -r conftest 2>/dev/null
9755 mkdir conftest
9756 cd conftest
9757 mkdir out
9758 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9760 lt_compiler_flag="-o out/conftest2.$ac_objext"
9761 # Insert the option either (1) after the last *FLAGS variable, or
9762 # (2) before a word containing "conftest.", or (3) at the end.
9763 # Note that $ac_compile itself does not contain backslashes and begins
9764 # with a dollar sign (not a hyphen), so the echo should work correctly.
9765 lt_compile=`echo "$ac_compile" | $SED \
9766 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9767 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9768 -e 's:$: $lt_compiler_flag:'`
9769 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9770 (eval "$lt_compile" 2>out/conftest.err)
9771 ac_status=$?
9772 cat out/conftest.err >&5
9773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9774 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9775 then
9776 # The compiler can only warn and ignore the option if not recognized
9777 # So say no if there are warnings
9778 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9779 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9780 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9781 lt_cv_prog_compiler_c_o=yes
9784 chmod u+w . 2>&5
9785 $RM conftest*
9786 # SGI C++ compiler will create directory out/ii_files/ for
9787 # template instantiation
9788 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9789 $RM out/* && rmdir out
9790 cd ..
9791 $RM -r conftest
9792 $RM conftest*
9795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9796 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9801 hard_links=nottested
9802 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9803 # do not overwrite the value of need_locks provided by the user
9804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9805 $as_echo_n "checking if we can lock with hard links... " >&6; }
9806 hard_links=yes
9807 $RM conftest*
9808 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9809 touch conftest.a
9810 ln conftest.a conftest.b 2>&5 || hard_links=no
9811 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9813 $as_echo "$hard_links" >&6; }
9814 if test no = "$hard_links"; then
9815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9816 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9817 need_locks=warn
9819 else
9820 need_locks=no
9828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9829 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9831 runpath_var=
9832 allow_undefined_flag=
9833 always_export_symbols=no
9834 archive_cmds=
9835 archive_expsym_cmds=
9836 compiler_needs_object=no
9837 enable_shared_with_static_runtimes=no
9838 export_dynamic_flag_spec=
9839 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9840 hardcode_automatic=no
9841 hardcode_direct=no
9842 hardcode_direct_absolute=no
9843 hardcode_libdir_flag_spec=
9844 hardcode_libdir_separator=
9845 hardcode_minus_L=no
9846 hardcode_shlibpath_var=unsupported
9847 inherit_rpath=no
9848 link_all_deplibs=unknown
9849 module_cmds=
9850 module_expsym_cmds=
9851 old_archive_from_new_cmds=
9852 old_archive_from_expsyms_cmds=
9853 thread_safe_flag_spec=
9854 whole_archive_flag_spec=
9855 # include_expsyms should be a list of space-separated symbols to be *always*
9856 # included in the symbol list
9857 include_expsyms=
9858 # exclude_expsyms can be an extended regexp of symbols to exclude
9859 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9860 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9861 # as well as any symbol that contains 'd'.
9862 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9863 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9864 # platforms (ab)use it in PIC code, but their linkers get confused if
9865 # the symbol is explicitly referenced. Since portable code cannot
9866 # rely on this symbol name, it's probably fine to never include it in
9867 # preloaded symbol tables.
9868 # Exclude shared library initialization/finalization symbols.
9869 extract_expsyms_cmds=
9871 case $host_os in
9872 cygwin* | mingw* | pw32* | cegcc*)
9873 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9874 # When not using gcc, we currently assume that we are using
9875 # Microsoft Visual C++.
9876 if test yes != "$GCC"; then
9877 with_gnu_ld=no
9880 interix*)
9881 # we just hope/assume this is gcc and not c89 (= MSVC++)
9882 with_gnu_ld=yes
9884 openbsd* | bitrig*)
9885 with_gnu_ld=no
9887 esac
9889 ld_shlibs=yes
9891 # On some targets, GNU ld is compatible enough with the native linker
9892 # that we're better off using the native interface for both.
9893 lt_use_gnu_ld_interface=no
9894 if test yes = "$with_gnu_ld"; then
9895 case $host_os in
9896 aix*)
9897 # The AIX port of GNU ld has always aspired to compatibility
9898 # with the native linker. However, as the warning in the GNU ld
9899 # block says, versions before 2.19.5* couldn't really create working
9900 # shared libraries, regardless of the interface used.
9901 case `$LD -v 2>&1` in
9902 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9903 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9904 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9906 lt_use_gnu_ld_interface=yes
9908 esac
9911 lt_use_gnu_ld_interface=yes
9913 esac
9916 if test yes = "$lt_use_gnu_ld_interface"; then
9917 # If archive_cmds runs LD, not CC, wlarc should be empty
9918 wlarc='$wl'
9920 # Set some defaults for GNU ld with shared library support. These
9921 # are reset later if shared libraries are not supported. Putting them
9922 # here allows them to be overridden if necessary.
9923 runpath_var=LD_RUN_PATH
9924 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9925 export_dynamic_flag_spec='$wl--export-dynamic'
9926 # ancient GNU ld didn't support --whole-archive et. al.
9927 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9928 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9929 else
9930 whole_archive_flag_spec=
9932 supports_anon_versioning=no
9933 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9934 *GNU\ gold*) supports_anon_versioning=yes ;;
9935 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9936 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9937 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9938 *\ 2.11.*) ;; # other 2.11 versions
9939 *) supports_anon_versioning=yes ;;
9940 esac
9942 # See if GNU ld supports shared libraries.
9943 case $host_os in
9944 aix[3-9]*)
9945 # On AIX/PPC, the GNU linker is very broken
9946 if test ia64 != "$host_cpu"; then
9947 ld_shlibs=no
9948 cat <<_LT_EOF 1>&2
9950 *** Warning: the GNU linker, at least up to release 2.19, is reported
9951 *** to be unable to reliably create shared libraries on AIX.
9952 *** Therefore, libtool is disabling shared libraries support. If you
9953 *** really care for shared libraries, you may want to install binutils
9954 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9955 *** You will then need to restart the configuration process.
9957 _LT_EOF
9961 amigaos*)
9962 case $host_cpu in
9963 powerpc)
9964 # see comment about AmigaOS4 .so support
9965 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9966 archive_expsym_cmds=''
9968 m68k)
9969 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9970 hardcode_libdir_flag_spec='-L$libdir'
9971 hardcode_minus_L=yes
9973 esac
9976 beos*)
9977 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9978 allow_undefined_flag=unsupported
9979 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9980 # support --undefined. This deserves some investigation. FIXME
9981 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9982 else
9983 ld_shlibs=no
9987 cygwin* | mingw* | pw32* | cegcc*)
9988 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9989 # as there is no search path for DLLs.
9990 hardcode_libdir_flag_spec='-L$libdir'
9991 export_dynamic_flag_spec='$wl--export-all-symbols'
9992 allow_undefined_flag=unsupported
9993 always_export_symbols=no
9994 enable_shared_with_static_runtimes=yes
9995 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9996 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9998 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9999 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10000 # If the export-symbols file already is a .def file, use it as
10001 # is; otherwise, prepend EXPORTS...
10002 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10003 cp $export_symbols $output_objdir/$soname.def;
10004 else
10005 echo EXPORTS > $output_objdir/$soname.def;
10006 cat $export_symbols >> $output_objdir/$soname.def;
10008 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10009 else
10010 ld_shlibs=no
10014 haiku*)
10015 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10016 link_all_deplibs=yes
10019 os2*)
10020 hardcode_libdir_flag_spec='-L$libdir'
10021 hardcode_minus_L=yes
10022 allow_undefined_flag=unsupported
10023 shrext_cmds=.dll
10024 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10025 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10026 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10027 $ECHO EXPORTS >> $output_objdir/$libname.def~
10028 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10029 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10030 emximp -o $lib $output_objdir/$libname.def'
10031 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10032 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10033 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10034 $ECHO EXPORTS >> $output_objdir/$libname.def~
10035 prefix_cmds="$SED"~
10036 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10037 prefix_cmds="$prefix_cmds -e 1d";
10039 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10040 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10041 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10042 emximp -o $lib $output_objdir/$libname.def'
10043 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10044 enable_shared_with_static_runtimes=yes
10047 interix[3-9]*)
10048 hardcode_direct=no
10049 hardcode_shlibpath_var=no
10050 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10051 export_dynamic_flag_spec='$wl-E'
10052 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10053 # Instead, shared libraries are loaded at an image base (0x10000000 by
10054 # default) and relocated if they conflict, which is a slow very memory
10055 # consuming and fragmenting process. To avoid this, we pick a random,
10056 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10057 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10058 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10059 archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10062 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10063 tmp_diet=no
10064 if test linux-dietlibc = "$host_os"; then
10065 case $cc_basename in
10066 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10067 esac
10069 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10070 && test no = "$tmp_diet"
10071 then
10072 tmp_addflag=' $pic_flag'
10073 tmp_sharedflag='-shared'
10074 case $cc_basename,$host_cpu in
10075 pgcc*) # Portland Group C compiler
10076 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10077 tmp_addflag=' $pic_flag'
10079 pgf77* | pgf90* | pgf95* | pgfortran*)
10080 # Portland Group f77 and f90 compilers
10081 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10082 tmp_addflag=' $pic_flag -Mnomain' ;;
10083 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10084 tmp_addflag=' -i_dynamic' ;;
10085 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10086 tmp_addflag=' -i_dynamic -nofor_main' ;;
10087 ifc* | ifort*) # Intel Fortran compiler
10088 tmp_addflag=' -nofor_main' ;;
10089 lf95*) # Lahey Fortran 8.1
10090 whole_archive_flag_spec=
10091 tmp_sharedflag='--shared' ;;
10092 nagfor*) # NAGFOR 5.3
10093 tmp_sharedflag='-Wl,-shared' ;;
10094 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10095 tmp_sharedflag='-qmkshrobj'
10096 tmp_addflag= ;;
10097 nvcc*) # Cuda Compiler Driver 2.2
10098 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10099 compiler_needs_object=yes
10101 esac
10102 case `$CC -V 2>&1 | sed 5q` in
10103 *Sun\ C*) # Sun C 5.9
10104 whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10105 compiler_needs_object=yes
10106 tmp_sharedflag='-G' ;;
10107 *Sun\ F*) # Sun Fortran 8.3
10108 tmp_sharedflag='-G' ;;
10109 esac
10110 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10112 if test yes = "$supports_anon_versioning"; then
10113 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10114 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10115 echo "local: *; };" >> $output_objdir/$libname.ver~
10116 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10119 case $cc_basename in
10120 tcc*)
10121 export_dynamic_flag_spec='-rdynamic'
10123 xlf* | bgf* | bgxlf* | mpixlf*)
10124 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10125 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10126 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10127 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10128 if test yes = "$supports_anon_versioning"; then
10129 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10130 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10131 echo "local: *; };" >> $output_objdir/$libname.ver~
10132 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10135 esac
10136 else
10137 ld_shlibs=no
10141 netbsd*)
10142 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10143 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10144 wlarc=
10145 else
10146 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10147 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10151 solaris*)
10152 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10153 ld_shlibs=no
10154 cat <<_LT_EOF 1>&2
10156 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10157 *** create shared libraries on Solaris systems. Therefore, libtool
10158 *** is disabling shared libraries support. We urge you to upgrade GNU
10159 *** binutils to release 2.9.1 or newer. Another option is to modify
10160 *** your PATH or compiler configuration so that the native linker is
10161 *** used, and then restart.
10163 _LT_EOF
10164 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10165 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10166 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10167 else
10168 ld_shlibs=no
10172 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10173 case `$LD -v 2>&1` in
10174 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10175 ld_shlibs=no
10176 cat <<_LT_EOF 1>&2
10178 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10179 *** reliably create shared libraries on SCO systems. Therefore, libtool
10180 *** is disabling shared libraries support. We urge you to upgrade GNU
10181 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10182 *** your PATH or compiler configuration so that the native linker is
10183 *** used, and then restart.
10185 _LT_EOF
10188 # For security reasons, it is highly recommended that you always
10189 # use absolute paths for naming shared libraries, and exclude the
10190 # DT_RUNPATH tag from executables and libraries. But doing so
10191 # requires that you compile everything twice, which is a pain.
10192 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10193 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10194 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10195 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10196 else
10197 ld_shlibs=no
10200 esac
10203 sunos4*)
10204 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10205 wlarc=
10206 hardcode_direct=yes
10207 hardcode_shlibpath_var=no
10211 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10212 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10213 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10214 else
10215 ld_shlibs=no
10218 esac
10220 if test no = "$ld_shlibs"; then
10221 runpath_var=
10222 hardcode_libdir_flag_spec=
10223 export_dynamic_flag_spec=
10224 whole_archive_flag_spec=
10226 else
10227 # PORTME fill in a description of your system's linker (not GNU ld)
10228 case $host_os in
10229 aix3*)
10230 allow_undefined_flag=unsupported
10231 always_export_symbols=yes
10232 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
10233 # Note: this linker hardcodes the directories in LIBPATH if there
10234 # are no directories specified by -L.
10235 hardcode_minus_L=yes
10236 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10237 # Neither direct hardcoding nor static linking is supported with a
10238 # broken collect2.
10239 hardcode_direct=unsupported
10243 aix[4-9]*)
10244 if test ia64 = "$host_cpu"; then
10245 # On IA64, the linker does run time linking by default, so we don't
10246 # have to do anything special.
10247 aix_use_runtimelinking=no
10248 exp_sym_flag='-Bexport'
10249 no_entry_flag=
10250 else
10251 # If we're using GNU nm, then we don't want the "-C" option.
10252 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10253 # Without the "-l" option, or with the "-B" option, AIX nm treats
10254 # weak defined symbols like other global defined symbols, whereas
10255 # GNU nm marks them as "W".
10256 # While the 'weak' keyword is ignored in the Export File, we need
10257 # it in the Import File for the 'aix-soname' feature, so we have
10258 # to replace the "-B" option with "-P" for AIX nm.
10259 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10260 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
10261 else
10262 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10264 aix_use_runtimelinking=no
10266 # Test if we are trying to use run time linking or normal
10267 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10268 # have runtime linking enabled, and use it for executables.
10269 # For shared libraries, we enable/disable runtime linking
10270 # depending on the kind of the shared library created -
10271 # when "with_aix_soname,aix_use_runtimelinking" is:
10272 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10273 # "aix,yes" lib.so shared, rtl:yes, for executables
10274 # lib.a static archive
10275 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10276 # lib.a(lib.so.V) shared, rtl:no, for executables
10277 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10278 # lib.a(lib.so.V) shared, rtl:no
10279 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10280 # lib.a static archive
10281 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10282 for ld_flag in $LDFLAGS; do
10283 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10284 aix_use_runtimelinking=yes
10285 break
10287 done
10288 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10289 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10290 # so we don't have lib.a shared libs to link our executables.
10291 # We have to force runtime linking in this case.
10292 aix_use_runtimelinking=yes
10293 LDFLAGS="$LDFLAGS -Wl,-brtl"
10296 esac
10298 exp_sym_flag='-bexport'
10299 no_entry_flag='-bnoentry'
10302 # When large executables or shared objects are built, AIX ld can
10303 # have problems creating the table of contents. If linking a library
10304 # or program results in "error TOC overflow" add -mminimal-toc to
10305 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10306 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10308 archive_cmds=''
10309 hardcode_direct=yes
10310 hardcode_direct_absolute=yes
10311 hardcode_libdir_separator=':'
10312 link_all_deplibs=yes
10313 file_list_spec='$wl-f,'
10314 case $with_aix_soname,$aix_use_runtimelinking in
10315 aix,*) ;; # traditional, no import file
10316 svr4,* | *,yes) # use import file
10317 # The Import File defines what to hardcode.
10318 hardcode_direct=no
10319 hardcode_direct_absolute=no
10321 esac
10323 if test yes = "$GCC"; then
10324 case $host_os in aix4.[012]|aix4.[012].*)
10325 # We only want to do this on AIX 4.2 and lower, the check
10326 # below for broken collect2 doesn't work under 4.3+
10327 collect2name=`$CC -print-prog-name=collect2`
10328 if test -f "$collect2name" &&
10329 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10330 then
10331 # We have reworked collect2
10333 else
10334 # We have old collect2
10335 hardcode_direct=unsupported
10336 # It fails to find uninstalled libraries when the uninstalled
10337 # path is not listed in the libpath. Setting hardcode_minus_L
10338 # to unsupported forces relinking
10339 hardcode_minus_L=yes
10340 hardcode_libdir_flag_spec='-L$libdir'
10341 hardcode_libdir_separator=
10344 esac
10345 shared_flag='-shared'
10346 if test yes = "$aix_use_runtimelinking"; then
10347 shared_flag="$shared_flag "'$wl-G'
10349 # Need to ensure runtime linking is disabled for the traditional
10350 # shared library, or the linker may eventually find shared libraries
10351 # /with/ Import File - we do not want to mix them.
10352 shared_flag_aix='-shared'
10353 shared_flag_svr4='-shared $wl-G'
10354 else
10355 # not using gcc
10356 if test ia64 = "$host_cpu"; then
10357 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10358 # chokes on -Wl,-G. The following line is correct:
10359 shared_flag='-G'
10360 else
10361 if test yes = "$aix_use_runtimelinking"; then
10362 shared_flag='$wl-G'
10363 else
10364 shared_flag='$wl-bM:SRE'
10366 shared_flag_aix='$wl-bM:SRE'
10367 shared_flag_svr4='$wl-G'
10371 export_dynamic_flag_spec='$wl-bexpall'
10372 # It seems that -bexpall does not export symbols beginning with
10373 # underscore (_), so it is better to generate a list of symbols to export.
10374 always_export_symbols=yes
10375 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10376 # Warning - without using the other runtime loading flags (-brtl),
10377 # -berok will link without error, but may produce a broken library.
10378 allow_undefined_flag='-berok'
10379 # Determine the default libpath from the value encoded in an
10380 # empty executable.
10381 if test set = "${lt_cv_aix_libpath+set}"; then
10382 aix_libpath=$lt_cv_aix_libpath
10383 else
10384 if ${lt_cv_aix_libpath_+:} false; then :
10385 $as_echo_n "(cached) " >&6
10386 else
10387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10388 /* end confdefs.h. */
10391 main ()
10395 return 0;
10397 _ACEOF
10398 if ac_fn_c_try_link "$LINENO"; then :
10400 lt_aix_libpath_sed='
10401 /Import File Strings/,/^$/ {
10402 /^0/ {
10403 s/^0 *\([^ ]*\) *$/\1/
10407 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10408 # Check for a 64-bit object if we didn't find anything.
10409 if test -z "$lt_cv_aix_libpath_"; then
10410 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10413 rm -f core conftest.err conftest.$ac_objext \
10414 conftest$ac_exeext conftest.$ac_ext
10415 if test -z "$lt_cv_aix_libpath_"; then
10416 lt_cv_aix_libpath_=/usr/lib:/lib
10421 aix_libpath=$lt_cv_aix_libpath_
10424 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10425 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
10426 else
10427 if test ia64 = "$host_cpu"; then
10428 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10429 allow_undefined_flag="-z nodefs"
10430 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
10431 else
10432 # Determine the default libpath from the value encoded in an
10433 # empty executable.
10434 if test set = "${lt_cv_aix_libpath+set}"; then
10435 aix_libpath=$lt_cv_aix_libpath
10436 else
10437 if ${lt_cv_aix_libpath_+:} false; then :
10438 $as_echo_n "(cached) " >&6
10439 else
10440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10441 /* end confdefs.h. */
10444 main ()
10448 return 0;
10450 _ACEOF
10451 if ac_fn_c_try_link "$LINENO"; then :
10453 lt_aix_libpath_sed='
10454 /Import File Strings/,/^$/ {
10455 /^0/ {
10456 s/^0 *\([^ ]*\) *$/\1/
10460 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10461 # Check for a 64-bit object if we didn't find anything.
10462 if test -z "$lt_cv_aix_libpath_"; then
10463 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10466 rm -f core conftest.err conftest.$ac_objext \
10467 conftest$ac_exeext conftest.$ac_ext
10468 if test -z "$lt_cv_aix_libpath_"; then
10469 lt_cv_aix_libpath_=/usr/lib:/lib
10474 aix_libpath=$lt_cv_aix_libpath_
10477 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10478 # Warning - without using the other run time loading flags,
10479 # -berok will link without error, but may produce a broken library.
10480 no_undefined_flag=' $wl-bernotok'
10481 allow_undefined_flag=' $wl-berok'
10482 if test yes = "$with_gnu_ld"; then
10483 # We only use this code for GNU lds that support --whole-archive.
10484 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10485 else
10486 # Exported symbols can be pulled into shared objects from archives
10487 whole_archive_flag_spec='$convenience'
10489 archive_cmds_need_lc=yes
10490 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10491 # -brtl affects multiple linker settings, -berok does not and is overridden later
10492 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10493 if test svr4 != "$with_aix_soname"; then
10494 # This is similar to how AIX traditionally builds its shared libraries.
10495 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10497 if test aix != "$with_aix_soname"; then
10498 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10499 else
10500 # used by -dlpreopen to get the symbols
10501 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10503 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10508 amigaos*)
10509 case $host_cpu in
10510 powerpc)
10511 # see comment about AmigaOS4 .so support
10512 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10513 archive_expsym_cmds=''
10515 m68k)
10516 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
10517 hardcode_libdir_flag_spec='-L$libdir'
10518 hardcode_minus_L=yes
10520 esac
10523 bsdi[45]*)
10524 export_dynamic_flag_spec=-rdynamic
10527 cygwin* | mingw* | pw32* | cegcc*)
10528 # When not using gcc, we currently assume that we are using
10529 # Microsoft Visual C++.
10530 # hardcode_libdir_flag_spec is actually meaningless, as there is
10531 # no search path for DLLs.
10532 case $cc_basename in
10533 cl*)
10534 # Native MSVC
10535 hardcode_libdir_flag_spec=' '
10536 allow_undefined_flag=unsupported
10537 always_export_symbols=yes
10538 file_list_spec='@'
10539 # Tell ltmain to make .lib files, not .a files.
10540 libext=lib
10541 # Tell ltmain to make .dll files, not .so files.
10542 shrext_cmds=.dll
10543 # FIXME: Setting linknames here is a bad hack.
10544 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10545 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10546 cp "$export_symbols" "$output_objdir/$soname.def";
10547 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10548 else
10549 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10551 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10552 linknames='
10553 # The linker will not automatically build a static lib if we build a DLL.
10554 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10555 enable_shared_with_static_runtimes=yes
10556 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10557 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10558 # Don't use ranlib
10559 old_postinstall_cmds='chmod 644 $oldlib'
10560 postlink_cmds='lt_outputfile="@OUTPUT@"~
10561 lt_tool_outputfile="@TOOL_OUTPUT@"~
10562 case $lt_outputfile in
10563 *.exe|*.EXE) ;;
10565 lt_outputfile=$lt_outputfile.exe
10566 lt_tool_outputfile=$lt_tool_outputfile.exe
10568 esac~
10569 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10570 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10571 $RM "$lt_outputfile.manifest";
10575 # Assume MSVC wrapper
10576 hardcode_libdir_flag_spec=' '
10577 allow_undefined_flag=unsupported
10578 # Tell ltmain to make .lib files, not .a files.
10579 libext=lib
10580 # Tell ltmain to make .dll files, not .so files.
10581 shrext_cmds=.dll
10582 # FIXME: Setting linknames here is a bad hack.
10583 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10584 # The linker will automatically build a .lib file if we build a DLL.
10585 old_archive_from_new_cmds='true'
10586 # FIXME: Should let the user specify the lib program.
10587 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10588 enable_shared_with_static_runtimes=yes
10590 esac
10593 darwin* | rhapsody*)
10596 archive_cmds_need_lc=no
10597 hardcode_direct=no
10598 hardcode_automatic=yes
10599 hardcode_shlibpath_var=unsupported
10600 if test yes = "$lt_cv_ld_force_load"; then
10601 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
10603 else
10604 whole_archive_flag_spec=''
10606 link_all_deplibs=yes
10607 allow_undefined_flag=$_lt_dar_allow_undefined
10608 case $cc_basename in
10609 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10610 *) _lt_dar_can_shared=$GCC ;;
10611 esac
10612 if test yes = "$_lt_dar_can_shared"; then
10613 output_verbose_link_cmd=func_echo_all
10614 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10615 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10616 archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
10617 module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
10619 else
10620 ld_shlibs=no
10625 dgux*)
10626 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10627 hardcode_libdir_flag_spec='-L$libdir'
10628 hardcode_shlibpath_var=no
10631 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10632 # support. Future versions do this automatically, but an explicit c++rt0.o
10633 # does not break anything, and helps significantly (at the cost of a little
10634 # extra space).
10635 freebsd2.2*)
10636 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10637 hardcode_libdir_flag_spec='-R$libdir'
10638 hardcode_direct=yes
10639 hardcode_shlibpath_var=no
10642 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10643 freebsd2.*)
10644 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10645 hardcode_direct=yes
10646 hardcode_minus_L=yes
10647 hardcode_shlibpath_var=no
10650 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10651 freebsd* | dragonfly*)
10652 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10653 hardcode_libdir_flag_spec='-R$libdir'
10654 hardcode_direct=yes
10655 hardcode_shlibpath_var=no
10658 hpux9*)
10659 if test yes = "$GCC"; then
10660 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10661 else
10662 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10664 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10665 hardcode_libdir_separator=:
10666 hardcode_direct=yes
10668 # hardcode_minus_L: Not really in the search PATH,
10669 # but as the default location of the library.
10670 hardcode_minus_L=yes
10671 export_dynamic_flag_spec='$wl-E'
10674 hpux10*)
10675 if test yes,no = "$GCC,$with_gnu_ld"; then
10676 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10677 else
10678 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10680 if test no = "$with_gnu_ld"; then
10681 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10682 hardcode_libdir_separator=:
10683 hardcode_direct=yes
10684 hardcode_direct_absolute=yes
10685 export_dynamic_flag_spec='$wl-E'
10686 # hardcode_minus_L: Not really in the search PATH,
10687 # but as the default location of the library.
10688 hardcode_minus_L=yes
10692 hpux11*)
10693 if test yes,no = "$GCC,$with_gnu_ld"; then
10694 case $host_cpu in
10695 hppa*64*)
10696 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10698 ia64*)
10699 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10702 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10704 esac
10705 else
10706 case $host_cpu in
10707 hppa*64*)
10708 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10710 ia64*)
10711 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10715 # Older versions of the 11.00 compiler do not understand -b yet
10716 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10718 $as_echo_n "checking if $CC understands -b... " >&6; }
10719 if ${lt_cv_prog_compiler__b+:} false; then :
10720 $as_echo_n "(cached) " >&6
10721 else
10722 lt_cv_prog_compiler__b=no
10723 save_LDFLAGS=$LDFLAGS
10724 LDFLAGS="$LDFLAGS -b"
10725 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10726 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10727 # The linker can only warn and ignore the option if not recognized
10728 # So say no if there are warnings
10729 if test -s conftest.err; then
10730 # Append any errors to the config.log.
10731 cat conftest.err 1>&5
10732 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10733 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10734 if diff conftest.exp conftest.er2 >/dev/null; then
10735 lt_cv_prog_compiler__b=yes
10737 else
10738 lt_cv_prog_compiler__b=yes
10741 $RM -r conftest*
10742 LDFLAGS=$save_LDFLAGS
10745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10746 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10748 if test yes = "$lt_cv_prog_compiler__b"; then
10749 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10750 else
10751 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10755 esac
10757 if test no = "$with_gnu_ld"; then
10758 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10759 hardcode_libdir_separator=:
10761 case $host_cpu in
10762 hppa*64*|ia64*)
10763 hardcode_direct=no
10764 hardcode_shlibpath_var=no
10767 hardcode_direct=yes
10768 hardcode_direct_absolute=yes
10769 export_dynamic_flag_spec='$wl-E'
10771 # hardcode_minus_L: Not really in the search PATH,
10772 # but as the default location of the library.
10773 hardcode_minus_L=yes
10775 esac
10779 irix5* | irix6* | nonstopux*)
10780 if test yes = "$GCC"; then
10781 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10782 # Try to use the -exported_symbol ld option, if it does not
10783 # work, assume that -exports_file does not work either and
10784 # implicitly export all symbols.
10785 # This should be the same for all languages, so no per-tag cache variable.
10786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10787 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10788 if ${lt_cv_irix_exported_symbol+:} false; then :
10789 $as_echo_n "(cached) " >&6
10790 else
10791 save_LDFLAGS=$LDFLAGS
10792 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10794 /* end confdefs.h. */
10795 int foo (void) { return 0; }
10796 _ACEOF
10797 if ac_fn_c_try_link "$LINENO"; then :
10798 lt_cv_irix_exported_symbol=yes
10799 else
10800 lt_cv_irix_exported_symbol=no
10802 rm -f core conftest.err conftest.$ac_objext \
10803 conftest$ac_exeext conftest.$ac_ext
10804 LDFLAGS=$save_LDFLAGS
10806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10807 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10808 if test yes = "$lt_cv_irix_exported_symbol"; then
10809 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
10811 else
10812 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10813 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
10815 archive_cmds_need_lc='no'
10816 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10817 hardcode_libdir_separator=:
10818 inherit_rpath=yes
10819 link_all_deplibs=yes
10822 linux*)
10823 case $cc_basename in
10824 tcc*)
10825 # Fabrice Bellard et al's Tiny C Compiler
10826 ld_shlibs=yes
10827 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10829 esac
10832 netbsd*)
10833 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10834 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10835 else
10836 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10838 hardcode_libdir_flag_spec='-R$libdir'
10839 hardcode_direct=yes
10840 hardcode_shlibpath_var=no
10843 newsos6)
10844 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10845 hardcode_direct=yes
10846 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10847 hardcode_libdir_separator=:
10848 hardcode_shlibpath_var=no
10851 *nto* | *qnx*)
10854 openbsd* | bitrig*)
10855 if test -f /usr/libexec/ld.so; then
10856 hardcode_direct=yes
10857 hardcode_shlibpath_var=no
10858 hardcode_direct_absolute=yes
10859 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10860 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10861 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10862 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10863 export_dynamic_flag_spec='$wl-E'
10864 else
10865 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10866 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10868 else
10869 ld_shlibs=no
10873 os2*)
10874 hardcode_libdir_flag_spec='-L$libdir'
10875 hardcode_minus_L=yes
10876 allow_undefined_flag=unsupported
10877 shrext_cmds=.dll
10878 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10879 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10880 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10881 $ECHO EXPORTS >> $output_objdir/$libname.def~
10882 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10883 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10884 emximp -o $lib $output_objdir/$libname.def'
10885 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10886 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10887 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10888 $ECHO EXPORTS >> $output_objdir/$libname.def~
10889 prefix_cmds="$SED"~
10890 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10891 prefix_cmds="$prefix_cmds -e 1d";
10893 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10894 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10895 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10896 emximp -o $lib $output_objdir/$libname.def'
10897 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10898 enable_shared_with_static_runtimes=yes
10901 osf3*)
10902 if test yes = "$GCC"; then
10903 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10904 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10905 else
10906 allow_undefined_flag=' -expect_unresolved \*'
10907 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10909 archive_cmds_need_lc='no'
10910 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10911 hardcode_libdir_separator=:
10914 osf4* | osf5*) # as osf3* with the addition of -msym flag
10915 if test yes = "$GCC"; then
10916 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10917 archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10918 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10919 else
10920 allow_undefined_flag=' -expect_unresolved \*'
10921 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10922 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
10923 $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
10925 # Both c and cxx compiler support -rpath directly
10926 hardcode_libdir_flag_spec='-rpath $libdir'
10928 archive_cmds_need_lc='no'
10929 hardcode_libdir_separator=:
10932 solaris*)
10933 no_undefined_flag=' -z defs'
10934 if test yes = "$GCC"; then
10935 wlarc='$wl'
10936 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10937 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10938 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10939 else
10940 case `$CC -V 2>&1` in
10941 *"Compilers 5.0"*)
10942 wlarc=''
10943 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10944 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10945 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10948 wlarc='$wl'
10949 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10950 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10951 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10953 esac
10955 hardcode_libdir_flag_spec='-R$libdir'
10956 hardcode_shlibpath_var=no
10957 case $host_os in
10958 solaris2.[0-5] | solaris2.[0-5].*) ;;
10960 # The compiler driver will combine and reorder linker options,
10961 # but understands '-z linker_flag'. GCC discards it without '$wl',
10962 # but is careful enough not to reorder.
10963 # Supported since Solaris 2.6 (maybe 2.5.1?)
10964 if test yes = "$GCC"; then
10965 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10966 else
10967 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10970 esac
10971 link_all_deplibs=yes
10974 sunos4*)
10975 if test sequent = "$host_vendor"; then
10976 # Use $CC to link under sequent, because it throws in some extra .o
10977 # files that make .init and .fini sections work.
10978 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10979 else
10980 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10982 hardcode_libdir_flag_spec='-L$libdir'
10983 hardcode_direct=yes
10984 hardcode_minus_L=yes
10985 hardcode_shlibpath_var=no
10988 sysv4)
10989 case $host_vendor in
10990 sni)
10991 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10992 hardcode_direct=yes # is this really true???
10994 siemens)
10995 ## LD is ld it makes a PLAMLIB
10996 ## CC just makes a GrossModule.
10997 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10998 reload_cmds='$CC -r -o $output$reload_objs'
10999 hardcode_direct=no
11001 motorola)
11002 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11003 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11005 esac
11006 runpath_var='LD_RUN_PATH'
11007 hardcode_shlibpath_var=no
11010 sysv4.3*)
11011 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11012 hardcode_shlibpath_var=no
11013 export_dynamic_flag_spec='-Bexport'
11016 sysv4*MP*)
11017 if test -d /usr/nec; then
11018 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11019 hardcode_shlibpath_var=no
11020 runpath_var=LD_RUN_PATH
11021 hardcode_runpath_var=yes
11022 ld_shlibs=yes
11026 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11027 no_undefined_flag='$wl-z,text'
11028 archive_cmds_need_lc=no
11029 hardcode_shlibpath_var=no
11030 runpath_var='LD_RUN_PATH'
11032 if test yes = "$GCC"; then
11033 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11034 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11035 else
11036 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11037 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11041 sysv5* | sco3.2v5* | sco5v6*)
11042 # Note: We CANNOT use -z defs as we might desire, because we do not
11043 # link with -lc, and that would cause any symbols used from libc to
11044 # always be unresolved, which means just about no library would
11045 # ever link correctly. If we're not using GNU ld we use -z text
11046 # though, which does catch some bad symbols but isn't as heavy-handed
11047 # as -z defs.
11048 no_undefined_flag='$wl-z,text'
11049 allow_undefined_flag='$wl-z,nodefs'
11050 archive_cmds_need_lc=no
11051 hardcode_shlibpath_var=no
11052 hardcode_libdir_flag_spec='$wl-R,$libdir'
11053 hardcode_libdir_separator=':'
11054 link_all_deplibs=yes
11055 export_dynamic_flag_spec='$wl-Bexport'
11056 runpath_var='LD_RUN_PATH'
11058 if test yes = "$GCC"; then
11059 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11060 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11061 else
11062 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11063 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11067 uts4*)
11068 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11069 hardcode_libdir_flag_spec='-L$libdir'
11070 hardcode_shlibpath_var=no
11074 ld_shlibs=no
11076 esac
11078 if test sni = "$host_vendor"; then
11079 case $host in
11080 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11081 export_dynamic_flag_spec='$wl-Blargedynsym'
11083 esac
11087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11088 $as_echo "$ld_shlibs" >&6; }
11089 test no = "$ld_shlibs" && can_build_shared=no
11091 with_gnu_ld=$with_gnu_ld
11108 # Do we need to explicitly link libc?
11110 case "x$archive_cmds_need_lc" in
11111 x|xyes)
11112 # Assume -lc should be added
11113 archive_cmds_need_lc=yes
11115 if test yes,yes = "$GCC,$enable_shared"; then
11116 case $archive_cmds in
11117 *'~'*)
11118 # FIXME: we may have to deal with multi-command sequences.
11120 '$CC '*)
11121 # Test whether the compiler implicitly links with -lc since on some
11122 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11123 # to ld, don't add -lc before -lgcc.
11124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11125 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11126 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11127 $as_echo_n "(cached) " >&6
11128 else
11129 $RM conftest*
11130 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11132 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11133 (eval $ac_compile) 2>&5
11134 ac_status=$?
11135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11136 test $ac_status = 0; } 2>conftest.err; then
11137 soname=conftest
11138 lib=conftest
11139 libobjs=conftest.$ac_objext
11140 deplibs=
11141 wl=$lt_prog_compiler_wl
11142 pic_flag=$lt_prog_compiler_pic
11143 compiler_flags=-v
11144 linker_flags=-v
11145 verstring=
11146 output_objdir=.
11147 libname=conftest
11148 lt_save_allow_undefined_flag=$allow_undefined_flag
11149 allow_undefined_flag=
11150 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11151 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11152 ac_status=$?
11153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11154 test $ac_status = 0; }
11155 then
11156 lt_cv_archive_cmds_need_lc=no
11157 else
11158 lt_cv_archive_cmds_need_lc=yes
11160 allow_undefined_flag=$lt_save_allow_undefined_flag
11161 else
11162 cat conftest.err 1>&5
11164 $RM conftest*
11167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11168 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11169 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11171 esac
11174 esac
11327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11328 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11330 if test yes = "$GCC"; then
11331 case $host_os in
11332 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11333 *) lt_awk_arg='/^libraries:/' ;;
11334 esac
11335 case $host_os in
11336 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11337 *) lt_sed_strip_eq='s|=/|/|g' ;;
11338 esac
11339 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11340 case $lt_search_path_spec in
11341 *\;*)
11342 # if the path contains ";" then we assume it to be the separator
11343 # otherwise default to the standard path separator (i.e. ":") - it is
11344 # assumed that no part of a normal pathname contains ";" but that should
11345 # okay in the real world where ";" in dirpaths is itself problematic.
11346 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11349 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11351 esac
11352 # Ok, now we have the path, separated by spaces, we can step through it
11353 # and add multilib dir if necessary...
11354 lt_tmp_lt_search_path_spec=
11355 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11356 # ...but if some path component already ends with the multilib dir we assume
11357 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11358 case "$lt_multi_os_dir; $lt_search_path_spec " in
11359 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11360 lt_multi_os_dir=
11362 esac
11363 for lt_sys_path in $lt_search_path_spec; do
11364 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11365 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11366 elif test -n "$lt_multi_os_dir"; then
11367 test -d "$lt_sys_path" && \
11368 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11370 done
11371 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11372 BEGIN {RS = " "; FS = "/|\n";} {
11373 lt_foo = "";
11374 lt_count = 0;
11375 for (lt_i = NF; lt_i > 0; lt_i--) {
11376 if ($lt_i != "" && $lt_i != ".") {
11377 if ($lt_i == "..") {
11378 lt_count++;
11379 } else {
11380 if (lt_count == 0) {
11381 lt_foo = "/" $lt_i lt_foo;
11382 } else {
11383 lt_count--;
11388 if (lt_foo != "") { lt_freq[lt_foo]++; }
11389 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11391 # AWK program above erroneously prepends '/' to C:/dos/paths
11392 # for these hosts.
11393 case $host_os in
11394 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11395 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11396 esac
11397 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11398 else
11399 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11401 library_names_spec=
11402 libname_spec='lib$name'
11403 soname_spec=
11404 shrext_cmds=.so
11405 postinstall_cmds=
11406 postuninstall_cmds=
11407 finish_cmds=
11408 finish_eval=
11409 shlibpath_var=
11410 shlibpath_overrides_runpath=unknown
11411 version_type=none
11412 dynamic_linker="$host_os ld.so"
11413 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11414 need_lib_prefix=unknown
11415 hardcode_into_libs=no
11417 # when you set need_version to no, make sure it does not cause -set_version
11418 # flags to be left without arguments
11419 need_version=unknown
11423 case $host_os in
11424 aix3*)
11425 version_type=linux # correct to gnu/linux during the next big refactor
11426 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11427 shlibpath_var=LIBPATH
11429 # AIX 3 has no versioning support, so we append a major version to the name.
11430 soname_spec='$libname$release$shared_ext$major'
11433 aix[4-9]*)
11434 version_type=linux # correct to gnu/linux during the next big refactor
11435 need_lib_prefix=no
11436 need_version=no
11437 hardcode_into_libs=yes
11438 if test ia64 = "$host_cpu"; then
11439 # AIX 5 supports IA64
11440 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11441 shlibpath_var=LD_LIBRARY_PATH
11442 else
11443 # With GCC up to 2.95.x, collect2 would create an import file
11444 # for dependence libraries. The import file would start with
11445 # the line '#! .'. This would cause the generated library to
11446 # depend on '.', always an invalid library. This was fixed in
11447 # development snapshots of GCC prior to 3.0.
11448 case $host_os in
11449 aix4 | aix4.[01] | aix4.[01].*)
11450 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11451 echo ' yes '
11452 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11454 else
11455 can_build_shared=no
11458 esac
11459 # Using Import Files as archive members, it is possible to support
11460 # filename-based versioning of shared library archives on AIX. While
11461 # this would work for both with and without runtime linking, it will
11462 # prevent static linking of such archives. So we do filename-based
11463 # shared library versioning with .so extension only, which is used
11464 # when both runtime linking and shared linking is enabled.
11465 # Unfortunately, runtime linking may impact performance, so we do
11466 # not want this to be the default eventually. Also, we use the
11467 # versioned .so libs for executables only if there is the -brtl
11468 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11469 # To allow for filename-based versioning support, we need to create
11470 # libNAME.so.V as an archive file, containing:
11471 # *) an Import File, referring to the versioned filename of the
11472 # archive as well as the shared archive member, telling the
11473 # bitwidth (32 or 64) of that shared object, and providing the
11474 # list of exported symbols of that shared object, eventually
11475 # decorated with the 'weak' keyword
11476 # *) the shared object with the F_LOADONLY flag set, to really avoid
11477 # it being seen by the linker.
11478 # At run time we better use the real file rather than another symlink,
11479 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11481 case $with_aix_soname,$aix_use_runtimelinking in
11482 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11483 # soname into executable. Probably we can add versioning support to
11484 # collect2, so additional links can be useful in future.
11485 aix,yes) # traditional libtool
11486 dynamic_linker='AIX unversionable lib.so'
11487 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11488 # instead of lib<name>.a to let people know that these are not
11489 # typical AIX shared libraries.
11490 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11492 aix,no) # traditional AIX only
11493 dynamic_linker='AIX lib.a(lib.so.V)'
11494 # We preserve .a as extension for shared libraries through AIX4.2
11495 # and later when we are not doing run time linking.
11496 library_names_spec='$libname$release.a $libname.a'
11497 soname_spec='$libname$release$shared_ext$major'
11499 svr4,*) # full svr4 only
11500 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11501 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11502 # We do not specify a path in Import Files, so LIBPATH fires.
11503 shlibpath_overrides_runpath=yes
11505 *,yes) # both, prefer svr4
11506 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11507 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11508 # unpreferred sharedlib libNAME.a needs extra handling
11509 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11510 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11511 # We do not specify a path in Import Files, so LIBPATH fires.
11512 shlibpath_overrides_runpath=yes
11514 *,no) # both, prefer aix
11515 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11516 library_names_spec='$libname$release.a $libname.a'
11517 soname_spec='$libname$release$shared_ext$major'
11518 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11519 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11520 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11522 esac
11523 shlibpath_var=LIBPATH
11527 amigaos*)
11528 case $host_cpu in
11529 powerpc)
11530 # Since July 2007 AmigaOS4 officially supports .so libraries.
11531 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11532 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11534 m68k)
11535 library_names_spec='$libname.ixlibrary $libname.a'
11536 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11537 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11539 esac
11542 beos*)
11543 library_names_spec='$libname$shared_ext'
11544 dynamic_linker="$host_os ld.so"
11545 shlibpath_var=LIBRARY_PATH
11548 bsdi[45]*)
11549 version_type=linux # correct to gnu/linux during the next big refactor
11550 need_version=no
11551 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11552 soname_spec='$libname$release$shared_ext$major'
11553 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11554 shlibpath_var=LD_LIBRARY_PATH
11555 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11556 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11557 # the default ld.so.conf also contains /usr/contrib/lib and
11558 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11559 # libtool to hard-code these into programs
11562 cygwin* | mingw* | pw32* | cegcc*)
11563 version_type=windows
11564 shrext_cmds=.dll
11565 need_version=no
11566 need_lib_prefix=no
11568 case $GCC,$cc_basename in
11569 yes,*)
11570 # gcc
11571 library_names_spec='$libname.dll.a'
11572 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11573 postinstall_cmds='base_file=`basename \$file`~
11574 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11575 dldir=$destdir/`dirname \$dlpath`~
11576 test -d \$dldir || mkdir -p \$dldir~
11577 $install_prog $dir/$dlname \$dldir/$dlname~
11578 chmod a+x \$dldir/$dlname~
11579 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11580 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11582 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11583 dlpath=$dir/\$dldll~
11584 $RM \$dlpath'
11585 shlibpath_overrides_runpath=yes
11587 case $host_os in
11588 cygwin*)
11589 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11590 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11592 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11594 mingw* | cegcc*)
11595 # MinGW DLLs use traditional 'lib' prefix
11596 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11598 pw32*)
11599 # pw32 DLLs use 'pw' prefix rather than 'lib'
11600 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11602 esac
11603 dynamic_linker='Win32 ld.exe'
11606 *,cl*)
11607 # Native MSVC
11608 libname_spec='$name'
11609 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11610 library_names_spec='$libname.dll.lib'
11612 case $build_os in
11613 mingw*)
11614 sys_lib_search_path_spec=
11615 lt_save_ifs=$IFS
11616 IFS=';'
11617 for lt_path in $LIB
11619 IFS=$lt_save_ifs
11620 # Let DOS variable expansion print the short 8.3 style file name.
11621 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11622 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11623 done
11624 IFS=$lt_save_ifs
11625 # Convert to MSYS style.
11626 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11628 cygwin*)
11629 # Convert to unix form, then to dos form, then back to unix form
11630 # but this time dos style (no spaces!) so that the unix form looks
11631 # like /cygdrive/c/PROGRA~1:/cygdr...
11632 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11633 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11634 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11637 sys_lib_search_path_spec=$LIB
11638 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11639 # It is most probably a Windows format PATH.
11640 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11641 else
11642 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11644 # FIXME: find the short name or the path components, as spaces are
11645 # common. (e.g. "Program Files" -> "PROGRA~1")
11647 esac
11649 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11650 postinstall_cmds='base_file=`basename \$file`~
11651 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11652 dldir=$destdir/`dirname \$dlpath`~
11653 test -d \$dldir || mkdir -p \$dldir~
11654 $install_prog $dir/$dlname \$dldir/$dlname'
11655 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11656 dlpath=$dir/\$dldll~
11657 $RM \$dlpath'
11658 shlibpath_overrides_runpath=yes
11659 dynamic_linker='Win32 link.exe'
11663 # Assume MSVC wrapper
11664 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11665 dynamic_linker='Win32 ld.exe'
11667 esac
11668 # FIXME: first we should search . and the directory the executable is in
11669 shlibpath_var=PATH
11672 darwin* | rhapsody*)
11673 dynamic_linker="$host_os dyld"
11674 version_type=darwin
11675 need_lib_prefix=no
11676 need_version=no
11677 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11678 soname_spec='$libname$release$major$shared_ext'
11679 shlibpath_overrides_runpath=yes
11680 shlibpath_var=DYLD_LIBRARY_PATH
11681 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11683 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11684 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11687 dgux*)
11688 version_type=linux # correct to gnu/linux during the next big refactor
11689 need_lib_prefix=no
11690 need_version=no
11691 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11692 soname_spec='$libname$release$shared_ext$major'
11693 shlibpath_var=LD_LIBRARY_PATH
11696 freebsd* | dragonfly*)
11697 # DragonFly does not have aout. When/if they implement a new
11698 # versioning mechanism, adjust this.
11699 if test -x /usr/bin/objformat; then
11700 objformat=`/usr/bin/objformat`
11701 else
11702 case $host_os in
11703 freebsd[23].*) objformat=aout ;;
11704 *) objformat=elf ;;
11705 esac
11707 version_type=freebsd-$objformat
11708 case $version_type in
11709 freebsd-elf*)
11710 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11711 soname_spec='$libname$release$shared_ext$major'
11712 need_version=no
11713 need_lib_prefix=no
11715 freebsd-*)
11716 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11717 need_version=yes
11719 esac
11720 shlibpath_var=LD_LIBRARY_PATH
11721 case $host_os in
11722 freebsd2.*)
11723 shlibpath_overrides_runpath=yes
11725 freebsd3.[01]* | freebsdelf3.[01]*)
11726 shlibpath_overrides_runpath=yes
11727 hardcode_into_libs=yes
11729 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11730 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11731 shlibpath_overrides_runpath=no
11732 hardcode_into_libs=yes
11734 *) # from 4.6 on, and DragonFly
11735 shlibpath_overrides_runpath=yes
11736 hardcode_into_libs=yes
11738 esac
11741 haiku*)
11742 version_type=linux # correct to gnu/linux during the next big refactor
11743 need_lib_prefix=no
11744 need_version=no
11745 dynamic_linker="$host_os runtime_loader"
11746 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11747 soname_spec='$libname$release$shared_ext$major'
11748 shlibpath_var=LIBRARY_PATH
11749 shlibpath_overrides_runpath=no
11750 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11751 hardcode_into_libs=yes
11754 hpux9* | hpux10* | hpux11*)
11755 # Give a soname corresponding to the major version so that dld.sl refuses to
11756 # link against other versions.
11757 version_type=sunos
11758 need_lib_prefix=no
11759 need_version=no
11760 case $host_cpu in
11761 ia64*)
11762 shrext_cmds='.so'
11763 hardcode_into_libs=yes
11764 dynamic_linker="$host_os dld.so"
11765 shlibpath_var=LD_LIBRARY_PATH
11766 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11767 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11768 soname_spec='$libname$release$shared_ext$major'
11769 if test 32 = "$HPUX_IA64_MODE"; then
11770 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11771 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11772 else
11773 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11774 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11777 hppa*64*)
11778 shrext_cmds='.sl'
11779 hardcode_into_libs=yes
11780 dynamic_linker="$host_os dld.sl"
11781 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11782 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11783 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11784 soname_spec='$libname$release$shared_ext$major'
11785 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11786 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11789 shrext_cmds='.sl'
11790 dynamic_linker="$host_os dld.sl"
11791 shlibpath_var=SHLIB_PATH
11792 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11793 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11794 soname_spec='$libname$release$shared_ext$major'
11796 esac
11797 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11798 postinstall_cmds='chmod 555 $lib'
11799 # or fails outright, so override atomically:
11800 install_override_mode=555
11803 interix[3-9]*)
11804 version_type=linux # correct to gnu/linux during the next big refactor
11805 need_lib_prefix=no
11806 need_version=no
11807 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11808 soname_spec='$libname$release$shared_ext$major'
11809 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11810 shlibpath_var=LD_LIBRARY_PATH
11811 shlibpath_overrides_runpath=no
11812 hardcode_into_libs=yes
11815 irix5* | irix6* | nonstopux*)
11816 case $host_os in
11817 nonstopux*) version_type=nonstopux ;;
11819 if test yes = "$lt_cv_prog_gnu_ld"; then
11820 version_type=linux # correct to gnu/linux during the next big refactor
11821 else
11822 version_type=irix
11823 fi ;;
11824 esac
11825 need_lib_prefix=no
11826 need_version=no
11827 soname_spec='$libname$release$shared_ext$major'
11828 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11829 case $host_os in
11830 irix5* | nonstopux*)
11831 libsuff= shlibsuff=
11834 case $LD in # libtool.m4 will add one of these switches to LD
11835 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11836 libsuff= shlibsuff= libmagic=32-bit;;
11837 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11838 libsuff=32 shlibsuff=N32 libmagic=N32;;
11839 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11840 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11841 *) libsuff= shlibsuff= libmagic=never-match;;
11842 esac
11844 esac
11845 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11846 shlibpath_overrides_runpath=no
11847 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11848 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11849 hardcode_into_libs=yes
11852 # No shared lib support for Linux oldld, aout, or coff.
11853 linux*oldld* | linux*aout* | linux*coff*)
11854 dynamic_linker=no
11857 linux*android*)
11858 version_type=none # Android doesn't support versioned libraries.
11859 need_lib_prefix=no
11860 need_version=no
11861 library_names_spec='$libname$release$shared_ext'
11862 soname_spec='$libname$release$shared_ext'
11863 finish_cmds=
11864 shlibpath_var=LD_LIBRARY_PATH
11865 shlibpath_overrides_runpath=yes
11867 # This implies no fast_install, which is unacceptable.
11868 # Some rework will be needed to allow for fast_install
11869 # before this can be enabled.
11870 hardcode_into_libs=yes
11872 dynamic_linker='Android linker'
11873 # Don't embed -rpath directories since the linker doesn't support them.
11874 hardcode_libdir_flag_spec='-L$libdir'
11877 # This must be glibc/ELF.
11878 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11879 version_type=linux # correct to gnu/linux during the next big refactor
11880 need_lib_prefix=no
11881 need_version=no
11882 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11883 soname_spec='$libname$release$shared_ext$major'
11884 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11885 shlibpath_var=LD_LIBRARY_PATH
11886 shlibpath_overrides_runpath=no
11888 # Some binutils ld are patched to set DT_RUNPATH
11889 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11890 $as_echo_n "(cached) " >&6
11891 else
11892 lt_cv_shlibpath_overrides_runpath=no
11893 save_LDFLAGS=$LDFLAGS
11894 save_libdir=$libdir
11895 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11896 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11898 /* end confdefs.h. */
11901 main ()
11905 return 0;
11907 _ACEOF
11908 if ac_fn_c_try_link "$LINENO"; then :
11909 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11910 lt_cv_shlibpath_overrides_runpath=yes
11913 rm -f core conftest.err conftest.$ac_objext \
11914 conftest$ac_exeext conftest.$ac_ext
11915 LDFLAGS=$save_LDFLAGS
11916 libdir=$save_libdir
11920 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11922 # This implies no fast_install, which is unacceptable.
11923 # Some rework will be needed to allow for fast_install
11924 # before this can be enabled.
11925 hardcode_into_libs=yes
11927 # Ideally, we could use ldconfig to report *all* directores which are
11928 # searched for libraries, however this is still not possible. Aside from not
11929 # being certain /sbin/ldconfig is available, command
11930 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11931 # even though it is searched at run-time. Try to do the best guess by
11932 # appending ld.so.conf contents (and includes) to the search path.
11933 if test -f /etc/ld.so.conf; then
11934 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
11935 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11938 # We used to test for /lib/ld.so.1 and disable shared libraries on
11939 # powerpc, because MkLinux only supported shared libraries with the
11940 # GNU dynamic linker. Since this was broken with cross compilers,
11941 # most powerpc-linux boxes support dynamic linking these days and
11942 # people can always --disable-shared, the test was removed, and we
11943 # assume the GNU/Linux dynamic linker is in use.
11944 dynamic_linker='GNU/Linux ld.so'
11947 netbsd*)
11948 version_type=sunos
11949 need_lib_prefix=no
11950 need_version=no
11951 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11952 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11953 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11954 dynamic_linker='NetBSD (a.out) ld.so'
11955 else
11956 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11957 soname_spec='$libname$release$shared_ext$major'
11958 dynamic_linker='NetBSD ld.elf_so'
11960 shlibpath_var=LD_LIBRARY_PATH
11961 shlibpath_overrides_runpath=yes
11962 hardcode_into_libs=yes
11965 newsos6)
11966 version_type=linux # correct to gnu/linux during the next big refactor
11967 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11968 shlibpath_var=LD_LIBRARY_PATH
11969 shlibpath_overrides_runpath=yes
11972 *nto* | *qnx*)
11973 version_type=qnx
11974 need_lib_prefix=no
11975 need_version=no
11976 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11977 soname_spec='$libname$release$shared_ext$major'
11978 shlibpath_var=LD_LIBRARY_PATH
11979 shlibpath_overrides_runpath=no
11980 hardcode_into_libs=yes
11981 dynamic_linker='ldqnx.so'
11984 openbsd* | bitrig*)
11985 version_type=sunos
11986 sys_lib_dlsearch_path_spec=/usr/lib
11987 need_lib_prefix=no
11988 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11989 need_version=no
11990 else
11991 need_version=yes
11993 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11994 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11995 shlibpath_var=LD_LIBRARY_PATH
11996 shlibpath_overrides_runpath=yes
11999 os2*)
12000 libname_spec='$name'
12001 version_type=windows
12002 shrext_cmds=.dll
12003 need_version=no
12004 need_lib_prefix=no
12005 # OS/2 can only load a DLL with a base name of 8 characters or less.
12006 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12007 v=$($ECHO $release$versuffix | tr -d .-);
12008 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12009 $ECHO $n$v`$shared_ext'
12010 library_names_spec='${libname}_dll.$libext'
12011 dynamic_linker='OS/2 ld.exe'
12012 shlibpath_var=BEGINLIBPATH
12013 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12014 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12015 postinstall_cmds='base_file=`basename \$file`~
12016 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12017 dldir=$destdir/`dirname \$dlpath`~
12018 test -d \$dldir || mkdir -p \$dldir~
12019 $install_prog $dir/$dlname \$dldir/$dlname~
12020 chmod a+x \$dldir/$dlname~
12021 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12022 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12024 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12025 dlpath=$dir/\$dldll~
12026 $RM \$dlpath'
12029 osf3* | osf4* | osf5*)
12030 version_type=osf
12031 need_lib_prefix=no
12032 need_version=no
12033 soname_spec='$libname$release$shared_ext$major'
12034 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12035 shlibpath_var=LD_LIBRARY_PATH
12036 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12037 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12040 rdos*)
12041 dynamic_linker=no
12044 solaris*)
12045 version_type=linux # correct to gnu/linux during the next big refactor
12046 need_lib_prefix=no
12047 need_version=no
12048 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12049 soname_spec='$libname$release$shared_ext$major'
12050 shlibpath_var=LD_LIBRARY_PATH
12051 shlibpath_overrides_runpath=yes
12052 hardcode_into_libs=yes
12053 # ldd complains unless libraries are executable
12054 postinstall_cmds='chmod +x $lib'
12057 sunos4*)
12058 version_type=sunos
12059 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12060 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12061 shlibpath_var=LD_LIBRARY_PATH
12062 shlibpath_overrides_runpath=yes
12063 if test yes = "$with_gnu_ld"; then
12064 need_lib_prefix=no
12066 need_version=yes
12069 sysv4 | sysv4.3*)
12070 version_type=linux # correct to gnu/linux during the next big refactor
12071 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12072 soname_spec='$libname$release$shared_ext$major'
12073 shlibpath_var=LD_LIBRARY_PATH
12074 case $host_vendor in
12075 sni)
12076 shlibpath_overrides_runpath=no
12077 need_lib_prefix=no
12078 runpath_var=LD_RUN_PATH
12080 siemens)
12081 need_lib_prefix=no
12083 motorola)
12084 need_lib_prefix=no
12085 need_version=no
12086 shlibpath_overrides_runpath=no
12087 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12089 esac
12092 sysv4*MP*)
12093 if test -d /usr/nec; then
12094 version_type=linux # correct to gnu/linux during the next big refactor
12095 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12096 soname_spec='$libname$shared_ext.$major'
12097 shlibpath_var=LD_LIBRARY_PATH
12101 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12102 version_type=sco
12103 need_lib_prefix=no
12104 need_version=no
12105 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12106 soname_spec='$libname$release$shared_ext$major'
12107 shlibpath_var=LD_LIBRARY_PATH
12108 shlibpath_overrides_runpath=yes
12109 hardcode_into_libs=yes
12110 if test yes = "$with_gnu_ld"; then
12111 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12112 else
12113 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12114 case $host_os in
12115 sco3.2v5*)
12116 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12118 esac
12120 sys_lib_dlsearch_path_spec='/usr/lib'
12123 tpf*)
12124 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12125 version_type=linux # correct to gnu/linux during the next big refactor
12126 need_lib_prefix=no
12127 need_version=no
12128 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12129 shlibpath_var=LD_LIBRARY_PATH
12130 shlibpath_overrides_runpath=no
12131 hardcode_into_libs=yes
12134 uts4*)
12135 version_type=linux # correct to gnu/linux during the next big refactor
12136 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12137 soname_spec='$libname$release$shared_ext$major'
12138 shlibpath_var=LD_LIBRARY_PATH
12142 dynamic_linker=no
12144 esac
12145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12146 $as_echo "$dynamic_linker" >&6; }
12147 test no = "$dynamic_linker" && can_build_shared=no
12149 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12150 if test yes = "$GCC"; then
12151 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12154 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12155 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12158 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12159 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12162 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12163 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12165 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12166 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12168 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12169 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12268 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12269 hardcode_action=
12270 if test -n "$hardcode_libdir_flag_spec" ||
12271 test -n "$runpath_var" ||
12272 test yes = "$hardcode_automatic"; then
12274 # We can hardcode non-existent directories.
12275 if test no != "$hardcode_direct" &&
12276 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12277 # have to relink, otherwise we might link with an installed library
12278 # when we should be linking with a yet-to-be-installed one
12279 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12280 test no != "$hardcode_minus_L"; then
12281 # Linking always hardcodes the temporary library directory.
12282 hardcode_action=relink
12283 else
12284 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12285 hardcode_action=immediate
12287 else
12288 # We cannot hardcode anything, or else we can only hardcode existing
12289 # directories.
12290 hardcode_action=unsupported
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12293 $as_echo "$hardcode_action" >&6; }
12295 if test relink = "$hardcode_action" ||
12296 test yes = "$inherit_rpath"; then
12297 # Fast installation is not supported
12298 enable_fast_install=no
12299 elif test yes = "$shlibpath_overrides_runpath" ||
12300 test no = "$enable_shared"; then
12301 # Fast installation is not necessary
12302 enable_fast_install=needless
12310 if test yes != "$enable_dlopen"; then
12311 enable_dlopen=unknown
12312 enable_dlopen_self=unknown
12313 enable_dlopen_self_static=unknown
12314 else
12315 lt_cv_dlopen=no
12316 lt_cv_dlopen_libs=
12318 case $host_os in
12319 beos*)
12320 lt_cv_dlopen=load_add_on
12321 lt_cv_dlopen_libs=
12322 lt_cv_dlopen_self=yes
12325 mingw* | pw32* | cegcc*)
12326 lt_cv_dlopen=LoadLibrary
12327 lt_cv_dlopen_libs=
12330 cygwin*)
12331 lt_cv_dlopen=dlopen
12332 lt_cv_dlopen_libs=
12335 darwin*)
12336 # if libdl is installed we need to link against it
12337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12338 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12339 if ${ac_cv_lib_dl_dlopen+:} false; then :
12340 $as_echo_n "(cached) " >&6
12341 else
12342 ac_check_lib_save_LIBS=$LIBS
12343 LIBS="-ldl $LIBS"
12344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12345 /* end confdefs.h. */
12347 /* Override any GCC internal prototype to avoid an error.
12348 Use char because int might match the return type of a GCC
12349 builtin and then its argument prototype would still apply. */
12350 #ifdef __cplusplus
12351 extern "C"
12352 #endif
12353 char dlopen ();
12355 main ()
12357 return dlopen ();
12359 return 0;
12361 _ACEOF
12362 if ac_fn_c_try_link "$LINENO"; then :
12363 ac_cv_lib_dl_dlopen=yes
12364 else
12365 ac_cv_lib_dl_dlopen=no
12367 rm -f core conftest.err conftest.$ac_objext \
12368 conftest$ac_exeext conftest.$ac_ext
12369 LIBS=$ac_check_lib_save_LIBS
12371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12372 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12373 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12374 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12375 else
12377 lt_cv_dlopen=dyld
12378 lt_cv_dlopen_libs=
12379 lt_cv_dlopen_self=yes
12385 tpf*)
12386 # Don't try to run any link tests for TPF. We know it's impossible
12387 # because TPF is a cross-compiler, and we know how we open DSOs.
12388 lt_cv_dlopen=dlopen
12389 lt_cv_dlopen_libs=
12390 lt_cv_dlopen_self=no
12394 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12395 if test "x$ac_cv_func_shl_load" = xyes; then :
12396 lt_cv_dlopen=shl_load
12397 else
12398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12399 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12400 if ${ac_cv_lib_dld_shl_load+:} false; then :
12401 $as_echo_n "(cached) " >&6
12402 else
12403 ac_check_lib_save_LIBS=$LIBS
12404 LIBS="-ldld $LIBS"
12405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12406 /* end confdefs.h. */
12408 /* Override any GCC internal prototype to avoid an error.
12409 Use char because int might match the return type of a GCC
12410 builtin and then its argument prototype would still apply. */
12411 #ifdef __cplusplus
12412 extern "C"
12413 #endif
12414 char shl_load ();
12416 main ()
12418 return shl_load ();
12420 return 0;
12422 _ACEOF
12423 if ac_fn_c_try_link "$LINENO"; then :
12424 ac_cv_lib_dld_shl_load=yes
12425 else
12426 ac_cv_lib_dld_shl_load=no
12428 rm -f core conftest.err conftest.$ac_objext \
12429 conftest$ac_exeext conftest.$ac_ext
12430 LIBS=$ac_check_lib_save_LIBS
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12433 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12434 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12435 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12436 else
12437 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12438 if test "x$ac_cv_func_dlopen" = xyes; then :
12439 lt_cv_dlopen=dlopen
12440 else
12441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12442 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12443 if ${ac_cv_lib_dl_dlopen+:} false; then :
12444 $as_echo_n "(cached) " >&6
12445 else
12446 ac_check_lib_save_LIBS=$LIBS
12447 LIBS="-ldl $LIBS"
12448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12449 /* end confdefs.h. */
12451 /* Override any GCC internal prototype to avoid an error.
12452 Use char because int might match the return type of a GCC
12453 builtin and then its argument prototype would still apply. */
12454 #ifdef __cplusplus
12455 extern "C"
12456 #endif
12457 char dlopen ();
12459 main ()
12461 return dlopen ();
12463 return 0;
12465 _ACEOF
12466 if ac_fn_c_try_link "$LINENO"; then :
12467 ac_cv_lib_dl_dlopen=yes
12468 else
12469 ac_cv_lib_dl_dlopen=no
12471 rm -f core conftest.err conftest.$ac_objext \
12472 conftest$ac_exeext conftest.$ac_ext
12473 LIBS=$ac_check_lib_save_LIBS
12475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12476 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12477 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12478 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12479 else
12480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12481 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12482 if ${ac_cv_lib_svld_dlopen+:} false; then :
12483 $as_echo_n "(cached) " >&6
12484 else
12485 ac_check_lib_save_LIBS=$LIBS
12486 LIBS="-lsvld $LIBS"
12487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12488 /* end confdefs.h. */
12490 /* Override any GCC internal prototype to avoid an error.
12491 Use char because int might match the return type of a GCC
12492 builtin and then its argument prototype would still apply. */
12493 #ifdef __cplusplus
12494 extern "C"
12495 #endif
12496 char dlopen ();
12498 main ()
12500 return dlopen ();
12502 return 0;
12504 _ACEOF
12505 if ac_fn_c_try_link "$LINENO"; then :
12506 ac_cv_lib_svld_dlopen=yes
12507 else
12508 ac_cv_lib_svld_dlopen=no
12510 rm -f core conftest.err conftest.$ac_objext \
12511 conftest$ac_exeext conftest.$ac_ext
12512 LIBS=$ac_check_lib_save_LIBS
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12515 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12516 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12517 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12518 else
12519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12520 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12521 if ${ac_cv_lib_dld_dld_link+:} false; then :
12522 $as_echo_n "(cached) " >&6
12523 else
12524 ac_check_lib_save_LIBS=$LIBS
12525 LIBS="-ldld $LIBS"
12526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12527 /* end confdefs.h. */
12529 /* Override any GCC internal prototype to avoid an error.
12530 Use char because int might match the return type of a GCC
12531 builtin and then its argument prototype would still apply. */
12532 #ifdef __cplusplus
12533 extern "C"
12534 #endif
12535 char dld_link ();
12537 main ()
12539 return dld_link ();
12541 return 0;
12543 _ACEOF
12544 if ac_fn_c_try_link "$LINENO"; then :
12545 ac_cv_lib_dld_dld_link=yes
12546 else
12547 ac_cv_lib_dld_dld_link=no
12549 rm -f core conftest.err conftest.$ac_objext \
12550 conftest$ac_exeext conftest.$ac_ext
12551 LIBS=$ac_check_lib_save_LIBS
12553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12554 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12555 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12556 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12575 esac
12577 if test no = "$lt_cv_dlopen"; then
12578 enable_dlopen=no
12579 else
12580 enable_dlopen=yes
12583 case $lt_cv_dlopen in
12584 dlopen)
12585 save_CPPFLAGS=$CPPFLAGS
12586 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12588 save_LDFLAGS=$LDFLAGS
12589 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12591 save_LIBS=$LIBS
12592 LIBS="$lt_cv_dlopen_libs $LIBS"
12594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12595 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12596 if ${lt_cv_dlopen_self+:} false; then :
12597 $as_echo_n "(cached) " >&6
12598 else
12599 if test yes = "$cross_compiling"; then :
12600 lt_cv_dlopen_self=cross
12601 else
12602 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12603 lt_status=$lt_dlunknown
12604 cat > conftest.$ac_ext <<_LT_EOF
12605 #line $LINENO "configure"
12606 #include "confdefs.h"
12608 #if HAVE_DLFCN_H
12609 #include <dlfcn.h>
12610 #endif
12612 #include <stdio.h>
12614 #ifdef RTLD_GLOBAL
12615 # define LT_DLGLOBAL RTLD_GLOBAL
12616 #else
12617 # ifdef DL_GLOBAL
12618 # define LT_DLGLOBAL DL_GLOBAL
12619 # else
12620 # define LT_DLGLOBAL 0
12621 # endif
12622 #endif
12624 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12625 find out it does not work in some platform. */
12626 #ifndef LT_DLLAZY_OR_NOW
12627 # ifdef RTLD_LAZY
12628 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12629 # else
12630 # ifdef DL_LAZY
12631 # define LT_DLLAZY_OR_NOW DL_LAZY
12632 # else
12633 # ifdef RTLD_NOW
12634 # define LT_DLLAZY_OR_NOW RTLD_NOW
12635 # else
12636 # ifdef DL_NOW
12637 # define LT_DLLAZY_OR_NOW DL_NOW
12638 # else
12639 # define LT_DLLAZY_OR_NOW 0
12640 # endif
12641 # endif
12642 # endif
12643 # endif
12644 #endif
12646 /* When -fvisibility=hidden is used, assume the code has been annotated
12647 correspondingly for the symbols needed. */
12648 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12649 int fnord () __attribute__((visibility("default")));
12650 #endif
12652 int fnord () { return 42; }
12653 int main ()
12655 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12656 int status = $lt_dlunknown;
12658 if (self)
12660 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12661 else
12663 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12664 else puts (dlerror ());
12666 /* dlclose (self); */
12668 else
12669 puts (dlerror ());
12671 return status;
12673 _LT_EOF
12674 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12675 (eval $ac_link) 2>&5
12676 ac_status=$?
12677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12678 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12679 (./conftest; exit; ) >&5 2>/dev/null
12680 lt_status=$?
12681 case x$lt_status in
12682 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12683 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12684 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12685 esac
12686 else :
12687 # compilation failed
12688 lt_cv_dlopen_self=no
12691 rm -fr conftest*
12695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12696 $as_echo "$lt_cv_dlopen_self" >&6; }
12698 if test yes = "$lt_cv_dlopen_self"; then
12699 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12701 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12702 if ${lt_cv_dlopen_self_static+:} false; then :
12703 $as_echo_n "(cached) " >&6
12704 else
12705 if test yes = "$cross_compiling"; then :
12706 lt_cv_dlopen_self_static=cross
12707 else
12708 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12709 lt_status=$lt_dlunknown
12710 cat > conftest.$ac_ext <<_LT_EOF
12711 #line $LINENO "configure"
12712 #include "confdefs.h"
12714 #if HAVE_DLFCN_H
12715 #include <dlfcn.h>
12716 #endif
12718 #include <stdio.h>
12720 #ifdef RTLD_GLOBAL
12721 # define LT_DLGLOBAL RTLD_GLOBAL
12722 #else
12723 # ifdef DL_GLOBAL
12724 # define LT_DLGLOBAL DL_GLOBAL
12725 # else
12726 # define LT_DLGLOBAL 0
12727 # endif
12728 #endif
12730 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12731 find out it does not work in some platform. */
12732 #ifndef LT_DLLAZY_OR_NOW
12733 # ifdef RTLD_LAZY
12734 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12735 # else
12736 # ifdef DL_LAZY
12737 # define LT_DLLAZY_OR_NOW DL_LAZY
12738 # else
12739 # ifdef RTLD_NOW
12740 # define LT_DLLAZY_OR_NOW RTLD_NOW
12741 # else
12742 # ifdef DL_NOW
12743 # define LT_DLLAZY_OR_NOW DL_NOW
12744 # else
12745 # define LT_DLLAZY_OR_NOW 0
12746 # endif
12747 # endif
12748 # endif
12749 # endif
12750 #endif
12752 /* When -fvisibility=hidden is used, assume the code has been annotated
12753 correspondingly for the symbols needed. */
12754 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12755 int fnord () __attribute__((visibility("default")));
12756 #endif
12758 int fnord () { return 42; }
12759 int main ()
12761 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12762 int status = $lt_dlunknown;
12764 if (self)
12766 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12767 else
12769 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12770 else puts (dlerror ());
12772 /* dlclose (self); */
12774 else
12775 puts (dlerror ());
12777 return status;
12779 _LT_EOF
12780 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12781 (eval $ac_link) 2>&5
12782 ac_status=$?
12783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12784 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12785 (./conftest; exit; ) >&5 2>/dev/null
12786 lt_status=$?
12787 case x$lt_status in
12788 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12789 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12790 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12791 esac
12792 else :
12793 # compilation failed
12794 lt_cv_dlopen_self_static=no
12797 rm -fr conftest*
12801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12802 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12805 CPPFLAGS=$save_CPPFLAGS
12806 LDFLAGS=$save_LDFLAGS
12807 LIBS=$save_LIBS
12809 esac
12811 case $lt_cv_dlopen_self in
12812 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12813 *) enable_dlopen_self=unknown ;;
12814 esac
12816 case $lt_cv_dlopen_self_static in
12817 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12818 *) enable_dlopen_self_static=unknown ;;
12819 esac
12838 striplib=
12839 old_striplib=
12840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12841 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12842 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12843 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12844 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12846 $as_echo "yes" >&6; }
12847 else
12848 # FIXME - insert some real tests, host_os isn't really good enough
12849 case $host_os in
12850 darwin*)
12851 if test -n "$STRIP"; then
12852 striplib="$STRIP -x"
12853 old_striplib="$STRIP -S"
12854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12855 $as_echo "yes" >&6; }
12856 else
12857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12858 $as_echo "no" >&6; }
12862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12863 $as_echo "no" >&6; }
12865 esac
12879 # Report what library types will actually be built
12880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12881 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12883 $as_echo "$can_build_shared" >&6; }
12885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12886 $as_echo_n "checking whether to build shared libraries... " >&6; }
12887 test no = "$can_build_shared" && enable_shared=no
12889 # On AIX, shared libraries and static libraries use the same namespace, and
12890 # are all built from PIC.
12891 case $host_os in
12892 aix3*)
12893 test yes = "$enable_shared" && enable_static=no
12894 if test -n "$RANLIB"; then
12895 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12896 postinstall_cmds='$RANLIB $lib'
12900 aix[4-9]*)
12901 if test ia64 != "$host_cpu"; then
12902 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12903 yes,aix,yes) ;; # shared object as lib.so file only
12904 yes,svr4,*) ;; # shared object as lib.so archive member only
12905 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12906 esac
12909 esac
12910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12911 $as_echo "$enable_shared" >&6; }
12913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12914 $as_echo_n "checking whether to build static libraries... " >&6; }
12915 # Make sure either enable_shared or enable_static is yes.
12916 test yes = "$enable_shared" || enable_static=yes
12917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12918 $as_echo "$enable_static" >&6; }
12924 ac_ext=c
12925 ac_cpp='$CPP $CPPFLAGS'
12926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12930 CC=$lt_save_CC
12946 ac_config_commands="$ac_config_commands libtool"
12951 # Only expand once:
12956 # Extract the first word of "ar", so it can be a program name with args.
12957 set dummy ar; ac_word=$2
12958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12959 $as_echo_n "checking for $ac_word... " >&6; }
12960 if ${ac_cv_path_AR+:} false; then :
12961 $as_echo_n "(cached) " >&6
12962 else
12963 case $AR in
12964 [\\/]* | ?:[\\/]*)
12965 ac_cv_path_AR="$AR" # Let the user override the test with a path.
12968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12969 for as_dir in $PATH
12971 IFS=$as_save_IFS
12972 test -z "$as_dir" && as_dir=.
12973 for ac_exec_ext in '' $ac_executable_extensions; do
12974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12975 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
12976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12977 break 2
12979 done
12980 done
12981 IFS=$as_save_IFS
12983 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
12985 esac
12987 AR=$ac_cv_path_AR
12988 if test -n "$AR"; then
12989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12990 $as_echo "$AR" >&6; }
12991 else
12992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12993 $as_echo "no" >&6; }
12997 # Extract the first word of "rm", so it can be a program name with args.
12998 set dummy rm; ac_word=$2
12999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13000 $as_echo_n "checking for $ac_word... " >&6; }
13001 if ${ac_cv_path_RM+:} false; then :
13002 $as_echo_n "(cached) " >&6
13003 else
13004 case $RM in
13005 [\\/]* | ?:[\\/]*)
13006 ac_cv_path_RM="$RM" # Let the user override the test with a path.
13009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13010 for as_dir in $PATH
13012 IFS=$as_save_IFS
13013 test -z "$as_dir" && as_dir=.
13014 for ac_exec_ext in '' $ac_executable_extensions; do
13015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13016 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
13017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13018 break 2
13020 done
13021 done
13022 IFS=$as_save_IFS
13024 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
13026 esac
13028 RM=$ac_cv_path_RM
13029 if test -n "$RM"; then
13030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
13031 $as_echo "$RM" >&6; }
13032 else
13033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13034 $as_echo "no" >&6; }
13038 # Extract the first word of "cp", so it can be a program name with args.
13039 set dummy cp; ac_word=$2
13040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13041 $as_echo_n "checking for $ac_word... " >&6; }
13042 if ${ac_cv_path_CP+:} false; then :
13043 $as_echo_n "(cached) " >&6
13044 else
13045 case $CP in
13046 [\\/]* | ?:[\\/]*)
13047 ac_cv_path_CP="$CP" # Let the user override the test with a path.
13050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13051 for as_dir in $PATH
13053 IFS=$as_save_IFS
13054 test -z "$as_dir" && as_dir=.
13055 for ac_exec_ext in '' $ac_executable_extensions; do
13056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13057 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
13058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13059 break 2
13061 done
13062 done
13063 IFS=$as_save_IFS
13065 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
13067 esac
13069 CP=$ac_cv_path_CP
13070 if test -n "$CP"; then
13071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
13072 $as_echo "$CP" >&6; }
13073 else
13074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13075 $as_echo "no" >&6; }
13079 # Extract the first word of "ln", so it can be a program name with args.
13080 set dummy ln; ac_word=$2
13081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13082 $as_echo_n "checking for $ac_word... " >&6; }
13083 if ${ac_cv_path_LN+:} false; then :
13084 $as_echo_n "(cached) " >&6
13085 else
13086 case $LN in
13087 [\\/]* | ?:[\\/]*)
13088 ac_cv_path_LN="$LN" # Let the user override the test with a path.
13091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13092 for as_dir in $PATH
13094 IFS=$as_save_IFS
13095 test -z "$as_dir" && as_dir=.
13096 for ac_exec_ext in '' $ac_executable_extensions; do
13097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13098 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
13099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13100 break 2
13102 done
13103 done
13104 IFS=$as_save_IFS
13106 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
13108 esac
13110 LN=$ac_cv_path_LN
13111 if test -n "$LN"; then
13112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
13113 $as_echo "$LN" >&6; }
13114 else
13115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13116 $as_echo "no" >&6; }
13120 # Extract the first word of "ls", so it can be a program name with args.
13121 set dummy ls; ac_word=$2
13122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13123 $as_echo_n "checking for $ac_word... " >&6; }
13124 if ${ac_cv_path_LS+:} false; then :
13125 $as_echo_n "(cached) " >&6
13126 else
13127 case $LS in
13128 [\\/]* | ?:[\\/]*)
13129 ac_cv_path_LS="$LS" # Let the user override the test with a path.
13132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13133 for as_dir in $PATH
13135 IFS=$as_save_IFS
13136 test -z "$as_dir" && as_dir=.
13137 for ac_exec_ext in '' $ac_executable_extensions; do
13138 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13139 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
13140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13141 break 2
13143 done
13144 done
13145 IFS=$as_save_IFS
13147 test -z "$ac_cv_path_LS" && ac_cv_path_LS="ls"
13149 esac
13151 LS=$ac_cv_path_LS
13152 if test -n "$LS"; then
13153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
13154 $as_echo "$LS" >&6; }
13155 else
13156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13157 $as_echo "no" >&6; }
13161 # Extract the first word of "sed", so it can be a program name with args.
13162 set dummy sed; ac_word=$2
13163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13164 $as_echo_n "checking for $ac_word... " >&6; }
13165 if ${ac_cv_path_SED+:} false; then :
13166 $as_echo_n "(cached) " >&6
13167 else
13168 case $SED in
13169 [\\/]* | ?:[\\/]*)
13170 ac_cv_path_SED="$SED" # Let the user override the test with a path.
13173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13174 for as_dir in $PATH
13176 IFS=$as_save_IFS
13177 test -z "$as_dir" && as_dir=.
13178 for ac_exec_ext in '' $ac_executable_extensions; do
13179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13180 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
13181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13182 break 2
13184 done
13185 done
13186 IFS=$as_save_IFS
13188 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
13190 esac
13192 SED=$ac_cv_path_SED
13193 if test -n "$SED"; then
13194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
13195 $as_echo "$SED" >&6; }
13196 else
13197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13198 $as_echo "no" >&6; }
13202 # Extract the first word of "make", so it can be a program name with args.
13203 set dummy make; ac_word=$2
13204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13205 $as_echo_n "checking for $ac_word... " >&6; }
13206 if ${ac_cv_path_MAKE+:} false; then :
13207 $as_echo_n "(cached) " >&6
13208 else
13209 case $MAKE in
13210 [\\/]* | ?:[\\/]*)
13211 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
13214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13215 for as_dir in $PATH
13217 IFS=$as_save_IFS
13218 test -z "$as_dir" && as_dir=.
13219 for ac_exec_ext in '' $ac_executable_extensions; do
13220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13221 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
13222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13223 break 2
13225 done
13226 done
13227 IFS=$as_save_IFS
13230 esac
13232 MAKE=$ac_cv_path_MAKE
13233 if test -n "$MAKE"; then
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
13235 $as_echo "$MAKE" >&6; }
13236 else
13237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13238 $as_echo "no" >&6; }
13246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13247 $as_echo_n "checking whether NLS is requested... " >&6; }
13248 # Check whether --enable-nls was given.
13249 if test "${enable_nls+set}" = set; then :
13250 enableval=$enable_nls; USE_NLS=$enableval
13251 else
13252 USE_NLS=yes
13255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
13256 $as_echo "$USE_NLS" >&6; }
13263 # Prepare PATH_SEPARATOR.
13264 # The user is always right.
13265 if test "${PATH_SEPARATOR+set}" != set; then
13266 echo "#! /bin/sh" >conf$$.sh
13267 echo "exit 0" >>conf$$.sh
13268 chmod +x conf$$.sh
13269 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13270 PATH_SEPARATOR=';'
13271 else
13272 PATH_SEPARATOR=:
13274 rm -f conf$$.sh
13277 # Find out how to test for executable files. Don't use a zero-byte file,
13278 # as systems may use methods other than mode bits to determine executability.
13279 cat >conf$$.file <<_ASEOF
13280 #! /bin/sh
13281 exit 0
13282 _ASEOF
13283 chmod +x conf$$.file
13284 if test -x conf$$.file >/dev/null 2>&1; then
13285 ac_executable_p="test -x"
13286 else
13287 ac_executable_p="test -f"
13289 rm -f conf$$.file
13291 # Extract the first word of "msgfmt", so it can be a program name with args.
13292 set dummy msgfmt; ac_word=$2
13293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13294 $as_echo_n "checking for $ac_word... " >&6; }
13295 if ${ac_cv_path_MSGFMT+:} false; then :
13296 $as_echo_n "(cached) " >&6
13297 else
13298 case "$MSGFMT" in
13299 [\\/]* | ?:[\\/]*)
13300 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13303 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13304 for ac_dir in $PATH; do
13305 IFS="$ac_save_IFS"
13306 test -z "$ac_dir" && ac_dir=.
13307 for ac_exec_ext in '' $ac_executable_extensions; do
13308 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13309 echo "$as_me: trying $ac_dir/$ac_word..." >&5
13310 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
13311 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13312 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
13313 break 2
13316 done
13317 done
13318 IFS="$ac_save_IFS"
13319 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
13321 esac
13323 MSGFMT="$ac_cv_path_MSGFMT"
13324 if test "$MSGFMT" != ":"; then
13325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
13326 $as_echo "$MSGFMT" >&6; }
13327 else
13328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13329 $as_echo "no" >&6; }
13332 # Extract the first word of "gmsgfmt", so it can be a program name with args.
13333 set dummy gmsgfmt; ac_word=$2
13334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13335 $as_echo_n "checking for $ac_word... " >&6; }
13336 if ${ac_cv_path_GMSGFMT+:} false; then :
13337 $as_echo_n "(cached) " >&6
13338 else
13339 case $GMSGFMT in
13340 [\\/]* | ?:[\\/]*)
13341 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
13344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13345 for as_dir in $PATH
13347 IFS=$as_save_IFS
13348 test -z "$as_dir" && as_dir=.
13349 for ac_exec_ext in '' $ac_executable_extensions; do
13350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13351 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
13352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13353 break 2
13355 done
13356 done
13357 IFS=$as_save_IFS
13359 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
13361 esac
13363 GMSGFMT=$ac_cv_path_GMSGFMT
13364 if test -n "$GMSGFMT"; then
13365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
13366 $as_echo "$GMSGFMT" >&6; }
13367 else
13368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13369 $as_echo "no" >&6; }
13374 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
13375 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
13376 *) MSGFMT_015=$MSGFMT ;;
13377 esac
13379 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
13380 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
13381 *) GMSGFMT_015=$GMSGFMT ;;
13382 esac
13386 # Prepare PATH_SEPARATOR.
13387 # The user is always right.
13388 if test "${PATH_SEPARATOR+set}" != set; then
13389 echo "#! /bin/sh" >conf$$.sh
13390 echo "exit 0" >>conf$$.sh
13391 chmod +x conf$$.sh
13392 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13393 PATH_SEPARATOR=';'
13394 else
13395 PATH_SEPARATOR=:
13397 rm -f conf$$.sh
13400 # Find out how to test for executable files. Don't use a zero-byte file,
13401 # as systems may use methods other than mode bits to determine executability.
13402 cat >conf$$.file <<_ASEOF
13403 #! /bin/sh
13404 exit 0
13405 _ASEOF
13406 chmod +x conf$$.file
13407 if test -x conf$$.file >/dev/null 2>&1; then
13408 ac_executable_p="test -x"
13409 else
13410 ac_executable_p="test -f"
13412 rm -f conf$$.file
13414 # Extract the first word of "xgettext", so it can be a program name with args.
13415 set dummy xgettext; ac_word=$2
13416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13417 $as_echo_n "checking for $ac_word... " >&6; }
13418 if ${ac_cv_path_XGETTEXT+:} false; then :
13419 $as_echo_n "(cached) " >&6
13420 else
13421 case "$XGETTEXT" in
13422 [\\/]* | ?:[\\/]*)
13423 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
13426 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13427 for ac_dir in $PATH; do
13428 IFS="$ac_save_IFS"
13429 test -z "$ac_dir" && ac_dir=.
13430 for ac_exec_ext in '' $ac_executable_extensions; do
13431 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13432 echo "$as_me: trying $ac_dir/$ac_word..." >&5
13433 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
13434 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13435 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
13436 break 2
13439 done
13440 done
13441 IFS="$ac_save_IFS"
13442 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
13444 esac
13446 XGETTEXT="$ac_cv_path_XGETTEXT"
13447 if test "$XGETTEXT" != ":"; then
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
13449 $as_echo "$XGETTEXT" >&6; }
13450 else
13451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13452 $as_echo "no" >&6; }
13455 rm -f messages.po
13457 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
13458 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
13459 *) XGETTEXT_015=$XGETTEXT ;;
13460 esac
13464 # Prepare PATH_SEPARATOR.
13465 # The user is always right.
13466 if test "${PATH_SEPARATOR+set}" != set; then
13467 echo "#! /bin/sh" >conf$$.sh
13468 echo "exit 0" >>conf$$.sh
13469 chmod +x conf$$.sh
13470 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13471 PATH_SEPARATOR=';'
13472 else
13473 PATH_SEPARATOR=:
13475 rm -f conf$$.sh
13478 # Find out how to test for executable files. Don't use a zero-byte file,
13479 # as systems may use methods other than mode bits to determine executability.
13480 cat >conf$$.file <<_ASEOF
13481 #! /bin/sh
13482 exit 0
13483 _ASEOF
13484 chmod +x conf$$.file
13485 if test -x conf$$.file >/dev/null 2>&1; then
13486 ac_executable_p="test -x"
13487 else
13488 ac_executable_p="test -f"
13490 rm -f conf$$.file
13492 # Extract the first word of "msgmerge", so it can be a program name with args.
13493 set dummy msgmerge; ac_word=$2
13494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13495 $as_echo_n "checking for $ac_word... " >&6; }
13496 if ${ac_cv_path_MSGMERGE+:} false; then :
13497 $as_echo_n "(cached) " >&6
13498 else
13499 case "$MSGMERGE" in
13500 [\\/]* | ?:[\\/]*)
13501 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
13504 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13505 for ac_dir in $PATH; do
13506 IFS="$ac_save_IFS"
13507 test -z "$ac_dir" && ac_dir=.
13508 for ac_exec_ext in '' $ac_executable_extensions; do
13509 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13510 echo "$as_me: trying $ac_dir/$ac_word..." >&5
13511 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
13512 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
13513 break 2
13516 done
13517 done
13518 IFS="$ac_save_IFS"
13519 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
13521 esac
13523 MSGMERGE="$ac_cv_path_MSGMERGE"
13524 if test "$MSGMERGE" != ":"; then
13525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
13526 $as_echo "$MSGMERGE" >&6; }
13527 else
13528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13529 $as_echo "no" >&6; }
13533 test -n "$localedir" || localedir='${datadir}/locale'
13536 ac_config_commands="$ac_config_commands po-directories"
13540 if test "X$prefix" = "XNONE"; then
13541 acl_final_prefix="$ac_default_prefix"
13542 else
13543 acl_final_prefix="$prefix"
13545 if test "X$exec_prefix" = "XNONE"; then
13546 acl_final_exec_prefix='${prefix}'
13547 else
13548 acl_final_exec_prefix="$exec_prefix"
13550 acl_save_prefix="$prefix"
13551 prefix="$acl_final_prefix"
13552 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
13553 prefix="$acl_save_prefix"
13556 # Check whether --with-gnu-ld was given.
13557 if test "${with_gnu_ld+set}" = set; then :
13558 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13559 else
13560 with_gnu_ld=no
13563 # Prepare PATH_SEPARATOR.
13564 # The user is always right.
13565 if test "${PATH_SEPARATOR+set}" != set; then
13566 echo "#! /bin/sh" >conf$$.sh
13567 echo "exit 0" >>conf$$.sh
13568 chmod +x conf$$.sh
13569 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13570 PATH_SEPARATOR=';'
13571 else
13572 PATH_SEPARATOR=:
13574 rm -f conf$$.sh
13576 ac_prog=ld
13577 if test "$GCC" = yes; then
13578 # Check if gcc -print-prog-name=ld gives a path.
13579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
13580 $as_echo_n "checking for ld used by GCC... " >&6; }
13581 case $host in
13582 *-*-mingw*)
13583 # gcc leaves a trailing carriage return which upsets mingw
13584 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13586 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13587 esac
13588 case $ac_prog in
13589 # Accept absolute paths.
13590 [\\/]* | [A-Za-z]:[\\/]*)
13591 re_direlt='/[^/][^/]*/\.\./'
13592 # Canonicalize the path of ld
13593 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
13594 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
13595 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
13596 done
13597 test -z "$LD" && LD="$ac_prog"
13600 # If it fails, then pretend we aren't using GCC.
13601 ac_prog=ld
13604 # If it is relative, then search for the first ld in PATH.
13605 with_gnu_ld=unknown
13607 esac
13608 elif test "$with_gnu_ld" = yes; then
13609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13610 $as_echo_n "checking for GNU ld... " >&6; }
13611 else
13612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13613 $as_echo_n "checking for non-GNU ld... " >&6; }
13615 if ${acl_cv_path_LD+:} false; then :
13616 $as_echo_n "(cached) " >&6
13617 else
13618 if test -z "$LD"; then
13619 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
13620 for ac_dir in $PATH; do
13621 test -z "$ac_dir" && ac_dir=.
13622 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13623 acl_cv_path_LD="$ac_dir/$ac_prog"
13624 # Check to see if the program is GNU ld. I'd rather use --version,
13625 # but apparently some GNU ld's only accept -v.
13626 # Break only if it was the GNU/non-GNU ld that we prefer.
13627 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
13628 *GNU* | *'with BFD'*)
13629 test "$with_gnu_ld" != no && break ;;
13631 test "$with_gnu_ld" != yes && break ;;
13632 esac
13634 done
13635 IFS="$ac_save_ifs"
13636 else
13637 acl_cv_path_LD="$LD" # Let the user override the test with a path.
13641 LD="$acl_cv_path_LD"
13642 if test -n "$LD"; then
13643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13644 $as_echo "$LD" >&6; }
13645 else
13646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13647 $as_echo "no" >&6; }
13649 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13651 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13652 if ${acl_cv_prog_gnu_ld+:} false; then :
13653 $as_echo_n "(cached) " >&6
13654 else
13655 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
13656 case `$LD -v 2>&1 </dev/null` in
13657 *GNU* | *'with BFD'*)
13658 acl_cv_prog_gnu_ld=yes ;;
13660 acl_cv_prog_gnu_ld=no ;;
13661 esac
13663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
13664 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
13665 with_gnu_ld=$acl_cv_prog_gnu_ld
13670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
13671 $as_echo_n "checking for shared library run path origin... " >&6; }
13672 if ${acl_cv_rpath+:} false; then :
13673 $as_echo_n "(cached) " >&6
13674 else
13676 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
13677 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
13678 . ./conftest.sh
13679 rm -f ./conftest.sh
13680 acl_cv_rpath=done
13683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
13684 $as_echo "$acl_cv_rpath" >&6; }
13685 wl="$acl_cv_wl"
13686 libext="$acl_cv_libext"
13687 shlibext="$acl_cv_shlibext"
13688 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
13689 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
13690 hardcode_direct="$acl_cv_hardcode_direct"
13691 hardcode_minus_L="$acl_cv_hardcode_minus_L"
13692 # Check whether --enable-rpath was given.
13693 if test "${enable_rpath+set}" = set; then :
13694 enableval=$enable_rpath; :
13695 else
13696 enable_rpath=yes
13701 acl_libdirstem=lib
13702 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
13703 if test -n "$searchpath"; then
13704 acl_save_IFS="${IFS= }"; IFS=":"
13705 for searchdir in $searchpath; do
13706 if test -d "$searchdir"; then
13707 case "$searchdir" in
13708 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
13709 *) searchdir=`cd "$searchdir" && pwd`
13710 case "$searchdir" in
13711 */lib64 ) acl_libdirstem=lib64 ;;
13712 esac ;;
13713 esac
13715 done
13716 IFS="$acl_save_IFS"
13726 use_additional=yes
13728 acl_save_prefix="$prefix"
13729 prefix="$acl_final_prefix"
13730 acl_save_exec_prefix="$exec_prefix"
13731 exec_prefix="$acl_final_exec_prefix"
13733 eval additional_includedir=\"$includedir\"
13734 eval additional_libdir=\"$libdir\"
13736 exec_prefix="$acl_save_exec_prefix"
13737 prefix="$acl_save_prefix"
13740 # Check whether --with-libiconv-prefix was given.
13741 if test "${with_libiconv_prefix+set}" = set; then :
13742 withval=$with_libiconv_prefix;
13743 if test "X$withval" = "Xno"; then
13744 use_additional=no
13745 else
13746 if test "X$withval" = "X"; then
13748 acl_save_prefix="$prefix"
13749 prefix="$acl_final_prefix"
13750 acl_save_exec_prefix="$exec_prefix"
13751 exec_prefix="$acl_final_exec_prefix"
13753 eval additional_includedir=\"$includedir\"
13754 eval additional_libdir=\"$libdir\"
13756 exec_prefix="$acl_save_exec_prefix"
13757 prefix="$acl_save_prefix"
13759 else
13760 additional_includedir="$withval/include"
13761 additional_libdir="$withval/$acl_libdirstem"
13767 LIBICONV=
13768 LTLIBICONV=
13769 INCICONV=
13770 rpathdirs=
13771 ltrpathdirs=
13772 names_already_handled=
13773 names_next_round='iconv '
13774 while test -n "$names_next_round"; do
13775 names_this_round="$names_next_round"
13776 names_next_round=
13777 for name in $names_this_round; do
13778 already_handled=
13779 for n in $names_already_handled; do
13780 if test "$n" = "$name"; then
13781 already_handled=yes
13782 break
13784 done
13785 if test -z "$already_handled"; then
13786 names_already_handled="$names_already_handled $name"
13787 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13788 eval value=\"\$HAVE_LIB$uppername\"
13789 if test -n "$value"; then
13790 if test "$value" = yes; then
13791 eval value=\"\$LIB$uppername\"
13792 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
13793 eval value=\"\$LTLIB$uppername\"
13794 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
13795 else
13798 else
13799 found_dir=
13800 found_la=
13801 found_so=
13802 found_a=
13803 if test $use_additional = yes; then
13804 if test -n "$shlibext" \
13805 && { test -f "$additional_libdir/lib$name.$shlibext" \
13806 || { test "$shlibext" = dll \
13807 && test -f "$additional_libdir/lib$name.dll.a"; }; }; then
13808 found_dir="$additional_libdir"
13809 if test -f "$additional_libdir/lib$name.$shlibext"; then
13810 found_so="$additional_libdir/lib$name.$shlibext"
13811 else
13812 found_so="$additional_libdir/lib$name.dll.a"
13814 if test -f "$additional_libdir/lib$name.la"; then
13815 found_la="$additional_libdir/lib$name.la"
13817 else
13818 if test -f "$additional_libdir/lib$name.$libext"; then
13819 found_dir="$additional_libdir"
13820 found_a="$additional_libdir/lib$name.$libext"
13821 if test -f "$additional_libdir/lib$name.la"; then
13822 found_la="$additional_libdir/lib$name.la"
13827 if test "X$found_dir" = "X"; then
13828 for x in $LDFLAGS $LTLIBICONV; do
13830 acl_save_prefix="$prefix"
13831 prefix="$acl_final_prefix"
13832 acl_save_exec_prefix="$exec_prefix"
13833 exec_prefix="$acl_final_exec_prefix"
13834 eval x=\"$x\"
13835 exec_prefix="$acl_save_exec_prefix"
13836 prefix="$acl_save_prefix"
13838 case "$x" in
13839 -L*)
13840 dir=`echo "X$x" | sed -e 's/^X-L//'`
13841 if test -n "$shlibext" \
13842 && { test -f "$dir/lib$name.$shlibext" \
13843 || { test "$shlibext" = dll \
13844 && test -f "$dir/lib$name.dll.a"; }; }; then
13845 found_dir="$dir"
13846 if test -f "$dir/lib$name.$shlibext"; then
13847 found_so="$dir/lib$name.$shlibext"
13848 else
13849 found_so="$dir/lib$name.dll.a"
13851 if test -f "$dir/lib$name.la"; then
13852 found_la="$dir/lib$name.la"
13854 else
13855 if test -f "$dir/lib$name.$libext"; then
13856 found_dir="$dir"
13857 found_a="$dir/lib$name.$libext"
13858 if test -f "$dir/lib$name.la"; then
13859 found_la="$dir/lib$name.la"
13864 esac
13865 if test "X$found_dir" != "X"; then
13866 break
13868 done
13870 if test "X$found_dir" != "X"; then
13871 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
13872 if test "X$found_so" != "X"; then
13873 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
13874 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13875 else
13876 haveit=
13877 for x in $ltrpathdirs; do
13878 if test "X$x" = "X$found_dir"; then
13879 haveit=yes
13880 break
13882 done
13883 if test -z "$haveit"; then
13884 ltrpathdirs="$ltrpathdirs $found_dir"
13886 if test "$hardcode_direct" = yes; then
13887 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13888 else
13889 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
13890 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13891 haveit=
13892 for x in $rpathdirs; do
13893 if test "X$x" = "X$found_dir"; then
13894 haveit=yes
13895 break
13897 done
13898 if test -z "$haveit"; then
13899 rpathdirs="$rpathdirs $found_dir"
13901 else
13902 haveit=
13903 for x in $LDFLAGS $LIBICONV; do
13905 acl_save_prefix="$prefix"
13906 prefix="$acl_final_prefix"
13907 acl_save_exec_prefix="$exec_prefix"
13908 exec_prefix="$acl_final_exec_prefix"
13909 eval x=\"$x\"
13910 exec_prefix="$acl_save_exec_prefix"
13911 prefix="$acl_save_prefix"
13913 if test "X$x" = "X-L$found_dir"; then
13914 haveit=yes
13915 break
13917 done
13918 if test -z "$haveit"; then
13919 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
13921 if test "$hardcode_minus_L" != no; then
13922 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13923 else
13924 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13929 else
13930 if test "X$found_a" != "X"; then
13931 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
13932 else
13933 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
13936 additional_includedir=
13937 case "$found_dir" in
13938 */$acl_libdirstem | */$acl_libdirstem/)
13939 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
13940 additional_includedir="$basedir/include"
13942 esac
13943 if test "X$additional_includedir" != "X"; then
13944 if test "X$additional_includedir" != "X/usr/include"; then
13945 haveit=
13946 if test "X$additional_includedir" = "X/usr/local/include"; then
13947 if test -n "$GCC"; then
13948 case $host_os in
13949 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13950 esac
13953 if test -z "$haveit"; then
13954 for x in $CPPFLAGS $INCICONV; do
13956 acl_save_prefix="$prefix"
13957 prefix="$acl_final_prefix"
13958 acl_save_exec_prefix="$exec_prefix"
13959 exec_prefix="$acl_final_exec_prefix"
13960 eval x=\"$x\"
13961 exec_prefix="$acl_save_exec_prefix"
13962 prefix="$acl_save_prefix"
13964 if test "X$x" = "X-I$additional_includedir"; then
13965 haveit=yes
13966 break
13968 done
13969 if test -z "$haveit"; then
13970 if test -d "$additional_includedir"; then
13971 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
13977 if test -n "$found_la"; then
13978 save_libdir="$libdir"
13979 case "$found_la" in
13980 */* | *\\*) . "$found_la" ;;
13981 *) . "./$found_la" ;;
13982 esac
13983 libdir="$save_libdir"
13984 for dep in $dependency_libs; do
13985 case "$dep" in
13986 -L*)
13987 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13988 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
13989 haveit=
13990 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
13991 if test -n "$GCC"; then
13992 case $host_os in
13993 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13994 esac
13997 if test -z "$haveit"; then
13998 haveit=
13999 for x in $LDFLAGS $LIBICONV; do
14001 acl_save_prefix="$prefix"
14002 prefix="$acl_final_prefix"
14003 acl_save_exec_prefix="$exec_prefix"
14004 exec_prefix="$acl_final_exec_prefix"
14005 eval x=\"$x\"
14006 exec_prefix="$acl_save_exec_prefix"
14007 prefix="$acl_save_prefix"
14009 if test "X$x" = "X-L$additional_libdir"; then
14010 haveit=yes
14011 break
14013 done
14014 if test -z "$haveit"; then
14015 if test -d "$additional_libdir"; then
14016 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
14019 haveit=
14020 for x in $LDFLAGS $LTLIBICONV; do
14022 acl_save_prefix="$prefix"
14023 prefix="$acl_final_prefix"
14024 acl_save_exec_prefix="$exec_prefix"
14025 exec_prefix="$acl_final_exec_prefix"
14026 eval x=\"$x\"
14027 exec_prefix="$acl_save_exec_prefix"
14028 prefix="$acl_save_prefix"
14030 if test "X$x" = "X-L$additional_libdir"; then
14031 haveit=yes
14032 break
14034 done
14035 if test -z "$haveit"; then
14036 if test -d "$additional_libdir"; then
14037 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
14043 -R*)
14044 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14045 if test "$enable_rpath" != no; then
14046 haveit=
14047 for x in $rpathdirs; do
14048 if test "X$x" = "X$dir"; then
14049 haveit=yes
14050 break
14052 done
14053 if test -z "$haveit"; then
14054 rpathdirs="$rpathdirs $dir"
14056 haveit=
14057 for x in $ltrpathdirs; do
14058 if test "X$x" = "X$dir"; then
14059 haveit=yes
14060 break
14062 done
14063 if test -z "$haveit"; then
14064 ltrpathdirs="$ltrpathdirs $dir"
14068 -l*)
14069 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14071 *.la)
14072 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14075 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
14076 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
14078 esac
14079 done
14081 else
14082 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14083 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
14087 done
14088 done
14089 if test "X$rpathdirs" != "X"; then
14090 if test -n "$hardcode_libdir_separator"; then
14091 alldirs=
14092 for found_dir in $rpathdirs; do
14093 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14094 done
14095 acl_save_libdir="$libdir"
14096 libdir="$alldirs"
14097 eval flag=\"$hardcode_libdir_flag_spec\"
14098 libdir="$acl_save_libdir"
14099 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14100 else
14101 for found_dir in $rpathdirs; do
14102 acl_save_libdir="$libdir"
14103 libdir="$found_dir"
14104 eval flag=\"$hardcode_libdir_flag_spec\"
14105 libdir="$acl_save_libdir"
14106 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14107 done
14110 if test "X$ltrpathdirs" != "X"; then
14111 for found_dir in $ltrpathdirs; do
14112 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
14113 done
14140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
14141 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
14142 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
14143 $as_echo_n "(cached) " >&6
14144 else
14145 gt_save_LIBS="$LIBS"
14146 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
14147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14148 /* end confdefs.h. */
14149 #include <CoreFoundation/CFPreferences.h>
14151 main ()
14153 CFPreferencesCopyAppValue(NULL, NULL)
14155 return 0;
14157 _ACEOF
14158 if ac_fn_c_try_link "$LINENO"; then :
14159 gt_cv_func_CFPreferencesCopyAppValue=yes
14160 else
14161 gt_cv_func_CFPreferencesCopyAppValue=no
14163 rm -f core conftest.err conftest.$ac_objext \
14164 conftest$ac_exeext conftest.$ac_ext
14165 LIBS="$gt_save_LIBS"
14167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
14168 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
14169 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
14171 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
14174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
14175 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
14176 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
14177 $as_echo_n "(cached) " >&6
14178 else
14179 gt_save_LIBS="$LIBS"
14180 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
14181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14182 /* end confdefs.h. */
14183 #include <CoreFoundation/CFLocale.h>
14185 main ()
14187 CFLocaleCopyCurrent();
14189 return 0;
14191 _ACEOF
14192 if ac_fn_c_try_link "$LINENO"; then :
14193 gt_cv_func_CFLocaleCopyCurrent=yes
14194 else
14195 gt_cv_func_CFLocaleCopyCurrent=no
14197 rm -f core conftest.err conftest.$ac_objext \
14198 conftest$ac_exeext conftest.$ac_ext
14199 LIBS="$gt_save_LIBS"
14201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
14202 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
14203 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
14205 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
14208 INTL_MACOSX_LIBS=
14209 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
14210 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
14218 LIBINTL=
14219 LTLIBINTL=
14220 POSUB=
14222 case " $gt_needs " in
14223 *" need-formatstring-macros "*) gt_api_version=3 ;;
14224 *" need-ngettext "*) gt_api_version=2 ;;
14225 *) gt_api_version=1 ;;
14226 esac
14227 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
14228 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
14230 if test "$USE_NLS" = "yes"; then
14231 gt_use_preinstalled_gnugettext=no
14234 if test $gt_api_version -ge 3; then
14235 gt_revision_test_code='
14236 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
14237 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
14238 #endif
14239 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
14241 else
14242 gt_revision_test_code=
14244 if test $gt_api_version -ge 2; then
14245 gt_expression_test_code=' + * ngettext ("", "", 0)'
14246 else
14247 gt_expression_test_code=
14250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
14251 $as_echo_n "checking for GNU gettext in libc... " >&6; }
14252 if eval \${$gt_func_gnugettext_libc+:} false; then :
14253 $as_echo_n "(cached) " >&6
14254 else
14255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14256 /* end confdefs.h. */
14257 #include <libintl.h>
14258 $gt_revision_test_code
14259 extern int _nl_msg_cat_cntr;
14260 extern int *_nl_domain_bindings;
14262 main ()
14264 bindtextdomain ("", "");
14265 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
14267 return 0;
14269 _ACEOF
14270 if ac_fn_c_try_link "$LINENO"; then :
14271 eval "$gt_func_gnugettext_libc=yes"
14272 else
14273 eval "$gt_func_gnugettext_libc=no"
14275 rm -f core conftest.err conftest.$ac_objext \
14276 conftest$ac_exeext conftest.$ac_ext
14278 eval ac_res=\$$gt_func_gnugettext_libc
14279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14280 $as_echo "$ac_res" >&6; }
14282 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
14288 am_save_CPPFLAGS="$CPPFLAGS"
14290 for element in $INCICONV; do
14291 haveit=
14292 for x in $CPPFLAGS; do
14294 acl_save_prefix="$prefix"
14295 prefix="$acl_final_prefix"
14296 acl_save_exec_prefix="$exec_prefix"
14297 exec_prefix="$acl_final_exec_prefix"
14298 eval x=\"$x\"
14299 exec_prefix="$acl_save_exec_prefix"
14300 prefix="$acl_save_prefix"
14302 if test "X$x" = "X$element"; then
14303 haveit=yes
14304 break
14306 done
14307 if test -z "$haveit"; then
14308 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14310 done
14313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
14314 $as_echo_n "checking for iconv... " >&6; }
14315 if ${am_cv_func_iconv+:} false; then :
14316 $as_echo_n "(cached) " >&6
14317 else
14319 am_cv_func_iconv="no, consider installing GNU libiconv"
14320 am_cv_lib_iconv=no
14321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14322 /* end confdefs.h. */
14323 #include <stdlib.h>
14324 #include <iconv.h>
14326 main ()
14328 iconv_t cd = iconv_open("","");
14329 iconv(cd,NULL,NULL,NULL,NULL);
14330 iconv_close(cd);
14332 return 0;
14334 _ACEOF
14335 if ac_fn_c_try_link "$LINENO"; then :
14336 am_cv_func_iconv=yes
14338 rm -f core conftest.err conftest.$ac_objext \
14339 conftest$ac_exeext conftest.$ac_ext
14340 if test "$am_cv_func_iconv" != yes; then
14341 am_save_LIBS="$LIBS"
14342 LIBS="$LIBS $LIBICONV"
14343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14344 /* end confdefs.h. */
14345 #include <stdlib.h>
14346 #include <iconv.h>
14348 main ()
14350 iconv_t cd = iconv_open("","");
14351 iconv(cd,NULL,NULL,NULL,NULL);
14352 iconv_close(cd);
14354 return 0;
14356 _ACEOF
14357 if ac_fn_c_try_link "$LINENO"; then :
14358 am_cv_lib_iconv=yes
14359 am_cv_func_iconv=yes
14361 rm -f core conftest.err conftest.$ac_objext \
14362 conftest$ac_exeext conftest.$ac_ext
14363 LIBS="$am_save_LIBS"
14367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
14368 $as_echo "$am_cv_func_iconv" >&6; }
14369 if test "$am_cv_func_iconv" = yes; then
14371 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
14374 if test "$am_cv_lib_iconv" = yes; then
14375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
14376 $as_echo_n "checking how to link with libiconv... " >&6; }
14377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
14378 $as_echo "$LIBICONV" >&6; }
14379 else
14380 CPPFLAGS="$am_save_CPPFLAGS"
14381 LIBICONV=
14382 LTLIBICONV=
14391 use_additional=yes
14393 acl_save_prefix="$prefix"
14394 prefix="$acl_final_prefix"
14395 acl_save_exec_prefix="$exec_prefix"
14396 exec_prefix="$acl_final_exec_prefix"
14398 eval additional_includedir=\"$includedir\"
14399 eval additional_libdir=\"$libdir\"
14401 exec_prefix="$acl_save_exec_prefix"
14402 prefix="$acl_save_prefix"
14405 # Check whether --with-libintl-prefix was given.
14406 if test "${with_libintl_prefix+set}" = set; then :
14407 withval=$with_libintl_prefix;
14408 if test "X$withval" = "Xno"; then
14409 use_additional=no
14410 else
14411 if test "X$withval" = "X"; then
14413 acl_save_prefix="$prefix"
14414 prefix="$acl_final_prefix"
14415 acl_save_exec_prefix="$exec_prefix"
14416 exec_prefix="$acl_final_exec_prefix"
14418 eval additional_includedir=\"$includedir\"
14419 eval additional_libdir=\"$libdir\"
14421 exec_prefix="$acl_save_exec_prefix"
14422 prefix="$acl_save_prefix"
14424 else
14425 additional_includedir="$withval/include"
14426 additional_libdir="$withval/$acl_libdirstem"
14432 LIBINTL=
14433 LTLIBINTL=
14434 INCINTL=
14435 rpathdirs=
14436 ltrpathdirs=
14437 names_already_handled=
14438 names_next_round='intl '
14439 while test -n "$names_next_round"; do
14440 names_this_round="$names_next_round"
14441 names_next_round=
14442 for name in $names_this_round; do
14443 already_handled=
14444 for n in $names_already_handled; do
14445 if test "$n" = "$name"; then
14446 already_handled=yes
14447 break
14449 done
14450 if test -z "$already_handled"; then
14451 names_already_handled="$names_already_handled $name"
14452 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14453 eval value=\"\$HAVE_LIB$uppername\"
14454 if test -n "$value"; then
14455 if test "$value" = yes; then
14456 eval value=\"\$LIB$uppername\"
14457 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
14458 eval value=\"\$LTLIB$uppername\"
14459 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
14460 else
14463 else
14464 found_dir=
14465 found_la=
14466 found_so=
14467 found_a=
14468 if test $use_additional = yes; then
14469 if test -n "$shlibext" \
14470 && { test -f "$additional_libdir/lib$name.$shlibext" \
14471 || { test "$shlibext" = dll \
14472 && test -f "$additional_libdir/lib$name.dll.a"; }; }; then
14473 found_dir="$additional_libdir"
14474 if test -f "$additional_libdir/lib$name.$shlibext"; then
14475 found_so="$additional_libdir/lib$name.$shlibext"
14476 else
14477 found_so="$additional_libdir/lib$name.dll.a"
14479 if test -f "$additional_libdir/lib$name.la"; then
14480 found_la="$additional_libdir/lib$name.la"
14482 else
14483 if test -f "$additional_libdir/lib$name.$libext"; then
14484 found_dir="$additional_libdir"
14485 found_a="$additional_libdir/lib$name.$libext"
14486 if test -f "$additional_libdir/lib$name.la"; then
14487 found_la="$additional_libdir/lib$name.la"
14492 if test "X$found_dir" = "X"; then
14493 for x in $LDFLAGS $LTLIBINTL; do
14495 acl_save_prefix="$prefix"
14496 prefix="$acl_final_prefix"
14497 acl_save_exec_prefix="$exec_prefix"
14498 exec_prefix="$acl_final_exec_prefix"
14499 eval x=\"$x\"
14500 exec_prefix="$acl_save_exec_prefix"
14501 prefix="$acl_save_prefix"
14503 case "$x" in
14504 -L*)
14505 dir=`echo "X$x" | sed -e 's/^X-L//'`
14506 if test -n "$shlibext" \
14507 && { test -f "$dir/lib$name.$shlibext" \
14508 || { test "$shlibext" = dll \
14509 && test -f "$dir/lib$name.dll.a"; }; }; then
14510 found_dir="$dir"
14511 if test -f "$dir/lib$name.$shlibext"; then
14512 found_so="$dir/lib$name.$shlibext"
14513 else
14514 found_so="$dir/lib$name.dll.a"
14516 if test -f "$dir/lib$name.la"; then
14517 found_la="$dir/lib$name.la"
14519 else
14520 if test -f "$dir/lib$name.$libext"; then
14521 found_dir="$dir"
14522 found_a="$dir/lib$name.$libext"
14523 if test -f "$dir/lib$name.la"; then
14524 found_la="$dir/lib$name.la"
14529 esac
14530 if test "X$found_dir" != "X"; then
14531 break
14533 done
14535 if test "X$found_dir" != "X"; then
14536 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
14537 if test "X$found_so" != "X"; then
14538 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
14539 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14540 else
14541 haveit=
14542 for x in $ltrpathdirs; do
14543 if test "X$x" = "X$found_dir"; then
14544 haveit=yes
14545 break
14547 done
14548 if test -z "$haveit"; then
14549 ltrpathdirs="$ltrpathdirs $found_dir"
14551 if test "$hardcode_direct" = yes; then
14552 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14553 else
14554 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
14555 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14556 haveit=
14557 for x in $rpathdirs; do
14558 if test "X$x" = "X$found_dir"; then
14559 haveit=yes
14560 break
14562 done
14563 if test -z "$haveit"; then
14564 rpathdirs="$rpathdirs $found_dir"
14566 else
14567 haveit=
14568 for x in $LDFLAGS $LIBINTL; do
14570 acl_save_prefix="$prefix"
14571 prefix="$acl_final_prefix"
14572 acl_save_exec_prefix="$exec_prefix"
14573 exec_prefix="$acl_final_exec_prefix"
14574 eval x=\"$x\"
14575 exec_prefix="$acl_save_exec_prefix"
14576 prefix="$acl_save_prefix"
14578 if test "X$x" = "X-L$found_dir"; then
14579 haveit=yes
14580 break
14582 done
14583 if test -z "$haveit"; then
14584 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
14586 if test "$hardcode_minus_L" != no; then
14587 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14588 else
14589 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14594 else
14595 if test "X$found_a" != "X"; then
14596 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
14597 else
14598 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
14601 additional_includedir=
14602 case "$found_dir" in
14603 */$acl_libdirstem | */$acl_libdirstem/)
14604 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
14605 additional_includedir="$basedir/include"
14607 esac
14608 if test "X$additional_includedir" != "X"; then
14609 if test "X$additional_includedir" != "X/usr/include"; then
14610 haveit=
14611 if test "X$additional_includedir" = "X/usr/local/include"; then
14612 if test -n "$GCC"; then
14613 case $host_os in
14614 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14615 esac
14618 if test -z "$haveit"; then
14619 for x in $CPPFLAGS $INCINTL; do
14621 acl_save_prefix="$prefix"
14622 prefix="$acl_final_prefix"
14623 acl_save_exec_prefix="$exec_prefix"
14624 exec_prefix="$acl_final_exec_prefix"
14625 eval x=\"$x\"
14626 exec_prefix="$acl_save_exec_prefix"
14627 prefix="$acl_save_prefix"
14629 if test "X$x" = "X-I$additional_includedir"; then
14630 haveit=yes
14631 break
14633 done
14634 if test -z "$haveit"; then
14635 if test -d "$additional_includedir"; then
14636 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
14642 if test -n "$found_la"; then
14643 save_libdir="$libdir"
14644 case "$found_la" in
14645 */* | *\\*) . "$found_la" ;;
14646 *) . "./$found_la" ;;
14647 esac
14648 libdir="$save_libdir"
14649 for dep in $dependency_libs; do
14650 case "$dep" in
14651 -L*)
14652 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14653 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
14654 haveit=
14655 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
14656 if test -n "$GCC"; then
14657 case $host_os in
14658 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14659 esac
14662 if test -z "$haveit"; then
14663 haveit=
14664 for x in $LDFLAGS $LIBINTL; do
14666 acl_save_prefix="$prefix"
14667 prefix="$acl_final_prefix"
14668 acl_save_exec_prefix="$exec_prefix"
14669 exec_prefix="$acl_final_exec_prefix"
14670 eval x=\"$x\"
14671 exec_prefix="$acl_save_exec_prefix"
14672 prefix="$acl_save_prefix"
14674 if test "X$x" = "X-L$additional_libdir"; then
14675 haveit=yes
14676 break
14678 done
14679 if test -z "$haveit"; then
14680 if test -d "$additional_libdir"; then
14681 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
14684 haveit=
14685 for x in $LDFLAGS $LTLIBINTL; do
14687 acl_save_prefix="$prefix"
14688 prefix="$acl_final_prefix"
14689 acl_save_exec_prefix="$exec_prefix"
14690 exec_prefix="$acl_final_exec_prefix"
14691 eval x=\"$x\"
14692 exec_prefix="$acl_save_exec_prefix"
14693 prefix="$acl_save_prefix"
14695 if test "X$x" = "X-L$additional_libdir"; then
14696 haveit=yes
14697 break
14699 done
14700 if test -z "$haveit"; then
14701 if test -d "$additional_libdir"; then
14702 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
14708 -R*)
14709 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14710 if test "$enable_rpath" != no; then
14711 haveit=
14712 for x in $rpathdirs; do
14713 if test "X$x" = "X$dir"; then
14714 haveit=yes
14715 break
14717 done
14718 if test -z "$haveit"; then
14719 rpathdirs="$rpathdirs $dir"
14721 haveit=
14722 for x in $ltrpathdirs; do
14723 if test "X$x" = "X$dir"; then
14724 haveit=yes
14725 break
14727 done
14728 if test -z "$haveit"; then
14729 ltrpathdirs="$ltrpathdirs $dir"
14733 -l*)
14734 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14736 *.la)
14737 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14740 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
14741 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
14743 esac
14744 done
14746 else
14747 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14748 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
14752 done
14753 done
14754 if test "X$rpathdirs" != "X"; then
14755 if test -n "$hardcode_libdir_separator"; then
14756 alldirs=
14757 for found_dir in $rpathdirs; do
14758 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14759 done
14760 acl_save_libdir="$libdir"
14761 libdir="$alldirs"
14762 eval flag=\"$hardcode_libdir_flag_spec\"
14763 libdir="$acl_save_libdir"
14764 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14765 else
14766 for found_dir in $rpathdirs; do
14767 acl_save_libdir="$libdir"
14768 libdir="$found_dir"
14769 eval flag=\"$hardcode_libdir_flag_spec\"
14770 libdir="$acl_save_libdir"
14771 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14772 done
14775 if test "X$ltrpathdirs" != "X"; then
14776 for found_dir in $ltrpathdirs; do
14777 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
14778 done
14781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
14782 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
14783 if eval \${$gt_func_gnugettext_libintl+:} false; then :
14784 $as_echo_n "(cached) " >&6
14785 else
14786 gt_save_CPPFLAGS="$CPPFLAGS"
14787 CPPFLAGS="$CPPFLAGS $INCINTL"
14788 gt_save_LIBS="$LIBS"
14789 LIBS="$LIBS $LIBINTL"
14790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14791 /* end confdefs.h. */
14792 #include <libintl.h>
14793 $gt_revision_test_code
14794 extern int _nl_msg_cat_cntr;
14795 extern
14796 #ifdef __cplusplus
14798 #endif
14799 const char *_nl_expand_alias (const char *);
14801 main ()
14803 bindtextdomain ("", "");
14804 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
14806 return 0;
14808 _ACEOF
14809 if ac_fn_c_try_link "$LINENO"; then :
14810 eval "$gt_func_gnugettext_libintl=yes"
14811 else
14812 eval "$gt_func_gnugettext_libintl=no"
14814 rm -f core conftest.err conftest.$ac_objext \
14815 conftest$ac_exeext conftest.$ac_ext
14816 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
14817 LIBS="$LIBS $LIBICONV"
14818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14819 /* end confdefs.h. */
14820 #include <libintl.h>
14821 $gt_revision_test_code
14822 extern int _nl_msg_cat_cntr;
14823 extern
14824 #ifdef __cplusplus
14826 #endif
14827 const char *_nl_expand_alias (const char *);
14829 main ()
14831 bindtextdomain ("", "");
14832 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
14834 return 0;
14836 _ACEOF
14837 if ac_fn_c_try_link "$LINENO"; then :
14838 LIBINTL="$LIBINTL $LIBICONV"
14839 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
14840 eval "$gt_func_gnugettext_libintl=yes"
14843 rm -f core conftest.err conftest.$ac_objext \
14844 conftest$ac_exeext conftest.$ac_ext
14846 CPPFLAGS="$gt_save_CPPFLAGS"
14847 LIBS="$gt_save_LIBS"
14849 eval ac_res=\$$gt_func_gnugettext_libintl
14850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14851 $as_echo "$ac_res" >&6; }
14854 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
14855 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
14856 && test "$PACKAGE" != gettext-runtime \
14857 && test "$PACKAGE" != gettext-tools; }; then
14858 gt_use_preinstalled_gnugettext=yes
14859 else
14860 LIBINTL=
14861 LTLIBINTL=
14862 INCINTL=
14867 if test -n "$INTL_MACOSX_LIBS"; then
14868 if test "$gt_use_preinstalled_gnugettext" = "yes" \
14869 || test "$nls_cv_use_gnu_gettext" = "yes"; then
14870 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
14871 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
14875 if test "$gt_use_preinstalled_gnugettext" = "yes" \
14876 || test "$nls_cv_use_gnu_gettext" = "yes"; then
14878 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
14880 else
14881 USE_NLS=no
14885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
14886 $as_echo_n "checking whether to use NLS... " >&6; }
14887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
14888 $as_echo "$USE_NLS" >&6; }
14889 if test "$USE_NLS" = "yes"; then
14890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
14891 $as_echo_n "checking where the gettext function comes from... " >&6; }
14892 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14893 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
14894 gt_source="external libintl"
14895 else
14896 gt_source="libc"
14898 else
14899 gt_source="included intl directory"
14901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
14902 $as_echo "$gt_source" >&6; }
14905 if test "$USE_NLS" = "yes"; then
14907 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14908 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
14909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
14910 $as_echo_n "checking how to link with libintl... " >&6; }
14911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
14912 $as_echo "$LIBINTL" >&6; }
14914 for element in $INCINTL; do
14915 haveit=
14916 for x in $CPPFLAGS; do
14918 acl_save_prefix="$prefix"
14919 prefix="$acl_final_prefix"
14920 acl_save_exec_prefix="$exec_prefix"
14921 exec_prefix="$acl_final_exec_prefix"
14922 eval x=\"$x\"
14923 exec_prefix="$acl_save_exec_prefix"
14924 prefix="$acl_save_prefix"
14926 if test "X$x" = "X$element"; then
14927 haveit=yes
14928 break
14930 done
14931 if test -z "$haveit"; then
14932 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14934 done
14939 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
14942 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
14946 POSUB=po
14951 INTLLIBS="$LIBINTL"
14959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: dmalloc enabled" >&5
14960 $as_echo_n "checking option: dmalloc enabled... " >&6; }
14961 # Check whether --enable-dmalloc was given.
14962 if test "${enable_dmalloc+set}" = set; then :
14963 enableval=$enable_dmalloc;
14966 if test x$enable_dmalloc = "xyes" ; then
14967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14968 $as_echo "yes" >&6; }
14969 else
14970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14971 $as_echo "no" >&6; }
14975 # Check whether --with-dmalloc-dir was given.
14976 if test "${with_dmalloc_dir+set}" = set; then :
14977 withval=$with_dmalloc_dir;
14978 if test "x$withval" != "xno" ; then
14979 enable_dmalloc = "yes"
14980 CPPFLAGS="$CPPFLAGS -I${withval}"
14981 LDFLAGS="$LDFLAGS -L${withval}"
14987 if test x$enable_dmalloc = "xyes" ; then
14989 $as_echo "#define ENABLE_DMALLOC 1" >>confdefs.h
14993 ALPINE_datestamp=`date`
14995 # Check whether --with-date-stamp was given.
14996 if test "${with_date_stamp+set}" = set; then :
14997 withval=$with_date_stamp;
14998 if test "x$withval" != "xno" ; then
14999 ALPINE_datestamp=$withval
15004 ALPINE_DATESTAMP=$ALPINE_datestamp
15007 ALPINE_hoststamp=`hostname`
15009 # Check whether --with-host-stamp was given.
15010 if test "${with_host_stamp+set}" = set; then :
15011 withval=$with_host_stamp;
15012 if test "x$withval" != "xno" ; then
15013 ALPINE_hoststamp="$withval"
15018 ALPINE_HOSTSTAMP=$ALPINE_hoststamp
15021 case $host in
15022 *apple-darwin*)
15023 if test -d /opt/local ; then
15024 localedir="/opt/local/share/locale"
15025 else
15026 localedir="\${datadir}/locale"
15029 *-*-cygwin)
15030 localedir="/usr/share"
15033 localedir="\${datadir}/locale"
15035 esac
15038 # Check whether --with-localedir was given.
15039 if test "${with_localedir+set}" = set; then :
15040 withval=$with_localedir;
15041 case $withval in
15042 yes)
15047 localedir=$withval
15049 esac
15053 localedir="$localedir"
15056 # Setup OS-Specific features
15057 case "$host" in
15058 *darwin*)
15059 # Check whether --enable-osx-universal-binaries was given.
15060 if test "${enable_osx_universal_binaries+set}" = set; then :
15061 enableval=$enable_osx_universal_binaries;
15064 if test "x$enable_osx_universal_binaries" = "xyes" ; then
15065 if test "x$enable_dependency_tracking" != xno ; then
15066 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
15067 Please re-run configure with these options:
15068 --disable-dependency-tracking --enable-osx-universal-binary" "$LINENO" 5
15070 if test -d /Developer/SDKs/MacOSX10.5.sdk ; then
15071 alpine_sysroot=/Developer/SDKs/MacOSX10.5.sdk
15072 elif test -d /Developer/SDKs/MacOSX10.4u.sdk ; then
15073 alpine_sysroot=/Developer/SDKs/MacOSX10.4u.sdk
15074 else
15075 as_fn_error $? "No suitable MacOSX SDK found. Make sure Xcode tools are installed" "$LINENO" 5
15077 ub_cflags="-isysroot $alpine_sysroot -arch ppc -arch i386"
15078 ub_ldflags="-Wl,-syslibroot,$alpine_sysroot -arch ppc -arch i386"
15079 AM_CFLAGS="$AM_CFLAGS $ub_cflags"
15080 AM_LDFLAGS="$AM_LDFLAGS $ub_ldflags"
15081 alpine_c_client_cflags="$alpine_c_client_cflags $ub_cflags"
15082 alpine_c_client_ldflags="$alpine_c_client_ldflags $ub_ldflags"
15085 esac
15088 # Check whether --with-include-path was given.
15089 if test "${with_include_path+set}" = set; then :
15090 withval=$with_include_path;
15091 case $withval in
15094 yes)
15097 new_cppflags="-I`echo ${withval} | ${SED} 's/:/ -I/g'`"
15098 CPPFLAGS="$CPPFLAGS ${new_cppflags}"
15099 alpine_c_client_cflags="$alpine_c_client_cflags ${new_cppflags}"
15101 esac
15107 # Check whether --with-lib-path was given.
15108 if test "${with_lib_path+set}" = set; then :
15109 withval=$with_lib_path;
15110 case $withval in
15113 yes)
15116 new_ldflags="-L`echo ${withval} | ${SED} 's/:/ -L/g'`"
15117 LDFLAGS="$LDFLAGS $new_ldflags"
15118 alpine_c_client_ldflags="$alpine_c_client_ldflags ${new_ldflags}"
15120 esac
15126 # Check whether --with-pubcookie was given.
15127 if test "${with_pubcookie+set}" = set; then :
15128 withval=$with_pubcookie;
15129 if test "x$withval" != "xno" ; then
15130 WEB_PUBCOOKIE_BUILD=web/src/pubcookie
15138 # Check whether --with-web-bin was given.
15139 if test "${with_web_bin+set}" = set; then :
15140 withval=$with_web_bin;
15141 case "$withval" in
15144 yes)
15147 WEB_BINDIR=$withval
15149 esac
15154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: debugging is enabled" >&5
15155 $as_echo_n "checking option: debugging is enabled... " >&6; }
15156 # Check whether --enable-debug was given.
15157 if test "${enable_debug+set}" = set; then :
15158 enableval=$enable_debug;
15161 if test x$enable_debug != "xno" ; then
15162 AM_CFLAGS="$AM_CFLAGS -g"
15163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15164 $as_echo "yes" >&6; }
15165 else
15166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15167 $as_echo "no" >&6; }
15170 $as_echo "#define DEBUG 1" >>confdefs.h
15173 $as_echo "#define DEBUGJOURNAL 1" >>confdefs.h
15177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: optimization is enabled" >&5
15178 $as_echo_n "checking option: optimization is enabled... " >&6; }
15179 # Check whether --enable-optimization was given.
15180 if test "${enable_optimization+set}" = set; then :
15181 enableval=$enable_optimization;
15184 if test x$enable_optimization != "xno" ; then
15185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15186 $as_echo "yes" >&6; }
15187 else
15188 CFLAGS="`echo $AM_CFLAGS | ${SED} 's/-O2//'`"
15189 alpine_c_client_gccoptlevel="-O0"
15190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15191 $as_echo "no" >&6; }
15194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: mouse support enabled" >&5
15195 $as_echo_n "checking option: mouse support enabled... " >&6; }
15196 # Check whether --enable-mouse was given.
15197 if test "${enable_mouse+set}" = set; then :
15198 enableval=$enable_mouse;
15201 if test x$enable_mouse != "xno" ; then
15203 $as_echo "#define MOUSE /**/" >>confdefs.h
15205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15206 $as_echo "yes" >&6; }
15207 else
15208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15209 $as_echo "no" >&6; }
15212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: quotas enabled" >&5
15213 $as_echo_n "checking option: quotas enabled... " >&6; }
15214 # Check whether --enable-quotas was given.
15215 if test "${enable_quotas+set}" = set; then :
15216 enableval=$enable_quotas;
15219 if test x$enable_quotas = "xyes" ; then
15221 $as_echo "#define USE_QUOTAS /**/" >>confdefs.h
15223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15224 $as_echo "yes" >&6; }
15225 else
15226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15227 $as_echo "no" >&6; }
15230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: From changing enabled" >&5
15231 $as_echo_n "checking option: From changing enabled... " >&6; }
15232 # Check whether --enable-from_changing was given.
15233 if test "${enable_from_changing+set}" = set; then :
15234 enableval=$enable_from_changing;
15237 if test x$enable_from_changing != "xno" ; then
15238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15239 $as_echo "yes" >&6; }
15240 else
15242 $as_echo "#define NEVER_ALLOW_CHANGING_FROM /**/" >>confdefs.h
15244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15245 $as_echo "no" >&6; }
15248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: background post enabled" >&5
15249 $as_echo_n "checking option: background post enabled... " >&6; }
15250 # Check whether --enable-background-post was given.
15251 if test "${enable_background_post+set}" = set; then :
15252 enableval=$enable_background_post;
15255 if test x$enable_background_post != "xno" ; then
15257 $as_echo "#define BACKGROUND_POST /**/" >>confdefs.h
15259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15260 $as_echo "yes" >&6; }
15261 else
15262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15263 $as_echo "no" >&6; }
15266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: keyboard lock enabled" >&5
15267 $as_echo_n "checking option: keyboard lock enabled... " >&6; }
15268 # Check whether --enable-keyboard-lock was given.
15269 if test "${enable_keyboard_lock+set}" = set; then :
15270 enableval=$enable_keyboard_lock;
15273 if test x$enable_keyboard_lock != "xno" ; then
15275 $as_echo "#define KEYBOARD_LOCK /**/" >>confdefs.h
15277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15278 $as_echo "yes" >&6; }
15279 else
15280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15281 $as_echo "no" >&6; }
15284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: from encoding enabled" >&5
15285 $as_echo_n "checking option: from encoding enabled... " >&6; }
15286 # Check whether --enable-from-encoding was given.
15287 if test "${enable_from_encoding+set}" = set; then :
15288 enableval=$enable_from_encoding;
15291 if test x$enable_from_encoding = "xyes" ; then
15293 $as_echo "#define ENCODE_FROMS /**/" >>confdefs.h
15295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15296 $as_echo "yes" >&6; }
15297 else
15298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15299 $as_echo "no" >&6; }
15303 # Check whether --with-smtp-msa was given.
15304 if test "${with_smtp_msa+set}" = set; then :
15305 withval=$with_smtp_msa;
15306 case "$withval" in
15309 yes)
15310 # Extract the first word of "sendmail", so it can be a program name with args.
15311 set dummy sendmail; ac_word=$2
15312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15313 $as_echo_n "checking for $ac_word... " >&6; }
15314 if ${ac_cv_path_SENDMAIL+:} false; then :
15315 $as_echo_n "(cached) " >&6
15316 else
15317 case $SENDMAIL in
15318 [\\/]* | ?:[\\/]*)
15319 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
15322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15323 as_dummy="$PATH:/usr/sbin:/usr/lib"
15324 for as_dir in $as_dummy
15326 IFS=$as_save_IFS
15327 test -z "$as_dir" && as_dir=.
15328 for ac_exec_ext in '' $ac_executable_extensions; do
15329 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15330 ac_cv_path_SENDMAIL="$as_dir/$ac_word$ac_exec_ext"
15331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15332 break 2
15334 done
15335 done
15336 IFS=$as_save_IFS
15338 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL=""""
15340 esac
15342 SENDMAIL=$ac_cv_path_SENDMAIL
15343 if test -n "$SENDMAIL"; then
15344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SENDMAIL" >&5
15345 $as_echo "$SENDMAIL" >&6; }
15346 else
15347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15348 $as_echo "no" >&6; }
15354 SENDMAIL=$withval
15356 esac
15358 else
15360 # Extract the first word of "sendmail", so it can be a program name with args.
15361 set dummy sendmail; ac_word=$2
15362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15363 $as_echo_n "checking for $ac_word... " >&6; }
15364 if ${ac_cv_path_SENDMAIL+:} false; then :
15365 $as_echo_n "(cached) " >&6
15366 else
15367 case $SENDMAIL in
15368 [\\/]* | ?:[\\/]*)
15369 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
15372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15373 as_dummy="$PATH:/usr/sbin:/usr/lib"
15374 for as_dir in $as_dummy
15376 IFS=$as_save_IFS
15377 test -z "$as_dir" && as_dir=.
15378 for ac_exec_ext in '' $ac_executable_extensions; do
15379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15380 ac_cv_path_SENDMAIL="$as_dir/$ac_word$ac_exec_ext"
15381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15382 break 2
15384 done
15385 done
15386 IFS=$as_save_IFS
15388 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL=""""
15390 esac
15392 SENDMAIL=$ac_cv_path_SENDMAIL
15393 if test -n "$SENDMAIL"; then
15394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SENDMAIL" >&5
15395 $as_echo "$SENDMAIL" >&6; }
15396 else
15397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15398 $as_echo "no" >&6; }
15405 if test -n "$SENDMAIL" ; then
15407 cat >>confdefs.h <<_ACEOF
15408 #define SENDMAIL "$SENDMAIL"
15409 _ACEOF
15413 smtp_msa_flags="-bs -odb -oem"
15415 # Check whether --with-smtp-msa-flags was given.
15416 if test "${with_smtp_msa_flags+set}" = set; then :
15417 withval=$with_smtp_msa_flags;
15418 if test "x$withval" != "xno" ; then
15419 smtp_msa_flags=$withval
15425 cat >>confdefs.h <<_ACEOF
15426 #define SENDMAILFLAGS "$smtp_msa_flags"
15427 _ACEOF
15430 npa="inews"
15432 # Check whether --with-npa was given.
15433 if test "${with_npa+set}" = set; then :
15434 withval=$with_npa;
15435 case "$withval" in
15438 yes)
15439 # Extract the first word of "inews", so it can be a program name with args.
15440 set dummy inews; ac_word=$2
15441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15442 $as_echo_n "checking for $ac_word... " >&6; }
15443 if ${ac_cv_path_NPA_PROG+:} false; then :
15444 $as_echo_n "(cached) " >&6
15445 else
15446 case $NPA_PROG in
15447 [\\/]* | ?:[\\/]*)
15448 ac_cv_path_NPA_PROG="$NPA_PROG" # Let the user override the test with a path.
15451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15452 as_dummy="$PATH:/usr/sbin:/usr/lib"
15453 for as_dir in $as_dummy
15455 IFS=$as_save_IFS
15456 test -z "$as_dir" && as_dir=.
15457 for ac_exec_ext in '' $ac_executable_extensions; do
15458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15459 ac_cv_path_NPA_PROG="$as_dir/$ac_word$ac_exec_ext"
15460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15461 break 2
15463 done
15464 done
15465 IFS=$as_save_IFS
15467 test -z "$ac_cv_path_NPA_PROG" && ac_cv_path_NPA_PROG=""""
15469 esac
15471 NPA_PROG=$ac_cv_path_NPA_PROG
15472 if test -n "$NPA_PROG"; then
15473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NPA_PROG" >&5
15474 $as_echo "$NPA_PROG" >&6; }
15475 else
15476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15477 $as_echo "no" >&6; }
15483 NPA_PROG=$withval
15485 esac
15487 else
15489 # Extract the first word of "inews", so it can be a program name with args.
15490 set dummy inews; ac_word=$2
15491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15492 $as_echo_n "checking for $ac_word... " >&6; }
15493 if ${ac_cv_path_NPA_PROG+:} false; then :
15494 $as_echo_n "(cached) " >&6
15495 else
15496 case $NPA_PROG in
15497 [\\/]* | ?:[\\/]*)
15498 ac_cv_path_NPA_PROG="$NPA_PROG" # Let the user override the test with a path.
15501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15502 as_dummy="$PATH:/usr/sbin:/usr/lib"
15503 for as_dir in $as_dummy
15505 IFS=$as_save_IFS
15506 test -z "$as_dir" && as_dir=.
15507 for ac_exec_ext in '' $ac_executable_extensions; do
15508 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15509 ac_cv_path_NPA_PROG="$as_dir/$ac_word$ac_exec_ext"
15510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15511 break 2
15513 done
15514 done
15515 IFS=$as_save_IFS
15517 test -z "$ac_cv_path_NPA_PROG" && ac_cv_path_NPA_PROG=""""
15519 esac
15521 NPA_PROG=$ac_cv_path_NPA_PROG
15522 if test -n "$NPA_PROG"; then
15523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NPA_PROG" >&5
15524 $as_echo "$NPA_PROG" >&6; }
15525 else
15526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15527 $as_echo "no" >&6; }
15535 npa_flags="-h"
15537 # Check whether --with-npa-flags was given.
15538 if test "${with_npa_flags+set}" = set; then :
15539 withval=$with_npa_flags;
15540 if test "x$withval" != "xno" ; then
15541 npa_flags=$withval
15546 if test -n "$NPA_PROG" ; then
15548 cat >>confdefs.h <<_ACEOF
15549 #define SENDNEWS "$NPA_PROG $npa_flags"
15550 _ACEOF
15555 # Check whether --with-password-prog was given.
15556 if test "${with_password_prog+set}" = set; then :
15557 withval=$with_password_prog;
15558 case "$withval" in
15561 yes)
15562 # Extract the first word of "passwd", so it can be a program name with args.
15563 set dummy passwd; ac_word=$2
15564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15565 $as_echo_n "checking for $ac_word... " >&6; }
15566 if ${ac_cv_path_PWPROG+:} false; then :
15567 $as_echo_n "(cached) " >&6
15568 else
15569 case $PWPROG in
15570 [\\/]* | ?:[\\/]*)
15571 ac_cv_path_PWPROG="$PWPROG" # Let the user override the test with a path.
15574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15575 as_dummy="$PATH:/usr/sbin:/usr/lib"
15576 for as_dir in $as_dummy
15578 IFS=$as_save_IFS
15579 test -z "$as_dir" && as_dir=.
15580 for ac_exec_ext in '' $ac_executable_extensions; do
15581 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15582 ac_cv_path_PWPROG="$as_dir/$ac_word$ac_exec_ext"
15583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15584 break 2
15586 done
15587 done
15588 IFS=$as_save_IFS
15590 test -z "$ac_cv_path_PWPROG" && ac_cv_path_PWPROG=""""
15592 esac
15594 PWPROG=$ac_cv_path_PWPROG
15595 if test -n "$PWPROG"; then
15596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PWPROG" >&5
15597 $as_echo "$PWPROG" >&6; }
15598 else
15599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15600 $as_echo "no" >&6; }
15606 # Extract the first word of "$withval", so it can be a program name with args.
15607 set dummy $withval; ac_word=$2
15608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15609 $as_echo_n "checking for $ac_word... " >&6; }
15610 if ${ac_cv_path_PWPROG+:} false; then :
15611 $as_echo_n "(cached) " >&6
15612 else
15613 case $PWPROG in
15614 [\\/]* | ?:[\\/]*)
15615 ac_cv_path_PWPROG="$PWPROG" # Let the user override the test with a path.
15618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15619 as_dummy="$PATH:/usr/sbin:/usr/lib"
15620 for as_dir in $as_dummy
15622 IFS=$as_save_IFS
15623 test -z "$as_dir" && as_dir=.
15624 for ac_exec_ext in '' $ac_executable_extensions; do
15625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15626 ac_cv_path_PWPROG="$as_dir/$ac_word$ac_exec_ext"
15627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15628 break 2
15630 done
15631 done
15632 IFS=$as_save_IFS
15634 test -z "$ac_cv_path_PWPROG" && ac_cv_path_PWPROG=""""
15636 esac
15638 PWPROG=$ac_cv_path_PWPROG
15639 if test -n "$PWPROG"; then
15640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PWPROG" >&5
15641 $as_echo "$PWPROG" >&6; }
15642 else
15643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15644 $as_echo "no" >&6; }
15649 esac
15651 else
15653 # Extract the first word of "passwd", so it can be a program name with args.
15654 set dummy passwd; ac_word=$2
15655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15656 $as_echo_n "checking for $ac_word... " >&6; }
15657 if ${ac_cv_path_PWPROG+:} false; then :
15658 $as_echo_n "(cached) " >&6
15659 else
15660 case $PWPROG in
15661 [\\/]* | ?:[\\/]*)
15662 ac_cv_path_PWPROG="$PWPROG" # Let the user override the test with a path.
15665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15666 as_dummy="$PATH:/usr/sbin:/usr/lib"
15667 for as_dir in $as_dummy
15669 IFS=$as_save_IFS
15670 test -z "$as_dir" && as_dir=.
15671 for ac_exec_ext in '' $ac_executable_extensions; do
15672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15673 ac_cv_path_PWPROG="$as_dir/$ac_word$ac_exec_ext"
15674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15675 break 2
15677 done
15678 done
15679 IFS=$as_save_IFS
15681 test -z "$ac_cv_path_PWPROG" && ac_cv_path_PWPROG=""""
15683 esac
15685 PWPROG=$ac_cv_path_PWPROG
15686 if test -n "$PWPROG"; then
15687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PWPROG" >&5
15688 $as_echo "$PWPROG" >&6; }
15689 else
15690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15691 $as_echo "no" >&6; }
15698 if test -n "$PWPROG" ; then
15700 cat >>confdefs.h <<_ACEOF
15701 #define PASSWD_PROG "$PWPROG"
15702 _ACEOF
15707 # Check whether --with-simple-spellcheck was given.
15708 if test "${with_simple_spellcheck+set}" = set; then :
15709 withval=$with_simple_spellcheck;
15710 if test "x$withval" != "xno" ; then
15711 SPELLPROG=$withval
15714 else
15716 # Extract the first word of "hunspell", so it can be a program name with args.
15717 set dummy hunspell; ac_word=$2
15718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15719 $as_echo_n "checking for $ac_word... " >&6; }
15720 if ${ac_cv_prog_SPELLPROG+:} false; then :
15721 $as_echo_n "(cached) " >&6
15722 else
15723 if test -n "$SPELLPROG"; then
15724 ac_cv_prog_SPELLPROG="$SPELLPROG" # Let the user override the test.
15725 else
15726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15727 for as_dir in $PATH
15729 IFS=$as_save_IFS
15730 test -z "$as_dir" && as_dir=.
15731 for ac_exec_ext in '' $ac_executable_extensions; do
15732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15733 ac_cv_prog_SPELLPROG="hunspell"
15734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15735 break 2
15737 done
15738 done
15739 IFS=$as_save_IFS
15743 SPELLPROG=$ac_cv_prog_SPELLPROG
15744 if test -n "$SPELLPROG"; then
15745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPELLPROG" >&5
15746 $as_echo "$SPELLPROG" >&6; }
15747 else
15748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15749 $as_echo "no" >&6; }
15753 if test -z "$SPELLPROG" ; then
15754 # Extract the first word of "aspell", so it can be a program name with args.
15755 set dummy aspell; ac_word=$2
15756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15757 $as_echo_n "checking for $ac_word... " >&6; }
15758 if ${ac_cv_prog_SPELLPROG+:} false; then :
15759 $as_echo_n "(cached) " >&6
15760 else
15761 if test -n "$SPELLPROG"; then
15762 ac_cv_prog_SPELLPROG="$SPELLPROG" # Let the user override the test.
15763 else
15764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15765 for as_dir in $PATH
15767 IFS=$as_save_IFS
15768 test -z "$as_dir" && as_dir=.
15769 for ac_exec_ext in '' $ac_executable_extensions; do
15770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15771 ac_cv_prog_SPELLPROG="aspell"
15772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15773 break 2
15775 done
15776 done
15777 IFS=$as_save_IFS
15781 SPELLPROG=$ac_cv_prog_SPELLPROG
15782 if test -n "$SPELLPROG"; then
15783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPELLPROG" >&5
15784 $as_echo "$SPELLPROG" >&6; }
15785 else
15786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15787 $as_echo "no" >&6; }
15791 if test -z "$SPELLPROG" ; then
15792 # Extract the first word of "ispell", so it can be a program name with args.
15793 set dummy ispell; ac_word=$2
15794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15795 $as_echo_n "checking for $ac_word... " >&6; }
15796 if ${ac_cv_prog_SPELLPROG+:} false; then :
15797 $as_echo_n "(cached) " >&6
15798 else
15799 if test -n "$SPELLPROG"; then
15800 ac_cv_prog_SPELLPROG="$SPELLPROG" # Let the user override the test.
15801 else
15802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15803 for as_dir in $PATH
15805 IFS=$as_save_IFS
15806 test -z "$as_dir" && as_dir=.
15807 for ac_exec_ext in '' $ac_executable_extensions; do
15808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15809 ac_cv_prog_SPELLPROG="ispell"
15810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15811 break 2
15813 done
15814 done
15815 IFS=$as_save_IFS
15819 SPELLPROG=$ac_cv_prog_SPELLPROG
15820 if test -n "$SPELLPROG"; then
15821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPELLPROG" >&5
15822 $as_echo "$SPELLPROG" >&6; }
15823 else
15824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15825 $as_echo "no" >&6; }
15829 if test -z "$SPELLPROG" ; then
15830 SPELLPROG="spell"
15838 if test "x$SPELLPROG" != "xno" ; then
15839 # Extract the first word of "$SPELLPROG", so it can be a program name with args.
15840 set dummy $SPELLPROG; ac_word=$2
15841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15842 $as_echo_n "checking for $ac_word... " >&6; }
15843 if ${ac_cv_path_alpine_simple_spellcheck+:} false; then :
15844 $as_echo_n "(cached) " >&6
15845 else
15846 case $alpine_simple_spellcheck in
15847 [\\/]* | ?:[\\/]*)
15848 ac_cv_path_alpine_simple_spellcheck="$alpine_simple_spellcheck" # Let the user override the test with a path.
15851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15852 for as_dir in $PATH
15854 IFS=$as_save_IFS
15855 test -z "$as_dir" && as_dir=.
15856 for ac_exec_ext in '' $ac_executable_extensions; do
15857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15858 ac_cv_path_alpine_simple_spellcheck="$as_dir/$ac_word$ac_exec_ext"
15859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15860 break 2
15862 done
15863 done
15864 IFS=$as_save_IFS
15867 esac
15869 alpine_simple_spellcheck=$ac_cv_path_alpine_simple_spellcheck
15870 if test -n "$alpine_simple_spellcheck"; then
15871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $alpine_simple_spellcheck" >&5
15872 $as_echo "$alpine_simple_spellcheck" >&6; }
15873 else
15874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15875 $as_echo "no" >&6; }
15879 if test -n "$alpine_simple_spellcheck" ; then
15880 case "$SPELLPROG" in
15881 hunspell)
15882 alpine_simple_spellcheck="$alpine_simple_spellcheck -l"
15884 aspell)
15885 alpine_simple_spellcheck="$alpine_simple_spellcheck --dont-backup --mode=email list"
15887 ispell)
15888 alpine_simple_spellcheck="$alpine_simple_spellcheck -l"
15892 esac
15897 # Check whether --with-interactive-spellcheck was given.
15898 if test "${with_interactive_spellcheck+set}" = set; then :
15899 withval=$with_interactive_spellcheck;
15900 if test "x$withval" != "xno" ; then
15901 ISPELLPROG=$withval
15904 else
15906 # Extract the first word of "hunspell", so it can be a program name with args.
15907 set dummy hunspell; ac_word=$2
15908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15909 $as_echo_n "checking for $ac_word... " >&6; }
15910 if ${ac_cv_prog_ISPELLPROG+:} false; then :
15911 $as_echo_n "(cached) " >&6
15912 else
15913 if test -n "$ISPELLPROG"; then
15914 ac_cv_prog_ISPELLPROG="$ISPELLPROG" # Let the user override the test.
15915 else
15916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15917 for as_dir in $PATH
15919 IFS=$as_save_IFS
15920 test -z "$as_dir" && as_dir=.
15921 for ac_exec_ext in '' $ac_executable_extensions; do
15922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15923 ac_cv_prog_ISPELLPROG="hunspell"
15924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15925 break 2
15927 done
15928 done
15929 IFS=$as_save_IFS
15933 ISPELLPROG=$ac_cv_prog_ISPELLPROG
15934 if test -n "$ISPELLPROG"; then
15935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ISPELLPROG" >&5
15936 $as_echo "$ISPELLPROG" >&6; }
15937 else
15938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15939 $as_echo "no" >&6; }
15943 if test -z "$ISPELLPROG" ; then
15944 # Extract the first word of "aspell", so it can be a program name with args.
15945 set dummy aspell; ac_word=$2
15946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15947 $as_echo_n "checking for $ac_word... " >&6; }
15948 if ${ac_cv_prog_ISPELLPROG+:} false; then :
15949 $as_echo_n "(cached) " >&6
15950 else
15951 if test -n "$ISPELLPROG"; then
15952 ac_cv_prog_ISPELLPROG="$ISPELLPROG" # Let the user override the test.
15953 else
15954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15955 for as_dir in $PATH
15957 IFS=$as_save_IFS
15958 test -z "$as_dir" && as_dir=.
15959 for ac_exec_ext in '' $ac_executable_extensions; do
15960 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15961 ac_cv_prog_ISPELLPROG="aspell"
15962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15963 break 2
15965 done
15966 done
15967 IFS=$as_save_IFS
15971 ISPELLPROG=$ac_cv_prog_ISPELLPROG
15972 if test -n "$ISPELLPROG"; then
15973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ISPELLPROG" >&5
15974 $as_echo "$ISPELLPROG" >&6; }
15975 else
15976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15977 $as_echo "no" >&6; }
15981 if test -z "$SPELLPROG" ; then
15982 ISPELLPROG="ispell"
15989 if test "x$ISPELLPROG" != "xno" ; then
15990 # Extract the first word of "$ISPELLPROG", so it can be a program name with args.
15991 set dummy $ISPELLPROG; ac_word=$2
15992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15993 $as_echo_n "checking for $ac_word... " >&6; }
15994 if ${ac_cv_path_alpine_interactive_spellcheck+:} false; then :
15995 $as_echo_n "(cached) " >&6
15996 else
15997 case $alpine_interactive_spellcheck in
15998 [\\/]* | ?:[\\/]*)
15999 ac_cv_path_alpine_interactive_spellcheck="$alpine_interactive_spellcheck" # Let the user override the test with a path.
16002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16003 for as_dir in $PATH
16005 IFS=$as_save_IFS
16006 test -z "$as_dir" && as_dir=.
16007 for ac_exec_ext in '' $ac_executable_extensions; do
16008 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16009 ac_cv_path_alpine_interactive_spellcheck="$as_dir/$ac_word$ac_exec_ext"
16010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16011 break 2
16013 done
16014 done
16015 IFS=$as_save_IFS
16018 esac
16020 alpine_interactive_spellcheck=$ac_cv_path_alpine_interactive_spellcheck
16021 if test -n "$alpine_interactive_spellcheck"; then
16022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $alpine_interactive_spellcheck" >&5
16023 $as_echo "$alpine_interactive_spellcheck" >&6; }
16024 else
16025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16026 $as_echo "no" >&6; }
16030 if test -n "$alpine_interactive_spellcheck" ; then
16031 case "$ISPELLPROG" in
16032 aspell)
16033 alpine_interactive_spellcheck="$alpine_interactive_spellcheck --dont-backup --mode=email check"
16037 esac
16041 if test -n "$alpine_interactive_spellcheck" ; then
16043 cat >>confdefs.h <<_ACEOF
16044 #define DF_VAR_SPELLER "$alpine_interactive_spellcheck"
16045 _ACEOF
16049 if test -z "$alpine_simple_spellcheck" -a -n "$alpine_interactive_spellcheck" ; then
16050 alpine_simple_spellcheck=test
16053 cat >>confdefs.h <<_ACEOF
16054 #define SPELLER "$alpine_simple_spellcheck"
16055 _ACEOF
16058 case "$prefix" in
16059 NONE) dpv=/usr/local/lib/pine.conf ;;
16060 *) dpv=${prefix}/lib/pine.conf ;;
16061 esac
16063 # Check whether --with-system-pinerc was given.
16064 if test "${with_system_pinerc+set}" = set; then :
16065 withval=$with_system_pinerc;
16066 case "$withval" in
16069 yes)
16072 dpv=$withval
16074 esac
16079 cat >>confdefs.h <<_ACEOF
16080 #define SYSTEM_PINERC "$dpv"
16081 _ACEOF
16084 case "$prefix" in
16085 NONE) dpv=/usr/local/lib/pine.conf.fixed ;;
16086 *) dpv=${prefix}/lib/pine.conf.fixed ;;
16087 esac
16089 # Check whether --with-system-fixed-pinerc was given.
16090 if test "${with_system_fixed_pinerc+set}" = set; then :
16091 withval=$with_system_fixed_pinerc;
16092 case "$withval" in
16095 yes)
16098 dpv=$withval
16100 esac
16105 cat >>confdefs.h <<_ACEOF
16106 #define SYSTEM_PINERC_FIXED "$dpv"
16107 _ACEOF
16110 case "$prefix" in
16111 NONE) dpv=/usr/local/lib/pine.info ;;
16112 *) dpv=${prefix}/lib/pine.info ;;
16113 esac
16115 # Check whether --with-local-support-info was given.
16116 if test "${with_local_support_info+set}" = set; then :
16117 withval=$with_local_support_info;
16118 case "$withval" in
16121 yes)
16124 dpv=$withval
16126 esac
16131 cat >>confdefs.h <<_ACEOF
16132 #define SYSTEM_PINE_INFO_PATH "$dpv"
16133 _ACEOF
16141 dpv=150
16143 # Check whether --with-mailcheck-interval was given.
16144 if test "${with_mailcheck_interval+set}" = set; then :
16145 withval=$with_mailcheck_interval;
16146 if test "x$withval" != "xno" ; then
16147 dpv=$withval
16153 cat >>confdefs.h <<_ACEOF
16154 #define DF_MAILCHECK "$dpv"
16155 _ACEOF
16159 dpv=420
16161 # Check whether --with-checkpoint-interval was given.
16162 if test "${with_checkpoint_interval+set}" = set; then :
16163 withval=$with_checkpoint_interval;
16164 if test "x$withval" != "xno" ; then
16165 dpv=$withval
16171 cat >>confdefs.h <<_ACEOF
16172 #define CHECK_POINT_TIME $dpv
16173 _ACEOF
16177 dpv=12
16179 # Check whether --with-checkpoint-frequency was given.
16180 if test "${with_checkpoint_frequency+set}" = set; then :
16181 withval=$with_checkpoint_frequency;
16182 if test "x$withval" != "xno" ; then
16183 dpv=$withval
16189 cat >>confdefs.h <<_ACEOF
16190 #define CHECK_POINT_FREQ $dpv
16191 _ACEOF
16195 dpv=24
16197 # Check whether --with-display-rows was given.
16198 if test "${with_display_rows+set}" = set; then :
16199 withval=$with_display_rows;
16200 if test "x$withval" != "xno" ; then
16201 dpv=$withval
16207 cat >>confdefs.h <<_ACEOF
16208 #define DEFAULT_LINES_ON_TERMINAL $dpv
16209 _ACEOF
16213 dpv=80
16215 # Check whether --with-display-columns was given.
16216 if test "${with_display_columns+set}" = set; then :
16217 withval=$with_display_columns;
16218 if test "x$withval" != "xno" ; then
16219 dpv=$withval
16225 cat >>confdefs.h <<_ACEOF
16226 #define DEFAULT_COLUMNS_ON_TERMINAL $dpv
16227 _ACEOF
16231 dpv=200
16233 # Check whether --with-max-display-rows was given.
16234 if test "${with_max_display_rows+set}" = set; then :
16235 withval=$with_max_display_rows;
16236 if test "x$withval" != "xno" ; then
16237 dpv=$withval
16243 cat >>confdefs.h <<_ACEOF
16244 #define MAX_SCREEN_ROWS $dpv
16245 _ACEOF
16249 dpv=500
16251 # Check whether --with-max-display-columns was given.
16252 if test "${with_max_display_columns+set}" = set; then :
16253 withval=$with_max_display_columns;
16254 if test "x$withval" != "xno" ; then
16255 dpv=$withval
16261 cat >>confdefs.h <<_ACEOF
16262 #define MAX_SCREEN_COLS $dpv
16263 _ACEOF
16267 dpv=74
16269 # Check whether --with-fill-column was given.
16270 if test "${with_fill_column+set}" = set; then :
16271 withval=$with_fill_column;
16272 if test "x$withval" != "xno" ; then
16273 dpv=$withval
16279 cat >>confdefs.h <<_ACEOF
16280 #define DF_FILLCOL "$dpv"
16281 _ACEOF
16285 dpv=80
16287 # Check whether --with-max_fill-column was given.
16288 if test "${with_max_fill_column+set}" = set; then :
16289 withval=$with_max_fill_column;
16290 if test "x$withval" != "xno" ; then
16291 dpv=$withval
16297 cat >>confdefs.h <<_ACEOF
16298 #define MAX_FILLCOL $dpv
16299 _ACEOF
16303 dpv=2
16305 # Check whether --with-debug-level was given.
16306 if test "${with_debug_level+set}" = set; then :
16307 withval=$with_debug_level;
16308 if test "x$withval" != "xno" ; then
16309 dpv=$withval
16315 cat >>confdefs.h <<_ACEOF
16316 #define DEFAULT_DEBUG $dpv
16317 _ACEOF
16321 dpv=4
16323 # Check whether --with-debug-files was given.
16324 if test "${with_debug_files+set}" = set; then :
16325 withval=$with_debug_files;
16326 if test "x$withval" != "xno" ; then
16327 dpv=$withval
16333 cat >>confdefs.h <<_ACEOF
16334 #define NUMDEBUGFILES $dpv
16335 _ACEOF
16339 dpv=.pine-debug
16341 # Check whether --with-debug-file was given.
16342 if test "${with_debug_file+set}" = set; then :
16343 withval=$with_debug_file;
16344 if test "x$withval" != "xno" ; then
16345 dpv=$withval
16351 cat >>confdefs.h <<_ACEOF
16352 #define DEBUGFILE "$dpv"
16353 _ACEOF
16357 dpv="\$Forwarded"
16359 # Check whether --with-forwarded-keyword was given.
16360 if test "${with_forwarded_keyword+set}" = set; then :
16361 withval=$with_forwarded_keyword;
16362 if test "x$withval" != "xno" ; then
16363 dpv=$withval
16369 cat >>confdefs.h <<_ACEOF
16370 #define FORWARDED_FLAG "$dpv"
16371 _ACEOF
16375 dpv=2
16377 # Check whether --with-display-overlap was given.
16378 if test "${with_display_overlap+set}" = set; then :
16379 withval=$with_display_overlap;
16380 if test "x$withval" != "xno" ; then
16381 dpv=$withval
16387 cat >>confdefs.h <<_ACEOF
16388 #define DF_OVERLAP "$dpv"
16389 _ACEOF
16393 dpv=0
16395 # Check whether --with-display-margin was given.
16396 if test "${with_display_margin+set}" = set; then :
16397 withval=$with_display_margin;
16398 if test "x$withval" != "xno" ; then
16399 dpv=$withval
16405 cat >>confdefs.h <<_ACEOF
16406 #define DF_MARGIN "$dpv"
16407 _ACEOF
16411 dpv=sent-mail
16413 # Check whether --with-default-fcc was given.
16414 if test "${with_default_fcc+set}" = set; then :
16415 withval=$with_default_fcc;
16416 if test "x$withval" != "xno" ; then
16417 dpv=$withval
16423 cat >>confdefs.h <<_ACEOF
16424 #define DF_DEFAULT_FCC "$dpv"
16425 _ACEOF
16429 dpv=saved-messages
16431 # Check whether --with-default-save-folder was given.
16432 if test "${with_default_save_folder+set}" = set; then :
16433 withval=$with_default_save_folder;
16434 if test "x$withval" != "xno" ; then
16435 dpv=$withval
16441 cat >>confdefs.h <<_ACEOF
16442 #define DEFAULT_SAVE "$dpv"
16443 _ACEOF
16447 dpv=postponed-mail
16449 # Check whether --with-default-legacy-postponed-folder was given.
16450 if test "${with_default_legacy_postponed_folder+set}" = set; then :
16451 withval=$with_default_legacy_postponed_folder;
16452 if test "x$withval" != "xno" ; then
16453 dpv=$withval
16459 cat >>confdefs.h <<_ACEOF
16460 #define POSTPONED_MAIL "$dpv"
16461 _ACEOF
16465 dpv=postponed-msgs
16467 # Check whether --with-default-postponed-folder was given.
16468 if test "${with_default_postponed_folder+set}" = set; then :
16469 withval=$with_default_postponed_folder;
16470 if test "x$withval" != "xno" ; then
16471 dpv=$withval
16477 cat >>confdefs.h <<_ACEOF
16478 #define POSTPONED_MSGS "$dpv"
16479 _ACEOF
16483 dpv=Trash
16485 # Check whether --with-default-trash-folder was given.
16486 if test "${with_default_trash_folder+set}" = set; then :
16487 withval=$with_default_trash_folder;
16488 if test "x$withval" != "xno" ; then
16489 dpv=$withval
16495 cat >>confdefs.h <<_ACEOF
16496 #define TRASH_FOLDER "$dpv"
16497 _ACEOF
16501 dpv=.pine-interrupted-mail
16503 # Check whether --with-default-interrupted-mail was given.
16504 if test "${with_default_interrupted_mail+set}" = set; then :
16505 withval=$with_default_interrupted_mail;
16506 if test "x$withval" != "xno" ; then
16507 dpv=$withval
16513 cat >>confdefs.h <<_ACEOF
16514 #define INTERRUPTED_MAIL "$dpv"
16515 _ACEOF
16519 dpv=dead.letter
16521 # Check whether --with-default-dead-letter-folder was given.
16522 if test "${with_default_dead_letter_folder+set}" = set; then :
16523 withval=$with_default_dead_letter_folder;
16524 if test "x$withval" != "xno" ; then
16525 dpv=$withval
16531 cat >>confdefs.h <<_ACEOF
16532 #define DEADLETTER "$dpv"
16533 _ACEOF
16537 dpv=mail
16539 # Check whether --with-default-mail-directory was given.
16540 if test "${with_default_mail_directory+set}" = set; then :
16541 withval=$with_default_mail_directory;
16542 if test "x$withval" != "xno" ; then
16543 dpv=$withval
16549 cat >>confdefs.h <<_ACEOF
16550 #define DF_MAIL_DIRECTORY "$dpv"
16551 _ACEOF
16555 dpv=INBOX
16557 # Check whether --with-default-inbox-name was given.
16558 if test "${with_default_inbox_name+set}" = set; then :
16559 withval=$with_default_inbox_name;
16560 if test "x$withval" != "xno" ; then
16561 dpv=$withval
16567 cat >>confdefs.h <<_ACEOF
16568 #define INBOX_NAME "$dpv"
16569 _ACEOF
16573 dpv=.signature
16575 # Check whether --with-default-signature-file was given.
16576 if test "${with_default_signature_file+set}" = set; then :
16577 withval=$with_default_signature_file;
16578 if test "x$withval" != "xno" ; then
16579 dpv=$withval
16585 cat >>confdefs.h <<_ACEOF
16586 #define DF_SIGNATURE_FILE "$dpv"
16587 _ACEOF
16591 dpv=no
16593 # Check whether --with-default-elm-style-save was given.
16594 if test "${with_default_elm_style_save+set}" = set; then :
16595 withval=$with_default_elm_style_save;
16596 if test "x$withval" != "xno" ; then
16597 dpv=$withval
16603 cat >>confdefs.h <<_ACEOF
16604 #define DF_ELM_STYLE_SAVE "$dpv"
16605 _ACEOF
16609 dpv=no
16611 # Check whether --with-default-header-in-reply was given.
16612 if test "${with_default_header_in_reply+set}" = set; then :
16613 withval=$with_default_header_in_reply;
16614 if test "x$withval" != "xno" ; then
16615 dpv=$withval
16621 cat >>confdefs.h <<_ACEOF
16622 #define DF_HEADER_IN_REPLY "$dpv"
16623 _ACEOF
16627 dpv=no
16629 # Check whether --with-default-old-style-reply was given.
16630 if test "${with_default_old_style_reply+set}" = set; then :
16631 withval=$with_default_old_style_reply;
16632 if test "x$withval" != "xno" ; then
16633 dpv=$withval
16639 cat >>confdefs.h <<_ACEOF
16640 #define DF_OLD_STYLE_REPLY "$dpv"
16641 _ACEOF
16645 dpv=no
16647 # Check whether --with-default-use-only-domain-name was given.
16648 if test "${with_default_use_only_domain_name+set}" = set; then :
16649 withval=$with_default_use_only_domain_name;
16650 if test "x$withval" != "xno" ; then
16651 dpv=$withval
16657 cat >>confdefs.h <<_ACEOF
16658 #define DF_USE_ONLY_DOMAIN_NAME "$dpv"
16659 _ACEOF
16663 dpv=no
16665 # Check whether --with-default-save-by-sender was given.
16666 if test "${with_default_save_by_sender+set}" = set; then :
16667 withval=$with_default_save_by_sender;
16668 if test "x$withval" != "xno" ; then
16669 dpv=$withval
16675 cat >>confdefs.h <<_ACEOF
16676 #define DF_SAVE_BY_SENDER "$dpv"
16677 _ACEOF
16681 dpv=arrival
16683 # Check whether --with-default-sort-key was given.
16684 if test "${with_default_sort_key+set}" = set; then :
16685 withval=$with_default_sort_key;
16686 if test "x$withval" != "xno" ; then
16687 dpv=$withval
16693 cat >>confdefs.h <<_ACEOF
16694 #define DF_SORT_KEY "$dpv"
16695 _ACEOF
16699 dpv=fullname-with-lists-last
16701 # Check whether --with-default-addressbook-sort-rule was given.
16702 if test "${with_default_addressbook_sort_rule+set}" = set; then :
16703 withval=$with_default_addressbook_sort_rule;
16704 if test "x$withval" != "xno" ; then
16705 dpv=$withval
16711 cat >>confdefs.h <<_ACEOF
16712 #define DF_AB_SORT_RULE "$dpv"
16713 _ACEOF
16717 dpv=alphabetical
16719 # Check whether --with-default-folder-sort-rule was given.
16720 if test "${with_default_folder_sort_rule+set}" = set; then :
16721 withval=$with_default_folder_sort_rule;
16722 if test "x$withval" != "xno" ; then
16723 dpv=$withval
16729 cat >>confdefs.h <<_ACEOF
16730 #define DF_FLD_SORT_RULE "$dpv"
16731 _ACEOF
16735 dpv=default-folder
16737 # Check whether --with-default-saved-message-name-rule was given.
16738 if test "${with_default_saved_message_name_rule+set}" = set; then :
16739 withval=$with_default_saved_message_name_rule;
16740 if test "x$withval" != "xno" ; then
16741 dpv=$withval
16747 cat >>confdefs.h <<_ACEOF
16748 #define DF_SAVED_MSG_NAME_RULE "$dpv"
16749 _ACEOF
16753 dpv=default-fcc
16755 # Check whether --with-default-fcc-rule was given.
16756 if test "${with_default_fcc_rule+set}" = set; then :
16757 withval=$with_default_fcc_rule;
16758 if test "x$withval" != "xno" ; then
16759 dpv=$withval
16765 cat >>confdefs.h <<_ACEOF
16766 #define DF_FCC_RULE "$dpv"
16767 _ACEOF
16771 dpv=lpr
16773 # Check whether --with-default-standard-printer was given.
16774 if test "${with_default_standard_printer+set}" = set; then :
16775 withval=$with_default_standard_printer;
16776 if test "x$withval" != "xno" ; then
16777 dpv=$withval
16783 cat >>confdefs.h <<_ACEOF
16784 #define DF_STANDARD_PRINTER "$dpv"
16785 _ACEOF
16789 dpv=attached-to-ansi
16791 # Check whether --with-default-ansi-printer was given.
16792 if test "${with_default_ansi_printer+set}" = set; then :
16793 withval=$with_default_ansi_printer;
16794 if test "x$withval" != "xno" ; then
16795 dpv=$withval
16801 cat >>confdefs.h <<_ACEOF
16802 #define ANSI_PRINTER "$dpv"
16803 _ACEOF
16807 dpv=.addressbook
16809 # Check whether --with-default-addressbook was given.
16810 if test "${with_default_addressbook+set}" = set; then :
16811 withval=$with_default_addressbook;
16812 if test "x$withval" != "xno" ; then
16813 dpv=$withval
16819 cat >>confdefs.h <<_ACEOF
16820 #define DF_ADDRESSBOOK "$dpv"
16821 _ACEOF
16825 dpv="Local Support"
16827 # Check whether --with-default-local-fullname was given.
16828 if test "${with_default_local_fullname+set}" = set; then :
16829 withval=$with_default_local_fullname;
16830 if test "x$withval" != "xno" ; then
16831 dpv=$withval
16837 cat >>confdefs.h <<_ACEOF
16838 #define DF_LOCAL_FULLNAME "$dpv"
16839 _ACEOF
16843 dpv=postmaster
16845 # Check whether --with-default-local-address was given.
16846 if test "${with_default_local_address+set}" = set; then :
16847 withval=$with_default_local_address;
16848 if test "x$withval" != "xno" ; then
16849 dpv=$withval
16855 cat >>confdefs.h <<_ACEOF
16856 #define DF_LOCAL_ADDRESS "$dpv"
16857 _ACEOF
16861 dpv=1
16863 # Check whether --with-default-keyboard-lock-count was given.
16864 if test "${with_default_keyboard_lock_count+set}" = set; then :
16865 withval=$with_default_keyboard_lock_count;
16866 if test "x$withval" != "xno" ; then
16867 dpv=$withval
16873 cat >>confdefs.h <<_ACEOF
16874 #define DF_KBLOCK_PASSWD_COUNT "$dpv"
16875 _ACEOF
16879 dpv=3
16881 # Check whether --with-default-remote-addressbook-history was given.
16882 if test "${with_default_remote_addressbook_history+set}" = set; then :
16883 withval=$with_default_remote_addressbook_history;
16884 if test "x$withval" != "xno" ; then
16885 dpv=$withval
16891 cat >>confdefs.h <<_ACEOF
16892 #define DF_REMOTE_ABOOK_HISTORY "$dpv"
16893 _ACEOF
16897 dpv=.alpine-html
16899 # Check whether --with-default-html-directory was given.
16900 if test "${with_default_html_directory+set}" = set; then :
16901 withval=$with_default_html_directory;
16902 if test "x$withval" != "xno" ; then
16903 dpv=$withval
16909 cat >>confdefs.h <<_ACEOF
16910 #define DF_HTML_DIRECTORY "$dpv"
16911 _ACEOF
16915 dpv=.alpine-smime/public
16917 # Check whether --with-smime-public-cert-directory was given.
16918 if test "${with_smime_public_cert_directory+set}" = set; then :
16919 withval=$with_smime_public_cert_directory;
16920 if test "x$withval" != "xno" ; then
16921 dpv=$withval
16927 cat >>confdefs.h <<_ACEOF
16928 #define DF_PUBLICCERT_DIR "$dpv"
16929 _ACEOF
16933 dpv=.alpine-smime/private
16935 # Check whether --with-smime-private-key-directory was given.
16936 if test "${with_smime_private_key_directory+set}" = set; then :
16937 withval=$with_smime_private_key_directory;
16938 if test "x$withval" != "xno" ; then
16939 dpv=$withval
16945 cat >>confdefs.h <<_ACEOF
16946 #define DF_PRIVATEKEY_DIR "$dpv"
16947 _ACEOF
16951 dpv=.alpine-smime/ca
16953 # Check whether --with-smime-cacert-directory was given.
16954 if test "${with_smime_cacert_directory+set}" = set; then :
16955 withval=$with_smime_cacert_directory;
16956 if test "x$withval" != "xno" ; then
16957 dpv=$withval
16963 cat >>confdefs.h <<_ACEOF
16964 #define DF_CACERT_DIR "$dpv"
16965 _ACEOF
16969 dpv=ANSI_PRINTER
16971 # Check whether --with-default-printer was given.
16972 if test "${with_default_printer+set}" = set; then :
16973 withval=$with_default_printer;
16974 if test "x$withval" != "xno" ; then
16975 dpv=$withval
16981 cat >>confdefs.h <<_ACEOF
16982 #define DF_DEFAULT_PRINTER $dpv
16983 _ACEOF
16988 cat >>confdefs.h <<_ACEOF
16989 #define DF_PUBLIC_CONTAINER "PublicContainer"
16990 _ACEOF
16993 cat >>confdefs.h <<_ACEOF
16994 #define DF_PRIVATE_CONTAINER "PrivateContainer"
16995 _ACEOF
16998 cat >>confdefs.h <<_ACEOF
16999 #define DF_CA_CONTAINER "CAContainer"
17000 _ACEOF
17003 cat >>confdefs.h <<_ACEOF
17004 #define DEFAULT_SSLUSERCAPATH ".alpine-certs"
17005 _ACEOF
17008 cat >>confdefs.h <<_ACEOF
17009 #define DEFAULT_SSLUSERCAFILE ".alpine-certs/certs.pem"
17010 _ACEOF
17014 # Check whether --with-passfile was given.
17015 if test "${with_passfile+set}" = set; then :
17016 withval=$with_passfile;
17017 case "$withval" in
17020 yes)
17023 alpine_PASSFILE=$withval
17025 esac
17032 # Check whether --with-local-password-cache was given.
17033 if test "${with_local_password_cache+set}" = set; then :
17034 withval=$with_local_password_cache;
17035 alpine_os_credential_cache=$withval
17041 # Check whether --with-local-password-cache-method was given.
17042 if test "${with_local_password_cache_method+set}" = set; then :
17043 withval=$with_local_password_cache_method;
17044 alpine_os_credential_cache_method=$withval
17049 if test -n "$alpine_PASSFILE" ; then
17050 case $alpine_os_credential_cache in
17054 alpine_os_credential_cache="no"
17055 { $as_echo "$as_me:${as_lineno-$LINENO}: --with-passfile definition overrides OS-Specific password caching" >&5
17056 $as_echo "$as_me: --with-passfile definition overrides OS-Specific password caching" >&6;}
17058 esac
17060 cat >>confdefs.h <<_ACEOF
17061 #define PASSFILE "$alpine_PASSFILE"
17062 _ACEOF
17067 # Check whether --with-default-sshpath was given.
17068 if test "${with_default_sshpath+set}" = set; then :
17069 withval=$with_default_sshpath;
17070 case "$withval" in
17073 yes)
17077 cat >>confdefs.h <<_ACEOF
17078 #define DF_SSHPATH "$withval"
17079 _ACEOF
17082 esac
17088 # Check whether --with-default-sshcmd was given.
17089 if test "${with_default_sshcmd+set}" = set; then :
17090 withval=$with_default_sshcmd;
17091 case "$withval" in
17094 yes)
17098 cat >>confdefs.h <<_ACEOF
17099 #define DF_SSHCMD "$withval"
17100 _ACEOF
17103 esac
17109 # Check whether --with-ssl was given.
17110 if test "${with_ssl+set}" = set; then :
17111 withval=$with_ssl; with_ssl=$withval
17115 if test "x$with_ssl" = "xno" ; then
17116 alpine_SSLTYPE="none"
17117 elif test -d /usr/local/ssl ; then
17118 alpine_SSLDIR="/usr/local/ssl"
17119 alpine_SSLINCLUDE="$alpine_SSLDIR/include"
17120 alpine_SSLLIB="$alpine_SSLDIR/lib"
17121 alpine_SSLCERTS="$alpine_SSLDIR/certs"
17122 alpine_SSLTYPE="nopwd"
17123 else
17124 case $host in
17125 *-linux*|*-k*bsd*-gnu*|*-gnu*)
17126 if test -f /etc/fedora-release -o -f /etc/redhat-release -o -f /etc/redhat_version ; then
17127 alpine_SSLTYPE="nopwd"
17128 if test -d /etc/pki/tls ; then
17129 alpine_SSLDIR="/etc/pki/tls"
17130 else
17131 alpine_SSLDIR="/usr/share/ssl"
17133 alpine_SSLCERTS="$alpine_SSLDIR/certs"
17134 alpine_SSLKEYS="$alpine_SSLDIR/private"
17135 alpine_SSLINCLUDE="/usr/include/openssl"
17136 alpine_SSLLIB="/usr/lib"
17137 elif test -f /etc/mandrake-release ; then
17138 alpine_SSLDIR="/usr/lib/ssl"
17139 alpine_SSLCERTS="$alpine_SSLDIR/certs"
17140 alpine_SSLKEYS="$alpine_SSLDIR/private"
17141 alpine_SSLINCLUDE="/usr/include/openssl"
17142 alpine_SSLLIB="/usr/lib"
17143 elif test -f /etc/SuSE-release ; then
17144 alpine_SSLTYPE="nopwd"
17145 alpine_SSLDIR="/etc/ssl"
17146 alpine_SSLCERTS="$alpine_SSLDIR/certs"
17147 alpine_SSLKEYS="$alpine_SSLDIR/private"
17148 alpine_SSLINCLUDE="/usr/include/openssl"
17149 alpine_SSLLIB="/usr/lib"
17150 elif test -d /etc/osso-af-init ; then
17151 alpine_SSLTYPE="nopwd"
17152 alpine_SSLDIR="/usr"
17153 alpine_SSLCERTS="/usr/share/certs"
17154 alpine_SSLINCLUDE="/usr/include/openssl"
17155 alpine_SSLLIB="/usr/lib"
17156 elif test -f /etc/debian_release -o -f /etc/debian_version ; then
17157 if test ! -d /etc/osso-af-init ; then
17158 alpine_SSLDIR="/etc/ssl"
17159 alpine_SSLCERTS="$alpine_SSLDIR/certs"
17160 alpine_SSLKEYS="$alpine_SSLDIR/private"
17161 alpine_SSLINCLUDE="/usr/include/openssl"
17162 alpine_SSLLIB="/usr/lib"
17164 elif test -f /etc/manjaro-release ; then
17165 alpine_SSLDIR="/etc/ssl"
17166 alpine_SSLCERTS="$alpine_SSLDIR/certs"
17167 alpine_SSLKEYS="$alpine_SSLDIR/private"
17168 alpine_SSLINCLUDE="/usr/include/openssl"
17169 alpine_SSLLIB="/usr/lib"
17170 else
17171 alpine_SSLTYPE="nopwd"
17172 alpine_SSLDIR="/usr"
17173 alpine_SSLCERTS="/etc/ssl/certs"
17176 *-apple-darwin*)
17177 alpine_SSLTYPE="nopwd"
17178 alpine_SSLCERTS_ORIG="/System/Library/OpenSSL/certs"
17179 if test -d /usr/local/opt/openssl ; then
17180 alpine_SSLDIR="/usr/local/opt/openssl"
17181 alpine_SSLINCLUDE="$alpine_SSLDIR/include"
17182 alpine_SSLLIB="$alpine_SSLDIR/lib"
17183 alpine_SSLCERTS="/usr/local/etc/openssl"
17184 alpine_SSLKEYS="$alpine_SSLDIR/private"
17185 elif test -d /opt/local/etc/openssl ; then
17186 alpine_SSLDIR="/opt/local"
17187 alpine_SSLINCLUDE="$alpine_SSLDIR/include"
17188 alpine_SSLLIB="$alpine_SSLDIR/lib"
17189 alpine_SSLCERTS="/opt/local/etc/openssl/certs"
17190 alpine_SSLKEYS="/opt/local/etc/openssl/private"
17191 elif test -d /sw/etc/ssl ; then
17192 alpine_SSLDIR="/sw/etc/ssl"
17193 alpine_SSLINCLUDE="/sw/include"
17194 alpine_SSLLIB="/sw/lib"
17195 alpine_SSLCERTS="/sw/etc/ssl/certs"
17196 alpine_SSLKEYS="/sw/etc/ssl/private"
17197 elif test -d /usr/local/ssl ; then
17198 alpine_SSLDIR="/usr/local/ssl"
17199 elif test -d /System/Library/OpenSSL ; then
17200 alpine_SSLDIR="/System/Library/OpenSSL"
17201 alpine_SSLCERTS="$alpine_SSLDIR/certs"
17202 alpine_SSLKEYS="$alpine_SSLDIR/private"
17203 alpine_SSLLIB="/usr/lib"
17204 alpine_SSLINCLUDE="/usr/include/openssl"
17207 *-*-netbsd*)
17208 alpine_SSLDIR="/etc/openssl"
17209 alpine_SSLCERTS="$alpine_SSLDIR/certs"
17210 alpine_SSLKEYS="$alpine_SSLDIR/private"
17211 alpine_SSLINCLUDE="/usr/include/openssl"
17212 alpine_SSLLIB="/usr/lib"
17214 *-*-dragonfly*)
17215 alpine_SSLDIR="/etc/openssl"
17216 alpine_SSLCERTS="$alpine_SSLDIR/certs"
17217 alpine_SSLKEYS="$alpine_SSLDIR/private"
17218 alpine_SSLINCLUDE="/usr/include/openssl"
17219 alpine_SSLLIB="/usr/lib"
17221 *-openbsd*)
17222 alpine_SSLTYPE="nopwd"
17223 alpine_SSLDIR="/usr"
17224 alpine_SSLCERTS="/etc/ssl/certs"
17226 *-*-freebsd*)
17227 alpine_SSLDIR="/etc/ssl"
17228 alpine_SSLCERTS="$alpine_SSLDIR/certs"
17229 alpine_SSLKEYS="$alpine_SSLDIR/private"
17230 if test -d /usr/local/include/openssl ; then
17231 alpine_SSLINCLUDE="/usr/local/include/openssl"
17232 alpine_SSLLIB="/usr/local/lib"
17233 else
17234 alpine_SSLINCLUDE="/usr/include/openssl"
17235 alpine_SSLLIB="/usr/lib"
17238 *-*-openbsd*)
17239 alpine_SSLDIR="/etc/ssl"
17240 alpine_SSLINCLUDE="/usr/include/openssl"
17241 alpine_SSLLIB="/usr/lib"
17242 alpine_SSLCERTS="/etc/ssl"
17243 alpine_SSLKEYS="/etc/ssl/private"
17245 *-*-cygwin)
17246 alpine_SSLDIR="/usr/ssl"
17247 alpine_SSLCERTS="$alpine_SSLDIR/certs"
17248 alpine_SSLKEYS="$alpine_SSLDIR/certs"
17249 alpine_SSLINCLUDE="/usr/include/openssl"
17250 alpine_SSLLIB="/usr/lib"
17252 *-sco-sysv* | *-sysv*UnixWare | *-sysv*OpenUNIX)
17253 alpine_SSLTYPE="sco.nopwd"
17254 alpine_SSLDIR="/usr/local/ssl"
17256 *-*-solaris*)
17257 if test -d /usr/include/openssl ; then
17258 alpine_SSLINCLUDE="/usr/include/openssl"
17259 elif test -d /usr/sfw/include/openssl ; then
17260 alpine_SSLDIR="/usr/sfw"
17261 elif test -d /opt/csw/include/openssl ; then
17262 alpine_SSLDIR="/opt/csw"
17263 if test -d /opt/csw/ssl/certs ; then
17264 alpine_SSLCERTS="/opt/csw/ssl/certs"
17267 if test -z "$alpine_SSLCERTS" -a -d /etc/certs ; then
17268 alpine_SSLCERTS="/etc/certs"
17272 alpine_SSLTYPE="nopwd"
17273 alpine_SSLDIR="/usr/local/ssl"
17275 esac
17278 if test "x$alpine_SSLTYPE" != "xnone" ; then
17280 # Check whether --with-ssl-dir was given.
17281 if test "${with_ssl_dir+set}" = set; then :
17282 withval=$with_ssl_dir;
17283 if test "x$withval" != "xno" ; then
17284 alpine_SSLDIR=$withval
17285 alpine_SSLINCLUDE=$alpine_SSLDIR/include
17286 alpine_SSLLIB=$alpine_SSLDIR/lib
17293 # Check whether --with-ssl-certs-dir was given.
17294 if test "${with_ssl_certs_dir+set}" = set; then :
17295 withval=$with_ssl_certs_dir;
17296 if test "x$withval" != "xno" ; then
17297 alpine_SSLCERTS=$withval
17304 # Check whether --with-ssl-include-dir was given.
17305 if test "${with_ssl_include_dir+set}" = set; then :
17306 withval=$with_ssl_include_dir;
17307 if test "x$withval" != "xno" ; then
17308 alpine_SSLINCLUDE=$withval
17315 # Check whether --with-ssl-lib-dir was given.
17316 if test "${with_ssl_lib_dir+set}" = set; then :
17317 withval=$with_ssl_lib_dir;
17318 if test "x$withval" != "xno" ; then
17319 alpine_SSLLIB=$withval
17325 if test -n "$alpine_SSLINCLUDE" ; then
17326 CPPFLAGS="-I$alpine_SSLINCLUDE $CPPFLAGS"
17327 elif test -n "$alpine_SSLDIR" ; then
17328 CPPFLAGS="-I${alpine_SSLDIR}/include $CPPFLAGS"
17330 if test -n "$alpine_SSLLIB" ; then
17331 LDFLAGS="-L$alpine_SSLLIB $LDFLAGS"
17332 elif test -n "$alpine_SSLDIR" ; then
17333 LDFLAGS="-L${alpine_SSLDIR}/lib $LDFLAGS"
17337 if test "x$alpine_SSLTYPE" != "xnone" ; then
17338 alpine_default_SSLMIN="no_min"
17339 alpine_default_SSLMAX="no_max"
17340 alpine_default_RANGE="${alpine_default_SSLMIN},${alpine_default_SSLMAX}"
17341 alpine_ENCRYPTION="$alpine_default_SSLMIN ssl3 tls1 tls1_1 tls1_2 tls1_3 $alpine_default_SSLMAX"
17342 alpine_SSLMIN="$alpine_default_SSLMIN"
17343 alpine_SSLMAX="$alpine_default_SSLMAX"
17344 alpine_RANGE="$alpine_default_RANGE"
17346 # Check whether --with-encryption-minimum-version was given.
17347 if test "${with_encryption_minimum_version+set}" = set; then :
17348 withval=$with_encryption_minimum_version;
17349 if test "x$withval" != "xno" ; then
17350 alpine_SSLMIN=$withval
17356 # Check whether --with-encryption-maximum-version was given.
17357 if test "${with_encryption_maximum_version+set}" = set; then :
17358 withval=$with_encryption_maximum_version;
17359 if test "x$withval" != "xno" ; then
17360 alpine_SSLMAX=$withval
17365 alpine_RANGE="$alpine_SSLMIN $alpine_SSLMAX"
17366 for range in ${alpine_RANGE} ; do
17367 for encryption in ${alpine_ENCRYPTION} ; do
17368 if test "x$range" = "x$encryption" ; then
17369 if test -z $alpine_min ; then
17370 alpine_min="yes"
17371 else
17372 alpine_max="yes"
17375 done
17376 done
17378 if test -z $alpine_max ; then
17379 as_fn_error $? "Unrecognized maximum encryption version: $alpine_max" "$LINENO" 5
17382 if test -z $alpine_min ; then
17383 as_fn_error $? "Unrecognized minimum encryption version: $alpine_min" "$LINENO" 5
17386 if test "x$alpine_SSLMIN" != "x$alpine_SSLMAX" ; then
17387 alpine_RANGE_FEASIBLE=`echo "$alpine_ENCRYPTION" | sed "s/^.*$alpine_SSLMIN//" | grep "$alpine_SSLMAX"`
17388 if test -n "$alpine_RANGE_FEASIBLE" ; then
17389 alpine_RANGE="${alpine_SSLMIN},${alpine_SSLMAX}"
17390 else
17391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Reversing order of minimum and maximum encryption" >&5
17392 $as_echo "$as_me: WARNING: Reversing order of minimum and maximum encryption" >&2;}
17393 alpine_RANGE="${alpine_SSLMAX},${alpine_SSLMIN}"
17395 else
17396 if test "x$alpine_SSLMIN" = "x$alpine_default_SSLMIN" ; then
17397 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Overriding maximum encryption to default" >&5
17398 $as_echo "$as_me: WARNING: Overriding maximum encryption to default" >&2;}
17399 alpine_SSLMAX="$alpine_default_SSLMAX"
17401 if test "x$alpine_SSLMAX" = "x$alpine_default_SSLMAX" ; then
17402 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Overriding minimum encryption to default" >&5
17403 $as_echo "$as_me: WARNING: Overriding minimum encryption to default" >&2;}
17404 alpine_SSLMIN="$alpine_default_SSLMIN"
17406 alpine_RANGE="${alpine_SSLMIN},${alpine_SSLMAX}"
17409 dpv=$alpine_RANGE
17411 # Check whether --with-encryption-range was given.
17412 if test "${with_encryption_range+set}" = set; then :
17413 withval=$with_encryption_range;
17414 if test "x$withval" != "xno" ; then
17415 dpv=$withval
17421 cat >>confdefs.h <<_ACEOF
17422 #define DF_ENCRYPTION_RANGE "$dpv"
17423 _ACEOF
17429 # Check whether --with-krb5 was given.
17430 if test "${with_krb5+set}" = set; then :
17431 withval=$with_krb5; with_krb5=$withval
17435 if test "x$with_krb5" = "xno" ; then
17436 alpine_GSSTYPE="none"
17437 else
17438 alpine_GSSTYPE=
17441 # Check whether --with-krb5-dir was given.
17442 if test "${with_krb5_dir+set}" = set; then :
17443 withval=$with_krb5_dir;
17444 if test "x$withval" != "xno" ; then
17445 CPPFLAGS="$CPPFLAGS -I${withval}/include"
17446 LDFLAGS="$LDFLAGS -L${withval}/lib"
17453 # Check whether --with-krb5-include-dir was given.
17454 if test "${with_krb5_include_dir+set}" = set; then :
17455 withval=$with_krb5_include_dir;
17456 if test "x$withval" != "xno" ; then
17457 CPPFLAGS="$CPPFLAGS -I$withval"
17464 # Check whether --with-krb5-lib-dir was given.
17465 if test "${with_krb5_lib_dir+set}" = set; then :
17466 withval=$with_krb5_lib_dir;
17467 if test "x$withval" != "xno" ; then
17468 LDFLAGS="$LDFLAGS -L$withval"
17476 # Check whether --with-ldap was given.
17477 if test "${with_ldap+set}" = set; then :
17478 withval=$with_ldap; with_ldap=$withval
17482 if test "x$with_ldap" = "xno" ; then
17483 alpine_with_ldap=
17484 { $as_echo "$as_me:${as_lineno-$LINENO}: Excluding LDAP Support" >&5
17485 $as_echo "$as_me: Excluding LDAP Support" >&6;}
17486 else
17488 case $host in
17489 *-*-freebsd*)
17490 alpine_LDAPDIR="/usr/local"
17491 alpine_LDAPINCLUDE="${alpine_LDAPDIR}/include"
17492 alpine_LDAPLIB="${alpine_LDAPDIR}/lib"
17494 esac;
17496 alpine_with_ldap=yes
17499 # Check whether --with-ldap-dir was given.
17500 if test "${with_ldap_dir+set}" = set; then :
17501 withval=$with_ldap_dir;
17502 if test "x$withval" != "xno" ; then
17503 alpine_LDAPDIR="${withval}"
17504 alpine_LDAPINCLUDE="${alpine_LDAPDIR}/include"
17505 alpine_LDAPLIB="${alpine_LDAPDIR}/lib"
17512 # Check whether --with-ldap-include-dir was given.
17513 if test "${with_ldap_include_dir+set}" = set; then :
17514 withval=$with_ldap_include_dir;
17515 if test "x$withval" != "xno" ; then
17516 alpine_LDAPINCLUDE="$withval"
17523 # Check whether --with-ldap-lib-dir was given.
17524 if test "${with_ldap_lib_dir+set}" = set; then :
17525 withval=$with_ldap_lib_dir;
17526 if test "x$withval" != "xno" ; then
17527 alpine_LDAPLIB="${withval}"
17533 if test -n "$alpine_LDAPINCLUDE" ; then
17534 CPPFLAGS="$CPPFLAGS -I${alpine_LDAPINCLUDE}/include"
17536 if test -n "$alpine_LDAPLIB" ; then
17537 LDFLAGS="$LDFLAGS -L${alpine_LDAPLIB}/lib"
17542 # Check whether --with-smime was given.
17543 if test "${with_smime+set}" = set; then :
17544 withval=$with_smime; with_smime=$withval
17549 # Check whether --with-tcl was given.
17550 if test "${with_tcl+set}" = set; then :
17551 withval=$with_tcl; with_tcl=$withval
17555 if test "x$with_tcl" = "xno" ; then
17556 WEB_BUILD=
17557 { $as_echo "$as_me:${as_lineno-$LINENO}: Excluding TCL Support, and thus Web Alpine Support" >&5
17558 $as_echo "$as_me: Excluding TCL Support, and thus Web Alpine Support" >&6;}
17559 else
17561 # Check whether --with-tcl-lib-dir was given.
17562 if test "${with_tcl_lib_dir+set}" = set; then :
17563 withval=$with_tcl_lib_dir;
17564 if test "x$withval" != "xno" ; then
17565 alpine_TCLLIBDIR=$withval
17566 if test -n "$alpine_TCLLIBDIR" ; then
17567 LDFLAGS="-L$alpine_TCLLIBDIR $LDFLAGS"
17574 # Check whether --with-tcl-lib was given.
17575 if test "${with_tcl_lib+set}" = set; then :
17576 withval=$with_tcl_lib;
17577 if test "x$withval" != "xno" ; then
17578 alpine_TCLLIB=$withval
17584 # Check whether --with-tcl-include was given.
17585 if test "${with_tcl_include+set}" = set; then :
17586 withval=$with_tcl_include;
17587 if test "x$withval" != "xno" ; then
17588 CPPFLAGS="$CPPFLAGS -I$withval"
17589 alpine_TCLINC=$withval
17597 # Check whether --with-supplied-regex was given.
17598 if test "${with_supplied_regex+set}" = set; then :
17599 withval=$with_supplied_regex; alpine_REGEX=$withval
17604 # Check whether --with-pthread was given.
17605 if test "${with_pthread+set}" = set; then :
17606 withval=$with_pthread; with_pthread=$withval
17611 # Check whether --with-system-mail-directory was given.
17612 if test "${with_system_mail_directory+set}" = set; then :
17613 withval=$with_system_mail_directory;
17614 if test "x$withval" != "xno" ; then
17615 alpine_with_local_maildir="$withval"
17622 # Check whether --with-c-client-target was given.
17623 if test "${with_c_client_target+set}" = set; then :
17624 withval=$with_c_client_target;
17625 if test "x$withval" != "xno" ;then
17626 alpine_with_c_client_target="$withval"
17633 alpine_c_client_bundled="no"
17635 # Check whether --with-bundled-tools was given.
17636 if test "${with_bundled_tools+set}" = set; then :
17637 withval=$with_bundled_tools;
17638 if test "x$withval" = "xyes" ; then
17639 alpine_c_client_bundled=""
17645 alpine_PAM="none"
17647 case "$host" in
17648 *-linux*|*-k*bsd*-gnu*|*-gnu*)
17649 alpine_path_delim="/"
17650 alpine_mode_readonly="(0600)"
17651 if test -f /etc/fedora-release ; then
17652 systype="LFD"
17653 alpine_PAM="yes"
17654 if test -d /etc/pki/tls ; then
17655 alpine_c_client_target="lfd"
17656 else
17657 alpine_c_client_target="lrh"
17659 elif test -f /etc/mandrake-release ; then
17660 systype="LMD"
17661 alpine_c_client_target="lmd"
17662 alpine_PAM="yes"
17663 elif test -f /etc/redhat-release -o -f /etc/redhat_version ; then
17664 systype="LRH"
17665 alpine_PAM="yes"
17666 if test -d /etc/pki/tls ; then
17667 alpine_c_client_target="lr5"
17668 else
17669 alpine_c_client_target="lrh"
17671 elif test -f /etc/debian_release -o -f /etc/debian_version ; then
17672 if test -d /etc/osso-af-init ; then
17673 systype="LN8"
17674 alpine_c_client_target="ln8"
17675 else
17676 systype="DEB"
17677 alpine_c_client_target="ldb"
17678 alpine_PAM="yes"
17680 elif test -f /etc/SuSE-release; then
17681 systype="LSU"
17682 alpine_c_client_target="lsu"
17683 alpine_PAM="yes"
17684 else
17685 systype="LNX"
17686 if test -z "$alpine_c_client_bundled" ; then
17687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for am_start in -lpam" >&5
17688 $as_echo_n "checking for am_start in -lpam... " >&6; }
17689 if ${ac_cv_lib_pam_am_start+:} false; then :
17690 $as_echo_n "(cached) " >&6
17691 else
17692 ac_check_lib_save_LIBS=$LIBS
17693 LIBS="-lpam $LIBS"
17694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17695 /* end confdefs.h. */
17697 /* Override any GCC internal prototype to avoid an error.
17698 Use char because int might match the return type of a GCC
17699 builtin and then its argument prototype would still apply. */
17700 #ifdef __cplusplus
17701 extern "C"
17702 #endif
17703 char am_start ();
17705 main ()
17707 return am_start ();
17709 return 0;
17711 _ACEOF
17712 if ac_fn_c_try_link "$LINENO"; then :
17713 ac_cv_lib_pam_am_start=yes
17714 else
17715 ac_cv_lib_pam_am_start=no
17717 rm -f core conftest.err conftest.$ac_objext \
17718 conftest$ac_exeext conftest.$ac_ext
17719 LIBS=$ac_check_lib_save_LIBS
17721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_am_start" >&5
17722 $as_echo "$ac_cv_lib_pam_am_start" >&6; }
17723 if test "x$ac_cv_lib_pam_am_start" = xyes; then :
17725 alpine_c_client_target="lnp"
17726 alpine_PAM="yes"
17728 else
17730 if test -f /etc/shadow ; then
17731 alpine_c_client_target="slx"
17732 else
17733 alpine_c_client_target="lnx"
17738 else
17739 if test -f /etc/shadow ; then
17740 alpine_c_client_target="slx"
17741 else
17742 alpine_c_client_target="lnx"
17747 *-apple-darwin*)
17748 systype="OSX"
17749 alpine_path_delim="/"
17750 alpine_mode_readonly="(0600)"
17751 LIBS="$LIBS -framework Carbon -framework ApplicationServices -framework Security"
17752 AM_CFLAGS="$AM_CFLAGS -Dbsd"
17754 $as_echo "#define OSX_TARGET 1" >>confdefs.h
17756 case "$alpine_os_credential_cache" in
17761 $as_echo "#define APPLEKEYCHAIN 1" >>confdefs.h
17764 esac
17765 if test -z "$alpine_c_client_bundled" ; then
17766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
17767 $as_echo_n "checking for pam_start in -lpam... " >&6; }
17768 if ${ac_cv_lib_pam_pam_start+:} false; then :
17769 $as_echo_n "(cached) " >&6
17770 else
17771 ac_check_lib_save_LIBS=$LIBS
17772 LIBS="-lpam $LIBS"
17773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17774 /* end confdefs.h. */
17776 /* Override any GCC internal prototype to avoid an error.
17777 Use char because int might match the return type of a GCC
17778 builtin and then its argument prototype would still apply. */
17779 #ifdef __cplusplus
17780 extern "C"
17781 #endif
17782 char pam_start ();
17784 main ()
17786 return pam_start ();
17788 return 0;
17790 _ACEOF
17791 if ac_fn_c_try_link "$LINENO"; then :
17792 ac_cv_lib_pam_pam_start=yes
17793 else
17794 ac_cv_lib_pam_pam_start=no
17796 rm -f core conftest.err conftest.$ac_objext \
17797 conftest$ac_exeext conftest.$ac_ext
17798 LIBS=$ac_check_lib_save_LIBS
17800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
17801 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
17802 if test "x$ac_cv_lib_pam_pam_start" = xyes; then :
17804 ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
17805 if test "x$ac_cv_header_security_pam_appl_h" = xyes; then :
17807 alpine_PAM="yes"
17808 alpine_c_client_target="oxs"
17810 else
17811 ac_fn_c_check_header_mongrel "$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default"
17812 if test "x$ac_cv_header_pam_pam_appl_h" = xyes; then :
17814 alpine_PAM="yes"
17815 alpine_c_client_target="oxp"
17817 else
17819 alpine_PAM="none"
17820 alpine_pam_none_reason="header files not found"
17830 else
17832 alpine_c_client_target="osx"
17836 else
17837 alpine_c_client_target="osx"
17840 *-*-solaris*)
17841 if test x$GCC = "xyes" ; then
17842 systype="GSO"
17843 alpine_c_client_target="gso"
17844 CFLAGS="$CFLAGS -D__USE_LEGACY_PROTOTYPES__"
17845 else
17846 systype="SOC"
17847 alpine_c_client_target="soc"
17849 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
17852 alpine_path_delim="/"
17853 alpine_mode_readonly="(0600)"
17855 *-*-sunos4*)
17856 systype="SUN"
17857 alpine_path_delim="/"
17858 alpine_mode_readonly="(0600)"
17859 alpine_c_client_target="s40"
17861 *-*-sco3.2v5*)
17862 if test x$GCC = "xyes" ; then
17863 systype="GO5"
17864 alpine_c_client_target="go5"
17865 else
17866 systype="SC5"
17867 alpine_c_client_target="sc5"
17869 alpine_path_delim="/"
17870 alpine_mode_readonly="(0600)"
17872 *-next-*)
17873 systype="NXT"
17874 alpine_path_delim="/"
17875 alpine_mode_readonly="(0600)"
17876 alpine_c_client_target="nx3"
17878 *-*-netbsd*)
17879 systype="NEB"
17880 alpine_path_delim="/"
17881 alpine_mode_readonly="(0600)"
17882 alpine_c_client_target="neb"
17884 *-*-hpux9*)
17885 systype="HPP"
17886 alpine_path_delim="/"
17887 alpine_mode_readonly="(0600)"
17888 alpine_c_client_target="gh9"
17890 *-*-dragonfly*)
17891 systype="DFB"
17892 alpine_path_delim="/"
17893 alpine_mode_readonly="(0600)"
17894 alpine_c_client_target="neb"
17896 *-*-bsdi*)
17897 systype="BSI"
17898 alpine_path_delim="/"
17899 alpine_mode_readonly="(0600)"
17900 alpine_c_client_target="bsi"
17902 *-*-freebsd*)
17903 systype="BSF"
17904 alpine_path_delim="/"
17905 alpine_mode_readonly="(0600)"
17906 alpine_c_client_target="bsf"
17907 LIBS="$LIBS $LIBINTL"
17909 *-*-openbsd*)
17910 systype="BSO"
17911 alpine_path_delim="/"
17912 alpine_mode_readonly="(0600)"
17913 alpine_c_client_target="bso"
17914 LIBS="$LIBS $LIBINTL"
17916 *-*-aix5*)
17917 systype="A52"
17918 alpine_path_delim="/"
17919 alpine_mode_readonly="(0600)"
17920 alpine_c_client_target="a52"
17922 *-*-aix4*)
17923 systype="A41"
17924 alpine_path_delim="/"
17925 alpine_mode_readonly="(0600)"
17926 alpine_c_client_target="a41"
17928 *-*-aix3*)
17929 systype="A32"
17930 alpine_path_delim="/"
17931 alpine_mode_readonly="(0600)"
17932 alpine_c_client_target="a32"
17934 *-*UNIX_SV | *-*-sysv5UnixWare7* | *-*OpenUNIX*)
17935 systype="UW2"
17936 alpine_path_delim="/"
17937 alpine_mode_readonly="(0600)"
17938 alpine_c_client_target="uw2"
17940 *-*-osf5*)
17941 systype="OSF"
17942 alpine_path_delim="/"
17943 alpine_mode_readonly="(0600)"
17944 alpine_c_client_target="osf"
17946 *-*-cygwin)
17947 systype="CYG"
17948 alpine_path_delim="/"
17949 alpine_mode_readonly="(S_IREAD | S_IWRITE)"
17950 alpine_c_client_target="cyg"
17951 LIBS="$LIBS $LIBINTL"
17953 windows* | *-*-pw32*)
17954 systype="WNT"
17955 alpine_path_delim="\\"
17956 alpine_mode_readonly="(S_IREAD | S_IWRITE)"
17957 alpine_c_client_target="wnt"
17959 $as_echo "#define _WINDOWS 1" >>confdefs.h
17963 as_fn_error $? "Unrecognized system: $host" "$LINENO" 5
17965 esac
17968 # Check whether --with-ipv6 was given.
17969 if test "${with_ipv6+set}" = set; then :
17970 withval=$with_ipv6; with_ipv6=$withval
17974 if test "x$with_ipv6" = "xno" ; then
17975 { $as_echo "$as_me:${as_lineno-$LINENO}: Excluding IPv6 Support" >&5
17976 $as_echo "$as_me: Excluding IPv6 Support" >&6;}
17977 c_client_specials="${c_client_specials}IP6=4 "
17978 c_client_ip6="true"
17979 else
17980 c_client_ip6="touch imap/ip6"
17985 if test x$enable_dmalloc = "xyes" ; then
17986 if test "x$with_pthread" = "xyes" ; then
17987 dmalloc_lib=dmallocth
17988 else
17989 dmalloc_lib=dmalloc
17992 as_ac_Lib=`$as_echo "ac_cv_lib_$dmalloc_lib''_dmalloc_shutdown" | $as_tr_sh`
17993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dmalloc_shutdown in -l$dmalloc_lib" >&5
17994 $as_echo_n "checking for dmalloc_shutdown in -l$dmalloc_lib... " >&6; }
17995 if eval \${$as_ac_Lib+:} false; then :
17996 $as_echo_n "(cached) " >&6
17997 else
17998 ac_check_lib_save_LIBS=$LIBS
17999 LIBS="-l$dmalloc_lib $LIBS"
18000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18001 /* end confdefs.h. */
18003 /* Override any GCC internal prototype to avoid an error.
18004 Use char because int might match the return type of a GCC
18005 builtin and then its argument prototype would still apply. */
18006 #ifdef __cplusplus
18007 extern "C"
18008 #endif
18009 char dmalloc_shutdown ();
18011 main ()
18013 return dmalloc_shutdown ();
18015 return 0;
18017 _ACEOF
18018 if ac_fn_c_try_link "$LINENO"; then :
18019 eval "$as_ac_Lib=yes"
18020 else
18021 eval "$as_ac_Lib=no"
18023 rm -f core conftest.err conftest.$ac_objext \
18024 conftest$ac_exeext conftest.$ac_ext
18025 LIBS=$ac_check_lib_save_LIBS
18027 eval ac_res=\$$as_ac_Lib
18028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18029 $as_echo "$ac_res" >&6; }
18030 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
18031 cat >>confdefs.h <<_ACEOF
18032 #define `$as_echo "HAVE_LIB$dmalloc_lib" | $as_tr_cpp` 1
18033 _ACEOF
18035 LIBS="-l$dmalloc_lib $LIBS"
18037 else
18039 as_fn_error but -ldmalloc not found "$dmalloc_lib requested" "$LINENO" 5
18045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setupterm in -ltinfo" >&5
18046 $as_echo_n "checking for setupterm in -ltinfo... " >&6; }
18047 if ${ac_cv_lib_tinfo_setupterm+:} false; then :
18048 $as_echo_n "(cached) " >&6
18049 else
18050 ac_check_lib_save_LIBS=$LIBS
18051 LIBS="-ltinfo $LIBS"
18052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18053 /* end confdefs.h. */
18055 /* Override any GCC internal prototype to avoid an error.
18056 Use char because int might match the return type of a GCC
18057 builtin and then its argument prototype would still apply. */
18058 #ifdef __cplusplus
18059 extern "C"
18060 #endif
18061 char setupterm ();
18063 main ()
18065 return setupterm ();
18067 return 0;
18069 _ACEOF
18070 if ac_fn_c_try_link "$LINENO"; then :
18071 ac_cv_lib_tinfo_setupterm=yes
18072 else
18073 ac_cv_lib_tinfo_setupterm=no
18075 rm -f core conftest.err conftest.$ac_objext \
18076 conftest$ac_exeext conftest.$ac_ext
18077 LIBS=$ac_check_lib_save_LIBS
18079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_setupterm" >&5
18080 $as_echo "$ac_cv_lib_tinfo_setupterm" >&6; }
18081 if test "x$ac_cv_lib_tinfo_setupterm" = xyes; then :
18083 alpine_termdata=info
18084 LIBS="$LIBS -ltinfo"
18086 else
18088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setupterm in -lncurses" >&5
18089 $as_echo_n "checking for setupterm in -lncurses... " >&6; }
18090 if ${ac_cv_lib_ncurses_setupterm+:} false; then :
18091 $as_echo_n "(cached) " >&6
18092 else
18093 ac_check_lib_save_LIBS=$LIBS
18094 LIBS="-lncurses $LIBS"
18095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18096 /* end confdefs.h. */
18098 /* Override any GCC internal prototype to avoid an error.
18099 Use char because int might match the return type of a GCC
18100 builtin and then its argument prototype would still apply. */
18101 #ifdef __cplusplus
18102 extern "C"
18103 #endif
18104 char setupterm ();
18106 main ()
18108 return setupterm ();
18110 return 0;
18112 _ACEOF
18113 if ac_fn_c_try_link "$LINENO"; then :
18114 ac_cv_lib_ncurses_setupterm=yes
18115 else
18116 ac_cv_lib_ncurses_setupterm=no
18118 rm -f core conftest.err conftest.$ac_objext \
18119 conftest$ac_exeext conftest.$ac_ext
18120 LIBS=$ac_check_lib_save_LIBS
18122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_setupterm" >&5
18123 $as_echo "$ac_cv_lib_ncurses_setupterm" >&6; }
18124 if test "x$ac_cv_lib_ncurses_setupterm" = xyes; then :
18126 alpine_termdata=info
18127 LIBS="$LIBS -lncurses"
18129 else
18131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setupterm in -lcurses" >&5
18132 $as_echo_n "checking for setupterm in -lcurses... " >&6; }
18133 if ${ac_cv_lib_curses_setupterm+:} false; then :
18134 $as_echo_n "(cached) " >&6
18135 else
18136 ac_check_lib_save_LIBS=$LIBS
18137 LIBS="-lcurses $LIBS"
18138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18139 /* end confdefs.h. */
18141 /* Override any GCC internal prototype to avoid an error.
18142 Use char because int might match the return type of a GCC
18143 builtin and then its argument prototype would still apply. */
18144 #ifdef __cplusplus
18145 extern "C"
18146 #endif
18147 char setupterm ();
18149 main ()
18151 return setupterm ();
18153 return 0;
18155 _ACEOF
18156 if ac_fn_c_try_link "$LINENO"; then :
18157 ac_cv_lib_curses_setupterm=yes
18158 else
18159 ac_cv_lib_curses_setupterm=no
18161 rm -f core conftest.err conftest.$ac_objext \
18162 conftest$ac_exeext conftest.$ac_ext
18163 LIBS=$ac_check_lib_save_LIBS
18165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_setupterm" >&5
18166 $as_echo "$ac_cv_lib_curses_setupterm" >&6; }
18167 if test "x$ac_cv_lib_curses_setupterm" = xyes; then :
18169 alpine_termdata=info
18170 LIBS="$LIBS -lcurses"
18172 else
18174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermlib" >&5
18175 $as_echo_n "checking for tgetent in -ltermlib... " >&6; }
18176 if ${ac_cv_lib_termlib_tgetent+:} false; then :
18177 $as_echo_n "(cached) " >&6
18178 else
18179 ac_check_lib_save_LIBS=$LIBS
18180 LIBS="-ltermlib $LIBS"
18181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18182 /* end confdefs.h. */
18184 /* Override any GCC internal prototype to avoid an error.
18185 Use char because int might match the return type of a GCC
18186 builtin and then its argument prototype would still apply. */
18187 #ifdef __cplusplus
18188 extern "C"
18189 #endif
18190 char tgetent ();
18192 main ()
18194 return tgetent ();
18196 return 0;
18198 _ACEOF
18199 if ac_fn_c_try_link "$LINENO"; then :
18200 ac_cv_lib_termlib_tgetent=yes
18201 else
18202 ac_cv_lib_termlib_tgetent=no
18204 rm -f core conftest.err conftest.$ac_objext \
18205 conftest$ac_exeext conftest.$ac_ext
18206 LIBS=$ac_check_lib_save_LIBS
18208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termlib_tgetent" >&5
18209 $as_echo "$ac_cv_lib_termlib_tgetent" >&6; }
18210 if test "x$ac_cv_lib_termlib_tgetent" = xyes; then :
18212 alpine_termdata=cap
18213 LIBS="$LIBS -ltermlib"
18215 else
18217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
18218 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
18219 if ${ac_cv_lib_termcap_tgetent+:} false; then :
18220 $as_echo_n "(cached) " >&6
18221 else
18222 ac_check_lib_save_LIBS=$LIBS
18223 LIBS="-ltermcap $LIBS"
18224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18225 /* end confdefs.h. */
18227 /* Override any GCC internal prototype to avoid an error.
18228 Use char because int might match the return type of a GCC
18229 builtin and then its argument prototype would still apply. */
18230 #ifdef __cplusplus
18231 extern "C"
18232 #endif
18233 char tgetent ();
18235 main ()
18237 return tgetent ();
18239 return 0;
18241 _ACEOF
18242 if ac_fn_c_try_link "$LINENO"; then :
18243 ac_cv_lib_termcap_tgetent=yes
18244 else
18245 ac_cv_lib_termcap_tgetent=no
18247 rm -f core conftest.err conftest.$ac_objext \
18248 conftest$ac_exeext conftest.$ac_ext
18249 LIBS=$ac_check_lib_save_LIBS
18251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
18252 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
18253 if test "x$ac_cv_lib_termcap_tgetent" = xyes; then :
18255 alpine_termdata=cap
18256 LIBS="$LIBS -ltermcap"
18258 else
18260 as_fn_error $? "Terminfo/termcap not found" "$LINENO" 5
18276 case $alpine_termdata in
18277 info)
18279 $as_echo "#define HAS_TERMINFO 1" >>confdefs.h
18282 cap)
18284 $as_echo "#define HAS_TERMCAP 1" >>confdefs.h
18287 esac
18289 alpine_dlopen="yes"
18291 # Check whether --with-dlopen was given.
18292 if test "${with_dlopen+set}" = set; then :
18293 withval=$with_dlopen;
18294 alpine_dlopen=$withval
18299 if test "x$alpine_dlopen" != "xno" ; then
18300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
18301 $as_echo_n "checking for library containing dlopen... " >&6; }
18302 if ${ac_cv_search_dlopen+:} false; then :
18303 $as_echo_n "(cached) " >&6
18304 else
18305 ac_func_search_save_LIBS=$LIBS
18306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18307 /* end confdefs.h. */
18309 /* Override any GCC internal prototype to avoid an error.
18310 Use char because int might match the return type of a GCC
18311 builtin and then its argument prototype would still apply. */
18312 #ifdef __cplusplus
18313 extern "C"
18314 #endif
18315 char dlopen ();
18317 main ()
18319 return dlopen ();
18321 return 0;
18323 _ACEOF
18324 for ac_lib in '' dl dld; do
18325 if test -z "$ac_lib"; then
18326 ac_res="none required"
18327 else
18328 ac_res=-l$ac_lib
18329 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18331 if ac_fn_c_try_link "$LINENO"; then :
18332 ac_cv_search_dlopen=$ac_res
18334 rm -f core conftest.err conftest.$ac_objext \
18335 conftest$ac_exeext
18336 if ${ac_cv_search_dlopen+:} false; then :
18337 break
18339 done
18340 if ${ac_cv_search_dlopen+:} false; then :
18342 else
18343 ac_cv_search_dlopen=no
18345 rm conftest.$ac_ext
18346 LIBS=$ac_func_search_save_LIBS
18348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
18349 $as_echo "$ac_cv_search_dlopen" >&6; }
18350 ac_res=$ac_cv_search_dlopen
18351 if test "$ac_res" != no; then :
18352 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18354 else
18355 alpine_DL="none"
18358 if test "x$alpine_DL" = "xnone" ; then
18359 as_fn_error $? "No library containing dlopen found" "$LINENO" 5
18360 exit 1
18363 if test "x$alpine_SSLTYPE" != "xnone" ; then
18364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OpenSSL is LibreSSL" >&5
18365 $as_echo_n "checking if OpenSSL is LibreSSL... " >&6; }
18366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18367 /* end confdefs.h. */
18369 #include <stdio.h>
18370 #include <stdlib.h>
18371 #if HAVE_STDINT_H
18372 #include <stdint.h>
18373 #endif /* HAVE_STDINT_H */
18374 #include <openssl/ssl.h>
18377 main ()
18380 #if OPENSSL_VERSION_NUMBER != 0x20000000L
18381 #error
18382 #endif
18385 return 0;
18387 _ACEOF
18388 if ac_fn_c_try_compile "$LINENO"; then :
18389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18390 $as_echo "yes" >&6; }
18391 alpine_SSLPROVIDER="libressl"
18393 else
18394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18395 $as_echo "no" >&6; }
18398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18401 if test "x$alpine_SSLTYPE" != "xnone" -a "x$alpine_SSLPROVIDER" != "xlibressl" ; then
18402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Openssl library version >= 1.0.0c" >&5
18403 $as_echo_n "checking Openssl library version >= 1.0.0c... " >&6; }
18404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18405 /* end confdefs.h. */
18407 #include <stdio.h>
18408 #include <stdlib.h>
18409 #if HAVE_STDINT_H
18410 #include <stdint.h>
18411 #endif /* HAVE_STDINT_H */
18412 #include <openssl/ssl.h>
18415 main ()
18418 #if OPENSSL_VERSION_NUMBER < 0x1000003fL
18419 #error
18420 #endif
18423 return 0;
18425 _ACEOF
18426 if ac_fn_c_try_compile "$LINENO"; then :
18427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18428 $as_echo "yes" >&6; }
18429 alpine_SSLPROVIDER="openssl"
18431 else
18432 alpine_SSLTYPE="none"
18434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18436 if test "x$alpine_SSLTYPE" = "xnone" ; then
18437 as_fn_error $? "Install openssl version >= 1.0.0c" "$LINENO" 5
18438 exit 1
18442 if test "x$alpine_SSLTYPE" != "xnone" -a "x$alpine_SSLPROVIDER" != "xlibressl" ; then
18443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Openssl library version >= 1.1.0" >&5
18444 $as_echo_n "checking Openssl library version >= 1.1.0... " >&6; }
18445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18446 /* end confdefs.h. */
18448 #include <stdio.h>
18449 #include <stdlib.h>
18450 #if HAVE_STDINT_H
18451 #include <stdint.h>
18452 #endif /* HAVE_STDINT_H */
18453 #include <openssl/ssl.h>
18456 main ()
18459 #if OPENSSL_VERSION_NUMBER < 0x10100000L
18460 #error
18461 #endif
18464 return 0;
18466 _ACEOF
18467 if ac_fn_c_try_compile "$LINENO"; then :
18468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18469 $as_echo "yes" >&6; }
18470 alpine_SSLVERSION="new"
18471 CFLAGS="$CFLAGS -DOPENSSL_1_1_0 -DOPENSSL_API_COMPAT=0x10100000L"
18473 else
18474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18475 $as_echo "no" >&6; }
18476 alpine_SSLVERSION="old"
18478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18481 if test "x$alpine_SSLTYPE" != "xnone" ; then
18482 if test "x$alpine_SSLVERSION" = "xold" ; then
18483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSLeay" >&5
18484 $as_echo_n "checking for library containing SSLeay... " >&6; }
18485 if ${ac_cv_search_SSLeay+:} false; then :
18486 $as_echo_n "(cached) " >&6
18487 else
18488 ac_func_search_save_LIBS=$LIBS
18489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18490 /* end confdefs.h. */
18492 /* Override any GCC internal prototype to avoid an error.
18493 Use char because int might match the return type of a GCC
18494 builtin and then its argument prototype would still apply. */
18495 #ifdef __cplusplus
18496 extern "C"
18497 #endif
18498 char SSLeay ();
18500 main ()
18502 return SSLeay ();
18504 return 0;
18506 _ACEOF
18507 for ac_lib in '' crypto; do
18508 if test -z "$ac_lib"; then
18509 ac_res="none required"
18510 else
18511 ac_res=-l$ac_lib
18512 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18514 if ac_fn_c_try_link "$LINENO"; then :
18515 ac_cv_search_SSLeay=$ac_res
18517 rm -f core conftest.err conftest.$ac_objext \
18518 conftest$ac_exeext
18519 if ${ac_cv_search_SSLeay+:} false; then :
18520 break
18522 done
18523 if ${ac_cv_search_SSLeay+:} false; then :
18525 else
18526 ac_cv_search_SSLeay=no
18528 rm conftest.$ac_ext
18529 LIBS=$ac_func_search_save_LIBS
18531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SSLeay" >&5
18532 $as_echo "$ac_cv_search_SSLeay" >&6; }
18533 ac_res=$ac_cv_search_SSLeay
18534 if test "$ac_res" != no; then :
18535 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18537 else
18538 alpine_CRYPTO="none"
18541 else
18542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing OpenSSL_version_num" >&5
18543 $as_echo_n "checking for library containing OpenSSL_version_num... " >&6; }
18544 if ${ac_cv_search_OpenSSL_version_num+:} false; then :
18545 $as_echo_n "(cached) " >&6
18546 else
18547 ac_func_search_save_LIBS=$LIBS
18548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18549 /* end confdefs.h. */
18551 /* Override any GCC internal prototype to avoid an error.
18552 Use char because int might match the return type of a GCC
18553 builtin and then its argument prototype would still apply. */
18554 #ifdef __cplusplus
18555 extern "C"
18556 #endif
18557 char OpenSSL_version_num ();
18559 main ()
18561 return OpenSSL_version_num ();
18563 return 0;
18565 _ACEOF
18566 for ac_lib in '' crypto; do
18567 if test -z "$ac_lib"; then
18568 ac_res="none required"
18569 else
18570 ac_res=-l$ac_lib
18571 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18573 if ac_fn_c_try_link "$LINENO"; then :
18574 ac_cv_search_OpenSSL_version_num=$ac_res
18576 rm -f core conftest.err conftest.$ac_objext \
18577 conftest$ac_exeext
18578 if ${ac_cv_search_OpenSSL_version_num+:} false; then :
18579 break
18581 done
18582 if ${ac_cv_search_OpenSSL_version_num+:} false; then :
18584 else
18585 ac_cv_search_OpenSSL_version_num=no
18587 rm conftest.$ac_ext
18588 LIBS=$ac_func_search_save_LIBS
18590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_OpenSSL_version_num" >&5
18591 $as_echo "$ac_cv_search_OpenSSL_version_num" >&6; }
18592 ac_res=$ac_cv_search_OpenSSL_version_num
18593 if test "$ac_res" != no; then :
18594 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18596 else
18597 alpine_CRYPTO="none"
18601 if test "x$alpine_CRYPTO" = "xnone" ; then
18602 as_fn_error $? "crypto library NOT found" "$LINENO" 5
18603 exit 1
18605 case $host in
18606 *-*-cygwin)
18607 ac_fn_c_check_header_mongrel "$LINENO" "crypto.h" "ac_cv_header_crypto_h" "$ac_includes_default"
18608 if test "x$ac_cv_header_crypto_h" = xyes; then :
18610 else
18611 alpine_CRYPTO_DEVEL="none"
18615 if test "x$alpine_CRYPTO_DEVEL" = "xnone" ; then
18616 as_fn_error $? "crypto library file crypto.h NOT found. Install corresponding libcrypt-devel package" "$LINENO" 5
18617 exit 1
18620 *) ;;
18621 esac
18624 if test "x$alpine_SSLTYPE" != "xnone" ; then
18625 if test "x$alpine_SSLVERSION" = "xold" ; then
18626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSL_library_init" >&5
18627 $as_echo_n "checking for library containing SSL_library_init... " >&6; }
18628 if ${ac_cv_search_SSL_library_init+:} false; then :
18629 $as_echo_n "(cached) " >&6
18630 else
18631 ac_func_search_save_LIBS=$LIBS
18632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18633 /* end confdefs.h. */
18635 /* Override any GCC internal prototype to avoid an error.
18636 Use char because int might match the return type of a GCC
18637 builtin and then its argument prototype would still apply. */
18638 #ifdef __cplusplus
18639 extern "C"
18640 #endif
18641 char SSL_library_init ();
18643 main ()
18645 return SSL_library_init ();
18647 return 0;
18649 _ACEOF
18650 for ac_lib in '' ssl; do
18651 if test -z "$ac_lib"; then
18652 ac_res="none required"
18653 else
18654 ac_res=-l$ac_lib
18655 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18657 if ac_fn_c_try_link "$LINENO"; then :
18658 ac_cv_search_SSL_library_init=$ac_res
18660 rm -f core conftest.err conftest.$ac_objext \
18661 conftest$ac_exeext
18662 if ${ac_cv_search_SSL_library_init+:} false; then :
18663 break
18665 done
18666 if ${ac_cv_search_SSL_library_init+:} false; then :
18668 else
18669 ac_cv_search_SSL_library_init=no
18671 rm conftest.$ac_ext
18672 LIBS=$ac_func_search_save_LIBS
18674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SSL_library_init" >&5
18675 $as_echo "$ac_cv_search_SSL_library_init" >&6; }
18676 ac_res=$ac_cv_search_SSL_library_init
18677 if test "$ac_res" != no; then :
18678 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18680 else
18681 alpine_SSLTYPE="none"
18684 if test "x$alpine_SSLTYPE" = "xnone" ; then
18685 as_fn_error $? "No library containing SSL_library_init found in your path" "$LINENO" 5
18686 exit 1
18688 else
18689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing OPENSSL_init_ssl" >&5
18690 $as_echo_n "checking for library containing OPENSSL_init_ssl... " >&6; }
18691 if ${ac_cv_search_OPENSSL_init_ssl+:} false; then :
18692 $as_echo_n "(cached) " >&6
18693 else
18694 ac_func_search_save_LIBS=$LIBS
18695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18696 /* end confdefs.h. */
18698 /* Override any GCC internal prototype to avoid an error.
18699 Use char because int might match the return type of a GCC
18700 builtin and then its argument prototype would still apply. */
18701 #ifdef __cplusplus
18702 extern "C"
18703 #endif
18704 char OPENSSL_init_ssl ();
18706 main ()
18708 return OPENSSL_init_ssl ();
18710 return 0;
18712 _ACEOF
18713 for ac_lib in '' ssl; do
18714 if test -z "$ac_lib"; then
18715 ac_res="none required"
18716 else
18717 ac_res=-l$ac_lib
18718 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18720 if ac_fn_c_try_link "$LINENO"; then :
18721 ac_cv_search_OPENSSL_init_ssl=$ac_res
18723 rm -f core conftest.err conftest.$ac_objext \
18724 conftest$ac_exeext
18725 if ${ac_cv_search_OPENSSL_init_ssl+:} false; then :
18726 break
18728 done
18729 if ${ac_cv_search_OPENSSL_init_ssl+:} false; then :
18731 else
18732 ac_cv_search_OPENSSL_init_ssl=no
18734 rm conftest.$ac_ext
18735 LIBS=$ac_func_search_save_LIBS
18737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_OPENSSL_init_ssl" >&5
18738 $as_echo "$ac_cv_search_OPENSSL_init_ssl" >&6; }
18739 ac_res=$ac_cv_search_OPENSSL_init_ssl
18740 if test "$ac_res" != no; then :
18741 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18743 else
18744 alpine_SSLTYPE="none"
18747 if test "x$aalpiLlpine_SSLTYPE" = "xnone" ; then
18748 as_fn_error $? "No library containing OPENSSL_init_ssl found in your path" "$LINENO" 5
18749 exit 1
18754 if test "$alpine_with_ldap" = "yes" ; then
18755 alpine_has_ldap=
18756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_alloc in -llber" >&5
18757 $as_echo_n "checking for ber_alloc in -llber... " >&6; }
18758 if ${ac_cv_lib_lber_ber_alloc+:} false; then :
18759 $as_echo_n "(cached) " >&6
18760 else
18761 ac_check_lib_save_LIBS=$LIBS
18762 LIBS="-llber $LIBS"
18763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18764 /* end confdefs.h. */
18766 /* Override any GCC internal prototype to avoid an error.
18767 Use char because int might match the return type of a GCC
18768 builtin and then its argument prototype would still apply. */
18769 #ifdef __cplusplus
18770 extern "C"
18771 #endif
18772 char ber_alloc ();
18774 main ()
18776 return ber_alloc ();
18778 return 0;
18780 _ACEOF
18781 if ac_fn_c_try_link "$LINENO"; then :
18782 ac_cv_lib_lber_ber_alloc=yes
18783 else
18784 ac_cv_lib_lber_ber_alloc=no
18786 rm -f core conftest.err conftest.$ac_objext \
18787 conftest$ac_exeext conftest.$ac_ext
18788 LIBS=$ac_check_lib_save_LIBS
18790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_alloc" >&5
18791 $as_echo "$ac_cv_lib_lber_ber_alloc" >&6; }
18792 if test "x$ac_cv_lib_lber_ber_alloc" = xyes; then :
18794 LIBS="$LIBS -llber"
18798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldap_initialize" >&5
18799 $as_echo_n "checking for library containing ldap_initialize... " >&6; }
18800 if ${ac_cv_search_ldap_initialize+:} false; then :
18801 $as_echo_n "(cached) " >&6
18802 else
18803 ac_func_search_save_LIBS=$LIBS
18804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18805 /* end confdefs.h. */
18807 /* Override any GCC internal prototype to avoid an error.
18808 Use char because int might match the return type of a GCC
18809 builtin and then its argument prototype would still apply. */
18810 #ifdef __cplusplus
18811 extern "C"
18812 #endif
18813 char ldap_initialize ();
18815 main ()
18817 return ldap_initialize ();
18819 return 0;
18821 _ACEOF
18822 for ac_lib in '' ldap; do
18823 if test -z "$ac_lib"; then
18824 ac_res="none required"
18825 else
18826 ac_res=-l$ac_lib
18827 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18829 if ac_fn_c_try_link "$LINENO"; then :
18830 ac_cv_search_ldap_initialize=$ac_res
18832 rm -f core conftest.err conftest.$ac_objext \
18833 conftest$ac_exeext
18834 if ${ac_cv_search_ldap_initialize+:} false; then :
18835 break
18837 done
18838 if ${ac_cv_search_ldap_initialize+:} false; then :
18840 else
18841 ac_cv_search_ldap_initialize=no
18843 rm conftest.$ac_ext
18844 LIBS=$ac_func_search_save_LIBS
18846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldap_initialize" >&5
18847 $as_echo "$ac_cv_search_ldap_initialize" >&6; }
18848 ac_res=$ac_cv_search_ldap_initialize
18849 if test "$ac_res" != no; then :
18850 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18852 alpine_has_ldap=yes
18854 else
18856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldap_open" >&5
18857 $as_echo_n "checking for library containing ldap_open... " >&6; }
18858 if ${ac_cv_search_ldap_open+:} false; then :
18859 $as_echo_n "(cached) " >&6
18860 else
18861 ac_func_search_save_LIBS=$LIBS
18862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18863 /* end confdefs.h. */
18865 /* Override any GCC internal prototype to avoid an error.
18866 Use char because int might match the return type of a GCC
18867 builtin and then its argument prototype would still apply. */
18868 #ifdef __cplusplus
18869 extern "C"
18870 #endif
18871 char ldap_open ();
18873 main ()
18875 return ldap_open ();
18877 return 0;
18879 _ACEOF
18880 for ac_lib in '' ldap; do
18881 if test -z "$ac_lib"; then
18882 ac_res="none required"
18883 else
18884 ac_res=-l$ac_lib
18885 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18887 if ac_fn_c_try_link "$LINENO"; then :
18888 ac_cv_search_ldap_open=$ac_res
18890 rm -f core conftest.err conftest.$ac_objext \
18891 conftest$ac_exeext
18892 if ${ac_cv_search_ldap_open+:} false; then :
18893 break
18895 done
18896 if ${ac_cv_search_ldap_open+:} false; then :
18898 else
18899 ac_cv_search_ldap_open=no
18901 rm conftest.$ac_ext
18902 LIBS=$ac_func_search_save_LIBS
18904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldap_open" >&5
18905 $as_echo "$ac_cv_search_ldap_open" >&6; }
18906 ac_res=$ac_cv_search_ldap_open
18907 if test "$ac_res" != no; then :
18908 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18910 alpine_has_ldap=yes
18918 if test "$alpine_has_ldap" = "yes" ; then
18919 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * Including LDAP Support" >&5
18920 $as_echo "$as_me: * * * Including LDAP Support" >&6;}
18922 $as_echo "#define ENABLE_LDAP /**/" >>confdefs.h
18927 if test -z "$alpine_c_client_bundled" ; then
18928 if test "x$alpine_PAM" != "xnone" ; then
18929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pam_start" >&5
18930 $as_echo_n "checking for library containing pam_start... " >&6; }
18931 if ${ac_cv_search_pam_start+:} false; then :
18932 $as_echo_n "(cached) " >&6
18933 else
18934 ac_func_search_save_LIBS=$LIBS
18935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18936 /* end confdefs.h. */
18938 /* Override any GCC internal prototype to avoid an error.
18939 Use char because int might match the return type of a GCC
18940 builtin and then its argument prototype would still apply. */
18941 #ifdef __cplusplus
18942 extern "C"
18943 #endif
18944 char pam_start ();
18946 main ()
18948 return pam_start ();
18950 return 0;
18952 _ACEOF
18953 for ac_lib in '' pam; do
18954 if test -z "$ac_lib"; then
18955 ac_res="none required"
18956 else
18957 ac_res=-l$ac_lib
18958 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18960 if ac_fn_c_try_link "$LINENO"; then :
18961 ac_cv_search_pam_start=$ac_res
18963 rm -f core conftest.err conftest.$ac_objext \
18964 conftest$ac_exeext
18965 if ${ac_cv_search_pam_start+:} false; then :
18966 break
18968 done
18969 if ${ac_cv_search_pam_start+:} false; then :
18971 else
18972 ac_cv_search_pam_start=no
18974 rm conftest.$ac_ext
18975 LIBS=$ac_func_search_save_LIBS
18977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pam_start" >&5
18978 $as_echo "$ac_cv_search_pam_start" >&6; }
18979 ac_res=$ac_cv_search_pam_start
18980 if test "$ac_res" != no; then :
18981 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18983 LIBS="$LIBS -lpam"
18984 ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
18985 if test "x$ac_cv_header_security_pam_appl_h" = xyes; then :
18987 alpine_PAM="yes"
18989 else
18990 ac_fn_c_check_header_mongrel "$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default"
18991 if test "x$ac_cv_header_pam_pam_appl_h" = xyes; then :
18993 alpine_PAM="yes"
18994 if test "x$alpine_c_client_target" != "xoxp" ; then
18995 alpine_PAM="none"
18996 alpine_pam_none_reason="header files not in security/ directory"
18999 else
19001 alpine_PAM="none"
19002 alpine_pam_none_reason="header files not found"
19012 else
19014 alpine_PAM="none"
19015 alpine_pam_none_reason="library files not found"
19019 if test -n "$alpine_pam_none_reason" ; then
19020 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
19025 if test -n "$alpine_c_client_bundled" ; then
19026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
19027 $as_echo_n "checking for library containing crypt... " >&6; }
19028 if ${ac_cv_search_crypt+:} false; then :
19029 $as_echo_n "(cached) " >&6
19030 else
19031 ac_func_search_save_LIBS=$LIBS
19032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19033 /* end confdefs.h. */
19035 /* Override any GCC internal prototype to avoid an error.
19036 Use char because int might match the return type of a GCC
19037 builtin and then its argument prototype would still apply. */
19038 #ifdef __cplusplus
19039 extern "C"
19040 #endif
19041 char crypt ();
19043 main ()
19045 return crypt ();
19047 return 0;
19049 _ACEOF
19050 for ac_lib in '' crypt; do
19051 if test -z "$ac_lib"; then
19052 ac_res="none required"
19053 else
19054 ac_res=-l$ac_lib
19055 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19057 if ac_fn_c_try_link "$LINENO"; then :
19058 ac_cv_search_crypt=$ac_res
19060 rm -f core conftest.err conftest.$ac_objext \
19061 conftest$ac_exeext
19062 if ${ac_cv_search_crypt+:} false; then :
19063 break
19065 done
19066 if ${ac_cv_search_crypt+:} false; then :
19068 else
19069 ac_cv_search_crypt=no
19071 rm conftest.$ac_ext
19072 LIBS=$ac_func_search_save_LIBS
19074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
19075 $as_echo "$ac_cv_search_crypt" >&6; }
19076 ac_res=$ac_cv_search_crypt
19077 if test "$ac_res" != no; then :
19078 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19080 else
19082 as_fn_error $? "crypt library not found." "$LINENO" 5
19088 C_CLIENT_BUNDLED=$alpine_c_client_bundled
19091 if test "x$alpine_GSSTYPE" != "xnone" ; then
19092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gss_init_sec_context" >&5
19093 $as_echo_n "checking for library containing gss_init_sec_context... " >&6; }
19094 if ${ac_cv_search_gss_init_sec_context+:} false; then :
19095 $as_echo_n "(cached) " >&6
19096 else
19097 ac_func_search_save_LIBS=$LIBS
19098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19099 /* end confdefs.h. */
19101 /* Override any GCC internal prototype to avoid an error.
19102 Use char because int might match the return type of a GCC
19103 builtin and then its argument prototype would still apply. */
19104 #ifdef __cplusplus
19105 extern "C"
19106 #endif
19107 char gss_init_sec_context ();
19109 main ()
19111 return gss_init_sec_context ();
19113 return 0;
19115 _ACEOF
19116 for ac_lib in '' gss gssapi gssapi_krb5; do
19117 if test -z "$ac_lib"; then
19118 ac_res="none required"
19119 else
19120 ac_res=-l$ac_lib
19121 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19123 if ac_fn_c_try_link "$LINENO"; then :
19124 ac_cv_search_gss_init_sec_context=$ac_res
19126 rm -f core conftest.err conftest.$ac_objext \
19127 conftest$ac_exeext
19128 if ${ac_cv_search_gss_init_sec_context+:} false; then :
19129 break
19131 done
19132 if ${ac_cv_search_gss_init_sec_context+:} false; then :
19134 else
19135 ac_cv_search_gss_init_sec_context=no
19137 rm conftest.$ac_ext
19138 LIBS=$ac_func_search_save_LIBS
19140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gss_init_sec_context" >&5
19141 $as_echo "$ac_cv_search_gss_init_sec_context" >&6; }
19142 ac_res=$ac_cv_search_gss_init_sec_context
19143 if test "$ac_res" != no; then :
19144 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19146 LIBS="$LIBS -lkrb5"
19147 ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi_generic.h" "ac_cv_header_gssapi_gssapi_generic_h" "$ac_includes_default"
19148 if test "x$ac_cv_header_gssapi_gssapi_generic_h" = xyes; then :
19150 else
19152 if test ! -d /usr/kerberos/include ; then
19153 alpine_GSSTYPE="none"
19154 alpine_gss_none_reason="header files not found"
19161 else
19163 alpine_GSSTYPE="none"
19164 alpine_gss_none_reason="libraries not found"
19168 if test -n "$alpine_gss_none_reason" ; then
19169 { $as_echo "$as_me:${as_lineno-$LINENO}: NOT including Kerberos Support: $alpine_gss_none_reason" >&5
19170 $as_echo "$as_me: NOT including Kerberos Support: $alpine_gss_none_reason" >&6;}
19175 # Check whether --with-ntlm was given.
19176 if test "${with_ntlm+set}" = set; then :
19177 withval=$with_ntlm; with_ntlm=$withval
19181 if test "x$with_ntlm" = "xno" ; then
19182 alpine_NTLM="none"
19183 else
19184 alpine_NTLM=
19186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing buildSmbNtlmAuthRequest" >&5
19187 $as_echo_n "checking for library containing buildSmbNtlmAuthRequest... " >&6; }
19188 if ${ac_cv_search_buildSmbNtlmAuthRequest+:} false; then :
19189 $as_echo_n "(cached) " >&6
19190 else
19191 ac_func_search_save_LIBS=$LIBS
19192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19193 /* end confdefs.h. */
19195 /* Override any GCC internal prototype to avoid an error.
19196 Use char because int might match the return type of a GCC
19197 builtin and then its argument prototype would still apply. */
19198 #ifdef __cplusplus
19199 extern "C"
19200 #endif
19201 char buildSmbNtlmAuthRequest ();
19203 main ()
19205 return buildSmbNtlmAuthRequest ();
19207 return 0;
19209 _ACEOF
19210 for ac_lib in '' ntlm; do
19211 if test -z "$ac_lib"; then
19212 ac_res="none required"
19213 else
19214 ac_res=-l$ac_lib
19215 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19217 if ac_fn_c_try_link "$LINENO"; then :
19218 ac_cv_search_buildSmbNtlmAuthRequest=$ac_res
19220 rm -f core conftest.err conftest.$ac_objext \
19221 conftest$ac_exeext
19222 if ${ac_cv_search_buildSmbNtlmAuthRequest+:} false; then :
19223 break
19225 done
19226 if ${ac_cv_search_buildSmbNtlmAuthRequest+:} false; then :
19228 else
19229 ac_cv_search_buildSmbNtlmAuthRequest=no
19231 rm conftest.$ac_ext
19232 LIBS=$ac_func_search_save_LIBS
19234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_buildSmbNtlmAuthRequest" >&5
19235 $as_echo "$ac_cv_search_buildSmbNtlmAuthRequest" >&6; }
19236 ac_res=$ac_cv_search_buildSmbNtlmAuthRequest
19237 if test "$ac_res" != no; then :
19238 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19240 ac_fn_c_check_header_mongrel "$LINENO" "ntlm.h" "ac_cv_header_ntlm_h" "$ac_includes_default"
19241 if test "x$ac_cv_header_ntlm_h" = xyes; then :
19243 extra_auth_ntlm=ntl
19244 { $as_echo "$as_me:${as_lineno-$LINENO}: including NTLM support" >&5
19245 $as_echo "$as_me: including NTLM support" >&6;}
19247 else
19249 alpine_NTLM="none"
19250 alpine_ntlm_none_reason="header file ntlm.h not found"
19256 else
19258 alpine_NTLM="none"
19259 alpine_ntlm_none_reason="ntlm library not found"
19263 if test -n "$alpine_ntlm_none_reason" ; then
19264 { $as_echo "$as_me:${as_lineno-$LINENO}: NOT including NTLM Support: $alpine_ntlm_none_reason" >&5
19265 $as_echo "$as_me: NOT including NTLM Support: $alpine_ntlm_none_reason" >&6;}
19269 if test -n "$WEB_BUILD" ; then
19270 TCL_VERSIONS_DOT="tcl8.6 tcl8.5 tcl8.4 tcl8.3"
19271 TCL_VERSIONS_NODOT="`echo ${TCL_VERSIONS_DOT} | ${SED} 's/\.//g'`"
19272 TCL_VERSIONS="${TCL_VERSIONS_DOT} ${TCL_VERSIONS_NODOT} tcl"
19273 if test -n "$alpine_TCLINC" ; then
19274 as_ac_Header=`$as_echo "ac_cv_header_$alpine_TCLINC/tcl.h" | $as_tr_sh`
19275 ac_fn_c_check_header_mongrel "$LINENO" "$alpine_TCLINC/tcl.h" "$as_ac_Header" "$ac_includes_default"
19276 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19278 else
19280 WEB_BUILD=
19285 if test -z "$WEB_BUILD" ; then
19286 { $as_echo "$as_me:${as_lineno-$LINENO}: Tcl Include file NOT found" >&5
19287 $as_echo "$as_me: Tcl Include file NOT found" >&6;}
19289 else
19290 ac_fn_c_check_header_mongrel "$LINENO" "tcl.h" "ac_cv_header_tcl_h" "$ac_includes_default"
19291 if test "x$ac_cv_header_tcl_h" = xyes; then :
19293 else
19295 for base in /usr /usr/local ; do
19296 for dir in ${TCL_VERSIONS} ; do
19297 if test -f $base/include/$dir/tcl.h ; then
19298 CPPFLAGS="$CPPFLAGS -I$base/include/$dir"
19299 found=yes
19300 break
19302 done
19303 if test "x$found" = "xyes" ; then
19304 break
19306 done
19307 if test "$found" != "yes" ; then
19308 WEB_BUILD=
19309 { $as_echo "$as_me:${as_lineno-$LINENO}: header file tcl.h NOT found: Web Alpine will not be built" >&5
19310 $as_echo "$as_me: header file tcl.h NOT found: Web Alpine will not be built" >&6;}
19317 if test -n "$WEB_BUILD" ; then
19318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing Tcl_Eval" >&5
19319 $as_echo_n "checking for library containing Tcl_Eval... " >&6; }
19320 if ${ac_cv_search_Tcl_Eval+:} false; then :
19321 $as_echo_n "(cached) " >&6
19322 else
19323 ac_func_search_save_LIBS=$LIBS
19324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19325 /* end confdefs.h. */
19327 /* Override any GCC internal prototype to avoid an error.
19328 Use char because int might match the return type of a GCC
19329 builtin and then its argument prototype would still apply. */
19330 #ifdef __cplusplus
19331 extern "C"
19332 #endif
19333 char Tcl_Eval ();
19335 main ()
19337 return Tcl_Eval ();
19339 return 0;
19341 _ACEOF
19342 for ac_lib in '' $alpine_TCLLIB ${TCL_VERSIONS}; do
19343 if test -z "$ac_lib"; then
19344 ac_res="none required"
19345 else
19346 ac_res=-l$ac_lib
19347 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19349 if ac_fn_c_try_link "$LINENO"; then :
19350 ac_cv_search_Tcl_Eval=$ac_res
19352 rm -f core conftest.err conftest.$ac_objext \
19353 conftest$ac_exeext
19354 if ${ac_cv_search_Tcl_Eval+:} false; then :
19355 break
19357 done
19358 if ${ac_cv_search_Tcl_Eval+:} false; then :
19360 else
19361 ac_cv_search_Tcl_Eval=no
19363 rm conftest.$ac_ext
19364 LIBS=$ac_func_search_save_LIBS
19366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_Tcl_Eval" >&5
19367 $as_echo "$ac_cv_search_Tcl_Eval" >&6; }
19368 ac_res=$ac_cv_search_Tcl_Eval
19369 if test "$ac_res" != no; then :
19370 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19372 else
19374 WEB_BUILD=
19381 if test "x$alpine_REGEX" != "xyes" ; then
19382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing regcomp" >&5
19383 $as_echo_n "checking for library containing regcomp... " >&6; }
19384 if ${ac_cv_search_regcomp+:} false; then :
19385 $as_echo_n "(cached) " >&6
19386 else
19387 ac_func_search_save_LIBS=$LIBS
19388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19389 /* end confdefs.h. */
19391 /* Override any GCC internal prototype to avoid an error.
19392 Use char because int might match the return type of a GCC
19393 builtin and then its argument prototype would still apply. */
19394 #ifdef __cplusplus
19395 extern "C"
19396 #endif
19397 char regcomp ();
19399 main ()
19401 return regcomp ();
19403 return 0;
19405 _ACEOF
19406 for ac_lib in '' posix regexp regex re; do
19407 if test -z "$ac_lib"; then
19408 ac_res="none required"
19409 else
19410 ac_res=-l$ac_lib
19411 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19413 if ac_fn_c_try_link "$LINENO"; then :
19414 ac_cv_search_regcomp=$ac_res
19416 rm -f core conftest.err conftest.$ac_objext \
19417 conftest$ac_exeext
19418 if ${ac_cv_search_regcomp+:} false; then :
19419 break
19421 done
19422 if ${ac_cv_search_regcomp+:} false; then :
19424 else
19425 ac_cv_search_regcomp=no
19427 rm conftest.$ac_ext
19428 LIBS=$ac_func_search_save_LIBS
19430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_regcomp" >&5
19431 $as_echo "$ac_cv_search_regcomp" >&6; }
19432 ac_res=$ac_cv_search_regcomp
19433 if test "$ac_res" != no; then :
19434 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19436 else
19438 if test x$alpine_REGEX = "xno" ; then
19439 as_fn_error $? "Unable to find system regex library" "$LINENO" 5
19440 else
19441 alpine_REGEX=yes
19447 if test "x$alpine_REGEX" != "xyes" ; then
19448 ac_fn_c_check_header_mongrel "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default"
19449 if test "x$ac_cv_header_regex_h" = xyes; then :
19451 else
19453 if test x$alpine_REGEX = "xno" ; then
19454 as_fn_error $? "Unable to find system regex include file" "$LINENO" 5
19455 else
19456 alpine_REGEX=yes
19464 $as_echo "#define HAVE_REGEX_H 1" >>confdefs.h
19466 if test "x$alpine_REGEX" = "xyes" ; then
19467 CPPFLAGS="$CPPFLAGS -I${top_builddir}/regex"
19468 LDFLAGS="$LDFLAGS -L${top_builddir}/regex"
19469 REGEX_BUILD=regex
19470 REGEX_MAKEFILE="$REGEX_BUILD/Makefile"
19473 if test "x$with_pthread" != "xno" ; then
19474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread support" >&5
19475 $as_echo_n "checking for pthread support... " >&6; }
19479 ac_ext=c
19480 ac_cpp='$CPP $CPPFLAGS'
19481 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19482 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19483 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19485 acx_pthread_ok=no
19487 # We used to check for pthread.h first, but this fails if pthread.h
19488 # requires special compiler flags (e.g. on True64 or Sequent).
19489 # It gets checked for in the link test anyway.
19491 # First of all, check if the user has set any of the PTHREAD_LIBS,
19492 # etcetera environment variables, and if threads linking works using
19493 # them:
19494 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
19495 save_CFLAGS="$CFLAGS"
19496 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19497 save_LIBS="$LIBS"
19498 LIBS="$PTHREAD_LIBS $LIBS"
19499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
19500 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
19501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19502 /* end confdefs.h. */
19504 /* Override any GCC internal prototype to avoid an error.
19505 Use char because int might match the return type of a GCC
19506 builtin and then its argument prototype would still apply. */
19507 #ifdef __cplusplus
19508 extern "C"
19509 #endif
19510 char pthread_join ();
19512 main ()
19514 return pthread_join ();
19516 return 0;
19518 _ACEOF
19519 if ac_fn_c_try_link "$LINENO"; then :
19520 acx_pthread_ok=yes
19522 rm -f core conftest.err conftest.$ac_objext \
19523 conftest$ac_exeext conftest.$ac_ext
19524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
19525 $as_echo "$acx_pthread_ok" >&6; }
19526 if test x"$acx_pthread_ok" = xno; then
19527 PTHREAD_LIBS=""
19528 PTHREAD_CFLAGS=""
19530 LIBS="$save_LIBS"
19531 CFLAGS="$save_CFLAGS"
19534 # We must check for the threads library under a number of different
19535 # names; the ordering is very important because some systems
19536 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
19537 # libraries is broken (non-POSIX).
19539 # Create a list of thread flags to try. Items starting with a "-" are
19540 # C compiler flags, and other items are library names, except for "none"
19541 # which indicates that we try without any flags at all, and "pthread-config"
19542 # which is a program returning the flags for the Pth emulation library.
19544 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
19546 # The ordering *is* (sometimes) important. Some notes on the
19547 # individual items follow:
19549 # pthreads: AIX (must check this before -lpthread)
19550 # none: in case threads are in libc; should be tried before -Kthread and
19551 # other compiler flags to prevent continual compiler warnings
19552 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
19553 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
19554 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
19555 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
19556 # -pthreads: Solaris/gcc
19557 # -mthreads: Mingw32/gcc, Lynx/gcc
19558 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
19559 # doesn't hurt to check since this sometimes defines pthreads too;
19560 # also defines -D_REENTRANT)
19561 # ... -mt is also the pthreads flag for HP/aCC
19562 # pthread: Linux, etcetera
19563 # --thread-safe: KAI C++
19564 # pthread-config: use pthread-config program (for GNU Pth library)
19566 case "${host_cpu}-${host_os}" in
19567 *solaris*)
19569 # On Solaris (at least, for some versions), libc contains stubbed
19570 # (non-functional) versions of the pthreads routines, so link-based
19571 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
19572 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
19573 # a function called by this macro, so we could check for that, but
19574 # who knows whether they'll stub that too in a future libc.) So,
19575 # we'll just look for -pthreads and -lpthread first:
19577 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
19579 esac
19581 if test x"$acx_pthread_ok" = xno; then
19582 for flag in $acx_pthread_flags; do
19584 case $flag in
19585 none)
19586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
19587 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
19591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
19592 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
19593 PTHREAD_CFLAGS="$flag"
19596 pthread-config)
19597 # Extract the first word of "pthread-config", so it can be a program name with args.
19598 set dummy pthread-config; ac_word=$2
19599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19600 $as_echo_n "checking for $ac_word... " >&6; }
19601 if ${ac_cv_prog_acx_pthread_config+:} false; then :
19602 $as_echo_n "(cached) " >&6
19603 else
19604 if test -n "$acx_pthread_config"; then
19605 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
19606 else
19607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19608 for as_dir in $PATH
19610 IFS=$as_save_IFS
19611 test -z "$as_dir" && as_dir=.
19612 for ac_exec_ext in '' $ac_executable_extensions; do
19613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19614 ac_cv_prog_acx_pthread_config="yes"
19615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19616 break 2
19618 done
19619 done
19620 IFS=$as_save_IFS
19622 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
19625 acx_pthread_config=$ac_cv_prog_acx_pthread_config
19626 if test -n "$acx_pthread_config"; then
19627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
19628 $as_echo "$acx_pthread_config" >&6; }
19629 else
19630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19631 $as_echo "no" >&6; }
19635 if test x"$acx_pthread_config" = xno; then continue; fi
19636 PTHREAD_CFLAGS="`pthread-config --cflags`"
19637 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
19641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
19642 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
19643 PTHREAD_LIBS="-l$flag"
19645 esac
19647 save_LIBS="$LIBS"
19648 save_CFLAGS="$CFLAGS"
19649 LIBS="$PTHREAD_LIBS $LIBS"
19650 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19652 # Check for various functions. We must include pthread.h,
19653 # since some functions may be macros. (On the Sequent, we
19654 # need a special flag -Kthread to make this header compile.)
19655 # We check for pthread_join because it is in -lpthread on IRIX
19656 # while pthread_create is in libc. We check for pthread_attr_init
19657 # due to DEC craziness with -lpthreads. We check for
19658 # pthread_cleanup_push because it is one of the few pthread
19659 # functions on Solaris that doesn't have a non-functional libc stub.
19660 # We try pthread_create on general principles.
19661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19662 /* end confdefs.h. */
19663 #include <pthread.h>
19665 main ()
19667 pthread_t th; pthread_join(th, 0);
19668 pthread_attr_init(0); pthread_cleanup_push(0, 0);
19669 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
19671 return 0;
19673 _ACEOF
19674 if ac_fn_c_try_link "$LINENO"; then :
19675 acx_pthread_ok=yes
19677 rm -f core conftest.err conftest.$ac_objext \
19678 conftest$ac_exeext conftest.$ac_ext
19680 LIBS="$save_LIBS"
19681 CFLAGS="$save_CFLAGS"
19683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
19684 $as_echo "$acx_pthread_ok" >&6; }
19685 if test "x$acx_pthread_ok" = xyes; then
19686 break;
19689 PTHREAD_LIBS=""
19690 PTHREAD_CFLAGS=""
19691 done
19694 # Various other checks:
19695 if test "x$acx_pthread_ok" = xyes; then
19696 save_LIBS="$LIBS"
19697 LIBS="$PTHREAD_LIBS $LIBS"
19698 save_CFLAGS="$CFLAGS"
19699 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19701 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
19702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
19703 $as_echo_n "checking for joinable pthread attribute... " >&6; }
19704 attr_name=unknown
19705 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
19706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19707 /* end confdefs.h. */
19708 #include <pthread.h>
19710 main ()
19712 int attr=$attr; return attr;
19714 return 0;
19716 _ACEOF
19717 if ac_fn_c_try_link "$LINENO"; then :
19718 attr_name=$attr; break
19720 rm -f core conftest.err conftest.$ac_objext \
19721 conftest$ac_exeext conftest.$ac_ext
19722 done
19723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
19724 $as_echo "$attr_name" >&6; }
19725 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
19727 cat >>confdefs.h <<_ACEOF
19728 #define PTHREAD_CREATE_JOINABLE $attr_name
19729 _ACEOF
19733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
19734 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
19735 flag=no
19736 case "${host_cpu}-${host_os}" in
19737 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
19738 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
19739 esac
19740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
19741 $as_echo "${flag}" >&6; }
19742 if test "x$flag" != xno; then
19743 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
19746 LIBS="$save_LIBS"
19747 CFLAGS="$save_CFLAGS"
19749 # More AIX lossage: must compile with xlc_r or cc_r
19750 if test x"$GCC" != xyes; then
19751 for ac_prog in xlc_r cc_r
19753 # Extract the first word of "$ac_prog", so it can be a program name with args.
19754 set dummy $ac_prog; ac_word=$2
19755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19756 $as_echo_n "checking for $ac_word... " >&6; }
19757 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
19758 $as_echo_n "(cached) " >&6
19759 else
19760 if test -n "$PTHREAD_CC"; then
19761 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
19762 else
19763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19764 for as_dir in $PATH
19766 IFS=$as_save_IFS
19767 test -z "$as_dir" && as_dir=.
19768 for ac_exec_ext in '' $ac_executable_extensions; do
19769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19770 ac_cv_prog_PTHREAD_CC="$ac_prog"
19771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19772 break 2
19774 done
19775 done
19776 IFS=$as_save_IFS
19780 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
19781 if test -n "$PTHREAD_CC"; then
19782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
19783 $as_echo "$PTHREAD_CC" >&6; }
19784 else
19785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19786 $as_echo "no" >&6; }
19790 test -n "$PTHREAD_CC" && break
19791 done
19792 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
19794 else
19795 PTHREAD_CC=$CC
19797 else
19798 PTHREAD_CC="$CC"
19805 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
19806 if test x"$acx_pthread_ok" = xyes; then
19808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19809 $as_echo "yes" >&6; }
19810 case "$target" in
19811 *openbsd*)
19812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pthread support on OpenBSD is unstable!" >&5
19813 $as_echo "$as_me: WARNING: pthread support on OpenBSD is unstable!" >&6;}
19814 AM_CFLAGS="$AM_CFLAGS -pthread"
19816 esac
19817 LIBS="$PTHREAD_LIBS $LIBS"
19818 AM_CFLAGS="$AM_CFLAGS $PTHREAD_CFLAGS"
19819 CC="$PTHREAD_CC"
19821 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
19825 else
19826 acx_pthread_ok=no
19828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19829 $as_echo "no" >&6; }
19832 ac_ext=c
19833 ac_cpp='$CPP $CPPFLAGS'
19834 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19835 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19836 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
19841 $as_echo_n "checking for library containing nanosleep... " >&6; }
19842 if ${ac_cv_search_nanosleep+:} false; then :
19843 $as_echo_n "(cached) " >&6
19844 else
19845 ac_func_search_save_LIBS=$LIBS
19846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19847 /* end confdefs.h. */
19849 /* Override any GCC internal prototype to avoid an error.
19850 Use char because int might match the return type of a GCC
19851 builtin and then its argument prototype would still apply. */
19852 #ifdef __cplusplus
19853 extern "C"
19854 #endif
19855 char nanosleep ();
19857 main ()
19859 return nanosleep ();
19861 return 0;
19863 _ACEOF
19864 for ac_lib in '' rt posix4; do
19865 if test -z "$ac_lib"; then
19866 ac_res="none required"
19867 else
19868 ac_res=-l$ac_lib
19869 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19871 if ac_fn_c_try_link "$LINENO"; then :
19872 ac_cv_search_nanosleep=$ac_res
19874 rm -f core conftest.err conftest.$ac_objext \
19875 conftest$ac_exeext
19876 if ${ac_cv_search_nanosleep+:} false; then :
19877 break
19879 done
19880 if ${ac_cv_search_nanosleep+:} false; then :
19882 else
19883 ac_cv_search_nanosleep=no
19885 rm conftest.$ac_ext
19886 LIBS=$ac_func_search_save_LIBS
19888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
19889 $as_echo "$ac_cv_search_nanosleep" >&6; }
19890 ac_res=$ac_cv_search_nanosleep
19891 if test "$ac_res" != no; then :
19892 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19895 $as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h
19905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
19906 $as_echo_n "checking for ANSI C header files... " >&6; }
19907 if ${ac_cv_header_stdc+:} false; then :
19908 $as_echo_n "(cached) " >&6
19909 else
19910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19911 /* end confdefs.h. */
19912 #include <stdlib.h>
19913 #include <stdarg.h>
19914 #include <string.h>
19915 #include <float.h>
19918 main ()
19922 return 0;
19924 _ACEOF
19925 if ac_fn_c_try_compile "$LINENO"; then :
19926 ac_cv_header_stdc=yes
19927 else
19928 ac_cv_header_stdc=no
19930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19932 if test $ac_cv_header_stdc = yes; then
19933 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19935 /* end confdefs.h. */
19936 #include <string.h>
19938 _ACEOF
19939 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19940 $EGREP "memchr" >/dev/null 2>&1; then :
19942 else
19943 ac_cv_header_stdc=no
19945 rm -f conftest*
19949 if test $ac_cv_header_stdc = yes; then
19950 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19952 /* end confdefs.h. */
19953 #include <stdlib.h>
19955 _ACEOF
19956 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19957 $EGREP "free" >/dev/null 2>&1; then :
19959 else
19960 ac_cv_header_stdc=no
19962 rm -f conftest*
19966 if test $ac_cv_header_stdc = yes; then
19967 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19968 if test "$cross_compiling" = yes; then :
19970 else
19971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19972 /* end confdefs.h. */
19973 #include <ctype.h>
19974 #include <stdlib.h>
19975 #if ((' ' & 0x0FF) == 0x020)
19976 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19977 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19978 #else
19979 # define ISLOWER(c) \
19980 (('a' <= (c) && (c) <= 'i') \
19981 || ('j' <= (c) && (c) <= 'r') \
19982 || ('s' <= (c) && (c) <= 'z'))
19983 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19984 #endif
19986 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19988 main ()
19990 int i;
19991 for (i = 0; i < 256; i++)
19992 if (XOR (islower (i), ISLOWER (i))
19993 || toupper (i) != TOUPPER (i))
19994 return 2;
19995 return 0;
19997 _ACEOF
19998 if ac_fn_c_try_run "$LINENO"; then :
20000 else
20001 ac_cv_header_stdc=no
20003 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20004 conftest.$ac_objext conftest.beam conftest.$ac_ext
20009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
20010 $as_echo "$ac_cv_header_stdc" >&6; }
20011 if test $ac_cv_header_stdc = yes; then
20013 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
20017 ac_header_dirent=no
20018 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20019 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
20021 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
20022 if eval \${$as_ac_Header+:} false; then :
20023 $as_echo_n "(cached) " >&6
20024 else
20025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20026 /* end confdefs.h. */
20027 #include <sys/types.h>
20028 #include <$ac_hdr>
20031 main ()
20033 if ((DIR *) 0)
20034 return 0;
20036 return 0;
20038 _ACEOF
20039 if ac_fn_c_try_compile "$LINENO"; then :
20040 eval "$as_ac_Header=yes"
20041 else
20042 eval "$as_ac_Header=no"
20044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20046 eval ac_res=\$$as_ac_Header
20047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20048 $as_echo "$ac_res" >&6; }
20049 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20050 cat >>confdefs.h <<_ACEOF
20051 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20052 _ACEOF
20054 ac_header_dirent=$ac_hdr; break
20057 done
20058 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20059 if test $ac_header_dirent = dirent.h; then
20060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
20061 $as_echo_n "checking for library containing opendir... " >&6; }
20062 if ${ac_cv_search_opendir+:} false; then :
20063 $as_echo_n "(cached) " >&6
20064 else
20065 ac_func_search_save_LIBS=$LIBS
20066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20067 /* end confdefs.h. */
20069 /* Override any GCC internal prototype to avoid an error.
20070 Use char because int might match the return type of a GCC
20071 builtin and then its argument prototype would still apply. */
20072 #ifdef __cplusplus
20073 extern "C"
20074 #endif
20075 char opendir ();
20077 main ()
20079 return opendir ();
20081 return 0;
20083 _ACEOF
20084 for ac_lib in '' dir; do
20085 if test -z "$ac_lib"; then
20086 ac_res="none required"
20087 else
20088 ac_res=-l$ac_lib
20089 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20091 if ac_fn_c_try_link "$LINENO"; then :
20092 ac_cv_search_opendir=$ac_res
20094 rm -f core conftest.err conftest.$ac_objext \
20095 conftest$ac_exeext
20096 if ${ac_cv_search_opendir+:} false; then :
20097 break
20099 done
20100 if ${ac_cv_search_opendir+:} false; then :
20102 else
20103 ac_cv_search_opendir=no
20105 rm conftest.$ac_ext
20106 LIBS=$ac_func_search_save_LIBS
20108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
20109 $as_echo "$ac_cv_search_opendir" >&6; }
20110 ac_res=$ac_cv_search_opendir
20111 if test "$ac_res" != no; then :
20112 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20116 else
20117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
20118 $as_echo_n "checking for library containing opendir... " >&6; }
20119 if ${ac_cv_search_opendir+:} false; then :
20120 $as_echo_n "(cached) " >&6
20121 else
20122 ac_func_search_save_LIBS=$LIBS
20123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20124 /* end confdefs.h. */
20126 /* Override any GCC internal prototype to avoid an error.
20127 Use char because int might match the return type of a GCC
20128 builtin and then its argument prototype would still apply. */
20129 #ifdef __cplusplus
20130 extern "C"
20131 #endif
20132 char opendir ();
20134 main ()
20136 return opendir ();
20138 return 0;
20140 _ACEOF
20141 for ac_lib in '' x; do
20142 if test -z "$ac_lib"; then
20143 ac_res="none required"
20144 else
20145 ac_res=-l$ac_lib
20146 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20148 if ac_fn_c_try_link "$LINENO"; then :
20149 ac_cv_search_opendir=$ac_res
20151 rm -f core conftest.err conftest.$ac_objext \
20152 conftest$ac_exeext
20153 if ${ac_cv_search_opendir+:} false; then :
20154 break
20156 done
20157 if ${ac_cv_search_opendir+:} false; then :
20159 else
20160 ac_cv_search_opendir=no
20162 rm conftest.$ac_ext
20163 LIBS=$ac_func_search_save_LIBS
20165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
20166 $as_echo "$ac_cv_search_opendir" >&6; }
20167 ac_res=$ac_cv_search_opendir
20168 if test "$ac_res" != no; then :
20169 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
20176 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
20177 if ${ac_cv_header_stat_broken+:} false; then :
20178 $as_echo_n "(cached) " >&6
20179 else
20180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20181 /* end confdefs.h. */
20182 #include <sys/types.h>
20183 #include <sys/stat.h>
20185 #if defined S_ISBLK && defined S_IFDIR
20186 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
20187 #endif
20189 #if defined S_ISBLK && defined S_IFCHR
20190 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
20191 #endif
20193 #if defined S_ISLNK && defined S_IFREG
20194 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
20195 #endif
20197 #if defined S_ISSOCK && defined S_IFREG
20198 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
20199 #endif
20201 _ACEOF
20202 if ac_fn_c_try_compile "$LINENO"; then :
20203 ac_cv_header_stat_broken=no
20204 else
20205 ac_cv_header_stat_broken=yes
20207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
20210 $as_echo "$ac_cv_header_stat_broken" >&6; }
20211 if test $ac_cv_header_stat_broken = yes; then
20213 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
20217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
20218 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
20219 if ${ac_cv_header_sys_wait_h+:} false; then :
20220 $as_echo_n "(cached) " >&6
20221 else
20222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20223 /* end confdefs.h. */
20224 #include <sys/types.h>
20225 #include <sys/wait.h>
20226 #ifndef WEXITSTATUS
20227 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
20228 #endif
20229 #ifndef WIFEXITED
20230 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
20231 #endif
20234 main ()
20236 int s;
20237 wait (&s);
20238 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
20240 return 0;
20242 _ACEOF
20243 if ac_fn_c_try_compile "$LINENO"; then :
20244 ac_cv_header_sys_wait_h=yes
20245 else
20246 ac_cv_header_sys_wait_h=no
20248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
20251 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
20252 if test $ac_cv_header_sys_wait_h = yes; then
20254 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
20258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
20259 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
20260 if ${ac_cv_header_time+:} false; then :
20261 $as_echo_n "(cached) " >&6
20262 else
20263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20264 /* end confdefs.h. */
20265 #include <sys/types.h>
20266 #include <sys/time.h>
20267 #include <time.h>
20270 main ()
20272 if ((struct tm *) 0)
20273 return 0;
20275 return 0;
20277 _ACEOF
20278 if ac_fn_c_try_compile "$LINENO"; then :
20279 ac_cv_header_time=yes
20280 else
20281 ac_cv_header_time=no
20283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
20286 $as_echo "$ac_cv_header_time" >&6; }
20287 if test $ac_cv_header_time = yes; then
20289 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
20293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
20294 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
20295 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false; then :
20296 $as_echo_n "(cached) " >&6
20297 else
20298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20299 /* end confdefs.h. */
20300 #include <sys/types.h>
20301 #include <termios.h>
20302 #ifdef TIOCGWINSZ
20304 #endif
20306 _ACEOF
20307 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20308 $EGREP "yes" >/dev/null 2>&1; then :
20309 ac_cv_sys_tiocgwinsz_in_termios_h=yes
20310 else
20311 ac_cv_sys_tiocgwinsz_in_termios_h=no
20313 rm -f conftest*
20316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
20317 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
20319 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
20320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
20321 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
20322 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false; then :
20323 $as_echo_n "(cached) " >&6
20324 else
20325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20326 /* end confdefs.h. */
20327 #include <sys/types.h>
20328 #include <sys/ioctl.h>
20329 #ifdef TIOCGWINSZ
20331 #endif
20333 _ACEOF
20334 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20335 $EGREP "yes" >/dev/null 2>&1; then :
20336 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
20337 else
20338 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
20340 rm -f conftest*
20343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
20344 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
20346 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
20348 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
20354 for ac_header in unistd.h
20355 do :
20356 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
20357 if test "x$ac_cv_header_unistd_h" = xyes; then :
20358 cat >>confdefs.h <<_ACEOF
20359 #define HAVE_UNISTD_H 1
20360 _ACEOF
20364 done
20367 for ac_header in errno.h \
20368 ctype.h \
20369 fcntl.h \
20370 signal.h \
20371 setjmp.h \
20372 memory.h \
20373 sys/ioctl.h \
20374 sys/param.h \
20375 sys/socket.h \
20376 sys/uio.h \
20377 sys/un.h \
20378 limits.h \
20379 wchar.h \
20380 sys/poll.h \
20381 stropts.h \
20382 netdb.h \
20383 syslog.h \
20384 sys/syslog.h \
20385 locale.h \
20386 langinfo.h \
20387 utime.h \
20388 sys/utime.h \
20389 pthread.h \
20390 pwd.h \
20391 assert.h
20392 do :
20393 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20394 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20395 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20396 cat >>confdefs.h <<_ACEOF
20397 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20398 _ACEOF
20402 done
20405 ac_fn_c_check_header_mongrel "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default"
20406 if test "x$ac_cv_header_termios_h" = xyes; then :
20408 $as_echo "#define HAS_TERMIOS 1" >>confdefs.h
20410 else
20412 ac_fn_c_check_header_mongrel "$LINENO" "termio.h" "ac_cv_header_termio_h" "$ac_includes_default"
20413 if test "x$ac_cv_header_termio_h" = xyes; then :
20415 $as_echo "#define HAS_TERMIO 1" >>confdefs.h
20417 else
20419 ac_fn_c_check_header_mongrel "$LINENO" "sgtty.h" "ac_cv_header_sgtty_h" "$ac_includes_default"
20420 if test "x$ac_cv_header_sgtty_h" = xyes; then :
20422 $as_echo "#define HAS_SGTTY 1" >>confdefs.h
20424 else
20426 as_fn_error $? "Unable to figure out terminal control method" "$LINENO" 5
20442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
20443 $as_echo_n "checking return type of signal handlers... " >&6; }
20444 if ${ac_cv_type_signal+:} false; then :
20445 $as_echo_n "(cached) " >&6
20446 else
20447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20448 /* end confdefs.h. */
20449 #include <sys/types.h>
20450 #include <signal.h>
20453 main ()
20455 return *(signal (0, 0)) (0) == 1;
20457 return 0;
20459 _ACEOF
20460 if ac_fn_c_try_compile "$LINENO"; then :
20461 ac_cv_type_signal=int
20462 else
20463 ac_cv_type_signal=void
20465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
20468 $as_echo "$ac_cv_type_signal" >&6; }
20470 cat >>confdefs.h <<_ACEOF
20471 #define RETSIGTYPE $ac_cv_type_signal
20472 _ACEOF
20475 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
20476 if test "x$ac_cv_type_size_t" = xyes; then :
20478 else
20480 cat >>confdefs.h <<_ACEOF
20481 #define size_t unsigned int
20482 _ACEOF
20486 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
20487 if test "x$ac_cv_type_mode_t" = xyes; then :
20489 else
20491 cat >>confdefs.h <<_ACEOF
20492 #define mode_t int
20493 _ACEOF
20497 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
20498 if test "x$ac_cv_type_pid_t" = xyes; then :
20500 else
20502 cat >>confdefs.h <<_ACEOF
20503 #define pid_t int
20504 _ACEOF
20508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
20509 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
20510 if ${ac_cv_type_uid_t+:} false; then :
20511 $as_echo_n "(cached) " >&6
20512 else
20513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20514 /* end confdefs.h. */
20515 #include <sys/types.h>
20517 _ACEOF
20518 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20519 $EGREP "uid_t" >/dev/null 2>&1; then :
20520 ac_cv_type_uid_t=yes
20521 else
20522 ac_cv_type_uid_t=no
20524 rm -f conftest*
20527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
20528 $as_echo "$ac_cv_type_uid_t" >&6; }
20529 if test $ac_cv_type_uid_t = no; then
20531 $as_echo "#define uid_t int" >>confdefs.h
20534 $as_echo "#define gid_t int" >>confdefs.h
20538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
20539 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
20540 if ${ac_cv_struct_tm+:} false; then :
20541 $as_echo_n "(cached) " >&6
20542 else
20543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20544 /* end confdefs.h. */
20545 #include <sys/types.h>
20546 #include <time.h>
20549 main ()
20551 struct tm tm;
20552 int *p = &tm.tm_sec;
20553 return !p;
20555 return 0;
20557 _ACEOF
20558 if ac_fn_c_try_compile "$LINENO"; then :
20559 ac_cv_struct_tm=time.h
20560 else
20561 ac_cv_struct_tm=sys/time.h
20563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
20566 $as_echo "$ac_cv_struct_tm" >&6; }
20567 if test $ac_cv_struct_tm = sys/time.h; then
20569 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
20574 ac_fn_c_check_type "$LINENO" "union wait" "ac_cv_type_union_wait" "$ac_includes_default"
20575 if test "x$ac_cv_type_union_wait" = xyes; then :
20577 cat >>confdefs.h <<_ACEOF
20578 #define HAVE_UNION_WAIT 1
20579 _ACEOF
20585 for ac_header in stdint.h
20586 do :
20587 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
20588 if test "x$ac_cv_header_stdint_h" = xyes; then :
20589 cat >>confdefs.h <<_ACEOF
20590 #define HAVE_STDINT_H 1
20591 _ACEOF
20592 uint16=uint16_t
20593 else
20595 for ac_header in inttypes.h
20596 do :
20597 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
20598 if test "x$ac_cv_header_inttypes_h" = xyes; then :
20599 cat >>confdefs.h <<_ACEOF
20600 #define HAVE_INTTYPES_H 1
20601 _ACEOF
20602 uint16=uint16_t
20603 else
20605 for ac_header in sys/types.h
20606 do :
20607 ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
20608 if test "x$ac_cv_header_sys_types_h" = xyes; then :
20609 cat >>confdefs.h <<_ACEOF
20610 #define HAVE_SYS_TYPES_H 1
20611 _ACEOF
20612 uint16=u_int16_t
20613 else
20615 # The cast to long int works around a bug in the HP C Compiler
20616 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20617 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20618 # This bug is HP SR number 8606223364.
20619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
20620 $as_echo_n "checking size of unsigned short... " >&6; }
20621 if ${ac_cv_sizeof_unsigned_short+:} false; then :
20622 $as_echo_n "(cached) " >&6
20623 else
20624 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short" "$ac_includes_default"; then :
20626 else
20627 if test "$ac_cv_type_unsigned_short" = yes; then
20628 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20629 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20630 as_fn_error 77 "cannot compute sizeof (unsigned short)
20631 See \`config.log' for more details" "$LINENO" 5; }
20632 else
20633 ac_cv_sizeof_unsigned_short=0
20638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
20639 $as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
20643 cat >>confdefs.h <<_ACEOF
20644 #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
20645 _ACEOF
20648 if test $ac_cv_sizeof_unsigned_short -eq 2 ; then
20649 uint16="unsigned short"
20650 else
20651 # The cast to long int works around a bug in the HP C Compiler
20652 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20653 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20654 # This bug is HP SR number 8606223364.
20655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
20656 $as_echo_n "checking size of unsigned int... " >&6; }
20657 if ${ac_cv_sizeof_unsigned_int+:} false; then :
20658 $as_echo_n "(cached) " >&6
20659 else
20660 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
20662 else
20663 if test "$ac_cv_type_unsigned_int" = yes; then
20664 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20665 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20666 as_fn_error 77 "cannot compute sizeof (unsigned int)
20667 See \`config.log' for more details" "$LINENO" 5; }
20668 else
20669 ac_cv_sizeof_unsigned_int=0
20674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
20675 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
20679 cat >>confdefs.h <<_ACEOF
20680 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
20681 _ACEOF
20684 if $ac_cv_sizeof_unsigned_int -eq 2 ; then
20685 uint16="unsigned int"
20686 else
20687 as_fn_error $? "Unable to determine 16 bit integer type" "$LINENO" 5
20693 done
20698 done
20703 done
20706 cat >>confdefs.h <<_ACEOF
20707 #define UINT16 $uint16
20708 _ACEOF
20711 for ac_header in stdint.h
20712 do :
20713 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
20714 if test "x$ac_cv_header_stdint_h" = xyes; then :
20715 cat >>confdefs.h <<_ACEOF
20716 #define HAVE_STDINT_H 1
20717 _ACEOF
20718 uint32=uint32_t
20719 else
20721 for ac_header in inttypes.h
20722 do :
20723 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
20724 if test "x$ac_cv_header_inttypes_h" = xyes; then :
20725 cat >>confdefs.h <<_ACEOF
20726 #define HAVE_INTTYPES_H 1
20727 _ACEOF
20728 uint32=uint32_t
20729 else
20731 for ac_header in sys/types.h
20732 do :
20733 ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
20734 if test "x$ac_cv_header_sys_types_h" = xyes; then :
20735 cat >>confdefs.h <<_ACEOF
20736 #define HAVE_SYS_TYPES_H 1
20737 _ACEOF
20738 uint32=u_int32_t
20739 else
20741 # The cast to long int works around a bug in the HP C Compiler
20742 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20743 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20744 # This bug is HP SR number 8606223364.
20745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
20746 $as_echo_n "checking size of unsigned int... " >&6; }
20747 if ${ac_cv_sizeof_unsigned_int+:} false; then :
20748 $as_echo_n "(cached) " >&6
20749 else
20750 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
20752 else
20753 if test "$ac_cv_type_unsigned_int" = yes; then
20754 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20755 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20756 as_fn_error 77 "cannot compute sizeof (unsigned int)
20757 See \`config.log' for more details" "$LINENO" 5; }
20758 else
20759 ac_cv_sizeof_unsigned_int=0
20764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
20765 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
20769 cat >>confdefs.h <<_ACEOF
20770 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
20771 _ACEOF
20774 if test $ac_cv_sizeof_unsigned_int -eq 4 ; then
20775 uint32="unsigned int"
20776 else
20777 # The cast to long int works around a bug in the HP C Compiler
20778 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20779 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20780 # This bug is HP SR number 8606223364.
20781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
20782 $as_echo_n "checking size of unsigned long... " >&6; }
20783 if ${ac_cv_sizeof_unsigned_long+:} false; then :
20784 $as_echo_n "(cached) " >&6
20785 else
20786 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
20788 else
20789 if test "$ac_cv_type_unsigned_long" = yes; then
20790 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20791 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20792 as_fn_error 77 "cannot compute sizeof (unsigned long)
20793 See \`config.log' for more details" "$LINENO" 5; }
20794 else
20795 ac_cv_sizeof_unsigned_long=0
20800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
20801 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
20805 cat >>confdefs.h <<_ACEOF
20806 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
20807 _ACEOF
20810 if $ac_cv_sizeof_unsigned_long -eq 4 ; then
20811 uint32="unsigned long"
20812 else
20813 as_fn_error $? "Unable to determine 32 bit integer type" "$LINENO" 5
20819 done
20824 done
20829 done
20832 cat >>confdefs.h <<_ACEOF
20833 #define UINT32 $uint32
20834 _ACEOF
20837 if test -z "$SUINT32" ; then
20838 SUINT32="$uint32"
20842 cat >>confdefs.h <<_ACEOF
20843 #define SUINT32 $SUINT32
20844 _ACEOF
20847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking argument pointer type of qsort compare function and base" >&5
20848 $as_echo_n "checking argument pointer type of qsort compare function and base... " >&6; }
20849 if ${ac_cv_func_qsort_argtype+:} false; then :
20850 $as_echo_n "(cached) " >&6
20851 else
20852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20853 /* end confdefs.h. */
20855 #if HAVE_STDLIB_H
20856 #include "stdlib.h"
20857 #endif
20859 extern void *base;
20860 extern sortf(const void *, const void *);
20861 int sortf(a, b)
20862 const void *a;
20863 const void *b; { return 0; }
20866 main ()
20869 qsort(base, 2, sizeof(char *), sortf);
20872 return 0;
20874 _ACEOF
20875 if ac_fn_c_try_compile "$LINENO"; then :
20876 ac_cv_func_qsort_argtype=void
20877 else
20878 ac_cv_func_qsort_argtype=char
20880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_qsort_argtype" >&5
20884 $as_echo "$ac_cv_func_qsort_argtype" >&6; }
20886 cat >>confdefs.h <<_ACEOF
20887 #define qsort_t $ac_cv_func_qsort_argtype
20888 _ACEOF
20892 for ac_header in sys/select.h sys/socket.h
20893 do :
20894 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20895 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20896 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20897 cat >>confdefs.h <<_ACEOF
20898 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20899 _ACEOF
20903 done
20905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
20906 $as_echo_n "checking types of arguments for select... " >&6; }
20907 if ${ac_cv_func_select_args+:} false; then :
20908 $as_echo_n "(cached) " >&6
20909 else
20910 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
20911 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
20912 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
20913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20914 /* end confdefs.h. */
20915 $ac_includes_default
20916 #ifdef HAVE_SYS_SELECT_H
20917 # include <sys/select.h>
20918 #endif
20919 #ifdef HAVE_SYS_SOCKET_H
20920 # include <sys/socket.h>
20921 #endif
20924 main ()
20926 extern int select ($ac_arg1,
20927 $ac_arg234, $ac_arg234, $ac_arg234,
20928 $ac_arg5);
20930 return 0;
20932 _ACEOF
20933 if ac_fn_c_try_compile "$LINENO"; then :
20934 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
20936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20937 done
20938 done
20939 done
20940 # Provide a safe default value.
20941 : "${ac_cv_func_select_args=int,int *,struct timeval *}"
20944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
20945 $as_echo "$ac_cv_func_select_args" >&6; }
20946 ac_save_IFS=$IFS; IFS=','
20947 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
20948 IFS=$ac_save_IFS
20949 shift
20951 cat >>confdefs.h <<_ACEOF
20952 #define SELECT_TYPE_ARG1 $1
20953 _ACEOF
20956 cat >>confdefs.h <<_ACEOF
20957 #define SELECT_TYPE_ARG234 ($2)
20958 _ACEOF
20961 cat >>confdefs.h <<_ACEOF
20962 #define SELECT_TYPE_ARG5 ($3)
20963 _ACEOF
20965 rm -f conftest*
20968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
20969 $as_echo_n "checking for working strcoll... " >&6; }
20970 if ${ac_cv_func_strcoll_works+:} false; then :
20971 $as_echo_n "(cached) " >&6
20972 else
20973 if test "$cross_compiling" = yes; then :
20974 ac_cv_func_strcoll_works=no
20975 else
20976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20977 /* end confdefs.h. */
20978 $ac_includes_default
20980 main ()
20982 return (strcoll ("abc", "def") >= 0 ||
20983 strcoll ("ABC", "DEF") >= 0 ||
20984 strcoll ("123", "456") >= 0)
20986 return 0;
20988 _ACEOF
20989 if ac_fn_c_try_run "$LINENO"; then :
20990 ac_cv_func_strcoll_works=yes
20991 else
20992 ac_cv_func_strcoll_works=no
20994 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20995 conftest.$ac_objext conftest.beam conftest.$ac_ext
20999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
21000 $as_echo "$ac_cv_func_strcoll_works" >&6; }
21001 if test $ac_cv_func_strcoll_works = yes; then
21003 $as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
21009 for ac_header in vfork.h
21010 do :
21011 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
21012 if test "x$ac_cv_header_vfork_h" = xyes; then :
21013 cat >>confdefs.h <<_ACEOF
21014 #define HAVE_VFORK_H 1
21015 _ACEOF
21019 done
21021 for ac_func in fork vfork
21022 do :
21023 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21024 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21025 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21026 cat >>confdefs.h <<_ACEOF
21027 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21028 _ACEOF
21031 done
21033 if test "x$ac_cv_func_fork" = xyes; then
21034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
21035 $as_echo_n "checking for working fork... " >&6; }
21036 if ${ac_cv_func_fork_works+:} false; then :
21037 $as_echo_n "(cached) " >&6
21038 else
21039 if test "$cross_compiling" = yes; then :
21040 ac_cv_func_fork_works=cross
21041 else
21042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21043 /* end confdefs.h. */
21044 $ac_includes_default
21046 main ()
21049 /* By Ruediger Kuhlmann. */
21050 return fork () < 0;
21053 return 0;
21055 _ACEOF
21056 if ac_fn_c_try_run "$LINENO"; then :
21057 ac_cv_func_fork_works=yes
21058 else
21059 ac_cv_func_fork_works=no
21061 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21062 conftest.$ac_objext conftest.beam conftest.$ac_ext
21066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
21067 $as_echo "$ac_cv_func_fork_works" >&6; }
21069 else
21070 ac_cv_func_fork_works=$ac_cv_func_fork
21072 if test "x$ac_cv_func_fork_works" = xcross; then
21073 case $host in
21074 *-*-amigaos* | *-*-msdosdjgpp*)
21075 # Override, as these systems have only a dummy fork() stub
21076 ac_cv_func_fork_works=no
21079 ac_cv_func_fork_works=yes
21081 esac
21082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
21083 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
21085 ac_cv_func_vfork_works=$ac_cv_func_vfork
21086 if test "x$ac_cv_func_vfork" = xyes; then
21087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
21088 $as_echo_n "checking for working vfork... " >&6; }
21089 if ${ac_cv_func_vfork_works+:} false; then :
21090 $as_echo_n "(cached) " >&6
21091 else
21092 if test "$cross_compiling" = yes; then :
21093 ac_cv_func_vfork_works=cross
21094 else
21095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21096 /* end confdefs.h. */
21097 /* Thanks to Paul Eggert for this test. */
21098 $ac_includes_default
21099 #include <sys/wait.h>
21100 #ifdef HAVE_VFORK_H
21101 # include <vfork.h>
21102 #endif
21103 /* On some sparc systems, changes by the child to local and incoming
21104 argument registers are propagated back to the parent. The compiler
21105 is told about this with #include <vfork.h>, but some compilers
21106 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
21107 static variable whose address is put into a register that is
21108 clobbered by the vfork. */
21109 static void
21110 #ifdef __cplusplus
21111 sparc_address_test (int arg)
21112 # else
21113 sparc_address_test (arg) int arg;
21114 #endif
21116 static pid_t child;
21117 if (!child) {
21118 child = vfork ();
21119 if (child < 0) {
21120 perror ("vfork");
21121 _exit(2);
21123 if (!child) {
21124 arg = getpid();
21125 write(-1, "", 0);
21126 _exit (arg);
21132 main ()
21134 pid_t parent = getpid ();
21135 pid_t child;
21137 sparc_address_test (0);
21139 child = vfork ();
21141 if (child == 0) {
21142 /* Here is another test for sparc vfork register problems. This
21143 test uses lots of local variables, at least as many local
21144 variables as main has allocated so far including compiler
21145 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
21146 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
21147 reuse the register of parent for one of the local variables,
21148 since it will think that parent can't possibly be used any more
21149 in this routine. Assigning to the local variable will thus
21150 munge parent in the parent process. */
21151 pid_t
21152 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
21153 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
21154 /* Convince the compiler that p..p7 are live; otherwise, it might
21155 use the same hardware register for all 8 local variables. */
21156 if (p != p1 || p != p2 || p != p3 || p != p4
21157 || p != p5 || p != p6 || p != p7)
21158 _exit(1);
21160 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
21161 from child file descriptors. If the child closes a descriptor
21162 before it execs or exits, this munges the parent's descriptor
21163 as well. Test for this by closing stdout in the child. */
21164 _exit(close(fileno(stdout)) != 0);
21165 } else {
21166 int status;
21167 struct stat st;
21169 while (wait(&status) != child)
21171 return (
21172 /* Was there some problem with vforking? */
21173 child < 0
21175 /* Did the child fail? (This shouldn't happen.) */
21176 || status
21178 /* Did the vfork/compiler bug occur? */
21179 || parent != getpid()
21181 /* Did the file descriptor bug occur? */
21182 || fstat(fileno(stdout), &st) != 0
21186 _ACEOF
21187 if ac_fn_c_try_run "$LINENO"; then :
21188 ac_cv_func_vfork_works=yes
21189 else
21190 ac_cv_func_vfork_works=no
21192 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21193 conftest.$ac_objext conftest.beam conftest.$ac_ext
21197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
21198 $as_echo "$ac_cv_func_vfork_works" >&6; }
21201 if test "x$ac_cv_func_fork_works" = xcross; then
21202 ac_cv_func_vfork_works=$ac_cv_func_vfork
21203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
21204 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
21207 if test "x$ac_cv_func_vfork_works" = xyes; then
21209 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
21211 else
21213 $as_echo "#define vfork fork" >>confdefs.h
21216 if test "x$ac_cv_func_fork_works" = xyes; then
21218 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
21222 for ac_func in strchr \
21223 memcpy \
21224 strtol \
21225 strtoul \
21226 select \
21227 poll \
21228 qsort \
21229 getuid \
21230 getpwuid \
21231 getpwnam \
21232 gettimeofday \
21233 tmpfile \
21234 uname \
21235 rename \
21236 read \
21237 signal \
21238 setjmp \
21239 chown \
21240 wait4 \
21241 waitpid \
21242 wait \
21243 srandom \
21244 popen \
21245 pclose \
21246 fsync \
21247 truncate \
21248 listen \
21249 wcwidth \
21250 mbstowcs \
21251 wcrtomb \
21252 wctomb \
21253 putenv \
21254 setenv
21255 do :
21256 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21257 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21258 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21259 cat >>confdefs.h <<_ACEOF
21260 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21261 _ACEOF
21264 done
21267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostname" >&5
21268 $as_echo_n "checking for library containing gethostname... " >&6; }
21269 if ${ac_cv_search_gethostname+:} false; then :
21270 $as_echo_n "(cached) " >&6
21271 else
21272 ac_func_search_save_LIBS=$LIBS
21273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21274 /* end confdefs.h. */
21276 /* Override any GCC internal prototype to avoid an error.
21277 Use char because int might match the return type of a GCC
21278 builtin and then its argument prototype would still apply. */
21279 #ifdef __cplusplus
21280 extern "C"
21281 #endif
21282 char gethostname ();
21284 main ()
21286 return gethostname ();
21288 return 0;
21290 _ACEOF
21291 for ac_lib in '' nsl; do
21292 if test -z "$ac_lib"; then
21293 ac_res="none required"
21294 else
21295 ac_res=-l$ac_lib
21296 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21298 if ac_fn_c_try_link "$LINENO"; then :
21299 ac_cv_search_gethostname=$ac_res
21301 rm -f core conftest.err conftest.$ac_objext \
21302 conftest$ac_exeext
21303 if ${ac_cv_search_gethostname+:} false; then :
21304 break
21306 done
21307 if ${ac_cv_search_gethostname+:} false; then :
21309 else
21310 ac_cv_search_gethostname=no
21312 rm conftest.$ac_ext
21313 LIBS=$ac_func_search_save_LIBS
21315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostname" >&5
21316 $as_echo "$ac_cv_search_gethostname" >&6; }
21317 ac_res=$ac_cv_search_gethostname
21318 if test "$ac_res" != no; then :
21319 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
21325 $as_echo_n "checking for library containing socket... " >&6; }
21326 if ${ac_cv_search_socket+:} false; then :
21327 $as_echo_n "(cached) " >&6
21328 else
21329 ac_func_search_save_LIBS=$LIBS
21330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21331 /* end confdefs.h. */
21333 /* Override any GCC internal prototype to avoid an error.
21334 Use char because int might match the return type of a GCC
21335 builtin and then its argument prototype would still apply. */
21336 #ifdef __cplusplus
21337 extern "C"
21338 #endif
21339 char socket ();
21341 main ()
21343 return socket ();
21345 return 0;
21347 _ACEOF
21348 for ac_lib in '' socket; do
21349 if test -z "$ac_lib"; then
21350 ac_res="none required"
21351 else
21352 ac_res=-l$ac_lib
21353 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21355 if ac_fn_c_try_link "$LINENO"; then :
21356 ac_cv_search_socket=$ac_res
21358 rm -f core conftest.err conftest.$ac_objext \
21359 conftest$ac_exeext
21360 if ${ac_cv_search_socket+:} false; then :
21361 break
21363 done
21364 if ${ac_cv_search_socket+:} false; then :
21366 else
21367 ac_cv_search_socket=no
21369 rm conftest.$ac_ext
21370 LIBS=$ac_func_search_save_LIBS
21372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
21373 $as_echo "$ac_cv_search_socket" >&6; }
21374 ac_res=$ac_cv_search_socket
21375 if test "$ac_res" != no; then :
21376 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21378 else
21380 WEB_BUILD=
21385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bind" >&5
21386 $as_echo_n "checking for library containing bind... " >&6; }
21387 if ${ac_cv_search_bind+:} false; then :
21388 $as_echo_n "(cached) " >&6
21389 else
21390 ac_func_search_save_LIBS=$LIBS
21391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21392 /* end confdefs.h. */
21394 /* Override any GCC internal prototype to avoid an error.
21395 Use char because int might match the return type of a GCC
21396 builtin and then its argument prototype would still apply. */
21397 #ifdef __cplusplus
21398 extern "C"
21399 #endif
21400 char bind ();
21402 main ()
21404 return bind ();
21406 return 0;
21408 _ACEOF
21409 for ac_lib in '' bind; do
21410 if test -z "$ac_lib"; then
21411 ac_res="none required"
21412 else
21413 ac_res=-l$ac_lib
21414 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21416 if ac_fn_c_try_link "$LINENO"; then :
21417 ac_cv_search_bind=$ac_res
21419 rm -f core conftest.err conftest.$ac_objext \
21420 conftest$ac_exeext
21421 if ${ac_cv_search_bind+:} false; then :
21422 break
21424 done
21425 if ${ac_cv_search_bind+:} false; then :
21427 else
21428 ac_cv_search_bind=no
21430 rm conftest.$ac_ext
21431 LIBS=$ac_func_search_save_LIBS
21433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bind" >&5
21434 $as_echo "$ac_cv_search_bind" >&6; }
21435 ac_res=$ac_cv_search_bind
21436 if test "$ac_res" != no; then :
21437 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21439 else
21441 WEB_BUILD=
21446 for ac_func in sigaction sigemptyset sigaddset sigprocmask
21447 do :
21448 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21449 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21450 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21451 cat >>confdefs.h <<_ACEOF
21452 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21453 _ACEOF
21456 $as_echo "#define POSIX_SIGNALS /**/" >>confdefs.h
21459 else
21461 for ac_func in sigset sigrelse
21462 do :
21463 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21464 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21465 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21466 cat >>confdefs.h <<_ACEOF
21467 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21468 _ACEOF
21471 $as_echo "#define SYSV_SIGNALS /**/" >>confdefs.h
21475 done
21479 done
21482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing syslog" >&5
21483 $as_echo_n "checking for library containing syslog... " >&6; }
21484 if ${ac_cv_search_syslog+:} false; then :
21485 $as_echo_n "(cached) " >&6
21486 else
21487 ac_func_search_save_LIBS=$LIBS
21488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21489 /* end confdefs.h. */
21491 /* Override any GCC internal prototype to avoid an error.
21492 Use char because int might match the return type of a GCC
21493 builtin and then its argument prototype would still apply. */
21494 #ifdef __cplusplus
21495 extern "C"
21496 #endif
21497 char syslog ();
21499 main ()
21501 return syslog ();
21503 return 0;
21505 _ACEOF
21506 for ac_lib in '' bsd socket inet; do
21507 if test -z "$ac_lib"; then
21508 ac_res="none required"
21509 else
21510 ac_res=-l$ac_lib
21511 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21513 if ac_fn_c_try_link "$LINENO"; then :
21514 ac_cv_search_syslog=$ac_res
21516 rm -f core conftest.err conftest.$ac_objext \
21517 conftest$ac_exeext
21518 if ${ac_cv_search_syslog+:} false; then :
21519 break
21521 done
21522 if ${ac_cv_search_syslog+:} false; then :
21524 else
21525 ac_cv_search_syslog=no
21527 rm conftest.$ac_ext
21528 LIBS=$ac_func_search_save_LIBS
21530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_syslog" >&5
21531 $as_echo "$ac_cv_search_syslog" >&6; }
21532 ac_res=$ac_cv_search_syslog
21533 if test "$ac_res" != no; then :
21534 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21537 $as_echo "#define HAVE_SYSLOG 1" >>confdefs.h
21544 if test -n "$alpine_with_local_maildir" ; then
21545 alpine_local_maildir=$alpine_with_local_maildir
21546 elif test -d /var/spool/mail ; then
21547 alpine_local_maildir="/var/spool/mail"
21548 elif test -d /var/mail ; then
21549 alpine_local_maildir="/var/mail"
21550 else
21551 alpine_local_maildir="/usr/spool/mail"
21554 if test -n "$alpine_with_c_client_target" ; then
21555 alpine_c_client_target=$alpine_with_c_client_target
21559 cat >>confdefs.h <<_ACEOF
21560 #define SYSTYPE "$systype"
21561 _ACEOF
21564 cat >>confdefs.h <<_ACEOF
21565 #define C_FILESEP '$alpine_path_delim'
21566 _ACEOF
21569 cat >>confdefs.h <<_ACEOF
21570 #define S_FILESEP "$alpine_path_delim"
21571 _ACEOF
21574 cat >>confdefs.h <<_ACEOF
21575 #define MAILDIR "$alpine_local_maildir"
21576 _ACEOF
21579 cat >>confdefs.h <<_ACEOF
21580 #define MODE_READONLY $alpine_mode_readonly
21581 _ACEOF
21584 cat >>confdefs.h <<_ACEOF
21585 #define HTML_EXT "html"
21586 _ACEOF
21589 C_CLIENT_TARGET=$alpine_c_client_target
21591 C_CLIENT_WITH_IPV6=$c_client_ip6
21593 if test "x$alpine_SSLTYPE" = "xnone" ; then
21594 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * NOT Including SSL Support" >&5
21595 $as_echo "$as_me: * * * NOT Including SSL Support" >&6;}
21596 c_client_specials="${c_client_specials}SSLTYPE=none "
21597 else
21599 if test -n "$alpine_SSLCERTS" -a -d "$alpine_SSLCERTS" ; then
21600 certdir="$alpine_SSLCERTS"
21601 elif test -n "$alpine_SSLDIR" -a -d "${alpine_SSLDIR}/certs" ; then
21602 certdir="${alpine_SSLDIR}/certs"
21603 elif test -n "$alpine_SSLDIR" -a -d "${alpine_SSLDIR}/ssl/certs" ; then
21604 certdir="${alpine_SSLDIR}/ssl/certs"
21605 elif test -n "$alpine_SSLCERTS_ORIG" -a -d "$alpine_SSLCERTS_ORIG" ; then
21606 certdir="$alpine_SSLCERTS_ORIG"
21607 elif test -n "$alpine_SSLCERTS" ; then
21608 certdir="$alpine_SSLCERTS"
21609 else
21610 { $as_echo "$as_me:${as_lineno-$LINENO}: SSL Problem: certificate directory not found" >&5
21611 $as_echo "$as_me: SSL Problem: certificate directory not found" >&6;}
21614 if test "x$with_smime" != "xno" ; then
21615 if test -n "$certdir" ; then
21616 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * S/MIME support enabled" >&5
21617 $as_echo "$as_me: * * * S/MIME support enabled" >&6;}
21619 $as_echo "#define SMIME /**/" >>confdefs.h
21622 cat >>confdefs.h <<_ACEOF
21623 #define SMIME_SSLCERTS "$certdir"
21624 _ACEOF
21630 SSL_CERT_LINK="no"
21631 if test -z "`ls ${certdir} | $EGREP '^[0-9A-Fa-f]{8}\.[0-9]'`" ; then
21632 SSL_BUNDLE_EXISTS="no"
21633 SSL_PEM="factory.pem ca-bundle.pem cert.pem ca-bundle.crt ca-root-nss.crt"
21634 for SSL_BUNDLE in $SSL_PEM
21636 if test -f ${certdir}/${SSL_BUNDLE} ; then
21637 SSL_BUNDLE_EXISTS="yes"
21639 done
21640 else
21641 SSL_CERT_LINK="yes"
21644 if test "x$SSL_BUNDLE_EXISTS" = "xno" -a "x$SSL_CERT_LINK" = "xno" ; then
21645 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * No certificates found in \"${certdir}\"." >&5
21646 $as_echo "$as_me: * * * No certificates found in \"${certdir}\"." >&6;}
21647 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * This might indicate that CA certs did not get properly" >&5
21648 $as_echo "$as_me: * * * This might indicate that CA certs did not get properly" >&6;}
21649 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * installed. If you get certificate validation failures" >&5
21650 $as_echo "$as_me: * * * installed. If you get certificate validation failures" >&6;}
21651 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * in Alpine, this might be the reason for them." >&5
21652 $as_echo "$as_me: * * * in Alpine, this might be the reason for them." >&6;}
21655 if test -n "$alpine_SSLINCLUDE" ; then
21656 c_client_specials="${c_client_specials}SSLINCLUDE=$alpine_SSLINCLUDE "
21659 if test -n "$alpine_SSLLIB" ; then
21660 c_client_specials="${c_client_specials}SSLLIB=$alpine_SSLLIB "
21663 if test -n "$alpine_SSLDIR" ; then
21664 c_client_specials="${c_client_specials}SSLDIR=$alpine_SSLDIR "
21667 if test -n "$certdir" ; then
21668 c_client_specials="${c_client_specials}SSLCERTS=$certdir "
21671 if test -n "$alpine_SSLKEYS" ; then
21672 c_client_specials="${c_client_specials}SSLKEYS=$alpine_SSLKEYS "
21676 extra_auth_gss=
21677 if test "x$alpine_GSSTYPE" != "xnone" ; then
21678 extra_auth_gss=gss
21679 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * Including Kerberos5 functionality" >&5
21680 $as_echo "$as_me: * * * Including Kerberos5 functionality" >&6;}
21683 extra_auth_ntlm=
21684 if test "x$alpine_NTLM" != "xnone" ; then
21685 extra_auth_ntlm=ntl
21686 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * Including NTLM Authenticator" >&5
21687 $as_echo "$as_me: * * * Including NTLM Authenticator" >&6;}
21690 if test -n "$CPPFLAGS" ; then
21691 alpine_c_client_cflags="$alpine_c_client_cflags ${CPPFLAGS}"
21693 if test -n "$CFLAGS" ; then
21694 alpine_c_client_cflags="$alpine_c_client_cflags ${CFLAGS}"
21697 if test -n "$alpine_c_client_cflags" ; then
21698 C_CLIENT_CFLAGS=EXTRACFLAGS=\"$alpine_c_client_cflags\"
21702 if test -n "$LDFLAGS" ; then
21703 alpine_c_client_ldflags="$alpine_c_client_ldflags ${LDFLAGS}"
21705 if test -n "$LIBS" ; then
21706 alpine_c_client_ldflags="$alpine_c_client_ldflags ${LIBS}"
21709 if test -n "$alpine_c_client_ldflags" ; then
21710 C_CLIENT_LDFLAGS=EXTRALDFLAGS=\"$alpine_c_client_ldflags\"
21714 if test -n "$alpine_c_client_gccoptlevel" ; then
21715 C_CLIENT_GCCOPTLEVEL=GCCOPTLEVEL=\"$alpine_c_client_gccoptlevel\"
21719 c_client_auths="$extra_auth_gss $extra_auth_ntlm"
21720 C_CLIENT_AUTHS=$c_client_auths
21723 C_CLIENT_SPECIALS=$c_client_specials
21726 if test -z "$WEB_BUILD" ; then
21727 WEB_PUBCOOKIE_BUILD=
21728 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * TCL libraries could not be found." >&5
21729 $as_echo "$as_me: * * * TCL libraries could not be found." >&6;}
21730 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * WEB ALPINE COMPONENT WILL NOT BE BUILT." >&5
21731 $as_echo "$as_me: * * * WEB ALPINE COMPONENT WILL NOT BE BUILT." >&6;}
21732 else
21733 if test -n "$WEB_PUBCOOKIE_BUILD" ; then
21734 if test "x$alpine_GSSTYPE" = "xnone" ; then
21735 WEB_PUBCOOKIE_BUILD=
21736 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * Kerberos5 support not found." >&5
21737 $as_echo "$as_me: * * * Kerberos5 support not found." >&6;}
21738 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * WEB ALPINE PUBCOOKIE COMPONENT WILL NOT BE BUILT." >&5
21739 $as_echo "$as_me: * * * WEB ALPINE PUBCOOKIE COMPONENT WILL NOT BE BUILT." >&6;}
21740 elif test -z "$WEB_BINDIR" ; then
21741 WEB_PUBCOOKIE_BUILD=
21742 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * Web Alpine binary directory not provided." >&5
21743 $as_echo "$as_me: * * * Web Alpine binary directory not provided." >&6;}
21744 as_fn_error $? "* * * --with-pubcookie requires --with-web-bin=PATH.
21745 Please re-run configure with these options:
21746 --with-pubcookie --with-web-bin=/usr/local/libexec/alpine/bin" "$LINENO" 5
21747 else
21749 $as_echo "#define PUBCOOKIE 1" >>confdefs.h
21751 WEB_PUBCOOKIE_LIB=../pubcookie/libauthgssproxy.a
21752 WEB_PUBCOOKIE_LINK=gssapi_proxy.l
21768 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"
21770 cat >confcache <<\_ACEOF
21771 # This file is a shell script that caches the results of configure
21772 # tests run on this system so they can be shared between configure
21773 # scripts and configure runs, see configure's option --config-cache.
21774 # It is not useful on other systems. If it contains results you don't
21775 # want to keep, you may remove or edit it.
21777 # config.status only pays attention to the cache file if you give it
21778 # the --recheck option to rerun configure.
21780 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21781 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21782 # following values.
21784 _ACEOF
21786 # The following way of writing the cache mishandles newlines in values,
21787 # but we know of no workaround that is simple, portable, and efficient.
21788 # So, we kill variables containing newlines.
21789 # Ultrix sh set writes to stderr and can't be redirected directly,
21790 # and sets the high bit in the cache file unless we assign to the vars.
21792 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21793 eval ac_val=\$$ac_var
21794 case $ac_val in #(
21795 *${as_nl}*)
21796 case $ac_var in #(
21797 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21798 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21799 esac
21800 case $ac_var in #(
21801 _ | IFS | as_nl) ;; #(
21802 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21803 *) { eval $ac_var=; unset $ac_var;} ;;
21804 esac ;;
21805 esac
21806 done
21808 (set) 2>&1 |
21809 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21810 *${as_nl}ac_space=\ *)
21811 # `set' does not quote correctly, so add quotes: double-quote
21812 # substitution turns \\\\ into \\, and sed turns \\ into \.
21813 sed -n \
21814 "s/'/'\\\\''/g;
21815 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21816 ;; #(
21818 # `set' quotes correctly as required by POSIX, so do not add quotes.
21819 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21821 esac |
21822 sort
21824 sed '
21825 /^ac_cv_env_/b end
21826 t clear
21827 :clear
21828 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21829 t end
21830 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21831 :end' >>confcache
21832 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21833 if test -w "$cache_file"; then
21834 if test "x$cache_file" != "x/dev/null"; then
21835 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21836 $as_echo "$as_me: updating cache $cache_file" >&6;}
21837 if test ! -f "$cache_file" || test -h "$cache_file"; then
21838 cat confcache >"$cache_file"
21839 else
21840 case $cache_file in #(
21841 */* | ?:*)
21842 mv -f confcache "$cache_file"$$ &&
21843 mv -f "$cache_file"$$ "$cache_file" ;; #(
21845 mv -f confcache "$cache_file" ;;
21846 esac
21849 else
21850 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21851 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21854 rm -f confcache
21856 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21857 # Let make expand exec_prefix.
21858 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21860 DEFS=-DHAVE_CONFIG_H
21862 ac_libobjs=
21863 ac_ltlibobjs=
21865 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21866 # 1. Remove the extension, and $U if already installed.
21867 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21868 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21869 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21870 # will be set to the directory where LIBOBJS objects are built.
21871 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21872 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21873 done
21874 LIBOBJS=$ac_libobjs
21876 LTLIBOBJS=$ac_ltlibobjs
21879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
21880 $as_echo_n "checking that generated files are newer than configure... " >&6; }
21881 if test -n "$am_sleep_pid"; then
21882 # Hide warnings about reused PIDs.
21883 wait $am_sleep_pid 2>/dev/null
21885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
21886 $as_echo "done" >&6; }
21887 if test -n "$EXEEXT"; then
21888 am__EXEEXT_TRUE=
21889 am__EXEEXT_FALSE='#'
21890 else
21891 am__EXEEXT_TRUE='#'
21892 am__EXEEXT_FALSE=
21895 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21896 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
21897 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21899 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21900 as_fn_error $? "conditional \"AMDEP\" was never defined.
21901 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21903 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21904 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21905 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21908 : "${CONFIG_STATUS=./config.status}"
21909 ac_write_fail=0
21910 ac_clean_files_save=$ac_clean_files
21911 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21912 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21913 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21914 as_write_fail=0
21915 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21916 #! $SHELL
21917 # Generated by $as_me.
21918 # Run this file to recreate the current configuration.
21919 # Compiler output produced by configure, useful for debugging
21920 # configure, is in config.log if it exists.
21922 debug=false
21923 ac_cs_recheck=false
21924 ac_cs_silent=false
21926 SHELL=\${CONFIG_SHELL-$SHELL}
21927 export SHELL
21928 _ASEOF
21929 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
21930 ## -------------------- ##
21931 ## M4sh Initialization. ##
21932 ## -------------------- ##
21934 # Be more Bourne compatible
21935 DUALCASE=1; export DUALCASE # for MKS sh
21936 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21937 emulate sh
21938 NULLCMD=:
21939 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21940 # is contrary to our usage. Disable this feature.
21941 alias -g '${1+"$@"}'='"$@"'
21942 setopt NO_GLOB_SUBST
21943 else
21944 case `(set -o) 2>/dev/null` in #(
21945 *posix*) :
21946 set -o posix ;; #(
21947 *) :
21949 esac
21953 as_nl='
21955 export as_nl
21956 # Printing a long string crashes Solaris 7 /usr/bin/printf.
21957 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21958 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21959 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21960 # Prefer a ksh shell builtin over an external printf program on Solaris,
21961 # but without wasting forks for bash or zsh.
21962 if test -z "$BASH_VERSION$ZSH_VERSION" \
21963 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
21964 as_echo='print -r --'
21965 as_echo_n='print -rn --'
21966 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21967 as_echo='printf %s\n'
21968 as_echo_n='printf %s'
21969 else
21970 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
21971 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
21972 as_echo_n='/usr/ucb/echo -n'
21973 else
21974 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21975 as_echo_n_body='eval
21976 arg=$1;
21977 case $arg in #(
21978 *"$as_nl"*)
21979 expr "X$arg" : "X\\(.*\\)$as_nl";
21980 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21981 esac;
21982 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
21984 export as_echo_n_body
21985 as_echo_n='sh -c $as_echo_n_body as_echo'
21987 export as_echo_body
21988 as_echo='sh -c $as_echo_body as_echo'
21991 # The user is always right.
21992 if test "${PATH_SEPARATOR+set}" != set; then
21993 PATH_SEPARATOR=:
21994 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21995 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21996 PATH_SEPARATOR=';'
22001 # IFS
22002 # We need space, tab and new line, in precisely that order. Quoting is
22003 # there to prevent editors from complaining about space-tab.
22004 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22005 # splitting by setting IFS to empty value.)
22006 IFS=" "" $as_nl"
22008 # Find who we are. Look in the path if we contain no directory separator.
22009 as_myself=
22010 case $0 in #((
22011 *[\\/]* ) as_myself=$0 ;;
22012 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22013 for as_dir in $PATH
22015 IFS=$as_save_IFS
22016 test -z "$as_dir" && as_dir=.
22017 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22018 done
22019 IFS=$as_save_IFS
22022 esac
22023 # We did not find ourselves, most probably we were run as `sh COMMAND'
22024 # in which case we are not to be found in the path.
22025 if test "x$as_myself" = x; then
22026 as_myself=$0
22028 if test ! -f "$as_myself"; then
22029 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22030 exit 1
22033 # Unset variables that we do not need and which cause bugs (e.g. in
22034 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
22035 # suppresses any "Segmentation fault" message there. '((' could
22036 # trigger a bug in pdksh 5.2.14.
22037 for as_var in BASH_ENV ENV MAIL MAILPATH
22038 do eval test x\${$as_var+set} = xset \
22039 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
22040 done
22041 PS1='$ '
22042 PS2='> '
22043 PS4='+ '
22045 # NLS nuisances.
22046 LC_ALL=C
22047 export LC_ALL
22048 LANGUAGE=C
22049 export LANGUAGE
22051 # CDPATH.
22052 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22055 # as_fn_error STATUS ERROR [LINENO LOG_FD]
22056 # ----------------------------------------
22057 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
22058 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22059 # script with STATUS, using 1 if that was 0.
22060 as_fn_error ()
22062 as_status=$1; test $as_status -eq 0 && as_status=1
22063 if test "$4"; then
22064 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22065 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
22067 $as_echo "$as_me: error: $2" >&2
22068 as_fn_exit $as_status
22069 } # as_fn_error
22072 # as_fn_set_status STATUS
22073 # -----------------------
22074 # Set $? to STATUS, without forking.
22075 as_fn_set_status ()
22077 return $1
22078 } # as_fn_set_status
22080 # as_fn_exit STATUS
22081 # -----------------
22082 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
22083 as_fn_exit ()
22085 set +e
22086 as_fn_set_status $1
22087 exit $1
22088 } # as_fn_exit
22090 # as_fn_unset VAR
22091 # ---------------
22092 # Portably unset VAR.
22093 as_fn_unset ()
22095 { eval $1=; unset $1;}
22097 as_unset=as_fn_unset
22098 # as_fn_append VAR VALUE
22099 # ----------------------
22100 # Append the text in VALUE to the end of the definition contained in VAR. Take
22101 # advantage of any shell optimizations that allow amortized linear growth over
22102 # repeated appends, instead of the typical quadratic growth present in naive
22103 # implementations.
22104 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
22105 eval 'as_fn_append ()
22107 eval $1+=\$2
22109 else
22110 as_fn_append ()
22112 eval $1=\$$1\$2
22114 fi # as_fn_append
22116 # as_fn_arith ARG...
22117 # ------------------
22118 # Perform arithmetic evaluation on the ARGs, and store the result in the
22119 # global $as_val. Take advantage of shells that can avoid forks. The arguments
22120 # must be portable across $(()) and expr.
22121 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
22122 eval 'as_fn_arith ()
22124 as_val=$(( $* ))
22126 else
22127 as_fn_arith ()
22129 as_val=`expr "$@" || test $? -eq 1`
22131 fi # as_fn_arith
22134 if expr a : '\(a\)' >/dev/null 2>&1 &&
22135 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22136 as_expr=expr
22137 else
22138 as_expr=false
22141 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22142 as_basename=basename
22143 else
22144 as_basename=false
22147 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22148 as_dirname=dirname
22149 else
22150 as_dirname=false
22153 as_me=`$as_basename -- "$0" ||
22154 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22155 X"$0" : 'X\(//\)$' \| \
22156 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22157 $as_echo X/"$0" |
22158 sed '/^.*\/\([^/][^/]*\)\/*$/{
22159 s//\1/
22162 /^X\/\(\/\/\)$/{
22163 s//\1/
22166 /^X\/\(\/\).*/{
22167 s//\1/
22170 s/.*/./; q'`
22172 # Avoid depending upon Character Ranges.
22173 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22174 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22175 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22176 as_cr_digits='0123456789'
22177 as_cr_alnum=$as_cr_Letters$as_cr_digits
22179 ECHO_C= ECHO_N= ECHO_T=
22180 case `echo -n x` in #(((((
22181 -n*)
22182 case `echo 'xy\c'` in
22183 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22184 xy) ECHO_C='\c';;
22185 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
22186 ECHO_T=' ';;
22187 esac;;
22189 ECHO_N='-n';;
22190 esac
22192 rm -f conf$$ conf$$.exe conf$$.file
22193 if test -d conf$$.dir; then
22194 rm -f conf$$.dir/conf$$.file
22195 else
22196 rm -f conf$$.dir
22197 mkdir conf$$.dir 2>/dev/null
22199 if (echo >conf$$.file) 2>/dev/null; then
22200 if ln -s conf$$.file conf$$ 2>/dev/null; then
22201 as_ln_s='ln -s'
22202 # ... but there are two gotchas:
22203 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22204 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22205 # In both cases, we have to default to `cp -pR'.
22206 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22207 as_ln_s='cp -pR'
22208 elif ln conf$$.file conf$$ 2>/dev/null; then
22209 as_ln_s=ln
22210 else
22211 as_ln_s='cp -pR'
22213 else
22214 as_ln_s='cp -pR'
22216 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22217 rmdir conf$$.dir 2>/dev/null
22220 # as_fn_mkdir_p
22221 # -------------
22222 # Create "$as_dir" as a directory, including parents if necessary.
22223 as_fn_mkdir_p ()
22226 case $as_dir in #(
22227 -*) as_dir=./$as_dir;;
22228 esac
22229 test -d "$as_dir" || eval $as_mkdir_p || {
22230 as_dirs=
22231 while :; do
22232 case $as_dir in #(
22233 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22234 *) as_qdir=$as_dir;;
22235 esac
22236 as_dirs="'$as_qdir' $as_dirs"
22237 as_dir=`$as_dirname -- "$as_dir" ||
22238 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22239 X"$as_dir" : 'X\(//\)[^/]' \| \
22240 X"$as_dir" : 'X\(//\)$' \| \
22241 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22242 $as_echo X"$as_dir" |
22243 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22244 s//\1/
22247 /^X\(\/\/\)[^/].*/{
22248 s//\1/
22251 /^X\(\/\/\)$/{
22252 s//\1/
22255 /^X\(\/\).*/{
22256 s//\1/
22259 s/.*/./; q'`
22260 test -d "$as_dir" && break
22261 done
22262 test -z "$as_dirs" || eval "mkdir $as_dirs"
22263 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
22266 } # as_fn_mkdir_p
22267 if mkdir -p . 2>/dev/null; then
22268 as_mkdir_p='mkdir -p "$as_dir"'
22269 else
22270 test -d ./-p && rmdir ./-p
22271 as_mkdir_p=false
22275 # as_fn_executable_p FILE
22276 # -----------------------
22277 # Test if FILE is an executable regular file.
22278 as_fn_executable_p ()
22280 test -f "$1" && test -x "$1"
22281 } # as_fn_executable_p
22282 as_test_x='test -x'
22283 as_executable_p=as_fn_executable_p
22285 # Sed expression to map a string onto a valid CPP name.
22286 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22288 # Sed expression to map a string onto a valid variable name.
22289 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22292 exec 6>&1
22293 ## ----------------------------------- ##
22294 ## Main body of $CONFIG_STATUS script. ##
22295 ## ----------------------------------- ##
22296 _ASEOF
22297 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
22299 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22300 # Save the log message, to keep $0 and so on meaningful, and to
22301 # report actual input values of CONFIG_FILES etc. instead of their
22302 # values after options handling.
22303 ac_log="
22304 This file was extended by alpine $as_me 2.24.1, which was
22305 generated by GNU Autoconf 2.69. Invocation command line was
22307 CONFIG_FILES = $CONFIG_FILES
22308 CONFIG_HEADERS = $CONFIG_HEADERS
22309 CONFIG_LINKS = $CONFIG_LINKS
22310 CONFIG_COMMANDS = $CONFIG_COMMANDS
22311 $ $0 $@
22313 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22316 _ACEOF
22318 case $ac_config_files in *"
22319 "*) set x $ac_config_files; shift; ac_config_files=$*;;
22320 esac
22322 case $ac_config_headers in *"
22323 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22324 esac
22327 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22328 # Files that config.status was made for.
22329 config_files="$ac_config_files"
22330 config_headers="$ac_config_headers"
22331 config_commands="$ac_config_commands"
22333 _ACEOF
22335 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22336 ac_cs_usage="\
22337 \`$as_me' instantiates files and other configuration actions
22338 from templates according to the current configuration. Unless the files
22339 and actions are specified as TAGs, all are instantiated by default.
22341 Usage: $0 [OPTION]... [TAG]...
22343 -h, --help print this help, then exit
22344 -V, --version print version number and configuration settings, then exit
22345 --config print configuration, then exit
22346 -q, --quiet, --silent
22347 do not print progress messages
22348 -d, --debug don't remove temporary files
22349 --recheck update $as_me by reconfiguring in the same conditions
22350 --file=FILE[:TEMPLATE]
22351 instantiate the configuration file FILE
22352 --header=FILE[:TEMPLATE]
22353 instantiate the configuration header FILE
22355 Configuration files:
22356 $config_files
22358 Configuration headers:
22359 $config_headers
22361 Configuration commands:
22362 $config_commands
22364 Report bugs to <chappa@washington.edu>."
22366 _ACEOF
22367 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22368 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
22369 ac_cs_version="\\
22370 alpine config.status 2.24.1
22371 configured by $0, generated by GNU Autoconf 2.69,
22372 with options \\"\$ac_cs_config\\"
22374 Copyright (C) 2012 Free Software Foundation, Inc.
22375 This config.status script is free software; the Free Software Foundation
22376 gives unlimited permission to copy, distribute and modify it."
22378 ac_pwd='$ac_pwd'
22379 srcdir='$srcdir'
22380 INSTALL='$INSTALL'
22381 MKDIR_P='$MKDIR_P'
22382 AWK='$AWK'
22383 test -n "\$AWK" || AWK=awk
22384 _ACEOF
22386 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22387 # The default lists apply if the user does not specify any file.
22388 ac_need_defaults=:
22389 while test $# != 0
22391 case $1 in
22392 --*=?*)
22393 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22394 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22395 ac_shift=:
22397 --*=)
22398 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22399 ac_optarg=
22400 ac_shift=:
22403 ac_option=$1
22404 ac_optarg=$2
22405 ac_shift=shift
22407 esac
22409 case $ac_option in
22410 # Handling of the options.
22411 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22412 ac_cs_recheck=: ;;
22413 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22414 $as_echo "$ac_cs_version"; exit ;;
22415 --config | --confi | --conf | --con | --co | --c )
22416 $as_echo "$ac_cs_config"; exit ;;
22417 --debug | --debu | --deb | --de | --d | -d )
22418 debug=: ;;
22419 --file | --fil | --fi | --f )
22420 $ac_shift
22421 case $ac_optarg in
22422 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22423 '') as_fn_error $? "missing file argument" ;;
22424 esac
22425 as_fn_append CONFIG_FILES " '$ac_optarg'"
22426 ac_need_defaults=false;;
22427 --header | --heade | --head | --hea )
22428 $ac_shift
22429 case $ac_optarg in
22430 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22431 esac
22432 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
22433 ac_need_defaults=false;;
22434 --he | --h)
22435 # Conflict between --help and --header
22436 as_fn_error $? "ambiguous option: \`$1'
22437 Try \`$0 --help' for more information.";;
22438 --help | --hel | -h )
22439 $as_echo "$ac_cs_usage"; exit ;;
22440 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22441 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22442 ac_cs_silent=: ;;
22444 # This is an error.
22445 -*) as_fn_error $? "unrecognized option: \`$1'
22446 Try \`$0 --help' for more information." ;;
22448 *) as_fn_append ac_config_targets " $1"
22449 ac_need_defaults=false ;;
22451 esac
22452 shift
22453 done
22455 ac_configure_extra_args=
22457 if $ac_cs_silent; then
22458 exec 6>/dev/null
22459 ac_configure_extra_args="$ac_configure_extra_args --silent"
22462 _ACEOF
22463 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22464 if \$ac_cs_recheck; then
22465 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22466 shift
22467 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22468 CONFIG_SHELL='$SHELL'
22469 export CONFIG_SHELL
22470 exec "\$@"
22473 _ACEOF
22474 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22475 exec 5>>config.log
22477 echo
22478 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22479 ## Running $as_me. ##
22480 _ASBOX
22481 $as_echo "$ac_log"
22482 } >&5
22484 _ACEOF
22485 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22487 # INIT-COMMANDS
22489 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22492 # The HP-UX ksh and POSIX shell print the target directory to stdout
22493 # if CDPATH is set.
22494 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22496 sed_quote_subst='$sed_quote_subst'
22497 double_quote_subst='$double_quote_subst'
22498 delay_variable_subst='$delay_variable_subst'
22499 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
22500 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
22501 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
22502 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
22503 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
22504 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
22505 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
22506 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
22507 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
22508 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
22509 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
22510 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
22511 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
22512 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
22513 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
22514 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
22515 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
22516 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
22517 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
22518 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
22519 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
22520 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
22521 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
22522 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
22523 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
22524 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
22525 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
22526 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
22527 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
22528 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
22529 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
22530 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
22531 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
22532 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
22533 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
22534 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
22535 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
22536 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
22537 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
22538 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
22539 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
22540 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
22541 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
22542 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
22543 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
22544 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
22545 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22546 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22547 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
22548 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
22549 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
22550 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
22551 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
22552 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
22553 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
22554 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
22555 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
22556 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
22557 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"`'
22558 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
22559 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
22560 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
22561 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
22562 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
22563 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
22564 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
22565 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
22566 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
22567 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
22568 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
22569 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
22570 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
22571 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
22572 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
22573 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
22574 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
22575 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
22576 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
22577 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
22578 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22579 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
22580 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
22581 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
22582 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
22583 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
22584 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
22585 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22586 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
22587 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22588 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
22589 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22590 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
22591 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
22592 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
22593 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
22594 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
22595 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
22596 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
22597 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
22598 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
22599 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
22600 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
22601 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
22602 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
22603 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
22604 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
22605 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
22606 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
22607 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
22608 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
22609 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
22610 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
22611 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
22612 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
22613 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
22614 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
22615 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
22616 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
22617 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
22618 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
22619 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
22620 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22621 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22622 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
22623 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
22624 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
22625 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
22626 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
22627 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
22628 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
22629 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
22630 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
22631 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
22632 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
22633 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
22635 LTCC='$LTCC'
22636 LTCFLAGS='$LTCFLAGS'
22637 compiler='$compiler_DEFAULT'
22639 # A function that is used when there is no print builtin or printf.
22640 func_fallback_echo ()
22642 eval 'cat <<_LTECHO_EOF
22644 _LTECHO_EOF'
22647 # Quote evaled strings.
22648 for var in SHELL \
22649 ECHO \
22650 PATH_SEPARATOR \
22651 SED \
22652 GREP \
22653 EGREP \
22654 FGREP \
22655 LD \
22656 NM \
22657 LN_S \
22658 lt_SP2NL \
22659 lt_NL2SP \
22660 reload_flag \
22661 OBJDUMP \
22662 deplibs_check_method \
22663 file_magic_cmd \
22664 file_magic_glob \
22665 want_nocaseglob \
22666 DLLTOOL \
22667 sharedlib_from_linklib_cmd \
22668 AR \
22669 AR_FLAGS \
22670 archiver_list_spec \
22671 STRIP \
22672 RANLIB \
22673 CC \
22674 CFLAGS \
22675 compiler \
22676 lt_cv_sys_global_symbol_pipe \
22677 lt_cv_sys_global_symbol_to_cdecl \
22678 lt_cv_sys_global_symbol_to_import \
22679 lt_cv_sys_global_symbol_to_c_name_address \
22680 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22681 lt_cv_nm_interface \
22682 nm_file_list_spec \
22683 lt_cv_truncate_bin \
22684 lt_prog_compiler_no_builtin_flag \
22685 lt_prog_compiler_pic \
22686 lt_prog_compiler_wl \
22687 lt_prog_compiler_static \
22688 lt_cv_prog_compiler_c_o \
22689 need_locks \
22690 MANIFEST_TOOL \
22691 DSYMUTIL \
22692 NMEDIT \
22693 LIPO \
22694 OTOOL \
22695 OTOOL64 \
22696 shrext_cmds \
22697 export_dynamic_flag_spec \
22698 whole_archive_flag_spec \
22699 compiler_needs_object \
22700 with_gnu_ld \
22701 allow_undefined_flag \
22702 no_undefined_flag \
22703 hardcode_libdir_flag_spec \
22704 hardcode_libdir_separator \
22705 exclude_expsyms \
22706 include_expsyms \
22707 file_list_spec \
22708 variables_saved_for_relink \
22709 libname_spec \
22710 library_names_spec \
22711 soname_spec \
22712 install_override_mode \
22713 finish_eval \
22714 old_striplib \
22715 striplib; do
22716 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22717 *[\\\\\\\`\\"\\\$]*)
22718 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22721 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22723 esac
22724 done
22726 # Double-quote double-evaled strings.
22727 for var in reload_cmds \
22728 old_postinstall_cmds \
22729 old_postuninstall_cmds \
22730 old_archive_cmds \
22731 extract_expsyms_cmds \
22732 old_archive_from_new_cmds \
22733 old_archive_from_expsyms_cmds \
22734 archive_cmds \
22735 archive_expsym_cmds \
22736 module_cmds \
22737 module_expsym_cmds \
22738 export_symbols_cmds \
22739 prelink_cmds \
22740 postlink_cmds \
22741 postinstall_cmds \
22742 postuninstall_cmds \
22743 finish_cmds \
22744 sys_lib_search_path_spec \
22745 configure_time_dlsearch_path \
22746 configure_time_lt_sys_library_path; do
22747 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22748 *[\\\\\\\`\\"\\\$]*)
22749 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22752 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22754 esac
22755 done
22757 ac_aux_dir='$ac_aux_dir'
22759 # See if we are running on zsh, and set the options that allow our
22760 # commands through without removal of \ escapes INIT.
22761 if test -n "\${ZSH_VERSION+set}"; then
22762 setopt NO_GLOB_SUBST
22766 PACKAGE='$PACKAGE'
22767 VERSION='$VERSION'
22768 RM='$RM'
22769 ofile='$ofile'
22773 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
22774 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
22775 # from automake < 1.5.
22776 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
22777 # Capture the value of LINGUAS because we need it to compute CATALOGS.
22778 LINGUAS="${LINGUAS-%UNSET%}"
22781 _ACEOF
22783 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22785 # Handling of arguments.
22786 for ac_config_target in $ac_config_targets
22788 case $ac_config_target in
22789 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
22790 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22791 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
22792 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
22793 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
22794 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
22795 "$REGEX_MAKEFILE") CONFIG_FILES="$CONFIG_FILES $REGEX_MAKEFILE" ;;
22796 "pith/osdep/Makefile") CONFIG_FILES="$CONFIG_FILES pith/osdep/Makefile" ;;
22797 "pith/charconv/Makefile") CONFIG_FILES="$CONFIG_FILES pith/charconv/Makefile" ;;
22798 "pith/Makefile") CONFIG_FILES="$CONFIG_FILES pith/Makefile" ;;
22799 "pico/osdep/Makefile") CONFIG_FILES="$CONFIG_FILES pico/osdep/Makefile" ;;
22800 "pico/Makefile") CONFIG_FILES="$CONFIG_FILES pico/Makefile" ;;
22801 "alpine/osdep/Makefile") CONFIG_FILES="$CONFIG_FILES alpine/osdep/Makefile" ;;
22802 "alpine/Makefile") CONFIG_FILES="$CONFIG_FILES alpine/Makefile" ;;
22803 "web/src/Makefile") CONFIG_FILES="$CONFIG_FILES web/src/Makefile" ;;
22804 "web/src/pubcookie/Makefile") CONFIG_FILES="$CONFIG_FILES web/src/pubcookie/Makefile" ;;
22805 "web/src/alpined.d/Makefile") CONFIG_FILES="$CONFIG_FILES web/src/alpined.d/Makefile" ;;
22806 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22808 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
22809 esac
22810 done
22813 # If the user did not use the arguments to specify the items to instantiate,
22814 # then the envvar interface is used. Set only those that are not.
22815 # We use the long form for the default assignment because of an extremely
22816 # bizarre bug on SunOS 4.1.3.
22817 if $ac_need_defaults; then
22818 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22819 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22820 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22823 # Have a temporary directory for convenience. Make it in the build tree
22824 # simply because there is no reason against having it here, and in addition,
22825 # creating and moving files from /tmp can sometimes cause problems.
22826 # Hook for its removal unless debugging.
22827 # Note that there is a small window in which the directory will not be cleaned:
22828 # after its creation but before its name has been assigned to `$tmp'.
22829 $debug ||
22831 tmp= ac_tmp=
22832 trap 'exit_status=$?
22833 : "${ac_tmp:=$tmp}"
22834 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
22836 trap 'as_fn_exit 1' 1 2 13 15
22838 # Create a (secure) tmp directory for tmp files.
22841 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22842 test -d "$tmp"
22843 } ||
22845 tmp=./conf$$-$RANDOM
22846 (umask 077 && mkdir "$tmp")
22847 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
22848 ac_tmp=$tmp
22850 # Set up the scripts for CONFIG_FILES section.
22851 # No need to generate them if there are no CONFIG_FILES.
22852 # This happens for instance with `./config.status config.h'.
22853 if test -n "$CONFIG_FILES"; then
22856 ac_cr=`echo X | tr X '\015'`
22857 # On cygwin, bash can eat \r inside `` if the user requested igncr.
22858 # But we know of no other shell where ac_cr would be empty at this
22859 # point, so we can use a bashism as a fallback.
22860 if test "x$ac_cr" = x; then
22861 eval ac_cr=\$\'\\r\'
22863 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22864 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22865 ac_cs_awk_cr='\\r'
22866 else
22867 ac_cs_awk_cr=$ac_cr
22870 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
22871 _ACEOF
22875 echo "cat >conf$$subs.awk <<_ACEOF" &&
22876 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22877 echo "_ACEOF"
22878 } >conf$$subs.sh ||
22879 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22880 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
22881 ac_delim='%!_!# '
22882 for ac_last_try in false false false false false :; do
22883 . ./conf$$subs.sh ||
22884 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22886 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22887 if test $ac_delim_n = $ac_delim_num; then
22888 break
22889 elif $ac_last_try; then
22890 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22891 else
22892 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22894 done
22895 rm -f conf$$subs.sh
22897 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22898 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
22899 _ACEOF
22900 sed -n '
22902 s/^/S["/; s/!.*/"]=/
22905 s/^[^!]*!//
22906 :repl
22907 t repl
22908 s/'"$ac_delim"'$//
22909 t delim
22912 s/\(.\{148\}\)..*/\1/
22913 t more1
22914 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22917 b repl
22918 :more1
22919 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22922 s/.\{148\}//
22923 t nl
22924 :delim
22926 s/\(.\{148\}\)..*/\1/
22927 t more2
22928 s/["\\]/\\&/g; s/^/"/; s/$/"/
22931 :more2
22932 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22935 s/.\{148\}//
22936 t delim
22937 ' <conf$$subs.awk | sed '
22938 /^[^""]/{
22940 s/\n//
22942 ' >>$CONFIG_STATUS || ac_write_fail=1
22943 rm -f conf$$subs.awk
22944 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22945 _ACAWK
22946 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
22947 for (key in S) S_is_set[key] = 1
22948 FS = "\a"
22952 line = $ 0
22953 nfields = split(line, field, "@")
22954 substed = 0
22955 len = length(field[1])
22956 for (i = 2; i < nfields; i++) {
22957 key = field[i]
22958 keylen = length(key)
22959 if (S_is_set[key]) {
22960 value = S[key]
22961 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22962 len += length(value) + length(field[++i])
22963 substed = 1
22964 } else
22965 len += 1 + keylen
22968 print line
22971 _ACAWK
22972 _ACEOF
22973 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22974 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22975 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22976 else
22978 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
22979 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
22980 _ACEOF
22982 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
22983 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
22984 # trailing colons and then remove the whole line if VPATH becomes empty
22985 # (actually we leave an empty line to preserve line numbers).
22986 if test "x$srcdir" = x.; then
22987 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
22989 s///
22990 s/^/:/
22991 s/[ ]*$/:/
22992 s/:\$(srcdir):/:/g
22993 s/:\${srcdir}:/:/g
22994 s/:@srcdir@:/:/g
22995 s/^:*//
22996 s/:*$//
22998 s/\(=[ ]*\).*/\1/
23000 s/\n//
23001 s/^[^=]*=[ ]*$//
23005 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23006 fi # test -n "$CONFIG_FILES"
23008 # Set up the scripts for CONFIG_HEADERS section.
23009 # No need to generate them if there are no CONFIG_HEADERS.
23010 # This happens for instance with `./config.status Makefile'.
23011 if test -n "$CONFIG_HEADERS"; then
23012 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
23013 BEGIN {
23014 _ACEOF
23016 # Transform confdefs.h into an awk script `defines.awk', embedded as
23017 # here-document in config.status, that substitutes the proper values into
23018 # config.h.in to produce config.h.
23020 # Create a delimiter string that does not exist in confdefs.h, to ease
23021 # handling of long lines.
23022 ac_delim='%!_!# '
23023 for ac_last_try in false false :; do
23024 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
23025 if test -z "$ac_tt"; then
23026 break
23027 elif $ac_last_try; then
23028 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
23029 else
23030 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23032 done
23034 # For the awk script, D is an array of macro values keyed by name,
23035 # likewise P contains macro parameters if any. Preserve backslash
23036 # newline sequences.
23038 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23039 sed -n '
23040 s/.\{148\}/&'"$ac_delim"'/g
23041 t rset
23042 :rset
23043 s/^[ ]*#[ ]*define[ ][ ]*/ /
23044 t def
23046 :def
23047 s/\\$//
23048 t bsnl
23049 s/["\\]/\\&/g
23050 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23051 D["\1"]=" \3"/p
23052 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
23054 :bsnl
23055 s/["\\]/\\&/g
23056 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23057 D["\1"]=" \3\\\\\\n"\\/p
23058 t cont
23059 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
23060 t cont
23062 :cont
23064 s/.\{148\}/&'"$ac_delim"'/g
23065 t clear
23066 :clear
23067 s/\\$//
23068 t bsnlc
23069 s/["\\]/\\&/g; s/^/"/; s/$/"/p
23071 :bsnlc
23072 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
23073 b cont
23074 ' <confdefs.h | sed '
23075 s/'"$ac_delim"'/"\\\
23076 "/g' >>$CONFIG_STATUS || ac_write_fail=1
23078 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23079 for (key in D) D_is_set[key] = 1
23080 FS = "\a"
23082 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23083 line = \$ 0
23084 split(line, arg, " ")
23085 if (arg[1] == "#") {
23086 defundef = arg[2]
23087 mac1 = arg[3]
23088 } else {
23089 defundef = substr(arg[1], 2)
23090 mac1 = arg[2]
23092 split(mac1, mac2, "(") #)
23093 macro = mac2[1]
23094 prefix = substr(line, 1, index(line, defundef) - 1)
23095 if (D_is_set[macro]) {
23096 # Preserve the white space surrounding the "#".
23097 print prefix "define", macro P[macro] D[macro]
23098 next
23099 } else {
23100 # Replace #undef with comments. This is necessary, for example,
23101 # in the case of _POSIX_SOURCE, which is predefined and required
23102 # on some systems where configure will not decide to define it.
23103 if (defundef == "undef") {
23104 print "/*", prefix defundef, macro, "*/"
23105 next
23109 { print }
23110 _ACAWK
23111 _ACEOF
23112 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23113 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
23114 fi # test -n "$CONFIG_HEADERS"
23117 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
23118 shift
23119 for ac_tag
23121 case $ac_tag in
23122 :[FHLC]) ac_mode=$ac_tag; continue;;
23123 esac
23124 case $ac_mode$ac_tag in
23125 :[FHL]*:*);;
23126 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
23127 :[FH]-) ac_tag=-:-;;
23128 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23129 esac
23130 ac_save_IFS=$IFS
23131 IFS=:
23132 set x $ac_tag
23133 IFS=$ac_save_IFS
23134 shift
23135 ac_file=$1
23136 shift
23138 case $ac_mode in
23139 :L) ac_source=$1;;
23140 :[FH])
23141 ac_file_inputs=
23142 for ac_f
23144 case $ac_f in
23145 -) ac_f="$ac_tmp/stdin";;
23146 *) # Look for the file first in the build tree, then in the source tree
23147 # (if the path is not absolute). The absolute path cannot be DOS-style,
23148 # because $ac_f cannot contain `:'.
23149 test -f "$ac_f" ||
23150 case $ac_f in
23151 [\\/$]*) false;;
23152 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23153 esac ||
23154 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
23155 esac
23156 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23157 as_fn_append ac_file_inputs " '$ac_f'"
23158 done
23160 # Let's still pretend it is `configure' which instantiates (i.e., don't
23161 # use $as_me), people would be surprised to read:
23162 # /* config.h. Generated by config.status. */
23163 configure_input='Generated from '`
23164 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23165 `' by configure.'
23166 if test x"$ac_file" != x-; then
23167 configure_input="$ac_file. $configure_input"
23168 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
23169 $as_echo "$as_me: creating $ac_file" >&6;}
23171 # Neutralize special characters interpreted by sed in replacement strings.
23172 case $configure_input in #(
23173 *\&* | *\|* | *\\* )
23174 ac_sed_conf_input=`$as_echo "$configure_input" |
23175 sed 's/[\\\\&|]/\\\\&/g'`;; #(
23176 *) ac_sed_conf_input=$configure_input;;
23177 esac
23179 case $ac_tag in
23180 *:-:* | *:-) cat >"$ac_tmp/stdin" \
23181 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
23182 esac
23184 esac
23186 ac_dir=`$as_dirname -- "$ac_file" ||
23187 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23188 X"$ac_file" : 'X\(//\)[^/]' \| \
23189 X"$ac_file" : 'X\(//\)$' \| \
23190 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23191 $as_echo X"$ac_file" |
23192 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23193 s//\1/
23196 /^X\(\/\/\)[^/].*/{
23197 s//\1/
23200 /^X\(\/\/\)$/{
23201 s//\1/
23204 /^X\(\/\).*/{
23205 s//\1/
23208 s/.*/./; q'`
23209 as_dir="$ac_dir"; as_fn_mkdir_p
23210 ac_builddir=.
23212 case "$ac_dir" in
23213 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23215 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23216 # A ".." for each directory in $ac_dir_suffix.
23217 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23218 case $ac_top_builddir_sub in
23219 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23220 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23221 esac ;;
23222 esac
23223 ac_abs_top_builddir=$ac_pwd
23224 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23225 # for backward compatibility:
23226 ac_top_builddir=$ac_top_build_prefix
23228 case $srcdir in
23229 .) # We are building in place.
23230 ac_srcdir=.
23231 ac_top_srcdir=$ac_top_builddir_sub
23232 ac_abs_top_srcdir=$ac_pwd ;;
23233 [\\/]* | ?:[\\/]* ) # Absolute name.
23234 ac_srcdir=$srcdir$ac_dir_suffix;
23235 ac_top_srcdir=$srcdir
23236 ac_abs_top_srcdir=$srcdir ;;
23237 *) # Relative name.
23238 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23239 ac_top_srcdir=$ac_top_build_prefix$srcdir
23240 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23241 esac
23242 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23245 case $ac_mode in
23248 # CONFIG_FILE
23251 case $INSTALL in
23252 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23253 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23254 esac
23255 ac_MKDIR_P=$MKDIR_P
23256 case $MKDIR_P in
23257 [\\/$]* | ?:[\\/]* ) ;;
23258 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23259 esac
23260 _ACEOF
23262 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23263 # If the template does not know about datarootdir, expand it.
23264 # FIXME: This hack should be removed a few years after 2.60.
23265 ac_datarootdir_hack=; ac_datarootdir_seen=
23266 ac_sed_dataroot='
23267 /datarootdir/ {
23271 /@datadir@/p
23272 /@docdir@/p
23273 /@infodir@/p
23274 /@localedir@/p
23275 /@mandir@/p'
23276 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23277 *datarootdir*) ac_datarootdir_seen=yes;;
23278 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23280 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23281 _ACEOF
23282 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23283 ac_datarootdir_hack='
23284 s&@datadir@&$datadir&g
23285 s&@docdir@&$docdir&g
23286 s&@infodir@&$infodir&g
23287 s&@localedir@&$localedir&g
23288 s&@mandir@&$mandir&g
23289 s&\\\${datarootdir}&$datarootdir&g' ;;
23290 esac
23291 _ACEOF
23293 # Neutralize VPATH when `$srcdir' = `.'.
23294 # Shell code in configure.ac might set extrasub.
23295 # FIXME: do we really want to maintain this feature?
23296 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23297 ac_sed_extra="$ac_vpsub
23298 $extrasub
23299 _ACEOF
23300 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23302 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23303 s|@configure_input@|$ac_sed_conf_input|;t t
23304 s&@top_builddir@&$ac_top_builddir_sub&;t t
23305 s&@top_build_prefix@&$ac_top_build_prefix&;t t
23306 s&@srcdir@&$ac_srcdir&;t t
23307 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23308 s&@top_srcdir@&$ac_top_srcdir&;t t
23309 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23310 s&@builddir@&$ac_builddir&;t t
23311 s&@abs_builddir@&$ac_abs_builddir&;t t
23312 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23313 s&@INSTALL@&$ac_INSTALL&;t t
23314 s&@MKDIR_P@&$ac_MKDIR_P&;t t
23315 $ac_datarootdir_hack
23317 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
23318 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23320 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23321 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
23322 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
23323 "$ac_tmp/out"`; test -z "$ac_out"; } &&
23324 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23325 which seems to be undefined. Please make sure it is defined" >&5
23326 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23327 which seems to be undefined. Please make sure it is defined" >&2;}
23329 rm -f "$ac_tmp/stdin"
23330 case $ac_file in
23331 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
23332 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
23333 esac \
23334 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23338 # CONFIG_HEADER
23340 if test x"$ac_file" != x-; then
23342 $as_echo "/* $configure_input */" \
23343 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
23344 } >"$ac_tmp/config.h" \
23345 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23346 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
23347 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
23348 $as_echo "$as_me: $ac_file is unchanged" >&6;}
23349 else
23350 rm -f "$ac_file"
23351 mv "$ac_tmp/config.h" "$ac_file" \
23352 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23354 else
23355 $as_echo "/* $configure_input */" \
23356 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
23357 || as_fn_error $? "could not create -" "$LINENO" 5
23359 # Compute "$ac_file"'s index in $config_headers.
23360 _am_arg="$ac_file"
23361 _am_stamp_count=1
23362 for _am_header in $config_headers :; do
23363 case $_am_header in
23364 $_am_arg | $_am_arg:* )
23365 break ;;
23367 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23368 esac
23369 done
23370 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23371 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23372 X"$_am_arg" : 'X\(//\)[^/]' \| \
23373 X"$_am_arg" : 'X\(//\)$' \| \
23374 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23375 $as_echo X"$_am_arg" |
23376 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23377 s//\1/
23380 /^X\(\/\/\)[^/].*/{
23381 s//\1/
23384 /^X\(\/\/\)$/{
23385 s//\1/
23388 /^X\(\/\).*/{
23389 s//\1/
23392 s/.*/./; q'`/stamp-h$_am_stamp_count
23395 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23396 $as_echo "$as_me: executing $ac_file commands" >&6;}
23398 esac
23401 case $ac_file$ac_mode in
23402 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
23403 # Older Autoconf quotes --file arguments for eval, but not when files
23404 # are listed without --file. Let's play safe and only enable the eval
23405 # if we detect the quoting.
23406 case $CONFIG_FILES in
23407 *\'*) eval set x "$CONFIG_FILES" ;;
23408 *) set x $CONFIG_FILES ;;
23409 esac
23410 shift
23411 for mf
23413 # Strip MF so we end up with the name of the file.
23414 mf=`echo "$mf" | sed -e 's/:.*$//'`
23415 # Check whether this is an Automake generated Makefile or not.
23416 # We used to match only the files named 'Makefile.in', but
23417 # some people rename them; so instead we look at the file content.
23418 # Grep'ing the first line is not enough: some people post-process
23419 # each Makefile.in and add a new line on top of each file to say so.
23420 # Grep'ing the whole file is not good either: AIX grep has a line
23421 # limit of 2048, but all sed's we know have understand at least 4000.
23422 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
23423 dirpart=`$as_dirname -- "$mf" ||
23424 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23425 X"$mf" : 'X\(//\)[^/]' \| \
23426 X"$mf" : 'X\(//\)$' \| \
23427 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23428 $as_echo X"$mf" |
23429 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23430 s//\1/
23433 /^X\(\/\/\)[^/].*/{
23434 s//\1/
23437 /^X\(\/\/\)$/{
23438 s//\1/
23441 /^X\(\/\).*/{
23442 s//\1/
23445 s/.*/./; q'`
23446 else
23447 continue
23449 # Extract the definition of DEPDIR, am__include, and am__quote
23450 # from the Makefile without running 'make'.
23451 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23452 test -z "$DEPDIR" && continue
23453 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23454 test -z "$am__include" && continue
23455 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23456 # Find all dependency output files, they are included files with
23457 # $(DEPDIR) in their names. We invoke sed twice because it is the
23458 # simplest approach to changing $(DEPDIR) to its actual value in the
23459 # expansion.
23460 for file in `sed -n "
23461 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23462 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
23463 # Make sure the directory exists.
23464 test -f "$dirpart/$file" && continue
23465 fdir=`$as_dirname -- "$file" ||
23466 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23467 X"$file" : 'X\(//\)[^/]' \| \
23468 X"$file" : 'X\(//\)$' \| \
23469 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23470 $as_echo X"$file" |
23471 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23472 s//\1/
23475 /^X\(\/\/\)[^/].*/{
23476 s//\1/
23479 /^X\(\/\/\)$/{
23480 s//\1/
23483 /^X\(\/\).*/{
23484 s//\1/
23487 s/.*/./; q'`
23488 as_dir=$dirpart/$fdir; as_fn_mkdir_p
23489 # echo "creating $dirpart/$file"
23490 echo '# dummy' > "$dirpart/$file"
23491 done
23492 done
23495 "libtool":C)
23497 # See if we are running on zsh, and set the options that allow our
23498 # commands through without removal of \ escapes.
23499 if test -n "${ZSH_VERSION+set}"; then
23500 setopt NO_GLOB_SUBST
23503 cfgfile=${ofile}T
23504 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23505 $RM "$cfgfile"
23507 cat <<_LT_EOF >> "$cfgfile"
23508 #! $SHELL
23509 # Generated automatically by $as_me ($PACKAGE) $VERSION
23510 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
23512 # Provide generalized library-building support services.
23513 # Written by Gordon Matzigkeit, 1996
23515 # Copyright (C) 2014 Free Software Foundation, Inc.
23516 # This is free software; see the source for copying conditions. There is NO
23517 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23519 # GNU Libtool is free software; you can redistribute it and/or modify
23520 # it under the terms of the GNU General Public License as published by
23521 # the Free Software Foundation; either version 2 of of the License, or
23522 # (at your option) any later version.
23524 # As a special exception to the GNU General Public License, if you
23525 # distribute this file as part of a program or library that is built
23526 # using GNU Libtool, you may include this file under the same
23527 # distribution terms that you use for the rest of that program.
23529 # GNU Libtool is distributed in the hope that it will be useful, but
23530 # WITHOUT ANY WARRANTY; without even the implied warranty of
23531 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23532 # GNU General Public License for more details.
23534 # You should have received a copy of the GNU General Public License
23535 # along with this program. If not, see <http://www.gnu.org/licenses/>.
23538 # The names of the tagged configurations supported by this script.
23539 available_tags=''
23541 # Configured defaults for sys_lib_dlsearch_path munging.
23542 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
23544 # ### BEGIN LIBTOOL CONFIG
23546 # Which release of libtool.m4 was used?
23547 macro_version=$macro_version
23548 macro_revision=$macro_revision
23550 # Whether or not to build shared libraries.
23551 build_libtool_libs=$enable_shared
23553 # Whether or not to build static libraries.
23554 build_old_libs=$enable_static
23556 # What type of objects to build.
23557 pic_mode=$pic_mode
23559 # Whether or not to optimize for fast installation.
23560 fast_install=$enable_fast_install
23562 # Shared archive member basename,for filename based shared library versioning on AIX.
23563 shared_archive_member_spec=$shared_archive_member_spec
23565 # Shell to use when invoking shell scripts.
23566 SHELL=$lt_SHELL
23568 # An echo program that protects backslashes.
23569 ECHO=$lt_ECHO
23571 # The PATH separator for the build system.
23572 PATH_SEPARATOR=$lt_PATH_SEPARATOR
23574 # The host system.
23575 host_alias=$host_alias
23576 host=$host
23577 host_os=$host_os
23579 # The build system.
23580 build_alias=$build_alias
23581 build=$build
23582 build_os=$build_os
23584 # A sed program that does not truncate output.
23585 SED=$lt_SED
23587 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
23588 Xsed="\$SED -e 1s/^X//"
23590 # A grep program that handles long lines.
23591 GREP=$lt_GREP
23593 # An ERE matcher.
23594 EGREP=$lt_EGREP
23596 # A literal string matcher.
23597 FGREP=$lt_FGREP
23599 # A BSD- or MS-compatible name lister.
23600 NM=$lt_NM
23602 # Whether we need soft or hard links.
23603 LN_S=$lt_LN_S
23605 # What is the maximum length of a command?
23606 max_cmd_len=$max_cmd_len
23608 # Object file suffix (normally "o").
23609 objext=$ac_objext
23611 # Executable file suffix (normally "").
23612 exeext=$exeext
23614 # whether the shell understands "unset".
23615 lt_unset=$lt_unset
23617 # turn spaces into newlines.
23618 SP2NL=$lt_lt_SP2NL
23620 # turn newlines into spaces.
23621 NL2SP=$lt_lt_NL2SP
23623 # convert \$build file names to \$host format.
23624 to_host_file_cmd=$lt_cv_to_host_file_cmd
23626 # convert \$build files to toolchain format.
23627 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
23629 # An object symbol dumper.
23630 OBJDUMP=$lt_OBJDUMP
23632 # Method to check whether dependent libraries are shared objects.
23633 deplibs_check_method=$lt_deplibs_check_method
23635 # Command to use when deplibs_check_method = "file_magic".
23636 file_magic_cmd=$lt_file_magic_cmd
23638 # How to find potential files when deplibs_check_method = "file_magic".
23639 file_magic_glob=$lt_file_magic_glob
23641 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
23642 want_nocaseglob=$lt_want_nocaseglob
23644 # DLL creation program.
23645 DLLTOOL=$lt_DLLTOOL
23647 # Command to associate shared and link libraries.
23648 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
23650 # The archiver.
23651 AR=$lt_AR
23653 # Flags to create an archive.
23654 AR_FLAGS=$lt_AR_FLAGS
23656 # How to feed a file listing to the archiver.
23657 archiver_list_spec=$lt_archiver_list_spec
23659 # A symbol stripping program.
23660 STRIP=$lt_STRIP
23662 # Commands used to install an old-style archive.
23663 RANLIB=$lt_RANLIB
23664 old_postinstall_cmds=$lt_old_postinstall_cmds
23665 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23667 # Whether to use a lock for old archive extraction.
23668 lock_old_archive_extraction=$lock_old_archive_extraction
23670 # A C compiler.
23671 LTCC=$lt_CC
23673 # LTCC compiler flags.
23674 LTCFLAGS=$lt_CFLAGS
23676 # Take the output of nm and produce a listing of raw symbols and C names.
23677 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23679 # Transform the output of nm in a proper C declaration.
23680 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23682 # Transform the output of nm into a list of symbols to manually relocate.
23683 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
23685 # Transform the output of nm in a C name address pair.
23686 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23688 # Transform the output of nm in a C name address pair when lib prefix is needed.
23689 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23691 # The name lister interface.
23692 nm_interface=$lt_lt_cv_nm_interface
23694 # Specify filename containing input files for \$NM.
23695 nm_file_list_spec=$lt_nm_file_list_spec
23697 # The root where to search for dependent libraries,and where our libraries should be installed.
23698 lt_sysroot=$lt_sysroot
23700 # Command to truncate a binary pipe.
23701 lt_truncate_bin=$lt_lt_cv_truncate_bin
23703 # The name of the directory that contains temporary libtool files.
23704 objdir=$objdir
23706 # Used to examine libraries when file_magic_cmd begins with "file".
23707 MAGIC_CMD=$MAGIC_CMD
23709 # Must we lock files when doing compilation?
23710 need_locks=$lt_need_locks
23712 # Manifest tool.
23713 MANIFEST_TOOL=$lt_MANIFEST_TOOL
23715 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23716 DSYMUTIL=$lt_DSYMUTIL
23718 # Tool to change global to local symbols on Mac OS X.
23719 NMEDIT=$lt_NMEDIT
23721 # Tool to manipulate fat objects and archives on Mac OS X.
23722 LIPO=$lt_LIPO
23724 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
23725 OTOOL=$lt_OTOOL
23727 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23728 OTOOL64=$lt_OTOOL64
23730 # Old archive suffix (normally "a").
23731 libext=$libext
23733 # Shared library suffix (normally ".so").
23734 shrext_cmds=$lt_shrext_cmds
23736 # The commands to extract the exported symbol list from a shared archive.
23737 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23739 # Variables whose values should be saved in libtool wrapper scripts and
23740 # restored at link time.
23741 variables_saved_for_relink=$lt_variables_saved_for_relink
23743 # Do we need the "lib" prefix for modules?
23744 need_lib_prefix=$need_lib_prefix
23746 # Do we need a version for libraries?
23747 need_version=$need_version
23749 # Library versioning type.
23750 version_type=$version_type
23752 # Shared library runtime path variable.
23753 runpath_var=$runpath_var
23755 # Shared library path variable.
23756 shlibpath_var=$shlibpath_var
23758 # Is shlibpath searched before the hard-coded library search path?
23759 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23761 # Format of library name prefix.
23762 libname_spec=$lt_libname_spec
23764 # List of archive names. First name is the real one, the rest are links.
23765 # The last name is the one that the linker finds with -lNAME
23766 library_names_spec=$lt_library_names_spec
23768 # The coded name of the library, if different from the real name.
23769 soname_spec=$lt_soname_spec
23771 # Permission mode override for installation of shared libraries.
23772 install_override_mode=$lt_install_override_mode
23774 # Command to use after installation of a shared archive.
23775 postinstall_cmds=$lt_postinstall_cmds
23777 # Command to use after uninstallation of a shared archive.
23778 postuninstall_cmds=$lt_postuninstall_cmds
23780 # Commands used to finish a libtool library installation in a directory.
23781 finish_cmds=$lt_finish_cmds
23783 # As "finish_cmds", except a single script fragment to be evaled but
23784 # not shown.
23785 finish_eval=$lt_finish_eval
23787 # Whether we should hardcode library paths into libraries.
23788 hardcode_into_libs=$hardcode_into_libs
23790 # Compile-time system search path for libraries.
23791 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23793 # Detected run-time system search path for libraries.
23794 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
23796 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
23797 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
23799 # Whether dlopen is supported.
23800 dlopen_support=$enable_dlopen
23802 # Whether dlopen of programs is supported.
23803 dlopen_self=$enable_dlopen_self
23805 # Whether dlopen of statically linked programs is supported.
23806 dlopen_self_static=$enable_dlopen_self_static
23808 # Commands to strip libraries.
23809 old_striplib=$lt_old_striplib
23810 striplib=$lt_striplib
23813 # The linker used to build libraries.
23814 LD=$lt_LD
23816 # How to create reloadable object files.
23817 reload_flag=$lt_reload_flag
23818 reload_cmds=$lt_reload_cmds
23820 # Commands used to build an old-style archive.
23821 old_archive_cmds=$lt_old_archive_cmds
23823 # A language specific compiler.
23824 CC=$lt_compiler
23826 # Is the compiler the GNU compiler?
23827 with_gcc=$GCC
23829 # Compiler flag to turn off builtin functions.
23830 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23832 # Additional compiler flags for building library objects.
23833 pic_flag=$lt_lt_prog_compiler_pic
23835 # How to pass a linker flag through the compiler.
23836 wl=$lt_lt_prog_compiler_wl
23838 # Compiler flag to prevent dynamic linking.
23839 link_static_flag=$lt_lt_prog_compiler_static
23841 # Does compiler simultaneously support -c and -o options?
23842 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23844 # Whether or not to add -lc for building shared libraries.
23845 build_libtool_need_lc=$archive_cmds_need_lc
23847 # Whether or not to disallow shared libs when runtime libs are static.
23848 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23850 # Compiler flag to allow reflexive dlopens.
23851 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23853 # Compiler flag to generate shared objects directly from archives.
23854 whole_archive_flag_spec=$lt_whole_archive_flag_spec
23856 # Whether the compiler copes with passing no objects directly.
23857 compiler_needs_object=$lt_compiler_needs_object
23859 # Create an old-style archive from a shared archive.
23860 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23862 # Create a temporary old-style archive to link instead of a shared archive.
23863 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23865 # Commands used to build a shared archive.
23866 archive_cmds=$lt_archive_cmds
23867 archive_expsym_cmds=$lt_archive_expsym_cmds
23869 # Commands used to build a loadable module if different from building
23870 # a shared archive.
23871 module_cmds=$lt_module_cmds
23872 module_expsym_cmds=$lt_module_expsym_cmds
23874 # Whether we are building with GNU ld or not.
23875 with_gnu_ld=$lt_with_gnu_ld
23877 # Flag that allows shared libraries with undefined symbols to be built.
23878 allow_undefined_flag=$lt_allow_undefined_flag
23880 # Flag that enforces no undefined symbols.
23881 no_undefined_flag=$lt_no_undefined_flag
23883 # Flag to hardcode \$libdir into a binary during linking.
23884 # This must work even if \$libdir does not exist
23885 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23887 # Whether we need a single "-rpath" flag with a separated argument.
23888 hardcode_libdir_separator=$lt_hardcode_libdir_separator
23890 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23891 # DIR into the resulting binary.
23892 hardcode_direct=$hardcode_direct
23894 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23895 # DIR into the resulting binary and the resulting library dependency is
23896 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
23897 # library is relocated.
23898 hardcode_direct_absolute=$hardcode_direct_absolute
23900 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23901 # into the resulting binary.
23902 hardcode_minus_L=$hardcode_minus_L
23904 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23905 # into the resulting binary.
23906 hardcode_shlibpath_var=$hardcode_shlibpath_var
23908 # Set to "yes" if building a shared library automatically hardcodes DIR
23909 # into the library and all subsequent libraries and executables linked
23910 # against it.
23911 hardcode_automatic=$hardcode_automatic
23913 # Set to yes if linker adds runtime paths of dependent libraries
23914 # to runtime path list.
23915 inherit_rpath=$inherit_rpath
23917 # Whether libtool must link a program against all its dependency libraries.
23918 link_all_deplibs=$link_all_deplibs
23920 # Set to "yes" if exported symbols are required.
23921 always_export_symbols=$always_export_symbols
23923 # The commands to list exported symbols.
23924 export_symbols_cmds=$lt_export_symbols_cmds
23926 # Symbols that should not be listed in the preloaded symbols.
23927 exclude_expsyms=$lt_exclude_expsyms
23929 # Symbols that must always be exported.
23930 include_expsyms=$lt_include_expsyms
23932 # Commands necessary for linking programs (against libraries) with templates.
23933 prelink_cmds=$lt_prelink_cmds
23935 # Commands necessary for finishing linking programs.
23936 postlink_cmds=$lt_postlink_cmds
23938 # Specify filename containing input files.
23939 file_list_spec=$lt_file_list_spec
23941 # How to hardcode a shared library path into an executable.
23942 hardcode_action=$hardcode_action
23944 # ### END LIBTOOL CONFIG
23946 _LT_EOF
23948 cat <<'_LT_EOF' >> "$cfgfile"
23950 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
23952 # func_munge_path_list VARIABLE PATH
23953 # -----------------------------------
23954 # VARIABLE is name of variable containing _space_ separated list of
23955 # directories to be munged by the contents of PATH, which is string
23956 # having a format:
23957 # "DIR[:DIR]:"
23958 # string "DIR[ DIR]" will be prepended to VARIABLE
23959 # ":DIR[:DIR]"
23960 # string "DIR[ DIR]" will be appended to VARIABLE
23961 # "DIRP[:DIRP]::[DIRA:]DIRA"
23962 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
23963 # "DIRA[ DIRA]" will be appended to VARIABLE
23964 # "DIR[:DIR]"
23965 # VARIABLE will be replaced by "DIR[ DIR]"
23966 func_munge_path_list ()
23968 case x$2 in
23972 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
23974 x:*)
23975 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
23977 *::*)
23978 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
23979 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
23982 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
23984 esac
23988 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
23989 func_cc_basename ()
23991 for cc_temp in $*""; do
23992 case $cc_temp in
23993 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23994 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23995 \-*) ;;
23996 *) break;;
23997 esac
23998 done
23999 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
24003 # ### END FUNCTIONS SHARED WITH CONFIGURE
24005 _LT_EOF
24007 case $host_os in
24008 aix3*)
24009 cat <<\_LT_EOF >> "$cfgfile"
24010 # AIX sometimes has problems with the GCC collect2 program. For some
24011 # reason, if we set the COLLECT_NAMES environment variable, the problems
24012 # vanish in a puff of smoke.
24013 if test set != "${COLLECT_NAMES+set}"; then
24014 COLLECT_NAMES=
24015 export COLLECT_NAMES
24017 _LT_EOF
24019 esac
24022 ltmain=$ac_aux_dir/ltmain.sh
24025 # We use sed instead of cat because bash on DJGPP gets confused if
24026 # if finds mixed CR/LF and LF-only lines. Since sed operates in
24027 # text mode, it properly converts lines to CR/LF. This bash problem
24028 # is reportedly fixed, but why not run on old versions too?
24029 sed '$q' "$ltmain" >> "$cfgfile" \
24030 || (rm -f "$cfgfile"; exit 1)
24032 mv -f "$cfgfile" "$ofile" ||
24033 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
24034 chmod +x "$ofile"
24037 "po-directories":C)
24038 for ac_file in $CONFIG_FILES; do
24039 # Support "outfile[:infile[:infile...]]"
24040 case "$ac_file" in
24041 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24042 esac
24043 # PO directories have a Makefile.in generated from Makefile.in.in.
24044 case "$ac_file" in */Makefile.in)
24045 # Adjust a relative srcdir.
24046 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
24047 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
24048 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
24049 # In autoconf-2.13 it is called $ac_given_srcdir.
24050 # In autoconf-2.50 it is called $srcdir.
24051 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
24052 case "$ac_given_srcdir" in
24053 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
24054 /*) top_srcdir="$ac_given_srcdir" ;;
24055 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
24056 esac
24057 # Treat a directory as a PO directory if and only if it has a
24058 # POTFILES.in file. This allows packages to have multiple PO
24059 # directories under different names or in different locations.
24060 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
24061 rm -f "$ac_dir/POTFILES"
24062 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
24063 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
24064 POMAKEFILEDEPS="POTFILES.in"
24065 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
24066 # on $ac_dir but don't depend on user-specified configuration
24067 # parameters.
24068 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
24069 # The LINGUAS file contains the set of available languages.
24070 if test -n "$OBSOLETE_ALL_LINGUAS"; then
24071 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
24073 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
24074 # Hide the ALL_LINGUAS assigment from automake < 1.5.
24075 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
24076 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
24077 else
24078 # The set of available languages was given in configure.in.
24079 # Hide the ALL_LINGUAS assigment from automake < 1.5.
24080 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
24082 # Compute POFILES
24083 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
24084 # Compute UPDATEPOFILES
24085 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
24086 # Compute DUMMYPOFILES
24087 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
24088 # Compute GMOFILES
24089 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
24090 case "$ac_given_srcdir" in
24091 .) srcdirpre= ;;
24092 *) srcdirpre='$(srcdir)/' ;;
24093 esac
24094 POFILES=
24095 UPDATEPOFILES=
24096 DUMMYPOFILES=
24097 GMOFILES=
24098 for lang in $ALL_LINGUAS; do
24099 POFILES="$POFILES $srcdirpre$lang.po"
24100 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
24101 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
24102 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
24103 done
24104 # CATALOGS depends on both $ac_dir and the user's LINGUAS
24105 # environment variable.
24106 INST_LINGUAS=
24107 if test -n "$ALL_LINGUAS"; then
24108 for presentlang in $ALL_LINGUAS; do
24109 useit=no
24110 if test "%UNSET%" != "$LINGUAS"; then
24111 desiredlanguages="$LINGUAS"
24112 else
24113 desiredlanguages="$ALL_LINGUAS"
24115 for desiredlang in $desiredlanguages; do
24116 # Use the presentlang catalog if desiredlang is
24117 # a. equal to presentlang, or
24118 # b. a variant of presentlang (because in this case,
24119 # presentlang can be used as a fallback for messages
24120 # which are not translated in the desiredlang catalog).
24121 case "$desiredlang" in
24122 "$presentlang"*) useit=yes;;
24123 esac
24124 done
24125 if test $useit = yes; then
24126 INST_LINGUAS="$INST_LINGUAS $presentlang"
24128 done
24130 CATALOGS=
24131 if test -n "$INST_LINGUAS"; then
24132 for lang in $INST_LINGUAS; do
24133 CATALOGS="$CATALOGS $lang.gmo"
24134 done
24136 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
24137 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"
24138 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
24139 if test -f "$f"; then
24140 case "$f" in
24141 *.orig | *.bak | *~) ;;
24142 *) cat "$f" >> "$ac_dir/Makefile" ;;
24143 esac
24145 done
24148 esac
24149 done ;;
24151 esac
24152 done # for ac_tag
24155 as_fn_exit 0
24156 _ACEOF
24157 ac_clean_files=$ac_clean_files_save
24159 test $ac_write_fail = 0 ||
24160 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
24163 # configure is writing to config.log, and then calls config.status.
24164 # config.status does its own redirection, appending to config.log.
24165 # Unfortunately, on DOS this fails, as config.log is still kept open
24166 # by configure, so config.status won't be able to write to it; its
24167 # output is simply discarded. So we exec the FD to /dev/null,
24168 # effectively closing config.log, so it can be properly (re)opened and
24169 # appended to by config.status. When coming back to configure, we
24170 # need to make the FD available again.
24171 if test "$no_create" != yes; then
24172 ac_cs_success=:
24173 ac_config_status_args=
24174 test "$silent" = yes &&
24175 ac_config_status_args="$ac_config_status_args --quiet"
24176 exec 5>/dev/null
24177 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24178 exec 5>>config.log
24179 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24180 # would make configure fail if this is the last instruction.
24181 $ac_cs_success || as_fn_exit 1
24183 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24184 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24185 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}