* commit a43c686472a0... and 2e921f97bd1278a... were modified to
[alpine.git] / configure
blob238a2ee97b52d2c5b244646b674703ed68962f97
1 #! /bin/sh
2 # From configure.ac Rev:27 by chappa@washington.edu.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.69 for alpine 2.21.9999.
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.21.9999'
595 PACKAGE_STRING='alpine 2.21.9999'
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 alpine_interactive_spellcheck
661 ISPELLPROG
662 alpine_simple_spellcheck
663 SPELLPROG
664 PWPROG
665 NPA_PROG
666 SENDMAIL
667 ALPINE_HOSTSTAMP
668 ALPINE_DATESTAMP
669 POSUB
670 LTLIBINTL
671 LIBINTL
672 INTLLIBS
673 LTLIBICONV
674 LIBICONV
675 INTL_MACOSX_LIBS
676 MSGMERGE
677 XGETTEXT_015
678 XGETTEXT
679 GMSGFMT_015
680 MSGFMT_015
681 GMSGFMT
682 MSGFMT
683 USE_NLS
684 MAKE
689 LIBTOOL_DEPS
690 LT_SYS_LIBRARY_PATH
691 OTOOL64
692 OTOOL
693 LIPO
694 NMEDIT
695 DSYMUTIL
696 MANIFEST_TOOL
697 RANLIB
698 ac_ct_AR
700 DLLTOOL
701 OBJDUMP
703 ac_ct_DUMPBIN
704 DUMPBIN
706 FGREP
707 EGREP
708 GREP
710 LIBTOOL
711 LN_S
712 LDFLAGS_FOR_BUILD
713 CPPFLAGS_FOR_BUILD
714 CFLAGS_FOR_BUILD
715 BUILD_OBJEXT
716 BUILD_EXEEXT
717 CPP_FOR_BUILD
718 ac_ct_CC_FOR_BUILD
719 CC_FOR_BUILD
721 am__fastdepCC_FALSE
722 am__fastdepCC_TRUE
723 CCDEPMODE
724 am__nodep
725 AMDEPBACKSLASH
726 AMDEP_FALSE
727 AMDEP_TRUE
728 am__quote
729 am__include
730 DEPDIR
731 OBJEXT
732 EXEEXT
733 ac_ct_CC
734 CPPFLAGS
735 LDFLAGS
736 CFLAGS
738 host_os
739 host_vendor
740 host_cpu
741 host
742 build_os
743 build_vendor
744 build_cpu
745 build
746 MAINT
747 MAINTAINER_MODE_FALSE
748 MAINTAINER_MODE_TRUE
749 AM_BACKSLASH
750 AM_DEFAULT_VERBOSITY
751 AM_DEFAULT_V
752 AM_V
753 am__untar
754 am__tar
755 AMTAR
756 am__leading_dot
757 SET_MAKE
759 mkdir_p
760 MKDIR_P
761 INSTALL_STRIP_PROGRAM
762 STRIP
763 install_sh
764 MAKEINFO
765 AUTOHEADER
766 AUTOMAKE
767 AUTOCONF
768 ACLOCAL
769 VERSION
770 PACKAGE
771 CYGPATH_W
772 am__isrc
773 INSTALL_DATA
774 INSTALL_SCRIPT
775 INSTALL_PROGRAM
776 target_alias
777 host_alias
778 build_alias
779 LIBS
780 ECHO_T
781 ECHO_N
782 ECHO_C
783 DEFS
784 mandir
785 localedir
786 libdir
787 psdir
788 pdfdir
789 dvidir
790 htmldir
791 infodir
792 docdir
793 oldincludedir
794 includedir
795 localstatedir
796 sharedstatedir
797 sysconfdir
798 datadir
799 datarootdir
800 libexecdir
801 sbindir
802 bindir
803 program_transform_name
804 prefix
805 exec_prefix
806 PACKAGE_URL
807 PACKAGE_BUGREPORT
808 PACKAGE_STRING
809 PACKAGE_VERSION
810 PACKAGE_TARNAME
811 PACKAGE_NAME
812 PATH_SEPARATOR
813 SHELL'
814 ac_subst_files=''
815 ac_user_opts='
816 enable_option_checking
817 enable_silent_rules
818 enable_maintainer_mode
819 enable_dependency_tracking
820 enable_shared
821 enable_static
822 with_pic
823 enable_fast_install
824 with_aix_soname
825 with_gnu_ld
826 with_sysroot
827 enable_libtool_lock
828 enable_nls
829 enable_rpath
830 with_libiconv_prefix
831 with_libintl_prefix
832 enable_dmalloc
833 with_dmalloc_dir
834 with_date_stamp
835 with_host_stamp
836 with_ps_cmd
837 with_localedir
838 enable_osx_universal_binaries
839 with_include_path
840 with_lib_path
841 with_pubcookie
842 with_web_bin
843 enable_debug
844 enable_optimization
845 enable_mouse
846 enable_quotas
847 enable_from_changing
848 enable_background_post
849 enable_keyboard_lock
850 enable_from_encoding
851 with_smtp_msa
852 with_smtp_msa_flags
853 with_npa
854 with_npa_flags
855 with_password_prog
856 with_simple_spellcheck
857 with_interactive_spellcheck
858 with_system_pinerc
859 with_system_fixed_pinerc
860 with_local_support_info
861 with_mailcheck_interval
862 with_checkpoint_interval
863 with_checkpoint_frequency
864 with_display_rows
865 with_display_columns
866 with_max_display_rows
867 with_max_display_columns
868 with_fill_column
869 with_max_fill_column
870 with_debug_level
871 with_debug_files
872 with_debug_file
873 with_forwarded_keyword
874 with_display_overlap
875 with_display_margin
876 with_default_fcc
877 with_default_save_folder
878 with_default_legacy_postponed_folder
879 with_default_postponed_folder
880 with_default_trash_folder
881 with_default_interrupted_mail
882 with_default_dead_letter_folder
883 with_default_mail_directory
884 with_default_inbox_name
885 with_default_signature_file
886 with_default_elm_style_save
887 with_default_header_in_reply
888 with_default_old_style_reply
889 with_default_use_only_domain_name
890 with_default_save_by_sender
891 with_default_sort_key
892 with_default_addressbook_sort_rule
893 with_default_folder_sort_rule
894 with_default_saved_message_name_rule
895 with_default_fcc_rule
896 with_default_standard_printer
897 with_default_ansi_printer
898 with_default_addressbook
899 with_default_local_fullname
900 with_default_local_address
901 with_default_keyboard_lock_count
902 with_default_remote_addressbook_history
903 with_smime_public_cert_directory
904 with_smime_private_key_directory
905 with_smime_cacert_directory
906 with_default_printer
907 with_passfile
908 with_local_password_cache
909 with_local_password_cache_method
910 with_default_sshpath
911 with_default_sshcmd
912 with_ssl
913 with_ssl_dir
914 with_ssl_certs_dir
915 with_ssl_include_dir
916 with_ssl_lib_dir
917 with_krb5
918 with_krb5_dir
919 with_krb5_include_dir
920 with_krb5_lib_dir
921 with_ldap
922 with_ldap_dir
923 with_ldap_include_dir
924 with_ldap_lib_dir
925 with_smime
926 with_tcl
927 with_tcl_lib_dir
928 with_tcl_lib
929 with_tcl_include
930 with_supplied_regex
931 with_pthread
932 with_system_mail_directory
933 with_c_client_target
934 with_ipv6
935 with_ntlm
937 ac_precious_vars='build_alias
938 host_alias
939 target_alias
941 CFLAGS
942 LDFLAGS
943 LIBS
944 CPPFLAGS
946 LT_SYS_LIBRARY_PATH'
949 # Initialize some variables set by options.
950 ac_init_help=
951 ac_init_version=false
952 ac_unrecognized_opts=
953 ac_unrecognized_sep=
954 # The variables have the same names as the options, with
955 # dashes changed to underlines.
956 cache_file=/dev/null
957 exec_prefix=NONE
958 no_create=
959 no_recursion=
960 prefix=NONE
961 program_prefix=NONE
962 program_suffix=NONE
963 program_transform_name=s,x,x,
964 silent=
965 site=
966 srcdir=
967 verbose=
968 x_includes=NONE
969 x_libraries=NONE
971 # Installation directory options.
972 # These are left unexpanded so users can "make install exec_prefix=/foo"
973 # and all the variables that are supposed to be based on exec_prefix
974 # by default will actually change.
975 # Use braces instead of parens because sh, perl, etc. also accept them.
976 # (The list follows the same order as the GNU Coding Standards.)
977 bindir='${exec_prefix}/bin'
978 sbindir='${exec_prefix}/sbin'
979 libexecdir='${exec_prefix}/libexec'
980 datarootdir='${prefix}/share'
981 datadir='${datarootdir}'
982 sysconfdir='${prefix}/etc'
983 sharedstatedir='${prefix}/com'
984 localstatedir='${prefix}/var'
985 includedir='${prefix}/include'
986 oldincludedir='/usr/include'
987 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
988 infodir='${datarootdir}/info'
989 htmldir='${docdir}'
990 dvidir='${docdir}'
991 pdfdir='${docdir}'
992 psdir='${docdir}'
993 libdir='${exec_prefix}/lib'
994 localedir='${datarootdir}/locale'
995 mandir='${datarootdir}/man'
997 ac_prev=
998 ac_dashdash=
999 for ac_option
1001 # If the previous option needs an argument, assign it.
1002 if test -n "$ac_prev"; then
1003 eval $ac_prev=\$ac_option
1004 ac_prev=
1005 continue
1008 case $ac_option in
1009 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1010 *=) ac_optarg= ;;
1011 *) ac_optarg=yes ;;
1012 esac
1014 # Accept the important Cygnus configure options, so we can diagnose typos.
1016 case $ac_dashdash$ac_option in
1018 ac_dashdash=yes ;;
1020 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1021 ac_prev=bindir ;;
1022 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1023 bindir=$ac_optarg ;;
1025 -build | --build | --buil | --bui | --bu)
1026 ac_prev=build_alias ;;
1027 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1028 build_alias=$ac_optarg ;;
1030 -cache-file | --cache-file | --cache-fil | --cache-fi \
1031 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1032 ac_prev=cache_file ;;
1033 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1034 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1035 cache_file=$ac_optarg ;;
1037 --config-cache | -C)
1038 cache_file=config.cache ;;
1040 -datadir | --datadir | --datadi | --datad)
1041 ac_prev=datadir ;;
1042 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1043 datadir=$ac_optarg ;;
1045 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1046 | --dataroo | --dataro | --datar)
1047 ac_prev=datarootdir ;;
1048 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1049 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1050 datarootdir=$ac_optarg ;;
1052 -disable-* | --disable-*)
1053 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1054 # Reject names that are not valid shell variable names.
1055 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1056 as_fn_error $? "invalid feature name: $ac_useropt"
1057 ac_useropt_orig=$ac_useropt
1058 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1059 case $ac_user_opts in
1061 "enable_$ac_useropt"
1062 "*) ;;
1063 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1064 ac_unrecognized_sep=', ';;
1065 esac
1066 eval enable_$ac_useropt=no ;;
1068 -docdir | --docdir | --docdi | --doc | --do)
1069 ac_prev=docdir ;;
1070 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1071 docdir=$ac_optarg ;;
1073 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1074 ac_prev=dvidir ;;
1075 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1076 dvidir=$ac_optarg ;;
1078 -enable-* | --enable-*)
1079 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1080 # Reject names that are not valid shell variable names.
1081 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1082 as_fn_error $? "invalid feature name: $ac_useropt"
1083 ac_useropt_orig=$ac_useropt
1084 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1085 case $ac_user_opts in
1087 "enable_$ac_useropt"
1088 "*) ;;
1089 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1090 ac_unrecognized_sep=', ';;
1091 esac
1092 eval enable_$ac_useropt=\$ac_optarg ;;
1094 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1095 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1096 | --exec | --exe | --ex)
1097 ac_prev=exec_prefix ;;
1098 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1099 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1100 | --exec=* | --exe=* | --ex=*)
1101 exec_prefix=$ac_optarg ;;
1103 -gas | --gas | --ga | --g)
1104 # Obsolete; use --with-gas.
1105 with_gas=yes ;;
1107 -help | --help | --hel | --he | -h)
1108 ac_init_help=long ;;
1109 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1110 ac_init_help=recursive ;;
1111 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1112 ac_init_help=short ;;
1114 -host | --host | --hos | --ho)
1115 ac_prev=host_alias ;;
1116 -host=* | --host=* | --hos=* | --ho=*)
1117 host_alias=$ac_optarg ;;
1119 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1120 ac_prev=htmldir ;;
1121 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1122 | --ht=*)
1123 htmldir=$ac_optarg ;;
1125 -includedir | --includedir | --includedi | --included | --include \
1126 | --includ | --inclu | --incl | --inc)
1127 ac_prev=includedir ;;
1128 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1129 | --includ=* | --inclu=* | --incl=* | --inc=*)
1130 includedir=$ac_optarg ;;
1132 -infodir | --infodir | --infodi | --infod | --info | --inf)
1133 ac_prev=infodir ;;
1134 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1135 infodir=$ac_optarg ;;
1137 -libdir | --libdir | --libdi | --libd)
1138 ac_prev=libdir ;;
1139 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1140 libdir=$ac_optarg ;;
1142 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1143 | --libexe | --libex | --libe)
1144 ac_prev=libexecdir ;;
1145 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1146 | --libexe=* | --libex=* | --libe=*)
1147 libexecdir=$ac_optarg ;;
1149 -localedir | --localedir | --localedi | --localed | --locale)
1150 ac_prev=localedir ;;
1151 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1152 localedir=$ac_optarg ;;
1154 -localstatedir | --localstatedir | --localstatedi | --localstated \
1155 | --localstate | --localstat | --localsta | --localst | --locals)
1156 ac_prev=localstatedir ;;
1157 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1158 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1159 localstatedir=$ac_optarg ;;
1161 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1162 ac_prev=mandir ;;
1163 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1164 mandir=$ac_optarg ;;
1166 -nfp | --nfp | --nf)
1167 # Obsolete; use --without-fp.
1168 with_fp=no ;;
1170 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1171 | --no-cr | --no-c | -n)
1172 no_create=yes ;;
1174 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1175 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1176 no_recursion=yes ;;
1178 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1179 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1180 | --oldin | --oldi | --old | --ol | --o)
1181 ac_prev=oldincludedir ;;
1182 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1183 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1184 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1185 oldincludedir=$ac_optarg ;;
1187 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1188 ac_prev=prefix ;;
1189 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1190 prefix=$ac_optarg ;;
1192 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1193 | --program-pre | --program-pr | --program-p)
1194 ac_prev=program_prefix ;;
1195 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1196 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1197 program_prefix=$ac_optarg ;;
1199 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1200 | --program-suf | --program-su | --program-s)
1201 ac_prev=program_suffix ;;
1202 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1203 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1204 program_suffix=$ac_optarg ;;
1206 -program-transform-name | --program-transform-name \
1207 | --program-transform-nam | --program-transform-na \
1208 | --program-transform-n | --program-transform- \
1209 | --program-transform | --program-transfor \
1210 | --program-transfo | --program-transf \
1211 | --program-trans | --program-tran \
1212 | --progr-tra | --program-tr | --program-t)
1213 ac_prev=program_transform_name ;;
1214 -program-transform-name=* | --program-transform-name=* \
1215 | --program-transform-nam=* | --program-transform-na=* \
1216 | --program-transform-n=* | --program-transform-=* \
1217 | --program-transform=* | --program-transfor=* \
1218 | --program-transfo=* | --program-transf=* \
1219 | --program-trans=* | --program-tran=* \
1220 | --progr-tra=* | --program-tr=* | --program-t=*)
1221 program_transform_name=$ac_optarg ;;
1223 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1224 ac_prev=pdfdir ;;
1225 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1226 pdfdir=$ac_optarg ;;
1228 -psdir | --psdir | --psdi | --psd | --ps)
1229 ac_prev=psdir ;;
1230 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1231 psdir=$ac_optarg ;;
1233 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1234 | -silent | --silent | --silen | --sile | --sil)
1235 silent=yes ;;
1237 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1238 ac_prev=sbindir ;;
1239 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1240 | --sbi=* | --sb=*)
1241 sbindir=$ac_optarg ;;
1243 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1244 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1245 | --sharedst | --shareds | --shared | --share | --shar \
1246 | --sha | --sh)
1247 ac_prev=sharedstatedir ;;
1248 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1249 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1250 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1251 | --sha=* | --sh=*)
1252 sharedstatedir=$ac_optarg ;;
1254 -site | --site | --sit)
1255 ac_prev=site ;;
1256 -site=* | --site=* | --sit=*)
1257 site=$ac_optarg ;;
1259 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1260 ac_prev=srcdir ;;
1261 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1262 srcdir=$ac_optarg ;;
1264 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1265 | --syscon | --sysco | --sysc | --sys | --sy)
1266 ac_prev=sysconfdir ;;
1267 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1268 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1269 sysconfdir=$ac_optarg ;;
1271 -target | --target | --targe | --targ | --tar | --ta | --t)
1272 ac_prev=target_alias ;;
1273 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1274 target_alias=$ac_optarg ;;
1276 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1277 verbose=yes ;;
1279 -version | --version | --versio | --versi | --vers | -V)
1280 ac_init_version=: ;;
1282 -with-* | --with-*)
1283 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1284 # Reject names that are not valid shell variable names.
1285 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1286 as_fn_error $? "invalid package name: $ac_useropt"
1287 ac_useropt_orig=$ac_useropt
1288 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1289 case $ac_user_opts in
1291 "with_$ac_useropt"
1292 "*) ;;
1293 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1294 ac_unrecognized_sep=', ';;
1295 esac
1296 eval with_$ac_useropt=\$ac_optarg ;;
1298 -without-* | --without-*)
1299 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1300 # Reject names that are not valid shell variable names.
1301 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1302 as_fn_error $? "invalid package name: $ac_useropt"
1303 ac_useropt_orig=$ac_useropt
1304 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1305 case $ac_user_opts in
1307 "with_$ac_useropt"
1308 "*) ;;
1309 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1310 ac_unrecognized_sep=', ';;
1311 esac
1312 eval with_$ac_useropt=no ;;
1314 --x)
1315 # Obsolete; use --with-x.
1316 with_x=yes ;;
1318 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1319 | --x-incl | --x-inc | --x-in | --x-i)
1320 ac_prev=x_includes ;;
1321 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1322 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1323 x_includes=$ac_optarg ;;
1325 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1326 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1327 ac_prev=x_libraries ;;
1328 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1329 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1330 x_libraries=$ac_optarg ;;
1332 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1333 Try \`$0 --help' for more information"
1336 *=*)
1337 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1338 # Reject names that are not valid shell variable names.
1339 case $ac_envvar in #(
1340 '' | [0-9]* | *[!_$as_cr_alnum]* )
1341 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1342 esac
1343 eval $ac_envvar=\$ac_optarg
1344 export $ac_envvar ;;
1347 # FIXME: should be removed in autoconf 3.0.
1348 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1349 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1350 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1351 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1354 esac
1355 done
1357 if test -n "$ac_prev"; then
1358 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1359 as_fn_error $? "missing argument to $ac_option"
1362 if test -n "$ac_unrecognized_opts"; then
1363 case $enable_option_checking in
1364 no) ;;
1365 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1366 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1367 esac
1370 # Check all directory arguments for consistency.
1371 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1372 datadir sysconfdir sharedstatedir localstatedir includedir \
1373 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1374 libdir localedir mandir
1376 eval ac_val=\$$ac_var
1377 # Remove trailing slashes.
1378 case $ac_val in
1379 */ )
1380 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1381 eval $ac_var=\$ac_val;;
1382 esac
1383 # Be sure to have absolute directory names.
1384 case $ac_val in
1385 [\\/$]* | ?:[\\/]* ) continue;;
1386 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1387 esac
1388 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1389 done
1391 # There might be people who depend on the old broken behavior: `$host'
1392 # used to hold the argument of --host etc.
1393 # FIXME: To remove some day.
1394 build=$build_alias
1395 host=$host_alias
1396 target=$target_alias
1398 # FIXME: To remove some day.
1399 if test "x$host_alias" != x; then
1400 if test "x$build_alias" = x; then
1401 cross_compiling=maybe
1402 elif test "x$build_alias" != "x$host_alias"; then
1403 cross_compiling=yes
1407 ac_tool_prefix=
1408 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1410 test "$silent" = yes && exec 6>/dev/null
1413 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1414 ac_ls_di=`ls -di .` &&
1415 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1416 as_fn_error $? "working directory cannot be determined"
1417 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1418 as_fn_error $? "pwd does not report name of working directory"
1421 # Find the source files, if location was not specified.
1422 if test -z "$srcdir"; then
1423 ac_srcdir_defaulted=yes
1424 # Try the directory containing this script, then the parent directory.
1425 ac_confdir=`$as_dirname -- "$as_myself" ||
1426 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1427 X"$as_myself" : 'X\(//\)[^/]' \| \
1428 X"$as_myself" : 'X\(//\)$' \| \
1429 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1430 $as_echo X"$as_myself" |
1431 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1432 s//\1/
1435 /^X\(\/\/\)[^/].*/{
1436 s//\1/
1439 /^X\(\/\/\)$/{
1440 s//\1/
1443 /^X\(\/\).*/{
1444 s//\1/
1447 s/.*/./; q'`
1448 srcdir=$ac_confdir
1449 if test ! -r "$srcdir/$ac_unique_file"; then
1450 srcdir=..
1452 else
1453 ac_srcdir_defaulted=no
1455 if test ! -r "$srcdir/$ac_unique_file"; then
1456 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1457 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1459 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1460 ac_abs_confdir=`(
1461 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1462 pwd)`
1463 # When building in place, set srcdir=.
1464 if test "$ac_abs_confdir" = "$ac_pwd"; then
1465 srcdir=.
1467 # Remove unnecessary trailing slashes from srcdir.
1468 # Double slashes in file names in object file debugging info
1469 # mess up M-x gdb in Emacs.
1470 case $srcdir in
1471 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1472 esac
1473 for ac_var in $ac_precious_vars; do
1474 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1475 eval ac_env_${ac_var}_value=\$${ac_var}
1476 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1477 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1478 done
1481 # Report the --help message.
1483 if test "$ac_init_help" = "long"; then
1484 # Omit some internal or obsolete options to make the list less imposing.
1485 # This message is too long to be a string in the A/UX 3.1 sh.
1486 cat <<_ACEOF
1487 \`configure' configures alpine 2.21.9999 to adapt to many kinds of systems.
1489 Usage: $0 [OPTION]... [VAR=VALUE]...
1491 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1492 VAR=VALUE. See below for descriptions of some of the useful variables.
1494 Defaults for the options are specified in brackets.
1496 Configuration:
1497 -h, --help display this help and exit
1498 --help=short display options specific to this package
1499 --help=recursive display the short help of all the included packages
1500 -V, --version display version information and exit
1501 -q, --quiet, --silent do not print \`checking ...' messages
1502 --cache-file=FILE cache test results in FILE [disabled]
1503 -C, --config-cache alias for \`--cache-file=config.cache'
1504 -n, --no-create do not create output files
1505 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1507 Installation directories:
1508 --prefix=PREFIX install architecture-independent files in PREFIX
1509 [$ac_default_prefix]
1510 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1511 [PREFIX]
1513 By default, \`make install' will install all the files in
1514 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1515 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1516 for instance \`--prefix=\$HOME'.
1518 For better control, use the options below.
1520 Fine tuning of the installation directories:
1521 --bindir=DIR user executables [EPREFIX/bin]
1522 --sbindir=DIR system admin executables [EPREFIX/sbin]
1523 --libexecdir=DIR program executables [EPREFIX/libexec]
1524 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1525 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1526 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1527 --libdir=DIR object code libraries [EPREFIX/lib]
1528 --includedir=DIR C header files [PREFIX/include]
1529 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1530 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1531 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1532 --infodir=DIR info documentation [DATAROOTDIR/info]
1533 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1534 --mandir=DIR man documentation [DATAROOTDIR/man]
1535 --docdir=DIR documentation root [DATAROOTDIR/doc/alpine]
1536 --htmldir=DIR html documentation [DOCDIR]
1537 --dvidir=DIR dvi documentation [DOCDIR]
1538 --pdfdir=DIR pdf documentation [DOCDIR]
1539 --psdir=DIR ps documentation [DOCDIR]
1540 _ACEOF
1542 cat <<\_ACEOF
1544 Program names:
1545 --program-prefix=PREFIX prepend PREFIX to installed program names
1546 --program-suffix=SUFFIX append SUFFIX to installed program names
1547 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1549 System types:
1550 --build=BUILD configure for building on BUILD [guessed]
1551 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1552 _ACEOF
1555 if test -n "$ac_init_help"; then
1556 case $ac_init_help in
1557 short | recursive ) echo "Configuration of alpine 2.21.9999:";;
1558 esac
1559 cat <<\_ACEOF
1561 Optional Features:
1562 --disable-option-checking ignore unrecognized --enable/--with options
1563 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1564 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1565 --enable-silent-rules less verbose build output (undo: "make V=1")
1566 --disable-silent-rules verbose build output (undo: "make V=0")
1567 --enable-maintainer-mode
1568 enable make rules and dependencies not useful (and
1569 sometimes confusing) to the casual installer
1570 --enable-dependency-tracking
1571 do not reject slow dependency extractors
1572 --disable-dependency-tracking
1573 speeds up one-time build
1574 --enable-shared[=PKGS] build shared libraries [default=yes]
1575 --enable-static[=PKGS] build static libraries [default=yes]
1576 --enable-fast-install[=PKGS]
1577 optimize for fast installation [default=yes]
1578 --disable-libtool-lock avoid locking (might break parallel builds)
1579 --disable-nls do not use Native Language Support
1580 --disable-rpath do not hardcode runtime library paths
1581 --enable-dmalloc Enable dmalloc debugging
1582 --enable-osx-universal-binaries
1583 Produce universal binaries under OS X [[default=no]]
1584 --disable-debug Exclude debug messages from source
1585 --disable-optimization Exclude optimizing compiler flags
1586 --disable-mouse Disable mouse support
1587 --enable-quotas Enable disk quota checking on startup
1588 --disable-from-changing Disallow users changing From addresss
1589 --disable-background-post
1590 Disable background posting
1591 --disable-keyboard-lock Disable keyboard locking
1592 --enable-from-encoding Enable From encoding in sent messages
1594 Optional Packages:
1595 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1596 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1597 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1598 both]
1599 --with-aix-soname=aix|svr4|both
1600 shared library versioning (aka "SONAME") variant to
1601 provide on AIX, [default=aix].
1602 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1603 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1604 compiler's sysroot if not specified).
1605 --with-gnu-ld assume the C compiler uses GNU ld default=no
1606 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1607 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1608 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1609 --without-libintl-prefix don't search for libintl in includedir and libdir
1610 --with-dmalloc-dir=DIR Root of dmalloc lib/include path
1611 --with-date-stamp=DATE Set this as the date this program was built.
1612 Default: output of `date`
1613 --with-host-stamp=HOST Set name of computer for compilation. Default:
1614 output of `hostname`
1615 --with-ps-cmd="CMD" Use this command to check running commands. Default:
1616 /bin/ps auxww
1617 --with-localedir=DIR Name of gettext locale directory
1618 --with-include-path=PATHS
1619 Colon-separated list of directories used for include
1620 file search
1621 --with-lib-path=PATHS Colon-separated list of directories used for library
1622 search
1623 --with-pubcookie Include support for UW-Pubcookie Web Authentication
1624 --with-web-bin=PATH Directory to hold Web Alpine component binary files
1625 --with-smtp-msa=PATH Local Mail Submission Agent (sendmail)
1626 --with-smtp-msa-flags=FLAGS
1627 MSA flags for SMTP on stdin/stdout (-bs -odb -oem)
1628 --with-npa=PATH Posting agent when no nntp-servers defined (inews)
1629 --with-npa-flags=FLAGS Flags to allow posting via local agent (-h)
1630 --with-password-prog=PATH
1631 Password change program (/bin/passwd)
1632 --with-simple-spellcheck=PROG
1633 Spellcheck program reads stdin, emits misspellings
1634 on stdout
1635 --with-interactive-spellcheck=PROG
1636 Interactive, filewise spell checker
1637 --with-system-pinerc=VALUE
1638 System pinerc (/usr/local/lib/pine.conf)
1639 --with-system-fixed-pinerc=VALUE
1640 System fixed pinerc (/usr/local/lib/pine.conf.fixed)
1641 --with-local-support-info=VALUE
1642 Local Support Info File (/usr/local/lib/pine.info)
1643 --with-mailcheck-interval=VALUE
1644 Specify default mail-check-interval (150)
1645 --with-checkpoint-interval=VALUE
1646 Specify default checkpoint-interval (420)
1647 --with-checkpoint-frequency=VALUE
1648 State change count before checkpoint (12)
1649 --with-display-rows=VALUE
1650 Initial rows on display (24)
1651 --with-display-columns=VALUE
1652 Initial columns on display (80)
1653 --with-max-display-rows=VALUE
1654 Maximum display rows (200)
1655 --with-max-display-columns=VALUE
1656 Maximum display columns (500)
1657 --with-fill-column=VALUE
1658 Default fill column (74)
1659 --with-max_fill-column=VALUE
1660 Maximum fill column (80)
1661 --with-debug-level=VALUE
1662 Specify default debug verbosity level (2)
1663 --with-debug-files=VALUE
1664 Specify number of debug files (4)
1665 --with-debug-file=VALUE Specify debug file name (.pine-debug)
1666 --with-forwarded-keyword=VALUE
1667 IMAP (c-client) keyword to store forwarded status
1668 ("\$Forwarded")
1669 --with-display-overlap=VALUE
1670 Lines preserved while paging (2)
1671 --with-display-margin=VALUE
1672 Lines visible while scrolling (0)
1673 --with-default-fcc=VALUE
1674 Default sent mail folder (sent-mail)
1675 --with-default-save-folder=VALUE
1676 Default save folder (saved-messages)
1677 --with-default-legacy-postponed-folder=VALUE
1678 Pre Pine 3.90 postponed folder (postponed-mail)
1679 --with-default-postponed-folder=VALUE
1680 Default postponed folder (postponed-msgs)
1681 --with-default-trash-folder=VALUE
1682 Default Trash folder for Web Alpine (Trash)
1683 --with-default-interrupted-mail=VALUE
1684 Default folder for interrupted mail
1685 (.pine-interrupted-mail)
1686 --with-default-dead-letter-folder=VALUE
1687 Default dead letter folder (dead.letter)
1688 --with-default-mail-directory=VALUE
1689 Default mail directory (mail)
1690 --with-default-inbox-name=VALUE
1691 Default inbox name (INBOX)
1692 --with-default-signature-file=VALUE
1693 Default signature file (.signature)
1694 --with-default-elm-style-save=VALUE
1695 Default to Elm style save (no)
1696 --with-default-header-in-reply=VALUE
1697 Include header in reply (no)
1698 --with-default-old-style-reply=VALUE
1699 Default to old style reply (no)
1700 --with-default-use-only-domain-name=VALUE
1701 Default to using only the domain name (no)
1702 --with-default-save-by-sender=VALUE
1703 Default to save by sender (no)
1704 --with-default-sort-key=VALUE
1705 Default sort key (arrival)
1706 --with-default-addressbook-sort-rule=VALUE
1707 Default addressbook sort rule
1708 (fullname-with-lists-last)
1709 --with-default-folder-sort-rule=VALUE
1710 Default folder sort rule (alphabetical)
1711 --with-default-saved-message-name-rule=VALUE
1712 Default saved message name rule (default-folder)
1713 --with-default-fcc-rule=VALUE
1714 Default fcc rule (default-fcc)
1715 --with-default-standard-printer=VALUE
1716 Default standard printern (lpr)
1717 --with-default-ansi-printer=VALUE
1718 ANSI printer definition (attached-to-ansi)
1719 --with-default-addressbook=VALUE
1720 Default addressbook name (.addressbook)
1721 --with-default-local-fullname=VALUE
1722 Default local support fullname ("Local Support")
1723 --with-default-local-address=VALUE
1724 Default local support address (postmaster)
1725 --with-default-keyboard-lock-count=VALUE
1726 Default keyboard lock count (1)
1727 --with-default-remote-addressbook-history=VALUE
1728 Default address book history count (3)
1729 --with-smime-public-cert-directory=VALUE
1730 Default Public Cert Directory (.alpine-smime/public)
1731 --with-smime-private-key-directory=VALUE
1732 Default Private Key Directory
1733 (.alpine-smime/private)
1734 --with-smime-cacert-directory=VALUE
1735 Default Cert Authority Directory (.alpine-smime/ca)
1736 --with-default-printer=VALUE
1737 Default printer (ANSI_PRINTER)
1738 --with-passfile=FILENAME
1739 Password cache file (recommended when S/MIME is
1740 enabled and configured)
1741 --without-local-password-cache
1742 Disable OS-specific password cache, if supported
1743 --with-local-password-cache-method
1744 OS-specific credential cache (OSX=APPLEKEYCHAIN,
1745 Windows=WINCRED)
1746 --with-default-sshpath=FILENAME
1747 set default value of ssh command path (defining
1748 should cause ssh to be preferred to rsh)
1749 --with-default-sshcmd=PERCENT_S_STRING
1750 set default value of ssh command string (usually "%s
1751 %s -l %s exec /etc/r%sd")
1752 --without-ssl Disable SSL support (OpenSSL)
1753 --with-ssl-dir=DIR Root of SSL lib/include path
1754 --with-ssl-certs-dir=DIR
1755 Path to SSL certificate directory
1756 --with-ssl-include-dir=DIR
1757 SSL include file path
1758 --with-ssl-lib-dir=DIR SSL library path
1759 --without-krb5 Disable Kerberos support
1760 --with-krb5-dir=DIR Root of Kerberos lib/include path
1761 --with-krb5-include-dir=DIR
1762 Kerberos include file path
1763 --with-krb5-lib-dir=DIR Kerberos library path
1764 --without-ldap Disable LDAP query support
1765 --with-ldap-dir=DIR Root of LDAP lib/include path
1766 --with-ldap-include-dir=DIR
1767 Directory containing LDAP include files
1768 --with-ldap-lib-dir=DIR LDAP library path
1769 --without-smime Disable S/MIME
1770 --without-tcl Disable TCL, thus Web Alpine support
1771 --with-tcl-lib-dir=PATH Specific TCL Librar dir, like \"/usr/opt/tcl86/lib\"
1772 --with-tcl-lib=LIBRARY Specific TCL Library, like \"tcl8.6\"
1773 --with-tcl-include=DIR Directory containing TCL include files
1774 --with-supplied-regex Use regex library supplied with alpine
1775 --without-pthread Do NOT test for nor build with POSIX thread support
1776 --with-system-mail-directory=DIR
1777 Directory where local mail is delivered
1778 --with-c-client-target=TARGET
1779 IMAP build target (see imap/Makefile)
1780 --without-ipv6 Disable IPv6, primarily to work around resolver
1781 problems
1782 --without-ntlm Disable NTLM client support
1784 Some influential environment variables:
1785 CC C compiler command
1786 CFLAGS C compiler flags
1787 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1788 nonstandard directory <lib dir>
1789 LIBS libraries to pass to the linker, e.g. -l<library>
1790 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1791 you have headers in a nonstandard directory <include dir>
1792 CPP C preprocessor
1793 LT_SYS_LIBRARY_PATH
1794 User-defined run-time library search path.
1796 Use these variables to override the choices made by `configure' or to help
1797 it to find libraries and programs with nonstandard names/locations.
1799 Report bugs to <chappa@washington.edu>.
1800 _ACEOF
1801 ac_status=$?
1804 if test "$ac_init_help" = "recursive"; then
1805 # If there are subdirs, report their specific --help.
1806 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1807 test -d "$ac_dir" ||
1808 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1809 continue
1810 ac_builddir=.
1812 case "$ac_dir" in
1813 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1815 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1816 # A ".." for each directory in $ac_dir_suffix.
1817 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1818 case $ac_top_builddir_sub in
1819 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1820 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1821 esac ;;
1822 esac
1823 ac_abs_top_builddir=$ac_pwd
1824 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1825 # for backward compatibility:
1826 ac_top_builddir=$ac_top_build_prefix
1828 case $srcdir in
1829 .) # We are building in place.
1830 ac_srcdir=.
1831 ac_top_srcdir=$ac_top_builddir_sub
1832 ac_abs_top_srcdir=$ac_pwd ;;
1833 [\\/]* | ?:[\\/]* ) # Absolute name.
1834 ac_srcdir=$srcdir$ac_dir_suffix;
1835 ac_top_srcdir=$srcdir
1836 ac_abs_top_srcdir=$srcdir ;;
1837 *) # Relative name.
1838 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1839 ac_top_srcdir=$ac_top_build_prefix$srcdir
1840 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1841 esac
1842 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1844 cd "$ac_dir" || { ac_status=$?; continue; }
1845 # Check for guested configure.
1846 if test -f "$ac_srcdir/configure.gnu"; then
1847 echo &&
1848 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1849 elif test -f "$ac_srcdir/configure"; then
1850 echo &&
1851 $SHELL "$ac_srcdir/configure" --help=recursive
1852 else
1853 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1854 fi || ac_status=$?
1855 cd "$ac_pwd" || { ac_status=$?; break; }
1856 done
1859 test -n "$ac_init_help" && exit $ac_status
1860 if $ac_init_version; then
1861 cat <<\_ACEOF
1862 alpine configure 2.21.9999
1863 generated by GNU Autoconf 2.69
1865 Copyright (C) 2012 Free Software Foundation, Inc.
1866 This configure script is free software; the Free Software Foundation
1867 gives unlimited permission to copy, distribute and modify it.
1868 _ACEOF
1869 exit
1872 ## ------------------------ ##
1873 ## Autoconf initialization. ##
1874 ## ------------------------ ##
1876 # ac_fn_c_try_compile LINENO
1877 # --------------------------
1878 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1879 ac_fn_c_try_compile ()
1881 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1882 rm -f conftest.$ac_objext
1883 if { { ac_try="$ac_compile"
1884 case "(($ac_try" in
1885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1886 *) ac_try_echo=$ac_try;;
1887 esac
1888 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1889 $as_echo "$ac_try_echo"; } >&5
1890 (eval "$ac_compile") 2>conftest.err
1891 ac_status=$?
1892 if test -s conftest.err; then
1893 grep -v '^ *+' conftest.err >conftest.er1
1894 cat conftest.er1 >&5
1895 mv -f conftest.er1 conftest.err
1897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1898 test $ac_status = 0; } && {
1899 test -z "$ac_c_werror_flag" ||
1900 test ! -s conftest.err
1901 } && test -s conftest.$ac_objext; then :
1902 ac_retval=0
1903 else
1904 $as_echo "$as_me: failed program was:" >&5
1905 sed 's/^/| /' conftest.$ac_ext >&5
1907 ac_retval=1
1909 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1910 as_fn_set_status $ac_retval
1912 } # ac_fn_c_try_compile
1914 # ac_fn_c_try_cpp LINENO
1915 # ----------------------
1916 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1917 ac_fn_c_try_cpp ()
1919 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1920 if { { ac_try="$ac_cpp conftest.$ac_ext"
1921 case "(($ac_try" in
1922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1923 *) ac_try_echo=$ac_try;;
1924 esac
1925 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1926 $as_echo "$ac_try_echo"; } >&5
1927 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1928 ac_status=$?
1929 if test -s conftest.err; then
1930 grep -v '^ *+' conftest.err >conftest.er1
1931 cat conftest.er1 >&5
1932 mv -f conftest.er1 conftest.err
1934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1935 test $ac_status = 0; } > conftest.i && {
1936 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1937 test ! -s conftest.err
1938 }; then :
1939 ac_retval=0
1940 else
1941 $as_echo "$as_me: failed program was:" >&5
1942 sed 's/^/| /' conftest.$ac_ext >&5
1944 ac_retval=1
1946 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1947 as_fn_set_status $ac_retval
1949 } # ac_fn_c_try_cpp
1951 # ac_fn_c_try_link LINENO
1952 # -----------------------
1953 # Try to link conftest.$ac_ext, and return whether this succeeded.
1954 ac_fn_c_try_link ()
1956 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1957 rm -f conftest.$ac_objext conftest$ac_exeext
1958 if { { ac_try="$ac_link"
1959 case "(($ac_try" in
1960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1961 *) ac_try_echo=$ac_try;;
1962 esac
1963 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1964 $as_echo "$ac_try_echo"; } >&5
1965 (eval "$ac_link") 2>conftest.err
1966 ac_status=$?
1967 if test -s conftest.err; then
1968 grep -v '^ *+' conftest.err >conftest.er1
1969 cat conftest.er1 >&5
1970 mv -f conftest.er1 conftest.err
1972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1973 test $ac_status = 0; } && {
1974 test -z "$ac_c_werror_flag" ||
1975 test ! -s conftest.err
1976 } && test -s conftest$ac_exeext && {
1977 test "$cross_compiling" = yes ||
1978 test -x conftest$ac_exeext
1979 }; then :
1980 ac_retval=0
1981 else
1982 $as_echo "$as_me: failed program was:" >&5
1983 sed 's/^/| /' conftest.$ac_ext >&5
1985 ac_retval=1
1987 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1988 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1989 # interfere with the next link command; also delete a directory that is
1990 # left behind by Apple's compiler. We do this before executing the actions.
1991 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1992 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1993 as_fn_set_status $ac_retval
1995 } # ac_fn_c_try_link
1997 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1998 # -------------------------------------------------------
1999 # Tests whether HEADER exists and can be compiled using the include files in
2000 # INCLUDES, setting the cache variable VAR accordingly.
2001 ac_fn_c_check_header_compile ()
2003 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2005 $as_echo_n "checking for $2... " >&6; }
2006 if eval \${$3+:} false; then :
2007 $as_echo_n "(cached) " >&6
2008 else
2009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2010 /* end confdefs.h. */
2012 #include <$2>
2013 _ACEOF
2014 if ac_fn_c_try_compile "$LINENO"; then :
2015 eval "$3=yes"
2016 else
2017 eval "$3=no"
2019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2021 eval ac_res=\$$3
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2023 $as_echo "$ac_res" >&6; }
2024 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2026 } # ac_fn_c_check_header_compile
2028 # ac_fn_c_try_run LINENO
2029 # ----------------------
2030 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2031 # that executables *can* be run.
2032 ac_fn_c_try_run ()
2034 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2035 if { { ac_try="$ac_link"
2036 case "(($ac_try" in
2037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2038 *) ac_try_echo=$ac_try;;
2039 esac
2040 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2041 $as_echo "$ac_try_echo"; } >&5
2042 (eval "$ac_link") 2>&5
2043 ac_status=$?
2044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2045 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2046 { { case "(($ac_try" in
2047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2048 *) ac_try_echo=$ac_try;;
2049 esac
2050 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2051 $as_echo "$ac_try_echo"; } >&5
2052 (eval "$ac_try") 2>&5
2053 ac_status=$?
2054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2055 test $ac_status = 0; }; }; then :
2056 ac_retval=0
2057 else
2058 $as_echo "$as_me: program exited with status $ac_status" >&5
2059 $as_echo "$as_me: failed program was:" >&5
2060 sed 's/^/| /' conftest.$ac_ext >&5
2062 ac_retval=$ac_status
2064 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2065 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2066 as_fn_set_status $ac_retval
2068 } # ac_fn_c_try_run
2070 # ac_fn_c_check_func LINENO FUNC VAR
2071 # ----------------------------------
2072 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2073 ac_fn_c_check_func ()
2075 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2077 $as_echo_n "checking for $2... " >&6; }
2078 if eval \${$3+:} false; then :
2079 $as_echo_n "(cached) " >&6
2080 else
2081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2082 /* end confdefs.h. */
2083 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2084 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2085 #define $2 innocuous_$2
2087 /* System header to define __stub macros and hopefully few prototypes,
2088 which can conflict with char $2 (); below.
2089 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2090 <limits.h> exists even on freestanding compilers. */
2092 #ifdef __STDC__
2093 # include <limits.h>
2094 #else
2095 # include <assert.h>
2096 #endif
2098 #undef $2
2100 /* Override any GCC internal prototype to avoid an error.
2101 Use char because int might match the return type of a GCC
2102 builtin and then its argument prototype would still apply. */
2103 #ifdef __cplusplus
2104 extern "C"
2105 #endif
2106 char $2 ();
2107 /* The GNU C library defines this for functions which it implements
2108 to always fail with ENOSYS. Some functions are actually named
2109 something starting with __ and the normal name is an alias. */
2110 #if defined __stub_$2 || defined __stub___$2
2111 choke me
2112 #endif
2115 main ()
2117 return $2 ();
2119 return 0;
2121 _ACEOF
2122 if ac_fn_c_try_link "$LINENO"; then :
2123 eval "$3=yes"
2124 else
2125 eval "$3=no"
2127 rm -f core conftest.err conftest.$ac_objext \
2128 conftest$ac_exeext conftest.$ac_ext
2130 eval ac_res=\$$3
2131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2132 $as_echo "$ac_res" >&6; }
2133 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2135 } # ac_fn_c_check_func
2137 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2138 # -------------------------------------------------------
2139 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2140 # the include files in INCLUDES and setting the cache variable VAR
2141 # accordingly.
2142 ac_fn_c_check_header_mongrel ()
2144 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2145 if eval \${$3+:} false; then :
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2147 $as_echo_n "checking for $2... " >&6; }
2148 if eval \${$3+:} false; then :
2149 $as_echo_n "(cached) " >&6
2151 eval ac_res=\$$3
2152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2153 $as_echo "$ac_res" >&6; }
2154 else
2155 # Is the header compilable?
2156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2157 $as_echo_n "checking $2 usability... " >&6; }
2158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2159 /* end confdefs.h. */
2161 #include <$2>
2162 _ACEOF
2163 if ac_fn_c_try_compile "$LINENO"; then :
2164 ac_header_compiler=yes
2165 else
2166 ac_header_compiler=no
2168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2170 $as_echo "$ac_header_compiler" >&6; }
2172 # Is the header present?
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2174 $as_echo_n "checking $2 presence... " >&6; }
2175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2176 /* end confdefs.h. */
2177 #include <$2>
2178 _ACEOF
2179 if ac_fn_c_try_cpp "$LINENO"; then :
2180 ac_header_preproc=yes
2181 else
2182 ac_header_preproc=no
2184 rm -f conftest.err conftest.i conftest.$ac_ext
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2186 $as_echo "$ac_header_preproc" >&6; }
2188 # So? What about this header?
2189 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2190 yes:no: )
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2192 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2194 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2196 no:yes:* )
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2198 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2200 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2202 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2204 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2205 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2206 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2207 ( $as_echo "## ------------------------------------ ##
2208 ## Report this to chappa@washington.edu ##
2209 ## ------------------------------------ ##"
2210 ) | sed "s/^/$as_me: WARNING: /" >&2
2212 esac
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2214 $as_echo_n "checking for $2... " >&6; }
2215 if eval \${$3+:} false; then :
2216 $as_echo_n "(cached) " >&6
2217 else
2218 eval "$3=\$ac_header_compiler"
2220 eval ac_res=\$$3
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2222 $as_echo "$ac_res" >&6; }
2224 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2226 } # ac_fn_c_check_header_mongrel
2228 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2229 # -------------------------------------------
2230 # Tests whether TYPE exists after having included INCLUDES, setting cache
2231 # variable VAR accordingly.
2232 ac_fn_c_check_type ()
2234 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2236 $as_echo_n "checking for $2... " >&6; }
2237 if eval \${$3+:} false; then :
2238 $as_echo_n "(cached) " >&6
2239 else
2240 eval "$3=no"
2241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2242 /* end confdefs.h. */
2245 main ()
2247 if (sizeof ($2))
2248 return 0;
2250 return 0;
2252 _ACEOF
2253 if ac_fn_c_try_compile "$LINENO"; then :
2254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2255 /* end confdefs.h. */
2258 main ()
2260 if (sizeof (($2)))
2261 return 0;
2263 return 0;
2265 _ACEOF
2266 if ac_fn_c_try_compile "$LINENO"; then :
2268 else
2269 eval "$3=yes"
2271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2275 eval ac_res=\$$3
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2277 $as_echo "$ac_res" >&6; }
2278 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2280 } # ac_fn_c_check_type
2282 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2283 # --------------------------------------------
2284 # Tries to find the compile-time value of EXPR in a program that includes
2285 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2286 # computed
2287 ac_fn_c_compute_int ()
2289 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2290 if test "$cross_compiling" = yes; then
2291 # Depending upon the size, compute the lo and hi bounds.
2292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2293 /* end confdefs.h. */
2296 main ()
2298 static int test_array [1 - 2 * !(($2) >= 0)];
2299 test_array [0] = 0;
2300 return test_array [0];
2303 return 0;
2305 _ACEOF
2306 if ac_fn_c_try_compile "$LINENO"; then :
2307 ac_lo=0 ac_mid=0
2308 while :; do
2309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2310 /* end confdefs.h. */
2313 main ()
2315 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2316 test_array [0] = 0;
2317 return test_array [0];
2320 return 0;
2322 _ACEOF
2323 if ac_fn_c_try_compile "$LINENO"; then :
2324 ac_hi=$ac_mid; break
2325 else
2326 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2327 if test $ac_lo -le $ac_mid; then
2328 ac_lo= ac_hi=
2329 break
2331 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2334 done
2335 else
2336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2337 /* end confdefs.h. */
2340 main ()
2342 static int test_array [1 - 2 * !(($2) < 0)];
2343 test_array [0] = 0;
2344 return test_array [0];
2347 return 0;
2349 _ACEOF
2350 if ac_fn_c_try_compile "$LINENO"; then :
2351 ac_hi=-1 ac_mid=-1
2352 while :; do
2353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2354 /* end confdefs.h. */
2357 main ()
2359 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2360 test_array [0] = 0;
2361 return test_array [0];
2364 return 0;
2366 _ACEOF
2367 if ac_fn_c_try_compile "$LINENO"; then :
2368 ac_lo=$ac_mid; break
2369 else
2370 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2371 if test $ac_mid -le $ac_hi; then
2372 ac_lo= ac_hi=
2373 break
2375 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2378 done
2379 else
2380 ac_lo= ac_hi=
2382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2385 # Binary search between lo and hi bounds.
2386 while test "x$ac_lo" != "x$ac_hi"; do
2387 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2389 /* end confdefs.h. */
2392 main ()
2394 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2395 test_array [0] = 0;
2396 return test_array [0];
2399 return 0;
2401 _ACEOF
2402 if ac_fn_c_try_compile "$LINENO"; then :
2403 ac_hi=$ac_mid
2404 else
2405 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2408 done
2409 case $ac_lo in #((
2410 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2411 '') ac_retval=1 ;;
2412 esac
2413 else
2414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2415 /* end confdefs.h. */
2417 static long int longval () { return $2; }
2418 static unsigned long int ulongval () { return $2; }
2419 #include <stdio.h>
2420 #include <stdlib.h>
2422 main ()
2425 FILE *f = fopen ("conftest.val", "w");
2426 if (! f)
2427 return 1;
2428 if (($2) < 0)
2430 long int i = longval ();
2431 if (i != ($2))
2432 return 1;
2433 fprintf (f, "%ld", i);
2435 else
2437 unsigned long int i = ulongval ();
2438 if (i != ($2))
2439 return 1;
2440 fprintf (f, "%lu", i);
2442 /* Do not output a trailing newline, as this causes \r\n confusion
2443 on some platforms. */
2444 return ferror (f) || fclose (f) != 0;
2447 return 0;
2449 _ACEOF
2450 if ac_fn_c_try_run "$LINENO"; then :
2451 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2452 else
2453 ac_retval=1
2455 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2456 conftest.$ac_objext conftest.beam conftest.$ac_ext
2457 rm -f conftest.val
2460 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2461 as_fn_set_status $ac_retval
2463 } # ac_fn_c_compute_int
2464 cat >config.log <<_ACEOF
2465 This file contains any messages produced by compilers while
2466 running configure, to aid debugging if configure makes a mistake.
2468 It was created by alpine $as_me 2.21.9999, which was
2469 generated by GNU Autoconf 2.69. Invocation command line was
2471 $ $0 $@
2473 _ACEOF
2474 exec 5>>config.log
2476 cat <<_ASUNAME
2477 ## --------- ##
2478 ## Platform. ##
2479 ## --------- ##
2481 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2482 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2483 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2484 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2485 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2487 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2488 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2490 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2491 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2492 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2493 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2494 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2495 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2496 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2498 _ASUNAME
2500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2501 for as_dir in $PATH
2503 IFS=$as_save_IFS
2504 test -z "$as_dir" && as_dir=.
2505 $as_echo "PATH: $as_dir"
2506 done
2507 IFS=$as_save_IFS
2509 } >&5
2511 cat >&5 <<_ACEOF
2514 ## ----------- ##
2515 ## Core tests. ##
2516 ## ----------- ##
2518 _ACEOF
2521 # Keep a trace of the command line.
2522 # Strip out --no-create and --no-recursion so they do not pile up.
2523 # Strip out --silent because we don't want to record it for future runs.
2524 # Also quote any args containing shell meta-characters.
2525 # Make two passes to allow for proper duplicate-argument suppression.
2526 ac_configure_args=
2527 ac_configure_args0=
2528 ac_configure_args1=
2529 ac_must_keep_next=false
2530 for ac_pass in 1 2
2532 for ac_arg
2534 case $ac_arg in
2535 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2537 | -silent | --silent | --silen | --sile | --sil)
2538 continue ;;
2539 *\'*)
2540 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2541 esac
2542 case $ac_pass in
2543 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2545 as_fn_append ac_configure_args1 " '$ac_arg'"
2546 if test $ac_must_keep_next = true; then
2547 ac_must_keep_next=false # Got value, back to normal.
2548 else
2549 case $ac_arg in
2550 *=* | --config-cache | -C | -disable-* | --disable-* \
2551 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2552 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2553 | -with-* | --with-* | -without-* | --without-* | --x)
2554 case "$ac_configure_args0 " in
2555 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2556 esac
2558 -* ) ac_must_keep_next=true ;;
2559 esac
2561 as_fn_append ac_configure_args " '$ac_arg'"
2563 esac
2564 done
2565 done
2566 { ac_configure_args0=; unset ac_configure_args0;}
2567 { ac_configure_args1=; unset ac_configure_args1;}
2569 # When interrupted or exit'd, cleanup temporary files, and complete
2570 # config.log. We remove comments because anyway the quotes in there
2571 # would cause problems or look ugly.
2572 # WARNING: Use '\'' to represent an apostrophe within the trap.
2573 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2574 trap 'exit_status=$?
2575 # Save into config.log some information that might help in debugging.
2577 echo
2579 $as_echo "## ---------------- ##
2580 ## Cache variables. ##
2581 ## ---------------- ##"
2582 echo
2583 # The following way of writing the cache mishandles newlines in values,
2585 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2586 eval ac_val=\$$ac_var
2587 case $ac_val in #(
2588 *${as_nl}*)
2589 case $ac_var in #(
2590 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2591 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2592 esac
2593 case $ac_var in #(
2594 _ | IFS | as_nl) ;; #(
2595 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2596 *) { eval $ac_var=; unset $ac_var;} ;;
2597 esac ;;
2598 esac
2599 done
2600 (set) 2>&1 |
2601 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2602 *${as_nl}ac_space=\ *)
2603 sed -n \
2604 "s/'\''/'\''\\\\'\'''\''/g;
2605 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2606 ;; #(
2608 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2610 esac |
2611 sort
2613 echo
2615 $as_echo "## ----------------- ##
2616 ## Output variables. ##
2617 ## ----------------- ##"
2618 echo
2619 for ac_var in $ac_subst_vars
2621 eval ac_val=\$$ac_var
2622 case $ac_val in
2623 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2624 esac
2625 $as_echo "$ac_var='\''$ac_val'\''"
2626 done | sort
2627 echo
2629 if test -n "$ac_subst_files"; then
2630 $as_echo "## ------------------- ##
2631 ## File substitutions. ##
2632 ## ------------------- ##"
2633 echo
2634 for ac_var in $ac_subst_files
2636 eval ac_val=\$$ac_var
2637 case $ac_val in
2638 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2639 esac
2640 $as_echo "$ac_var='\''$ac_val'\''"
2641 done | sort
2642 echo
2645 if test -s confdefs.h; then
2646 $as_echo "## ----------- ##
2647 ## confdefs.h. ##
2648 ## ----------- ##"
2649 echo
2650 cat confdefs.h
2651 echo
2653 test "$ac_signal" != 0 &&
2654 $as_echo "$as_me: caught signal $ac_signal"
2655 $as_echo "$as_me: exit $exit_status"
2656 } >&5
2657 rm -f core *.core core.conftest.* &&
2658 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2659 exit $exit_status
2661 for ac_signal in 1 2 13 15; do
2662 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2663 done
2664 ac_signal=0
2666 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2667 rm -f -r conftest* confdefs.h
2669 $as_echo "/* confdefs.h */" > confdefs.h
2671 # Predefined preprocessor variables.
2673 cat >>confdefs.h <<_ACEOF
2674 #define PACKAGE_NAME "$PACKAGE_NAME"
2675 _ACEOF
2677 cat >>confdefs.h <<_ACEOF
2678 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2679 _ACEOF
2681 cat >>confdefs.h <<_ACEOF
2682 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2683 _ACEOF
2685 cat >>confdefs.h <<_ACEOF
2686 #define PACKAGE_STRING "$PACKAGE_STRING"
2687 _ACEOF
2689 cat >>confdefs.h <<_ACEOF
2690 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2691 _ACEOF
2693 cat >>confdefs.h <<_ACEOF
2694 #define PACKAGE_URL "$PACKAGE_URL"
2695 _ACEOF
2698 # Let the site file select an alternate cache file if it wants to.
2699 # Prefer an explicitly selected file to automatically selected ones.
2700 ac_site_file1=NONE
2701 ac_site_file2=NONE
2702 if test -n "$CONFIG_SITE"; then
2703 # We do not want a PATH search for config.site.
2704 case $CONFIG_SITE in #((
2705 -*) ac_site_file1=./$CONFIG_SITE;;
2706 */*) ac_site_file1=$CONFIG_SITE;;
2707 *) ac_site_file1=./$CONFIG_SITE;;
2708 esac
2709 elif test "x$prefix" != xNONE; then
2710 ac_site_file1=$prefix/share/config.site
2711 ac_site_file2=$prefix/etc/config.site
2712 else
2713 ac_site_file1=$ac_default_prefix/share/config.site
2714 ac_site_file2=$ac_default_prefix/etc/config.site
2716 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2718 test "x$ac_site_file" = xNONE && continue
2719 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2721 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2722 sed 's/^/| /' "$ac_site_file" >&5
2723 . "$ac_site_file" \
2724 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2725 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2726 as_fn_error $? "failed to load site script $ac_site_file
2727 See \`config.log' for more details" "$LINENO" 5; }
2729 done
2731 if test -r "$cache_file"; then
2732 # Some versions of bash will fail to source /dev/null (special files
2733 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2734 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2736 $as_echo "$as_me: loading cache $cache_file" >&6;}
2737 case $cache_file in
2738 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2739 *) . "./$cache_file";;
2740 esac
2742 else
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2744 $as_echo "$as_me: creating cache $cache_file" >&6;}
2745 >$cache_file
2748 gt_needs="$gt_needs "
2749 # Check that the precious variables saved in the cache have kept the same
2750 # value.
2751 ac_cache_corrupted=false
2752 for ac_var in $ac_precious_vars; do
2753 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2754 eval ac_new_set=\$ac_env_${ac_var}_set
2755 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2756 eval ac_new_val=\$ac_env_${ac_var}_value
2757 case $ac_old_set,$ac_new_set in
2758 set,)
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2760 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2761 ac_cache_corrupted=: ;;
2762 ,set)
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2764 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2765 ac_cache_corrupted=: ;;
2766 ,);;
2768 if test "x$ac_old_val" != "x$ac_new_val"; then
2769 # differences in whitespace do not lead to failure.
2770 ac_old_val_w=`echo x $ac_old_val`
2771 ac_new_val_w=`echo x $ac_new_val`
2772 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2774 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2775 ac_cache_corrupted=:
2776 else
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2778 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2779 eval $ac_var=\$ac_old_val
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2782 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2784 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2785 fi;;
2786 esac
2787 # Pass precious variables to config.status.
2788 if test "$ac_new_set" = set; then
2789 case $ac_new_val in
2790 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2791 *) ac_arg=$ac_var=$ac_new_val ;;
2792 esac
2793 case " $ac_configure_args " in
2794 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2795 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2796 esac
2798 done
2799 if $ac_cache_corrupted; then
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2801 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2803 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2804 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2806 ## -------------------- ##
2807 ## Main body of script. ##
2808 ## -------------------- ##
2810 ac_ext=c
2811 ac_cpp='$CPP $CPPFLAGS'
2812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2819 ac_config_headers="$ac_config_headers include/config.h"
2822 am__api_version='1.15'
2824 ac_aux_dir=
2825 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2826 if test -f "$ac_dir/install-sh"; then
2827 ac_aux_dir=$ac_dir
2828 ac_install_sh="$ac_aux_dir/install-sh -c"
2829 break
2830 elif test -f "$ac_dir/install.sh"; then
2831 ac_aux_dir=$ac_dir
2832 ac_install_sh="$ac_aux_dir/install.sh -c"
2833 break
2834 elif test -f "$ac_dir/shtool"; then
2835 ac_aux_dir=$ac_dir
2836 ac_install_sh="$ac_aux_dir/shtool install -c"
2837 break
2839 done
2840 if test -z "$ac_aux_dir"; then
2841 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2844 # These three variables are undocumented and unsupported,
2845 # and are intended to be withdrawn in a future Autoconf release.
2846 # They can cause serious problems if a builder's source tree is in a directory
2847 # whose full name contains unusual characters.
2848 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2849 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2850 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2853 # Find a good install program. We prefer a C program (faster),
2854 # so one script is as good as another. But avoid the broken or
2855 # incompatible versions:
2856 # SysV /etc/install, /usr/sbin/install
2857 # SunOS /usr/etc/install
2858 # IRIX /sbin/install
2859 # AIX /bin/install
2860 # AmigaOS /C/install, which installs bootblocks on floppy discs
2861 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2862 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2863 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2864 # OS/2's system install, which has a completely different semantic
2865 # ./install, which can be erroneously created by make from ./install.sh.
2866 # Reject install programs that cannot install multiple files.
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2868 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2869 if test -z "$INSTALL"; then
2870 if ${ac_cv_path_install+:} false; then :
2871 $as_echo_n "(cached) " >&6
2872 else
2873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2874 for as_dir in $PATH
2876 IFS=$as_save_IFS
2877 test -z "$as_dir" && as_dir=.
2878 # Account for people who put trailing slashes in PATH elements.
2879 case $as_dir/ in #((
2880 ./ | .// | /[cC]/* | \
2881 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2882 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2883 /usr/ucb/* ) ;;
2885 # OSF1 and SCO ODT 3.0 have their own names for install.
2886 # Don't use installbsd from OSF since it installs stuff as root
2887 # by default.
2888 for ac_prog in ginstall scoinst install; do
2889 for ac_exec_ext in '' $ac_executable_extensions; do
2890 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2891 if test $ac_prog = install &&
2892 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2893 # AIX install. It has an incompatible calling convention.
2895 elif test $ac_prog = install &&
2896 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2897 # program-specific install script used by HP pwplus--don't use.
2899 else
2900 rm -rf conftest.one conftest.two conftest.dir
2901 echo one > conftest.one
2902 echo two > conftest.two
2903 mkdir conftest.dir
2904 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2905 test -s conftest.one && test -s conftest.two &&
2906 test -s conftest.dir/conftest.one &&
2907 test -s conftest.dir/conftest.two
2908 then
2909 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2910 break 3
2914 done
2915 done
2917 esac
2919 done
2920 IFS=$as_save_IFS
2922 rm -rf conftest.one conftest.two conftest.dir
2925 if test "${ac_cv_path_install+set}" = set; then
2926 INSTALL=$ac_cv_path_install
2927 else
2928 # As a last resort, use the slow shell script. Don't cache a
2929 # value for INSTALL within a source directory, because that will
2930 # break other packages using the cache if that directory is
2931 # removed, or if the value is a relative name.
2932 INSTALL=$ac_install_sh
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2936 $as_echo "$INSTALL" >&6; }
2938 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2939 # It thinks the first close brace ends the variable substitution.
2940 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2942 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2944 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2947 $as_echo_n "checking whether build environment is sane... " >&6; }
2948 # Reject unsafe characters in $srcdir or the absolute working directory
2949 # name. Accept space and tab only in the latter.
2950 am_lf='
2952 case `pwd` in
2953 *[\\\"\#\$\&\'\`$am_lf]*)
2954 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2955 esac
2956 case $srcdir in
2957 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2958 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2959 esac
2961 # Do 'set' in a subshell so we don't clobber the current shell's
2962 # arguments. Must try -L first in case configure is actually a
2963 # symlink; some systems play weird games with the mod time of symlinks
2964 # (eg FreeBSD returns the mod time of the symlink's containing
2965 # directory).
2966 if (
2967 am_has_slept=no
2968 for am_try in 1 2; do
2969 echo "timestamp, slept: $am_has_slept" > conftest.file
2970 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2971 if test "$*" = "X"; then
2972 # -L didn't work.
2973 set X `ls -t "$srcdir/configure" conftest.file`
2975 if test "$*" != "X $srcdir/configure conftest.file" \
2976 && test "$*" != "X conftest.file $srcdir/configure"; then
2978 # If neither matched, then we have a broken ls. This can happen
2979 # if, for instance, CONFIG_SHELL is bash and it inherits a
2980 # broken ls alias from the environment. This has actually
2981 # happened. Such a system could not be considered "sane".
2982 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2983 alias in your environment" "$LINENO" 5
2985 if test "$2" = conftest.file || test $am_try -eq 2; then
2986 break
2988 # Just in case.
2989 sleep 1
2990 am_has_slept=yes
2991 done
2992 test "$2" = conftest.file
2994 then
2995 # Ok.
2997 else
2998 as_fn_error $? "newly created file is older than distributed files!
2999 Check your system clock" "$LINENO" 5
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3002 $as_echo "yes" >&6; }
3003 # If we didn't sleep, we still need to ensure time stamps of config.status and
3004 # generated files are strictly newer.
3005 am_sleep_pid=
3006 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3007 ( sleep 1 ) &
3008 am_sleep_pid=$!
3011 rm -f conftest.file
3013 test "$program_prefix" != NONE &&
3014 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3015 # Use a double $ so make ignores it.
3016 test "$program_suffix" != NONE &&
3017 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3018 # Double any \ or $.
3019 # By default was `s,x,x', remove it if useless.
3020 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3021 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3023 # Expand $ac_aux_dir to an absolute path.
3024 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3026 if test x"${MISSING+set}" != xset; then
3027 case $am_aux_dir in
3028 *\ * | *\ *)
3029 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3031 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3032 esac
3034 # Use eval to expand $SHELL
3035 if eval "$MISSING --is-lightweight"; then
3036 am_missing_run="$MISSING "
3037 else
3038 am_missing_run=
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3040 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3043 if test x"${install_sh+set}" != xset; then
3044 case $am_aux_dir in
3045 *\ * | *\ *)
3046 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3048 install_sh="\${SHELL} $am_aux_dir/install-sh"
3049 esac
3052 # Installed binaries are usually stripped using 'strip' when the user
3053 # run "make install-strip". However 'strip' might not be the right
3054 # tool to use in cross-compilation environments, therefore Automake
3055 # will honor the 'STRIP' environment variable to overrule this program.
3056 if test "$cross_compiling" != no; then
3057 if test -n "$ac_tool_prefix"; then
3058 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3059 set dummy ${ac_tool_prefix}strip; ac_word=$2
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3061 $as_echo_n "checking for $ac_word... " >&6; }
3062 if ${ac_cv_prog_STRIP+:} false; then :
3063 $as_echo_n "(cached) " >&6
3064 else
3065 if test -n "$STRIP"; then
3066 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3067 else
3068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3069 for as_dir in $PATH
3071 IFS=$as_save_IFS
3072 test -z "$as_dir" && as_dir=.
3073 for ac_exec_ext in '' $ac_executable_extensions; do
3074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3075 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3077 break 2
3079 done
3080 done
3081 IFS=$as_save_IFS
3085 STRIP=$ac_cv_prog_STRIP
3086 if test -n "$STRIP"; then
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3088 $as_echo "$STRIP" >&6; }
3089 else
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3091 $as_echo "no" >&6; }
3096 if test -z "$ac_cv_prog_STRIP"; then
3097 ac_ct_STRIP=$STRIP
3098 # Extract the first word of "strip", so it can be a program name with args.
3099 set dummy strip; ac_word=$2
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3101 $as_echo_n "checking for $ac_word... " >&6; }
3102 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3103 $as_echo_n "(cached) " >&6
3104 else
3105 if test -n "$ac_ct_STRIP"; then
3106 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3107 else
3108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3109 for as_dir in $PATH
3111 IFS=$as_save_IFS
3112 test -z "$as_dir" && as_dir=.
3113 for ac_exec_ext in '' $ac_executable_extensions; do
3114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3115 ac_cv_prog_ac_ct_STRIP="strip"
3116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3117 break 2
3119 done
3120 done
3121 IFS=$as_save_IFS
3125 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3126 if test -n "$ac_ct_STRIP"; then
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3128 $as_echo "$ac_ct_STRIP" >&6; }
3129 else
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3131 $as_echo "no" >&6; }
3134 if test "x$ac_ct_STRIP" = x; then
3135 STRIP=":"
3136 else
3137 case $cross_compiling:$ac_tool_warned in
3138 yes:)
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3140 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3141 ac_tool_warned=yes ;;
3142 esac
3143 STRIP=$ac_ct_STRIP
3145 else
3146 STRIP="$ac_cv_prog_STRIP"
3150 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3153 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3154 if test -z "$MKDIR_P"; then
3155 if ${ac_cv_path_mkdir+:} false; then :
3156 $as_echo_n "(cached) " >&6
3157 else
3158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3159 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3161 IFS=$as_save_IFS
3162 test -z "$as_dir" && as_dir=.
3163 for ac_prog in mkdir gmkdir; do
3164 for ac_exec_ext in '' $ac_executable_extensions; do
3165 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3166 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3167 'mkdir (GNU coreutils) '* | \
3168 'mkdir (coreutils) '* | \
3169 'mkdir (fileutils) '4.1*)
3170 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3171 break 3;;
3172 esac
3173 done
3174 done
3175 done
3176 IFS=$as_save_IFS
3180 test -d ./--version && rmdir ./--version
3181 if test "${ac_cv_path_mkdir+set}" = set; then
3182 MKDIR_P="$ac_cv_path_mkdir -p"
3183 else
3184 # As a last resort, use the slow shell script. Don't cache a
3185 # value for MKDIR_P within a source directory, because that will
3186 # break other packages using the cache if that directory is
3187 # removed, or if the value is a relative name.
3188 MKDIR_P="$ac_install_sh -d"
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3192 $as_echo "$MKDIR_P" >&6; }
3194 for ac_prog in gawk mawk nawk awk
3196 # Extract the first word of "$ac_prog", so it can be a program name with args.
3197 set dummy $ac_prog; ac_word=$2
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3199 $as_echo_n "checking for $ac_word... " >&6; }
3200 if ${ac_cv_prog_AWK+:} false; then :
3201 $as_echo_n "(cached) " >&6
3202 else
3203 if test -n "$AWK"; then
3204 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3205 else
3206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3207 for as_dir in $PATH
3209 IFS=$as_save_IFS
3210 test -z "$as_dir" && as_dir=.
3211 for ac_exec_ext in '' $ac_executable_extensions; do
3212 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3213 ac_cv_prog_AWK="$ac_prog"
3214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3215 break 2
3217 done
3218 done
3219 IFS=$as_save_IFS
3223 AWK=$ac_cv_prog_AWK
3224 if test -n "$AWK"; then
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3226 $as_echo "$AWK" >&6; }
3227 else
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3229 $as_echo "no" >&6; }
3233 test -n "$AWK" && break
3234 done
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3237 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3238 set x ${MAKE-make}
3239 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3240 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3241 $as_echo_n "(cached) " >&6
3242 else
3243 cat >conftest.make <<\_ACEOF
3244 SHELL = /bin/sh
3245 all:
3246 @echo '@@@%%%=$(MAKE)=@@@%%%'
3247 _ACEOF
3248 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3249 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3250 *@@@%%%=?*=@@@%%%*)
3251 eval ac_cv_prog_make_${ac_make}_set=yes;;
3253 eval ac_cv_prog_make_${ac_make}_set=no;;
3254 esac
3255 rm -f conftest.make
3257 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3259 $as_echo "yes" >&6; }
3260 SET_MAKE=
3261 else
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3263 $as_echo "no" >&6; }
3264 SET_MAKE="MAKE=${MAKE-make}"
3267 rm -rf .tst 2>/dev/null
3268 mkdir .tst 2>/dev/null
3269 if test -d .tst; then
3270 am__leading_dot=.
3271 else
3272 am__leading_dot=_
3274 rmdir .tst 2>/dev/null
3276 # Check whether --enable-silent-rules was given.
3277 if test "${enable_silent_rules+set}" = set; then :
3278 enableval=$enable_silent_rules;
3281 case $enable_silent_rules in # (((
3282 yes) AM_DEFAULT_VERBOSITY=0;;
3283 no) AM_DEFAULT_VERBOSITY=1;;
3284 *) AM_DEFAULT_VERBOSITY=1;;
3285 esac
3286 am_make=${MAKE-make}
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3288 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3289 if ${am_cv_make_support_nested_variables+:} false; then :
3290 $as_echo_n "(cached) " >&6
3291 else
3292 if $as_echo 'TRUE=$(BAR$(V))
3293 BAR0=false
3294 BAR1=true
3296 am__doit:
3297 @$(TRUE)
3298 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3299 am_cv_make_support_nested_variables=yes
3300 else
3301 am_cv_make_support_nested_variables=no
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3305 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3306 if test $am_cv_make_support_nested_variables = yes; then
3307 AM_V='$(V)'
3308 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3309 else
3310 AM_V=$AM_DEFAULT_VERBOSITY
3311 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3313 AM_BACKSLASH='\'
3315 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3316 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3317 # is not polluted with repeated "-I."
3318 am__isrc=' -I$(srcdir)'
3319 # test to see if srcdir already configured
3320 if test -f $srcdir/config.status; then
3321 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3325 # test whether we have cygpath
3326 if test -z "$CYGPATH_W"; then
3327 if (cygpath --version) >/dev/null 2>/dev/null; then
3328 CYGPATH_W='cygpath -w'
3329 else
3330 CYGPATH_W=echo
3335 # Define the identity of the package.
3336 PACKAGE='alpine'
3337 VERSION='2.21.9999'
3340 cat >>confdefs.h <<_ACEOF
3341 #define PACKAGE "$PACKAGE"
3342 _ACEOF
3345 cat >>confdefs.h <<_ACEOF
3346 #define VERSION "$VERSION"
3347 _ACEOF
3349 # Some tools Automake needs.
3351 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3354 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3357 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3360 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3363 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3365 # For better backward compatibility. To be removed once Automake 1.9.x
3366 # dies out for good. For more background, see:
3367 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3368 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3369 mkdir_p='$(MKDIR_P)'
3371 # We need awk for the "check" target (and possibly the TAP driver). The
3372 # system "awk" is bad on some platforms.
3373 # Always define AMTAR for backward compatibility. Yes, it's still used
3374 # in the wild :-( We should find a proper way to deprecate it ...
3375 AMTAR='$${TAR-tar}'
3378 # We'll loop over all known methods to create a tar archive until one works.
3379 _am_tools='gnutar pax cpio none'
3381 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3388 # POSIX will say in a future version that running "rm -f" with no argument
3389 # is OK; and we want to be able to make that assumption in our Makefile
3390 # recipes. So use an aggressive probe to check that the usage we want is
3391 # actually supported "in the wild" to an acceptable degree.
3392 # See automake bug#10828.
3393 # To make any issue more visible, cause the running configure to be aborted
3394 # by default if the 'rm' program in use doesn't match our expectations; the
3395 # user can still override this though.
3396 if rm -f && rm -fr && rm -rf; then : OK; else
3397 cat >&2 <<'END'
3398 Oops!
3400 Your 'rm' program seems unable to run without file operands specified
3401 on the command line, even when the '-f' option is present. This is contrary
3402 to the behaviour of most rm programs out there, and not conforming with
3403 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3405 Please tell bug-automake@gnu.org about your system, including the value
3406 of your $PATH and any error possibly output before this message. This
3407 can help us improve future automake versions.
3410 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3411 echo 'Configuration will proceed anyway, since you have set the' >&2
3412 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3413 echo >&2
3414 else
3415 cat >&2 <<'END'
3416 Aborting the configuration process, to ensure you take notice of the issue.
3418 You can download and install GNU coreutils to get an 'rm' implementation
3419 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3421 If you want to complete the configuration process using your problematic
3422 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3423 to "yes", and re-run configure.
3426 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3433 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3434 # Check whether --enable-maintainer-mode was given.
3435 if test "${enable_maintainer_mode+set}" = set; then :
3436 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3437 else
3438 USE_MAINTAINER_MODE=no
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3442 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3443 if test $USE_MAINTAINER_MODE = yes; then
3444 MAINTAINER_MODE_TRUE=
3445 MAINTAINER_MODE_FALSE='#'
3446 else
3447 MAINTAINER_MODE_TRUE='#'
3448 MAINTAINER_MODE_FALSE=
3451 MAINT=$MAINTAINER_MODE_TRUE
3455 # Make sure we can run config.sub.
3456 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3457 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3460 $as_echo_n "checking build system type... " >&6; }
3461 if ${ac_cv_build+:} false; then :
3462 $as_echo_n "(cached) " >&6
3463 else
3464 ac_build_alias=$build_alias
3465 test "x$ac_build_alias" = x &&
3466 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3467 test "x$ac_build_alias" = x &&
3468 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3469 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3470 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3474 $as_echo "$ac_cv_build" >&6; }
3475 case $ac_cv_build in
3476 *-*-*) ;;
3477 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3478 esac
3479 build=$ac_cv_build
3480 ac_save_IFS=$IFS; IFS='-'
3481 set x $ac_cv_build
3482 shift
3483 build_cpu=$1
3484 build_vendor=$2
3485 shift; shift
3486 # Remember, the first character of IFS is used to create $*,
3487 # except with old shells:
3488 build_os=$*
3489 IFS=$ac_save_IFS
3490 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3494 $as_echo_n "checking host system type... " >&6; }
3495 if ${ac_cv_host+:} false; then :
3496 $as_echo_n "(cached) " >&6
3497 else
3498 if test "x$host_alias" = x; then
3499 ac_cv_host=$ac_cv_build
3500 else
3501 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3502 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3507 $as_echo "$ac_cv_host" >&6; }
3508 case $ac_cv_host in
3509 *-*-*) ;;
3510 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3511 esac
3512 host=$ac_cv_host
3513 ac_save_IFS=$IFS; IFS='-'
3514 set x $ac_cv_host
3515 shift
3516 host_cpu=$1
3517 host_vendor=$2
3518 shift; shift
3519 # Remember, the first character of IFS is used to create $*,
3520 # except with old shells:
3521 host_os=$*
3522 IFS=$ac_save_IFS
3523 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3527 ac_ext=c
3528 ac_cpp='$CPP $CPPFLAGS'
3529 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3530 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3531 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring for $PACKAGE_STRING ($host)" >&5
3535 $as_echo "$as_me: Configuring for $PACKAGE_STRING ($host)" >&6;}
3537 # start out with intent to build Web Alpine
3538 WEB_BUILD=web/src/alpined.d
3541 ac_ext=c
3542 ac_cpp='$CPP $CPPFLAGS'
3543 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3544 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3545 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3546 if test -n "$ac_tool_prefix"; then
3547 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3548 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3550 $as_echo_n "checking for $ac_word... " >&6; }
3551 if ${ac_cv_prog_CC+:} false; then :
3552 $as_echo_n "(cached) " >&6
3553 else
3554 if test -n "$CC"; then
3555 ac_cv_prog_CC="$CC" # Let the user override the test.
3556 else
3557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3558 for as_dir in $PATH
3560 IFS=$as_save_IFS
3561 test -z "$as_dir" && as_dir=.
3562 for ac_exec_ext in '' $ac_executable_extensions; do
3563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3564 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3566 break 2
3568 done
3569 done
3570 IFS=$as_save_IFS
3574 CC=$ac_cv_prog_CC
3575 if test -n "$CC"; then
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3577 $as_echo "$CC" >&6; }
3578 else
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3580 $as_echo "no" >&6; }
3585 if test -z "$ac_cv_prog_CC"; then
3586 ac_ct_CC=$CC
3587 # Extract the first word of "gcc", so it can be a program name with args.
3588 set dummy gcc; ac_word=$2
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3590 $as_echo_n "checking for $ac_word... " >&6; }
3591 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3592 $as_echo_n "(cached) " >&6
3593 else
3594 if test -n "$ac_ct_CC"; then
3595 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3596 else
3597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3598 for as_dir in $PATH
3600 IFS=$as_save_IFS
3601 test -z "$as_dir" && as_dir=.
3602 for ac_exec_ext in '' $ac_executable_extensions; do
3603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3604 ac_cv_prog_ac_ct_CC="gcc"
3605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3606 break 2
3608 done
3609 done
3610 IFS=$as_save_IFS
3614 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3615 if test -n "$ac_ct_CC"; then
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3617 $as_echo "$ac_ct_CC" >&6; }
3618 else
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3620 $as_echo "no" >&6; }
3623 if test "x$ac_ct_CC" = x; then
3624 CC=""
3625 else
3626 case $cross_compiling:$ac_tool_warned in
3627 yes:)
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3629 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3630 ac_tool_warned=yes ;;
3631 esac
3632 CC=$ac_ct_CC
3634 else
3635 CC="$ac_cv_prog_CC"
3638 if test -z "$CC"; then
3639 if test -n "$ac_tool_prefix"; then
3640 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3641 set dummy ${ac_tool_prefix}cc; ac_word=$2
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3643 $as_echo_n "checking for $ac_word... " >&6; }
3644 if ${ac_cv_prog_CC+:} false; then :
3645 $as_echo_n "(cached) " >&6
3646 else
3647 if test -n "$CC"; then
3648 ac_cv_prog_CC="$CC" # Let the user override the test.
3649 else
3650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3651 for as_dir in $PATH
3653 IFS=$as_save_IFS
3654 test -z "$as_dir" && as_dir=.
3655 for ac_exec_ext in '' $ac_executable_extensions; do
3656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3657 ac_cv_prog_CC="${ac_tool_prefix}cc"
3658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3659 break 2
3661 done
3662 done
3663 IFS=$as_save_IFS
3667 CC=$ac_cv_prog_CC
3668 if test -n "$CC"; then
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3670 $as_echo "$CC" >&6; }
3671 else
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3673 $as_echo "no" >&6; }
3679 if test -z "$CC"; then
3680 # Extract the first word of "cc", so it can be a program name with args.
3681 set dummy cc; ac_word=$2
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3683 $as_echo_n "checking for $ac_word... " >&6; }
3684 if ${ac_cv_prog_CC+:} false; then :
3685 $as_echo_n "(cached) " >&6
3686 else
3687 if test -n "$CC"; then
3688 ac_cv_prog_CC="$CC" # Let the user override the test.
3689 else
3690 ac_prog_rejected=no
3691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3692 for as_dir in $PATH
3694 IFS=$as_save_IFS
3695 test -z "$as_dir" && as_dir=.
3696 for ac_exec_ext in '' $ac_executable_extensions; do
3697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3698 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3699 ac_prog_rejected=yes
3700 continue
3702 ac_cv_prog_CC="cc"
3703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3704 break 2
3706 done
3707 done
3708 IFS=$as_save_IFS
3710 if test $ac_prog_rejected = yes; then
3711 # We found a bogon in the path, so make sure we never use it.
3712 set dummy $ac_cv_prog_CC
3713 shift
3714 if test $# != 0; then
3715 # We chose a different compiler from the bogus one.
3716 # However, it has the same basename, so the bogon will be chosen
3717 # first if we set CC to just the basename; use the full file name.
3718 shift
3719 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3724 CC=$ac_cv_prog_CC
3725 if test -n "$CC"; then
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3727 $as_echo "$CC" >&6; }
3728 else
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3730 $as_echo "no" >&6; }
3735 if test -z "$CC"; then
3736 if test -n "$ac_tool_prefix"; then
3737 for ac_prog in cl.exe
3739 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3740 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3742 $as_echo_n "checking for $ac_word... " >&6; }
3743 if ${ac_cv_prog_CC+:} false; then :
3744 $as_echo_n "(cached) " >&6
3745 else
3746 if test -n "$CC"; then
3747 ac_cv_prog_CC="$CC" # Let the user override the test.
3748 else
3749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3750 for as_dir in $PATH
3752 IFS=$as_save_IFS
3753 test -z "$as_dir" && as_dir=.
3754 for ac_exec_ext in '' $ac_executable_extensions; do
3755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3756 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3758 break 2
3760 done
3761 done
3762 IFS=$as_save_IFS
3766 CC=$ac_cv_prog_CC
3767 if test -n "$CC"; then
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3769 $as_echo "$CC" >&6; }
3770 else
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3772 $as_echo "no" >&6; }
3776 test -n "$CC" && break
3777 done
3779 if test -z "$CC"; then
3780 ac_ct_CC=$CC
3781 for ac_prog in cl.exe
3783 # Extract the first word of "$ac_prog", so it can be a program name with args.
3784 set dummy $ac_prog; ac_word=$2
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3786 $as_echo_n "checking for $ac_word... " >&6; }
3787 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3788 $as_echo_n "(cached) " >&6
3789 else
3790 if test -n "$ac_ct_CC"; then
3791 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3792 else
3793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3794 for as_dir in $PATH
3796 IFS=$as_save_IFS
3797 test -z "$as_dir" && as_dir=.
3798 for ac_exec_ext in '' $ac_executable_extensions; do
3799 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3800 ac_cv_prog_ac_ct_CC="$ac_prog"
3801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3802 break 2
3804 done
3805 done
3806 IFS=$as_save_IFS
3810 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3811 if test -n "$ac_ct_CC"; then
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3813 $as_echo "$ac_ct_CC" >&6; }
3814 else
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3816 $as_echo "no" >&6; }
3820 test -n "$ac_ct_CC" && break
3821 done
3823 if test "x$ac_ct_CC" = x; then
3824 CC=""
3825 else
3826 case $cross_compiling:$ac_tool_warned in
3827 yes:)
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3829 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3830 ac_tool_warned=yes ;;
3831 esac
3832 CC=$ac_ct_CC
3839 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3840 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3841 as_fn_error $? "no acceptable C compiler found in \$PATH
3842 See \`config.log' for more details" "$LINENO" 5; }
3844 # Provide some information about the compiler.
3845 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3846 set X $ac_compile
3847 ac_compiler=$2
3848 for ac_option in --version -v -V -qversion; do
3849 { { ac_try="$ac_compiler $ac_option >&5"
3850 case "(($ac_try" in
3851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3852 *) ac_try_echo=$ac_try;;
3853 esac
3854 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3855 $as_echo "$ac_try_echo"; } >&5
3856 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3857 ac_status=$?
3858 if test -s conftest.err; then
3859 sed '10a\
3860 ... rest of stderr output deleted ...
3861 10q' conftest.err >conftest.er1
3862 cat conftest.er1 >&5
3864 rm -f conftest.er1 conftest.err
3865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3866 test $ac_status = 0; }
3867 done
3869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3870 /* end confdefs.h. */
3873 main ()
3877 return 0;
3879 _ACEOF
3880 ac_clean_files_save=$ac_clean_files
3881 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3882 # Try to create an executable without -o first, disregard a.out.
3883 # It will help us diagnose broken compilers, and finding out an intuition
3884 # of exeext.
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3886 $as_echo_n "checking whether the C compiler works... " >&6; }
3887 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3889 # The possible output files:
3890 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3892 ac_rmfiles=
3893 for ac_file in $ac_files
3895 case $ac_file in
3896 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3897 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3898 esac
3899 done
3900 rm -f $ac_rmfiles
3902 if { { ac_try="$ac_link_default"
3903 case "(($ac_try" in
3904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3905 *) ac_try_echo=$ac_try;;
3906 esac
3907 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3908 $as_echo "$ac_try_echo"; } >&5
3909 (eval "$ac_link_default") 2>&5
3910 ac_status=$?
3911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3912 test $ac_status = 0; }; then :
3913 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3914 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3915 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3916 # so that the user can short-circuit this test for compilers unknown to
3917 # Autoconf.
3918 for ac_file in $ac_files ''
3920 test -f "$ac_file" || continue
3921 case $ac_file in
3922 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3924 [ab].out )
3925 # We found the default executable, but exeext='' is most
3926 # certainly right.
3927 break;;
3928 *.* )
3929 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3930 then :; else
3931 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3933 # We set ac_cv_exeext here because the later test for it is not
3934 # safe: cross compilers may not add the suffix if given an `-o'
3935 # argument, so we may need to know it at that point already.
3936 # Even if this section looks crufty: it has the advantage of
3937 # actually working.
3938 break;;
3940 break;;
3941 esac
3942 done
3943 test "$ac_cv_exeext" = no && ac_cv_exeext=
3945 else
3946 ac_file=''
3948 if test -z "$ac_file"; then :
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3950 $as_echo "no" >&6; }
3951 $as_echo "$as_me: failed program was:" >&5
3952 sed 's/^/| /' conftest.$ac_ext >&5
3954 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3955 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3956 as_fn_error 77 "C compiler cannot create executables
3957 See \`config.log' for more details" "$LINENO" 5; }
3958 else
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3960 $as_echo "yes" >&6; }
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3963 $as_echo_n "checking for C compiler default output file name... " >&6; }
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3965 $as_echo "$ac_file" >&6; }
3966 ac_exeext=$ac_cv_exeext
3968 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3969 ac_clean_files=$ac_clean_files_save
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3971 $as_echo_n "checking for suffix of executables... " >&6; }
3972 if { { ac_try="$ac_link"
3973 case "(($ac_try" in
3974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3975 *) ac_try_echo=$ac_try;;
3976 esac
3977 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3978 $as_echo "$ac_try_echo"; } >&5
3979 (eval "$ac_link") 2>&5
3980 ac_status=$?
3981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3982 test $ac_status = 0; }; then :
3983 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3984 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3985 # work properly (i.e., refer to `conftest.exe'), while it won't with
3986 # `rm'.
3987 for ac_file in conftest.exe conftest conftest.*; do
3988 test -f "$ac_file" || continue
3989 case $ac_file in
3990 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3991 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3992 break;;
3993 * ) break;;
3994 esac
3995 done
3996 else
3997 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3998 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3999 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4000 See \`config.log' for more details" "$LINENO" 5; }
4002 rm -f conftest conftest$ac_cv_exeext
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4004 $as_echo "$ac_cv_exeext" >&6; }
4006 rm -f conftest.$ac_ext
4007 EXEEXT=$ac_cv_exeext
4008 ac_exeext=$EXEEXT
4009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4010 /* end confdefs.h. */
4011 #include <stdio.h>
4013 main ()
4015 FILE *f = fopen ("conftest.out", "w");
4016 return ferror (f) || fclose (f) != 0;
4019 return 0;
4021 _ACEOF
4022 ac_clean_files="$ac_clean_files conftest.out"
4023 # Check that the compiler produces executables we can run. If not, either
4024 # the compiler is broken, or we cross compile.
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4026 $as_echo_n "checking whether we are cross compiling... " >&6; }
4027 if test "$cross_compiling" != yes; then
4028 { { ac_try="$ac_link"
4029 case "(($ac_try" in
4030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4031 *) ac_try_echo=$ac_try;;
4032 esac
4033 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4034 $as_echo "$ac_try_echo"; } >&5
4035 (eval "$ac_link") 2>&5
4036 ac_status=$?
4037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4038 test $ac_status = 0; }
4039 if { ac_try='./conftest$ac_cv_exeext'
4040 { { case "(($ac_try" in
4041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4042 *) ac_try_echo=$ac_try;;
4043 esac
4044 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4045 $as_echo "$ac_try_echo"; } >&5
4046 (eval "$ac_try") 2>&5
4047 ac_status=$?
4048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4049 test $ac_status = 0; }; }; then
4050 cross_compiling=no
4051 else
4052 if test "$cross_compiling" = maybe; then
4053 cross_compiling=yes
4054 else
4055 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4056 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4057 as_fn_error $? "cannot run C compiled programs.
4058 If you meant to cross compile, use \`--host'.
4059 See \`config.log' for more details" "$LINENO" 5; }
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4064 $as_echo "$cross_compiling" >&6; }
4066 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4067 ac_clean_files=$ac_clean_files_save
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4069 $as_echo_n "checking for suffix of object files... " >&6; }
4070 if ${ac_cv_objext+:} false; then :
4071 $as_echo_n "(cached) " >&6
4072 else
4073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4074 /* end confdefs.h. */
4077 main ()
4081 return 0;
4083 _ACEOF
4084 rm -f conftest.o conftest.obj
4085 if { { ac_try="$ac_compile"
4086 case "(($ac_try" in
4087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4088 *) ac_try_echo=$ac_try;;
4089 esac
4090 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4091 $as_echo "$ac_try_echo"; } >&5
4092 (eval "$ac_compile") 2>&5
4093 ac_status=$?
4094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4095 test $ac_status = 0; }; then :
4096 for ac_file in conftest.o conftest.obj conftest.*; do
4097 test -f "$ac_file" || continue;
4098 case $ac_file in
4099 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4100 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4101 break;;
4102 esac
4103 done
4104 else
4105 $as_echo "$as_me: failed program was:" >&5
4106 sed 's/^/| /' conftest.$ac_ext >&5
4108 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4109 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4110 as_fn_error $? "cannot compute suffix of object files: cannot compile
4111 See \`config.log' for more details" "$LINENO" 5; }
4113 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4116 $as_echo "$ac_cv_objext" >&6; }
4117 OBJEXT=$ac_cv_objext
4118 ac_objext=$OBJEXT
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4120 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4121 if ${ac_cv_c_compiler_gnu+:} false; then :
4122 $as_echo_n "(cached) " >&6
4123 else
4124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4125 /* end confdefs.h. */
4128 main ()
4130 #ifndef __GNUC__
4131 choke me
4132 #endif
4135 return 0;
4137 _ACEOF
4138 if ac_fn_c_try_compile "$LINENO"; then :
4139 ac_compiler_gnu=yes
4140 else
4141 ac_compiler_gnu=no
4143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4144 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4148 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4149 if test $ac_compiler_gnu = yes; then
4150 GCC=yes
4151 else
4152 GCC=
4154 ac_test_CFLAGS=${CFLAGS+set}
4155 ac_save_CFLAGS=$CFLAGS
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4157 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4158 if ${ac_cv_prog_cc_g+:} false; then :
4159 $as_echo_n "(cached) " >&6
4160 else
4161 ac_save_c_werror_flag=$ac_c_werror_flag
4162 ac_c_werror_flag=yes
4163 ac_cv_prog_cc_g=no
4164 CFLAGS="-g"
4165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4166 /* end confdefs.h. */
4169 main ()
4173 return 0;
4175 _ACEOF
4176 if ac_fn_c_try_compile "$LINENO"; then :
4177 ac_cv_prog_cc_g=yes
4178 else
4179 CFLAGS=""
4180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4181 /* end confdefs.h. */
4184 main ()
4188 return 0;
4190 _ACEOF
4191 if ac_fn_c_try_compile "$LINENO"; then :
4193 else
4194 ac_c_werror_flag=$ac_save_c_werror_flag
4195 CFLAGS="-g"
4196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4197 /* end confdefs.h. */
4200 main ()
4204 return 0;
4206 _ACEOF
4207 if ac_fn_c_try_compile "$LINENO"; then :
4208 ac_cv_prog_cc_g=yes
4210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4215 ac_c_werror_flag=$ac_save_c_werror_flag
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4218 $as_echo "$ac_cv_prog_cc_g" >&6; }
4219 if test "$ac_test_CFLAGS" = set; then
4220 CFLAGS=$ac_save_CFLAGS
4221 elif test $ac_cv_prog_cc_g = yes; then
4222 if test "$GCC" = yes; then
4223 CFLAGS="-g -O2"
4224 else
4225 CFLAGS="-g"
4227 else
4228 if test "$GCC" = yes; then
4229 CFLAGS="-O2"
4230 else
4231 CFLAGS=
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4235 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4236 if ${ac_cv_prog_cc_c89+:} false; then :
4237 $as_echo_n "(cached) " >&6
4238 else
4239 ac_cv_prog_cc_c89=no
4240 ac_save_CC=$CC
4241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4242 /* end confdefs.h. */
4243 #include <stdarg.h>
4244 #include <stdio.h>
4245 struct stat;
4246 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4247 struct buf { int x; };
4248 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4249 static char *e (p, i)
4250 char **p;
4251 int i;
4253 return p[i];
4255 static char *f (char * (*g) (char **, int), char **p, ...)
4257 char *s;
4258 va_list v;
4259 va_start (v,p);
4260 s = g (p, va_arg (v,int));
4261 va_end (v);
4262 return s;
4265 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4266 function prototypes and stuff, but not '\xHH' hex character constants.
4267 These don't provoke an error unfortunately, instead are silently treated
4268 as 'x'. The following induces an error, until -std is added to get
4269 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4270 array size at least. It's necessary to write '\x00'==0 to get something
4271 that's true only with -std. */
4272 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4274 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4275 inside strings and character constants. */
4276 #define FOO(x) 'x'
4277 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4279 int test (int i, double x);
4280 struct s1 {int (*f) (int a);};
4281 struct s2 {int (*f) (double a);};
4282 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4283 int argc;
4284 char **argv;
4286 main ()
4288 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4290 return 0;
4292 _ACEOF
4293 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4294 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4296 CC="$ac_save_CC $ac_arg"
4297 if ac_fn_c_try_compile "$LINENO"; then :
4298 ac_cv_prog_cc_c89=$ac_arg
4300 rm -f core conftest.err conftest.$ac_objext
4301 test "x$ac_cv_prog_cc_c89" != "xno" && break
4302 done
4303 rm -f conftest.$ac_ext
4304 CC=$ac_save_CC
4307 # AC_CACHE_VAL
4308 case "x$ac_cv_prog_cc_c89" in
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4311 $as_echo "none needed" >&6; } ;;
4312 xno)
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4314 $as_echo "unsupported" >&6; } ;;
4316 CC="$CC $ac_cv_prog_cc_c89"
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4318 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4319 esac
4320 if test "x$ac_cv_prog_cc_c89" != xno; then :
4324 ac_ext=c
4325 ac_cpp='$CPP $CPPFLAGS'
4326 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4327 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4328 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4330 ac_ext=c
4331 ac_cpp='$CPP $CPPFLAGS'
4332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4336 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4337 if ${am_cv_prog_cc_c_o+:} false; then :
4338 $as_echo_n "(cached) " >&6
4339 else
4340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4341 /* end confdefs.h. */
4344 main ()
4348 return 0;
4350 _ACEOF
4351 # Make sure it works both with $CC and with simple cc.
4352 # Following AC_PROG_CC_C_O, we do the test twice because some
4353 # compilers refuse to overwrite an existing .o file with -o,
4354 # though they will create one.
4355 am_cv_prog_cc_c_o=yes
4356 for am_i in 1 2; do
4357 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4358 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4359 ac_status=$?
4360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4361 (exit $ac_status); } \
4362 && test -f conftest2.$ac_objext; then
4363 : OK
4364 else
4365 am_cv_prog_cc_c_o=no
4366 break
4368 done
4369 rm -f core conftest*
4370 unset am_i
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4373 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4374 if test "$am_cv_prog_cc_c_o" != yes; then
4375 # Losing compiler, so override with the script.
4376 # FIXME: It is wrong to rewrite CC.
4377 # But if we don't then we get into trouble of one sort or another.
4378 # A longer-term fix would be to have automake use am__CC in this case,
4379 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4380 CC="$am_aux_dir/compile $CC"
4382 ac_ext=c
4383 ac_cpp='$CPP $CPPFLAGS'
4384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4388 DEPDIR="${am__leading_dot}deps"
4390 ac_config_commands="$ac_config_commands depfiles"
4393 am_make=${MAKE-make}
4394 cat > confinc << 'END'
4395 am__doit:
4396 @echo this is the am__doit target
4397 .PHONY: am__doit
4399 # If we don't find an include directive, just comment out the code.
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4401 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4402 am__include="#"
4403 am__quote=
4404 _am_result=none
4405 # First try GNU make style include.
4406 echo "include confinc" > confmf
4407 # Ignore all kinds of additional output from 'make'.
4408 case `$am_make -s -f confmf 2> /dev/null` in #(
4409 *the\ am__doit\ target*)
4410 am__include=include
4411 am__quote=
4412 _am_result=GNU
4414 esac
4415 # Now try BSD make style include.
4416 if test "$am__include" = "#"; then
4417 echo '.include "confinc"' > confmf
4418 case `$am_make -s -f confmf 2> /dev/null` in #(
4419 *the\ am__doit\ target*)
4420 am__include=.include
4421 am__quote="\""
4422 _am_result=BSD
4424 esac
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4429 $as_echo "$_am_result" >&6; }
4430 rm -f confinc confmf
4432 # Check whether --enable-dependency-tracking was given.
4433 if test "${enable_dependency_tracking+set}" = set; then :
4434 enableval=$enable_dependency_tracking;
4437 if test "x$enable_dependency_tracking" != xno; then
4438 am_depcomp="$ac_aux_dir/depcomp"
4439 AMDEPBACKSLASH='\'
4440 am__nodep='_no'
4442 if test "x$enable_dependency_tracking" != xno; then
4443 AMDEP_TRUE=
4444 AMDEP_FALSE='#'
4445 else
4446 AMDEP_TRUE='#'
4447 AMDEP_FALSE=
4452 depcc="$CC" am_compiler_list=
4454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4455 $as_echo_n "checking dependency style of $depcc... " >&6; }
4456 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4457 $as_echo_n "(cached) " >&6
4458 else
4459 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4460 # We make a subdir and do the tests there. Otherwise we can end up
4461 # making bogus files that we don't know about and never remove. For
4462 # instance it was reported that on HP-UX the gcc test will end up
4463 # making a dummy file named 'D' -- because '-MD' means "put the output
4464 # in D".
4465 rm -rf conftest.dir
4466 mkdir conftest.dir
4467 # Copy depcomp to subdir because otherwise we won't find it if we're
4468 # using a relative directory.
4469 cp "$am_depcomp" conftest.dir
4470 cd conftest.dir
4471 # We will build objects and dependencies in a subdirectory because
4472 # it helps to detect inapplicable dependency modes. For instance
4473 # both Tru64's cc and ICC support -MD to output dependencies as a
4474 # side effect of compilation, but ICC will put the dependencies in
4475 # the current directory while Tru64 will put them in the object
4476 # directory.
4477 mkdir sub
4479 am_cv_CC_dependencies_compiler_type=none
4480 if test "$am_compiler_list" = ""; then
4481 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4483 am__universal=false
4484 case " $depcc " in #(
4485 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4486 esac
4488 for depmode in $am_compiler_list; do
4489 # Setup a source with many dependencies, because some compilers
4490 # like to wrap large dependency lists on column 80 (with \), and
4491 # we should not choose a depcomp mode which is confused by this.
4493 # We need to recreate these files for each test, as the compiler may
4494 # overwrite some of them when testing with obscure command lines.
4495 # This happens at least with the AIX C compiler.
4496 : > sub/conftest.c
4497 for i in 1 2 3 4 5 6; do
4498 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4499 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4500 # Solaris 10 /bin/sh.
4501 echo '/* dummy */' > sub/conftst$i.h
4502 done
4503 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4505 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4506 # mode. It turns out that the SunPro C++ compiler does not properly
4507 # handle '-M -o', and we need to detect this. Also, some Intel
4508 # versions had trouble with output in subdirs.
4509 am__obj=sub/conftest.${OBJEXT-o}
4510 am__minus_obj="-o $am__obj"
4511 case $depmode in
4512 gcc)
4513 # This depmode causes a compiler race in universal mode.
4514 test "$am__universal" = false || continue
4516 nosideeffect)
4517 # After this tag, mechanisms are not by side-effect, so they'll
4518 # only be used when explicitly requested.
4519 if test "x$enable_dependency_tracking" = xyes; then
4520 continue
4521 else
4522 break
4525 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4526 # This compiler won't grok '-c -o', but also, the minuso test has
4527 # not run yet. These depmodes are late enough in the game, and
4528 # so weak that their functioning should not be impacted.
4529 am__obj=conftest.${OBJEXT-o}
4530 am__minus_obj=
4532 none) break ;;
4533 esac
4534 if depmode=$depmode \
4535 source=sub/conftest.c object=$am__obj \
4536 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4537 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4538 >/dev/null 2>conftest.err &&
4539 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4540 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4541 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4542 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4543 # icc doesn't choke on unknown options, it will just issue warnings
4544 # or remarks (even with -Werror). So we grep stderr for any message
4545 # that says an option was ignored or not supported.
4546 # When given -MP, icc 7.0 and 7.1 complain thusly:
4547 # icc: Command line warning: ignoring option '-M'; no argument required
4548 # The diagnosis changed in icc 8.0:
4549 # icc: Command line remark: option '-MP' not supported
4550 if (grep 'ignoring option' conftest.err ||
4551 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4552 am_cv_CC_dependencies_compiler_type=$depmode
4553 break
4556 done
4558 cd ..
4559 rm -rf conftest.dir
4560 else
4561 am_cv_CC_dependencies_compiler_type=none
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4566 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4567 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4570 test "x$enable_dependency_tracking" != xno \
4571 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4572 am__fastdepCC_TRUE=
4573 am__fastdepCC_FALSE='#'
4574 else
4575 am__fastdepCC_TRUE='#'
4576 am__fastdepCC_FALSE=
4580 ac_ext=c
4581 ac_cpp='$CPP $CPPFLAGS'
4582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4586 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4587 # On Suns, sometimes $CPP names a directory.
4588 if test -n "$CPP" && test -d "$CPP"; then
4589 CPP=
4591 if test -z "$CPP"; then
4592 if ${ac_cv_prog_CPP+:} false; then :
4593 $as_echo_n "(cached) " >&6
4594 else
4595 # Double quotes because CPP needs to be expanded
4596 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4598 ac_preproc_ok=false
4599 for ac_c_preproc_warn_flag in '' yes
4601 # Use a header file that comes with gcc, so configuring glibc
4602 # with a fresh cross-compiler works.
4603 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4604 # <limits.h> exists even on freestanding compilers.
4605 # On the NeXT, cc -E runs the code through the compiler's parser,
4606 # not just through cpp. "Syntax error" is here to catch this case.
4607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4608 /* end confdefs.h. */
4609 #ifdef __STDC__
4610 # include <limits.h>
4611 #else
4612 # include <assert.h>
4613 #endif
4614 Syntax error
4615 _ACEOF
4616 if ac_fn_c_try_cpp "$LINENO"; then :
4618 else
4619 # Broken: fails on valid input.
4620 continue
4622 rm -f conftest.err conftest.i conftest.$ac_ext
4624 # OK, works on sane cases. Now check whether nonexistent headers
4625 # can be detected and how.
4626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4627 /* end confdefs.h. */
4628 #include <ac_nonexistent.h>
4629 _ACEOF
4630 if ac_fn_c_try_cpp "$LINENO"; then :
4631 # Broken: success on invalid input.
4632 continue
4633 else
4634 # Passes both tests.
4635 ac_preproc_ok=:
4636 break
4638 rm -f conftest.err conftest.i conftest.$ac_ext
4640 done
4641 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4642 rm -f conftest.i conftest.err conftest.$ac_ext
4643 if $ac_preproc_ok; then :
4644 break
4647 done
4648 ac_cv_prog_CPP=$CPP
4651 CPP=$ac_cv_prog_CPP
4652 else
4653 ac_cv_prog_CPP=$CPP
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4656 $as_echo "$CPP" >&6; }
4657 ac_preproc_ok=false
4658 for ac_c_preproc_warn_flag in '' yes
4660 # Use a header file that comes with gcc, so configuring glibc
4661 # with a fresh cross-compiler works.
4662 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4663 # <limits.h> exists even on freestanding compilers.
4664 # On the NeXT, cc -E runs the code through the compiler's parser,
4665 # not just through cpp. "Syntax error" is here to catch this case.
4666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4667 /* end confdefs.h. */
4668 #ifdef __STDC__
4669 # include <limits.h>
4670 #else
4671 # include <assert.h>
4672 #endif
4673 Syntax error
4674 _ACEOF
4675 if ac_fn_c_try_cpp "$LINENO"; then :
4677 else
4678 # Broken: fails on valid input.
4679 continue
4681 rm -f conftest.err conftest.i conftest.$ac_ext
4683 # OK, works on sane cases. Now check whether nonexistent headers
4684 # can be detected and how.
4685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4686 /* end confdefs.h. */
4687 #include <ac_nonexistent.h>
4688 _ACEOF
4689 if ac_fn_c_try_cpp "$LINENO"; then :
4690 # Broken: success on invalid input.
4691 continue
4692 else
4693 # Passes both tests.
4694 ac_preproc_ok=:
4695 break
4697 rm -f conftest.err conftest.i conftest.$ac_ext
4699 done
4700 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4701 rm -f conftest.i conftest.err conftest.$ac_ext
4702 if $ac_preproc_ok; then :
4704 else
4705 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4706 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4707 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4708 See \`config.log' for more details" "$LINENO" 5; }
4711 ac_ext=c
4712 ac_cpp='$CPP $CPPFLAGS'
4713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4720 save_cross_compiling=$cross_compiling
4721 save_ac_tool_prefix=$ac_tool_prefix
4722 cross_compiling=no
4723 ac_tool_prefix=
4725 ac_ext=c
4726 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
4727 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
4728 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
4729 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4730 if test -n "$ac_tool_prefix"; then
4731 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4732 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4734 $as_echo_n "checking for $ac_word... " >&6; }
4735 if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
4736 $as_echo_n "(cached) " >&6
4737 else
4738 if test -n "$CC_FOR_BUILD"; then
4739 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
4740 else
4741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4742 for as_dir in $PATH
4744 IFS=$as_save_IFS
4745 test -z "$as_dir" && as_dir=.
4746 for ac_exec_ext in '' $ac_executable_extensions; do
4747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4748 ac_cv_prog_CC_FOR_BUILD="${ac_tool_prefix}gcc"
4749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4750 break 2
4752 done
4753 done
4754 IFS=$as_save_IFS
4758 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
4759 if test -n "$CC_FOR_BUILD"; then
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
4761 $as_echo "$CC_FOR_BUILD" >&6; }
4762 else
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4764 $as_echo "no" >&6; }
4769 if test -z "$ac_cv_prog_CC_FOR_BUILD"; then
4770 ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
4771 # Extract the first word of "gcc", so it can be a program name with args.
4772 set dummy gcc; ac_word=$2
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4774 $as_echo_n "checking for $ac_word... " >&6; }
4775 if ${ac_cv_prog_ac_ct_CC_FOR_BUILD+:} false; then :
4776 $as_echo_n "(cached) " >&6
4777 else
4778 if test -n "$ac_ct_CC_FOR_BUILD"; then
4779 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
4780 else
4781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4782 for as_dir in $PATH
4784 IFS=$as_save_IFS
4785 test -z "$as_dir" && as_dir=.
4786 for ac_exec_ext in '' $ac_executable_extensions; do
4787 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4788 ac_cv_prog_ac_ct_CC_FOR_BUILD="gcc"
4789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4790 break 2
4792 done
4793 done
4794 IFS=$as_save_IFS
4798 ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
4799 if test -n "$ac_ct_CC_FOR_BUILD"; then
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC_FOR_BUILD" >&5
4801 $as_echo "$ac_ct_CC_FOR_BUILD" >&6; }
4802 else
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4804 $as_echo "no" >&6; }
4807 if test "x$ac_ct_CC_FOR_BUILD" = x; then
4808 CC_FOR_BUILD=""
4809 else
4810 case $cross_compiling:$ac_tool_warned in
4811 yes:)
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5
4813 $as_echo "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;}
4814 ac_tool_warned=yes ;;
4815 esac
4816 CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
4818 else
4819 CC_FOR_BUILD="$ac_cv_prog_CC_FOR_BUILD"
4822 if test -z "$CC_FOR_BUILD"; then
4823 if test -n "$ac_tool_prefix"; then
4824 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4825 set dummy ${ac_tool_prefix}cc; ac_word=$2
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4827 $as_echo_n "checking for $ac_word... " >&6; }
4828 if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
4829 $as_echo_n "(cached) " >&6
4830 else
4831 if test -n "$CC_FOR_BUILD"; then
4832 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
4833 else
4834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4835 for as_dir in $PATH
4837 IFS=$as_save_IFS
4838 test -z "$as_dir" && as_dir=.
4839 for ac_exec_ext in '' $ac_executable_extensions; do
4840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4841 ac_cv_prog_CC_FOR_BUILD="${ac_tool_prefix}cc"
4842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4843 break 2
4845 done
4846 done
4847 IFS=$as_save_IFS
4851 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
4852 if test -n "$CC_FOR_BUILD"; then
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
4854 $as_echo "$CC_FOR_BUILD" >&6; }
4855 else
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4857 $as_echo "no" >&6; }
4863 if test -z "$CC_FOR_BUILD"; then
4864 # Extract the first word of "cc", so it can be a program name with args.
4865 set dummy cc; ac_word=$2
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4867 $as_echo_n "checking for $ac_word... " >&6; }
4868 if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
4869 $as_echo_n "(cached) " >&6
4870 else
4871 if test -n "$CC_FOR_BUILD"; then
4872 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
4873 else
4874 ac_prog_rejected=no
4875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4876 for as_dir in $PATH
4878 IFS=$as_save_IFS
4879 test -z "$as_dir" && as_dir=.
4880 for ac_exec_ext in '' $ac_executable_extensions; do
4881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4882 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4883 ac_prog_rejected=yes
4884 continue
4886 ac_cv_prog_CC_FOR_BUILD="cc"
4887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4888 break 2
4890 done
4891 done
4892 IFS=$as_save_IFS
4894 if test $ac_prog_rejected = yes; then
4895 # We found a bogon in the path, so make sure we never use it.
4896 set dummy $ac_cv_prog_CC_FOR_BUILD
4897 shift
4898 if test $# != 0; then
4899 # We chose a different compiler from the bogus one.
4900 # However, it has the same basename, so the bogon will be chosen
4901 # first if we set CC_FOR_BUILD to just the basename; use the full file name.
4902 shift
4903 ac_cv_prog_CC_FOR_BUILD="$as_dir/$ac_word${1+' '}$@"
4908 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
4909 if test -n "$CC_FOR_BUILD"; then
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
4911 $as_echo "$CC_FOR_BUILD" >&6; }
4912 else
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4914 $as_echo "no" >&6; }
4919 if test -z "$CC_FOR_BUILD"; then
4920 if test -n "$ac_tool_prefix"; then
4921 for ac_prog in cl.exe
4923 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4924 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4926 $as_echo_n "checking for $ac_word... " >&6; }
4927 if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
4928 $as_echo_n "(cached) " >&6
4929 else
4930 if test -n "$CC_FOR_BUILD"; then
4931 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
4932 else
4933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4934 for as_dir in $PATH
4936 IFS=$as_save_IFS
4937 test -z "$as_dir" && as_dir=.
4938 for ac_exec_ext in '' $ac_executable_extensions; do
4939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4940 ac_cv_prog_CC_FOR_BUILD="$ac_tool_prefix$ac_prog"
4941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4942 break 2
4944 done
4945 done
4946 IFS=$as_save_IFS
4950 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
4951 if test -n "$CC_FOR_BUILD"; then
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
4953 $as_echo "$CC_FOR_BUILD" >&6; }
4954 else
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4956 $as_echo "no" >&6; }
4960 test -n "$CC_FOR_BUILD" && break
4961 done
4963 if test -z "$CC_FOR_BUILD"; then
4964 ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
4965 for ac_prog in cl.exe
4967 # Extract the first word of "$ac_prog", so it can be a program name with args.
4968 set dummy $ac_prog; ac_word=$2
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4970 $as_echo_n "checking for $ac_word... " >&6; }
4971 if ${ac_cv_prog_ac_ct_CC_FOR_BUILD+:} false; then :
4972 $as_echo_n "(cached) " >&6
4973 else
4974 if test -n "$ac_ct_CC_FOR_BUILD"; then
4975 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
4976 else
4977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4978 for as_dir in $PATH
4980 IFS=$as_save_IFS
4981 test -z "$as_dir" && as_dir=.
4982 for ac_exec_ext in '' $ac_executable_extensions; do
4983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4984 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_prog"
4985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4986 break 2
4988 done
4989 done
4990 IFS=$as_save_IFS
4994 ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
4995 if test -n "$ac_ct_CC_FOR_BUILD"; then
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC_FOR_BUILD" >&5
4997 $as_echo "$ac_ct_CC_FOR_BUILD" >&6; }
4998 else
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5000 $as_echo "no" >&6; }
5004 test -n "$ac_ct_CC_FOR_BUILD" && break
5005 done
5007 if test "x$ac_ct_CC_FOR_BUILD" = x; then
5008 CC_FOR_BUILD=""
5009 else
5010 case $cross_compiling:$ac_tool_warned in
5011 yes:)
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5
5013 $as_echo "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;}
5014 ac_tool_warned=yes ;;
5015 esac
5016 CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
5023 test -z "$CC_FOR_BUILD" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5024 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5025 as_fn_error $? "no acceptable C compiler found in \$PATH
5026 See \`config.log' for more details" "$LINENO" 5; }
5028 # Provide some information about the compiler.
5029 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5030 set X $ac_build_compile
5031 ac_compiler=$2
5032 for ac_option in --version -v -V -qversion; do
5033 { { ac_try="$ac_compiler $ac_option >&5"
5034 case "(($ac_try" in
5035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5036 *) ac_try_echo=$ac_try;;
5037 esac
5038 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5039 $as_echo "$ac_try_echo"; } >&5
5040 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5041 ac_status=$?
5042 if test -s conftest.err; then
5043 sed '10a\
5044 ... rest of stderr output deleted ...
5045 10q' conftest.err >conftest.er1
5046 cat conftest.er1 >&5
5048 rm -f conftest.er1 conftest.err
5049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5050 test $ac_status = 0; }
5051 done
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5054 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5055 if ${ac_cv_c_compiler_gnu+:} false; then :
5056 $as_echo_n "(cached) " >&6
5057 else
5058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5059 /* end confdefs.h. */
5062 main ()
5064 #ifndef __GNUC__
5065 choke me
5066 #endif
5069 return 0;
5071 _ACEOF
5072 if ac_fn_c_try_compile "$LINENO"; then :
5073 ac_compiler_gnu=yes
5074 else
5075 ac_compiler_gnu=no
5077 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
5078 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5082 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5083 if test $ac_compiler_gnu = yes; then
5084 GCC=yes
5085 else
5086 GCC=
5088 ac_test_CFLAGS=${CFLAGS_FOR_BUILD+set}
5089 ac_save_CFLAGS=$CFLAGS_FOR_BUILD
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD accepts -g" >&5
5091 $as_echo_n "checking whether $CC_FOR_BUILD accepts -g... " >&6; }
5092 if ${ac_cv_build_prog_cc_g+:} false; then :
5093 $as_echo_n "(cached) " >&6
5094 else
5095 ac_save_c_werror_flag=$ac_c_werror_flag
5096 ac_c_werror_flag=yes
5097 ac_cv_build_prog_cc_g=no
5098 CFLAGS_FOR_BUILD="-g"
5099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5100 /* end confdefs.h. */
5103 main ()
5107 return 0;
5109 _ACEOF
5110 if ac_fn_c_try_compile "$LINENO"; then :
5111 ac_cv_build_prog_cc_g=yes
5112 else
5113 CFLAGS_FOR_BUILD=""
5114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5115 /* end confdefs.h. */
5118 main ()
5122 return 0;
5124 _ACEOF
5125 if ac_fn_c_try_compile "$LINENO"; then :
5127 else
5128 ac_c_werror_flag=$ac_save_c_werror_flag
5129 CFLAGS_FOR_BUILD="-g"
5130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5131 /* end confdefs.h. */
5134 main ()
5138 return 0;
5140 _ACEOF
5141 if ac_fn_c_try_compile "$LINENO"; then :
5142 ac_cv_build_prog_cc_g=yes
5144 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
5146 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
5148 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
5149 ac_c_werror_flag=$ac_save_c_werror_flag
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_prog_cc_g" >&5
5152 $as_echo "$ac_cv_build_prog_cc_g" >&6; }
5153 if test "$ac_test_CFLAGS" = set; then
5154 CFLAGS_FOR_BUILD=$ac_save_CFLAGS
5155 elif test $ac_cv_build_prog_cc_g = yes; then
5156 if test "$GCC" = yes; then
5157 CFLAGS_FOR_BUILD="-g -O2"
5158 else
5159 CFLAGS_FOR_BUILD="-g"
5161 else
5162 if test "$GCC" = yes; then
5163 CFLAGS_FOR_BUILD="-O2"
5164 else
5165 CFLAGS_FOR_BUILD=
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC_FOR_BUILD option to accept ISO C89" >&5
5169 $as_echo_n "checking for $CC_FOR_BUILD option to accept ISO C89... " >&6; }
5170 if ${ac_cv_prog_cc_c89+:} false; then :
5171 $as_echo_n "(cached) " >&6
5172 else
5173 ac_cv_prog_cc_c89=no
5174 ac_save_CC=$CC_FOR_BUILD
5175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5176 /* end confdefs.h. */
5177 #include <stdarg.h>
5178 #include <stdio.h>
5179 struct stat;
5180 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5181 struct buf { int x; };
5182 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5183 static char *e (p, i)
5184 char **p;
5185 int i;
5187 return p[i];
5189 static char *f (char * (*g) (char **, int), char **p, ...)
5191 char *s;
5192 va_list v;
5193 va_start (v,p);
5194 s = g (p, va_arg (v,int));
5195 va_end (v);
5196 return s;
5199 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5200 function prototypes and stuff, but not '\xHH' hex character constants.
5201 These don't provoke an error unfortunately, instead are silently treated
5202 as 'x'. The following induces an error, until -std is added to get
5203 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5204 array size at least. It's necessary to write '\x00'==0 to get something
5205 that's true only with -std. */
5206 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5208 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5209 inside strings and character constants. */
5210 #define FOO(x) 'x'
5211 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5213 int test (int i, double x);
5214 struct s1 {int (*f) (int a);};
5215 struct s2 {int (*f) (double a);};
5216 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5217 int argc;
5218 char **argv;
5220 main ()
5222 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5224 return 0;
5226 _ACEOF
5227 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5228 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5230 CC_FOR_BUILD="$ac_save_CC $ac_arg"
5231 if ac_fn_c_try_compile "$LINENO"; then :
5232 ac_cv_prog_cc_c89=$ac_arg
5234 rm -f core conftest.err conftest.$ac_build_objext
5235 test "x$ac_cv_prog_cc_c89" != "xno" && break
5236 done
5237 rm -f conftest.$ac_ext
5238 CC_FOR_BUILD=$ac_save_CC
5241 # AC_CACHE_VAL
5242 case "x$ac_cv_prog_cc_c89" in
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5245 $as_echo "none needed" >&6; } ;;
5246 xno)
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5248 $as_echo "unsupported" >&6; } ;;
5250 CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_prog_cc_c89"
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5252 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5253 esac
5254 if test "x$ac_cv_prog_cc_c89" != xno; then :
5258 ac_ext=c
5259 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
5260 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
5261 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
5262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5264 ac_ext=c
5265 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
5266 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
5267 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
5268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD understands -c and -o together" >&5
5270 $as_echo_n "checking whether $CC_FOR_BUILD understands -c and -o together... " >&6; }
5271 if ${am_cv_prog_cc_c_o+:} false; then :
5272 $as_echo_n "(cached) " >&6
5273 else
5274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5275 /* end confdefs.h. */
5278 main ()
5282 return 0;
5284 _ACEOF
5285 # Make sure it works both with $CC and with simple cc.
5286 # Following AC_PROG_CC_C_O, we do the test twice because some
5287 # compilers refuse to overwrite an existing .o file with -o,
5288 # though they will create one.
5289 am_cv_prog_cc_c_o=yes
5290 for am_i in 1 2; do
5291 if { echo "$as_me:$LINENO: $CC_FOR_BUILD -c conftest.$ac_ext -o conftest2.$ac_build_objext" >&5
5292 ($CC_FOR_BUILD -c conftest.$ac_ext -o conftest2.$ac_build_objext) >&5 2>&5
5293 ac_status=$?
5294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5295 (exit $ac_status); } \
5296 && test -f conftest2.$ac_build_objext; then
5297 : OK
5298 else
5299 am_cv_prog_cc_c_o=no
5300 break
5302 done
5303 rm -f core conftest*
5304 unset am_i
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5307 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5308 if test "$am_cv_prog_cc_c_o" != yes; then
5309 # Losing compiler, so override with the script.
5310 # FIXME: It is wrong to rewrite CC.
5311 # But if we don't then we get into trouble of one sort or another.
5312 # A longer-term fix would be to have automake use am__CC in this case,
5313 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5314 CC_FOR_BUILD="$am_aux_dir/compile $CC_FOR_BUILD"
5316 ac_ext=c
5317 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
5318 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
5319 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
5320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5323 depcc="$CC_FOR_BUILD" am_compiler_list=
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5326 $as_echo_n "checking dependency style of $depcc... " >&6; }
5327 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5328 $as_echo_n "(cached) " >&6
5329 else
5330 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5331 # We make a subdir and do the tests there. Otherwise we can end up
5332 # making bogus files that we don't know about and never remove. For
5333 # instance it was reported that on HP-UX the gcc test will end up
5334 # making a dummy file named 'D' -- because '-MD' means "put the output
5335 # in D".
5336 rm -rf conftest.dir
5337 mkdir conftest.dir
5338 # Copy depcomp to subdir because otherwise we won't find it if we're
5339 # using a relative directory.
5340 cp "$am_depcomp" conftest.dir
5341 cd conftest.dir
5342 # We will build objects and dependencies in a subdirectory because
5343 # it helps to detect inapplicable dependency modes. For instance
5344 # both Tru64's cc and ICC support -MD to output dependencies as a
5345 # side effect of compilation, but ICC will put the dependencies in
5346 # the current directory while Tru64 will put them in the object
5347 # directory.
5348 mkdir sub
5350 am_cv_CC_dependencies_compiler_type=none
5351 if test "$am_compiler_list" = ""; then
5352 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5354 am__universal=false
5355 case " $depcc " in #(
5356 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5357 esac
5359 for depmode in $am_compiler_list; do
5360 # Setup a source with many dependencies, because some compilers
5361 # like to wrap large dependency lists on column 80 (with \), and
5362 # we should not choose a depcomp mode which is confused by this.
5364 # We need to recreate these files for each test, as the compiler may
5365 # overwrite some of them when testing with obscure command lines.
5366 # This happens at least with the AIX C compiler.
5367 : > sub/conftest.c
5368 for i in 1 2 3 4 5 6; do
5369 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5370 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5371 # Solaris 10 /bin/sh.
5372 echo '/* dummy */' > sub/conftst$i.h
5373 done
5374 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5376 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5377 # mode. It turns out that the SunPro C++ compiler does not properly
5378 # handle '-M -o', and we need to detect this. Also, some Intel
5379 # versions had trouble with output in subdirs.
5380 am__obj=sub/conftest.${OBJEXT-o}
5381 am__minus_obj="-o $am__obj"
5382 case $depmode in
5383 gcc)
5384 # This depmode causes a compiler race in universal mode.
5385 test "$am__universal" = false || continue
5387 nosideeffect)
5388 # After this tag, mechanisms are not by side-effect, so they'll
5389 # only be used when explicitly requested.
5390 if test "x$enable_dependency_tracking" = xyes; then
5391 continue
5392 else
5393 break
5396 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5397 # This compiler won't grok '-c -o', but also, the minuso test has
5398 # not run yet. These depmodes are late enough in the game, and
5399 # so weak that their functioning should not be impacted.
5400 am__obj=conftest.${OBJEXT-o}
5401 am__minus_obj=
5403 none) break ;;
5404 esac
5405 if depmode=$depmode \
5406 source=sub/conftest.c object=$am__obj \
5407 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5408 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5409 >/dev/null 2>conftest.err &&
5410 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5411 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5412 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5413 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5414 # icc doesn't choke on unknown options, it will just issue warnings
5415 # or remarks (even with -Werror). So we grep stderr for any message
5416 # that says an option was ignored or not supported.
5417 # When given -MP, icc 7.0 and 7.1 complain thusly:
5418 # icc: Command line warning: ignoring option '-M'; no argument required
5419 # The diagnosis changed in icc 8.0:
5420 # icc: Command line remark: option '-MP' not supported
5421 if (grep 'ignoring option' conftest.err ||
5422 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5423 am_cv_CC_dependencies_compiler_type=$depmode
5424 break
5427 done
5429 cd ..
5430 rm -rf conftest.dir
5431 else
5432 am_cv_CC_dependencies_compiler_type=none
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5437 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5438 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5441 test "x$enable_dependency_tracking" != xno \
5442 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5443 am__fastdepCC_TRUE=
5444 am__fastdepCC_FALSE='#'
5445 else
5446 am__fastdepCC_TRUE='#'
5447 am__fastdepCC_FALSE=
5451 ac_ext=c
5452 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
5453 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
5454 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
5455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5457 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5458 # On Suns, sometimes $CPP names a directory.
5459 if test -n "$CPP_FOR_BUILD" && test -d "$CPP_FOR_BUILD"; then
5460 CPP_FOR_BUILD=
5462 if test -z "$CPP_FOR_BUILD"; then
5463 if ${ac_cv_build_prog_CPP+:} false; then :
5464 $as_echo_n "(cached) " >&6
5465 else
5466 # Double quotes because CPP needs to be expanded
5467 for CPP_FOR_BUILD in "$CC_FOR_BUILD -E" "$CC_FOR_BUILD -E -traditional-cpp" "/lib/cpp"
5469 ac_preproc_ok=false
5470 for ac_c_preproc_warn_flag in '' yes
5472 # Use a header file that comes with gcc, so configuring glibc
5473 # with a fresh cross-compiler works.
5474 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5475 # <limits.h> exists even on freestanding compilers.
5476 # On the NeXT, cc -E runs the code through the compiler's parser,
5477 # not just through cpp. "Syntax error" is here to catch this case.
5478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5479 /* end confdefs.h. */
5480 #ifdef __STDC__
5481 # include <limits.h>
5482 #else
5483 # include <assert.h>
5484 #endif
5485 Syntax error
5486 _ACEOF
5487 if ac_fn_c_try_cpp "$LINENO"; then :
5489 else
5490 # Broken: fails on valid input.
5491 continue
5493 rm -f conftest.err conftest.i conftest.$ac_ext
5495 # OK, works on sane cases. Now check whether nonexistent headers
5496 # can be detected and how.
5497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5498 /* end confdefs.h. */
5499 #include <ac_nonexistent.h>
5500 _ACEOF
5501 if ac_fn_c_try_cpp "$LINENO"; then :
5502 # Broken: success on invalid input.
5503 continue
5504 else
5505 # Passes both tests.
5506 ac_preproc_ok=:
5507 break
5509 rm -f conftest.err conftest.i conftest.$ac_ext
5511 done
5512 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5513 rm -f conftest.i conftest.err conftest.$ac_ext
5514 if $ac_preproc_ok; then :
5515 break
5518 done
5519 ac_cv_build_prog_CPP=$CPP_FOR_BUILD
5522 CPP_FOR_BUILD=$ac_cv_build_prog_CPP
5523 else
5524 ac_cv_build_prog_CPP=$CPP_FOR_BUILD
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP_FOR_BUILD" >&5
5527 $as_echo "$CPP_FOR_BUILD" >&6; }
5528 ac_preproc_ok=false
5529 for ac_c_preproc_warn_flag in '' yes
5531 # Use a header file that comes with gcc, so configuring glibc
5532 # with a fresh cross-compiler works.
5533 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5534 # <limits.h> exists even on freestanding compilers.
5535 # On the NeXT, cc -E runs the code through the compiler's parser,
5536 # not just through cpp. "Syntax error" is here to catch this case.
5537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5538 /* end confdefs.h. */
5539 #ifdef __STDC__
5540 # include <limits.h>
5541 #else
5542 # include <assert.h>
5543 #endif
5544 Syntax error
5545 _ACEOF
5546 if ac_fn_c_try_cpp "$LINENO"; then :
5548 else
5549 # Broken: fails on valid input.
5550 continue
5552 rm -f conftest.err conftest.i conftest.$ac_ext
5554 # OK, works on sane cases. Now check whether nonexistent headers
5555 # can be detected and how.
5556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5557 /* end confdefs.h. */
5558 #include <ac_nonexistent.h>
5559 _ACEOF
5560 if ac_fn_c_try_cpp "$LINENO"; then :
5561 # Broken: success on invalid input.
5562 continue
5563 else
5564 # Passes both tests.
5565 ac_preproc_ok=:
5566 break
5568 rm -f conftest.err conftest.i conftest.$ac_ext
5570 done
5571 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5572 rm -f conftest.i conftest.err conftest.$ac_ext
5573 if $ac_preproc_ok; then :
5575 else
5576 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5577 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5578 as_fn_error $? "C preprocessor \"$CPP_FOR_BUILD\" fails sanity check
5579 See \`config.log' for more details" "$LINENO" 5; }
5582 ac_ext=c
5583 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
5584 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
5585 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
5586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5590 ac_tool_prefix=$save_ac_tool_prefix
5591 cross_compiling=$save_cross_compiling
5594 BUILD_EXEEXT=$ac_build_exeext
5595 BUILD_OBJEXT=$ac_build_objext
5597 case $ac_cv_prog_cc_stdc in #(
5598 no) :
5599 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
5600 *) :
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
5602 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
5603 if ${ac_cv_prog_cc_c99+:} false; then :
5604 $as_echo_n "(cached) " >&6
5605 else
5606 ac_cv_prog_cc_c99=no
5607 ac_save_CC=$CC
5608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5609 /* end confdefs.h. */
5610 #include <stdarg.h>
5611 #include <stdbool.h>
5612 #include <stdlib.h>
5613 #include <wchar.h>
5614 #include <stdio.h>
5616 // Check varargs macros. These examples are taken from C99 6.10.3.5.
5617 #define debug(...) fprintf (stderr, __VA_ARGS__)
5618 #define showlist(...) puts (#__VA_ARGS__)
5619 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5620 static void
5621 test_varargs_macros (void)
5623 int x = 1234;
5624 int y = 5678;
5625 debug ("Flag");
5626 debug ("X = %d\n", x);
5627 showlist (The first, second, and third items.);
5628 report (x>y, "x is %d but y is %d", x, y);
5631 // Check long long types.
5632 #define BIG64 18446744073709551615ull
5633 #define BIG32 4294967295ul
5634 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5635 #if !BIG_OK
5636 your preprocessor is broken;
5637 #endif
5638 #if BIG_OK
5639 #else
5640 your preprocessor is broken;
5641 #endif
5642 static long long int bignum = -9223372036854775807LL;
5643 static unsigned long long int ubignum = BIG64;
5645 struct incomplete_array
5647 int datasize;
5648 double data[];
5651 struct named_init {
5652 int number;
5653 const wchar_t *name;
5654 double average;
5657 typedef const char *ccp;
5659 static inline int
5660 test_restrict (ccp restrict text)
5662 // See if C++-style comments work.
5663 // Iterate through items via the restricted pointer.
5664 // Also check for declarations in for loops.
5665 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5666 continue;
5667 return 0;
5670 // Check varargs and va_copy.
5671 static void
5672 test_varargs (const char *format, ...)
5674 va_list args;
5675 va_start (args, format);
5676 va_list args_copy;
5677 va_copy (args_copy, args);
5679 const char *str;
5680 int number;
5681 float fnumber;
5683 while (*format)
5685 switch (*format++)
5687 case 's': // string
5688 str = va_arg (args_copy, const char *);
5689 break;
5690 case 'd': // int
5691 number = va_arg (args_copy, int);
5692 break;
5693 case 'f': // float
5694 fnumber = va_arg (args_copy, double);
5695 break;
5696 default:
5697 break;
5700 va_end (args_copy);
5701 va_end (args);
5705 main ()
5708 // Check bool.
5709 _Bool success = false;
5711 // Check restrict.
5712 if (test_restrict ("String literal") == 0)
5713 success = true;
5714 char *restrict newvar = "Another string";
5716 // Check varargs.
5717 test_varargs ("s, d' f .", "string", 65, 34.234);
5718 test_varargs_macros ();
5720 // Check flexible array members.
5721 struct incomplete_array *ia =
5722 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5723 ia->datasize = 10;
5724 for (int i = 0; i < ia->datasize; ++i)
5725 ia->data[i] = i * 1.234;
5727 // Check named initializers.
5728 struct named_init ni = {
5729 .number = 34,
5730 .name = L"Test wide string",
5731 .average = 543.34343,
5734 ni.number = 58;
5736 int dynamic_array[ni.number];
5737 dynamic_array[ni.number - 1] = 543;
5739 // work around unused variable warnings
5740 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5741 || dynamic_array[ni.number - 1] != 543);
5744 return 0;
5746 _ACEOF
5747 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5749 CC="$ac_save_CC $ac_arg"
5750 if ac_fn_c_try_compile "$LINENO"; then :
5751 ac_cv_prog_cc_c99=$ac_arg
5753 rm -f core conftest.err conftest.$ac_objext
5754 test "x$ac_cv_prog_cc_c99" != "xno" && break
5755 done
5756 rm -f conftest.$ac_ext
5757 CC=$ac_save_CC
5760 # AC_CACHE_VAL
5761 case "x$ac_cv_prog_cc_c99" in
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5764 $as_echo "none needed" >&6; } ;;
5765 xno)
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5767 $as_echo "unsupported" >&6; } ;;
5769 CC="$CC $ac_cv_prog_cc_c99"
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5771 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5772 esac
5773 if test "x$ac_cv_prog_cc_c99" != xno; then :
5774 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5775 else
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5777 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5778 if ${ac_cv_prog_cc_c89+:} false; then :
5779 $as_echo_n "(cached) " >&6
5780 else
5781 ac_cv_prog_cc_c89=no
5782 ac_save_CC=$CC
5783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5784 /* end confdefs.h. */
5785 #include <stdarg.h>
5786 #include <stdio.h>
5787 struct stat;
5788 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5789 struct buf { int x; };
5790 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5791 static char *e (p, i)
5792 char **p;
5793 int i;
5795 return p[i];
5797 static char *f (char * (*g) (char **, int), char **p, ...)
5799 char *s;
5800 va_list v;
5801 va_start (v,p);
5802 s = g (p, va_arg (v,int));
5803 va_end (v);
5804 return s;
5807 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5808 function prototypes and stuff, but not '\xHH' hex character constants.
5809 These don't provoke an error unfortunately, instead are silently treated
5810 as 'x'. The following induces an error, until -std is added to get
5811 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5812 array size at least. It's necessary to write '\x00'==0 to get something
5813 that's true only with -std. */
5814 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5816 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5817 inside strings and character constants. */
5818 #define FOO(x) 'x'
5819 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5821 int test (int i, double x);
5822 struct s1 {int (*f) (int a);};
5823 struct s2 {int (*f) (double a);};
5824 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5825 int argc;
5826 char **argv;
5828 main ()
5830 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5832 return 0;
5834 _ACEOF
5835 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5836 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5838 CC="$ac_save_CC $ac_arg"
5839 if ac_fn_c_try_compile "$LINENO"; then :
5840 ac_cv_prog_cc_c89=$ac_arg
5842 rm -f core conftest.err conftest.$ac_objext
5843 test "x$ac_cv_prog_cc_c89" != "xno" && break
5844 done
5845 rm -f conftest.$ac_ext
5846 CC=$ac_save_CC
5849 # AC_CACHE_VAL
5850 case "x$ac_cv_prog_cc_c89" in
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5853 $as_echo "none needed" >&6; } ;;
5854 xno)
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5856 $as_echo "unsupported" >&6; } ;;
5858 CC="$CC $ac_cv_prog_cc_c89"
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5860 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5861 esac
5862 if test "x$ac_cv_prog_cc_c89" != xno; then :
5863 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5864 else
5865 ac_cv_prog_cc_stdc=no
5870 esac
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
5872 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
5873 if ${ac_cv_prog_cc_stdc+:} false; then :
5874 $as_echo_n "(cached) " >&6
5877 case $ac_cv_prog_cc_stdc in #(
5878 no) :
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5880 $as_echo "unsupported" >&6; } ;; #(
5881 '') :
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5883 $as_echo "none needed" >&6; } ;; #(
5884 *) :
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
5886 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
5887 esac
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5891 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5892 set x ${MAKE-make}
5893 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5894 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5895 $as_echo_n "(cached) " >&6
5896 else
5897 cat >conftest.make <<\_ACEOF
5898 SHELL = /bin/sh
5899 all:
5900 @echo '@@@%%%=$(MAKE)=@@@%%%'
5901 _ACEOF
5902 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5903 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5904 *@@@%%%=?*=@@@%%%*)
5905 eval ac_cv_prog_make_${ac_make}_set=yes;;
5907 eval ac_cv_prog_make_${ac_make}_set=no;;
5908 esac
5909 rm -f conftest.make
5911 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5913 $as_echo "yes" >&6; }
5914 SET_MAKE=
5915 else
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5917 $as_echo "no" >&6; }
5918 SET_MAKE="MAKE=${MAKE-make}"
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5922 $as_echo_n "checking whether ln -s works... " >&6; }
5923 LN_S=$as_ln_s
5924 if test "$LN_S" = "ln -s"; then
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5926 $as_echo "yes" >&6; }
5927 else
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5929 $as_echo "no, using $LN_S" >&6; }
5932 for ac_prog in gawk mawk nawk awk
5934 # Extract the first word of "$ac_prog", so it can be a program name with args.
5935 set dummy $ac_prog; ac_word=$2
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5937 $as_echo_n "checking for $ac_word... " >&6; }
5938 if ${ac_cv_prog_AWK+:} false; then :
5939 $as_echo_n "(cached) " >&6
5940 else
5941 if test -n "$AWK"; then
5942 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5943 else
5944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5945 for as_dir in $PATH
5947 IFS=$as_save_IFS
5948 test -z "$as_dir" && as_dir=.
5949 for ac_exec_ext in '' $ac_executable_extensions; do
5950 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5951 ac_cv_prog_AWK="$ac_prog"
5952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5953 break 2
5955 done
5956 done
5957 IFS=$as_save_IFS
5961 AWK=$ac_cv_prog_AWK
5962 if test -n "$AWK"; then
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5964 $as_echo "$AWK" >&6; }
5965 else
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5967 $as_echo "no" >&6; }
5971 test -n "$AWK" && break
5972 done
5974 case `pwd` in
5975 *\ * | *\ *)
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5977 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5978 esac
5982 macro_version='2.4.6'
5983 macro_revision='2.4.6'
5997 ltmain=$ac_aux_dir/ltmain.sh
5999 # Backslashify metacharacters that are still active within
6000 # double-quoted strings.
6001 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6003 # Same as above, but do not quote variable references.
6004 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6006 # Sed substitution to delay expansion of an escaped shell variable in a
6007 # double_quote_subst'ed string.
6008 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6010 # Sed substitution to delay expansion of an escaped single quote.
6011 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6013 # Sed substitution to avoid accidental globbing in evaled expressions
6014 no_glob_subst='s/\*/\\\*/g'
6016 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6017 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6018 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6021 $as_echo_n "checking how to print strings... " >&6; }
6022 # Test print first, because it will be a builtin if present.
6023 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6024 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6025 ECHO='print -r --'
6026 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6027 ECHO='printf %s\n'
6028 else
6029 # Use this function as a fallback that always works.
6030 func_fallback_echo ()
6032 eval 'cat <<_LTECHO_EOF
6034 _LTECHO_EOF'
6036 ECHO='func_fallback_echo'
6039 # func_echo_all arg...
6040 # Invoke $ECHO with all args, space-separated.
6041 func_echo_all ()
6043 $ECHO ""
6046 case $ECHO in
6047 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6048 $as_echo "printf" >&6; } ;;
6049 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6050 $as_echo "print -r" >&6; } ;;
6051 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6052 $as_echo "cat" >&6; } ;;
6053 esac
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6069 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6070 if ${ac_cv_path_SED+:} false; then :
6071 $as_echo_n "(cached) " >&6
6072 else
6073 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6074 for ac_i in 1 2 3 4 5 6 7; do
6075 ac_script="$ac_script$as_nl$ac_script"
6076 done
6077 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6078 { ac_script=; unset ac_script;}
6079 if test -z "$SED"; then
6080 ac_path_SED_found=false
6081 # Loop through the user's path and test for each of PROGNAME-LIST
6082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6083 for as_dir in $PATH
6085 IFS=$as_save_IFS
6086 test -z "$as_dir" && as_dir=.
6087 for ac_prog in sed gsed; do
6088 for ac_exec_ext in '' $ac_executable_extensions; do
6089 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6090 as_fn_executable_p "$ac_path_SED" || continue
6091 # Check for GNU ac_path_SED and select it if it is found.
6092 # Check for GNU $ac_path_SED
6093 case `"$ac_path_SED" --version 2>&1` in
6094 *GNU*)
6095 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6097 ac_count=0
6098 $as_echo_n 0123456789 >"conftest.in"
6099 while :
6101 cat "conftest.in" "conftest.in" >"conftest.tmp"
6102 mv "conftest.tmp" "conftest.in"
6103 cp "conftest.in" "conftest.nl"
6104 $as_echo '' >> "conftest.nl"
6105 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6106 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6107 as_fn_arith $ac_count + 1 && ac_count=$as_val
6108 if test $ac_count -gt ${ac_path_SED_max-0}; then
6109 # Best one so far, save it but keep looking for a better one
6110 ac_cv_path_SED="$ac_path_SED"
6111 ac_path_SED_max=$ac_count
6113 # 10*(2^10) chars as input seems more than enough
6114 test $ac_count -gt 10 && break
6115 done
6116 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6117 esac
6119 $ac_path_SED_found && break 3
6120 done
6121 done
6122 done
6123 IFS=$as_save_IFS
6124 if test -z "$ac_cv_path_SED"; then
6125 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6127 else
6128 ac_cv_path_SED=$SED
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6133 $as_echo "$ac_cv_path_SED" >&6; }
6134 SED="$ac_cv_path_SED"
6135 rm -f conftest.sed
6137 test -z "$SED" && SED=sed
6138 Xsed="$SED -e 1s/^X//"
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6151 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6152 if ${ac_cv_path_GREP+:} false; then :
6153 $as_echo_n "(cached) " >&6
6154 else
6155 if test -z "$GREP"; then
6156 ac_path_GREP_found=false
6157 # Loop through the user's path and test for each of PROGNAME-LIST
6158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6159 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6161 IFS=$as_save_IFS
6162 test -z "$as_dir" && as_dir=.
6163 for ac_prog in grep ggrep; do
6164 for ac_exec_ext in '' $ac_executable_extensions; do
6165 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6166 as_fn_executable_p "$ac_path_GREP" || continue
6167 # Check for GNU ac_path_GREP and select it if it is found.
6168 # Check for GNU $ac_path_GREP
6169 case `"$ac_path_GREP" --version 2>&1` in
6170 *GNU*)
6171 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6173 ac_count=0
6174 $as_echo_n 0123456789 >"conftest.in"
6175 while :
6177 cat "conftest.in" "conftest.in" >"conftest.tmp"
6178 mv "conftest.tmp" "conftest.in"
6179 cp "conftest.in" "conftest.nl"
6180 $as_echo 'GREP' >> "conftest.nl"
6181 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6182 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6183 as_fn_arith $ac_count + 1 && ac_count=$as_val
6184 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6185 # Best one so far, save it but keep looking for a better one
6186 ac_cv_path_GREP="$ac_path_GREP"
6187 ac_path_GREP_max=$ac_count
6189 # 10*(2^10) chars as input seems more than enough
6190 test $ac_count -gt 10 && break
6191 done
6192 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6193 esac
6195 $ac_path_GREP_found && break 3
6196 done
6197 done
6198 done
6199 IFS=$as_save_IFS
6200 if test -z "$ac_cv_path_GREP"; then
6201 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6203 else
6204 ac_cv_path_GREP=$GREP
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6209 $as_echo "$ac_cv_path_GREP" >&6; }
6210 GREP="$ac_cv_path_GREP"
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6214 $as_echo_n "checking for egrep... " >&6; }
6215 if ${ac_cv_path_EGREP+:} false; then :
6216 $as_echo_n "(cached) " >&6
6217 else
6218 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6219 then ac_cv_path_EGREP="$GREP -E"
6220 else
6221 if test -z "$EGREP"; then
6222 ac_path_EGREP_found=false
6223 # Loop through the user's path and test for each of PROGNAME-LIST
6224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6225 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6227 IFS=$as_save_IFS
6228 test -z "$as_dir" && as_dir=.
6229 for ac_prog in egrep; do
6230 for ac_exec_ext in '' $ac_executable_extensions; do
6231 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6232 as_fn_executable_p "$ac_path_EGREP" || continue
6233 # Check for GNU ac_path_EGREP and select it if it is found.
6234 # Check for GNU $ac_path_EGREP
6235 case `"$ac_path_EGREP" --version 2>&1` in
6236 *GNU*)
6237 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6239 ac_count=0
6240 $as_echo_n 0123456789 >"conftest.in"
6241 while :
6243 cat "conftest.in" "conftest.in" >"conftest.tmp"
6244 mv "conftest.tmp" "conftest.in"
6245 cp "conftest.in" "conftest.nl"
6246 $as_echo 'EGREP' >> "conftest.nl"
6247 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6248 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6249 as_fn_arith $ac_count + 1 && ac_count=$as_val
6250 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6251 # Best one so far, save it but keep looking for a better one
6252 ac_cv_path_EGREP="$ac_path_EGREP"
6253 ac_path_EGREP_max=$ac_count
6255 # 10*(2^10) chars as input seems more than enough
6256 test $ac_count -gt 10 && break
6257 done
6258 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6259 esac
6261 $ac_path_EGREP_found && break 3
6262 done
6263 done
6264 done
6265 IFS=$as_save_IFS
6266 if test -z "$ac_cv_path_EGREP"; then
6267 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6269 else
6270 ac_cv_path_EGREP=$EGREP
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6276 $as_echo "$ac_cv_path_EGREP" >&6; }
6277 EGREP="$ac_cv_path_EGREP"
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6281 $as_echo_n "checking for fgrep... " >&6; }
6282 if ${ac_cv_path_FGREP+:} false; then :
6283 $as_echo_n "(cached) " >&6
6284 else
6285 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6286 then ac_cv_path_FGREP="$GREP -F"
6287 else
6288 if test -z "$FGREP"; then
6289 ac_path_FGREP_found=false
6290 # Loop through the user's path and test for each of PROGNAME-LIST
6291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6292 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6294 IFS=$as_save_IFS
6295 test -z "$as_dir" && as_dir=.
6296 for ac_prog in fgrep; do
6297 for ac_exec_ext in '' $ac_executable_extensions; do
6298 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6299 as_fn_executable_p "$ac_path_FGREP" || continue
6300 # Check for GNU ac_path_FGREP and select it if it is found.
6301 # Check for GNU $ac_path_FGREP
6302 case `"$ac_path_FGREP" --version 2>&1` in
6303 *GNU*)
6304 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6306 ac_count=0
6307 $as_echo_n 0123456789 >"conftest.in"
6308 while :
6310 cat "conftest.in" "conftest.in" >"conftest.tmp"
6311 mv "conftest.tmp" "conftest.in"
6312 cp "conftest.in" "conftest.nl"
6313 $as_echo 'FGREP' >> "conftest.nl"
6314 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6315 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6316 as_fn_arith $ac_count + 1 && ac_count=$as_val
6317 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6318 # Best one so far, save it but keep looking for a better one
6319 ac_cv_path_FGREP="$ac_path_FGREP"
6320 ac_path_FGREP_max=$ac_count
6322 # 10*(2^10) chars as input seems more than enough
6323 test $ac_count -gt 10 && break
6324 done
6325 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6326 esac
6328 $ac_path_FGREP_found && break 3
6329 done
6330 done
6331 done
6332 IFS=$as_save_IFS
6333 if test -z "$ac_cv_path_FGREP"; then
6334 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6336 else
6337 ac_cv_path_FGREP=$FGREP
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6343 $as_echo "$ac_cv_path_FGREP" >&6; }
6344 FGREP="$ac_cv_path_FGREP"
6347 test -z "$GREP" && GREP=grep
6367 # Check whether --with-gnu-ld was given.
6368 if test "${with_gnu_ld+set}" = set; then :
6369 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
6370 else
6371 with_gnu_ld=no
6374 ac_prog=ld
6375 if test yes = "$GCC"; then
6376 # Check if gcc -print-prog-name=ld gives a path.
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6378 $as_echo_n "checking for ld used by $CC... " >&6; }
6379 case $host in
6380 *-*-mingw*)
6381 # gcc leaves a trailing carriage return, which upsets mingw
6382 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6384 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6385 esac
6386 case $ac_prog in
6387 # Accept absolute paths.
6388 [\\/]* | ?:[\\/]*)
6389 re_direlt='/[^/][^/]*/\.\./'
6390 # Canonicalize the pathname of ld
6391 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6392 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6393 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6394 done
6395 test -z "$LD" && LD=$ac_prog
6398 # If it fails, then pretend we aren't using GCC.
6399 ac_prog=ld
6402 # If it is relative, then search for the first ld in PATH.
6403 with_gnu_ld=unknown
6405 esac
6406 elif test yes = "$with_gnu_ld"; then
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6408 $as_echo_n "checking for GNU ld... " >&6; }
6409 else
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6411 $as_echo_n "checking for non-GNU ld... " >&6; }
6413 if ${lt_cv_path_LD+:} false; then :
6414 $as_echo_n "(cached) " >&6
6415 else
6416 if test -z "$LD"; then
6417 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6418 for ac_dir in $PATH; do
6419 IFS=$lt_save_ifs
6420 test -z "$ac_dir" && ac_dir=.
6421 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6422 lt_cv_path_LD=$ac_dir/$ac_prog
6423 # Check to see if the program is GNU ld. I'd rather use --version,
6424 # but apparently some variants of GNU ld only accept -v.
6425 # Break only if it was the GNU/non-GNU ld that we prefer.
6426 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6427 *GNU* | *'with BFD'*)
6428 test no != "$with_gnu_ld" && break
6431 test yes != "$with_gnu_ld" && break
6433 esac
6435 done
6436 IFS=$lt_save_ifs
6437 else
6438 lt_cv_path_LD=$LD # Let the user override the test with a path.
6442 LD=$lt_cv_path_LD
6443 if test -n "$LD"; then
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6445 $as_echo "$LD" >&6; }
6446 else
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6448 $as_echo "no" >&6; }
6450 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6452 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6453 if ${lt_cv_prog_gnu_ld+:} false; then :
6454 $as_echo_n "(cached) " >&6
6455 else
6456 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6457 case `$LD -v 2>&1 </dev/null` in
6458 *GNU* | *'with BFD'*)
6459 lt_cv_prog_gnu_ld=yes
6462 lt_cv_prog_gnu_ld=no
6464 esac
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6467 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6468 with_gnu_ld=$lt_cv_prog_gnu_ld
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6479 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6480 if ${lt_cv_path_NM+:} false; then :
6481 $as_echo_n "(cached) " >&6
6482 else
6483 if test -n "$NM"; then
6484 # Let the user override the test.
6485 lt_cv_path_NM=$NM
6486 else
6487 lt_nm_to_check=${ac_tool_prefix}nm
6488 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6489 lt_nm_to_check="$lt_nm_to_check nm"
6491 for lt_tmp_nm in $lt_nm_to_check; do
6492 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6493 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6494 IFS=$lt_save_ifs
6495 test -z "$ac_dir" && ac_dir=.
6496 tmp_nm=$ac_dir/$lt_tmp_nm
6497 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6498 # Check to see if the nm accepts a BSD-compat flag.
6499 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6500 # nm: unknown option "B" ignored
6501 # Tru64's nm complains that /dev/null is an invalid object file
6502 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6503 case $build_os in
6504 mingw*) lt_bad_file=conftest.nm/nofile ;;
6505 *) lt_bad_file=/dev/null ;;
6506 esac
6507 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
6508 *$lt_bad_file* | *'Invalid file or object type'*)
6509 lt_cv_path_NM="$tmp_nm -B"
6510 break 2
6513 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6514 */dev/null*)
6515 lt_cv_path_NM="$tmp_nm -p"
6516 break 2
6519 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6520 continue # so that we can try to find one that supports BSD flags
6522 esac
6524 esac
6526 done
6527 IFS=$lt_save_ifs
6528 done
6529 : ${lt_cv_path_NM=no}
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6533 $as_echo "$lt_cv_path_NM" >&6; }
6534 if test no != "$lt_cv_path_NM"; then
6535 NM=$lt_cv_path_NM
6536 else
6537 # Didn't find any BSD compatible name lister, look for dumpbin.
6538 if test -n "$DUMPBIN"; then :
6539 # Let the user override the test.
6540 else
6541 if test -n "$ac_tool_prefix"; then
6542 for ac_prog in dumpbin "link -dump"
6544 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6545 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6547 $as_echo_n "checking for $ac_word... " >&6; }
6548 if ${ac_cv_prog_DUMPBIN+:} false; then :
6549 $as_echo_n "(cached) " >&6
6550 else
6551 if test -n "$DUMPBIN"; then
6552 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6553 else
6554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6555 for as_dir in $PATH
6557 IFS=$as_save_IFS
6558 test -z "$as_dir" && as_dir=.
6559 for ac_exec_ext in '' $ac_executable_extensions; do
6560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6561 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6563 break 2
6565 done
6566 done
6567 IFS=$as_save_IFS
6571 DUMPBIN=$ac_cv_prog_DUMPBIN
6572 if test -n "$DUMPBIN"; then
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6574 $as_echo "$DUMPBIN" >&6; }
6575 else
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6577 $as_echo "no" >&6; }
6581 test -n "$DUMPBIN" && break
6582 done
6584 if test -z "$DUMPBIN"; then
6585 ac_ct_DUMPBIN=$DUMPBIN
6586 for ac_prog in dumpbin "link -dump"
6588 # Extract the first word of "$ac_prog", so it can be a program name with args.
6589 set dummy $ac_prog; ac_word=$2
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6591 $as_echo_n "checking for $ac_word... " >&6; }
6592 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6593 $as_echo_n "(cached) " >&6
6594 else
6595 if test -n "$ac_ct_DUMPBIN"; then
6596 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6597 else
6598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6599 for as_dir in $PATH
6601 IFS=$as_save_IFS
6602 test -z "$as_dir" && as_dir=.
6603 for ac_exec_ext in '' $ac_executable_extensions; do
6604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6605 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6607 break 2
6609 done
6610 done
6611 IFS=$as_save_IFS
6615 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6616 if test -n "$ac_ct_DUMPBIN"; then
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6618 $as_echo "$ac_ct_DUMPBIN" >&6; }
6619 else
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6621 $as_echo "no" >&6; }
6625 test -n "$ac_ct_DUMPBIN" && break
6626 done
6628 if test "x$ac_ct_DUMPBIN" = x; then
6629 DUMPBIN=":"
6630 else
6631 case $cross_compiling:$ac_tool_warned in
6632 yes:)
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6634 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6635 ac_tool_warned=yes ;;
6636 esac
6637 DUMPBIN=$ac_ct_DUMPBIN
6641 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6642 *COFF*)
6643 DUMPBIN="$DUMPBIN -symbols -headers"
6646 DUMPBIN=:
6648 esac
6651 if test : != "$DUMPBIN"; then
6652 NM=$DUMPBIN
6655 test -z "$NM" && NM=nm
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6663 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6664 if ${lt_cv_nm_interface+:} false; then :
6665 $as_echo_n "(cached) " >&6
6666 else
6667 lt_cv_nm_interface="BSD nm"
6668 echo "int some_variable = 0;" > conftest.$ac_ext
6669 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6670 (eval "$ac_compile" 2>conftest.err)
6671 cat conftest.err >&5
6672 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6673 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6674 cat conftest.err >&5
6675 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6676 cat conftest.out >&5
6677 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6678 lt_cv_nm_interface="MS dumpbin"
6680 rm -f conftest*
6682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6683 $as_echo "$lt_cv_nm_interface" >&6; }
6685 # find the maximum length of command line arguments
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6687 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6688 if ${lt_cv_sys_max_cmd_len+:} false; then :
6689 $as_echo_n "(cached) " >&6
6690 else
6692 teststring=ABCD
6694 case $build_os in
6695 msdosdjgpp*)
6696 # On DJGPP, this test can blow up pretty badly due to problems in libc
6697 # (any single argument exceeding 2000 bytes causes a buffer overrun
6698 # during glob expansion). Even if it were fixed, the result of this
6699 # check would be larger than it should be.
6700 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6703 gnu*)
6704 # Under GNU Hurd, this test is not required because there is
6705 # no limit to the length of command line arguments.
6706 # Libtool will interpret -1 as no limit whatsoever
6707 lt_cv_sys_max_cmd_len=-1;
6710 cygwin* | mingw* | cegcc*)
6711 # On Win9x/ME, this test blows up -- it succeeds, but takes
6712 # about 5 minutes as the teststring grows exponentially.
6713 # Worse, since 9x/ME are not pre-emptively multitasking,
6714 # you end up with a "frozen" computer, even though with patience
6715 # the test eventually succeeds (with a max line length of 256k).
6716 # Instead, let's just punt: use the minimum linelength reported by
6717 # all of the supported platforms: 8192 (on NT/2K/XP).
6718 lt_cv_sys_max_cmd_len=8192;
6721 mint*)
6722 # On MiNT this can take a long time and run out of memory.
6723 lt_cv_sys_max_cmd_len=8192;
6726 amigaos*)
6727 # On AmigaOS with pdksh, this test takes hours, literally.
6728 # So we just punt and use a minimum line length of 8192.
6729 lt_cv_sys_max_cmd_len=8192;
6732 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6733 # This has been around since 386BSD, at least. Likely further.
6734 if test -x /sbin/sysctl; then
6735 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6736 elif test -x /usr/sbin/sysctl; then
6737 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6738 else
6739 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6741 # And add a safety zone
6742 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6743 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6746 interix*)
6747 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6748 lt_cv_sys_max_cmd_len=196608
6751 os2*)
6752 # The test takes a long time on OS/2.
6753 lt_cv_sys_max_cmd_len=8192
6756 osf*)
6757 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6758 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6759 # nice to cause kernel panics so lets avoid the loop below.
6760 # First set a reasonable default.
6761 lt_cv_sys_max_cmd_len=16384
6763 if test -x /sbin/sysconfig; then
6764 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6765 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6766 esac
6769 sco3.2v5*)
6770 lt_cv_sys_max_cmd_len=102400
6772 sysv5* | sco5v6* | sysv4.2uw2*)
6773 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6774 if test -n "$kargmax"; then
6775 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6776 else
6777 lt_cv_sys_max_cmd_len=32768
6781 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6782 if test -n "$lt_cv_sys_max_cmd_len" && \
6783 test undefined != "$lt_cv_sys_max_cmd_len"; then
6784 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6785 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6786 else
6787 # Make teststring a little bigger before we do anything with it.
6788 # a 1K string should be a reasonable start.
6789 for i in 1 2 3 4 5 6 7 8; do
6790 teststring=$teststring$teststring
6791 done
6792 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6793 # If test is not a shell built-in, we'll probably end up computing a
6794 # maximum length that is only half of the actual maximum length, but
6795 # we can't tell.
6796 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6797 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6798 test 17 != "$i" # 1/2 MB should be enough
6800 i=`expr $i + 1`
6801 teststring=$teststring$teststring
6802 done
6803 # Only check the string length outside the loop.
6804 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6805 teststring=
6806 # Add a significant safety factor because C++ compilers can tack on
6807 # massive amounts of additional arguments before passing them to the
6808 # linker. It appears as though 1/2 is a usable value.
6809 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6812 esac
6816 if test -n "$lt_cv_sys_max_cmd_len"; then
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6818 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6819 else
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6821 $as_echo "none" >&6; }
6823 max_cmd_len=$lt_cv_sys_max_cmd_len
6830 : ${CP="cp -f"}
6831 : ${MV="mv -f"}
6832 : ${RM="rm -f"}
6834 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6835 lt_unset=unset
6836 else
6837 lt_unset=false
6844 # test EBCDIC or ASCII
6845 case `echo X|tr X '\101'` in
6846 A) # ASCII based system
6847 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6848 lt_SP2NL='tr \040 \012'
6849 lt_NL2SP='tr \015\012 \040\040'
6851 *) # EBCDIC based system
6852 lt_SP2NL='tr \100 \n'
6853 lt_NL2SP='tr \r\n \100\100'
6855 esac
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6866 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6867 if ${lt_cv_to_host_file_cmd+:} false; then :
6868 $as_echo_n "(cached) " >&6
6869 else
6870 case $host in
6871 *-*-mingw* )
6872 case $build in
6873 *-*-mingw* ) # actually msys
6874 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6876 *-*-cygwin* )
6877 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6879 * ) # otherwise, assume *nix
6880 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6882 esac
6884 *-*-cygwin* )
6885 case $build in
6886 *-*-mingw* ) # actually msys
6887 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6889 *-*-cygwin* )
6890 lt_cv_to_host_file_cmd=func_convert_file_noop
6892 * ) # otherwise, assume *nix
6893 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6895 esac
6897 * ) # unhandled hosts (and "normal" native builds)
6898 lt_cv_to_host_file_cmd=func_convert_file_noop
6900 esac
6904 to_host_file_cmd=$lt_cv_to_host_file_cmd
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6906 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6913 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6914 if ${lt_cv_to_tool_file_cmd+:} false; then :
6915 $as_echo_n "(cached) " >&6
6916 else
6917 #assume ordinary cross tools, or native build.
6918 lt_cv_to_tool_file_cmd=func_convert_file_noop
6919 case $host in
6920 *-*-mingw* )
6921 case $build in
6922 *-*-mingw* ) # actually msys
6923 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6925 esac
6927 esac
6931 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6933 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6940 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6941 if ${lt_cv_ld_reload_flag+:} false; then :
6942 $as_echo_n "(cached) " >&6
6943 else
6944 lt_cv_ld_reload_flag='-r'
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6947 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6948 reload_flag=$lt_cv_ld_reload_flag
6949 case $reload_flag in
6950 "" | " "*) ;;
6951 *) reload_flag=" $reload_flag" ;;
6952 esac
6953 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6954 case $host_os in
6955 cygwin* | mingw* | pw32* | cegcc*)
6956 if test yes != "$GCC"; then
6957 reload_cmds=false
6960 darwin*)
6961 if test yes = "$GCC"; then
6962 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6963 else
6964 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6967 esac
6977 if test -n "$ac_tool_prefix"; then
6978 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6979 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6981 $as_echo_n "checking for $ac_word... " >&6; }
6982 if ${ac_cv_prog_OBJDUMP+:} false; then :
6983 $as_echo_n "(cached) " >&6
6984 else
6985 if test -n "$OBJDUMP"; then
6986 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6987 else
6988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6989 for as_dir in $PATH
6991 IFS=$as_save_IFS
6992 test -z "$as_dir" && as_dir=.
6993 for ac_exec_ext in '' $ac_executable_extensions; do
6994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6995 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6997 break 2
6999 done
7000 done
7001 IFS=$as_save_IFS
7005 OBJDUMP=$ac_cv_prog_OBJDUMP
7006 if test -n "$OBJDUMP"; then
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7008 $as_echo "$OBJDUMP" >&6; }
7009 else
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7011 $as_echo "no" >&6; }
7016 if test -z "$ac_cv_prog_OBJDUMP"; then
7017 ac_ct_OBJDUMP=$OBJDUMP
7018 # Extract the first word of "objdump", so it can be a program name with args.
7019 set dummy objdump; ac_word=$2
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7021 $as_echo_n "checking for $ac_word... " >&6; }
7022 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7023 $as_echo_n "(cached) " >&6
7024 else
7025 if test -n "$ac_ct_OBJDUMP"; then
7026 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7027 else
7028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7029 for as_dir in $PATH
7031 IFS=$as_save_IFS
7032 test -z "$as_dir" && as_dir=.
7033 for ac_exec_ext in '' $ac_executable_extensions; do
7034 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7035 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7037 break 2
7039 done
7040 done
7041 IFS=$as_save_IFS
7045 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7046 if test -n "$ac_ct_OBJDUMP"; then
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7048 $as_echo "$ac_ct_OBJDUMP" >&6; }
7049 else
7050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7051 $as_echo "no" >&6; }
7054 if test "x$ac_ct_OBJDUMP" = x; then
7055 OBJDUMP="false"
7056 else
7057 case $cross_compiling:$ac_tool_warned in
7058 yes:)
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7060 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7061 ac_tool_warned=yes ;;
7062 esac
7063 OBJDUMP=$ac_ct_OBJDUMP
7065 else
7066 OBJDUMP="$ac_cv_prog_OBJDUMP"
7069 test -z "$OBJDUMP" && OBJDUMP=objdump
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7080 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7081 if ${lt_cv_deplibs_check_method+:} false; then :
7082 $as_echo_n "(cached) " >&6
7083 else
7084 lt_cv_file_magic_cmd='$MAGIC_CMD'
7085 lt_cv_file_magic_test_file=
7086 lt_cv_deplibs_check_method='unknown'
7087 # Need to set the preceding variable on all platforms that support
7088 # interlibrary dependencies.
7089 # 'none' -- dependencies not supported.
7090 # 'unknown' -- same as none, but documents that we really don't know.
7091 # 'pass_all' -- all dependencies passed with no checks.
7092 # 'test_compile' -- check by making test program.
7093 # 'file_magic [[regex]]' -- check by looking for files in library path
7094 # that responds to the $file_magic_cmd with a given extended regex.
7095 # If you have 'file' or equivalent on your system and you're not sure
7096 # whether 'pass_all' will *always* work, you probably want this one.
7098 case $host_os in
7099 aix[4-9]*)
7100 lt_cv_deplibs_check_method=pass_all
7103 beos*)
7104 lt_cv_deplibs_check_method=pass_all
7107 bsdi[45]*)
7108 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7109 lt_cv_file_magic_cmd='/usr/bin/file -L'
7110 lt_cv_file_magic_test_file=/shlib/libc.so
7113 cygwin*)
7114 # func_win32_libid is a shell function defined in ltmain.sh
7115 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7116 lt_cv_file_magic_cmd='func_win32_libid'
7119 mingw* | pw32*)
7120 # Base MSYS/MinGW do not provide the 'file' command needed by
7121 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7122 # unless we find 'file', for example because we are cross-compiling.
7123 if ( file / ) >/dev/null 2>&1; then
7124 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7125 lt_cv_file_magic_cmd='func_win32_libid'
7126 else
7127 # Keep this pattern in sync with the one in func_win32_libid.
7128 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7129 lt_cv_file_magic_cmd='$OBJDUMP -f'
7133 cegcc*)
7134 # use the weaker test based on 'objdump'. See mingw*.
7135 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7136 lt_cv_file_magic_cmd='$OBJDUMP -f'
7139 darwin* | rhapsody*)
7140 lt_cv_deplibs_check_method=pass_all
7143 freebsd* | dragonfly*)
7144 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7145 case $host_cpu in
7146 i*86 )
7147 # Not sure whether the presence of OpenBSD here was a mistake.
7148 # Let's accept both of them until this is cleared up.
7149 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7150 lt_cv_file_magic_cmd=/usr/bin/file
7151 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7153 esac
7154 else
7155 lt_cv_deplibs_check_method=pass_all
7159 haiku*)
7160 lt_cv_deplibs_check_method=pass_all
7163 hpux10.20* | hpux11*)
7164 lt_cv_file_magic_cmd=/usr/bin/file
7165 case $host_cpu in
7166 ia64*)
7167 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7168 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7170 hppa*64*)
7171 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]'
7172 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7175 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7176 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7178 esac
7181 interix[3-9]*)
7182 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7183 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7186 irix5* | irix6* | nonstopux*)
7187 case $LD in
7188 *-32|*"-32 ") libmagic=32-bit;;
7189 *-n32|*"-n32 ") libmagic=N32;;
7190 *-64|*"-64 ") libmagic=64-bit;;
7191 *) libmagic=never-match;;
7192 esac
7193 lt_cv_deplibs_check_method=pass_all
7196 # This must be glibc/ELF.
7197 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7198 lt_cv_deplibs_check_method=pass_all
7201 netbsd*)
7202 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7203 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7204 else
7205 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7209 newos6*)
7210 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7211 lt_cv_file_magic_cmd=/usr/bin/file
7212 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7215 *nto* | *qnx*)
7216 lt_cv_deplibs_check_method=pass_all
7219 openbsd* | bitrig*)
7220 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
7221 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7222 else
7223 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7227 osf3* | osf4* | osf5*)
7228 lt_cv_deplibs_check_method=pass_all
7231 rdos*)
7232 lt_cv_deplibs_check_method=pass_all
7235 solaris*)
7236 lt_cv_deplibs_check_method=pass_all
7239 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7240 lt_cv_deplibs_check_method=pass_all
7243 sysv4 | sysv4.3*)
7244 case $host_vendor in
7245 motorola)
7246 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]'
7247 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7249 ncr)
7250 lt_cv_deplibs_check_method=pass_all
7252 sequent)
7253 lt_cv_file_magic_cmd='/bin/file'
7254 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7256 sni)
7257 lt_cv_file_magic_cmd='/bin/file'
7258 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7259 lt_cv_file_magic_test_file=/lib/libc.so
7261 siemens)
7262 lt_cv_deplibs_check_method=pass_all
7265 lt_cv_deplibs_check_method=pass_all
7267 esac
7270 tpf*)
7271 lt_cv_deplibs_check_method=pass_all
7273 os2*)
7274 lt_cv_deplibs_check_method=pass_all
7276 esac
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7280 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7282 file_magic_glob=
7283 want_nocaseglob=no
7284 if test "$build" = "$host"; then
7285 case $host_os in
7286 mingw* | pw32*)
7287 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7288 want_nocaseglob=yes
7289 else
7290 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7293 esac
7296 file_magic_cmd=$lt_cv_file_magic_cmd
7297 deplibs_check_method=$lt_cv_deplibs_check_method
7298 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7321 if test -n "$ac_tool_prefix"; then
7322 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7323 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7325 $as_echo_n "checking for $ac_word... " >&6; }
7326 if ${ac_cv_prog_DLLTOOL+:} false; then :
7327 $as_echo_n "(cached) " >&6
7328 else
7329 if test -n "$DLLTOOL"; then
7330 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7331 else
7332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7333 for as_dir in $PATH
7335 IFS=$as_save_IFS
7336 test -z "$as_dir" && as_dir=.
7337 for ac_exec_ext in '' $ac_executable_extensions; do
7338 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7339 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7341 break 2
7343 done
7344 done
7345 IFS=$as_save_IFS
7349 DLLTOOL=$ac_cv_prog_DLLTOOL
7350 if test -n "$DLLTOOL"; then
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7352 $as_echo "$DLLTOOL" >&6; }
7353 else
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7355 $as_echo "no" >&6; }
7360 if test -z "$ac_cv_prog_DLLTOOL"; then
7361 ac_ct_DLLTOOL=$DLLTOOL
7362 # Extract the first word of "dlltool", so it can be a program name with args.
7363 set dummy dlltool; ac_word=$2
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7365 $as_echo_n "checking for $ac_word... " >&6; }
7366 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7367 $as_echo_n "(cached) " >&6
7368 else
7369 if test -n "$ac_ct_DLLTOOL"; then
7370 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7371 else
7372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7373 for as_dir in $PATH
7375 IFS=$as_save_IFS
7376 test -z "$as_dir" && as_dir=.
7377 for ac_exec_ext in '' $ac_executable_extensions; do
7378 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7379 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7381 break 2
7383 done
7384 done
7385 IFS=$as_save_IFS
7389 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7390 if test -n "$ac_ct_DLLTOOL"; then
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7392 $as_echo "$ac_ct_DLLTOOL" >&6; }
7393 else
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7395 $as_echo "no" >&6; }
7398 if test "x$ac_ct_DLLTOOL" = x; then
7399 DLLTOOL="false"
7400 else
7401 case $cross_compiling:$ac_tool_warned in
7402 yes:)
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7404 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7405 ac_tool_warned=yes ;;
7406 esac
7407 DLLTOOL=$ac_ct_DLLTOOL
7409 else
7410 DLLTOOL="$ac_cv_prog_DLLTOOL"
7413 test -z "$DLLTOOL" && DLLTOOL=dlltool
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7425 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7426 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7427 $as_echo_n "(cached) " >&6
7428 else
7429 lt_cv_sharedlib_from_linklib_cmd='unknown'
7431 case $host_os in
7432 cygwin* | mingw* | pw32* | cegcc*)
7433 # two different shell functions defined in ltmain.sh;
7434 # decide which one to use based on capabilities of $DLLTOOL
7435 case `$DLLTOOL --help 2>&1` in
7436 *--identify-strict*)
7437 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7440 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7442 esac
7445 # fallback: assume linklib IS sharedlib
7446 lt_cv_sharedlib_from_linklib_cmd=$ECHO
7448 esac
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7452 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7453 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7454 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7463 if test -n "$ac_tool_prefix"; then
7464 for ac_prog in ar
7466 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7467 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7469 $as_echo_n "checking for $ac_word... " >&6; }
7470 if ${ac_cv_prog_AR+:} false; then :
7471 $as_echo_n "(cached) " >&6
7472 else
7473 if test -n "$AR"; then
7474 ac_cv_prog_AR="$AR" # Let the user override the test.
7475 else
7476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7477 for as_dir in $PATH
7479 IFS=$as_save_IFS
7480 test -z "$as_dir" && as_dir=.
7481 for ac_exec_ext in '' $ac_executable_extensions; do
7482 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7483 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7485 break 2
7487 done
7488 done
7489 IFS=$as_save_IFS
7493 AR=$ac_cv_prog_AR
7494 if test -n "$AR"; then
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7496 $as_echo "$AR" >&6; }
7497 else
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7499 $as_echo "no" >&6; }
7503 test -n "$AR" && break
7504 done
7506 if test -z "$AR"; then
7507 ac_ct_AR=$AR
7508 for ac_prog in ar
7510 # Extract the first word of "$ac_prog", so it can be a program name with args.
7511 set dummy $ac_prog; ac_word=$2
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7513 $as_echo_n "checking for $ac_word... " >&6; }
7514 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7515 $as_echo_n "(cached) " >&6
7516 else
7517 if test -n "$ac_ct_AR"; then
7518 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7519 else
7520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7521 for as_dir in $PATH
7523 IFS=$as_save_IFS
7524 test -z "$as_dir" && as_dir=.
7525 for ac_exec_ext in '' $ac_executable_extensions; do
7526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7527 ac_cv_prog_ac_ct_AR="$ac_prog"
7528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7529 break 2
7531 done
7532 done
7533 IFS=$as_save_IFS
7537 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7538 if test -n "$ac_ct_AR"; then
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7540 $as_echo "$ac_ct_AR" >&6; }
7541 else
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7543 $as_echo "no" >&6; }
7547 test -n "$ac_ct_AR" && break
7548 done
7550 if test "x$ac_ct_AR" = x; then
7551 AR="false"
7552 else
7553 case $cross_compiling:$ac_tool_warned in
7554 yes:)
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7556 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7557 ac_tool_warned=yes ;;
7558 esac
7559 AR=$ac_ct_AR
7563 : ${AR=ar}
7564 : ${AR_FLAGS=cru}
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7577 $as_echo_n "checking for archiver @FILE support... " >&6; }
7578 if ${lt_cv_ar_at_file+:} false; then :
7579 $as_echo_n "(cached) " >&6
7580 else
7581 lt_cv_ar_at_file=no
7582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7583 /* end confdefs.h. */
7586 main ()
7590 return 0;
7592 _ACEOF
7593 if ac_fn_c_try_compile "$LINENO"; then :
7594 echo conftest.$ac_objext > conftest.lst
7595 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7596 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7597 (eval $lt_ar_try) 2>&5
7598 ac_status=$?
7599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7600 test $ac_status = 0; }
7601 if test 0 -eq "$ac_status"; then
7602 # Ensure the archiver fails upon bogus file names.
7603 rm -f conftest.$ac_objext libconftest.a
7604 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7605 (eval $lt_ar_try) 2>&5
7606 ac_status=$?
7607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7608 test $ac_status = 0; }
7609 if test 0 -ne "$ac_status"; then
7610 lt_cv_ar_at_file=@
7613 rm -f conftest.* libconftest.a
7616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7620 $as_echo "$lt_cv_ar_at_file" >&6; }
7622 if test no = "$lt_cv_ar_at_file"; then
7623 archiver_list_spec=
7624 else
7625 archiver_list_spec=$lt_cv_ar_at_file
7634 if test -n "$ac_tool_prefix"; then
7635 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7636 set dummy ${ac_tool_prefix}strip; ac_word=$2
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7638 $as_echo_n "checking for $ac_word... " >&6; }
7639 if ${ac_cv_prog_STRIP+:} false; then :
7640 $as_echo_n "(cached) " >&6
7641 else
7642 if test -n "$STRIP"; then
7643 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7644 else
7645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7646 for as_dir in $PATH
7648 IFS=$as_save_IFS
7649 test -z "$as_dir" && as_dir=.
7650 for ac_exec_ext in '' $ac_executable_extensions; do
7651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7652 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7654 break 2
7656 done
7657 done
7658 IFS=$as_save_IFS
7662 STRIP=$ac_cv_prog_STRIP
7663 if test -n "$STRIP"; then
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7665 $as_echo "$STRIP" >&6; }
7666 else
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7668 $as_echo "no" >&6; }
7673 if test -z "$ac_cv_prog_STRIP"; then
7674 ac_ct_STRIP=$STRIP
7675 # Extract the first word of "strip", so it can be a program name with args.
7676 set dummy strip; ac_word=$2
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7678 $as_echo_n "checking for $ac_word... " >&6; }
7679 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7680 $as_echo_n "(cached) " >&6
7681 else
7682 if test -n "$ac_ct_STRIP"; then
7683 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7684 else
7685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7686 for as_dir in $PATH
7688 IFS=$as_save_IFS
7689 test -z "$as_dir" && as_dir=.
7690 for ac_exec_ext in '' $ac_executable_extensions; do
7691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7692 ac_cv_prog_ac_ct_STRIP="strip"
7693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7694 break 2
7696 done
7697 done
7698 IFS=$as_save_IFS
7702 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7703 if test -n "$ac_ct_STRIP"; then
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7705 $as_echo "$ac_ct_STRIP" >&6; }
7706 else
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7708 $as_echo "no" >&6; }
7711 if test "x$ac_ct_STRIP" = x; then
7712 STRIP=":"
7713 else
7714 case $cross_compiling:$ac_tool_warned in
7715 yes:)
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7717 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7718 ac_tool_warned=yes ;;
7719 esac
7720 STRIP=$ac_ct_STRIP
7722 else
7723 STRIP="$ac_cv_prog_STRIP"
7726 test -z "$STRIP" && STRIP=:
7733 if test -n "$ac_tool_prefix"; then
7734 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7735 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7737 $as_echo_n "checking for $ac_word... " >&6; }
7738 if ${ac_cv_prog_RANLIB+:} false; then :
7739 $as_echo_n "(cached) " >&6
7740 else
7741 if test -n "$RANLIB"; then
7742 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7743 else
7744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7745 for as_dir in $PATH
7747 IFS=$as_save_IFS
7748 test -z "$as_dir" && as_dir=.
7749 for ac_exec_ext in '' $ac_executable_extensions; do
7750 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7751 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7753 break 2
7755 done
7756 done
7757 IFS=$as_save_IFS
7761 RANLIB=$ac_cv_prog_RANLIB
7762 if test -n "$RANLIB"; then
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7764 $as_echo "$RANLIB" >&6; }
7765 else
7766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7767 $as_echo "no" >&6; }
7772 if test -z "$ac_cv_prog_RANLIB"; then
7773 ac_ct_RANLIB=$RANLIB
7774 # Extract the first word of "ranlib", so it can be a program name with args.
7775 set dummy ranlib; ac_word=$2
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7777 $as_echo_n "checking for $ac_word... " >&6; }
7778 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7779 $as_echo_n "(cached) " >&6
7780 else
7781 if test -n "$ac_ct_RANLIB"; then
7782 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7783 else
7784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7785 for as_dir in $PATH
7787 IFS=$as_save_IFS
7788 test -z "$as_dir" && as_dir=.
7789 for ac_exec_ext in '' $ac_executable_extensions; do
7790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7791 ac_cv_prog_ac_ct_RANLIB="ranlib"
7792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7793 break 2
7795 done
7796 done
7797 IFS=$as_save_IFS
7801 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7802 if test -n "$ac_ct_RANLIB"; then
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7804 $as_echo "$ac_ct_RANLIB" >&6; }
7805 else
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7807 $as_echo "no" >&6; }
7810 if test "x$ac_ct_RANLIB" = x; then
7811 RANLIB=":"
7812 else
7813 case $cross_compiling:$ac_tool_warned in
7814 yes:)
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7816 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7817 ac_tool_warned=yes ;;
7818 esac
7819 RANLIB=$ac_ct_RANLIB
7821 else
7822 RANLIB="$ac_cv_prog_RANLIB"
7825 test -z "$RANLIB" && RANLIB=:
7832 # Determine commands to create old-style static archives.
7833 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7834 old_postinstall_cmds='chmod 644 $oldlib'
7835 old_postuninstall_cmds=
7837 if test -n "$RANLIB"; then
7838 case $host_os in
7839 bitrig* | openbsd*)
7840 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7843 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7845 esac
7846 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7849 case $host_os in
7850 darwin*)
7851 lock_old_archive_extraction=yes ;;
7853 lock_old_archive_extraction=no ;;
7854 esac
7894 # If no C compiler was specified, use CC.
7895 LTCC=${LTCC-"$CC"}
7897 # If no C compiler flags were specified, use CFLAGS.
7898 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7900 # Allow CC to be a program name with arguments.
7901 compiler=$CC
7904 # Check for command to grab the raw symbol name followed by C symbol from nm.
7905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7906 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7907 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7908 $as_echo_n "(cached) " >&6
7909 else
7911 # These are sane defaults that work on at least a few old systems.
7912 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7914 # Character class describing NM global symbol codes.
7915 symcode='[BCDEGRST]'
7917 # Regexp to match symbols that can be accessed directly from C.
7918 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7920 # Define system-specific variables.
7921 case $host_os in
7922 aix*)
7923 symcode='[BCDT]'
7925 cygwin* | mingw* | pw32* | cegcc*)
7926 symcode='[ABCDGISTW]'
7928 hpux*)
7929 if test ia64 = "$host_cpu"; then
7930 symcode='[ABCDEGRST]'
7933 irix* | nonstopux*)
7934 symcode='[BCDEGRST]'
7936 osf*)
7937 symcode='[BCDEGQRST]'
7939 solaris*)
7940 symcode='[BDRT]'
7942 sco3.2v5*)
7943 symcode='[DT]'
7945 sysv4.2uw2*)
7946 symcode='[DT]'
7948 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7949 symcode='[ABDT]'
7951 sysv4)
7952 symcode='[DFNSTU]'
7954 esac
7956 # If we're using GNU nm, then use its standard symbol codes.
7957 case `$NM -V 2>&1` in
7958 *GNU* | *'with BFD'*)
7959 symcode='[ABCDGIRSTW]' ;;
7960 esac
7962 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7963 # Gets list of data symbols to import.
7964 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7965 # Adjust the below global symbol transforms to fixup imported variables.
7966 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7967 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7968 lt_c_name_lib_hook="\
7969 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7970 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7971 else
7972 # Disable hooks by default.
7973 lt_cv_sys_global_symbol_to_import=
7974 lt_cdecl_hook=
7975 lt_c_name_hook=
7976 lt_c_name_lib_hook=
7979 # Transform an extracted symbol line into a proper C declaration.
7980 # Some systems (esp. on ia64) link data and code symbols differently,
7981 # so use this general approach.
7982 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7983 $lt_cdecl_hook\
7984 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7985 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7987 # Transform an extracted symbol line into symbol name and symbol address
7988 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7989 $lt_c_name_hook\
7990 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7991 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7993 # Transform an extracted symbol line into symbol name with lib prefix and
7994 # symbol address.
7995 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7996 $lt_c_name_lib_hook\
7997 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7998 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7999 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
8001 # Handle CRLF in mingw tool chain
8002 opt_cr=
8003 case $build_os in
8004 mingw*)
8005 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8007 esac
8009 # Try without a prefix underscore, then with it.
8010 for ac_symprfx in "" "_"; do
8012 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8013 symxfrm="\\1 $ac_symprfx\\2 \\2"
8015 # Write the raw and C identifiers.
8016 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8017 # Fake it for dumpbin and say T for any non-static function,
8018 # D for any global variable and I for any imported variable.
8019 # Also find C++ and __fastcall symbols from MSVC++,
8020 # which start with @ or ?.
8021 lt_cv_sys_global_symbol_pipe="$AWK '"\
8022 " {last_section=section; section=\$ 3};"\
8023 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8024 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8025 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
8026 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
8027 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
8028 " \$ 0!~/External *\|/{next};"\
8029 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8030 " {if(hide[section]) next};"\
8031 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
8032 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
8033 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
8034 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
8035 " ' prfx=^$ac_symprfx"
8036 else
8037 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8039 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8041 # Check to see that the pipe works correctly.
8042 pipe_works=no
8044 rm -f conftest*
8045 cat > conftest.$ac_ext <<_LT_EOF
8046 #ifdef __cplusplus
8047 extern "C" {
8048 #endif
8049 char nm_test_var;
8050 void nm_test_func(void);
8051 void nm_test_func(void){}
8052 #ifdef __cplusplus
8054 #endif
8055 int main(){nm_test_var='a';nm_test_func();return(0);}
8056 _LT_EOF
8058 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8059 (eval $ac_compile) 2>&5
8060 ac_status=$?
8061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8062 test $ac_status = 0; }; then
8063 # Now try to grab the symbols.
8064 nlist=conftest.nm
8065 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8066 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8067 ac_status=$?
8068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8069 test $ac_status = 0; } && test -s "$nlist"; then
8070 # Try sorting and uniquifying the output.
8071 if sort "$nlist" | uniq > "$nlist"T; then
8072 mv -f "$nlist"T "$nlist"
8073 else
8074 rm -f "$nlist"T
8077 # Make sure that we snagged all the symbols we need.
8078 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8079 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8080 cat <<_LT_EOF > conftest.$ac_ext
8081 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
8082 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
8083 /* DATA imports from DLLs on WIN32 can't be const, because runtime
8084 relocations are performed -- see ld's documentation on pseudo-relocs. */
8085 # define LT_DLSYM_CONST
8086 #elif defined __osf__
8087 /* This system does not cope well with relocations in const data. */
8088 # define LT_DLSYM_CONST
8089 #else
8090 # define LT_DLSYM_CONST const
8091 #endif
8093 #ifdef __cplusplus
8094 extern "C" {
8095 #endif
8097 _LT_EOF
8098 # Now generate the symbol file.
8099 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8101 cat <<_LT_EOF >> conftest.$ac_ext
8103 /* The mapping between symbol names and symbols. */
8104 LT_DLSYM_CONST struct {
8105 const char *name;
8106 void *address;
8108 lt__PROGRAM__LTX_preloaded_symbols[] =
8110 { "@PROGRAM@", (void *) 0 },
8111 _LT_EOF
8112 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8113 cat <<\_LT_EOF >> conftest.$ac_ext
8114 {0, (void *) 0}
8117 /* This works around a problem in FreeBSD linker */
8118 #ifdef FREEBSD_WORKAROUND
8119 static const void *lt_preloaded_setup() {
8120 return lt__PROGRAM__LTX_preloaded_symbols;
8122 #endif
8124 #ifdef __cplusplus
8126 #endif
8127 _LT_EOF
8128 # Now try linking the two files.
8129 mv conftest.$ac_objext conftstm.$ac_objext
8130 lt_globsym_save_LIBS=$LIBS
8131 lt_globsym_save_CFLAGS=$CFLAGS
8132 LIBS=conftstm.$ac_objext
8133 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8134 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8135 (eval $ac_link) 2>&5
8136 ac_status=$?
8137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8138 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8139 pipe_works=yes
8141 LIBS=$lt_globsym_save_LIBS
8142 CFLAGS=$lt_globsym_save_CFLAGS
8143 else
8144 echo "cannot find nm_test_func in $nlist" >&5
8146 else
8147 echo "cannot find nm_test_var in $nlist" >&5
8149 else
8150 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8152 else
8153 echo "$progname: failed program was:" >&5
8154 cat conftest.$ac_ext >&5
8156 rm -rf conftest* conftst*
8158 # Do not use the global_symbol_pipe unless it works.
8159 if test yes = "$pipe_works"; then
8160 break
8161 else
8162 lt_cv_sys_global_symbol_pipe=
8164 done
8168 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8169 lt_cv_sys_global_symbol_to_cdecl=
8171 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8173 $as_echo "failed" >&6; }
8174 else
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8176 $as_echo "ok" >&6; }
8179 # Response file support.
8180 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8181 nm_file_list_spec='@'
8182 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8183 nm_file_list_spec='@'
8222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8223 $as_echo_n "checking for sysroot... " >&6; }
8225 # Check whether --with-sysroot was given.
8226 if test "${with_sysroot+set}" = set; then :
8227 withval=$with_sysroot;
8228 else
8229 with_sysroot=no
8233 lt_sysroot=
8234 case $with_sysroot in #(
8235 yes)
8236 if test yes = "$GCC"; then
8237 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8239 ;; #(
8241 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8242 ;; #(
8243 no|'')
8244 ;; #(
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
8247 $as_echo "$with_sysroot" >&6; }
8248 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8250 esac
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8253 $as_echo "${lt_sysroot:-no}" >&6; }
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
8260 $as_echo_n "checking for a working dd... " >&6; }
8261 if ${ac_cv_path_lt_DD+:} false; then :
8262 $as_echo_n "(cached) " >&6
8263 else
8264 printf 0123456789abcdef0123456789abcdef >conftest.i
8265 cat conftest.i conftest.i >conftest2.i
8266 : ${lt_DD:=$DD}
8267 if test -z "$lt_DD"; then
8268 ac_path_lt_DD_found=false
8269 # Loop through the user's path and test for each of PROGNAME-LIST
8270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8271 for as_dir in $PATH
8273 IFS=$as_save_IFS
8274 test -z "$as_dir" && as_dir=.
8275 for ac_prog in dd; do
8276 for ac_exec_ext in '' $ac_executable_extensions; do
8277 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
8278 as_fn_executable_p "$ac_path_lt_DD" || continue
8279 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8280 cmp -s conftest.i conftest.out \
8281 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
8283 $ac_path_lt_DD_found && break 3
8284 done
8285 done
8286 done
8287 IFS=$as_save_IFS
8288 if test -z "$ac_cv_path_lt_DD"; then
8291 else
8292 ac_cv_path_lt_DD=$lt_DD
8295 rm -f conftest.i conftest2.i conftest.out
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8298 $as_echo "$ac_cv_path_lt_DD" >&6; }
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8302 $as_echo_n "checking how to truncate binary pipes... " >&6; }
8303 if ${lt_cv_truncate_bin+:} false; then :
8304 $as_echo_n "(cached) " >&6
8305 else
8306 printf 0123456789abcdef0123456789abcdef >conftest.i
8307 cat conftest.i conftest.i >conftest2.i
8308 lt_cv_truncate_bin=
8309 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8310 cmp -s conftest.i conftest.out \
8311 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8313 rm -f conftest.i conftest2.i conftest.out
8314 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
8316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8317 $as_echo "$lt_cv_truncate_bin" >&6; }
8325 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
8326 func_cc_basename ()
8328 for cc_temp in $*""; do
8329 case $cc_temp in
8330 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8331 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8332 \-*) ;;
8333 *) break;;
8334 esac
8335 done
8336 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8339 # Check whether --enable-libtool-lock was given.
8340 if test "${enable_libtool_lock+set}" = set; then :
8341 enableval=$enable_libtool_lock;
8344 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8346 # Some flags need to be propagated to the compiler or linker for good
8347 # libtool support.
8348 case $host in
8349 ia64-*-hpux*)
8350 # Find out what ABI is being produced by ac_compile, and set mode
8351 # options accordingly.
8352 echo 'int i;' > conftest.$ac_ext
8353 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8354 (eval $ac_compile) 2>&5
8355 ac_status=$?
8356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8357 test $ac_status = 0; }; then
8358 case `/usr/bin/file conftest.$ac_objext` in
8359 *ELF-32*)
8360 HPUX_IA64_MODE=32
8362 *ELF-64*)
8363 HPUX_IA64_MODE=64
8365 esac
8367 rm -rf conftest*
8369 *-*-irix6*)
8370 # Find out what ABI is being produced by ac_compile, and set linker
8371 # options accordingly.
8372 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8373 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8374 (eval $ac_compile) 2>&5
8375 ac_status=$?
8376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8377 test $ac_status = 0; }; then
8378 if test yes = "$lt_cv_prog_gnu_ld"; then
8379 case `/usr/bin/file conftest.$ac_objext` in
8380 *32-bit*)
8381 LD="${LD-ld} -melf32bsmip"
8383 *N32*)
8384 LD="${LD-ld} -melf32bmipn32"
8386 *64-bit*)
8387 LD="${LD-ld} -melf64bmip"
8389 esac
8390 else
8391 case `/usr/bin/file conftest.$ac_objext` in
8392 *32-bit*)
8393 LD="${LD-ld} -32"
8395 *N32*)
8396 LD="${LD-ld} -n32"
8398 *64-bit*)
8399 LD="${LD-ld} -64"
8401 esac
8404 rm -rf conftest*
8407 mips64*-*linux*)
8408 # Find out what ABI is being produced by ac_compile, and set linker
8409 # options accordingly.
8410 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8411 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8412 (eval $ac_compile) 2>&5
8413 ac_status=$?
8414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8415 test $ac_status = 0; }; then
8416 emul=elf
8417 case `/usr/bin/file conftest.$ac_objext` in
8418 *32-bit*)
8419 emul="${emul}32"
8421 *64-bit*)
8422 emul="${emul}64"
8424 esac
8425 case `/usr/bin/file conftest.$ac_objext` in
8426 *MSB*)
8427 emul="${emul}btsmip"
8429 *LSB*)
8430 emul="${emul}ltsmip"
8432 esac
8433 case `/usr/bin/file conftest.$ac_objext` in
8434 *N32*)
8435 emul="${emul}n32"
8437 esac
8438 LD="${LD-ld} -m $emul"
8440 rm -rf conftest*
8443 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8444 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8445 # Find out what ABI is being produced by ac_compile, and set linker
8446 # options accordingly. Note that the listed cases only cover the
8447 # situations where additional linker options are needed (such as when
8448 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8449 # vice versa); the common cases where no linker options are needed do
8450 # not appear in the list.
8451 echo 'int i;' > conftest.$ac_ext
8452 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8453 (eval $ac_compile) 2>&5
8454 ac_status=$?
8455 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8456 test $ac_status = 0; }; then
8457 case `/usr/bin/file conftest.o` in
8458 *32-bit*)
8459 case $host in
8460 x86_64-*kfreebsd*-gnu)
8461 LD="${LD-ld} -m elf_i386_fbsd"
8463 x86_64-*linux*)
8464 case `/usr/bin/file conftest.o` in
8465 *x86-64*)
8466 LD="${LD-ld} -m elf32_x86_64"
8469 LD="${LD-ld} -m elf_i386"
8471 esac
8473 powerpc64le-*linux*)
8474 LD="${LD-ld} -m elf32lppclinux"
8476 powerpc64-*linux*)
8477 LD="${LD-ld} -m elf32ppclinux"
8479 s390x-*linux*)
8480 LD="${LD-ld} -m elf_s390"
8482 sparc64-*linux*)
8483 LD="${LD-ld} -m elf32_sparc"
8485 esac
8487 *64-bit*)
8488 case $host in
8489 x86_64-*kfreebsd*-gnu)
8490 LD="${LD-ld} -m elf_x86_64_fbsd"
8492 x86_64-*linux*)
8493 LD="${LD-ld} -m elf_x86_64"
8495 powerpcle-*linux*)
8496 LD="${LD-ld} -m elf64lppc"
8498 powerpc-*linux*)
8499 LD="${LD-ld} -m elf64ppc"
8501 s390*-*linux*|s390*-*tpf*)
8502 LD="${LD-ld} -m elf64_s390"
8504 sparc*-*linux*)
8505 LD="${LD-ld} -m elf64_sparc"
8507 esac
8509 esac
8511 rm -rf conftest*
8514 *-*-sco3.2v5*)
8515 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8516 SAVE_CFLAGS=$CFLAGS
8517 CFLAGS="$CFLAGS -belf"
8518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8519 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8520 if ${lt_cv_cc_needs_belf+:} false; then :
8521 $as_echo_n "(cached) " >&6
8522 else
8523 ac_ext=c
8524 ac_cpp='$CPP $CPPFLAGS'
8525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8530 /* end confdefs.h. */
8533 main ()
8537 return 0;
8539 _ACEOF
8540 if ac_fn_c_try_link "$LINENO"; then :
8541 lt_cv_cc_needs_belf=yes
8542 else
8543 lt_cv_cc_needs_belf=no
8545 rm -f core conftest.err conftest.$ac_objext \
8546 conftest$ac_exeext conftest.$ac_ext
8547 ac_ext=c
8548 ac_cpp='$CPP $CPPFLAGS'
8549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8555 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8556 if test yes != "$lt_cv_cc_needs_belf"; then
8557 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8558 CFLAGS=$SAVE_CFLAGS
8561 *-*solaris*)
8562 # Find out what ABI is being produced by ac_compile, and set linker
8563 # options accordingly.
8564 echo 'int i;' > conftest.$ac_ext
8565 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8566 (eval $ac_compile) 2>&5
8567 ac_status=$?
8568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8569 test $ac_status = 0; }; then
8570 case `/usr/bin/file conftest.o` in
8571 *64-bit*)
8572 case $lt_cv_prog_gnu_ld in
8573 yes*)
8574 case $host in
8575 i?86-*-solaris*|x86_64-*-solaris*)
8576 LD="${LD-ld} -m elf_x86_64"
8578 sparc*-*-solaris*)
8579 LD="${LD-ld} -m elf64_sparc"
8581 esac
8582 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8583 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8584 LD=${LD-ld}_sol2
8588 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8589 LD="${LD-ld} -64"
8592 esac
8594 esac
8596 rm -rf conftest*
8598 esac
8600 need_locks=$enable_libtool_lock
8602 if test -n "$ac_tool_prefix"; then
8603 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8604 set dummy ${ac_tool_prefix}mt; ac_word=$2
8605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8606 $as_echo_n "checking for $ac_word... " >&6; }
8607 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8608 $as_echo_n "(cached) " >&6
8609 else
8610 if test -n "$MANIFEST_TOOL"; then
8611 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8612 else
8613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8614 for as_dir in $PATH
8616 IFS=$as_save_IFS
8617 test -z "$as_dir" && as_dir=.
8618 for ac_exec_ext in '' $ac_executable_extensions; do
8619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8620 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8622 break 2
8624 done
8625 done
8626 IFS=$as_save_IFS
8630 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8631 if test -n "$MANIFEST_TOOL"; then
8632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8633 $as_echo "$MANIFEST_TOOL" >&6; }
8634 else
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8636 $as_echo "no" >&6; }
8641 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8642 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8643 # Extract the first word of "mt", so it can be a program name with args.
8644 set dummy mt; ac_word=$2
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8646 $as_echo_n "checking for $ac_word... " >&6; }
8647 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8648 $as_echo_n "(cached) " >&6
8649 else
8650 if test -n "$ac_ct_MANIFEST_TOOL"; then
8651 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8652 else
8653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8654 for as_dir in $PATH
8656 IFS=$as_save_IFS
8657 test -z "$as_dir" && as_dir=.
8658 for ac_exec_ext in '' $ac_executable_extensions; do
8659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8660 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8662 break 2
8664 done
8665 done
8666 IFS=$as_save_IFS
8670 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8671 if test -n "$ac_ct_MANIFEST_TOOL"; then
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8673 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8674 else
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8676 $as_echo "no" >&6; }
8679 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8680 MANIFEST_TOOL=":"
8681 else
8682 case $cross_compiling:$ac_tool_warned in
8683 yes:)
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8685 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8686 ac_tool_warned=yes ;;
8687 esac
8688 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8690 else
8691 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8694 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8696 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8697 if ${lt_cv_path_mainfest_tool+:} false; then :
8698 $as_echo_n "(cached) " >&6
8699 else
8700 lt_cv_path_mainfest_tool=no
8701 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8702 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8703 cat conftest.err >&5
8704 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8705 lt_cv_path_mainfest_tool=yes
8707 rm -f conftest*
8709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8710 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8711 if test yes != "$lt_cv_path_mainfest_tool"; then
8712 MANIFEST_TOOL=:
8720 case $host_os in
8721 rhapsody* | darwin*)
8722 if test -n "$ac_tool_prefix"; then
8723 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8724 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8726 $as_echo_n "checking for $ac_word... " >&6; }
8727 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8728 $as_echo_n "(cached) " >&6
8729 else
8730 if test -n "$DSYMUTIL"; then
8731 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8732 else
8733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8734 for as_dir in $PATH
8736 IFS=$as_save_IFS
8737 test -z "$as_dir" && as_dir=.
8738 for ac_exec_ext in '' $ac_executable_extensions; do
8739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8740 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8742 break 2
8744 done
8745 done
8746 IFS=$as_save_IFS
8750 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8751 if test -n "$DSYMUTIL"; then
8752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8753 $as_echo "$DSYMUTIL" >&6; }
8754 else
8755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8756 $as_echo "no" >&6; }
8761 if test -z "$ac_cv_prog_DSYMUTIL"; then
8762 ac_ct_DSYMUTIL=$DSYMUTIL
8763 # Extract the first word of "dsymutil", so it can be a program name with args.
8764 set dummy dsymutil; ac_word=$2
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8766 $as_echo_n "checking for $ac_word... " >&6; }
8767 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8768 $as_echo_n "(cached) " >&6
8769 else
8770 if test -n "$ac_ct_DSYMUTIL"; then
8771 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8772 else
8773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8774 for as_dir in $PATH
8776 IFS=$as_save_IFS
8777 test -z "$as_dir" && as_dir=.
8778 for ac_exec_ext in '' $ac_executable_extensions; do
8779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8780 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8782 break 2
8784 done
8785 done
8786 IFS=$as_save_IFS
8790 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8791 if test -n "$ac_ct_DSYMUTIL"; then
8792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8793 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8794 else
8795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8796 $as_echo "no" >&6; }
8799 if test "x$ac_ct_DSYMUTIL" = x; then
8800 DSYMUTIL=":"
8801 else
8802 case $cross_compiling:$ac_tool_warned in
8803 yes:)
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8805 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8806 ac_tool_warned=yes ;;
8807 esac
8808 DSYMUTIL=$ac_ct_DSYMUTIL
8810 else
8811 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8814 if test -n "$ac_tool_prefix"; then
8815 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8816 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8818 $as_echo_n "checking for $ac_word... " >&6; }
8819 if ${ac_cv_prog_NMEDIT+:} false; then :
8820 $as_echo_n "(cached) " >&6
8821 else
8822 if test -n "$NMEDIT"; then
8823 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8824 else
8825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8826 for as_dir in $PATH
8828 IFS=$as_save_IFS
8829 test -z "$as_dir" && as_dir=.
8830 for ac_exec_ext in '' $ac_executable_extensions; do
8831 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8832 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8834 break 2
8836 done
8837 done
8838 IFS=$as_save_IFS
8842 NMEDIT=$ac_cv_prog_NMEDIT
8843 if test -n "$NMEDIT"; then
8844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8845 $as_echo "$NMEDIT" >&6; }
8846 else
8847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8848 $as_echo "no" >&6; }
8853 if test -z "$ac_cv_prog_NMEDIT"; then
8854 ac_ct_NMEDIT=$NMEDIT
8855 # Extract the first word of "nmedit", so it can be a program name with args.
8856 set dummy nmedit; ac_word=$2
8857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8858 $as_echo_n "checking for $ac_word... " >&6; }
8859 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8860 $as_echo_n "(cached) " >&6
8861 else
8862 if test -n "$ac_ct_NMEDIT"; then
8863 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8864 else
8865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8866 for as_dir in $PATH
8868 IFS=$as_save_IFS
8869 test -z "$as_dir" && as_dir=.
8870 for ac_exec_ext in '' $ac_executable_extensions; do
8871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8872 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8874 break 2
8876 done
8877 done
8878 IFS=$as_save_IFS
8882 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8883 if test -n "$ac_ct_NMEDIT"; then
8884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8885 $as_echo "$ac_ct_NMEDIT" >&6; }
8886 else
8887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8888 $as_echo "no" >&6; }
8891 if test "x$ac_ct_NMEDIT" = x; then
8892 NMEDIT=":"
8893 else
8894 case $cross_compiling:$ac_tool_warned in
8895 yes:)
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8897 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8898 ac_tool_warned=yes ;;
8899 esac
8900 NMEDIT=$ac_ct_NMEDIT
8902 else
8903 NMEDIT="$ac_cv_prog_NMEDIT"
8906 if test -n "$ac_tool_prefix"; then
8907 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8908 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8910 $as_echo_n "checking for $ac_word... " >&6; }
8911 if ${ac_cv_prog_LIPO+:} false; then :
8912 $as_echo_n "(cached) " >&6
8913 else
8914 if test -n "$LIPO"; then
8915 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8916 else
8917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8918 for as_dir in $PATH
8920 IFS=$as_save_IFS
8921 test -z "$as_dir" && as_dir=.
8922 for ac_exec_ext in '' $ac_executable_extensions; do
8923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8924 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8926 break 2
8928 done
8929 done
8930 IFS=$as_save_IFS
8934 LIPO=$ac_cv_prog_LIPO
8935 if test -n "$LIPO"; then
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8937 $as_echo "$LIPO" >&6; }
8938 else
8939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8940 $as_echo "no" >&6; }
8945 if test -z "$ac_cv_prog_LIPO"; then
8946 ac_ct_LIPO=$LIPO
8947 # Extract the first word of "lipo", so it can be a program name with args.
8948 set dummy lipo; ac_word=$2
8949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8950 $as_echo_n "checking for $ac_word... " >&6; }
8951 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8952 $as_echo_n "(cached) " >&6
8953 else
8954 if test -n "$ac_ct_LIPO"; then
8955 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8956 else
8957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8958 for as_dir in $PATH
8960 IFS=$as_save_IFS
8961 test -z "$as_dir" && as_dir=.
8962 for ac_exec_ext in '' $ac_executable_extensions; do
8963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8964 ac_cv_prog_ac_ct_LIPO="lipo"
8965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8966 break 2
8968 done
8969 done
8970 IFS=$as_save_IFS
8974 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8975 if test -n "$ac_ct_LIPO"; then
8976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8977 $as_echo "$ac_ct_LIPO" >&6; }
8978 else
8979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8980 $as_echo "no" >&6; }
8983 if test "x$ac_ct_LIPO" = x; then
8984 LIPO=":"
8985 else
8986 case $cross_compiling:$ac_tool_warned in
8987 yes:)
8988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8989 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8990 ac_tool_warned=yes ;;
8991 esac
8992 LIPO=$ac_ct_LIPO
8994 else
8995 LIPO="$ac_cv_prog_LIPO"
8998 if test -n "$ac_tool_prefix"; then
8999 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9000 set dummy ${ac_tool_prefix}otool; ac_word=$2
9001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9002 $as_echo_n "checking for $ac_word... " >&6; }
9003 if ${ac_cv_prog_OTOOL+:} false; then :
9004 $as_echo_n "(cached) " >&6
9005 else
9006 if test -n "$OTOOL"; then
9007 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9008 else
9009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9010 for as_dir in $PATH
9012 IFS=$as_save_IFS
9013 test -z "$as_dir" && as_dir=.
9014 for ac_exec_ext in '' $ac_executable_extensions; do
9015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9016 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9018 break 2
9020 done
9021 done
9022 IFS=$as_save_IFS
9026 OTOOL=$ac_cv_prog_OTOOL
9027 if test -n "$OTOOL"; then
9028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9029 $as_echo "$OTOOL" >&6; }
9030 else
9031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9032 $as_echo "no" >&6; }
9037 if test -z "$ac_cv_prog_OTOOL"; then
9038 ac_ct_OTOOL=$OTOOL
9039 # Extract the first word of "otool", so it can be a program name with args.
9040 set dummy otool; ac_word=$2
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9042 $as_echo_n "checking for $ac_word... " >&6; }
9043 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9044 $as_echo_n "(cached) " >&6
9045 else
9046 if test -n "$ac_ct_OTOOL"; then
9047 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9048 else
9049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9050 for as_dir in $PATH
9052 IFS=$as_save_IFS
9053 test -z "$as_dir" && as_dir=.
9054 for ac_exec_ext in '' $ac_executable_extensions; do
9055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9056 ac_cv_prog_ac_ct_OTOOL="otool"
9057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9058 break 2
9060 done
9061 done
9062 IFS=$as_save_IFS
9066 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9067 if test -n "$ac_ct_OTOOL"; then
9068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9069 $as_echo "$ac_ct_OTOOL" >&6; }
9070 else
9071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9072 $as_echo "no" >&6; }
9075 if test "x$ac_ct_OTOOL" = x; then
9076 OTOOL=":"
9077 else
9078 case $cross_compiling:$ac_tool_warned in
9079 yes:)
9080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9081 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9082 ac_tool_warned=yes ;;
9083 esac
9084 OTOOL=$ac_ct_OTOOL
9086 else
9087 OTOOL="$ac_cv_prog_OTOOL"
9090 if test -n "$ac_tool_prefix"; then
9091 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9092 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9094 $as_echo_n "checking for $ac_word... " >&6; }
9095 if ${ac_cv_prog_OTOOL64+:} false; then :
9096 $as_echo_n "(cached) " >&6
9097 else
9098 if test -n "$OTOOL64"; then
9099 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9100 else
9101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9102 for as_dir in $PATH
9104 IFS=$as_save_IFS
9105 test -z "$as_dir" && as_dir=.
9106 for ac_exec_ext in '' $ac_executable_extensions; do
9107 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9108 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9110 break 2
9112 done
9113 done
9114 IFS=$as_save_IFS
9118 OTOOL64=$ac_cv_prog_OTOOL64
9119 if test -n "$OTOOL64"; then
9120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9121 $as_echo "$OTOOL64" >&6; }
9122 else
9123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9124 $as_echo "no" >&6; }
9129 if test -z "$ac_cv_prog_OTOOL64"; then
9130 ac_ct_OTOOL64=$OTOOL64
9131 # Extract the first word of "otool64", so it can be a program name with args.
9132 set dummy otool64; ac_word=$2
9133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9134 $as_echo_n "checking for $ac_word... " >&6; }
9135 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9136 $as_echo_n "(cached) " >&6
9137 else
9138 if test -n "$ac_ct_OTOOL64"; then
9139 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9140 else
9141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9142 for as_dir in $PATH
9144 IFS=$as_save_IFS
9145 test -z "$as_dir" && as_dir=.
9146 for ac_exec_ext in '' $ac_executable_extensions; do
9147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9148 ac_cv_prog_ac_ct_OTOOL64="otool64"
9149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9150 break 2
9152 done
9153 done
9154 IFS=$as_save_IFS
9158 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9159 if test -n "$ac_ct_OTOOL64"; then
9160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9161 $as_echo "$ac_ct_OTOOL64" >&6; }
9162 else
9163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9164 $as_echo "no" >&6; }
9167 if test "x$ac_ct_OTOOL64" = x; then
9168 OTOOL64=":"
9169 else
9170 case $cross_compiling:$ac_tool_warned in
9171 yes:)
9172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9173 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9174 ac_tool_warned=yes ;;
9175 esac
9176 OTOOL64=$ac_ct_OTOOL64
9178 else
9179 OTOOL64="$ac_cv_prog_OTOOL64"
9208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9209 $as_echo_n "checking for -single_module linker flag... " >&6; }
9210 if ${lt_cv_apple_cc_single_mod+:} false; then :
9211 $as_echo_n "(cached) " >&6
9212 else
9213 lt_cv_apple_cc_single_mod=no
9214 if test -z "$LT_MULTI_MODULE"; then
9215 # By default we will add the -single_module flag. You can override
9216 # by either setting the environment variable LT_MULTI_MODULE
9217 # non-empty at configure time, or by adding -multi_module to the
9218 # link flags.
9219 rm -rf libconftest.dylib*
9220 echo "int foo(void){return 1;}" > conftest.c
9221 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9222 -dynamiclib -Wl,-single_module conftest.c" >&5
9223 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9224 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9225 _lt_result=$?
9226 # If there is a non-empty error log, and "single_module"
9227 # appears in it, assume the flag caused a linker warning
9228 if test -s conftest.err && $GREP single_module conftest.err; then
9229 cat conftest.err >&5
9230 # Otherwise, if the output was created with a 0 exit code from
9231 # the compiler, it worked.
9232 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
9233 lt_cv_apple_cc_single_mod=yes
9234 else
9235 cat conftest.err >&5
9237 rm -rf libconftest.dylib*
9238 rm -f conftest.*
9241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9242 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9245 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9246 if ${lt_cv_ld_exported_symbols_list+:} false; then :
9247 $as_echo_n "(cached) " >&6
9248 else
9249 lt_cv_ld_exported_symbols_list=no
9250 save_LDFLAGS=$LDFLAGS
9251 echo "_main" > conftest.sym
9252 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9254 /* end confdefs.h. */
9257 main ()
9261 return 0;
9263 _ACEOF
9264 if ac_fn_c_try_link "$LINENO"; then :
9265 lt_cv_ld_exported_symbols_list=yes
9266 else
9267 lt_cv_ld_exported_symbols_list=no
9269 rm -f core conftest.err conftest.$ac_objext \
9270 conftest$ac_exeext conftest.$ac_ext
9271 LDFLAGS=$save_LDFLAGS
9274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9275 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9278 $as_echo_n "checking for -force_load linker flag... " >&6; }
9279 if ${lt_cv_ld_force_load+:} false; then :
9280 $as_echo_n "(cached) " >&6
9281 else
9282 lt_cv_ld_force_load=no
9283 cat > conftest.c << _LT_EOF
9284 int forced_loaded() { return 2;}
9285 _LT_EOF
9286 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9287 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9288 echo "$AR cru libconftest.a conftest.o" >&5
9289 $AR cru libconftest.a conftest.o 2>&5
9290 echo "$RANLIB libconftest.a" >&5
9291 $RANLIB libconftest.a 2>&5
9292 cat > conftest.c << _LT_EOF
9293 int main() { return 0;}
9294 _LT_EOF
9295 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9296 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9297 _lt_result=$?
9298 if test -s conftest.err && $GREP force_load conftest.err; then
9299 cat conftest.err >&5
9300 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9301 lt_cv_ld_force_load=yes
9302 else
9303 cat conftest.err >&5
9305 rm -f conftest.err libconftest.a conftest conftest.c
9306 rm -rf conftest.dSYM
9309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9310 $as_echo "$lt_cv_ld_force_load" >&6; }
9311 case $host_os in
9312 rhapsody* | darwin1.[012])
9313 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9314 darwin1.*)
9315 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9316 darwin*) # darwin 5.x on
9317 # if running on 10.5 or later, the deployment target defaults
9318 # to the OS version, if on x86, and 10.4, the deployment
9319 # target defaults to 10.4. Don't you love it?
9320 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9321 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9322 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9323 10.[012][,.]*)
9324 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9325 10.*)
9326 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9327 esac
9329 esac
9330 if test yes = "$lt_cv_apple_cc_single_mod"; then
9331 _lt_dar_single_mod='$single_module'
9333 if test yes = "$lt_cv_ld_exported_symbols_list"; then
9334 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9335 else
9336 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9338 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9339 _lt_dsymutil='~$DSYMUTIL $lib || :'
9340 else
9341 _lt_dsymutil=
9344 esac
9346 # func_munge_path_list VARIABLE PATH
9347 # -----------------------------------
9348 # VARIABLE is name of variable containing _space_ separated list of
9349 # directories to be munged by the contents of PATH, which is string
9350 # having a format:
9351 # "DIR[:DIR]:"
9352 # string "DIR[ DIR]" will be prepended to VARIABLE
9353 # ":DIR[:DIR]"
9354 # string "DIR[ DIR]" will be appended to VARIABLE
9355 # "DIRP[:DIRP]::[DIRA:]DIRA"
9356 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9357 # "DIRA[ DIRA]" will be appended to VARIABLE
9358 # "DIR[:DIR]"
9359 # VARIABLE will be replaced by "DIR[ DIR]"
9360 func_munge_path_list ()
9362 case x$2 in
9366 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9368 x:*)
9369 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9371 *::*)
9372 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9373 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9376 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9378 esac
9382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9383 $as_echo_n "checking for ANSI C header files... " >&6; }
9384 if ${ac_cv_header_stdc+:} false; then :
9385 $as_echo_n "(cached) " >&6
9386 else
9387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9388 /* end confdefs.h. */
9389 #include <stdlib.h>
9390 #include <stdarg.h>
9391 #include <string.h>
9392 #include <float.h>
9395 main ()
9399 return 0;
9401 _ACEOF
9402 if ac_fn_c_try_compile "$LINENO"; then :
9403 ac_cv_header_stdc=yes
9404 else
9405 ac_cv_header_stdc=no
9407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9409 if test $ac_cv_header_stdc = yes; then
9410 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9412 /* end confdefs.h. */
9413 #include <string.h>
9415 _ACEOF
9416 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9417 $EGREP "memchr" >/dev/null 2>&1; then :
9419 else
9420 ac_cv_header_stdc=no
9422 rm -f conftest*
9426 if test $ac_cv_header_stdc = yes; then
9427 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9429 /* end confdefs.h. */
9430 #include <stdlib.h>
9432 _ACEOF
9433 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9434 $EGREP "free" >/dev/null 2>&1; then :
9436 else
9437 ac_cv_header_stdc=no
9439 rm -f conftest*
9443 if test $ac_cv_header_stdc = yes; then
9444 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9445 if test "$cross_compiling" = yes; then :
9447 else
9448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9449 /* end confdefs.h. */
9450 #include <ctype.h>
9451 #include <stdlib.h>
9452 #if ((' ' & 0x0FF) == 0x020)
9453 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9454 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9455 #else
9456 # define ISLOWER(c) \
9457 (('a' <= (c) && (c) <= 'i') \
9458 || ('j' <= (c) && (c) <= 'r') \
9459 || ('s' <= (c) && (c) <= 'z'))
9460 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9461 #endif
9463 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9465 main ()
9467 int i;
9468 for (i = 0; i < 256; i++)
9469 if (XOR (islower (i), ISLOWER (i))
9470 || toupper (i) != TOUPPER (i))
9471 return 2;
9472 return 0;
9474 _ACEOF
9475 if ac_fn_c_try_run "$LINENO"; then :
9477 else
9478 ac_cv_header_stdc=no
9480 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9481 conftest.$ac_objext conftest.beam conftest.$ac_ext
9486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9487 $as_echo "$ac_cv_header_stdc" >&6; }
9488 if test $ac_cv_header_stdc = yes; then
9490 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9494 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9495 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9496 inttypes.h stdint.h unistd.h
9497 do :
9498 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9499 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9501 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9502 cat >>confdefs.h <<_ACEOF
9503 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9504 _ACEOF
9508 done
9511 for ac_header in dlfcn.h
9512 do :
9513 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9515 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9516 cat >>confdefs.h <<_ACEOF
9517 #define HAVE_DLFCN_H 1
9518 _ACEOF
9522 done
9528 # Set options
9532 enable_dlopen=no
9535 enable_win32_dll=no
9538 # Check whether --enable-shared was given.
9539 if test "${enable_shared+set}" = set; then :
9540 enableval=$enable_shared; p=${PACKAGE-default}
9541 case $enableval in
9542 yes) enable_shared=yes ;;
9543 no) enable_shared=no ;;
9545 enable_shared=no
9546 # Look at the argument we got. We use all the common list separators.
9547 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9548 for pkg in $enableval; do
9549 IFS=$lt_save_ifs
9550 if test "X$pkg" = "X$p"; then
9551 enable_shared=yes
9553 done
9554 IFS=$lt_save_ifs
9556 esac
9557 else
9558 enable_shared=yes
9569 # Check whether --enable-static was given.
9570 if test "${enable_static+set}" = set; then :
9571 enableval=$enable_static; p=${PACKAGE-default}
9572 case $enableval in
9573 yes) enable_static=yes ;;
9574 no) enable_static=no ;;
9576 enable_static=no
9577 # Look at the argument we got. We use all the common list separators.
9578 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9579 for pkg in $enableval; do
9580 IFS=$lt_save_ifs
9581 if test "X$pkg" = "X$p"; then
9582 enable_static=yes
9584 done
9585 IFS=$lt_save_ifs
9587 esac
9588 else
9589 enable_static=yes
9601 # Check whether --with-pic was given.
9602 if test "${with_pic+set}" = set; then :
9603 withval=$with_pic; lt_p=${PACKAGE-default}
9604 case $withval in
9605 yes|no) pic_mode=$withval ;;
9607 pic_mode=default
9608 # Look at the argument we got. We use all the common list separators.
9609 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9610 for lt_pkg in $withval; do
9611 IFS=$lt_save_ifs
9612 if test "X$lt_pkg" = "X$lt_p"; then
9613 pic_mode=yes
9615 done
9616 IFS=$lt_save_ifs
9618 esac
9619 else
9620 pic_mode=default
9630 # Check whether --enable-fast-install was given.
9631 if test "${enable_fast_install+set}" = set; then :
9632 enableval=$enable_fast_install; p=${PACKAGE-default}
9633 case $enableval in
9634 yes) enable_fast_install=yes ;;
9635 no) enable_fast_install=no ;;
9637 enable_fast_install=no
9638 # Look at the argument we got. We use all the common list separators.
9639 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9640 for pkg in $enableval; do
9641 IFS=$lt_save_ifs
9642 if test "X$pkg" = "X$p"; then
9643 enable_fast_install=yes
9645 done
9646 IFS=$lt_save_ifs
9648 esac
9649 else
9650 enable_fast_install=yes
9660 shared_archive_member_spec=
9661 case $host,$enable_shared in
9662 power*-*-aix[5-9]*,yes)
9663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9664 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9666 # Check whether --with-aix-soname was given.
9667 if test "${with_aix_soname+set}" = set; then :
9668 withval=$with_aix_soname; case $withval in
9669 aix|svr4|both)
9672 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9674 esac
9675 lt_cv_with_aix_soname=$with_aix_soname
9676 else
9677 if ${lt_cv_with_aix_soname+:} false; then :
9678 $as_echo_n "(cached) " >&6
9679 else
9680 lt_cv_with_aix_soname=aix
9683 with_aix_soname=$lt_cv_with_aix_soname
9686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9687 $as_echo "$with_aix_soname" >&6; }
9688 if test aix != "$with_aix_soname"; then
9689 # For the AIX way of multilib, we name the shared archive member
9690 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9691 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9692 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9693 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9694 if test 64 = "${OBJECT_MODE-32}"; then
9695 shared_archive_member_spec=shr_64
9696 else
9697 shared_archive_member_spec=shr
9702 with_aix_soname=aix
9704 esac
9715 # This can be used to rebuild libtool when needed
9716 LIBTOOL_DEPS=$ltmain
9718 # Always use our own libtool.
9719 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9750 test -z "$LN_S" && LN_S="ln -s"
9765 if test -n "${ZSH_VERSION+set}"; then
9766 setopt NO_GLOB_SUBST
9769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9770 $as_echo_n "checking for objdir... " >&6; }
9771 if ${lt_cv_objdir+:} false; then :
9772 $as_echo_n "(cached) " >&6
9773 else
9774 rm -f .libs 2>/dev/null
9775 mkdir .libs 2>/dev/null
9776 if test -d .libs; then
9777 lt_cv_objdir=.libs
9778 else
9779 # MS-DOS does not allow filenames that begin with a dot.
9780 lt_cv_objdir=_libs
9782 rmdir .libs 2>/dev/null
9784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9785 $as_echo "$lt_cv_objdir" >&6; }
9786 objdir=$lt_cv_objdir
9792 cat >>confdefs.h <<_ACEOF
9793 #define LT_OBJDIR "$lt_cv_objdir/"
9794 _ACEOF
9799 case $host_os in
9800 aix3*)
9801 # AIX sometimes has problems with the GCC collect2 program. For some
9802 # reason, if we set the COLLECT_NAMES environment variable, the problems
9803 # vanish in a puff of smoke.
9804 if test set != "${COLLECT_NAMES+set}"; then
9805 COLLECT_NAMES=
9806 export COLLECT_NAMES
9809 esac
9811 # Global variables:
9812 ofile=libtool
9813 can_build_shared=yes
9815 # All known linkers require a '.a' archive for static linking (except MSVC,
9816 # which needs '.lib').
9817 libext=a
9819 with_gnu_ld=$lt_cv_prog_gnu_ld
9821 old_CC=$CC
9822 old_CFLAGS=$CFLAGS
9824 # Set sane defaults for various variables
9825 test -z "$CC" && CC=cc
9826 test -z "$LTCC" && LTCC=$CC
9827 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9828 test -z "$LD" && LD=ld
9829 test -z "$ac_objext" && ac_objext=o
9831 func_cc_basename $compiler
9832 cc_basename=$func_cc_basename_result
9835 # Only perform the check for file, if the check method requires it
9836 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9837 case $deplibs_check_method in
9838 file_magic*)
9839 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9841 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9842 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9843 $as_echo_n "(cached) " >&6
9844 else
9845 case $MAGIC_CMD in
9846 [\\/*] | ?:[\\/]*)
9847 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9850 lt_save_MAGIC_CMD=$MAGIC_CMD
9851 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9852 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9853 for ac_dir in $ac_dummy; do
9854 IFS=$lt_save_ifs
9855 test -z "$ac_dir" && ac_dir=.
9856 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9857 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9858 if test -n "$file_magic_test_file"; then
9859 case $deplibs_check_method in
9860 "file_magic "*)
9861 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9862 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9863 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9864 $EGREP "$file_magic_regex" > /dev/null; then
9866 else
9867 cat <<_LT_EOF 1>&2
9869 *** Warning: the command libtool uses to detect shared libraries,
9870 *** $file_magic_cmd, produces output that libtool cannot recognize.
9871 *** The result is that libtool may fail to recognize shared libraries
9872 *** as such. This will affect the creation of libtool libraries that
9873 *** depend on shared libraries, but programs linked with such libtool
9874 *** libraries will work regardless of this problem. Nevertheless, you
9875 *** may want to report the problem to your system manager and/or to
9876 *** bug-libtool@gnu.org
9878 _LT_EOF
9879 fi ;;
9880 esac
9882 break
9884 done
9885 IFS=$lt_save_ifs
9886 MAGIC_CMD=$lt_save_MAGIC_CMD
9888 esac
9891 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9892 if test -n "$MAGIC_CMD"; then
9893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9894 $as_echo "$MAGIC_CMD" >&6; }
9895 else
9896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9897 $as_echo "no" >&6; }
9904 if test -z "$lt_cv_path_MAGIC_CMD"; then
9905 if test -n "$ac_tool_prefix"; then
9906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9907 $as_echo_n "checking for file... " >&6; }
9908 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9909 $as_echo_n "(cached) " >&6
9910 else
9911 case $MAGIC_CMD in
9912 [\\/*] | ?:[\\/]*)
9913 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9916 lt_save_MAGIC_CMD=$MAGIC_CMD
9917 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9918 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9919 for ac_dir in $ac_dummy; do
9920 IFS=$lt_save_ifs
9921 test -z "$ac_dir" && ac_dir=.
9922 if test -f "$ac_dir/file"; then
9923 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9924 if test -n "$file_magic_test_file"; then
9925 case $deplibs_check_method in
9926 "file_magic "*)
9927 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9928 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9929 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9930 $EGREP "$file_magic_regex" > /dev/null; then
9932 else
9933 cat <<_LT_EOF 1>&2
9935 *** Warning: the command libtool uses to detect shared libraries,
9936 *** $file_magic_cmd, produces output that libtool cannot recognize.
9937 *** The result is that libtool may fail to recognize shared libraries
9938 *** as such. This will affect the creation of libtool libraries that
9939 *** depend on shared libraries, but programs linked with such libtool
9940 *** libraries will work regardless of this problem. Nevertheless, you
9941 *** may want to report the problem to your system manager and/or to
9942 *** bug-libtool@gnu.org
9944 _LT_EOF
9945 fi ;;
9946 esac
9948 break
9950 done
9951 IFS=$lt_save_ifs
9952 MAGIC_CMD=$lt_save_MAGIC_CMD
9954 esac
9957 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9958 if test -n "$MAGIC_CMD"; then
9959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9960 $as_echo "$MAGIC_CMD" >&6; }
9961 else
9962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9963 $as_echo "no" >&6; }
9967 else
9968 MAGIC_CMD=:
9974 esac
9976 # Use C for the default configuration in the libtool script
9978 lt_save_CC=$CC
9979 ac_ext=c
9980 ac_cpp='$CPP $CPPFLAGS'
9981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9986 # Source file extension for C test sources.
9987 ac_ext=c
9989 # Object file extension for compiled C test sources.
9990 objext=o
9991 objext=$objext
9993 # Code to be used in simple compile tests
9994 lt_simple_compile_test_code="int some_variable = 0;"
9996 # Code to be used in simple link tests
9997 lt_simple_link_test_code='int main(){return(0);}'
10005 # If no C compiler was specified, use CC.
10006 LTCC=${LTCC-"$CC"}
10008 # If no C compiler flags were specified, use CFLAGS.
10009 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10011 # Allow CC to be a program name with arguments.
10012 compiler=$CC
10014 # Save the default compiler, since it gets overwritten when the other
10015 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10016 compiler_DEFAULT=$CC
10018 # save warnings/boilerplate of simple test code
10019 ac_outfile=conftest.$ac_objext
10020 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10021 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10022 _lt_compiler_boilerplate=`cat conftest.err`
10023 $RM conftest*
10025 ac_outfile=conftest.$ac_objext
10026 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10027 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10028 _lt_linker_boilerplate=`cat conftest.err`
10029 $RM -r conftest*
10032 ## CAVEAT EMPTOR:
10033 ## There is no encapsulation within the following macros, do not change
10034 ## the running order or otherwise move them around unless you know exactly
10035 ## what you are doing...
10036 if test -n "$compiler"; then
10038 lt_prog_compiler_no_builtin_flag=
10040 if test yes = "$GCC"; then
10041 case $cc_basename in
10042 nvcc*)
10043 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10045 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10046 esac
10048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10049 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10050 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10051 $as_echo_n "(cached) " >&6
10052 else
10053 lt_cv_prog_compiler_rtti_exceptions=no
10054 ac_outfile=conftest.$ac_objext
10055 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10056 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
10057 # Insert the option either (1) after the last *FLAGS variable, or
10058 # (2) before a word containing "conftest.", or (3) at the end.
10059 # Note that $ac_compile itself does not contain backslashes and begins
10060 # with a dollar sign (not a hyphen), so the echo should work correctly.
10061 # The option is referenced via a variable to avoid confusing sed.
10062 lt_compile=`echo "$ac_compile" | $SED \
10063 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10064 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10065 -e 's:$: $lt_compiler_flag:'`
10066 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10067 (eval "$lt_compile" 2>conftest.err)
10068 ac_status=$?
10069 cat conftest.err >&5
10070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10071 if (exit $ac_status) && test -s "$ac_outfile"; then
10072 # The compiler can only warn and ignore the option if not recognized
10073 # So say no if there are warnings other than the usual output.
10074 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10075 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10076 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10077 lt_cv_prog_compiler_rtti_exceptions=yes
10080 $RM conftest*
10083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10084 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10086 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10087 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10088 else
10099 lt_prog_compiler_wl=
10100 lt_prog_compiler_pic=
10101 lt_prog_compiler_static=
10104 if test yes = "$GCC"; then
10105 lt_prog_compiler_wl='-Wl,'
10106 lt_prog_compiler_static='-static'
10108 case $host_os in
10109 aix*)
10110 # All AIX code is PIC.
10111 if test ia64 = "$host_cpu"; then
10112 # AIX 5 now supports IA64 processor
10113 lt_prog_compiler_static='-Bstatic'
10115 lt_prog_compiler_pic='-fPIC'
10118 amigaos*)
10119 case $host_cpu in
10120 powerpc)
10121 # see comment about AmigaOS4 .so support
10122 lt_prog_compiler_pic='-fPIC'
10124 m68k)
10125 # FIXME: we need at least 68020 code to build shared libraries, but
10126 # adding the '-m68020' flag to GCC prevents building anything better,
10127 # like '-m68040'.
10128 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10130 esac
10133 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10134 # PIC is the default for these OSes.
10137 mingw* | cygwin* | pw32* | os2* | cegcc*)
10138 # This hack is so that the source file can tell whether it is being
10139 # built for inclusion in a dll (and should export symbols for example).
10140 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10141 # (--disable-auto-import) libraries
10142 lt_prog_compiler_pic='-DDLL_EXPORT'
10143 case $host_os in
10144 os2*)
10145 lt_prog_compiler_static='$wl-static'
10147 esac
10150 darwin* | rhapsody*)
10151 # PIC is the default on this platform
10152 # Common symbols not allowed in MH_DYLIB files
10153 lt_prog_compiler_pic='-fno-common'
10156 haiku*)
10157 # PIC is the default for Haiku.
10158 # The "-static" flag exists, but is broken.
10159 lt_prog_compiler_static=
10162 hpux*)
10163 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10164 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10165 # sets the default TLS model and affects inlining.
10166 case $host_cpu in
10167 hppa*64*)
10168 # +Z the default
10171 lt_prog_compiler_pic='-fPIC'
10173 esac
10176 interix[3-9]*)
10177 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10178 # Instead, we relocate shared libraries at runtime.
10181 msdosdjgpp*)
10182 # Just because we use GCC doesn't mean we suddenly get shared libraries
10183 # on systems that don't support them.
10184 lt_prog_compiler_can_build_shared=no
10185 enable_shared=no
10188 *nto* | *qnx*)
10189 # QNX uses GNU C++, but need to define -shared option too, otherwise
10190 # it will coredump.
10191 lt_prog_compiler_pic='-fPIC -shared'
10194 sysv4*MP*)
10195 if test -d /usr/nec; then
10196 lt_prog_compiler_pic=-Kconform_pic
10201 lt_prog_compiler_pic='-fPIC'
10203 esac
10205 case $cc_basename in
10206 nvcc*) # Cuda Compiler Driver 2.2
10207 lt_prog_compiler_wl='-Xlinker '
10208 if test -n "$lt_prog_compiler_pic"; then
10209 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10212 esac
10213 else
10214 # PORTME Check for flag to pass linker flags through the system compiler.
10215 case $host_os in
10216 aix*)
10217 lt_prog_compiler_wl='-Wl,'
10218 if test ia64 = "$host_cpu"; then
10219 # AIX 5 now supports IA64 processor
10220 lt_prog_compiler_static='-Bstatic'
10221 else
10222 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10226 darwin* | rhapsody*)
10227 # PIC is the default on this platform
10228 # Common symbols not allowed in MH_DYLIB files
10229 lt_prog_compiler_pic='-fno-common'
10230 case $cc_basename in
10231 nagfor*)
10232 # NAG Fortran compiler
10233 lt_prog_compiler_wl='-Wl,-Wl,,'
10234 lt_prog_compiler_pic='-PIC'
10235 lt_prog_compiler_static='-Bstatic'
10237 esac
10240 mingw* | cygwin* | pw32* | os2* | cegcc*)
10241 # This hack is so that the source file can tell whether it is being
10242 # built for inclusion in a dll (and should export symbols for example).
10243 lt_prog_compiler_pic='-DDLL_EXPORT'
10244 case $host_os in
10245 os2*)
10246 lt_prog_compiler_static='$wl-static'
10248 esac
10251 hpux9* | hpux10* | hpux11*)
10252 lt_prog_compiler_wl='-Wl,'
10253 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10254 # not for PA HP-UX.
10255 case $host_cpu in
10256 hppa*64*|ia64*)
10257 # +Z the default
10260 lt_prog_compiler_pic='+Z'
10262 esac
10263 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10264 lt_prog_compiler_static='$wl-a ${wl}archive'
10267 irix5* | irix6* | nonstopux*)
10268 lt_prog_compiler_wl='-Wl,'
10269 # PIC (with -KPIC) is the default.
10270 lt_prog_compiler_static='-non_shared'
10273 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10274 case $cc_basename in
10275 # old Intel for x86_64, which still supported -KPIC.
10276 ecc*)
10277 lt_prog_compiler_wl='-Wl,'
10278 lt_prog_compiler_pic='-KPIC'
10279 lt_prog_compiler_static='-static'
10281 # icc used to be incompatible with GCC.
10282 # ICC 10 doesn't accept -KPIC any more.
10283 icc* | ifort*)
10284 lt_prog_compiler_wl='-Wl,'
10285 lt_prog_compiler_pic='-fPIC'
10286 lt_prog_compiler_static='-static'
10288 # Lahey Fortran 8.1.
10289 lf95*)
10290 lt_prog_compiler_wl='-Wl,'
10291 lt_prog_compiler_pic='--shared'
10292 lt_prog_compiler_static='--static'
10294 nagfor*)
10295 # NAG Fortran compiler
10296 lt_prog_compiler_wl='-Wl,-Wl,,'
10297 lt_prog_compiler_pic='-PIC'
10298 lt_prog_compiler_static='-Bstatic'
10300 tcc*)
10301 # Fabrice Bellard et al's Tiny C Compiler
10302 lt_prog_compiler_wl='-Wl,'
10303 lt_prog_compiler_pic='-fPIC'
10304 lt_prog_compiler_static='-static'
10306 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10307 # Portland Group compilers (*not* the Pentium gcc compiler,
10308 # which looks to be a dead project)
10309 lt_prog_compiler_wl='-Wl,'
10310 lt_prog_compiler_pic='-fpic'
10311 lt_prog_compiler_static='-Bstatic'
10313 ccc*)
10314 lt_prog_compiler_wl='-Wl,'
10315 # All Alpha code is PIC.
10316 lt_prog_compiler_static='-non_shared'
10318 xl* | bgxl* | bgf* | mpixl*)
10319 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10320 lt_prog_compiler_wl='-Wl,'
10321 lt_prog_compiler_pic='-qpic'
10322 lt_prog_compiler_static='-qstaticlink'
10325 case `$CC -V 2>&1 | sed 5q` in
10326 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10327 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10328 lt_prog_compiler_pic='-KPIC'
10329 lt_prog_compiler_static='-Bstatic'
10330 lt_prog_compiler_wl=''
10332 *Sun\ F* | *Sun*Fortran*)
10333 lt_prog_compiler_pic='-KPIC'
10334 lt_prog_compiler_static='-Bstatic'
10335 lt_prog_compiler_wl='-Qoption ld '
10337 *Sun\ C*)
10338 # Sun C 5.9
10339 lt_prog_compiler_pic='-KPIC'
10340 lt_prog_compiler_static='-Bstatic'
10341 lt_prog_compiler_wl='-Wl,'
10343 *Intel*\ [CF]*Compiler*)
10344 lt_prog_compiler_wl='-Wl,'
10345 lt_prog_compiler_pic='-fPIC'
10346 lt_prog_compiler_static='-static'
10348 *Portland\ Group*)
10349 lt_prog_compiler_wl='-Wl,'
10350 lt_prog_compiler_pic='-fpic'
10351 lt_prog_compiler_static='-Bstatic'
10353 esac
10355 esac
10358 newsos6)
10359 lt_prog_compiler_pic='-KPIC'
10360 lt_prog_compiler_static='-Bstatic'
10363 *nto* | *qnx*)
10364 # QNX uses GNU C++, but need to define -shared option too, otherwise
10365 # it will coredump.
10366 lt_prog_compiler_pic='-fPIC -shared'
10369 osf3* | osf4* | osf5*)
10370 lt_prog_compiler_wl='-Wl,'
10371 # All OSF/1 code is PIC.
10372 lt_prog_compiler_static='-non_shared'
10375 rdos*)
10376 lt_prog_compiler_static='-non_shared'
10379 solaris*)
10380 lt_prog_compiler_pic='-KPIC'
10381 lt_prog_compiler_static='-Bstatic'
10382 case $cc_basename in
10383 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10384 lt_prog_compiler_wl='-Qoption ld ';;
10386 lt_prog_compiler_wl='-Wl,';;
10387 esac
10390 sunos4*)
10391 lt_prog_compiler_wl='-Qoption ld '
10392 lt_prog_compiler_pic='-PIC'
10393 lt_prog_compiler_static='-Bstatic'
10396 sysv4 | sysv4.2uw2* | sysv4.3*)
10397 lt_prog_compiler_wl='-Wl,'
10398 lt_prog_compiler_pic='-KPIC'
10399 lt_prog_compiler_static='-Bstatic'
10402 sysv4*MP*)
10403 if test -d /usr/nec; then
10404 lt_prog_compiler_pic='-Kconform_pic'
10405 lt_prog_compiler_static='-Bstatic'
10409 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10410 lt_prog_compiler_wl='-Wl,'
10411 lt_prog_compiler_pic='-KPIC'
10412 lt_prog_compiler_static='-Bstatic'
10415 unicos*)
10416 lt_prog_compiler_wl='-Wl,'
10417 lt_prog_compiler_can_build_shared=no
10420 uts4*)
10421 lt_prog_compiler_pic='-pic'
10422 lt_prog_compiler_static='-Bstatic'
10426 lt_prog_compiler_can_build_shared=no
10428 esac
10431 case $host_os in
10432 # For platforms that do not support PIC, -DPIC is meaningless:
10433 *djgpp*)
10434 lt_prog_compiler_pic=
10437 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10439 esac
10441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10442 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10443 if ${lt_cv_prog_compiler_pic+:} false; then :
10444 $as_echo_n "(cached) " >&6
10445 else
10446 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10449 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10450 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10453 # Check to make sure the PIC flag actually works.
10455 if test -n "$lt_prog_compiler_pic"; then
10456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10457 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10458 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10459 $as_echo_n "(cached) " >&6
10460 else
10461 lt_cv_prog_compiler_pic_works=no
10462 ac_outfile=conftest.$ac_objext
10463 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10464 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
10465 # Insert the option either (1) after the last *FLAGS variable, or
10466 # (2) before a word containing "conftest.", or (3) at the end.
10467 # Note that $ac_compile itself does not contain backslashes and begins
10468 # with a dollar sign (not a hyphen), so the echo should work correctly.
10469 # The option is referenced via a variable to avoid confusing sed.
10470 lt_compile=`echo "$ac_compile" | $SED \
10471 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10472 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10473 -e 's:$: $lt_compiler_flag:'`
10474 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10475 (eval "$lt_compile" 2>conftest.err)
10476 ac_status=$?
10477 cat conftest.err >&5
10478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10479 if (exit $ac_status) && test -s "$ac_outfile"; then
10480 # The compiler can only warn and ignore the option if not recognized
10481 # So say no if there are warnings other than the usual output.
10482 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10483 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10484 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10485 lt_cv_prog_compiler_pic_works=yes
10488 $RM conftest*
10491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10492 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10494 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10495 case $lt_prog_compiler_pic in
10496 "" | " "*) ;;
10497 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10498 esac
10499 else
10500 lt_prog_compiler_pic=
10501 lt_prog_compiler_can_build_shared=no
10517 # Check to make sure the static flag actually works.
10519 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10521 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10522 if ${lt_cv_prog_compiler_static_works+:} false; then :
10523 $as_echo_n "(cached) " >&6
10524 else
10525 lt_cv_prog_compiler_static_works=no
10526 save_LDFLAGS=$LDFLAGS
10527 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10528 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10529 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10530 # The linker can only warn and ignore the option if not recognized
10531 # So say no if there are warnings
10532 if test -s conftest.err; then
10533 # Append any errors to the config.log.
10534 cat conftest.err 1>&5
10535 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10536 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10537 if diff conftest.exp conftest.er2 >/dev/null; then
10538 lt_cv_prog_compiler_static_works=yes
10540 else
10541 lt_cv_prog_compiler_static_works=yes
10544 $RM -r conftest*
10545 LDFLAGS=$save_LDFLAGS
10548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10549 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10551 if test yes = "$lt_cv_prog_compiler_static_works"; then
10553 else
10554 lt_prog_compiler_static=
10563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10564 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10565 if ${lt_cv_prog_compiler_c_o+:} false; then :
10566 $as_echo_n "(cached) " >&6
10567 else
10568 lt_cv_prog_compiler_c_o=no
10569 $RM -r conftest 2>/dev/null
10570 mkdir conftest
10571 cd conftest
10572 mkdir out
10573 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10575 lt_compiler_flag="-o out/conftest2.$ac_objext"
10576 # Insert the option either (1) after the last *FLAGS variable, or
10577 # (2) before a word containing "conftest.", or (3) at the end.
10578 # Note that $ac_compile itself does not contain backslashes and begins
10579 # with a dollar sign (not a hyphen), so the echo should work correctly.
10580 lt_compile=`echo "$ac_compile" | $SED \
10581 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10582 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10583 -e 's:$: $lt_compiler_flag:'`
10584 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10585 (eval "$lt_compile" 2>out/conftest.err)
10586 ac_status=$?
10587 cat out/conftest.err >&5
10588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10589 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10590 then
10591 # The compiler can only warn and ignore the option if not recognized
10592 # So say no if there are warnings
10593 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10594 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10595 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10596 lt_cv_prog_compiler_c_o=yes
10599 chmod u+w . 2>&5
10600 $RM conftest*
10601 # SGI C++ compiler will create directory out/ii_files/ for
10602 # template instantiation
10603 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10604 $RM out/* && rmdir out
10605 cd ..
10606 $RM -r conftest
10607 $RM conftest*
10610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10611 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10619 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10620 if ${lt_cv_prog_compiler_c_o+:} false; then :
10621 $as_echo_n "(cached) " >&6
10622 else
10623 lt_cv_prog_compiler_c_o=no
10624 $RM -r conftest 2>/dev/null
10625 mkdir conftest
10626 cd conftest
10627 mkdir out
10628 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10630 lt_compiler_flag="-o out/conftest2.$ac_objext"
10631 # Insert the option either (1) after the last *FLAGS variable, or
10632 # (2) before a word containing "conftest.", or (3) at the end.
10633 # Note that $ac_compile itself does not contain backslashes and begins
10634 # with a dollar sign (not a hyphen), so the echo should work correctly.
10635 lt_compile=`echo "$ac_compile" | $SED \
10636 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10637 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10638 -e 's:$: $lt_compiler_flag:'`
10639 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10640 (eval "$lt_compile" 2>out/conftest.err)
10641 ac_status=$?
10642 cat out/conftest.err >&5
10643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10644 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10645 then
10646 # The compiler can only warn and ignore the option if not recognized
10647 # So say no if there are warnings
10648 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10649 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10650 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10651 lt_cv_prog_compiler_c_o=yes
10654 chmod u+w . 2>&5
10655 $RM conftest*
10656 # SGI C++ compiler will create directory out/ii_files/ for
10657 # template instantiation
10658 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10659 $RM out/* && rmdir out
10660 cd ..
10661 $RM -r conftest
10662 $RM conftest*
10665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10666 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10671 hard_links=nottested
10672 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10673 # do not overwrite the value of need_locks provided by the user
10674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10675 $as_echo_n "checking if we can lock with hard links... " >&6; }
10676 hard_links=yes
10677 $RM conftest*
10678 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10679 touch conftest.a
10680 ln conftest.a conftest.b 2>&5 || hard_links=no
10681 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10683 $as_echo "$hard_links" >&6; }
10684 if test no = "$hard_links"; then
10685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10686 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10687 need_locks=warn
10689 else
10690 need_locks=no
10698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10699 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10701 runpath_var=
10702 allow_undefined_flag=
10703 always_export_symbols=no
10704 archive_cmds=
10705 archive_expsym_cmds=
10706 compiler_needs_object=no
10707 enable_shared_with_static_runtimes=no
10708 export_dynamic_flag_spec=
10709 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10710 hardcode_automatic=no
10711 hardcode_direct=no
10712 hardcode_direct_absolute=no
10713 hardcode_libdir_flag_spec=
10714 hardcode_libdir_separator=
10715 hardcode_minus_L=no
10716 hardcode_shlibpath_var=unsupported
10717 inherit_rpath=no
10718 link_all_deplibs=unknown
10719 module_cmds=
10720 module_expsym_cmds=
10721 old_archive_from_new_cmds=
10722 old_archive_from_expsyms_cmds=
10723 thread_safe_flag_spec=
10724 whole_archive_flag_spec=
10725 # include_expsyms should be a list of space-separated symbols to be *always*
10726 # included in the symbol list
10727 include_expsyms=
10728 # exclude_expsyms can be an extended regexp of symbols to exclude
10729 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10730 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10731 # as well as any symbol that contains 'd'.
10732 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10733 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10734 # platforms (ab)use it in PIC code, but their linkers get confused if
10735 # the symbol is explicitly referenced. Since portable code cannot
10736 # rely on this symbol name, it's probably fine to never include it in
10737 # preloaded symbol tables.
10738 # Exclude shared library initialization/finalization symbols.
10739 extract_expsyms_cmds=
10741 case $host_os in
10742 cygwin* | mingw* | pw32* | cegcc*)
10743 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10744 # When not using gcc, we currently assume that we are using
10745 # Microsoft Visual C++.
10746 if test yes != "$GCC"; then
10747 with_gnu_ld=no
10750 interix*)
10751 # we just hope/assume this is gcc and not c89 (= MSVC++)
10752 with_gnu_ld=yes
10754 openbsd* | bitrig*)
10755 with_gnu_ld=no
10757 esac
10759 ld_shlibs=yes
10761 # On some targets, GNU ld is compatible enough with the native linker
10762 # that we're better off using the native interface for both.
10763 lt_use_gnu_ld_interface=no
10764 if test yes = "$with_gnu_ld"; then
10765 case $host_os in
10766 aix*)
10767 # The AIX port of GNU ld has always aspired to compatibility
10768 # with the native linker. However, as the warning in the GNU ld
10769 # block says, versions before 2.19.5* couldn't really create working
10770 # shared libraries, regardless of the interface used.
10771 case `$LD -v 2>&1` in
10772 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10773 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10774 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10776 lt_use_gnu_ld_interface=yes
10778 esac
10781 lt_use_gnu_ld_interface=yes
10783 esac
10786 if test yes = "$lt_use_gnu_ld_interface"; then
10787 # If archive_cmds runs LD, not CC, wlarc should be empty
10788 wlarc='$wl'
10790 # Set some defaults for GNU ld with shared library support. These
10791 # are reset later if shared libraries are not supported. Putting them
10792 # here allows them to be overridden if necessary.
10793 runpath_var=LD_RUN_PATH
10794 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10795 export_dynamic_flag_spec='$wl--export-dynamic'
10796 # ancient GNU ld didn't support --whole-archive et. al.
10797 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10798 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10799 else
10800 whole_archive_flag_spec=
10802 supports_anon_versioning=no
10803 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10804 *GNU\ gold*) supports_anon_versioning=yes ;;
10805 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10806 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10807 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10808 *\ 2.11.*) ;; # other 2.11 versions
10809 *) supports_anon_versioning=yes ;;
10810 esac
10812 # See if GNU ld supports shared libraries.
10813 case $host_os in
10814 aix[3-9]*)
10815 # On AIX/PPC, the GNU linker is very broken
10816 if test ia64 != "$host_cpu"; then
10817 ld_shlibs=no
10818 cat <<_LT_EOF 1>&2
10820 *** Warning: the GNU linker, at least up to release 2.19, is reported
10821 *** to be unable to reliably create shared libraries on AIX.
10822 *** Therefore, libtool is disabling shared libraries support. If you
10823 *** really care for shared libraries, you may want to install binutils
10824 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10825 *** You will then need to restart the configuration process.
10827 _LT_EOF
10831 amigaos*)
10832 case $host_cpu in
10833 powerpc)
10834 # see comment about AmigaOS4 .so support
10835 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10836 archive_expsym_cmds=''
10838 m68k)
10839 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)'
10840 hardcode_libdir_flag_spec='-L$libdir'
10841 hardcode_minus_L=yes
10843 esac
10846 beos*)
10847 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10848 allow_undefined_flag=unsupported
10849 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10850 # support --undefined. This deserves some investigation. FIXME
10851 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10852 else
10853 ld_shlibs=no
10857 cygwin* | mingw* | pw32* | cegcc*)
10858 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10859 # as there is no search path for DLLs.
10860 hardcode_libdir_flag_spec='-L$libdir'
10861 export_dynamic_flag_spec='$wl--export-all-symbols'
10862 allow_undefined_flag=unsupported
10863 always_export_symbols=no
10864 enable_shared_with_static_runtimes=yes
10865 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'
10866 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10868 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10869 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10870 # If the export-symbols file already is a .def file, use it as
10871 # is; otherwise, prepend EXPORTS...
10872 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10873 cp $export_symbols $output_objdir/$soname.def;
10874 else
10875 echo EXPORTS > $output_objdir/$soname.def;
10876 cat $export_symbols >> $output_objdir/$soname.def;
10878 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10879 else
10880 ld_shlibs=no
10884 haiku*)
10885 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10886 link_all_deplibs=yes
10889 os2*)
10890 hardcode_libdir_flag_spec='-L$libdir'
10891 hardcode_minus_L=yes
10892 allow_undefined_flag=unsupported
10893 shrext_cmds=.dll
10894 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10895 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10896 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10897 $ECHO EXPORTS >> $output_objdir/$libname.def~
10898 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10899 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10900 emximp -o $lib $output_objdir/$libname.def'
10901 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10902 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10903 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10904 $ECHO EXPORTS >> $output_objdir/$libname.def~
10905 prefix_cmds="$SED"~
10906 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10907 prefix_cmds="$prefix_cmds -e 1d";
10909 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10910 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10911 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10912 emximp -o $lib $output_objdir/$libname.def'
10913 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10914 enable_shared_with_static_runtimes=yes
10917 interix[3-9]*)
10918 hardcode_direct=no
10919 hardcode_shlibpath_var=no
10920 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10921 export_dynamic_flag_spec='$wl-E'
10922 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10923 # Instead, shared libraries are loaded at an image base (0x10000000 by
10924 # default) and relocated if they conflict, which is a slow very memory
10925 # consuming and fragmenting process. To avoid this, we pick a random,
10926 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10927 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10928 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10929 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'
10932 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10933 tmp_diet=no
10934 if test linux-dietlibc = "$host_os"; then
10935 case $cc_basename in
10936 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10937 esac
10939 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10940 && test no = "$tmp_diet"
10941 then
10942 tmp_addflag=' $pic_flag'
10943 tmp_sharedflag='-shared'
10944 case $cc_basename,$host_cpu in
10945 pgcc*) # Portland Group C compiler
10946 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'
10947 tmp_addflag=' $pic_flag'
10949 pgf77* | pgf90* | pgf95* | pgfortran*)
10950 # Portland Group f77 and f90 compilers
10951 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'
10952 tmp_addflag=' $pic_flag -Mnomain' ;;
10953 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10954 tmp_addflag=' -i_dynamic' ;;
10955 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10956 tmp_addflag=' -i_dynamic -nofor_main' ;;
10957 ifc* | ifort*) # Intel Fortran compiler
10958 tmp_addflag=' -nofor_main' ;;
10959 lf95*) # Lahey Fortran 8.1
10960 whole_archive_flag_spec=
10961 tmp_sharedflag='--shared' ;;
10962 nagfor*) # NAGFOR 5.3
10963 tmp_sharedflag='-Wl,-shared' ;;
10964 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10965 tmp_sharedflag='-qmkshrobj'
10966 tmp_addflag= ;;
10967 nvcc*) # Cuda Compiler Driver 2.2
10968 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'
10969 compiler_needs_object=yes
10971 esac
10972 case `$CC -V 2>&1 | sed 5q` in
10973 *Sun\ C*) # Sun C 5.9
10974 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'
10975 compiler_needs_object=yes
10976 tmp_sharedflag='-G' ;;
10977 *Sun\ F*) # Sun Fortran 8.3
10978 tmp_sharedflag='-G' ;;
10979 esac
10980 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10982 if test yes = "$supports_anon_versioning"; then
10983 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10984 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10985 echo "local: *; };" >> $output_objdir/$libname.ver~
10986 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10989 case $cc_basename in
10990 tcc*)
10991 export_dynamic_flag_spec='-rdynamic'
10993 xlf* | bgf* | bgxlf* | mpixlf*)
10994 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10995 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10996 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10997 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10998 if test yes = "$supports_anon_versioning"; then
10999 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11000 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11001 echo "local: *; };" >> $output_objdir/$libname.ver~
11002 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11005 esac
11006 else
11007 ld_shlibs=no
11011 netbsd*)
11012 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11013 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11014 wlarc=
11015 else
11016 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11017 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11021 solaris*)
11022 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11023 ld_shlibs=no
11024 cat <<_LT_EOF 1>&2
11026 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11027 *** create shared libraries on Solaris systems. Therefore, libtool
11028 *** is disabling shared libraries support. We urge you to upgrade GNU
11029 *** binutils to release 2.9.1 or newer. Another option is to modify
11030 *** your PATH or compiler configuration so that the native linker is
11031 *** used, and then restart.
11033 _LT_EOF
11034 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11035 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11036 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11037 else
11038 ld_shlibs=no
11042 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11043 case `$LD -v 2>&1` in
11044 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11045 ld_shlibs=no
11046 cat <<_LT_EOF 1>&2
11048 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11049 *** reliably create shared libraries on SCO systems. Therefore, libtool
11050 *** is disabling shared libraries support. We urge you to upgrade GNU
11051 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11052 *** your PATH or compiler configuration so that the native linker is
11053 *** used, and then restart.
11055 _LT_EOF
11058 # For security reasons, it is highly recommended that you always
11059 # use absolute paths for naming shared libraries, and exclude the
11060 # DT_RUNPATH tag from executables and libraries. But doing so
11061 # requires that you compile everything twice, which is a pain.
11062 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11063 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11064 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11065 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11066 else
11067 ld_shlibs=no
11070 esac
11073 sunos4*)
11074 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11075 wlarc=
11076 hardcode_direct=yes
11077 hardcode_shlibpath_var=no
11081 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11082 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11083 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11084 else
11085 ld_shlibs=no
11088 esac
11090 if test no = "$ld_shlibs"; then
11091 runpath_var=
11092 hardcode_libdir_flag_spec=
11093 export_dynamic_flag_spec=
11094 whole_archive_flag_spec=
11096 else
11097 # PORTME fill in a description of your system's linker (not GNU ld)
11098 case $host_os in
11099 aix3*)
11100 allow_undefined_flag=unsupported
11101 always_export_symbols=yes
11102 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'
11103 # Note: this linker hardcodes the directories in LIBPATH if there
11104 # are no directories specified by -L.
11105 hardcode_minus_L=yes
11106 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11107 # Neither direct hardcoding nor static linking is supported with a
11108 # broken collect2.
11109 hardcode_direct=unsupported
11113 aix[4-9]*)
11114 if test ia64 = "$host_cpu"; then
11115 # On IA64, the linker does run time linking by default, so we don't
11116 # have to do anything special.
11117 aix_use_runtimelinking=no
11118 exp_sym_flag='-Bexport'
11119 no_entry_flag=
11120 else
11121 # If we're using GNU nm, then we don't want the "-C" option.
11122 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
11123 # Without the "-l" option, or with the "-B" option, AIX nm treats
11124 # weak defined symbols like other global defined symbols, whereas
11125 # GNU nm marks them as "W".
11126 # While the 'weak' keyword is ignored in the Export File, we need
11127 # it in the Import File for the 'aix-soname' feature, so we have
11128 # to replace the "-B" option with "-P" for AIX nm.
11129 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11130 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'
11131 else
11132 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'
11134 aix_use_runtimelinking=no
11136 # Test if we are trying to use run time linking or normal
11137 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11138 # have runtime linking enabled, and use it for executables.
11139 # For shared libraries, we enable/disable runtime linking
11140 # depending on the kind of the shared library created -
11141 # when "with_aix_soname,aix_use_runtimelinking" is:
11142 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
11143 # "aix,yes" lib.so shared, rtl:yes, for executables
11144 # lib.a static archive
11145 # "both,no" lib.so.V(shr.o) shared, rtl:yes
11146 # lib.a(lib.so.V) shared, rtl:no, for executables
11147 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11148 # lib.a(lib.so.V) shared, rtl:no
11149 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
11150 # lib.a static archive
11151 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11152 for ld_flag in $LDFLAGS; do
11153 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11154 aix_use_runtimelinking=yes
11155 break
11157 done
11158 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11159 # With aix-soname=svr4, we create the lib.so.V shared archives only,
11160 # so we don't have lib.a shared libs to link our executables.
11161 # We have to force runtime linking in this case.
11162 aix_use_runtimelinking=yes
11163 LDFLAGS="$LDFLAGS -Wl,-brtl"
11166 esac
11168 exp_sym_flag='-bexport'
11169 no_entry_flag='-bnoentry'
11172 # When large executables or shared objects are built, AIX ld can
11173 # have problems creating the table of contents. If linking a library
11174 # or program results in "error TOC overflow" add -mminimal-toc to
11175 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11176 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11178 archive_cmds=''
11179 hardcode_direct=yes
11180 hardcode_direct_absolute=yes
11181 hardcode_libdir_separator=':'
11182 link_all_deplibs=yes
11183 file_list_spec='$wl-f,'
11184 case $with_aix_soname,$aix_use_runtimelinking in
11185 aix,*) ;; # traditional, no import file
11186 svr4,* | *,yes) # use import file
11187 # The Import File defines what to hardcode.
11188 hardcode_direct=no
11189 hardcode_direct_absolute=no
11191 esac
11193 if test yes = "$GCC"; then
11194 case $host_os in aix4.[012]|aix4.[012].*)
11195 # We only want to do this on AIX 4.2 and lower, the check
11196 # below for broken collect2 doesn't work under 4.3+
11197 collect2name=`$CC -print-prog-name=collect2`
11198 if test -f "$collect2name" &&
11199 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11200 then
11201 # We have reworked collect2
11203 else
11204 # We have old collect2
11205 hardcode_direct=unsupported
11206 # It fails to find uninstalled libraries when the uninstalled
11207 # path is not listed in the libpath. Setting hardcode_minus_L
11208 # to unsupported forces relinking
11209 hardcode_minus_L=yes
11210 hardcode_libdir_flag_spec='-L$libdir'
11211 hardcode_libdir_separator=
11214 esac
11215 shared_flag='-shared'
11216 if test yes = "$aix_use_runtimelinking"; then
11217 shared_flag="$shared_flag "'$wl-G'
11219 # Need to ensure runtime linking is disabled for the traditional
11220 # shared library, or the linker may eventually find shared libraries
11221 # /with/ Import File - we do not want to mix them.
11222 shared_flag_aix='-shared'
11223 shared_flag_svr4='-shared $wl-G'
11224 else
11225 # not using gcc
11226 if test ia64 = "$host_cpu"; then
11227 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11228 # chokes on -Wl,-G. The following line is correct:
11229 shared_flag='-G'
11230 else
11231 if test yes = "$aix_use_runtimelinking"; then
11232 shared_flag='$wl-G'
11233 else
11234 shared_flag='$wl-bM:SRE'
11236 shared_flag_aix='$wl-bM:SRE'
11237 shared_flag_svr4='$wl-G'
11241 export_dynamic_flag_spec='$wl-bexpall'
11242 # It seems that -bexpall does not export symbols beginning with
11243 # underscore (_), so it is better to generate a list of symbols to export.
11244 always_export_symbols=yes
11245 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11246 # Warning - without using the other runtime loading flags (-brtl),
11247 # -berok will link without error, but may produce a broken library.
11248 allow_undefined_flag='-berok'
11249 # Determine the default libpath from the value encoded in an
11250 # empty executable.
11251 if test set = "${lt_cv_aix_libpath+set}"; then
11252 aix_libpath=$lt_cv_aix_libpath
11253 else
11254 if ${lt_cv_aix_libpath_+:} false; then :
11255 $as_echo_n "(cached) " >&6
11256 else
11257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11258 /* end confdefs.h. */
11261 main ()
11265 return 0;
11267 _ACEOF
11268 if ac_fn_c_try_link "$LINENO"; then :
11270 lt_aix_libpath_sed='
11271 /Import File Strings/,/^$/ {
11272 /^0/ {
11273 s/^0 *\([^ ]*\) *$/\1/
11277 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11278 # Check for a 64-bit object if we didn't find anything.
11279 if test -z "$lt_cv_aix_libpath_"; then
11280 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11283 rm -f core conftest.err conftest.$ac_objext \
11284 conftest$ac_exeext conftest.$ac_ext
11285 if test -z "$lt_cv_aix_libpath_"; then
11286 lt_cv_aix_libpath_=/usr/lib:/lib
11291 aix_libpath=$lt_cv_aix_libpath_
11294 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11295 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
11296 else
11297 if test ia64 = "$host_cpu"; then
11298 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11299 allow_undefined_flag="-z nodefs"
11300 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"
11301 else
11302 # Determine the default libpath from the value encoded in an
11303 # empty executable.
11304 if test set = "${lt_cv_aix_libpath+set}"; then
11305 aix_libpath=$lt_cv_aix_libpath
11306 else
11307 if ${lt_cv_aix_libpath_+:} false; then :
11308 $as_echo_n "(cached) " >&6
11309 else
11310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11311 /* end confdefs.h. */
11314 main ()
11318 return 0;
11320 _ACEOF
11321 if ac_fn_c_try_link "$LINENO"; then :
11323 lt_aix_libpath_sed='
11324 /Import File Strings/,/^$/ {
11325 /^0/ {
11326 s/^0 *\([^ ]*\) *$/\1/
11330 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11331 # Check for a 64-bit object if we didn't find anything.
11332 if test -z "$lt_cv_aix_libpath_"; then
11333 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11336 rm -f core conftest.err conftest.$ac_objext \
11337 conftest$ac_exeext conftest.$ac_ext
11338 if test -z "$lt_cv_aix_libpath_"; then
11339 lt_cv_aix_libpath_=/usr/lib:/lib
11344 aix_libpath=$lt_cv_aix_libpath_
11347 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11348 # Warning - without using the other run time loading flags,
11349 # -berok will link without error, but may produce a broken library.
11350 no_undefined_flag=' $wl-bernotok'
11351 allow_undefined_flag=' $wl-berok'
11352 if test yes = "$with_gnu_ld"; then
11353 # We only use this code for GNU lds that support --whole-archive.
11354 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11355 else
11356 # Exported symbols can be pulled into shared objects from archives
11357 whole_archive_flag_spec='$convenience'
11359 archive_cmds_need_lc=yes
11360 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11361 # -brtl affects multiple linker settings, -berok does not and is overridden later
11362 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11363 if test svr4 != "$with_aix_soname"; then
11364 # This is similar to how AIX traditionally builds its shared libraries.
11365 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'
11367 if test aix != "$with_aix_soname"; then
11368 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'
11369 else
11370 # used by -dlpreopen to get the symbols
11371 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
11373 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11378 amigaos*)
11379 case $host_cpu in
11380 powerpc)
11381 # see comment about AmigaOS4 .so support
11382 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11383 archive_expsym_cmds=''
11385 m68k)
11386 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)'
11387 hardcode_libdir_flag_spec='-L$libdir'
11388 hardcode_minus_L=yes
11390 esac
11393 bsdi[45]*)
11394 export_dynamic_flag_spec=-rdynamic
11397 cygwin* | mingw* | pw32* | cegcc*)
11398 # When not using gcc, we currently assume that we are using
11399 # Microsoft Visual C++.
11400 # hardcode_libdir_flag_spec is actually meaningless, as there is
11401 # no search path for DLLs.
11402 case $cc_basename in
11403 cl*)
11404 # Native MSVC
11405 hardcode_libdir_flag_spec=' '
11406 allow_undefined_flag=unsupported
11407 always_export_symbols=yes
11408 file_list_spec='@'
11409 # Tell ltmain to make .lib files, not .a files.
11410 libext=lib
11411 # Tell ltmain to make .dll files, not .so files.
11412 shrext_cmds=.dll
11413 # FIXME: Setting linknames here is a bad hack.
11414 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11415 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11416 cp "$export_symbols" "$output_objdir/$soname.def";
11417 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11418 else
11419 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11421 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11422 linknames='
11423 # The linker will not automatically build a static lib if we build a DLL.
11424 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11425 enable_shared_with_static_runtimes=yes
11426 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11427 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11428 # Don't use ranlib
11429 old_postinstall_cmds='chmod 644 $oldlib'
11430 postlink_cmds='lt_outputfile="@OUTPUT@"~
11431 lt_tool_outputfile="@TOOL_OUTPUT@"~
11432 case $lt_outputfile in
11433 *.exe|*.EXE) ;;
11435 lt_outputfile=$lt_outputfile.exe
11436 lt_tool_outputfile=$lt_tool_outputfile.exe
11438 esac~
11439 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11440 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11441 $RM "$lt_outputfile.manifest";
11445 # Assume MSVC wrapper
11446 hardcode_libdir_flag_spec=' '
11447 allow_undefined_flag=unsupported
11448 # Tell ltmain to make .lib files, not .a files.
11449 libext=lib
11450 # Tell ltmain to make .dll files, not .so files.
11451 shrext_cmds=.dll
11452 # FIXME: Setting linknames here is a bad hack.
11453 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11454 # The linker will automatically build a .lib file if we build a DLL.
11455 old_archive_from_new_cmds='true'
11456 # FIXME: Should let the user specify the lib program.
11457 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11458 enable_shared_with_static_runtimes=yes
11460 esac
11463 darwin* | rhapsody*)
11466 archive_cmds_need_lc=no
11467 hardcode_direct=no
11468 hardcode_automatic=yes
11469 hardcode_shlibpath_var=unsupported
11470 if test yes = "$lt_cv_ld_force_load"; then
11471 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\"`'
11473 else
11474 whole_archive_flag_spec=''
11476 link_all_deplibs=yes
11477 allow_undefined_flag=$_lt_dar_allow_undefined
11478 case $cc_basename in
11479 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11480 *) _lt_dar_can_shared=$GCC ;;
11481 esac
11482 if test yes = "$_lt_dar_can_shared"; then
11483 output_verbose_link_cmd=func_echo_all
11484 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11485 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11486 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"
11487 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"
11489 else
11490 ld_shlibs=no
11495 dgux*)
11496 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11497 hardcode_libdir_flag_spec='-L$libdir'
11498 hardcode_shlibpath_var=no
11501 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11502 # support. Future versions do this automatically, but an explicit c++rt0.o
11503 # does not break anything, and helps significantly (at the cost of a little
11504 # extra space).
11505 freebsd2.2*)
11506 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11507 hardcode_libdir_flag_spec='-R$libdir'
11508 hardcode_direct=yes
11509 hardcode_shlibpath_var=no
11512 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11513 freebsd2.*)
11514 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11515 hardcode_direct=yes
11516 hardcode_minus_L=yes
11517 hardcode_shlibpath_var=no
11520 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11521 freebsd* | dragonfly*)
11522 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11523 hardcode_libdir_flag_spec='-R$libdir'
11524 hardcode_direct=yes
11525 hardcode_shlibpath_var=no
11528 hpux9*)
11529 if test yes = "$GCC"; then
11530 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'
11531 else
11532 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'
11534 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11535 hardcode_libdir_separator=:
11536 hardcode_direct=yes
11538 # hardcode_minus_L: Not really in the search PATH,
11539 # but as the default location of the library.
11540 hardcode_minus_L=yes
11541 export_dynamic_flag_spec='$wl-E'
11544 hpux10*)
11545 if test yes,no = "$GCC,$with_gnu_ld"; then
11546 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11547 else
11548 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11550 if test no = "$with_gnu_ld"; then
11551 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11552 hardcode_libdir_separator=:
11553 hardcode_direct=yes
11554 hardcode_direct_absolute=yes
11555 export_dynamic_flag_spec='$wl-E'
11556 # hardcode_minus_L: Not really in the search PATH,
11557 # but as the default location of the library.
11558 hardcode_minus_L=yes
11562 hpux11*)
11563 if test yes,no = "$GCC,$with_gnu_ld"; then
11564 case $host_cpu in
11565 hppa*64*)
11566 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11568 ia64*)
11569 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11572 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11574 esac
11575 else
11576 case $host_cpu in
11577 hppa*64*)
11578 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11580 ia64*)
11581 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11585 # Older versions of the 11.00 compiler do not understand -b yet
11586 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11588 $as_echo_n "checking if $CC understands -b... " >&6; }
11589 if ${lt_cv_prog_compiler__b+:} false; then :
11590 $as_echo_n "(cached) " >&6
11591 else
11592 lt_cv_prog_compiler__b=no
11593 save_LDFLAGS=$LDFLAGS
11594 LDFLAGS="$LDFLAGS -b"
11595 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11596 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11597 # The linker can only warn and ignore the option if not recognized
11598 # So say no if there are warnings
11599 if test -s conftest.err; then
11600 # Append any errors to the config.log.
11601 cat conftest.err 1>&5
11602 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11603 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11604 if diff conftest.exp conftest.er2 >/dev/null; then
11605 lt_cv_prog_compiler__b=yes
11607 else
11608 lt_cv_prog_compiler__b=yes
11611 $RM -r conftest*
11612 LDFLAGS=$save_LDFLAGS
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11616 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11618 if test yes = "$lt_cv_prog_compiler__b"; then
11619 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11620 else
11621 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11625 esac
11627 if test no = "$with_gnu_ld"; then
11628 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11629 hardcode_libdir_separator=:
11631 case $host_cpu in
11632 hppa*64*|ia64*)
11633 hardcode_direct=no
11634 hardcode_shlibpath_var=no
11637 hardcode_direct=yes
11638 hardcode_direct_absolute=yes
11639 export_dynamic_flag_spec='$wl-E'
11641 # hardcode_minus_L: Not really in the search PATH,
11642 # but as the default location of the library.
11643 hardcode_minus_L=yes
11645 esac
11649 irix5* | irix6* | nonstopux*)
11650 if test yes = "$GCC"; then
11651 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'
11652 # Try to use the -exported_symbol ld option, if it does not
11653 # work, assume that -exports_file does not work either and
11654 # implicitly export all symbols.
11655 # This should be the same for all languages, so no per-tag cache variable.
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11657 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11658 if ${lt_cv_irix_exported_symbol+:} false; then :
11659 $as_echo_n "(cached) " >&6
11660 else
11661 save_LDFLAGS=$LDFLAGS
11662 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11664 /* end confdefs.h. */
11665 int foo (void) { return 0; }
11666 _ACEOF
11667 if ac_fn_c_try_link "$LINENO"; then :
11668 lt_cv_irix_exported_symbol=yes
11669 else
11670 lt_cv_irix_exported_symbol=no
11672 rm -f core conftest.err conftest.$ac_objext \
11673 conftest$ac_exeext conftest.$ac_ext
11674 LDFLAGS=$save_LDFLAGS
11676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11677 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11678 if test yes = "$lt_cv_irix_exported_symbol"; then
11679 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'
11681 else
11682 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'
11683 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'
11685 archive_cmds_need_lc='no'
11686 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11687 hardcode_libdir_separator=:
11688 inherit_rpath=yes
11689 link_all_deplibs=yes
11692 linux*)
11693 case $cc_basename in
11694 tcc*)
11695 # Fabrice Bellard et al's Tiny C Compiler
11696 ld_shlibs=yes
11697 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11699 esac
11702 netbsd*)
11703 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11704 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11705 else
11706 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11708 hardcode_libdir_flag_spec='-R$libdir'
11709 hardcode_direct=yes
11710 hardcode_shlibpath_var=no
11713 newsos6)
11714 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11715 hardcode_direct=yes
11716 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11717 hardcode_libdir_separator=:
11718 hardcode_shlibpath_var=no
11721 *nto* | *qnx*)
11724 openbsd* | bitrig*)
11725 if test -f /usr/libexec/ld.so; then
11726 hardcode_direct=yes
11727 hardcode_shlibpath_var=no
11728 hardcode_direct_absolute=yes
11729 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11730 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11731 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11732 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11733 export_dynamic_flag_spec='$wl-E'
11734 else
11735 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11736 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11738 else
11739 ld_shlibs=no
11743 os2*)
11744 hardcode_libdir_flag_spec='-L$libdir'
11745 hardcode_minus_L=yes
11746 allow_undefined_flag=unsupported
11747 shrext_cmds=.dll
11748 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11749 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11750 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11751 $ECHO EXPORTS >> $output_objdir/$libname.def~
11752 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11753 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11754 emximp -o $lib $output_objdir/$libname.def'
11755 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11756 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11757 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11758 $ECHO EXPORTS >> $output_objdir/$libname.def~
11759 prefix_cmds="$SED"~
11760 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11761 prefix_cmds="$prefix_cmds -e 1d";
11763 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11764 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11765 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11766 emximp -o $lib $output_objdir/$libname.def'
11767 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11768 enable_shared_with_static_runtimes=yes
11771 osf3*)
11772 if test yes = "$GCC"; then
11773 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11774 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'
11775 else
11776 allow_undefined_flag=' -expect_unresolved \*'
11777 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'
11779 archive_cmds_need_lc='no'
11780 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11781 hardcode_libdir_separator=:
11784 osf4* | osf5*) # as osf3* with the addition of -msym flag
11785 if test yes = "$GCC"; then
11786 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11787 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'
11788 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11789 else
11790 allow_undefined_flag=' -expect_unresolved \*'
11791 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'
11792 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~
11793 $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'
11795 # Both c and cxx compiler support -rpath directly
11796 hardcode_libdir_flag_spec='-rpath $libdir'
11798 archive_cmds_need_lc='no'
11799 hardcode_libdir_separator=:
11802 solaris*)
11803 no_undefined_flag=' -z defs'
11804 if test yes = "$GCC"; then
11805 wlarc='$wl'
11806 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11807 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11808 $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'
11809 else
11810 case `$CC -V 2>&1` in
11811 *"Compilers 5.0"*)
11812 wlarc=''
11813 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11814 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11815 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11818 wlarc='$wl'
11819 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11820 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11821 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11823 esac
11825 hardcode_libdir_flag_spec='-R$libdir'
11826 hardcode_shlibpath_var=no
11827 case $host_os in
11828 solaris2.[0-5] | solaris2.[0-5].*) ;;
11830 # The compiler driver will combine and reorder linker options,
11831 # but understands '-z linker_flag'. GCC discards it without '$wl',
11832 # but is careful enough not to reorder.
11833 # Supported since Solaris 2.6 (maybe 2.5.1?)
11834 if test yes = "$GCC"; then
11835 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11836 else
11837 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11840 esac
11841 link_all_deplibs=yes
11844 sunos4*)
11845 if test sequent = "$host_vendor"; then
11846 # Use $CC to link under sequent, because it throws in some extra .o
11847 # files that make .init and .fini sections work.
11848 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11849 else
11850 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11852 hardcode_libdir_flag_spec='-L$libdir'
11853 hardcode_direct=yes
11854 hardcode_minus_L=yes
11855 hardcode_shlibpath_var=no
11858 sysv4)
11859 case $host_vendor in
11860 sni)
11861 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11862 hardcode_direct=yes # is this really true???
11864 siemens)
11865 ## LD is ld it makes a PLAMLIB
11866 ## CC just makes a GrossModule.
11867 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11868 reload_cmds='$CC -r -o $output$reload_objs'
11869 hardcode_direct=no
11871 motorola)
11872 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11873 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11875 esac
11876 runpath_var='LD_RUN_PATH'
11877 hardcode_shlibpath_var=no
11880 sysv4.3*)
11881 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11882 hardcode_shlibpath_var=no
11883 export_dynamic_flag_spec='-Bexport'
11886 sysv4*MP*)
11887 if test -d /usr/nec; then
11888 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11889 hardcode_shlibpath_var=no
11890 runpath_var=LD_RUN_PATH
11891 hardcode_runpath_var=yes
11892 ld_shlibs=yes
11896 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11897 no_undefined_flag='$wl-z,text'
11898 archive_cmds_need_lc=no
11899 hardcode_shlibpath_var=no
11900 runpath_var='LD_RUN_PATH'
11902 if test yes = "$GCC"; then
11903 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11904 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11905 else
11906 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11907 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11911 sysv5* | sco3.2v5* | sco5v6*)
11912 # Note: We CANNOT use -z defs as we might desire, because we do not
11913 # link with -lc, and that would cause any symbols used from libc to
11914 # always be unresolved, which means just about no library would
11915 # ever link correctly. If we're not using GNU ld we use -z text
11916 # though, which does catch some bad symbols but isn't as heavy-handed
11917 # as -z defs.
11918 no_undefined_flag='$wl-z,text'
11919 allow_undefined_flag='$wl-z,nodefs'
11920 archive_cmds_need_lc=no
11921 hardcode_shlibpath_var=no
11922 hardcode_libdir_flag_spec='$wl-R,$libdir'
11923 hardcode_libdir_separator=':'
11924 link_all_deplibs=yes
11925 export_dynamic_flag_spec='$wl-Bexport'
11926 runpath_var='LD_RUN_PATH'
11928 if test yes = "$GCC"; then
11929 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11930 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11931 else
11932 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11933 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11937 uts4*)
11938 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11939 hardcode_libdir_flag_spec='-L$libdir'
11940 hardcode_shlibpath_var=no
11944 ld_shlibs=no
11946 esac
11948 if test sni = "$host_vendor"; then
11949 case $host in
11950 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11951 export_dynamic_flag_spec='$wl-Blargedynsym'
11953 esac
11957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11958 $as_echo "$ld_shlibs" >&6; }
11959 test no = "$ld_shlibs" && can_build_shared=no
11961 with_gnu_ld=$with_gnu_ld
11978 # Do we need to explicitly link libc?
11980 case "x$archive_cmds_need_lc" in
11981 x|xyes)
11982 # Assume -lc should be added
11983 archive_cmds_need_lc=yes
11985 if test yes,yes = "$GCC,$enable_shared"; then
11986 case $archive_cmds in
11987 *'~'*)
11988 # FIXME: we may have to deal with multi-command sequences.
11990 '$CC '*)
11991 # Test whether the compiler implicitly links with -lc since on some
11992 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11993 # to ld, don't add -lc before -lgcc.
11994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11995 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11996 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11997 $as_echo_n "(cached) " >&6
11998 else
11999 $RM conftest*
12000 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12002 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12003 (eval $ac_compile) 2>&5
12004 ac_status=$?
12005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12006 test $ac_status = 0; } 2>conftest.err; then
12007 soname=conftest
12008 lib=conftest
12009 libobjs=conftest.$ac_objext
12010 deplibs=
12011 wl=$lt_prog_compiler_wl
12012 pic_flag=$lt_prog_compiler_pic
12013 compiler_flags=-v
12014 linker_flags=-v
12015 verstring=
12016 output_objdir=.
12017 libname=conftest
12018 lt_save_allow_undefined_flag=$allow_undefined_flag
12019 allow_undefined_flag=
12020 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12021 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12022 ac_status=$?
12023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12024 test $ac_status = 0; }
12025 then
12026 lt_cv_archive_cmds_need_lc=no
12027 else
12028 lt_cv_archive_cmds_need_lc=yes
12030 allow_undefined_flag=$lt_save_allow_undefined_flag
12031 else
12032 cat conftest.err 1>&5
12034 $RM conftest*
12037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12038 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12039 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12041 esac
12044 esac
12197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12198 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12200 if test yes = "$GCC"; then
12201 case $host_os in
12202 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12203 *) lt_awk_arg='/^libraries:/' ;;
12204 esac
12205 case $host_os in
12206 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12207 *) lt_sed_strip_eq='s|=/|/|g' ;;
12208 esac
12209 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12210 case $lt_search_path_spec in
12211 *\;*)
12212 # if the path contains ";" then we assume it to be the separator
12213 # otherwise default to the standard path separator (i.e. ":") - it is
12214 # assumed that no part of a normal pathname contains ";" but that should
12215 # okay in the real world where ";" in dirpaths is itself problematic.
12216 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12219 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12221 esac
12222 # Ok, now we have the path, separated by spaces, we can step through it
12223 # and add multilib dir if necessary...
12224 lt_tmp_lt_search_path_spec=
12225 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12226 # ...but if some path component already ends with the multilib dir we assume
12227 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12228 case "$lt_multi_os_dir; $lt_search_path_spec " in
12229 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12230 lt_multi_os_dir=
12232 esac
12233 for lt_sys_path in $lt_search_path_spec; do
12234 if test -d "$lt_sys_path$lt_multi_os_dir"; then
12235 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12236 elif test -n "$lt_multi_os_dir"; then
12237 test -d "$lt_sys_path" && \
12238 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12240 done
12241 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12242 BEGIN {RS = " "; FS = "/|\n";} {
12243 lt_foo = "";
12244 lt_count = 0;
12245 for (lt_i = NF; lt_i > 0; lt_i--) {
12246 if ($lt_i != "" && $lt_i != ".") {
12247 if ($lt_i == "..") {
12248 lt_count++;
12249 } else {
12250 if (lt_count == 0) {
12251 lt_foo = "/" $lt_i lt_foo;
12252 } else {
12253 lt_count--;
12258 if (lt_foo != "") { lt_freq[lt_foo]++; }
12259 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12261 # AWK program above erroneously prepends '/' to C:/dos/paths
12262 # for these hosts.
12263 case $host_os in
12264 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12265 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12266 esac
12267 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12268 else
12269 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12271 library_names_spec=
12272 libname_spec='lib$name'
12273 soname_spec=
12274 shrext_cmds=.so
12275 postinstall_cmds=
12276 postuninstall_cmds=
12277 finish_cmds=
12278 finish_eval=
12279 shlibpath_var=
12280 shlibpath_overrides_runpath=unknown
12281 version_type=none
12282 dynamic_linker="$host_os ld.so"
12283 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12284 need_lib_prefix=unknown
12285 hardcode_into_libs=no
12287 # when you set need_version to no, make sure it does not cause -set_version
12288 # flags to be left without arguments
12289 need_version=unknown
12293 case $host_os in
12294 aix3*)
12295 version_type=linux # correct to gnu/linux during the next big refactor
12296 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12297 shlibpath_var=LIBPATH
12299 # AIX 3 has no versioning support, so we append a major version to the name.
12300 soname_spec='$libname$release$shared_ext$major'
12303 aix[4-9]*)
12304 version_type=linux # correct to gnu/linux during the next big refactor
12305 need_lib_prefix=no
12306 need_version=no
12307 hardcode_into_libs=yes
12308 if test ia64 = "$host_cpu"; then
12309 # AIX 5 supports IA64
12310 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12311 shlibpath_var=LD_LIBRARY_PATH
12312 else
12313 # With GCC up to 2.95.x, collect2 would create an import file
12314 # for dependence libraries. The import file would start with
12315 # the line '#! .'. This would cause the generated library to
12316 # depend on '.', always an invalid library. This was fixed in
12317 # development snapshots of GCC prior to 3.0.
12318 case $host_os in
12319 aix4 | aix4.[01] | aix4.[01].*)
12320 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12321 echo ' yes '
12322 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12324 else
12325 can_build_shared=no
12328 esac
12329 # Using Import Files as archive members, it is possible to support
12330 # filename-based versioning of shared library archives on AIX. While
12331 # this would work for both with and without runtime linking, it will
12332 # prevent static linking of such archives. So we do filename-based
12333 # shared library versioning with .so extension only, which is used
12334 # when both runtime linking and shared linking is enabled.
12335 # Unfortunately, runtime linking may impact performance, so we do
12336 # not want this to be the default eventually. Also, we use the
12337 # versioned .so libs for executables only if there is the -brtl
12338 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
12339 # To allow for filename-based versioning support, we need to create
12340 # libNAME.so.V as an archive file, containing:
12341 # *) an Import File, referring to the versioned filename of the
12342 # archive as well as the shared archive member, telling the
12343 # bitwidth (32 or 64) of that shared object, and providing the
12344 # list of exported symbols of that shared object, eventually
12345 # decorated with the 'weak' keyword
12346 # *) the shared object with the F_LOADONLY flag set, to really avoid
12347 # it being seen by the linker.
12348 # At run time we better use the real file rather than another symlink,
12349 # but for link time we create the symlink libNAME.so -> libNAME.so.V
12351 case $with_aix_soname,$aix_use_runtimelinking in
12352 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12353 # soname into executable. Probably we can add versioning support to
12354 # collect2, so additional links can be useful in future.
12355 aix,yes) # traditional libtool
12356 dynamic_linker='AIX unversionable lib.so'
12357 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12358 # instead of lib<name>.a to let people know that these are not
12359 # typical AIX shared libraries.
12360 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12362 aix,no) # traditional AIX only
12363 dynamic_linker='AIX lib.a(lib.so.V)'
12364 # We preserve .a as extension for shared libraries through AIX4.2
12365 # and later when we are not doing run time linking.
12366 library_names_spec='$libname$release.a $libname.a'
12367 soname_spec='$libname$release$shared_ext$major'
12369 svr4,*) # full svr4 only
12370 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12371 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12372 # We do not specify a path in Import Files, so LIBPATH fires.
12373 shlibpath_overrides_runpath=yes
12375 *,yes) # both, prefer svr4
12376 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12377 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12378 # unpreferred sharedlib libNAME.a needs extra handling
12379 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"'
12380 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"'
12381 # We do not specify a path in Import Files, so LIBPATH fires.
12382 shlibpath_overrides_runpath=yes
12384 *,no) # both, prefer aix
12385 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12386 library_names_spec='$libname$release.a $libname.a'
12387 soname_spec='$libname$release$shared_ext$major'
12388 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12389 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)'
12390 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"'
12392 esac
12393 shlibpath_var=LIBPATH
12397 amigaos*)
12398 case $host_cpu in
12399 powerpc)
12400 # Since July 2007 AmigaOS4 officially supports .so libraries.
12401 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12402 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12404 m68k)
12405 library_names_spec='$libname.ixlibrary $libname.a'
12406 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12407 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'
12409 esac
12412 beos*)
12413 library_names_spec='$libname$shared_ext'
12414 dynamic_linker="$host_os ld.so"
12415 shlibpath_var=LIBRARY_PATH
12418 bsdi[45]*)
12419 version_type=linux # correct to gnu/linux during the next big refactor
12420 need_version=no
12421 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12422 soname_spec='$libname$release$shared_ext$major'
12423 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12424 shlibpath_var=LD_LIBRARY_PATH
12425 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12426 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12427 # the default ld.so.conf also contains /usr/contrib/lib and
12428 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12429 # libtool to hard-code these into programs
12432 cygwin* | mingw* | pw32* | cegcc*)
12433 version_type=windows
12434 shrext_cmds=.dll
12435 need_version=no
12436 need_lib_prefix=no
12438 case $GCC,$cc_basename in
12439 yes,*)
12440 # gcc
12441 library_names_spec='$libname.dll.a'
12442 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12443 postinstall_cmds='base_file=`basename \$file`~
12444 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12445 dldir=$destdir/`dirname \$dlpath`~
12446 test -d \$dldir || mkdir -p \$dldir~
12447 $install_prog $dir/$dlname \$dldir/$dlname~
12448 chmod a+x \$dldir/$dlname~
12449 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12450 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12452 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12453 dlpath=$dir/\$dldll~
12454 $RM \$dlpath'
12455 shlibpath_overrides_runpath=yes
12457 case $host_os in
12458 cygwin*)
12459 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12460 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12462 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12464 mingw* | cegcc*)
12465 # MinGW DLLs use traditional 'lib' prefix
12466 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12468 pw32*)
12469 # pw32 DLLs use 'pw' prefix rather than 'lib'
12470 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12472 esac
12473 dynamic_linker='Win32 ld.exe'
12476 *,cl*)
12477 # Native MSVC
12478 libname_spec='$name'
12479 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12480 library_names_spec='$libname.dll.lib'
12482 case $build_os in
12483 mingw*)
12484 sys_lib_search_path_spec=
12485 lt_save_ifs=$IFS
12486 IFS=';'
12487 for lt_path in $LIB
12489 IFS=$lt_save_ifs
12490 # Let DOS variable expansion print the short 8.3 style file name.
12491 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12492 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12493 done
12494 IFS=$lt_save_ifs
12495 # Convert to MSYS style.
12496 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12498 cygwin*)
12499 # Convert to unix form, then to dos form, then back to unix form
12500 # but this time dos style (no spaces!) so that the unix form looks
12501 # like /cygdrive/c/PROGRA~1:/cygdr...
12502 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12503 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12504 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12507 sys_lib_search_path_spec=$LIB
12508 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12509 # It is most probably a Windows format PATH.
12510 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12511 else
12512 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12514 # FIXME: find the short name or the path components, as spaces are
12515 # common. (e.g. "Program Files" -> "PROGRA~1")
12517 esac
12519 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12520 postinstall_cmds='base_file=`basename \$file`~
12521 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12522 dldir=$destdir/`dirname \$dlpath`~
12523 test -d \$dldir || mkdir -p \$dldir~
12524 $install_prog $dir/$dlname \$dldir/$dlname'
12525 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12526 dlpath=$dir/\$dldll~
12527 $RM \$dlpath'
12528 shlibpath_overrides_runpath=yes
12529 dynamic_linker='Win32 link.exe'
12533 # Assume MSVC wrapper
12534 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12535 dynamic_linker='Win32 ld.exe'
12537 esac
12538 # FIXME: first we should search . and the directory the executable is in
12539 shlibpath_var=PATH
12542 darwin* | rhapsody*)
12543 dynamic_linker="$host_os dyld"
12544 version_type=darwin
12545 need_lib_prefix=no
12546 need_version=no
12547 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12548 soname_spec='$libname$release$major$shared_ext'
12549 shlibpath_overrides_runpath=yes
12550 shlibpath_var=DYLD_LIBRARY_PATH
12551 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12553 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12554 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12557 dgux*)
12558 version_type=linux # correct to gnu/linux during the next big refactor
12559 need_lib_prefix=no
12560 need_version=no
12561 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12562 soname_spec='$libname$release$shared_ext$major'
12563 shlibpath_var=LD_LIBRARY_PATH
12566 freebsd* | dragonfly*)
12567 # DragonFly does not have aout. When/if they implement a new
12568 # versioning mechanism, adjust this.
12569 if test -x /usr/bin/objformat; then
12570 objformat=`/usr/bin/objformat`
12571 else
12572 case $host_os in
12573 freebsd[23].*) objformat=aout ;;
12574 *) objformat=elf ;;
12575 esac
12577 version_type=freebsd-$objformat
12578 case $version_type in
12579 freebsd-elf*)
12580 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12581 soname_spec='$libname$release$shared_ext$major'
12582 need_version=no
12583 need_lib_prefix=no
12585 freebsd-*)
12586 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12587 need_version=yes
12589 esac
12590 shlibpath_var=LD_LIBRARY_PATH
12591 case $host_os in
12592 freebsd2.*)
12593 shlibpath_overrides_runpath=yes
12595 freebsd3.[01]* | freebsdelf3.[01]*)
12596 shlibpath_overrides_runpath=yes
12597 hardcode_into_libs=yes
12599 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12600 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12601 shlibpath_overrides_runpath=no
12602 hardcode_into_libs=yes
12604 *) # from 4.6 on, and DragonFly
12605 shlibpath_overrides_runpath=yes
12606 hardcode_into_libs=yes
12608 esac
12611 haiku*)
12612 version_type=linux # correct to gnu/linux during the next big refactor
12613 need_lib_prefix=no
12614 need_version=no
12615 dynamic_linker="$host_os runtime_loader"
12616 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12617 soname_spec='$libname$release$shared_ext$major'
12618 shlibpath_var=LIBRARY_PATH
12619 shlibpath_overrides_runpath=no
12620 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12621 hardcode_into_libs=yes
12624 hpux9* | hpux10* | hpux11*)
12625 # Give a soname corresponding to the major version so that dld.sl refuses to
12626 # link against other versions.
12627 version_type=sunos
12628 need_lib_prefix=no
12629 need_version=no
12630 case $host_cpu in
12631 ia64*)
12632 shrext_cmds='.so'
12633 hardcode_into_libs=yes
12634 dynamic_linker="$host_os dld.so"
12635 shlibpath_var=LD_LIBRARY_PATH
12636 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12637 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12638 soname_spec='$libname$release$shared_ext$major'
12639 if test 32 = "$HPUX_IA64_MODE"; then
12640 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12641 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12642 else
12643 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12644 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12647 hppa*64*)
12648 shrext_cmds='.sl'
12649 hardcode_into_libs=yes
12650 dynamic_linker="$host_os dld.sl"
12651 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12652 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12653 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12654 soname_spec='$libname$release$shared_ext$major'
12655 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12656 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12659 shrext_cmds='.sl'
12660 dynamic_linker="$host_os dld.sl"
12661 shlibpath_var=SHLIB_PATH
12662 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12663 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12664 soname_spec='$libname$release$shared_ext$major'
12666 esac
12667 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12668 postinstall_cmds='chmod 555 $lib'
12669 # or fails outright, so override atomically:
12670 install_override_mode=555
12673 interix[3-9]*)
12674 version_type=linux # correct to gnu/linux during the next big refactor
12675 need_lib_prefix=no
12676 need_version=no
12677 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12678 soname_spec='$libname$release$shared_ext$major'
12679 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12680 shlibpath_var=LD_LIBRARY_PATH
12681 shlibpath_overrides_runpath=no
12682 hardcode_into_libs=yes
12685 irix5* | irix6* | nonstopux*)
12686 case $host_os in
12687 nonstopux*) version_type=nonstopux ;;
12689 if test yes = "$lt_cv_prog_gnu_ld"; then
12690 version_type=linux # correct to gnu/linux during the next big refactor
12691 else
12692 version_type=irix
12693 fi ;;
12694 esac
12695 need_lib_prefix=no
12696 need_version=no
12697 soname_spec='$libname$release$shared_ext$major'
12698 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12699 case $host_os in
12700 irix5* | nonstopux*)
12701 libsuff= shlibsuff=
12704 case $LD in # libtool.m4 will add one of these switches to LD
12705 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12706 libsuff= shlibsuff= libmagic=32-bit;;
12707 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12708 libsuff=32 shlibsuff=N32 libmagic=N32;;
12709 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12710 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12711 *) libsuff= shlibsuff= libmagic=never-match;;
12712 esac
12714 esac
12715 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12716 shlibpath_overrides_runpath=no
12717 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12718 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12719 hardcode_into_libs=yes
12722 # No shared lib support for Linux oldld, aout, or coff.
12723 linux*oldld* | linux*aout* | linux*coff*)
12724 dynamic_linker=no
12727 linux*android*)
12728 version_type=none # Android doesn't support versioned libraries.
12729 need_lib_prefix=no
12730 need_version=no
12731 library_names_spec='$libname$release$shared_ext'
12732 soname_spec='$libname$release$shared_ext'
12733 finish_cmds=
12734 shlibpath_var=LD_LIBRARY_PATH
12735 shlibpath_overrides_runpath=yes
12737 # This implies no fast_install, which is unacceptable.
12738 # Some rework will be needed to allow for fast_install
12739 # before this can be enabled.
12740 hardcode_into_libs=yes
12742 dynamic_linker='Android linker'
12743 # Don't embed -rpath directories since the linker doesn't support them.
12744 hardcode_libdir_flag_spec='-L$libdir'
12747 # This must be glibc/ELF.
12748 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12749 version_type=linux # correct to gnu/linux during the next big refactor
12750 need_lib_prefix=no
12751 need_version=no
12752 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12753 soname_spec='$libname$release$shared_ext$major'
12754 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12755 shlibpath_var=LD_LIBRARY_PATH
12756 shlibpath_overrides_runpath=no
12758 # Some binutils ld are patched to set DT_RUNPATH
12759 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12760 $as_echo_n "(cached) " >&6
12761 else
12762 lt_cv_shlibpath_overrides_runpath=no
12763 save_LDFLAGS=$LDFLAGS
12764 save_libdir=$libdir
12765 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12766 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12768 /* end confdefs.h. */
12771 main ()
12775 return 0;
12777 _ACEOF
12778 if ac_fn_c_try_link "$LINENO"; then :
12779 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12780 lt_cv_shlibpath_overrides_runpath=yes
12783 rm -f core conftest.err conftest.$ac_objext \
12784 conftest$ac_exeext conftest.$ac_ext
12785 LDFLAGS=$save_LDFLAGS
12786 libdir=$save_libdir
12790 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12792 # This implies no fast_install, which is unacceptable.
12793 # Some rework will be needed to allow for fast_install
12794 # before this can be enabled.
12795 hardcode_into_libs=yes
12797 # Ideally, we could use ldconfig to report *all* directores which are
12798 # searched for libraries, however this is still not possible. Aside from not
12799 # being certain /sbin/ldconfig is available, command
12800 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12801 # even though it is searched at run-time. Try to do the best guess by
12802 # appending ld.so.conf contents (and includes) to the search path.
12803 if test -f /etc/ld.so.conf; then
12804 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' ' '`
12805 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12808 # We used to test for /lib/ld.so.1 and disable shared libraries on
12809 # powerpc, because MkLinux only supported shared libraries with the
12810 # GNU dynamic linker. Since this was broken with cross compilers,
12811 # most powerpc-linux boxes support dynamic linking these days and
12812 # people can always --disable-shared, the test was removed, and we
12813 # assume the GNU/Linux dynamic linker is in use.
12814 dynamic_linker='GNU/Linux ld.so'
12817 netbsd*)
12818 version_type=sunos
12819 need_lib_prefix=no
12820 need_version=no
12821 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12822 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12823 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12824 dynamic_linker='NetBSD (a.out) ld.so'
12825 else
12826 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12827 soname_spec='$libname$release$shared_ext$major'
12828 dynamic_linker='NetBSD ld.elf_so'
12830 shlibpath_var=LD_LIBRARY_PATH
12831 shlibpath_overrides_runpath=yes
12832 hardcode_into_libs=yes
12835 newsos6)
12836 version_type=linux # correct to gnu/linux during the next big refactor
12837 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12838 shlibpath_var=LD_LIBRARY_PATH
12839 shlibpath_overrides_runpath=yes
12842 *nto* | *qnx*)
12843 version_type=qnx
12844 need_lib_prefix=no
12845 need_version=no
12846 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12847 soname_spec='$libname$release$shared_ext$major'
12848 shlibpath_var=LD_LIBRARY_PATH
12849 shlibpath_overrides_runpath=no
12850 hardcode_into_libs=yes
12851 dynamic_linker='ldqnx.so'
12854 openbsd* | bitrig*)
12855 version_type=sunos
12856 sys_lib_dlsearch_path_spec=/usr/lib
12857 need_lib_prefix=no
12858 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12859 need_version=no
12860 else
12861 need_version=yes
12863 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12864 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12865 shlibpath_var=LD_LIBRARY_PATH
12866 shlibpath_overrides_runpath=yes
12869 os2*)
12870 libname_spec='$name'
12871 version_type=windows
12872 shrext_cmds=.dll
12873 need_version=no
12874 need_lib_prefix=no
12875 # OS/2 can only load a DLL with a base name of 8 characters or less.
12876 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12877 v=$($ECHO $release$versuffix | tr -d .-);
12878 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12879 $ECHO $n$v`$shared_ext'
12880 library_names_spec='${libname}_dll.$libext'
12881 dynamic_linker='OS/2 ld.exe'
12882 shlibpath_var=BEGINLIBPATH
12883 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12884 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12885 postinstall_cmds='base_file=`basename \$file`~
12886 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12887 dldir=$destdir/`dirname \$dlpath`~
12888 test -d \$dldir || mkdir -p \$dldir~
12889 $install_prog $dir/$dlname \$dldir/$dlname~
12890 chmod a+x \$dldir/$dlname~
12891 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12892 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12894 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12895 dlpath=$dir/\$dldll~
12896 $RM \$dlpath'
12899 osf3* | osf4* | osf5*)
12900 version_type=osf
12901 need_lib_prefix=no
12902 need_version=no
12903 soname_spec='$libname$release$shared_ext$major'
12904 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12905 shlibpath_var=LD_LIBRARY_PATH
12906 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12907 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12910 rdos*)
12911 dynamic_linker=no
12914 solaris*)
12915 version_type=linux # correct to gnu/linux during the next big refactor
12916 need_lib_prefix=no
12917 need_version=no
12918 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12919 soname_spec='$libname$release$shared_ext$major'
12920 shlibpath_var=LD_LIBRARY_PATH
12921 shlibpath_overrides_runpath=yes
12922 hardcode_into_libs=yes
12923 # ldd complains unless libraries are executable
12924 postinstall_cmds='chmod +x $lib'
12927 sunos4*)
12928 version_type=sunos
12929 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12930 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12931 shlibpath_var=LD_LIBRARY_PATH
12932 shlibpath_overrides_runpath=yes
12933 if test yes = "$with_gnu_ld"; then
12934 need_lib_prefix=no
12936 need_version=yes
12939 sysv4 | sysv4.3*)
12940 version_type=linux # correct to gnu/linux during the next big refactor
12941 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12942 soname_spec='$libname$release$shared_ext$major'
12943 shlibpath_var=LD_LIBRARY_PATH
12944 case $host_vendor in
12945 sni)
12946 shlibpath_overrides_runpath=no
12947 need_lib_prefix=no
12948 runpath_var=LD_RUN_PATH
12950 siemens)
12951 need_lib_prefix=no
12953 motorola)
12954 need_lib_prefix=no
12955 need_version=no
12956 shlibpath_overrides_runpath=no
12957 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12959 esac
12962 sysv4*MP*)
12963 if test -d /usr/nec; then
12964 version_type=linux # correct to gnu/linux during the next big refactor
12965 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12966 soname_spec='$libname$shared_ext.$major'
12967 shlibpath_var=LD_LIBRARY_PATH
12971 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12972 version_type=sco
12973 need_lib_prefix=no
12974 need_version=no
12975 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12976 soname_spec='$libname$release$shared_ext$major'
12977 shlibpath_var=LD_LIBRARY_PATH
12978 shlibpath_overrides_runpath=yes
12979 hardcode_into_libs=yes
12980 if test yes = "$with_gnu_ld"; then
12981 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12982 else
12983 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12984 case $host_os in
12985 sco3.2v5*)
12986 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12988 esac
12990 sys_lib_dlsearch_path_spec='/usr/lib'
12993 tpf*)
12994 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12995 version_type=linux # correct to gnu/linux during the next big refactor
12996 need_lib_prefix=no
12997 need_version=no
12998 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12999 shlibpath_var=LD_LIBRARY_PATH
13000 shlibpath_overrides_runpath=no
13001 hardcode_into_libs=yes
13004 uts4*)
13005 version_type=linux # correct to gnu/linux during the next big refactor
13006 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13007 soname_spec='$libname$release$shared_ext$major'
13008 shlibpath_var=LD_LIBRARY_PATH
13012 dynamic_linker=no
13014 esac
13015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13016 $as_echo "$dynamic_linker" >&6; }
13017 test no = "$dynamic_linker" && can_build_shared=no
13019 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13020 if test yes = "$GCC"; then
13021 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13024 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13025 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13028 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13029 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13032 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13033 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13035 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13036 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13038 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13039 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13138 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13139 hardcode_action=
13140 if test -n "$hardcode_libdir_flag_spec" ||
13141 test -n "$runpath_var" ||
13142 test yes = "$hardcode_automatic"; then
13144 # We can hardcode non-existent directories.
13145 if test no != "$hardcode_direct" &&
13146 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13147 # have to relink, otherwise we might link with an installed library
13148 # when we should be linking with a yet-to-be-installed one
13149 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13150 test no != "$hardcode_minus_L"; then
13151 # Linking always hardcodes the temporary library directory.
13152 hardcode_action=relink
13153 else
13154 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13155 hardcode_action=immediate
13157 else
13158 # We cannot hardcode anything, or else we can only hardcode existing
13159 # directories.
13160 hardcode_action=unsupported
13162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13163 $as_echo "$hardcode_action" >&6; }
13165 if test relink = "$hardcode_action" ||
13166 test yes = "$inherit_rpath"; then
13167 # Fast installation is not supported
13168 enable_fast_install=no
13169 elif test yes = "$shlibpath_overrides_runpath" ||
13170 test no = "$enable_shared"; then
13171 # Fast installation is not necessary
13172 enable_fast_install=needless
13180 if test yes != "$enable_dlopen"; then
13181 enable_dlopen=unknown
13182 enable_dlopen_self=unknown
13183 enable_dlopen_self_static=unknown
13184 else
13185 lt_cv_dlopen=no
13186 lt_cv_dlopen_libs=
13188 case $host_os in
13189 beos*)
13190 lt_cv_dlopen=load_add_on
13191 lt_cv_dlopen_libs=
13192 lt_cv_dlopen_self=yes
13195 mingw* | pw32* | cegcc*)
13196 lt_cv_dlopen=LoadLibrary
13197 lt_cv_dlopen_libs=
13200 cygwin*)
13201 lt_cv_dlopen=dlopen
13202 lt_cv_dlopen_libs=
13205 darwin*)
13206 # if libdl is installed we need to link against it
13207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13208 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13209 if ${ac_cv_lib_dl_dlopen+:} false; then :
13210 $as_echo_n "(cached) " >&6
13211 else
13212 ac_check_lib_save_LIBS=$LIBS
13213 LIBS="-ldl $LIBS"
13214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13215 /* end confdefs.h. */
13217 /* Override any GCC internal prototype to avoid an error.
13218 Use char because int might match the return type of a GCC
13219 builtin and then its argument prototype would still apply. */
13220 #ifdef __cplusplus
13221 extern "C"
13222 #endif
13223 char dlopen ();
13225 main ()
13227 return dlopen ();
13229 return 0;
13231 _ACEOF
13232 if ac_fn_c_try_link "$LINENO"; then :
13233 ac_cv_lib_dl_dlopen=yes
13234 else
13235 ac_cv_lib_dl_dlopen=no
13237 rm -f core conftest.err conftest.$ac_objext \
13238 conftest$ac_exeext conftest.$ac_ext
13239 LIBS=$ac_check_lib_save_LIBS
13241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13242 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13243 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13244 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13245 else
13247 lt_cv_dlopen=dyld
13248 lt_cv_dlopen_libs=
13249 lt_cv_dlopen_self=yes
13255 tpf*)
13256 # Don't try to run any link tests for TPF. We know it's impossible
13257 # because TPF is a cross-compiler, and we know how we open DSOs.
13258 lt_cv_dlopen=dlopen
13259 lt_cv_dlopen_libs=
13260 lt_cv_dlopen_self=no
13264 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13265 if test "x$ac_cv_func_shl_load" = xyes; then :
13266 lt_cv_dlopen=shl_load
13267 else
13268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13269 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13270 if ${ac_cv_lib_dld_shl_load+:} false; then :
13271 $as_echo_n "(cached) " >&6
13272 else
13273 ac_check_lib_save_LIBS=$LIBS
13274 LIBS="-ldld $LIBS"
13275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13276 /* end confdefs.h. */
13278 /* Override any GCC internal prototype to avoid an error.
13279 Use char because int might match the return type of a GCC
13280 builtin and then its argument prototype would still apply. */
13281 #ifdef __cplusplus
13282 extern "C"
13283 #endif
13284 char shl_load ();
13286 main ()
13288 return shl_load ();
13290 return 0;
13292 _ACEOF
13293 if ac_fn_c_try_link "$LINENO"; then :
13294 ac_cv_lib_dld_shl_load=yes
13295 else
13296 ac_cv_lib_dld_shl_load=no
13298 rm -f core conftest.err conftest.$ac_objext \
13299 conftest$ac_exeext conftest.$ac_ext
13300 LIBS=$ac_check_lib_save_LIBS
13302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13303 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13304 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13305 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13306 else
13307 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13308 if test "x$ac_cv_func_dlopen" = xyes; then :
13309 lt_cv_dlopen=dlopen
13310 else
13311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13312 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13313 if ${ac_cv_lib_dl_dlopen+:} false; then :
13314 $as_echo_n "(cached) " >&6
13315 else
13316 ac_check_lib_save_LIBS=$LIBS
13317 LIBS="-ldl $LIBS"
13318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13319 /* end confdefs.h. */
13321 /* Override any GCC internal prototype to avoid an error.
13322 Use char because int might match the return type of a GCC
13323 builtin and then its argument prototype would still apply. */
13324 #ifdef __cplusplus
13325 extern "C"
13326 #endif
13327 char dlopen ();
13329 main ()
13331 return dlopen ();
13333 return 0;
13335 _ACEOF
13336 if ac_fn_c_try_link "$LINENO"; then :
13337 ac_cv_lib_dl_dlopen=yes
13338 else
13339 ac_cv_lib_dl_dlopen=no
13341 rm -f core conftest.err conftest.$ac_objext \
13342 conftest$ac_exeext conftest.$ac_ext
13343 LIBS=$ac_check_lib_save_LIBS
13345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13346 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13347 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13348 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13349 else
13350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13351 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13352 if ${ac_cv_lib_svld_dlopen+:} false; then :
13353 $as_echo_n "(cached) " >&6
13354 else
13355 ac_check_lib_save_LIBS=$LIBS
13356 LIBS="-lsvld $LIBS"
13357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13358 /* end confdefs.h. */
13360 /* Override any GCC internal prototype to avoid an error.
13361 Use char because int might match the return type of a GCC
13362 builtin and then its argument prototype would still apply. */
13363 #ifdef __cplusplus
13364 extern "C"
13365 #endif
13366 char dlopen ();
13368 main ()
13370 return dlopen ();
13372 return 0;
13374 _ACEOF
13375 if ac_fn_c_try_link "$LINENO"; then :
13376 ac_cv_lib_svld_dlopen=yes
13377 else
13378 ac_cv_lib_svld_dlopen=no
13380 rm -f core conftest.err conftest.$ac_objext \
13381 conftest$ac_exeext conftest.$ac_ext
13382 LIBS=$ac_check_lib_save_LIBS
13384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13385 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13386 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13387 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13388 else
13389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13390 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13391 if ${ac_cv_lib_dld_dld_link+:} false; then :
13392 $as_echo_n "(cached) " >&6
13393 else
13394 ac_check_lib_save_LIBS=$LIBS
13395 LIBS="-ldld $LIBS"
13396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13397 /* end confdefs.h. */
13399 /* Override any GCC internal prototype to avoid an error.
13400 Use char because int might match the return type of a GCC
13401 builtin and then its argument prototype would still apply. */
13402 #ifdef __cplusplus
13403 extern "C"
13404 #endif
13405 char dld_link ();
13407 main ()
13409 return dld_link ();
13411 return 0;
13413 _ACEOF
13414 if ac_fn_c_try_link "$LINENO"; then :
13415 ac_cv_lib_dld_dld_link=yes
13416 else
13417 ac_cv_lib_dld_dld_link=no
13419 rm -f core conftest.err conftest.$ac_objext \
13420 conftest$ac_exeext conftest.$ac_ext
13421 LIBS=$ac_check_lib_save_LIBS
13423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13424 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13425 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13426 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13445 esac
13447 if test no = "$lt_cv_dlopen"; then
13448 enable_dlopen=no
13449 else
13450 enable_dlopen=yes
13453 case $lt_cv_dlopen in
13454 dlopen)
13455 save_CPPFLAGS=$CPPFLAGS
13456 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13458 save_LDFLAGS=$LDFLAGS
13459 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13461 save_LIBS=$LIBS
13462 LIBS="$lt_cv_dlopen_libs $LIBS"
13464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13465 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13466 if ${lt_cv_dlopen_self+:} false; then :
13467 $as_echo_n "(cached) " >&6
13468 else
13469 if test yes = "$cross_compiling"; then :
13470 lt_cv_dlopen_self=cross
13471 else
13472 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13473 lt_status=$lt_dlunknown
13474 cat > conftest.$ac_ext <<_LT_EOF
13475 #line $LINENO "configure"
13476 #include "confdefs.h"
13478 #if HAVE_DLFCN_H
13479 #include <dlfcn.h>
13480 #endif
13482 #include <stdio.h>
13484 #ifdef RTLD_GLOBAL
13485 # define LT_DLGLOBAL RTLD_GLOBAL
13486 #else
13487 # ifdef DL_GLOBAL
13488 # define LT_DLGLOBAL DL_GLOBAL
13489 # else
13490 # define LT_DLGLOBAL 0
13491 # endif
13492 #endif
13494 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13495 find out it does not work in some platform. */
13496 #ifndef LT_DLLAZY_OR_NOW
13497 # ifdef RTLD_LAZY
13498 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13499 # else
13500 # ifdef DL_LAZY
13501 # define LT_DLLAZY_OR_NOW DL_LAZY
13502 # else
13503 # ifdef RTLD_NOW
13504 # define LT_DLLAZY_OR_NOW RTLD_NOW
13505 # else
13506 # ifdef DL_NOW
13507 # define LT_DLLAZY_OR_NOW DL_NOW
13508 # else
13509 # define LT_DLLAZY_OR_NOW 0
13510 # endif
13511 # endif
13512 # endif
13513 # endif
13514 #endif
13516 /* When -fvisibility=hidden is used, assume the code has been annotated
13517 correspondingly for the symbols needed. */
13518 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13519 int fnord () __attribute__((visibility("default")));
13520 #endif
13522 int fnord () { return 42; }
13523 int main ()
13525 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13526 int status = $lt_dlunknown;
13528 if (self)
13530 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13531 else
13533 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13534 else puts (dlerror ());
13536 /* dlclose (self); */
13538 else
13539 puts (dlerror ());
13541 return status;
13543 _LT_EOF
13544 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13545 (eval $ac_link) 2>&5
13546 ac_status=$?
13547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13548 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13549 (./conftest; exit; ) >&5 2>/dev/null
13550 lt_status=$?
13551 case x$lt_status in
13552 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13553 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13554 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13555 esac
13556 else :
13557 # compilation failed
13558 lt_cv_dlopen_self=no
13561 rm -fr conftest*
13565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13566 $as_echo "$lt_cv_dlopen_self" >&6; }
13568 if test yes = "$lt_cv_dlopen_self"; then
13569 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13571 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13572 if ${lt_cv_dlopen_self_static+:} false; then :
13573 $as_echo_n "(cached) " >&6
13574 else
13575 if test yes = "$cross_compiling"; then :
13576 lt_cv_dlopen_self_static=cross
13577 else
13578 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13579 lt_status=$lt_dlunknown
13580 cat > conftest.$ac_ext <<_LT_EOF
13581 #line $LINENO "configure"
13582 #include "confdefs.h"
13584 #if HAVE_DLFCN_H
13585 #include <dlfcn.h>
13586 #endif
13588 #include <stdio.h>
13590 #ifdef RTLD_GLOBAL
13591 # define LT_DLGLOBAL RTLD_GLOBAL
13592 #else
13593 # ifdef DL_GLOBAL
13594 # define LT_DLGLOBAL DL_GLOBAL
13595 # else
13596 # define LT_DLGLOBAL 0
13597 # endif
13598 #endif
13600 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13601 find out it does not work in some platform. */
13602 #ifndef LT_DLLAZY_OR_NOW
13603 # ifdef RTLD_LAZY
13604 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13605 # else
13606 # ifdef DL_LAZY
13607 # define LT_DLLAZY_OR_NOW DL_LAZY
13608 # else
13609 # ifdef RTLD_NOW
13610 # define LT_DLLAZY_OR_NOW RTLD_NOW
13611 # else
13612 # ifdef DL_NOW
13613 # define LT_DLLAZY_OR_NOW DL_NOW
13614 # else
13615 # define LT_DLLAZY_OR_NOW 0
13616 # endif
13617 # endif
13618 # endif
13619 # endif
13620 #endif
13622 /* When -fvisibility=hidden is used, assume the code has been annotated
13623 correspondingly for the symbols needed. */
13624 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13625 int fnord () __attribute__((visibility("default")));
13626 #endif
13628 int fnord () { return 42; }
13629 int main ()
13631 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13632 int status = $lt_dlunknown;
13634 if (self)
13636 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13637 else
13639 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13640 else puts (dlerror ());
13642 /* dlclose (self); */
13644 else
13645 puts (dlerror ());
13647 return status;
13649 _LT_EOF
13650 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13651 (eval $ac_link) 2>&5
13652 ac_status=$?
13653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13654 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13655 (./conftest; exit; ) >&5 2>/dev/null
13656 lt_status=$?
13657 case x$lt_status in
13658 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13659 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13660 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13661 esac
13662 else :
13663 # compilation failed
13664 lt_cv_dlopen_self_static=no
13667 rm -fr conftest*
13671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13672 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13675 CPPFLAGS=$save_CPPFLAGS
13676 LDFLAGS=$save_LDFLAGS
13677 LIBS=$save_LIBS
13679 esac
13681 case $lt_cv_dlopen_self in
13682 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13683 *) enable_dlopen_self=unknown ;;
13684 esac
13686 case $lt_cv_dlopen_self_static in
13687 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13688 *) enable_dlopen_self_static=unknown ;;
13689 esac
13708 striplib=
13709 old_striplib=
13710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13711 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13712 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13713 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13714 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13716 $as_echo "yes" >&6; }
13717 else
13718 # FIXME - insert some real tests, host_os isn't really good enough
13719 case $host_os in
13720 darwin*)
13721 if test -n "$STRIP"; then
13722 striplib="$STRIP -x"
13723 old_striplib="$STRIP -S"
13724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13725 $as_echo "yes" >&6; }
13726 else
13727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13728 $as_echo "no" >&6; }
13732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13733 $as_echo "no" >&6; }
13735 esac
13749 # Report what library types will actually be built
13750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13751 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13753 $as_echo "$can_build_shared" >&6; }
13755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13756 $as_echo_n "checking whether to build shared libraries... " >&6; }
13757 test no = "$can_build_shared" && enable_shared=no
13759 # On AIX, shared libraries and static libraries use the same namespace, and
13760 # are all built from PIC.
13761 case $host_os in
13762 aix3*)
13763 test yes = "$enable_shared" && enable_static=no
13764 if test -n "$RANLIB"; then
13765 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13766 postinstall_cmds='$RANLIB $lib'
13770 aix[4-9]*)
13771 if test ia64 != "$host_cpu"; then
13772 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13773 yes,aix,yes) ;; # shared object as lib.so file only
13774 yes,svr4,*) ;; # shared object as lib.so archive member only
13775 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13776 esac
13779 esac
13780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13781 $as_echo "$enable_shared" >&6; }
13783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13784 $as_echo_n "checking whether to build static libraries... " >&6; }
13785 # Make sure either enable_shared or enable_static is yes.
13786 test yes = "$enable_shared" || enable_static=yes
13787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13788 $as_echo "$enable_static" >&6; }
13794 ac_ext=c
13795 ac_cpp='$CPP $CPPFLAGS'
13796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13800 CC=$lt_save_CC
13816 ac_config_commands="$ac_config_commands libtool"
13821 # Only expand once:
13826 # Extract the first word of "ar", so it can be a program name with args.
13827 set dummy ar; ac_word=$2
13828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13829 $as_echo_n "checking for $ac_word... " >&6; }
13830 if ${ac_cv_path_AR+:} false; then :
13831 $as_echo_n "(cached) " >&6
13832 else
13833 case $AR in
13834 [\\/]* | ?:[\\/]*)
13835 ac_cv_path_AR="$AR" # Let the user override the test with a path.
13838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13839 for as_dir in $PATH
13841 IFS=$as_save_IFS
13842 test -z "$as_dir" && as_dir=.
13843 for ac_exec_ext in '' $ac_executable_extensions; do
13844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13845 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
13846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13847 break 2
13849 done
13850 done
13851 IFS=$as_save_IFS
13853 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
13855 esac
13857 AR=$ac_cv_path_AR
13858 if test -n "$AR"; then
13859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13860 $as_echo "$AR" >&6; }
13861 else
13862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13863 $as_echo "no" >&6; }
13867 # Extract the first word of "rm", so it can be a program name with args.
13868 set dummy rm; ac_word=$2
13869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13870 $as_echo_n "checking for $ac_word... " >&6; }
13871 if ${ac_cv_path_RM+:} false; then :
13872 $as_echo_n "(cached) " >&6
13873 else
13874 case $RM in
13875 [\\/]* | ?:[\\/]*)
13876 ac_cv_path_RM="$RM" # Let the user override the test with a path.
13879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13880 for as_dir in $PATH
13882 IFS=$as_save_IFS
13883 test -z "$as_dir" && as_dir=.
13884 for ac_exec_ext in '' $ac_executable_extensions; do
13885 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13886 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
13887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13888 break 2
13890 done
13891 done
13892 IFS=$as_save_IFS
13894 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
13896 esac
13898 RM=$ac_cv_path_RM
13899 if test -n "$RM"; then
13900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
13901 $as_echo "$RM" >&6; }
13902 else
13903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13904 $as_echo "no" >&6; }
13908 # Extract the first word of "cp", so it can be a program name with args.
13909 set dummy cp; ac_word=$2
13910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13911 $as_echo_n "checking for $ac_word... " >&6; }
13912 if ${ac_cv_path_CP+:} false; then :
13913 $as_echo_n "(cached) " >&6
13914 else
13915 case $CP in
13916 [\\/]* | ?:[\\/]*)
13917 ac_cv_path_CP="$CP" # Let the user override the test with a path.
13920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13921 for as_dir in $PATH
13923 IFS=$as_save_IFS
13924 test -z "$as_dir" && as_dir=.
13925 for ac_exec_ext in '' $ac_executable_extensions; do
13926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13927 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
13928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13929 break 2
13931 done
13932 done
13933 IFS=$as_save_IFS
13935 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
13937 esac
13939 CP=$ac_cv_path_CP
13940 if test -n "$CP"; then
13941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
13942 $as_echo "$CP" >&6; }
13943 else
13944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13945 $as_echo "no" >&6; }
13949 # Extract the first word of "ln", so it can be a program name with args.
13950 set dummy ln; ac_word=$2
13951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13952 $as_echo_n "checking for $ac_word... " >&6; }
13953 if ${ac_cv_path_LN+:} false; then :
13954 $as_echo_n "(cached) " >&6
13955 else
13956 case $LN in
13957 [\\/]* | ?:[\\/]*)
13958 ac_cv_path_LN="$LN" # Let the user override the test with a path.
13961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13962 for as_dir in $PATH
13964 IFS=$as_save_IFS
13965 test -z "$as_dir" && as_dir=.
13966 for ac_exec_ext in '' $ac_executable_extensions; do
13967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13968 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
13969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13970 break 2
13972 done
13973 done
13974 IFS=$as_save_IFS
13976 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
13978 esac
13980 LN=$ac_cv_path_LN
13981 if test -n "$LN"; then
13982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
13983 $as_echo "$LN" >&6; }
13984 else
13985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13986 $as_echo "no" >&6; }
13990 # Extract the first word of "ls", so it can be a program name with args.
13991 set dummy ls; ac_word=$2
13992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13993 $as_echo_n "checking for $ac_word... " >&6; }
13994 if ${ac_cv_path_LS+:} false; then :
13995 $as_echo_n "(cached) " >&6
13996 else
13997 case $LS in
13998 [\\/]* | ?:[\\/]*)
13999 ac_cv_path_LS="$LS" # Let the user override the test with a path.
14002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14003 for as_dir in $PATH
14005 IFS=$as_save_IFS
14006 test -z "$as_dir" && as_dir=.
14007 for ac_exec_ext in '' $ac_executable_extensions; do
14008 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14009 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
14010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14011 break 2
14013 done
14014 done
14015 IFS=$as_save_IFS
14017 test -z "$ac_cv_path_LS" && ac_cv_path_LS="ls"
14019 esac
14021 LS=$ac_cv_path_LS
14022 if test -n "$LS"; then
14023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
14024 $as_echo "$LS" >&6; }
14025 else
14026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14027 $as_echo "no" >&6; }
14031 # Extract the first word of "sed", so it can be a program name with args.
14032 set dummy sed; ac_word=$2
14033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14034 $as_echo_n "checking for $ac_word... " >&6; }
14035 if ${ac_cv_path_SED+:} false; then :
14036 $as_echo_n "(cached) " >&6
14037 else
14038 case $SED in
14039 [\\/]* | ?:[\\/]*)
14040 ac_cv_path_SED="$SED" # Let the user override the test with a path.
14043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14044 for as_dir in $PATH
14046 IFS=$as_save_IFS
14047 test -z "$as_dir" && as_dir=.
14048 for ac_exec_ext in '' $ac_executable_extensions; do
14049 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14050 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
14051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14052 break 2
14054 done
14055 done
14056 IFS=$as_save_IFS
14058 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
14060 esac
14062 SED=$ac_cv_path_SED
14063 if test -n "$SED"; then
14064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
14065 $as_echo "$SED" >&6; }
14066 else
14067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14068 $as_echo "no" >&6; }
14072 # Extract the first word of "make", so it can be a program name with args.
14073 set dummy make; ac_word=$2
14074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14075 $as_echo_n "checking for $ac_word... " >&6; }
14076 if ${ac_cv_path_MAKE+:} false; then :
14077 $as_echo_n "(cached) " >&6
14078 else
14079 case $MAKE in
14080 [\\/]* | ?:[\\/]*)
14081 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
14084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14085 for as_dir in $PATH
14087 IFS=$as_save_IFS
14088 test -z "$as_dir" && as_dir=.
14089 for ac_exec_ext in '' $ac_executable_extensions; do
14090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14091 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
14092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14093 break 2
14095 done
14096 done
14097 IFS=$as_save_IFS
14100 esac
14102 MAKE=$ac_cv_path_MAKE
14103 if test -n "$MAKE"; then
14104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
14105 $as_echo "$MAKE" >&6; }
14106 else
14107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14108 $as_echo "no" >&6; }
14116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
14117 $as_echo_n "checking whether NLS is requested... " >&6; }
14118 # Check whether --enable-nls was given.
14119 if test "${enable_nls+set}" = set; then :
14120 enableval=$enable_nls; USE_NLS=$enableval
14121 else
14122 USE_NLS=yes
14125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
14126 $as_echo "$USE_NLS" >&6; }
14133 # Prepare PATH_SEPARATOR.
14134 # The user is always right.
14135 if test "${PATH_SEPARATOR+set}" != set; then
14136 echo "#! /bin/sh" >conf$$.sh
14137 echo "exit 0" >>conf$$.sh
14138 chmod +x conf$$.sh
14139 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14140 PATH_SEPARATOR=';'
14141 else
14142 PATH_SEPARATOR=:
14144 rm -f conf$$.sh
14147 # Find out how to test for executable files. Don't use a zero-byte file,
14148 # as systems may use methods other than mode bits to determine executability.
14149 cat >conf$$.file <<_ASEOF
14150 #! /bin/sh
14151 exit 0
14152 _ASEOF
14153 chmod +x conf$$.file
14154 if test -x conf$$.file >/dev/null 2>&1; then
14155 ac_executable_p="test -x"
14156 else
14157 ac_executable_p="test -f"
14159 rm -f conf$$.file
14161 # Extract the first word of "msgfmt", so it can be a program name with args.
14162 set dummy msgfmt; ac_word=$2
14163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14164 $as_echo_n "checking for $ac_word... " >&6; }
14165 if ${ac_cv_path_MSGFMT+:} false; then :
14166 $as_echo_n "(cached) " >&6
14167 else
14168 case "$MSGFMT" in
14169 [\\/]* | ?:[\\/]*)
14170 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
14173 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14174 for ac_dir in $PATH; do
14175 IFS="$ac_save_IFS"
14176 test -z "$ac_dir" && ac_dir=.
14177 for ac_exec_ext in '' $ac_executable_extensions; do
14178 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14179 echo "$as_me: trying $ac_dir/$ac_word..." >&5
14180 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
14181 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
14182 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
14183 break 2
14186 done
14187 done
14188 IFS="$ac_save_IFS"
14189 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
14191 esac
14193 MSGFMT="$ac_cv_path_MSGFMT"
14194 if test "$MSGFMT" != ":"; then
14195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
14196 $as_echo "$MSGFMT" >&6; }
14197 else
14198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14199 $as_echo "no" >&6; }
14202 # Extract the first word of "gmsgfmt", so it can be a program name with args.
14203 set dummy gmsgfmt; ac_word=$2
14204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14205 $as_echo_n "checking for $ac_word... " >&6; }
14206 if ${ac_cv_path_GMSGFMT+:} false; then :
14207 $as_echo_n "(cached) " >&6
14208 else
14209 case $GMSGFMT in
14210 [\\/]* | ?:[\\/]*)
14211 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
14214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14215 for as_dir in $PATH
14217 IFS=$as_save_IFS
14218 test -z "$as_dir" && as_dir=.
14219 for ac_exec_ext in '' $ac_executable_extensions; do
14220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14221 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
14222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14223 break 2
14225 done
14226 done
14227 IFS=$as_save_IFS
14229 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
14231 esac
14233 GMSGFMT=$ac_cv_path_GMSGFMT
14234 if test -n "$GMSGFMT"; then
14235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
14236 $as_echo "$GMSGFMT" >&6; }
14237 else
14238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14239 $as_echo "no" >&6; }
14244 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
14245 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
14246 *) MSGFMT_015=$MSGFMT ;;
14247 esac
14249 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
14250 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
14251 *) GMSGFMT_015=$GMSGFMT ;;
14252 esac
14256 # Prepare PATH_SEPARATOR.
14257 # The user is always right.
14258 if test "${PATH_SEPARATOR+set}" != set; then
14259 echo "#! /bin/sh" >conf$$.sh
14260 echo "exit 0" >>conf$$.sh
14261 chmod +x conf$$.sh
14262 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14263 PATH_SEPARATOR=';'
14264 else
14265 PATH_SEPARATOR=:
14267 rm -f conf$$.sh
14270 # Find out how to test for executable files. Don't use a zero-byte file,
14271 # as systems may use methods other than mode bits to determine executability.
14272 cat >conf$$.file <<_ASEOF
14273 #! /bin/sh
14274 exit 0
14275 _ASEOF
14276 chmod +x conf$$.file
14277 if test -x conf$$.file >/dev/null 2>&1; then
14278 ac_executable_p="test -x"
14279 else
14280 ac_executable_p="test -f"
14282 rm -f conf$$.file
14284 # Extract the first word of "xgettext", so it can be a program name with args.
14285 set dummy xgettext; ac_word=$2
14286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14287 $as_echo_n "checking for $ac_word... " >&6; }
14288 if ${ac_cv_path_XGETTEXT+:} false; then :
14289 $as_echo_n "(cached) " >&6
14290 else
14291 case "$XGETTEXT" in
14292 [\\/]* | ?:[\\/]*)
14293 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
14296 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14297 for ac_dir in $PATH; do
14298 IFS="$ac_save_IFS"
14299 test -z "$ac_dir" && ac_dir=.
14300 for ac_exec_ext in '' $ac_executable_extensions; do
14301 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14302 echo "$as_me: trying $ac_dir/$ac_word..." >&5
14303 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
14304 (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
14305 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
14306 break 2
14309 done
14310 done
14311 IFS="$ac_save_IFS"
14312 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
14314 esac
14316 XGETTEXT="$ac_cv_path_XGETTEXT"
14317 if test "$XGETTEXT" != ":"; then
14318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
14319 $as_echo "$XGETTEXT" >&6; }
14320 else
14321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14322 $as_echo "no" >&6; }
14325 rm -f messages.po
14327 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
14328 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
14329 *) XGETTEXT_015=$XGETTEXT ;;
14330 esac
14334 # Prepare PATH_SEPARATOR.
14335 # The user is always right.
14336 if test "${PATH_SEPARATOR+set}" != set; then
14337 echo "#! /bin/sh" >conf$$.sh
14338 echo "exit 0" >>conf$$.sh
14339 chmod +x conf$$.sh
14340 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14341 PATH_SEPARATOR=';'
14342 else
14343 PATH_SEPARATOR=:
14345 rm -f conf$$.sh
14348 # Find out how to test for executable files. Don't use a zero-byte file,
14349 # as systems may use methods other than mode bits to determine executability.
14350 cat >conf$$.file <<_ASEOF
14351 #! /bin/sh
14352 exit 0
14353 _ASEOF
14354 chmod +x conf$$.file
14355 if test -x conf$$.file >/dev/null 2>&1; then
14356 ac_executable_p="test -x"
14357 else
14358 ac_executable_p="test -f"
14360 rm -f conf$$.file
14362 # Extract the first word of "msgmerge", so it can be a program name with args.
14363 set dummy msgmerge; ac_word=$2
14364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14365 $as_echo_n "checking for $ac_word... " >&6; }
14366 if ${ac_cv_path_MSGMERGE+:} false; then :
14367 $as_echo_n "(cached) " >&6
14368 else
14369 case "$MSGMERGE" in
14370 [\\/]* | ?:[\\/]*)
14371 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
14374 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14375 for ac_dir in $PATH; do
14376 IFS="$ac_save_IFS"
14377 test -z "$ac_dir" && ac_dir=.
14378 for ac_exec_ext in '' $ac_executable_extensions; do
14379 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14380 echo "$as_me: trying $ac_dir/$ac_word..." >&5
14381 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
14382 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
14383 break 2
14386 done
14387 done
14388 IFS="$ac_save_IFS"
14389 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
14391 esac
14393 MSGMERGE="$ac_cv_path_MSGMERGE"
14394 if test "$MSGMERGE" != ":"; then
14395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
14396 $as_echo "$MSGMERGE" >&6; }
14397 else
14398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14399 $as_echo "no" >&6; }
14403 test -n "$localedir" || localedir='${datadir}/locale'
14406 ac_config_commands="$ac_config_commands po-directories"
14410 if test "X$prefix" = "XNONE"; then
14411 acl_final_prefix="$ac_default_prefix"
14412 else
14413 acl_final_prefix="$prefix"
14415 if test "X$exec_prefix" = "XNONE"; then
14416 acl_final_exec_prefix='${prefix}'
14417 else
14418 acl_final_exec_prefix="$exec_prefix"
14420 acl_save_prefix="$prefix"
14421 prefix="$acl_final_prefix"
14422 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
14423 prefix="$acl_save_prefix"
14426 # Check whether --with-gnu-ld was given.
14427 if test "${with_gnu_ld+set}" = set; then :
14428 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14429 else
14430 with_gnu_ld=no
14433 # Prepare PATH_SEPARATOR.
14434 # The user is always right.
14435 if test "${PATH_SEPARATOR+set}" != set; then
14436 echo "#! /bin/sh" >conf$$.sh
14437 echo "exit 0" >>conf$$.sh
14438 chmod +x conf$$.sh
14439 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14440 PATH_SEPARATOR=';'
14441 else
14442 PATH_SEPARATOR=:
14444 rm -f conf$$.sh
14446 ac_prog=ld
14447 if test "$GCC" = yes; then
14448 # Check if gcc -print-prog-name=ld gives a path.
14449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
14450 $as_echo_n "checking for ld used by GCC... " >&6; }
14451 case $host in
14452 *-*-mingw*)
14453 # gcc leaves a trailing carriage return which upsets mingw
14454 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14456 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14457 esac
14458 case $ac_prog in
14459 # Accept absolute paths.
14460 [\\/]* | [A-Za-z]:[\\/]*)
14461 re_direlt='/[^/][^/]*/\.\./'
14462 # Canonicalize the path of ld
14463 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
14464 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
14465 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
14466 done
14467 test -z "$LD" && LD="$ac_prog"
14470 # If it fails, then pretend we aren't using GCC.
14471 ac_prog=ld
14474 # If it is relative, then search for the first ld in PATH.
14475 with_gnu_ld=unknown
14477 esac
14478 elif test "$with_gnu_ld" = yes; then
14479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14480 $as_echo_n "checking for GNU ld... " >&6; }
14481 else
14482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14483 $as_echo_n "checking for non-GNU ld... " >&6; }
14485 if ${acl_cv_path_LD+:} false; then :
14486 $as_echo_n "(cached) " >&6
14487 else
14488 if test -z "$LD"; then
14489 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
14490 for ac_dir in $PATH; do
14491 test -z "$ac_dir" && ac_dir=.
14492 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14493 acl_cv_path_LD="$ac_dir/$ac_prog"
14494 # Check to see if the program is GNU ld. I'd rather use --version,
14495 # but apparently some GNU ld's only accept -v.
14496 # Break only if it was the GNU/non-GNU ld that we prefer.
14497 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
14498 *GNU* | *'with BFD'*)
14499 test "$with_gnu_ld" != no && break ;;
14501 test "$with_gnu_ld" != yes && break ;;
14502 esac
14504 done
14505 IFS="$ac_save_ifs"
14506 else
14507 acl_cv_path_LD="$LD" # Let the user override the test with a path.
14511 LD="$acl_cv_path_LD"
14512 if test -n "$LD"; then
14513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14514 $as_echo "$LD" >&6; }
14515 else
14516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14517 $as_echo "no" >&6; }
14519 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14521 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14522 if ${acl_cv_prog_gnu_ld+:} false; then :
14523 $as_echo_n "(cached) " >&6
14524 else
14525 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
14526 case `$LD -v 2>&1 </dev/null` in
14527 *GNU* | *'with BFD'*)
14528 acl_cv_prog_gnu_ld=yes ;;
14530 acl_cv_prog_gnu_ld=no ;;
14531 esac
14533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
14534 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
14535 with_gnu_ld=$acl_cv_prog_gnu_ld
14540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
14541 $as_echo_n "checking for shared library run path origin... " >&6; }
14542 if ${acl_cv_rpath+:} false; then :
14543 $as_echo_n "(cached) " >&6
14544 else
14546 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
14547 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
14548 . ./conftest.sh
14549 rm -f ./conftest.sh
14550 acl_cv_rpath=done
14553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
14554 $as_echo "$acl_cv_rpath" >&6; }
14555 wl="$acl_cv_wl"
14556 libext="$acl_cv_libext"
14557 shlibext="$acl_cv_shlibext"
14558 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
14559 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
14560 hardcode_direct="$acl_cv_hardcode_direct"
14561 hardcode_minus_L="$acl_cv_hardcode_minus_L"
14562 # Check whether --enable-rpath was given.
14563 if test "${enable_rpath+set}" = set; then :
14564 enableval=$enable_rpath; :
14565 else
14566 enable_rpath=yes
14571 acl_libdirstem=lib
14572 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
14573 if test -n "$searchpath"; then
14574 acl_save_IFS="${IFS= }"; IFS=":"
14575 for searchdir in $searchpath; do
14576 if test -d "$searchdir"; then
14577 case "$searchdir" in
14578 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
14579 *) searchdir=`cd "$searchdir" && pwd`
14580 case "$searchdir" in
14581 */lib64 ) acl_libdirstem=lib64 ;;
14582 esac ;;
14583 esac
14585 done
14586 IFS="$acl_save_IFS"
14596 use_additional=yes
14598 acl_save_prefix="$prefix"
14599 prefix="$acl_final_prefix"
14600 acl_save_exec_prefix="$exec_prefix"
14601 exec_prefix="$acl_final_exec_prefix"
14603 eval additional_includedir=\"$includedir\"
14604 eval additional_libdir=\"$libdir\"
14606 exec_prefix="$acl_save_exec_prefix"
14607 prefix="$acl_save_prefix"
14610 # Check whether --with-libiconv-prefix was given.
14611 if test "${with_libiconv_prefix+set}" = set; then :
14612 withval=$with_libiconv_prefix;
14613 if test "X$withval" = "Xno"; then
14614 use_additional=no
14615 else
14616 if test "X$withval" = "X"; then
14618 acl_save_prefix="$prefix"
14619 prefix="$acl_final_prefix"
14620 acl_save_exec_prefix="$exec_prefix"
14621 exec_prefix="$acl_final_exec_prefix"
14623 eval additional_includedir=\"$includedir\"
14624 eval additional_libdir=\"$libdir\"
14626 exec_prefix="$acl_save_exec_prefix"
14627 prefix="$acl_save_prefix"
14629 else
14630 additional_includedir="$withval/include"
14631 additional_libdir="$withval/$acl_libdirstem"
14637 LIBICONV=
14638 LTLIBICONV=
14639 INCICONV=
14640 rpathdirs=
14641 ltrpathdirs=
14642 names_already_handled=
14643 names_next_round='iconv '
14644 while test -n "$names_next_round"; do
14645 names_this_round="$names_next_round"
14646 names_next_round=
14647 for name in $names_this_round; do
14648 already_handled=
14649 for n in $names_already_handled; do
14650 if test "$n" = "$name"; then
14651 already_handled=yes
14652 break
14654 done
14655 if test -z "$already_handled"; then
14656 names_already_handled="$names_already_handled $name"
14657 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14658 eval value=\"\$HAVE_LIB$uppername\"
14659 if test -n "$value"; then
14660 if test "$value" = yes; then
14661 eval value=\"\$LIB$uppername\"
14662 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
14663 eval value=\"\$LTLIB$uppername\"
14664 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
14665 else
14668 else
14669 found_dir=
14670 found_la=
14671 found_so=
14672 found_a=
14673 if test $use_additional = yes; then
14674 if test -n "$shlibext" \
14675 && { test -f "$additional_libdir/lib$name.$shlibext" \
14676 || { test "$shlibext" = dll \
14677 && test -f "$additional_libdir/lib$name.dll.a"; }; }; then
14678 found_dir="$additional_libdir"
14679 if test -f "$additional_libdir/lib$name.$shlibext"; then
14680 found_so="$additional_libdir/lib$name.$shlibext"
14681 else
14682 found_so="$additional_libdir/lib$name.dll.a"
14684 if test -f "$additional_libdir/lib$name.la"; then
14685 found_la="$additional_libdir/lib$name.la"
14687 else
14688 if test -f "$additional_libdir/lib$name.$libext"; then
14689 found_dir="$additional_libdir"
14690 found_a="$additional_libdir/lib$name.$libext"
14691 if test -f "$additional_libdir/lib$name.la"; then
14692 found_la="$additional_libdir/lib$name.la"
14697 if test "X$found_dir" = "X"; then
14698 for x in $LDFLAGS $LTLIBICONV; do
14700 acl_save_prefix="$prefix"
14701 prefix="$acl_final_prefix"
14702 acl_save_exec_prefix="$exec_prefix"
14703 exec_prefix="$acl_final_exec_prefix"
14704 eval x=\"$x\"
14705 exec_prefix="$acl_save_exec_prefix"
14706 prefix="$acl_save_prefix"
14708 case "$x" in
14709 -L*)
14710 dir=`echo "X$x" | sed -e 's/^X-L//'`
14711 if test -n "$shlibext" \
14712 && { test -f "$dir/lib$name.$shlibext" \
14713 || { test "$shlibext" = dll \
14714 && test -f "$dir/lib$name.dll.a"; }; }; then
14715 found_dir="$dir"
14716 if test -f "$dir/lib$name.$shlibext"; then
14717 found_so="$dir/lib$name.$shlibext"
14718 else
14719 found_so="$dir/lib$name.dll.a"
14721 if test -f "$dir/lib$name.la"; then
14722 found_la="$dir/lib$name.la"
14724 else
14725 if test -f "$dir/lib$name.$libext"; then
14726 found_dir="$dir"
14727 found_a="$dir/lib$name.$libext"
14728 if test -f "$dir/lib$name.la"; then
14729 found_la="$dir/lib$name.la"
14734 esac
14735 if test "X$found_dir" != "X"; then
14736 break
14738 done
14740 if test "X$found_dir" != "X"; then
14741 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
14742 if test "X$found_so" != "X"; then
14743 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
14744 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14745 else
14746 haveit=
14747 for x in $ltrpathdirs; do
14748 if test "X$x" = "X$found_dir"; then
14749 haveit=yes
14750 break
14752 done
14753 if test -z "$haveit"; then
14754 ltrpathdirs="$ltrpathdirs $found_dir"
14756 if test "$hardcode_direct" = yes; then
14757 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14758 else
14759 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
14760 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14761 haveit=
14762 for x in $rpathdirs; do
14763 if test "X$x" = "X$found_dir"; then
14764 haveit=yes
14765 break
14767 done
14768 if test -z "$haveit"; then
14769 rpathdirs="$rpathdirs $found_dir"
14771 else
14772 haveit=
14773 for x in $LDFLAGS $LIBICONV; do
14775 acl_save_prefix="$prefix"
14776 prefix="$acl_final_prefix"
14777 acl_save_exec_prefix="$exec_prefix"
14778 exec_prefix="$acl_final_exec_prefix"
14779 eval x=\"$x\"
14780 exec_prefix="$acl_save_exec_prefix"
14781 prefix="$acl_save_prefix"
14783 if test "X$x" = "X-L$found_dir"; then
14784 haveit=yes
14785 break
14787 done
14788 if test -z "$haveit"; then
14789 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
14791 if test "$hardcode_minus_L" != no; then
14792 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14793 else
14794 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14799 else
14800 if test "X$found_a" != "X"; then
14801 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
14802 else
14803 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
14806 additional_includedir=
14807 case "$found_dir" in
14808 */$acl_libdirstem | */$acl_libdirstem/)
14809 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
14810 additional_includedir="$basedir/include"
14812 esac
14813 if test "X$additional_includedir" != "X"; then
14814 if test "X$additional_includedir" != "X/usr/include"; then
14815 haveit=
14816 if test "X$additional_includedir" = "X/usr/local/include"; then
14817 if test -n "$GCC"; then
14818 case $host_os in
14819 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14820 esac
14823 if test -z "$haveit"; then
14824 for x in $CPPFLAGS $INCICONV; do
14826 acl_save_prefix="$prefix"
14827 prefix="$acl_final_prefix"
14828 acl_save_exec_prefix="$exec_prefix"
14829 exec_prefix="$acl_final_exec_prefix"
14830 eval x=\"$x\"
14831 exec_prefix="$acl_save_exec_prefix"
14832 prefix="$acl_save_prefix"
14834 if test "X$x" = "X-I$additional_includedir"; then
14835 haveit=yes
14836 break
14838 done
14839 if test -z "$haveit"; then
14840 if test -d "$additional_includedir"; then
14841 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
14847 if test -n "$found_la"; then
14848 save_libdir="$libdir"
14849 case "$found_la" in
14850 */* | *\\*) . "$found_la" ;;
14851 *) . "./$found_la" ;;
14852 esac
14853 libdir="$save_libdir"
14854 for dep in $dependency_libs; do
14855 case "$dep" in
14856 -L*)
14857 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14858 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
14859 haveit=
14860 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
14861 if test -n "$GCC"; then
14862 case $host_os in
14863 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14864 esac
14867 if test -z "$haveit"; then
14868 haveit=
14869 for x in $LDFLAGS $LIBICONV; do
14871 acl_save_prefix="$prefix"
14872 prefix="$acl_final_prefix"
14873 acl_save_exec_prefix="$exec_prefix"
14874 exec_prefix="$acl_final_exec_prefix"
14875 eval x=\"$x\"
14876 exec_prefix="$acl_save_exec_prefix"
14877 prefix="$acl_save_prefix"
14879 if test "X$x" = "X-L$additional_libdir"; then
14880 haveit=yes
14881 break
14883 done
14884 if test -z "$haveit"; then
14885 if test -d "$additional_libdir"; then
14886 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
14889 haveit=
14890 for x in $LDFLAGS $LTLIBICONV; do
14892 acl_save_prefix="$prefix"
14893 prefix="$acl_final_prefix"
14894 acl_save_exec_prefix="$exec_prefix"
14895 exec_prefix="$acl_final_exec_prefix"
14896 eval x=\"$x\"
14897 exec_prefix="$acl_save_exec_prefix"
14898 prefix="$acl_save_prefix"
14900 if test "X$x" = "X-L$additional_libdir"; then
14901 haveit=yes
14902 break
14904 done
14905 if test -z "$haveit"; then
14906 if test -d "$additional_libdir"; then
14907 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
14913 -R*)
14914 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14915 if test "$enable_rpath" != no; then
14916 haveit=
14917 for x in $rpathdirs; do
14918 if test "X$x" = "X$dir"; then
14919 haveit=yes
14920 break
14922 done
14923 if test -z "$haveit"; then
14924 rpathdirs="$rpathdirs $dir"
14926 haveit=
14927 for x in $ltrpathdirs; do
14928 if test "X$x" = "X$dir"; then
14929 haveit=yes
14930 break
14932 done
14933 if test -z "$haveit"; then
14934 ltrpathdirs="$ltrpathdirs $dir"
14938 -l*)
14939 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14941 *.la)
14942 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14945 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
14946 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
14948 esac
14949 done
14951 else
14952 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14953 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
14957 done
14958 done
14959 if test "X$rpathdirs" != "X"; then
14960 if test -n "$hardcode_libdir_separator"; then
14961 alldirs=
14962 for found_dir in $rpathdirs; do
14963 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14964 done
14965 acl_save_libdir="$libdir"
14966 libdir="$alldirs"
14967 eval flag=\"$hardcode_libdir_flag_spec\"
14968 libdir="$acl_save_libdir"
14969 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14970 else
14971 for found_dir in $rpathdirs; do
14972 acl_save_libdir="$libdir"
14973 libdir="$found_dir"
14974 eval flag=\"$hardcode_libdir_flag_spec\"
14975 libdir="$acl_save_libdir"
14976 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14977 done
14980 if test "X$ltrpathdirs" != "X"; then
14981 for found_dir in $ltrpathdirs; do
14982 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
14983 done
15010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
15011 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
15012 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
15013 $as_echo_n "(cached) " >&6
15014 else
15015 gt_save_LIBS="$LIBS"
15016 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
15017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15018 /* end confdefs.h. */
15019 #include <CoreFoundation/CFPreferences.h>
15021 main ()
15023 CFPreferencesCopyAppValue(NULL, NULL)
15025 return 0;
15027 _ACEOF
15028 if ac_fn_c_try_link "$LINENO"; then :
15029 gt_cv_func_CFPreferencesCopyAppValue=yes
15030 else
15031 gt_cv_func_CFPreferencesCopyAppValue=no
15033 rm -f core conftest.err conftest.$ac_objext \
15034 conftest$ac_exeext conftest.$ac_ext
15035 LIBS="$gt_save_LIBS"
15037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
15038 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
15039 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
15041 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
15044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
15045 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
15046 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
15047 $as_echo_n "(cached) " >&6
15048 else
15049 gt_save_LIBS="$LIBS"
15050 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
15051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15052 /* end confdefs.h. */
15053 #include <CoreFoundation/CFLocale.h>
15055 main ()
15057 CFLocaleCopyCurrent();
15059 return 0;
15061 _ACEOF
15062 if ac_fn_c_try_link "$LINENO"; then :
15063 gt_cv_func_CFLocaleCopyCurrent=yes
15064 else
15065 gt_cv_func_CFLocaleCopyCurrent=no
15067 rm -f core conftest.err conftest.$ac_objext \
15068 conftest$ac_exeext conftest.$ac_ext
15069 LIBS="$gt_save_LIBS"
15071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
15072 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
15073 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
15075 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
15078 INTL_MACOSX_LIBS=
15079 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
15080 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
15088 LIBINTL=
15089 LTLIBINTL=
15090 POSUB=
15092 case " $gt_needs " in
15093 *" need-formatstring-macros "*) gt_api_version=3 ;;
15094 *" need-ngettext "*) gt_api_version=2 ;;
15095 *) gt_api_version=1 ;;
15096 esac
15097 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
15098 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
15100 if test "$USE_NLS" = "yes"; then
15101 gt_use_preinstalled_gnugettext=no
15104 if test $gt_api_version -ge 3; then
15105 gt_revision_test_code='
15106 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
15107 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
15108 #endif
15109 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
15111 else
15112 gt_revision_test_code=
15114 if test $gt_api_version -ge 2; then
15115 gt_expression_test_code=' + * ngettext ("", "", 0)'
15116 else
15117 gt_expression_test_code=
15120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
15121 $as_echo_n "checking for GNU gettext in libc... " >&6; }
15122 if eval \${$gt_func_gnugettext_libc+:} false; then :
15123 $as_echo_n "(cached) " >&6
15124 else
15125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15126 /* end confdefs.h. */
15127 #include <libintl.h>
15128 $gt_revision_test_code
15129 extern int _nl_msg_cat_cntr;
15130 extern int *_nl_domain_bindings;
15132 main ()
15134 bindtextdomain ("", "");
15135 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
15137 return 0;
15139 _ACEOF
15140 if ac_fn_c_try_link "$LINENO"; then :
15141 eval "$gt_func_gnugettext_libc=yes"
15142 else
15143 eval "$gt_func_gnugettext_libc=no"
15145 rm -f core conftest.err conftest.$ac_objext \
15146 conftest$ac_exeext conftest.$ac_ext
15148 eval ac_res=\$$gt_func_gnugettext_libc
15149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15150 $as_echo "$ac_res" >&6; }
15152 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
15158 am_save_CPPFLAGS="$CPPFLAGS"
15160 for element in $INCICONV; do
15161 haveit=
15162 for x in $CPPFLAGS; do
15164 acl_save_prefix="$prefix"
15165 prefix="$acl_final_prefix"
15166 acl_save_exec_prefix="$exec_prefix"
15167 exec_prefix="$acl_final_exec_prefix"
15168 eval x=\"$x\"
15169 exec_prefix="$acl_save_exec_prefix"
15170 prefix="$acl_save_prefix"
15172 if test "X$x" = "X$element"; then
15173 haveit=yes
15174 break
15176 done
15177 if test -z "$haveit"; then
15178 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15180 done
15183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
15184 $as_echo_n "checking for iconv... " >&6; }
15185 if ${am_cv_func_iconv+:} false; then :
15186 $as_echo_n "(cached) " >&6
15187 else
15189 am_cv_func_iconv="no, consider installing GNU libiconv"
15190 am_cv_lib_iconv=no
15191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15192 /* end confdefs.h. */
15193 #include <stdlib.h>
15194 #include <iconv.h>
15196 main ()
15198 iconv_t cd = iconv_open("","");
15199 iconv(cd,NULL,NULL,NULL,NULL);
15200 iconv_close(cd);
15202 return 0;
15204 _ACEOF
15205 if ac_fn_c_try_link "$LINENO"; then :
15206 am_cv_func_iconv=yes
15208 rm -f core conftest.err conftest.$ac_objext \
15209 conftest$ac_exeext conftest.$ac_ext
15210 if test "$am_cv_func_iconv" != yes; then
15211 am_save_LIBS="$LIBS"
15212 LIBS="$LIBS $LIBICONV"
15213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15214 /* end confdefs.h. */
15215 #include <stdlib.h>
15216 #include <iconv.h>
15218 main ()
15220 iconv_t cd = iconv_open("","");
15221 iconv(cd,NULL,NULL,NULL,NULL);
15222 iconv_close(cd);
15224 return 0;
15226 _ACEOF
15227 if ac_fn_c_try_link "$LINENO"; then :
15228 am_cv_lib_iconv=yes
15229 am_cv_func_iconv=yes
15231 rm -f core conftest.err conftest.$ac_objext \
15232 conftest$ac_exeext conftest.$ac_ext
15233 LIBS="$am_save_LIBS"
15237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
15238 $as_echo "$am_cv_func_iconv" >&6; }
15239 if test "$am_cv_func_iconv" = yes; then
15241 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
15244 if test "$am_cv_lib_iconv" = yes; then
15245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
15246 $as_echo_n "checking how to link with libiconv... " >&6; }
15247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
15248 $as_echo "$LIBICONV" >&6; }
15249 else
15250 CPPFLAGS="$am_save_CPPFLAGS"
15251 LIBICONV=
15252 LTLIBICONV=
15261 use_additional=yes
15263 acl_save_prefix="$prefix"
15264 prefix="$acl_final_prefix"
15265 acl_save_exec_prefix="$exec_prefix"
15266 exec_prefix="$acl_final_exec_prefix"
15268 eval additional_includedir=\"$includedir\"
15269 eval additional_libdir=\"$libdir\"
15271 exec_prefix="$acl_save_exec_prefix"
15272 prefix="$acl_save_prefix"
15275 # Check whether --with-libintl-prefix was given.
15276 if test "${with_libintl_prefix+set}" = set; then :
15277 withval=$with_libintl_prefix;
15278 if test "X$withval" = "Xno"; then
15279 use_additional=no
15280 else
15281 if test "X$withval" = "X"; then
15283 acl_save_prefix="$prefix"
15284 prefix="$acl_final_prefix"
15285 acl_save_exec_prefix="$exec_prefix"
15286 exec_prefix="$acl_final_exec_prefix"
15288 eval additional_includedir=\"$includedir\"
15289 eval additional_libdir=\"$libdir\"
15291 exec_prefix="$acl_save_exec_prefix"
15292 prefix="$acl_save_prefix"
15294 else
15295 additional_includedir="$withval/include"
15296 additional_libdir="$withval/$acl_libdirstem"
15302 LIBINTL=
15303 LTLIBINTL=
15304 INCINTL=
15305 rpathdirs=
15306 ltrpathdirs=
15307 names_already_handled=
15308 names_next_round='intl '
15309 while test -n "$names_next_round"; do
15310 names_this_round="$names_next_round"
15311 names_next_round=
15312 for name in $names_this_round; do
15313 already_handled=
15314 for n in $names_already_handled; do
15315 if test "$n" = "$name"; then
15316 already_handled=yes
15317 break
15319 done
15320 if test -z "$already_handled"; then
15321 names_already_handled="$names_already_handled $name"
15322 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
15323 eval value=\"\$HAVE_LIB$uppername\"
15324 if test -n "$value"; then
15325 if test "$value" = yes; then
15326 eval value=\"\$LIB$uppername\"
15327 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
15328 eval value=\"\$LTLIB$uppername\"
15329 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
15330 else
15333 else
15334 found_dir=
15335 found_la=
15336 found_so=
15337 found_a=
15338 if test $use_additional = yes; then
15339 if test -n "$shlibext" \
15340 && { test -f "$additional_libdir/lib$name.$shlibext" \
15341 || { test "$shlibext" = dll \
15342 && test -f "$additional_libdir/lib$name.dll.a"; }; }; then
15343 found_dir="$additional_libdir"
15344 if test -f "$additional_libdir/lib$name.$shlibext"; then
15345 found_so="$additional_libdir/lib$name.$shlibext"
15346 else
15347 found_so="$additional_libdir/lib$name.dll.a"
15349 if test -f "$additional_libdir/lib$name.la"; then
15350 found_la="$additional_libdir/lib$name.la"
15352 else
15353 if test -f "$additional_libdir/lib$name.$libext"; then
15354 found_dir="$additional_libdir"
15355 found_a="$additional_libdir/lib$name.$libext"
15356 if test -f "$additional_libdir/lib$name.la"; then
15357 found_la="$additional_libdir/lib$name.la"
15362 if test "X$found_dir" = "X"; then
15363 for x in $LDFLAGS $LTLIBINTL; do
15365 acl_save_prefix="$prefix"
15366 prefix="$acl_final_prefix"
15367 acl_save_exec_prefix="$exec_prefix"
15368 exec_prefix="$acl_final_exec_prefix"
15369 eval x=\"$x\"
15370 exec_prefix="$acl_save_exec_prefix"
15371 prefix="$acl_save_prefix"
15373 case "$x" in
15374 -L*)
15375 dir=`echo "X$x" | sed -e 's/^X-L//'`
15376 if test -n "$shlibext" \
15377 && { test -f "$dir/lib$name.$shlibext" \
15378 || { test "$shlibext" = dll \
15379 && test -f "$dir/lib$name.dll.a"; }; }; then
15380 found_dir="$dir"
15381 if test -f "$dir/lib$name.$shlibext"; then
15382 found_so="$dir/lib$name.$shlibext"
15383 else
15384 found_so="$dir/lib$name.dll.a"
15386 if test -f "$dir/lib$name.la"; then
15387 found_la="$dir/lib$name.la"
15389 else
15390 if test -f "$dir/lib$name.$libext"; then
15391 found_dir="$dir"
15392 found_a="$dir/lib$name.$libext"
15393 if test -f "$dir/lib$name.la"; then
15394 found_la="$dir/lib$name.la"
15399 esac
15400 if test "X$found_dir" != "X"; then
15401 break
15403 done
15405 if test "X$found_dir" != "X"; then
15406 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
15407 if test "X$found_so" != "X"; then
15408 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
15409 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15410 else
15411 haveit=
15412 for x in $ltrpathdirs; do
15413 if test "X$x" = "X$found_dir"; then
15414 haveit=yes
15415 break
15417 done
15418 if test -z "$haveit"; then
15419 ltrpathdirs="$ltrpathdirs $found_dir"
15421 if test "$hardcode_direct" = yes; then
15422 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15423 else
15424 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
15425 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15426 haveit=
15427 for x in $rpathdirs; do
15428 if test "X$x" = "X$found_dir"; then
15429 haveit=yes
15430 break
15432 done
15433 if test -z "$haveit"; then
15434 rpathdirs="$rpathdirs $found_dir"
15436 else
15437 haveit=
15438 for x in $LDFLAGS $LIBINTL; do
15440 acl_save_prefix="$prefix"
15441 prefix="$acl_final_prefix"
15442 acl_save_exec_prefix="$exec_prefix"
15443 exec_prefix="$acl_final_exec_prefix"
15444 eval x=\"$x\"
15445 exec_prefix="$acl_save_exec_prefix"
15446 prefix="$acl_save_prefix"
15448 if test "X$x" = "X-L$found_dir"; then
15449 haveit=yes
15450 break
15452 done
15453 if test -z "$haveit"; then
15454 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
15456 if test "$hardcode_minus_L" != no; then
15457 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15458 else
15459 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
15464 else
15465 if test "X$found_a" != "X"; then
15466 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
15467 else
15468 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
15471 additional_includedir=
15472 case "$found_dir" in
15473 */$acl_libdirstem | */$acl_libdirstem/)
15474 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
15475 additional_includedir="$basedir/include"
15477 esac
15478 if test "X$additional_includedir" != "X"; then
15479 if test "X$additional_includedir" != "X/usr/include"; then
15480 haveit=
15481 if test "X$additional_includedir" = "X/usr/local/include"; then
15482 if test -n "$GCC"; then
15483 case $host_os in
15484 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15485 esac
15488 if test -z "$haveit"; then
15489 for x in $CPPFLAGS $INCINTL; do
15491 acl_save_prefix="$prefix"
15492 prefix="$acl_final_prefix"
15493 acl_save_exec_prefix="$exec_prefix"
15494 exec_prefix="$acl_final_exec_prefix"
15495 eval x=\"$x\"
15496 exec_prefix="$acl_save_exec_prefix"
15497 prefix="$acl_save_prefix"
15499 if test "X$x" = "X-I$additional_includedir"; then
15500 haveit=yes
15501 break
15503 done
15504 if test -z "$haveit"; then
15505 if test -d "$additional_includedir"; then
15506 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
15512 if test -n "$found_la"; then
15513 save_libdir="$libdir"
15514 case "$found_la" in
15515 */* | *\\*) . "$found_la" ;;
15516 *) . "./$found_la" ;;
15517 esac
15518 libdir="$save_libdir"
15519 for dep in $dependency_libs; do
15520 case "$dep" in
15521 -L*)
15522 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
15523 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
15524 haveit=
15525 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
15526 if test -n "$GCC"; then
15527 case $host_os in
15528 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15529 esac
15532 if test -z "$haveit"; then
15533 haveit=
15534 for x in $LDFLAGS $LIBINTL; do
15536 acl_save_prefix="$prefix"
15537 prefix="$acl_final_prefix"
15538 acl_save_exec_prefix="$exec_prefix"
15539 exec_prefix="$acl_final_exec_prefix"
15540 eval x=\"$x\"
15541 exec_prefix="$acl_save_exec_prefix"
15542 prefix="$acl_save_prefix"
15544 if test "X$x" = "X-L$additional_libdir"; then
15545 haveit=yes
15546 break
15548 done
15549 if test -z "$haveit"; then
15550 if test -d "$additional_libdir"; then
15551 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
15554 haveit=
15555 for x in $LDFLAGS $LTLIBINTL; do
15557 acl_save_prefix="$prefix"
15558 prefix="$acl_final_prefix"
15559 acl_save_exec_prefix="$exec_prefix"
15560 exec_prefix="$acl_final_exec_prefix"
15561 eval x=\"$x\"
15562 exec_prefix="$acl_save_exec_prefix"
15563 prefix="$acl_save_prefix"
15565 if test "X$x" = "X-L$additional_libdir"; then
15566 haveit=yes
15567 break
15569 done
15570 if test -z "$haveit"; then
15571 if test -d "$additional_libdir"; then
15572 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
15578 -R*)
15579 dir=`echo "X$dep" | sed -e 's/^X-R//'`
15580 if test "$enable_rpath" != no; then
15581 haveit=
15582 for x in $rpathdirs; do
15583 if test "X$x" = "X$dir"; then
15584 haveit=yes
15585 break
15587 done
15588 if test -z "$haveit"; then
15589 rpathdirs="$rpathdirs $dir"
15591 haveit=
15592 for x in $ltrpathdirs; do
15593 if test "X$x" = "X$dir"; then
15594 haveit=yes
15595 break
15597 done
15598 if test -z "$haveit"; then
15599 ltrpathdirs="$ltrpathdirs $dir"
15603 -l*)
15604 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15606 *.la)
15607 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15610 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
15611 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
15613 esac
15614 done
15616 else
15617 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
15618 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
15622 done
15623 done
15624 if test "X$rpathdirs" != "X"; then
15625 if test -n "$hardcode_libdir_separator"; then
15626 alldirs=
15627 for found_dir in $rpathdirs; do
15628 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
15629 done
15630 acl_save_libdir="$libdir"
15631 libdir="$alldirs"
15632 eval flag=\"$hardcode_libdir_flag_spec\"
15633 libdir="$acl_save_libdir"
15634 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
15635 else
15636 for found_dir in $rpathdirs; do
15637 acl_save_libdir="$libdir"
15638 libdir="$found_dir"
15639 eval flag=\"$hardcode_libdir_flag_spec\"
15640 libdir="$acl_save_libdir"
15641 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
15642 done
15645 if test "X$ltrpathdirs" != "X"; then
15646 for found_dir in $ltrpathdirs; do
15647 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
15648 done
15651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
15652 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
15653 if eval \${$gt_func_gnugettext_libintl+:} false; then :
15654 $as_echo_n "(cached) " >&6
15655 else
15656 gt_save_CPPFLAGS="$CPPFLAGS"
15657 CPPFLAGS="$CPPFLAGS $INCINTL"
15658 gt_save_LIBS="$LIBS"
15659 LIBS="$LIBS $LIBINTL"
15660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15661 /* end confdefs.h. */
15662 #include <libintl.h>
15663 $gt_revision_test_code
15664 extern int _nl_msg_cat_cntr;
15665 extern
15666 #ifdef __cplusplus
15668 #endif
15669 const char *_nl_expand_alias (const char *);
15671 main ()
15673 bindtextdomain ("", "");
15674 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
15676 return 0;
15678 _ACEOF
15679 if ac_fn_c_try_link "$LINENO"; then :
15680 eval "$gt_func_gnugettext_libintl=yes"
15681 else
15682 eval "$gt_func_gnugettext_libintl=no"
15684 rm -f core conftest.err conftest.$ac_objext \
15685 conftest$ac_exeext conftest.$ac_ext
15686 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
15687 LIBS="$LIBS $LIBICONV"
15688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15689 /* end confdefs.h. */
15690 #include <libintl.h>
15691 $gt_revision_test_code
15692 extern int _nl_msg_cat_cntr;
15693 extern
15694 #ifdef __cplusplus
15696 #endif
15697 const char *_nl_expand_alias (const char *);
15699 main ()
15701 bindtextdomain ("", "");
15702 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
15704 return 0;
15706 _ACEOF
15707 if ac_fn_c_try_link "$LINENO"; then :
15708 LIBINTL="$LIBINTL $LIBICONV"
15709 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
15710 eval "$gt_func_gnugettext_libintl=yes"
15713 rm -f core conftest.err conftest.$ac_objext \
15714 conftest$ac_exeext conftest.$ac_ext
15716 CPPFLAGS="$gt_save_CPPFLAGS"
15717 LIBS="$gt_save_LIBS"
15719 eval ac_res=\$$gt_func_gnugettext_libintl
15720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15721 $as_echo "$ac_res" >&6; }
15724 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
15725 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
15726 && test "$PACKAGE" != gettext-runtime \
15727 && test "$PACKAGE" != gettext-tools; }; then
15728 gt_use_preinstalled_gnugettext=yes
15729 else
15730 LIBINTL=
15731 LTLIBINTL=
15732 INCINTL=
15737 if test -n "$INTL_MACOSX_LIBS"; then
15738 if test "$gt_use_preinstalled_gnugettext" = "yes" \
15739 || test "$nls_cv_use_gnu_gettext" = "yes"; then
15740 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
15741 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
15745 if test "$gt_use_preinstalled_gnugettext" = "yes" \
15746 || test "$nls_cv_use_gnu_gettext" = "yes"; then
15748 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
15750 else
15751 USE_NLS=no
15755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
15756 $as_echo_n "checking whether to use NLS... " >&6; }
15757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
15758 $as_echo "$USE_NLS" >&6; }
15759 if test "$USE_NLS" = "yes"; then
15760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
15761 $as_echo_n "checking where the gettext function comes from... " >&6; }
15762 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
15763 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
15764 gt_source="external libintl"
15765 else
15766 gt_source="libc"
15768 else
15769 gt_source="included intl directory"
15771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
15772 $as_echo "$gt_source" >&6; }
15775 if test "$USE_NLS" = "yes"; then
15777 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
15778 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
15779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
15780 $as_echo_n "checking how to link with libintl... " >&6; }
15781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
15782 $as_echo "$LIBINTL" >&6; }
15784 for element in $INCINTL; do
15785 haveit=
15786 for x in $CPPFLAGS; do
15788 acl_save_prefix="$prefix"
15789 prefix="$acl_final_prefix"
15790 acl_save_exec_prefix="$exec_prefix"
15791 exec_prefix="$acl_final_exec_prefix"
15792 eval x=\"$x\"
15793 exec_prefix="$acl_save_exec_prefix"
15794 prefix="$acl_save_prefix"
15796 if test "X$x" = "X$element"; then
15797 haveit=yes
15798 break
15800 done
15801 if test -z "$haveit"; then
15802 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15804 done
15809 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
15812 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
15816 POSUB=po
15821 INTLLIBS="$LIBINTL"
15829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: dmalloc enabled" >&5
15830 $as_echo_n "checking option: dmalloc enabled... " >&6; }
15831 # Check whether --enable-dmalloc was given.
15832 if test "${enable_dmalloc+set}" = set; then :
15833 enableval=$enable_dmalloc;
15836 if test x$enable_dmalloc = "xyes" ; then
15837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15838 $as_echo "yes" >&6; }
15839 else
15840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15841 $as_echo "no" >&6; }
15845 # Check whether --with-dmalloc-dir was given.
15846 if test "${with_dmalloc_dir+set}" = set; then :
15847 withval=$with_dmalloc_dir;
15848 if test "x$withval" != "xno" ; then
15849 enable_dmalloc = "yes"
15850 CPPFLAGS="$CPPFLAGS -I${withval}"
15851 LDFLAGS="$LDFLAGS -L${withval}"
15857 if test x$enable_dmalloc = "xyes" ; then
15859 $as_echo "#define ENABLE_DMALLOC 1" >>confdefs.h
15863 ALPINE_datestamp=`date`
15865 # Check whether --with-date-stamp was given.
15866 if test "${with_date_stamp+set}" = set; then :
15867 withval=$with_date_stamp;
15868 if test "x$withval" != "xno" ; then
15869 ALPINE_datestamp=$withval
15874 ALPINE_DATESTAMP=$ALPINE_datestamp
15877 ALPINE_hoststamp=`hostname`
15879 # Check whether --with-host-stamp was given.
15880 if test "${with_host_stamp+set}" = set; then :
15881 withval=$with_host_stamp;
15882 if test "x$withval" != "xno" ; then
15883 ALPINE_hoststamp="$withval"
15888 ALPINE_HOSTSTAMP=$ALPINE_hoststamp
15891 ALPINE_psefcmd="/bin/ps auxww"
15892 ALPINE_psfailed="0"
15893 ALPINE_PSTEST="-"
15895 # Check whether --with-ps-cmd was given.
15896 if test "${with_ps_cmd+set}" = set; then :
15897 withval=$with_ps_cmd;
15898 if test "x$withval" = "xno" -o "x$withval" = "xyes" -o "x$withval" = "x" ; then
15899 withval=$ALPINE_psefcmd
15901 ALPINE_PSTEST=`$withval | $EGREP "$withval" | $EGREP -v $EGREP`
15902 if test -n "$ALPINE_PSTEST" ; then
15903 ALPINE_psefcmd="$withval"
15904 else
15905 ALPINE_psfailed="1"
15906 if test "x$ALPINE_psefcmd" != "x$withval" ; then
15907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: failed command $withval. Trying $ALPINE_psefcmd" >&5
15908 $as_echo "$as_me: WARNING: failed command $withval. Trying $ALPINE_psefcmd" >&2;}
15914 if test "$ALPINE_psfailed" = "1" -o "$ALPINE_PSTEST" = "-" ; then
15915 withval="$ALPINE_psefcmd"
15916 ALPINE_PSTEST=`$withval | $EGREP "$withval" | $EGREP -v $EGREP`
15917 if test -z "$ALPINE_PSTEST" ; then
15918 ALPINE_psfailed="1"
15919 else
15920 ALPINE_psfailed="0"
15923 if test "$ALPINE_psfailed" = "0" ; then
15925 cat >>confdefs.h <<_ACEOF
15926 #define PSEFCMD "$ALPINE_psefcmd"
15927 _ACEOF
15931 case $host in
15932 *apple-darwin*)
15933 if test -d /opt/local ; then
15934 localedir="/opt/local/share/locale"
15935 else
15936 localedir="\${datadir}/locale"
15939 *-*-cygwin)
15940 localedir="/usr/share"
15943 localedir="\${datadir}/locale"
15945 esac
15948 # Check whether --with-localedir was given.
15949 if test "${with_localedir+set}" = set; then :
15950 withval=$with_localedir;
15951 case $withval in
15952 yes)
15957 localedir=$withval
15959 esac
15963 localedir="$localedir"
15966 # Setup OS-Specific features
15967 case "$host" in
15968 *darwin*)
15969 # Check whether --enable-osx-universal-binaries was given.
15970 if test "${enable_osx_universal_binaries+set}" = set; then :
15971 enableval=$enable_osx_universal_binaries;
15974 if test "x$enable_osx_universal_binaries" = "xyes" ; then
15975 if test "x$enable_dependency_tracking" != xno ; then
15976 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
15977 Please re-run configure with these options:
15978 --disable-dependency-tracking --enable-osx-universal-binary" "$LINENO" 5
15980 if test -d /Developer/SDKs/MacOSX10.5.sdk ; then
15981 alpine_sysroot=/Developer/SDKs/MacOSX10.5.sdk
15982 elif test -d /Developer/SDKs/MacOSX10.4u.sdk ; then
15983 alpine_sysroot=/Developer/SDKs/MacOSX10.4u.sdk
15984 else
15985 as_fn_error $? "No suitable MacOSX SDK found. Make sure Xcode tools are installed" "$LINENO" 5
15987 ub_cflags="-isysroot $alpine_sysroot -arch ppc -arch i386"
15988 ub_ldflags="-Wl,-syslibroot,$alpine_sysroot -arch ppc -arch i386"
15989 AM_CFLAGS="$AM_CFLAGS $ub_cflags"
15990 AM_LDFLAGS="$AM_LDFLAGS $ub_ldflags"
15991 alpine_c_client_cflags="$alpine_c_client_cflags $ub_cflags"
15992 alpine_c_client_ldflags="$alpine_c_client_ldflags $ub_ldflags"
15995 esac
15998 # Check whether --with-include-path was given.
15999 if test "${with_include_path+set}" = set; then :
16000 withval=$with_include_path;
16001 case $withval in
16004 yes)
16007 new_cppflags="-I`echo ${withval} | ${SED} 's/:/ -I/g'`"
16008 CPPFLAGS="$CPPFLAGS ${new_cppflags}"
16009 alpine_c_client_cflags="$alpine_c_client_cflags ${new_cppflags}"
16011 esac
16017 # Check whether --with-lib-path was given.
16018 if test "${with_lib_path+set}" = set; then :
16019 withval=$with_lib_path;
16020 case $withval in
16023 yes)
16026 new_ldflags="-L`echo ${withval} | ${SED} 's/:/ -L/g'`"
16027 LDFLAGS="$LDFLAGS $new_ldflags"
16028 alpine_c_client_ldflags="$alpine_c_client_ldflags ${new_ldflags}"
16030 esac
16036 # Check whether --with-pubcookie was given.
16037 if test "${with_pubcookie+set}" = set; then :
16038 withval=$with_pubcookie;
16039 if test "x$withval" != "xno" ; then
16040 WEB_PUBCOOKIE_BUILD=web/src/pubcookie
16048 # Check whether --with-web-bin was given.
16049 if test "${with_web_bin+set}" = set; then :
16050 withval=$with_web_bin;
16051 case "$withval" in
16054 yes)
16057 WEB_BINDIR=$withval
16059 esac
16064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: debugging is enabled" >&5
16065 $as_echo_n "checking option: debugging is enabled... " >&6; }
16066 # Check whether --enable-debug was given.
16067 if test "${enable_debug+set}" = set; then :
16068 enableval=$enable_debug;
16071 if test x$enable_debug != "xno" ; then
16072 AM_CFLAGS="$AM_CFLAGS -g"
16074 $as_echo "#define DEBUG 1" >>confdefs.h
16077 $as_echo "#define DEBUGJOURNAL 1" >>confdefs.h
16079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16080 $as_echo "yes" >&6; }
16081 else
16082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16083 $as_echo "no" >&6; }
16086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: optimization is enabled" >&5
16087 $as_echo_n "checking option: optimization is enabled... " >&6; }
16088 # Check whether --enable-optimization was given.
16089 if test "${enable_optimization+set}" = set; then :
16090 enableval=$enable_optimization;
16093 if test x$enable_optimization != "xno" ; then
16094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16095 $as_echo "yes" >&6; }
16096 else
16097 CFLAGS="`echo $AM_CFLAGS | ${SED} 's/-O2//'`"
16098 alpine_c_client_gccoptlevel="-O0"
16099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16100 $as_echo "no" >&6; }
16103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: mouse support enabled" >&5
16104 $as_echo_n "checking option: mouse support enabled... " >&6; }
16105 # Check whether --enable-mouse was given.
16106 if test "${enable_mouse+set}" = set; then :
16107 enableval=$enable_mouse;
16110 if test x$enable_mouse != "xno" ; then
16112 $as_echo "#define MOUSE /**/" >>confdefs.h
16114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16115 $as_echo "yes" >&6; }
16116 else
16117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16118 $as_echo "no" >&6; }
16121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: quotas enabled" >&5
16122 $as_echo_n "checking option: quotas enabled... " >&6; }
16123 # Check whether --enable-quotas was given.
16124 if test "${enable_quotas+set}" = set; then :
16125 enableval=$enable_quotas;
16128 if test x$enable_quotas = "xyes" ; then
16130 $as_echo "#define USE_QUOTAS /**/" >>confdefs.h
16132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16133 $as_echo "yes" >&6; }
16134 else
16135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16136 $as_echo "no" >&6; }
16139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: From changing enabled" >&5
16140 $as_echo_n "checking option: From changing enabled... " >&6; }
16141 # Check whether --enable-from_changing was given.
16142 if test "${enable_from_changing+set}" = set; then :
16143 enableval=$enable_from_changing;
16146 if test x$enable_from_changing != "xno" ; then
16147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16148 $as_echo "yes" >&6; }
16149 else
16151 $as_echo "#define NEVER_ALLOW_CHANGING_FROM /**/" >>confdefs.h
16153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16154 $as_echo "no" >&6; }
16157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: background post enabled" >&5
16158 $as_echo_n "checking option: background post enabled... " >&6; }
16159 # Check whether --enable-background-post was given.
16160 if test "${enable_background_post+set}" = set; then :
16161 enableval=$enable_background_post;
16164 if test x$enable_background_post != "xno" ; then
16166 $as_echo "#define BACKGROUND_POST /**/" >>confdefs.h
16168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16169 $as_echo "yes" >&6; }
16170 else
16171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16172 $as_echo "no" >&6; }
16175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: keyboard lock enabled" >&5
16176 $as_echo_n "checking option: keyboard lock enabled... " >&6; }
16177 # Check whether --enable-keyboard-lock was given.
16178 if test "${enable_keyboard_lock+set}" = set; then :
16179 enableval=$enable_keyboard_lock;
16182 if test x$enable_keyboard_lock != "xno" ; then
16184 $as_echo "#define KEYBOARD_LOCK /**/" >>confdefs.h
16186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16187 $as_echo "yes" >&6; }
16188 else
16189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16190 $as_echo "no" >&6; }
16193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: from encoding enabled" >&5
16194 $as_echo_n "checking option: from encoding enabled... " >&6; }
16195 # Check whether --enable-from-encoding was given.
16196 if test "${enable_from_encoding+set}" = set; then :
16197 enableval=$enable_from_encoding;
16200 if test x$enable_from_encoding = "xyes" ; then
16202 $as_echo "#define ENCODE_FROMS /**/" >>confdefs.h
16204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16205 $as_echo "yes" >&6; }
16206 else
16207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16208 $as_echo "no" >&6; }
16212 # Check whether --with-smtp-msa was given.
16213 if test "${with_smtp_msa+set}" = set; then :
16214 withval=$with_smtp_msa;
16215 case "$withval" in
16218 yes)
16219 # Extract the first word of "sendmail", so it can be a program name with args.
16220 set dummy sendmail; ac_word=$2
16221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16222 $as_echo_n "checking for $ac_word... " >&6; }
16223 if ${ac_cv_path_SENDMAIL+:} false; then :
16224 $as_echo_n "(cached) " >&6
16225 else
16226 case $SENDMAIL in
16227 [\\/]* | ?:[\\/]*)
16228 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
16231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16232 as_dummy="$PATH:/usr/sbin:/usr/lib"
16233 for as_dir in $as_dummy
16235 IFS=$as_save_IFS
16236 test -z "$as_dir" && as_dir=.
16237 for ac_exec_ext in '' $ac_executable_extensions; do
16238 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16239 ac_cv_path_SENDMAIL="$as_dir/$ac_word$ac_exec_ext"
16240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16241 break 2
16243 done
16244 done
16245 IFS=$as_save_IFS
16247 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL=""""
16249 esac
16251 SENDMAIL=$ac_cv_path_SENDMAIL
16252 if test -n "$SENDMAIL"; then
16253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SENDMAIL" >&5
16254 $as_echo "$SENDMAIL" >&6; }
16255 else
16256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16257 $as_echo "no" >&6; }
16263 SENDMAIL=$withval
16265 esac
16267 else
16269 # Extract the first word of "sendmail", so it can be a program name with args.
16270 set dummy sendmail; ac_word=$2
16271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16272 $as_echo_n "checking for $ac_word... " >&6; }
16273 if ${ac_cv_path_SENDMAIL+:} false; then :
16274 $as_echo_n "(cached) " >&6
16275 else
16276 case $SENDMAIL in
16277 [\\/]* | ?:[\\/]*)
16278 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
16281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16282 as_dummy="$PATH:/usr/sbin:/usr/lib"
16283 for as_dir in $as_dummy
16285 IFS=$as_save_IFS
16286 test -z "$as_dir" && as_dir=.
16287 for ac_exec_ext in '' $ac_executable_extensions; do
16288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16289 ac_cv_path_SENDMAIL="$as_dir/$ac_word$ac_exec_ext"
16290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16291 break 2
16293 done
16294 done
16295 IFS=$as_save_IFS
16297 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL=""""
16299 esac
16301 SENDMAIL=$ac_cv_path_SENDMAIL
16302 if test -n "$SENDMAIL"; then
16303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SENDMAIL" >&5
16304 $as_echo "$SENDMAIL" >&6; }
16305 else
16306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16307 $as_echo "no" >&6; }
16314 if test -n "$SENDMAIL" ; then
16316 cat >>confdefs.h <<_ACEOF
16317 #define SENDMAIL "$SENDMAIL"
16318 _ACEOF
16322 smtp_msa_flags="-bs -odb -oem"
16324 # Check whether --with-smtp-msa-flags was given.
16325 if test "${with_smtp_msa_flags+set}" = set; then :
16326 withval=$with_smtp_msa_flags;
16327 if test "x$withval" != "xno" ; then
16328 smtp_msa_flags=$withval
16334 cat >>confdefs.h <<_ACEOF
16335 #define SENDMAILFLAGS "$smtp_msa_flags"
16336 _ACEOF
16339 npa="inews"
16341 # Check whether --with-npa was given.
16342 if test "${with_npa+set}" = set; then :
16343 withval=$with_npa;
16344 case "$withval" in
16347 yes)
16348 # Extract the first word of "inews", so it can be a program name with args.
16349 set dummy inews; ac_word=$2
16350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16351 $as_echo_n "checking for $ac_word... " >&6; }
16352 if ${ac_cv_path_NPA_PROG+:} false; then :
16353 $as_echo_n "(cached) " >&6
16354 else
16355 case $NPA_PROG in
16356 [\\/]* | ?:[\\/]*)
16357 ac_cv_path_NPA_PROG="$NPA_PROG" # Let the user override the test with a path.
16360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16361 as_dummy="$PATH:/usr/sbin:/usr/lib"
16362 for as_dir in $as_dummy
16364 IFS=$as_save_IFS
16365 test -z "$as_dir" && as_dir=.
16366 for ac_exec_ext in '' $ac_executable_extensions; do
16367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16368 ac_cv_path_NPA_PROG="$as_dir/$ac_word$ac_exec_ext"
16369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16370 break 2
16372 done
16373 done
16374 IFS=$as_save_IFS
16376 test -z "$ac_cv_path_NPA_PROG" && ac_cv_path_NPA_PROG=""""
16378 esac
16380 NPA_PROG=$ac_cv_path_NPA_PROG
16381 if test -n "$NPA_PROG"; then
16382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NPA_PROG" >&5
16383 $as_echo "$NPA_PROG" >&6; }
16384 else
16385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16386 $as_echo "no" >&6; }
16392 NPA_PROG=$withval
16394 esac
16396 else
16398 # Extract the first word of "inews", so it can be a program name with args.
16399 set dummy inews; ac_word=$2
16400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16401 $as_echo_n "checking for $ac_word... " >&6; }
16402 if ${ac_cv_path_NPA_PROG+:} false; then :
16403 $as_echo_n "(cached) " >&6
16404 else
16405 case $NPA_PROG in
16406 [\\/]* | ?:[\\/]*)
16407 ac_cv_path_NPA_PROG="$NPA_PROG" # Let the user override the test with a path.
16410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16411 as_dummy="$PATH:/usr/sbin:/usr/lib"
16412 for as_dir in $as_dummy
16414 IFS=$as_save_IFS
16415 test -z "$as_dir" && as_dir=.
16416 for ac_exec_ext in '' $ac_executable_extensions; do
16417 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16418 ac_cv_path_NPA_PROG="$as_dir/$ac_word$ac_exec_ext"
16419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16420 break 2
16422 done
16423 done
16424 IFS=$as_save_IFS
16426 test -z "$ac_cv_path_NPA_PROG" && ac_cv_path_NPA_PROG=""""
16428 esac
16430 NPA_PROG=$ac_cv_path_NPA_PROG
16431 if test -n "$NPA_PROG"; then
16432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NPA_PROG" >&5
16433 $as_echo "$NPA_PROG" >&6; }
16434 else
16435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16436 $as_echo "no" >&6; }
16444 npa_flags="-h"
16446 # Check whether --with-npa-flags was given.
16447 if test "${with_npa_flags+set}" = set; then :
16448 withval=$with_npa_flags;
16449 if test "x$withval" != "xno" ; then
16450 npa_flags=$withval
16455 if test -n "$NPA_PROG" ; then
16457 cat >>confdefs.h <<_ACEOF
16458 #define SENDNEWS "$NPA_PROG $npa_flags"
16459 _ACEOF
16464 # Check whether --with-password-prog was given.
16465 if test "${with_password_prog+set}" = set; then :
16466 withval=$with_password_prog;
16467 case "$withval" in
16470 yes)
16471 # Extract the first word of "passwd", so it can be a program name with args.
16472 set dummy passwd; ac_word=$2
16473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16474 $as_echo_n "checking for $ac_word... " >&6; }
16475 if ${ac_cv_path_PWPROG+:} false; then :
16476 $as_echo_n "(cached) " >&6
16477 else
16478 case $PWPROG in
16479 [\\/]* | ?:[\\/]*)
16480 ac_cv_path_PWPROG="$PWPROG" # Let the user override the test with a path.
16483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16484 as_dummy="$PATH:/usr/sbin:/usr/lib"
16485 for as_dir in $as_dummy
16487 IFS=$as_save_IFS
16488 test -z "$as_dir" && as_dir=.
16489 for ac_exec_ext in '' $ac_executable_extensions; do
16490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16491 ac_cv_path_PWPROG="$as_dir/$ac_word$ac_exec_ext"
16492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16493 break 2
16495 done
16496 done
16497 IFS=$as_save_IFS
16499 test -z "$ac_cv_path_PWPROG" && ac_cv_path_PWPROG=""""
16501 esac
16503 PWPROG=$ac_cv_path_PWPROG
16504 if test -n "$PWPROG"; then
16505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PWPROG" >&5
16506 $as_echo "$PWPROG" >&6; }
16507 else
16508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16509 $as_echo "no" >&6; }
16515 # Extract the first word of "$withval", so it can be a program name with args.
16516 set dummy $withval; ac_word=$2
16517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16518 $as_echo_n "checking for $ac_word... " >&6; }
16519 if ${ac_cv_path_PWPROG+:} false; then :
16520 $as_echo_n "(cached) " >&6
16521 else
16522 case $PWPROG in
16523 [\\/]* | ?:[\\/]*)
16524 ac_cv_path_PWPROG="$PWPROG" # Let the user override the test with a path.
16527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16528 as_dummy="$PATH:/usr/sbin:/usr/lib"
16529 for as_dir in $as_dummy
16531 IFS=$as_save_IFS
16532 test -z "$as_dir" && as_dir=.
16533 for ac_exec_ext in '' $ac_executable_extensions; do
16534 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16535 ac_cv_path_PWPROG="$as_dir/$ac_word$ac_exec_ext"
16536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16537 break 2
16539 done
16540 done
16541 IFS=$as_save_IFS
16543 test -z "$ac_cv_path_PWPROG" && ac_cv_path_PWPROG=""""
16545 esac
16547 PWPROG=$ac_cv_path_PWPROG
16548 if test -n "$PWPROG"; then
16549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PWPROG" >&5
16550 $as_echo "$PWPROG" >&6; }
16551 else
16552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16553 $as_echo "no" >&6; }
16558 esac
16560 else
16562 # Extract the first word of "passwd", so it can be a program name with args.
16563 set dummy passwd; ac_word=$2
16564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16565 $as_echo_n "checking for $ac_word... " >&6; }
16566 if ${ac_cv_path_PWPROG+:} false; then :
16567 $as_echo_n "(cached) " >&6
16568 else
16569 case $PWPROG in
16570 [\\/]* | ?:[\\/]*)
16571 ac_cv_path_PWPROG="$PWPROG" # Let the user override the test with a path.
16574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16575 as_dummy="$PATH:/usr/sbin:/usr/lib"
16576 for as_dir in $as_dummy
16578 IFS=$as_save_IFS
16579 test -z "$as_dir" && as_dir=.
16580 for ac_exec_ext in '' $ac_executable_extensions; do
16581 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16582 ac_cv_path_PWPROG="$as_dir/$ac_word$ac_exec_ext"
16583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16584 break 2
16586 done
16587 done
16588 IFS=$as_save_IFS
16590 test -z "$ac_cv_path_PWPROG" && ac_cv_path_PWPROG=""""
16592 esac
16594 PWPROG=$ac_cv_path_PWPROG
16595 if test -n "$PWPROG"; then
16596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PWPROG" >&5
16597 $as_echo "$PWPROG" >&6; }
16598 else
16599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16600 $as_echo "no" >&6; }
16607 if test -n "$PWPROG" ; then
16609 cat >>confdefs.h <<_ACEOF
16610 #define PASSWD_PROG "$PWPROG"
16611 _ACEOF
16616 # Check whether --with-simple-spellcheck was given.
16617 if test "${with_simple_spellcheck+set}" = set; then :
16618 withval=$with_simple_spellcheck;
16619 if test "x$withval" != "xno" ; then
16620 SPELLPROG=$withval
16623 else
16625 # Extract the first word of "hunspell", so it can be a program name with args.
16626 set dummy hunspell; ac_word=$2
16627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16628 $as_echo_n "checking for $ac_word... " >&6; }
16629 if ${ac_cv_prog_SPELLPROG+:} false; then :
16630 $as_echo_n "(cached) " >&6
16631 else
16632 if test -n "$SPELLPROG"; then
16633 ac_cv_prog_SPELLPROG="$SPELLPROG" # Let the user override the test.
16634 else
16635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16636 for as_dir in $PATH
16638 IFS=$as_save_IFS
16639 test -z "$as_dir" && as_dir=.
16640 for ac_exec_ext in '' $ac_executable_extensions; do
16641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16642 ac_cv_prog_SPELLPROG="hunspell"
16643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16644 break 2
16646 done
16647 done
16648 IFS=$as_save_IFS
16652 SPELLPROG=$ac_cv_prog_SPELLPROG
16653 if test -n "$SPELLPROG"; then
16654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPELLPROG" >&5
16655 $as_echo "$SPELLPROG" >&6; }
16656 else
16657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16658 $as_echo "no" >&6; }
16662 if test -z "$SPELLPROG" ; then
16663 # Extract the first word of "aspell", so it can be a program name with args.
16664 set dummy aspell; ac_word=$2
16665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16666 $as_echo_n "checking for $ac_word... " >&6; }
16667 if ${ac_cv_prog_SPELLPROG+:} false; then :
16668 $as_echo_n "(cached) " >&6
16669 else
16670 if test -n "$SPELLPROG"; then
16671 ac_cv_prog_SPELLPROG="$SPELLPROG" # Let the user override the test.
16672 else
16673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16674 for as_dir in $PATH
16676 IFS=$as_save_IFS
16677 test -z "$as_dir" && as_dir=.
16678 for ac_exec_ext in '' $ac_executable_extensions; do
16679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16680 ac_cv_prog_SPELLPROG="aspell"
16681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16682 break 2
16684 done
16685 done
16686 IFS=$as_save_IFS
16690 SPELLPROG=$ac_cv_prog_SPELLPROG
16691 if test -n "$SPELLPROG"; then
16692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPELLPROG" >&5
16693 $as_echo "$SPELLPROG" >&6; }
16694 else
16695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16696 $as_echo "no" >&6; }
16700 if test -z "$SPELLPROG" ; then
16701 # Extract the first word of "ispell", so it can be a program name with args.
16702 set dummy ispell; ac_word=$2
16703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16704 $as_echo_n "checking for $ac_word... " >&6; }
16705 if ${ac_cv_prog_SPELLPROG+:} false; then :
16706 $as_echo_n "(cached) " >&6
16707 else
16708 if test -n "$SPELLPROG"; then
16709 ac_cv_prog_SPELLPROG="$SPELLPROG" # Let the user override the test.
16710 else
16711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16712 for as_dir in $PATH
16714 IFS=$as_save_IFS
16715 test -z "$as_dir" && as_dir=.
16716 for ac_exec_ext in '' $ac_executable_extensions; do
16717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16718 ac_cv_prog_SPELLPROG="ispell"
16719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16720 break 2
16722 done
16723 done
16724 IFS=$as_save_IFS
16728 SPELLPROG=$ac_cv_prog_SPELLPROG
16729 if test -n "$SPELLPROG"; then
16730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPELLPROG" >&5
16731 $as_echo "$SPELLPROG" >&6; }
16732 else
16733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16734 $as_echo "no" >&6; }
16738 if test -z "$SPELLPROG" ; then
16739 SPELLPROG="spell"
16747 if test "x$SPELLPROG" != "xno" ; then
16748 # Extract the first word of "$SPELLPROG", so it can be a program name with args.
16749 set dummy $SPELLPROG; ac_word=$2
16750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16751 $as_echo_n "checking for $ac_word... " >&6; }
16752 if ${ac_cv_path_alpine_simple_spellcheck+:} false; then :
16753 $as_echo_n "(cached) " >&6
16754 else
16755 case $alpine_simple_spellcheck in
16756 [\\/]* | ?:[\\/]*)
16757 ac_cv_path_alpine_simple_spellcheck="$alpine_simple_spellcheck" # Let the user override the test with a path.
16760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16761 for as_dir in $PATH
16763 IFS=$as_save_IFS
16764 test -z "$as_dir" && as_dir=.
16765 for ac_exec_ext in '' $ac_executable_extensions; do
16766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16767 ac_cv_path_alpine_simple_spellcheck="$as_dir/$ac_word$ac_exec_ext"
16768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16769 break 2
16771 done
16772 done
16773 IFS=$as_save_IFS
16776 esac
16778 alpine_simple_spellcheck=$ac_cv_path_alpine_simple_spellcheck
16779 if test -n "$alpine_simple_spellcheck"; then
16780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $alpine_simple_spellcheck" >&5
16781 $as_echo "$alpine_simple_spellcheck" >&6; }
16782 else
16783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16784 $as_echo "no" >&6; }
16788 if test -n "$alpine_simple_spellcheck" ; then
16789 case "$SPELLPROG" in
16790 hunspell)
16791 alpine_simple_spellcheck="$alpine_simple_spellcheck -l"
16793 aspell)
16794 alpine_simple_spellcheck="$alpine_simple_spellcheck --dont-backup --mode=email list"
16796 ispell)
16797 alpine_simple_spellcheck="$alpine_simple_spellcheck -l"
16801 esac
16806 # Check whether --with-interactive-spellcheck was given.
16807 if test "${with_interactive_spellcheck+set}" = set; then :
16808 withval=$with_interactive_spellcheck;
16809 if test "x$withval" != "xno" ; then
16810 ISPELLPROG=$withval
16813 else
16815 # Extract the first word of "hunspell", so it can be a program name with args.
16816 set dummy hunspell; ac_word=$2
16817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16818 $as_echo_n "checking for $ac_word... " >&6; }
16819 if ${ac_cv_prog_ISPELLPROG+:} false; then :
16820 $as_echo_n "(cached) " >&6
16821 else
16822 if test -n "$ISPELLPROG"; then
16823 ac_cv_prog_ISPELLPROG="$ISPELLPROG" # Let the user override the test.
16824 else
16825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16826 for as_dir in $PATH
16828 IFS=$as_save_IFS
16829 test -z "$as_dir" && as_dir=.
16830 for ac_exec_ext in '' $ac_executable_extensions; do
16831 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16832 ac_cv_prog_ISPELLPROG="hunspell"
16833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16834 break 2
16836 done
16837 done
16838 IFS=$as_save_IFS
16842 ISPELLPROG=$ac_cv_prog_ISPELLPROG
16843 if test -n "$ISPELLPROG"; then
16844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ISPELLPROG" >&5
16845 $as_echo "$ISPELLPROG" >&6; }
16846 else
16847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16848 $as_echo "no" >&6; }
16852 if test -z "$ISPELLPROG" ; then
16853 # Extract the first word of "aspell", so it can be a program name with args.
16854 set dummy aspell; ac_word=$2
16855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16856 $as_echo_n "checking for $ac_word... " >&6; }
16857 if ${ac_cv_prog_ISPELLPROG+:} false; then :
16858 $as_echo_n "(cached) " >&6
16859 else
16860 if test -n "$ISPELLPROG"; then
16861 ac_cv_prog_ISPELLPROG="$ISPELLPROG" # Let the user override the test.
16862 else
16863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16864 for as_dir in $PATH
16866 IFS=$as_save_IFS
16867 test -z "$as_dir" && as_dir=.
16868 for ac_exec_ext in '' $ac_executable_extensions; do
16869 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16870 ac_cv_prog_ISPELLPROG="aspell"
16871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16872 break 2
16874 done
16875 done
16876 IFS=$as_save_IFS
16880 ISPELLPROG=$ac_cv_prog_ISPELLPROG
16881 if test -n "$ISPELLPROG"; then
16882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ISPELLPROG" >&5
16883 $as_echo "$ISPELLPROG" >&6; }
16884 else
16885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16886 $as_echo "no" >&6; }
16890 if test -z "$SPELLPROG" ; then
16891 ISPELLPROG="ispell"
16898 if test "x$ISPELLPROG" != "xno" ; then
16899 # Extract the first word of "$ISPELLPROG", so it can be a program name with args.
16900 set dummy $ISPELLPROG; ac_word=$2
16901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16902 $as_echo_n "checking for $ac_word... " >&6; }
16903 if ${ac_cv_path_alpine_interactive_spellcheck+:} false; then :
16904 $as_echo_n "(cached) " >&6
16905 else
16906 case $alpine_interactive_spellcheck in
16907 [\\/]* | ?:[\\/]*)
16908 ac_cv_path_alpine_interactive_spellcheck="$alpine_interactive_spellcheck" # Let the user override the test with a path.
16911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16912 for as_dir in $PATH
16914 IFS=$as_save_IFS
16915 test -z "$as_dir" && as_dir=.
16916 for ac_exec_ext in '' $ac_executable_extensions; do
16917 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16918 ac_cv_path_alpine_interactive_spellcheck="$as_dir/$ac_word$ac_exec_ext"
16919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16920 break 2
16922 done
16923 done
16924 IFS=$as_save_IFS
16927 esac
16929 alpine_interactive_spellcheck=$ac_cv_path_alpine_interactive_spellcheck
16930 if test -n "$alpine_interactive_spellcheck"; then
16931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $alpine_interactive_spellcheck" >&5
16932 $as_echo "$alpine_interactive_spellcheck" >&6; }
16933 else
16934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16935 $as_echo "no" >&6; }
16939 if test -n "$alpine_interactive_spellcheck" ; then
16940 case "$ISPELLPROG" in
16941 aspell)
16942 alpine_interactive_spellcheck="$alpine_interactive_spellcheck --dont-backup --mode=email check"
16946 esac
16950 if test -n "$alpine_interactive_spellcheck" ; then
16952 cat >>confdefs.h <<_ACEOF
16953 #define DF_VAR_SPELLER "$alpine_interactive_spellcheck"
16954 _ACEOF
16958 if test -z "$alpine_simple_spellcheck" -a -n "$alpine_interactive_spellcheck" ; then
16959 alpine_simple_spellcheck=test
16962 cat >>confdefs.h <<_ACEOF
16963 #define SPELLER "$alpine_simple_spellcheck"
16964 _ACEOF
16967 case "$prefix" in
16968 NONE) dpv=/usr/local/lib/pine.conf ;;
16969 *) dpv=${prefix}/lib/pine.conf ;;
16970 esac
16972 # Check whether --with-system-pinerc was given.
16973 if test "${with_system_pinerc+set}" = set; then :
16974 withval=$with_system_pinerc;
16975 case "$withval" in
16978 yes)
16981 dpv=$withval
16983 esac
16988 cat >>confdefs.h <<_ACEOF
16989 #define SYSTEM_PINERC "$dpv"
16990 _ACEOF
16993 case "$prefix" in
16994 NONE) dpv=/usr/local/lib/pine.conf.fixed ;;
16995 *) dpv=${prefix}/lib/pine.conf.fixed ;;
16996 esac
16998 # Check whether --with-system-fixed-pinerc was given.
16999 if test "${with_system_fixed_pinerc+set}" = set; then :
17000 withval=$with_system_fixed_pinerc;
17001 case "$withval" in
17004 yes)
17007 dpv=$withval
17009 esac
17014 cat >>confdefs.h <<_ACEOF
17015 #define SYSTEM_PINERC_FIXED "$dpv"
17016 _ACEOF
17019 case "$prefix" in
17020 NONE) dpv=/usr/local/lib/pine.info ;;
17021 *) dpv=${prefix}/lib/pine.info ;;
17022 esac
17024 # Check whether --with-local-support-info was given.
17025 if test "${with_local_support_info+set}" = set; then :
17026 withval=$with_local_support_info;
17027 case "$withval" in
17030 yes)
17033 dpv=$withval
17035 esac
17040 cat >>confdefs.h <<_ACEOF
17041 #define SYSTEM_PINE_INFO_PATH "$dpv"
17042 _ACEOF
17050 dpv=150
17052 # Check whether --with-mailcheck-interval was given.
17053 if test "${with_mailcheck_interval+set}" = set; then :
17054 withval=$with_mailcheck_interval;
17055 if test "x$withval" != "xno" ; then
17056 dpv=$withval
17062 cat >>confdefs.h <<_ACEOF
17063 #define DF_MAILCHECK "$dpv"
17064 _ACEOF
17068 dpv=420
17070 # Check whether --with-checkpoint-interval was given.
17071 if test "${with_checkpoint_interval+set}" = set; then :
17072 withval=$with_checkpoint_interval;
17073 if test "x$withval" != "xno" ; then
17074 dpv=$withval
17080 cat >>confdefs.h <<_ACEOF
17081 #define CHECK_POINT_TIME $dpv
17082 _ACEOF
17086 dpv=12
17088 # Check whether --with-checkpoint-frequency was given.
17089 if test "${with_checkpoint_frequency+set}" = set; then :
17090 withval=$with_checkpoint_frequency;
17091 if test "x$withval" != "xno" ; then
17092 dpv=$withval
17098 cat >>confdefs.h <<_ACEOF
17099 #define CHECK_POINT_FREQ $dpv
17100 _ACEOF
17104 dpv=24
17106 # Check whether --with-display-rows was given.
17107 if test "${with_display_rows+set}" = set; then :
17108 withval=$with_display_rows;
17109 if test "x$withval" != "xno" ; then
17110 dpv=$withval
17116 cat >>confdefs.h <<_ACEOF
17117 #define DEFAULT_LINES_ON_TERMINAL $dpv
17118 _ACEOF
17122 dpv=80
17124 # Check whether --with-display-columns was given.
17125 if test "${with_display_columns+set}" = set; then :
17126 withval=$with_display_columns;
17127 if test "x$withval" != "xno" ; then
17128 dpv=$withval
17134 cat >>confdefs.h <<_ACEOF
17135 #define DEFAULT_COLUMNS_ON_TERMINAL $dpv
17136 _ACEOF
17140 dpv=200
17142 # Check whether --with-max-display-rows was given.
17143 if test "${with_max_display_rows+set}" = set; then :
17144 withval=$with_max_display_rows;
17145 if test "x$withval" != "xno" ; then
17146 dpv=$withval
17152 cat >>confdefs.h <<_ACEOF
17153 #define MAX_SCREEN_ROWS $dpv
17154 _ACEOF
17158 dpv=500
17160 # Check whether --with-max-display-columns was given.
17161 if test "${with_max_display_columns+set}" = set; then :
17162 withval=$with_max_display_columns;
17163 if test "x$withval" != "xno" ; then
17164 dpv=$withval
17170 cat >>confdefs.h <<_ACEOF
17171 #define MAX_SCREEN_COLS $dpv
17172 _ACEOF
17176 dpv=74
17178 # Check whether --with-fill-column was given.
17179 if test "${with_fill_column+set}" = set; then :
17180 withval=$with_fill_column;
17181 if test "x$withval" != "xno" ; then
17182 dpv=$withval
17188 cat >>confdefs.h <<_ACEOF
17189 #define DF_FILLCOL "$dpv"
17190 _ACEOF
17194 dpv=80
17196 # Check whether --with-max_fill-column was given.
17197 if test "${with_max_fill_column+set}" = set; then :
17198 withval=$with_max_fill_column;
17199 if test "x$withval" != "xno" ; then
17200 dpv=$withval
17206 cat >>confdefs.h <<_ACEOF
17207 #define MAX_FILLCOL $dpv
17208 _ACEOF
17212 dpv=2
17214 # Check whether --with-debug-level was given.
17215 if test "${with_debug_level+set}" = set; then :
17216 withval=$with_debug_level;
17217 if test "x$withval" != "xno" ; then
17218 dpv=$withval
17224 cat >>confdefs.h <<_ACEOF
17225 #define DEFAULT_DEBUG $dpv
17226 _ACEOF
17230 dpv=4
17232 # Check whether --with-debug-files was given.
17233 if test "${with_debug_files+set}" = set; then :
17234 withval=$with_debug_files;
17235 if test "x$withval" != "xno" ; then
17236 dpv=$withval
17242 cat >>confdefs.h <<_ACEOF
17243 #define NUMDEBUGFILES $dpv
17244 _ACEOF
17248 dpv=.pine-debug
17250 # Check whether --with-debug-file was given.
17251 if test "${with_debug_file+set}" = set; then :
17252 withval=$with_debug_file;
17253 if test "x$withval" != "xno" ; then
17254 dpv=$withval
17260 cat >>confdefs.h <<_ACEOF
17261 #define DEBUGFILE "$dpv"
17262 _ACEOF
17266 dpv="\$Forwarded"
17268 # Check whether --with-forwarded-keyword was given.
17269 if test "${with_forwarded_keyword+set}" = set; then :
17270 withval=$with_forwarded_keyword;
17271 if test "x$withval" != "xno" ; then
17272 dpv=$withval
17278 cat >>confdefs.h <<_ACEOF
17279 #define FORWARDED_FLAG "$dpv"
17280 _ACEOF
17284 dpv=2
17286 # Check whether --with-display-overlap was given.
17287 if test "${with_display_overlap+set}" = set; then :
17288 withval=$with_display_overlap;
17289 if test "x$withval" != "xno" ; then
17290 dpv=$withval
17296 cat >>confdefs.h <<_ACEOF
17297 #define DF_OVERLAP "$dpv"
17298 _ACEOF
17302 dpv=0
17304 # Check whether --with-display-margin was given.
17305 if test "${with_display_margin+set}" = set; then :
17306 withval=$with_display_margin;
17307 if test "x$withval" != "xno" ; then
17308 dpv=$withval
17314 cat >>confdefs.h <<_ACEOF
17315 #define DF_MARGIN "$dpv"
17316 _ACEOF
17320 dpv=sent-mail
17322 # Check whether --with-default-fcc was given.
17323 if test "${with_default_fcc+set}" = set; then :
17324 withval=$with_default_fcc;
17325 if test "x$withval" != "xno" ; then
17326 dpv=$withval
17332 cat >>confdefs.h <<_ACEOF
17333 #define DF_DEFAULT_FCC "$dpv"
17334 _ACEOF
17338 dpv=saved-messages
17340 # Check whether --with-default-save-folder was given.
17341 if test "${with_default_save_folder+set}" = set; then :
17342 withval=$with_default_save_folder;
17343 if test "x$withval" != "xno" ; then
17344 dpv=$withval
17350 cat >>confdefs.h <<_ACEOF
17351 #define DEFAULT_SAVE "$dpv"
17352 _ACEOF
17356 dpv=postponed-mail
17358 # Check whether --with-default-legacy-postponed-folder was given.
17359 if test "${with_default_legacy_postponed_folder+set}" = set; then :
17360 withval=$with_default_legacy_postponed_folder;
17361 if test "x$withval" != "xno" ; then
17362 dpv=$withval
17368 cat >>confdefs.h <<_ACEOF
17369 #define POSTPONED_MAIL "$dpv"
17370 _ACEOF
17374 dpv=postponed-msgs
17376 # Check whether --with-default-postponed-folder was given.
17377 if test "${with_default_postponed_folder+set}" = set; then :
17378 withval=$with_default_postponed_folder;
17379 if test "x$withval" != "xno" ; then
17380 dpv=$withval
17386 cat >>confdefs.h <<_ACEOF
17387 #define POSTPONED_MSGS "$dpv"
17388 _ACEOF
17392 dpv=Trash
17394 # Check whether --with-default-trash-folder was given.
17395 if test "${with_default_trash_folder+set}" = set; then :
17396 withval=$with_default_trash_folder;
17397 if test "x$withval" != "xno" ; then
17398 dpv=$withval
17404 cat >>confdefs.h <<_ACEOF
17405 #define TRASH_FOLDER "$dpv"
17406 _ACEOF
17410 dpv=.pine-interrupted-mail
17412 # Check whether --with-default-interrupted-mail was given.
17413 if test "${with_default_interrupted_mail+set}" = set; then :
17414 withval=$with_default_interrupted_mail;
17415 if test "x$withval" != "xno" ; then
17416 dpv=$withval
17422 cat >>confdefs.h <<_ACEOF
17423 #define INTERRUPTED_MAIL "$dpv"
17424 _ACEOF
17428 dpv=dead.letter
17430 # Check whether --with-default-dead-letter-folder was given.
17431 if test "${with_default_dead_letter_folder+set}" = set; then :
17432 withval=$with_default_dead_letter_folder;
17433 if test "x$withval" != "xno" ; then
17434 dpv=$withval
17440 cat >>confdefs.h <<_ACEOF
17441 #define DEADLETTER "$dpv"
17442 _ACEOF
17446 dpv=mail
17448 # Check whether --with-default-mail-directory was given.
17449 if test "${with_default_mail_directory+set}" = set; then :
17450 withval=$with_default_mail_directory;
17451 if test "x$withval" != "xno" ; then
17452 dpv=$withval
17458 cat >>confdefs.h <<_ACEOF
17459 #define DF_MAIL_DIRECTORY "$dpv"
17460 _ACEOF
17464 dpv=INBOX
17466 # Check whether --with-default-inbox-name was given.
17467 if test "${with_default_inbox_name+set}" = set; then :
17468 withval=$with_default_inbox_name;
17469 if test "x$withval" != "xno" ; then
17470 dpv=$withval
17476 cat >>confdefs.h <<_ACEOF
17477 #define INBOX_NAME "$dpv"
17478 _ACEOF
17482 dpv=.signature
17484 # Check whether --with-default-signature-file was given.
17485 if test "${with_default_signature_file+set}" = set; then :
17486 withval=$with_default_signature_file;
17487 if test "x$withval" != "xno" ; then
17488 dpv=$withval
17494 cat >>confdefs.h <<_ACEOF
17495 #define DF_SIGNATURE_FILE "$dpv"
17496 _ACEOF
17500 dpv=no
17502 # Check whether --with-default-elm-style-save was given.
17503 if test "${with_default_elm_style_save+set}" = set; then :
17504 withval=$with_default_elm_style_save;
17505 if test "x$withval" != "xno" ; then
17506 dpv=$withval
17512 cat >>confdefs.h <<_ACEOF
17513 #define DF_ELM_STYLE_SAVE "$dpv"
17514 _ACEOF
17518 dpv=no
17520 # Check whether --with-default-header-in-reply was given.
17521 if test "${with_default_header_in_reply+set}" = set; then :
17522 withval=$with_default_header_in_reply;
17523 if test "x$withval" != "xno" ; then
17524 dpv=$withval
17530 cat >>confdefs.h <<_ACEOF
17531 #define DF_HEADER_IN_REPLY "$dpv"
17532 _ACEOF
17536 dpv=no
17538 # Check whether --with-default-old-style-reply was given.
17539 if test "${with_default_old_style_reply+set}" = set; then :
17540 withval=$with_default_old_style_reply;
17541 if test "x$withval" != "xno" ; then
17542 dpv=$withval
17548 cat >>confdefs.h <<_ACEOF
17549 #define DF_OLD_STYLE_REPLY "$dpv"
17550 _ACEOF
17554 dpv=no
17556 # Check whether --with-default-use-only-domain-name was given.
17557 if test "${with_default_use_only_domain_name+set}" = set; then :
17558 withval=$with_default_use_only_domain_name;
17559 if test "x$withval" != "xno" ; then
17560 dpv=$withval
17566 cat >>confdefs.h <<_ACEOF
17567 #define DF_USE_ONLY_DOMAIN_NAME "$dpv"
17568 _ACEOF
17572 dpv=no
17574 # Check whether --with-default-save-by-sender was given.
17575 if test "${with_default_save_by_sender+set}" = set; then :
17576 withval=$with_default_save_by_sender;
17577 if test "x$withval" != "xno" ; then
17578 dpv=$withval
17584 cat >>confdefs.h <<_ACEOF
17585 #define DF_SAVE_BY_SENDER "$dpv"
17586 _ACEOF
17590 dpv=arrival
17592 # Check whether --with-default-sort-key was given.
17593 if test "${with_default_sort_key+set}" = set; then :
17594 withval=$with_default_sort_key;
17595 if test "x$withval" != "xno" ; then
17596 dpv=$withval
17602 cat >>confdefs.h <<_ACEOF
17603 #define DF_SORT_KEY "$dpv"
17604 _ACEOF
17608 dpv=fullname-with-lists-last
17610 # Check whether --with-default-addressbook-sort-rule was given.
17611 if test "${with_default_addressbook_sort_rule+set}" = set; then :
17612 withval=$with_default_addressbook_sort_rule;
17613 if test "x$withval" != "xno" ; then
17614 dpv=$withval
17620 cat >>confdefs.h <<_ACEOF
17621 #define DF_AB_SORT_RULE "$dpv"
17622 _ACEOF
17626 dpv=alphabetical
17628 # Check whether --with-default-folder-sort-rule was given.
17629 if test "${with_default_folder_sort_rule+set}" = set; then :
17630 withval=$with_default_folder_sort_rule;
17631 if test "x$withval" != "xno" ; then
17632 dpv=$withval
17638 cat >>confdefs.h <<_ACEOF
17639 #define DF_FLD_SORT_RULE "$dpv"
17640 _ACEOF
17644 dpv=default-folder
17646 # Check whether --with-default-saved-message-name-rule was given.
17647 if test "${with_default_saved_message_name_rule+set}" = set; then :
17648 withval=$with_default_saved_message_name_rule;
17649 if test "x$withval" != "xno" ; then
17650 dpv=$withval
17656 cat >>confdefs.h <<_ACEOF
17657 #define DF_SAVED_MSG_NAME_RULE "$dpv"
17658 _ACEOF
17662 dpv=default-fcc
17664 # Check whether --with-default-fcc-rule was given.
17665 if test "${with_default_fcc_rule+set}" = set; then :
17666 withval=$with_default_fcc_rule;
17667 if test "x$withval" != "xno" ; then
17668 dpv=$withval
17674 cat >>confdefs.h <<_ACEOF
17675 #define DF_FCC_RULE "$dpv"
17676 _ACEOF
17680 dpv=lpr
17682 # Check whether --with-default-standard-printer was given.
17683 if test "${with_default_standard_printer+set}" = set; then :
17684 withval=$with_default_standard_printer;
17685 if test "x$withval" != "xno" ; then
17686 dpv=$withval
17692 cat >>confdefs.h <<_ACEOF
17693 #define DF_STANDARD_PRINTER "$dpv"
17694 _ACEOF
17698 dpv=attached-to-ansi
17700 # Check whether --with-default-ansi-printer was given.
17701 if test "${with_default_ansi_printer+set}" = set; then :
17702 withval=$with_default_ansi_printer;
17703 if test "x$withval" != "xno" ; then
17704 dpv=$withval
17710 cat >>confdefs.h <<_ACEOF
17711 #define ANSI_PRINTER "$dpv"
17712 _ACEOF
17716 dpv=.addressbook
17718 # Check whether --with-default-addressbook was given.
17719 if test "${with_default_addressbook+set}" = set; then :
17720 withval=$with_default_addressbook;
17721 if test "x$withval" != "xno" ; then
17722 dpv=$withval
17728 cat >>confdefs.h <<_ACEOF
17729 #define DF_ADDRESSBOOK "$dpv"
17730 _ACEOF
17734 dpv="Local Support"
17736 # Check whether --with-default-local-fullname was given.
17737 if test "${with_default_local_fullname+set}" = set; then :
17738 withval=$with_default_local_fullname;
17739 if test "x$withval" != "xno" ; then
17740 dpv=$withval
17746 cat >>confdefs.h <<_ACEOF
17747 #define DF_LOCAL_FULLNAME "$dpv"
17748 _ACEOF
17752 dpv=postmaster
17754 # Check whether --with-default-local-address was given.
17755 if test "${with_default_local_address+set}" = set; then :
17756 withval=$with_default_local_address;
17757 if test "x$withval" != "xno" ; then
17758 dpv=$withval
17764 cat >>confdefs.h <<_ACEOF
17765 #define DF_LOCAL_ADDRESS "$dpv"
17766 _ACEOF
17770 dpv=1
17772 # Check whether --with-default-keyboard-lock-count was given.
17773 if test "${with_default_keyboard_lock_count+set}" = set; then :
17774 withval=$with_default_keyboard_lock_count;
17775 if test "x$withval" != "xno" ; then
17776 dpv=$withval
17782 cat >>confdefs.h <<_ACEOF
17783 #define DF_KBLOCK_PASSWD_COUNT "$dpv"
17784 _ACEOF
17788 dpv=3
17790 # Check whether --with-default-remote-addressbook-history was given.
17791 if test "${with_default_remote_addressbook_history+set}" = set; then :
17792 withval=$with_default_remote_addressbook_history;
17793 if test "x$withval" != "xno" ; then
17794 dpv=$withval
17800 cat >>confdefs.h <<_ACEOF
17801 #define DF_REMOTE_ABOOK_HISTORY "$dpv"
17802 _ACEOF
17806 dpv=.alpine-smime/public
17808 # Check whether --with-smime-public-cert-directory was given.
17809 if test "${with_smime_public_cert_directory+set}" = set; then :
17810 withval=$with_smime_public_cert_directory;
17811 if test "x$withval" != "xno" ; then
17812 dpv=$withval
17818 cat >>confdefs.h <<_ACEOF
17819 #define DF_PUBLICCERT_DIR "$dpv"
17820 _ACEOF
17824 dpv=.alpine-smime/private
17826 # Check whether --with-smime-private-key-directory was given.
17827 if test "${with_smime_private_key_directory+set}" = set; then :
17828 withval=$with_smime_private_key_directory;
17829 if test "x$withval" != "xno" ; then
17830 dpv=$withval
17836 cat >>confdefs.h <<_ACEOF
17837 #define DF_PRIVATEKEY_DIR "$dpv"
17838 _ACEOF
17842 dpv=.alpine-smime/ca
17844 # Check whether --with-smime-cacert-directory was given.
17845 if test "${with_smime_cacert_directory+set}" = set; then :
17846 withval=$with_smime_cacert_directory;
17847 if test "x$withval" != "xno" ; then
17848 dpv=$withval
17854 cat >>confdefs.h <<_ACEOF
17855 #define DF_CACERT_DIR "$dpv"
17856 _ACEOF
17860 dpv=ANSI_PRINTER
17862 # Check whether --with-default-printer was given.
17863 if test "${with_default_printer+set}" = set; then :
17864 withval=$with_default_printer;
17865 if test "x$withval" != "xno" ; then
17866 dpv=$withval
17872 cat >>confdefs.h <<_ACEOF
17873 #define DF_DEFAULT_PRINTER $dpv
17874 _ACEOF
17879 cat >>confdefs.h <<_ACEOF
17880 #define DF_PUBLIC_CONTAINER "PublicContainer"
17881 _ACEOF
17884 cat >>confdefs.h <<_ACEOF
17885 #define DF_PRIVATE_CONTAINER "PrivateContainer"
17886 _ACEOF
17889 cat >>confdefs.h <<_ACEOF
17890 #define DF_CA_CONTAINER "CAContainer"
17891 _ACEOF
17895 # Check whether --with-passfile was given.
17896 if test "${with_passfile+set}" = set; then :
17897 withval=$with_passfile;
17898 case "$withval" in
17901 yes)
17904 alpine_PASSFILE=$withval
17906 esac
17913 # Check whether --with-local-password-cache was given.
17914 if test "${with_local_password_cache+set}" = set; then :
17915 withval=$with_local_password_cache;
17916 alpine_os_credential_cache=$withval
17922 # Check whether --with-local-password-cache-method was given.
17923 if test "${with_local_password_cache_method+set}" = set; then :
17924 withval=$with_local_password_cache_method;
17925 alpine_os_credential_cache_method=$withval
17930 if test -n "$alpine_PASSFILE" ; then
17931 case $alpine_os_credential_cache in
17935 alpine_os_credential_cache="no"
17936 { $as_echo "$as_me:${as_lineno-$LINENO}: --with-passfile definition overrides OS-Specific password caching" >&5
17937 $as_echo "$as_me: --with-passfile definition overrides OS-Specific password caching" >&6;}
17939 esac
17941 cat >>confdefs.h <<_ACEOF
17942 #define PASSFILE "$alpine_PASSFILE"
17943 _ACEOF
17948 # Check whether --with-default-sshpath was given.
17949 if test "${with_default_sshpath+set}" = set; then :
17950 withval=$with_default_sshpath;
17951 case "$withval" in
17954 yes)
17958 cat >>confdefs.h <<_ACEOF
17959 #define DF_SSHPATH "$withval"
17960 _ACEOF
17963 esac
17969 # Check whether --with-default-sshcmd was given.
17970 if test "${with_default_sshcmd+set}" = set; then :
17971 withval=$with_default_sshcmd;
17972 case "$withval" in
17975 yes)
17979 cat >>confdefs.h <<_ACEOF
17980 #define DF_SSHCMD "$withval"
17981 _ACEOF
17984 esac
17990 # Check whether --with-ssl was given.
17991 if test "${with_ssl+set}" = set; then :
17992 withval=$with_ssl; with_ssl=$withval
17996 if test "x$with_ssl" = "xno" ; then
17997 alpine_SSLTYPE="none"
17998 elif test -d /usr/local/ssl ; then
17999 alpine_SSLDIR="/usr/local/ssl"
18000 alpine_SSLINCLUDE="$alpine_SSLDIR/include"
18001 alpine_SSLLIB="$alpine_SSLDIR/lib"
18002 else
18003 case $host in
18004 *-linux-gnu*|*-k*bsd*-gnu*|*-gnu*)
18005 if test -f /etc/fedora-release -o -f /etc/redhat-release -o -f /etc/redhat_version ; then
18006 alpine_SSLTYPE="nopwd"
18007 if test -d /etc/pki/tls ; then
18008 alpine_SSLDIR="/etc/pki/tls"
18009 else
18010 alpine_SSLDIR="/usr/share/ssl"
18012 alpine_SSLCERTS="$alpine_SSLDIR/certs"
18013 alpine_SSLKEYS="$alpine_SSLDIR/private"
18014 alpine_SSLINCLUDE="/usr/include/openssl"
18015 alpine_SSLLIB="/usr/lib"
18016 elif test -f /etc/mandrake-release ; then
18017 alpine_SSLDIR="/usr/lib/ssl"
18018 alpine_SSLCERTS="$alpine_SSLDIR/certs"
18019 alpine_SSLKEYS="$alpine_SSLDIR/private"
18020 alpine_SSLINCLUDE="/usr/include/openssl"
18021 alpine_SSLLIB="/usr/lib"
18022 elif test -f /etc/SuSE-release ; then
18023 alpine_SSLTYPE="nopwd"
18024 alpine_SSLDIR="/etc/ssl"
18025 alpine_SSLCERTS="$alpine_SSLDIR/certs"
18026 alpine_SSLKEYS="$alpine_SSLDIR/private"
18027 alpine_SSLINCLUDE="/usr/include/openssl"
18028 alpine_SSLLIB="/usr/lib"
18029 elif test -d /etc/osso-af-init ; then
18030 alpine_SSLTYPE="nopwd"
18031 alpine_SSLDIR="/usr"
18032 alpine_SSLCERTS="/usr/share/certs"
18033 alpine_SSLINCLUDE="/usr/include/openssl"
18034 alpine_SSLLIB="/usr/lib"
18035 elif test -f /etc/debian_release -o -f /etc/debian_version ; then
18036 if test ! -d /etc/osso-af-init ; then
18037 alpine_SSLDIR="/etc/ssl"
18038 alpine_SSLCERTS="$alpine_SSLDIR/certs"
18039 alpine_SSLKEYS="$alpine_SSLDIR/private"
18040 alpine_SSLINCLUDE="/usr/include/openssl"
18041 alpine_SSLLIB="/usr/lib"
18043 elif test -f /etc/manjaro-release ; then
18044 alpine_SSLDIR="/etc/ssl"
18045 alpine_SSLCERTS="$alpine_SSLDIR/certs"
18046 alpine_SSLKEYS="$alpine_SSLDIR/private"
18047 alpine_SSLINCLUDE="/usr/include/openssl"
18048 alpine_SSLLIB="/usr/lib"
18049 else
18050 alpine_SSLTYPE="nopwd"
18051 alpine_SSLDIR="/usr"
18052 alpine_SSLCERTS="/etc/ssl/certs"
18055 *-apple-darwin*)
18056 alpine_SSLTYPE="nopwd"
18057 alpine_SSLCERTS_ORIG="/System/Library/OpenSSL/certs"
18058 if test -d /usr/local/opt/openssl ; then
18059 alpine_SSLDIR="/usr/local/opt/openssl"
18060 alpine_SSLINCLUDE="$alpine_SSLDIR/include"
18061 alpine_SSLLIB="$alpine_SSLDIR/lib"
18062 alpine_SSLCERTS="/usr/local/etc/openssl"
18063 alpine_SSLKEYS="$alpine_SSLDIR/private"
18064 elif test -d /opt/local/etc/openssl ; then
18065 alpine_SSLDIR="/opt/local"
18066 alpine_SSLINCLUDE="$alpine_SSLDIR/include"
18067 alpine_SSLLIB="$alpine_SSLDIR/lib"
18068 alpine_SSLCERTS="/opt/local/etc/openssl/certs"
18069 alpine_SSLKEYS="/opt/local/etc/openssl/private"
18070 elif test -d /sw/etc/ssl ; then
18071 alpine_SSLDIR="/sw/etc/ssl"
18072 alpine_SSLINCLUDE="/sw/include"
18073 alpine_SSLLIB="/sw/lib"
18074 alpine_SSLCERTS="/sw/etc/ssl/certs"
18075 alpine_SSLKEYS="/sw/etc/ssl/private"
18076 elif test -d /usr/local/ssl ; then
18077 alpine_SSLDIR="/usr/local/ssl"
18078 elif test -d /System/Library/OpenSSL ; then
18079 alpine_SSLDIR="/System/Library/OpenSSL"
18080 alpine_SSLCERTS="$alpine_SSLDIR/certs"
18081 alpine_SSLKEYS="$alpine_SSLDIR/private"
18082 alpine_SSLLIB="/usr/lib"
18083 alpine_SSLINCLUDE="/usr/include/openssl"
18086 *-*-netbsd*)
18087 alpine_SSLDIR="/etc/openssl"
18088 alpine_SSLCERTS="$alpine_SSLDIR/certs"
18089 alpine_SSLKEYS="$alpine_SSLDIR/private"
18090 alpine_SSLINCLUDE="/usr/include/openssl"
18091 alpine_SSLLIB="/usr/lib"
18093 *-*-dragonfly*)
18094 alpine_SSLDIR="/etc/openssl"
18095 alpine_SSLCERTS="$alpine_SSLDIR/certs"
18096 alpine_SSLKEYS="$alpine_SSLDIR/private"
18097 alpine_SSLINCLUDE="/usr/include/openssl"
18098 alpine_SSLLIB="/usr/lib"
18100 *-openbsd*)
18101 alpine_SSLTYPE="nopwd"
18102 alpine_SSLDIR="/usr"
18103 alpine_SSLCERTS="/etc/ssl/certs"
18105 *-*-freebsd*)
18106 alpine_SSLDIR="/etc/ssl"
18107 alpine_SSLCERTS="$alpine_SSLDIR/certs"
18108 alpine_SSLKEYS="$alpine_SSLDIR/private"
18109 if test -d /usr/local/include/openssl ; then
18110 alpine_SSLINCLUDE="/usr/local/include/openssl"
18111 alpine_SSLLIB="/usr/local/lib"
18112 else
18113 alpine_SSLINCLUDE="/usr/include/openssl"
18114 alpine_SSLLIB="/usr/lib"
18117 *-*-openbsd*)
18118 alpine_SSLDIR="/etc/ssl"
18119 alpine_SSLINCLUDE="/usr/include/openssl"
18120 alpine_SSLLIB="/usr/lib"
18121 alpine_SSLCERTS="/etc/ssl"
18122 alpine_SSLKEYS="/etc/ssl/private"
18124 *-*-cygwin)
18125 alpine_SSLDIR="/usr/ssl"
18126 alpine_SSLCERTS="$alpine_SSLDIR/certs"
18127 alpine_SSLKEYS="$alpine_SSLDIR/certs"
18128 alpine_SSLINCLUDE="/usr/include/openssl"
18129 alpine_SSLLIB="/usr/lib"
18131 *-sco-sysv* | *-sysv*UnixWare | *-sysv*OpenUNIX)
18132 alpine_SSLTYPE="sco.nopwd"
18133 alpine_SSLDIR="/usr/local/ssl"
18135 *-*-solaris*)
18136 if test -d /usr/include/openssl ; then
18137 alpine_SSLINCLUDE="/usr/include/openssl"
18138 elif test -d /usr/sfw/include/openssl ; then
18139 alpine_SSLDIR="/usr/sfw"
18140 elif test -d /opt/csw/include/openssl ; then
18141 alpine_SSLDIR="/opt/csw"
18142 if test -d /opt/csw/ssl/certs ; then
18143 alpine_SSLCERTS="/opt/csw/ssl/certs"
18146 if test -z "$alpine_SSLCERTS" -a -d /etc/certs ; then
18147 alpine_SSLCERTS="/etc/certs"
18151 alpine_SSLTYPE="nopwd"
18152 alpine_SSLDIR="/usr/local/ssl"
18154 esac
18157 if test "x$alpine_SSLTYPE" != "xnone" ; then
18159 # Check whether --with-ssl-dir was given.
18160 if test "${with_ssl_dir+set}" = set; then :
18161 withval=$with_ssl_dir;
18162 if test "x$withval" != "xno" ; then
18163 alpine_SSLDIR=$withval
18164 alpine_SSLINCLUDE=$alpine_SSLDIR/include
18165 alpine_SSLLIB=$alpine_SSLDIR/lib
18172 # Check whether --with-ssl-certs-dir was given.
18173 if test "${with_ssl_certs_dir+set}" = set; then :
18174 withval=$with_ssl_certs_dir;
18175 if test "x$withval" != "xno" ; then
18176 alpine_SSLCERTS=$withval
18183 # Check whether --with-ssl-include-dir was given.
18184 if test "${with_ssl_include_dir+set}" = set; then :
18185 withval=$with_ssl_include_dir;
18186 if test "x$withval" != "xno" ; then
18187 alpine_SSLINCLUDE=$withval
18194 # Check whether --with-ssl-lib-dir was given.
18195 if test "${with_ssl_lib_dir+set}" = set; then :
18196 withval=$with_ssl_lib_dir;
18197 if test "x$withval" != "xno" ; then
18198 alpine_SSLLIB=$withval
18204 if test -n "$alpine_SSLINCLUDE" ; then
18205 CPPFLAGS="-I$alpine_SSLINCLUDE $CPPFLAGS"
18206 elif test -n "$alpine_SSLDIR" ; then
18207 CPPFLAGS="-I${alpine_SSLDIR}/include $CPPFLAGS"
18209 if test -n "$alpine_SSLLIB" ; then
18210 LDFLAGS="-L$alpine_SSLLIB $LDFLAGS"
18211 elif test -n "$alpine_SSLDIR" ; then
18212 LDFLAGS="-L${alpine_SSLDIR}/lib $LDFLAGS"
18218 # Check whether --with-krb5 was given.
18219 if test "${with_krb5+set}" = set; then :
18220 withval=$with_krb5; with_krb5=$withval
18224 if test "x$with_krb5" = "xno" ; then
18225 alpine_GSSTYPE="none"
18226 else
18227 alpine_GSSTYPE=
18230 # Check whether --with-krb5-dir was given.
18231 if test "${with_krb5_dir+set}" = set; then :
18232 withval=$with_krb5_dir;
18233 if test "x$withval" != "xno" ; then
18234 CPPFLAGS="$CPPFLAGS -I${withval}/include"
18235 LDFLAGS="$LDFLAGS -L${withval}/lib"
18242 # Check whether --with-krb5-include-dir was given.
18243 if test "${with_krb5_include_dir+set}" = set; then :
18244 withval=$with_krb5_include_dir;
18245 if test "x$withval" != "xno" ; then
18246 CPPFLAGS="$CPPFLAGS -I$withval"
18253 # Check whether --with-krb5-lib-dir was given.
18254 if test "${with_krb5_lib_dir+set}" = set; then :
18255 withval=$with_krb5_lib_dir;
18256 if test "x$withval" != "xno" ; then
18257 LDFLAGS="$LDFLAGS -L$withval"
18265 # Check whether --with-ldap was given.
18266 if test "${with_ldap+set}" = set; then :
18267 withval=$with_ldap; with_ldap=$withval
18271 if test "x$with_ldap" = "xno" ; then
18272 alpine_with_ldap=
18273 { $as_echo "$as_me:${as_lineno-$LINENO}: Excluding LDAP Support" >&5
18274 $as_echo "$as_me: Excluding LDAP Support" >&6;}
18275 else
18277 case $host in
18278 *-*-freebsd*)
18279 alpine_LDAPDIR="/usr/local"
18280 alpine_LDAPINCLUDE="${LDAPDIR}/include"
18281 alpine_LDAPLIB="${LDAPDIR}/lib"
18283 esac;
18285 alpine_with_ldap=yes
18288 # Check whether --with-ldap-dir was given.
18289 if test "${with_ldap_dir+set}" = set; then :
18290 withval=$with_ldap_dir;
18291 if test "x$withval" != "xno" ; then
18292 alpine_LDAPDIR="${withval}"
18293 alpine_LDAPINCLUDE="${LDAPDIR}/include"
18294 alpine_LDAPLIB="${LDAPDIR}/lib"
18301 # Check whether --with-ldap-include-dir was given.
18302 if test "${with_ldap_include_dir+set}" = set; then :
18303 withval=$with_ldap_include_dir;
18304 if test "x$withval" != "xno" ; then
18305 alpine_LDAPINCLUDE="$withval"
18312 # Check whether --with-ldap-lib-dir was given.
18313 if test "${with_ldap_lib_dir+set}" = set; then :
18314 withval=$with_ldap_lib_dir;
18315 if test "x$withval" != "xno" ; then
18316 alpine_LDAPLIB="${withval}"
18322 if test -n "$alpine_LDAPINCLUDE" ; then
18323 CPPFLAGS="$CPPFLAGS -I${alpine_LDAPINCLUDE}/include"
18325 if test -n "$alpine_LDAPLIB" ; then
18326 LDFLAGS="$LDFLAGS -L${alpine_LDAPLIB}/lib"
18331 # Check whether --with-smime was given.
18332 if test "${with_smime+set}" = set; then :
18333 withval=$with_smime; with_smime=$withval
18338 # Check whether --with-tcl was given.
18339 if test "${with_tcl+set}" = set; then :
18340 withval=$with_tcl; with_tcl=$withval
18344 if test "x$with_tcl" = "xno" ; then
18345 WEB_BUILD=
18346 { $as_echo "$as_me:${as_lineno-$LINENO}: Excluding TCL Support, and thus Web Alpine Support" >&5
18347 $as_echo "$as_me: Excluding TCL Support, and thus Web Alpine Support" >&6;}
18348 else
18350 # Check whether --with-tcl-lib-dir was given.
18351 if test "${with_tcl_lib_dir+set}" = set; then :
18352 withval=$with_tcl_lib_dir;
18353 if test "x$withval" != "xno" ; then
18354 alpine_TCLLIBDIR=$withval
18355 if test -n "$alpine_TCLLIBDIR" ; then
18356 LDFLAGS="-L$alpine_TCLLIBDIR $LDFLAGS"
18363 # Check whether --with-tcl-lib was given.
18364 if test "${with_tcl_lib+set}" = set; then :
18365 withval=$with_tcl_lib;
18366 if test "x$withval" != "xno" ; then
18367 alpine_TCLLIB=$withval
18373 # Check whether --with-tcl-include was given.
18374 if test "${with_tcl_include+set}" = set; then :
18375 withval=$with_tcl_include;
18376 if test "x$withval" != "xno" ; then
18377 CPPFLAGS="$CPPFLAGS -I$withval"
18378 alpine_TCLINC=$withval
18386 # Check whether --with-supplied-regex was given.
18387 if test "${with_supplied_regex+set}" = set; then :
18388 withval=$with_supplied_regex; alpine_REGEX=$withval
18393 # Check whether --with-pthread was given.
18394 if test "${with_pthread+set}" = set; then :
18395 withval=$with_pthread; with_pthread=$withval
18400 # Check whether --with-system-mail-directory was given.
18401 if test "${with_system_mail_directory+set}" = set; then :
18402 withval=$with_system_mail_directory;
18403 if test "x$withval" != "xno" ; then
18404 alpine_with_local_maildir="$withval"
18411 # Check whether --with-c-client-target was given.
18412 if test "${with_c_client_target+set}" = set; then :
18413 withval=$with_c_client_target;
18414 if test "x$withval" != "xno" ;then
18415 alpine_with_c_client_target="$withval"
18422 alpine_PAM="none"
18424 case "$host" in
18425 *-linux-gnu*|*-k*bsd*-gnu*|*-gnu*)
18426 alpine_path_delim="/"
18427 alpine_mode_readonly="(0600)"
18428 if test -f /etc/fedora-release ; then
18429 systype="LFD"
18430 alpine_PAM="yes"
18431 if test -d /etc/pki/tls ; then
18432 alpine_c_client_target="lfd"
18433 else
18434 alpine_c_client_target="lrh"
18436 elif test -f /etc/mandrake-release ; then
18437 systype="LMD"
18438 alpine_c_client_target="lmd"
18439 alpine_PAM="yes"
18440 elif test -f /etc/redhat-release -o -f /etc/redhat_version ; then
18441 systype="LRH"
18442 alpine_PAM="yes"
18443 if test -d /etc/pki/tls ; then
18444 alpine_c_client_target="lr5"
18445 else
18446 alpine_c_client_target="lrh"
18448 elif test -f /etc/debian_release -o -f /etc/debian_version ; then
18449 if test -d /etc/osso-af-init ; then
18450 systype="LN8"
18451 alpine_c_client_target="ln8"
18452 else
18453 systype="DEB"
18454 alpine_c_client_target="ldb"
18455 alpine_PAM="yes"
18457 elif test -f /etc/SuSE-release ; then
18458 systype="LSU"
18459 alpine_c_client_target="lsu"
18460 alpine_PAM="yes"
18461 else
18462 systype="LNX"
18463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
18464 $as_echo_n "checking for pam_start in -lpam... " >&6; }
18465 if ${ac_cv_lib_pam_pam_start+:} false; then :
18466 $as_echo_n "(cached) " >&6
18467 else
18468 ac_check_lib_save_LIBS=$LIBS
18469 LIBS="-lpam $LIBS"
18470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18471 /* end confdefs.h. */
18473 /* Override any GCC internal prototype to avoid an error.
18474 Use char because int might match the return type of a GCC
18475 builtin and then its argument prototype would still apply. */
18476 #ifdef __cplusplus
18477 extern "C"
18478 #endif
18479 char pam_start ();
18481 main ()
18483 return pam_start ();
18485 return 0;
18487 _ACEOF
18488 if ac_fn_c_try_link "$LINENO"; then :
18489 ac_cv_lib_pam_pam_start=yes
18490 else
18491 ac_cv_lib_pam_pam_start=no
18493 rm -f core conftest.err conftest.$ac_objext \
18494 conftest$ac_exeext conftest.$ac_ext
18495 LIBS=$ac_check_lib_save_LIBS
18497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
18498 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
18499 if test "x$ac_cv_lib_pam_pam_start" = xyes; then :
18501 alpine_c_client_target="lnp"
18502 alpine_PAM="yes"
18504 else
18506 if test -f /etc/shadow ; then
18507 alpine_c_client_target="slx"
18508 else
18509 alpine_c_client_target="lnx"
18516 *-apple-darwin*)
18517 systype="OSX"
18518 alpine_path_delim="/"
18519 alpine_mode_readonly="(0600)"
18520 LIBS="$LIBS -framework Carbon -framework ApplicationServices -framework Security"
18521 AM_CFLAGS="$AM_CFLAGS -Dbsd"
18523 $as_echo "#define OSX_TARGET 1" >>confdefs.h
18525 case "$alpine_os_credential_cache" in
18530 $as_echo "#define APPLEKEYCHAIN 1" >>confdefs.h
18533 esac
18534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
18535 $as_echo_n "checking for pam_start in -lpam... " >&6; }
18536 if ${ac_cv_lib_pam_pam_start+:} false; then :
18537 $as_echo_n "(cached) " >&6
18538 else
18539 ac_check_lib_save_LIBS=$LIBS
18540 LIBS="-lpam $LIBS"
18541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18542 /* end confdefs.h. */
18544 /* Override any GCC internal prototype to avoid an error.
18545 Use char because int might match the return type of a GCC
18546 builtin and then its argument prototype would still apply. */
18547 #ifdef __cplusplus
18548 extern "C"
18549 #endif
18550 char pam_start ();
18552 main ()
18554 return pam_start ();
18556 return 0;
18558 _ACEOF
18559 if ac_fn_c_try_link "$LINENO"; then :
18560 ac_cv_lib_pam_pam_start=yes
18561 else
18562 ac_cv_lib_pam_pam_start=no
18564 rm -f core conftest.err conftest.$ac_objext \
18565 conftest$ac_exeext conftest.$ac_ext
18566 LIBS=$ac_check_lib_save_LIBS
18568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
18569 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
18570 if test "x$ac_cv_lib_pam_pam_start" = xyes; then :
18572 ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
18573 if test "x$ac_cv_header_security_pam_appl_h" = xyes; then :
18575 alpine_PAM="yes"
18576 alpine_c_client_target="oxs"
18578 else
18579 ac_fn_c_check_header_mongrel "$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default"
18580 if test "x$ac_cv_header_pam_pam_appl_h" = xyes; then :
18582 alpine_PAM="yes"
18583 alpine_c_client_target="oxp"
18585 else
18587 alpine_PAM="none"
18588 alpine_pam_none_reason="header files not found"
18598 else
18600 alpine_c_client_target="osx"
18605 *-*-solaris*)
18606 if test x$GCC = "xyes" ; then
18607 systype="GSO"
18608 alpine_c_client_target="gso"
18609 CFLAGS="$CFLAGS -D__USE_LEGACY_PROTOTYPES__"
18610 else
18611 systype="SOC"
18612 alpine_c_client_target="soc"
18614 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
18617 alpine_path_delim="/"
18618 alpine_mode_readonly="(0600)"
18620 *-*-sunos4*)
18621 systype="SUN"
18622 alpine_path_delim="/"
18623 alpine_mode_readonly="(0600)"
18624 alpine_c_client_target="s40"
18626 *-*-sco3.2v5*)
18627 if test x$GCC = "xyes" ; then
18628 systype="GO5"
18629 alpine_c_client_target="go5"
18630 else
18631 systype="SC5"
18632 alpine_c_client_target="sc5"
18634 alpine_path_delim="/"
18635 alpine_mode_readonly="(0600)"
18637 *-next-*)
18638 systype="NXT"
18639 alpine_path_delim="/"
18640 alpine_mode_readonly="(0600)"
18641 alpine_c_client_target="nx3"
18643 *-*-netbsd*)
18644 systype="NEB"
18645 alpine_path_delim="/"
18646 alpine_mode_readonly="(0600)"
18647 alpine_c_client_target="neb"
18649 *-*-dragonfly*)
18650 systype="DFB"
18651 alpine_path_delim="/"
18652 alpine_mode_readonly="(0600)"
18653 alpine_c_client_target="neb"
18655 *-*-bsdi*)
18656 systype="BSI"
18657 alpine_path_delim="/"
18658 alpine_mode_readonly="(0600)"
18659 alpine_c_client_target="bsi"
18661 *-*-freebsd*)
18662 systype="BSF"
18663 alpine_path_delim="/"
18664 alpine_mode_readonly="(0600)"
18665 alpine_c_client_target="bsf"
18666 LIBS="$LIBS $LIBINTL"
18668 *-*-openbsd*)
18669 systype="BSO"
18670 alpine_path_delim="/"
18671 alpine_mode_readonly="(0600)"
18672 alpine_c_client_target="bso"
18673 LIBS="$LIBS $LIBINTL"
18675 *-*-aix5*)
18676 systype="A52"
18677 alpine_path_delim="/"
18678 alpine_mode_readonly="(0600)"
18679 alpine_c_client_target="a52"
18681 *-*-aix4*)
18682 systype="A41"
18683 alpine_path_delim="/"
18684 alpine_mode_readonly="(0600)"
18685 alpine_c_client_target="a41"
18687 *-*-aix3*)
18688 systype="A32"
18689 alpine_path_delim="/"
18690 alpine_mode_readonly="(0600)"
18691 alpine_c_client_target="a32"
18693 *-*UNIX_SV | *-*-sysv5UnixWare7* | *-*OpenUNIX*)
18694 systype="UW2"
18695 alpine_path_delim="/"
18696 alpine_mode_readonly="(0600)"
18697 alpine_c_client_target="uw2"
18699 *-*-osf5*)
18700 systype="OSF"
18701 alpine_path_delim="/"
18702 alpine_mode_readonly="(0600)"
18703 alpine_c_client_target="osf"
18705 *-*-cygwin)
18706 systype="CYG"
18707 alpine_path_delim="/"
18708 alpine_mode_readonly="(S_IREAD | S_IWRITE)"
18709 alpine_c_client_target="cyg"
18710 LIBS="$LIBS $LIBINTL"
18712 windows* | *-*-pw32*)
18713 systype="WNT"
18714 alpine_path_delim="\\"
18715 alpine_mode_readonly="(S_IREAD | S_IWRITE)"
18716 alpine_c_client_target="wnt"
18718 $as_echo "#define _WINDOWS 1" >>confdefs.h
18722 as_fn_error $? "Unrecognized system: $host" "$LINENO" 5
18724 esac
18727 # Check whether --with-ipv6 was given.
18728 if test "${with_ipv6+set}" = set; then :
18729 withval=$with_ipv6; with_ipv6=$withval
18733 if test "x$with_ipv6" = "xno" ; then
18734 { $as_echo "$as_me:${as_lineno-$LINENO}: Excluding IPv6 Support" >&5
18735 $as_echo "$as_me: Excluding IPv6 Support" >&6;}
18736 c_client_specials="${c_client_specials}IP6=4 "
18737 c_client_ip6="true"
18738 else
18739 c_client_ip6="touch imap/ip6"
18744 if test x$enable_dmalloc = "xyes" ; then
18745 if test "x$with_pthread" = "xyes" ; then
18746 dmalloc_lib=dmallocth
18747 else
18748 dmalloc_lib=dmalloc
18751 as_ac_Lib=`$as_echo "ac_cv_lib_$dmalloc_lib''_dmalloc_shutdown" | $as_tr_sh`
18752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dmalloc_shutdown in -l$dmalloc_lib" >&5
18753 $as_echo_n "checking for dmalloc_shutdown in -l$dmalloc_lib... " >&6; }
18754 if eval \${$as_ac_Lib+:} false; then :
18755 $as_echo_n "(cached) " >&6
18756 else
18757 ac_check_lib_save_LIBS=$LIBS
18758 LIBS="-l$dmalloc_lib $LIBS"
18759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18760 /* end confdefs.h. */
18762 /* Override any GCC internal prototype to avoid an error.
18763 Use char because int might match the return type of a GCC
18764 builtin and then its argument prototype would still apply. */
18765 #ifdef __cplusplus
18766 extern "C"
18767 #endif
18768 char dmalloc_shutdown ();
18770 main ()
18772 return dmalloc_shutdown ();
18774 return 0;
18776 _ACEOF
18777 if ac_fn_c_try_link "$LINENO"; then :
18778 eval "$as_ac_Lib=yes"
18779 else
18780 eval "$as_ac_Lib=no"
18782 rm -f core conftest.err conftest.$ac_objext \
18783 conftest$ac_exeext conftest.$ac_ext
18784 LIBS=$ac_check_lib_save_LIBS
18786 eval ac_res=\$$as_ac_Lib
18787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18788 $as_echo "$ac_res" >&6; }
18789 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
18790 cat >>confdefs.h <<_ACEOF
18791 #define `$as_echo "HAVE_LIB$dmalloc_lib" | $as_tr_cpp` 1
18792 _ACEOF
18794 LIBS="-l$dmalloc_lib $LIBS"
18796 else
18798 as_fn_error but -ldmalloc not found "$dmalloc_lib requested" "$LINENO" 5
18804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setupterm in -ltinfo" >&5
18805 $as_echo_n "checking for setupterm in -ltinfo... " >&6; }
18806 if ${ac_cv_lib_tinfo_setupterm+:} false; then :
18807 $as_echo_n "(cached) " >&6
18808 else
18809 ac_check_lib_save_LIBS=$LIBS
18810 LIBS="-ltinfo $LIBS"
18811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18812 /* end confdefs.h. */
18814 /* Override any GCC internal prototype to avoid an error.
18815 Use char because int might match the return type of a GCC
18816 builtin and then its argument prototype would still apply. */
18817 #ifdef __cplusplus
18818 extern "C"
18819 #endif
18820 char setupterm ();
18822 main ()
18824 return setupterm ();
18826 return 0;
18828 _ACEOF
18829 if ac_fn_c_try_link "$LINENO"; then :
18830 ac_cv_lib_tinfo_setupterm=yes
18831 else
18832 ac_cv_lib_tinfo_setupterm=no
18834 rm -f core conftest.err conftest.$ac_objext \
18835 conftest$ac_exeext conftest.$ac_ext
18836 LIBS=$ac_check_lib_save_LIBS
18838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_setupterm" >&5
18839 $as_echo "$ac_cv_lib_tinfo_setupterm" >&6; }
18840 if test "x$ac_cv_lib_tinfo_setupterm" = xyes; then :
18842 alpine_termdata=info
18843 LIBS="$LIBS -ltinfo"
18845 else
18847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setupterm in -lncurses" >&5
18848 $as_echo_n "checking for setupterm in -lncurses... " >&6; }
18849 if ${ac_cv_lib_ncurses_setupterm+:} false; then :
18850 $as_echo_n "(cached) " >&6
18851 else
18852 ac_check_lib_save_LIBS=$LIBS
18853 LIBS="-lncurses $LIBS"
18854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18855 /* end confdefs.h. */
18857 /* Override any GCC internal prototype to avoid an error.
18858 Use char because int might match the return type of a GCC
18859 builtin and then its argument prototype would still apply. */
18860 #ifdef __cplusplus
18861 extern "C"
18862 #endif
18863 char setupterm ();
18865 main ()
18867 return setupterm ();
18869 return 0;
18871 _ACEOF
18872 if ac_fn_c_try_link "$LINENO"; then :
18873 ac_cv_lib_ncurses_setupterm=yes
18874 else
18875 ac_cv_lib_ncurses_setupterm=no
18877 rm -f core conftest.err conftest.$ac_objext \
18878 conftest$ac_exeext conftest.$ac_ext
18879 LIBS=$ac_check_lib_save_LIBS
18881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_setupterm" >&5
18882 $as_echo "$ac_cv_lib_ncurses_setupterm" >&6; }
18883 if test "x$ac_cv_lib_ncurses_setupterm" = xyes; then :
18885 alpine_termdata=info
18886 LIBS="$LIBS -lncurses"
18888 else
18890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setupterm in -lcurses" >&5
18891 $as_echo_n "checking for setupterm in -lcurses... " >&6; }
18892 if ${ac_cv_lib_curses_setupterm+:} false; then :
18893 $as_echo_n "(cached) " >&6
18894 else
18895 ac_check_lib_save_LIBS=$LIBS
18896 LIBS="-lcurses $LIBS"
18897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18898 /* end confdefs.h. */
18900 /* Override any GCC internal prototype to avoid an error.
18901 Use char because int might match the return type of a GCC
18902 builtin and then its argument prototype would still apply. */
18903 #ifdef __cplusplus
18904 extern "C"
18905 #endif
18906 char setupterm ();
18908 main ()
18910 return setupterm ();
18912 return 0;
18914 _ACEOF
18915 if ac_fn_c_try_link "$LINENO"; then :
18916 ac_cv_lib_curses_setupterm=yes
18917 else
18918 ac_cv_lib_curses_setupterm=no
18920 rm -f core conftest.err conftest.$ac_objext \
18921 conftest$ac_exeext conftest.$ac_ext
18922 LIBS=$ac_check_lib_save_LIBS
18924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_setupterm" >&5
18925 $as_echo "$ac_cv_lib_curses_setupterm" >&6; }
18926 if test "x$ac_cv_lib_curses_setupterm" = xyes; then :
18928 alpine_termdata=info
18929 LIBS="$LIBS -lcurses"
18931 else
18933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermlib" >&5
18934 $as_echo_n "checking for tgetent in -ltermlib... " >&6; }
18935 if ${ac_cv_lib_termlib_tgetent+:} false; then :
18936 $as_echo_n "(cached) " >&6
18937 else
18938 ac_check_lib_save_LIBS=$LIBS
18939 LIBS="-ltermlib $LIBS"
18940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18941 /* end confdefs.h. */
18943 /* Override any GCC internal prototype to avoid an error.
18944 Use char because int might match the return type of a GCC
18945 builtin and then its argument prototype would still apply. */
18946 #ifdef __cplusplus
18947 extern "C"
18948 #endif
18949 char tgetent ();
18951 main ()
18953 return tgetent ();
18955 return 0;
18957 _ACEOF
18958 if ac_fn_c_try_link "$LINENO"; then :
18959 ac_cv_lib_termlib_tgetent=yes
18960 else
18961 ac_cv_lib_termlib_tgetent=no
18963 rm -f core conftest.err conftest.$ac_objext \
18964 conftest$ac_exeext conftest.$ac_ext
18965 LIBS=$ac_check_lib_save_LIBS
18967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termlib_tgetent" >&5
18968 $as_echo "$ac_cv_lib_termlib_tgetent" >&6; }
18969 if test "x$ac_cv_lib_termlib_tgetent" = xyes; then :
18971 alpine_termdata=cap
18972 LIBS="$LIBS -ltermlib"
18974 else
18976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
18977 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
18978 if ${ac_cv_lib_termcap_tgetent+:} false; then :
18979 $as_echo_n "(cached) " >&6
18980 else
18981 ac_check_lib_save_LIBS=$LIBS
18982 LIBS="-ltermcap $LIBS"
18983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18984 /* end confdefs.h. */
18986 /* Override any GCC internal prototype to avoid an error.
18987 Use char because int might match the return type of a GCC
18988 builtin and then its argument prototype would still apply. */
18989 #ifdef __cplusplus
18990 extern "C"
18991 #endif
18992 char tgetent ();
18994 main ()
18996 return tgetent ();
18998 return 0;
19000 _ACEOF
19001 if ac_fn_c_try_link "$LINENO"; then :
19002 ac_cv_lib_termcap_tgetent=yes
19003 else
19004 ac_cv_lib_termcap_tgetent=no
19006 rm -f core conftest.err conftest.$ac_objext \
19007 conftest$ac_exeext conftest.$ac_ext
19008 LIBS=$ac_check_lib_save_LIBS
19010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
19011 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
19012 if test "x$ac_cv_lib_termcap_tgetent" = xyes; then :
19014 alpine_termdata=cap
19015 LIBS="$LIBS -ltermcap"
19017 else
19019 as_fn_error $? "Terminfo/termcap not found" "$LINENO" 5
19035 case $alpine_termdata in
19036 info)
19038 $as_echo "#define HAS_TERMINFO 1" >>confdefs.h
19041 cap)
19043 $as_echo "#define HAS_TERMCAP 1" >>confdefs.h
19046 esac
19048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
19049 $as_echo_n "checking for library containing dlopen... " >&6; }
19050 if ${ac_cv_search_dlopen+:} false; then :
19051 $as_echo_n "(cached) " >&6
19052 else
19053 ac_func_search_save_LIBS=$LIBS
19054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19055 /* end confdefs.h. */
19057 /* Override any GCC internal prototype to avoid an error.
19058 Use char because int might match the return type of a GCC
19059 builtin and then its argument prototype would still apply. */
19060 #ifdef __cplusplus
19061 extern "C"
19062 #endif
19063 char dlopen ();
19065 main ()
19067 return dlopen ();
19069 return 0;
19071 _ACEOF
19072 for ac_lib in '' dl dld; do
19073 if test -z "$ac_lib"; then
19074 ac_res="none required"
19075 else
19076 ac_res=-l$ac_lib
19077 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19079 if ac_fn_c_try_link "$LINENO"; then :
19080 ac_cv_search_dlopen=$ac_res
19082 rm -f core conftest.err conftest.$ac_objext \
19083 conftest$ac_exeext
19084 if ${ac_cv_search_dlopen+:} false; then :
19085 break
19087 done
19088 if ${ac_cv_search_dlopen+:} false; then :
19090 else
19091 ac_cv_search_dlopen=no
19093 rm conftest.$ac_ext
19094 LIBS=$ac_func_search_save_LIBS
19096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
19097 $as_echo "$ac_cv_search_dlopen" >&6; }
19098 ac_res=$ac_cv_search_dlopen
19099 if test "$ac_res" != no; then :
19100 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19102 else
19103 alpine_DL="none"
19106 if test "x$alpine_DL" = "xnone" ; then
19107 as_fn_error $? "No library containing dlopen found" "$LINENO" 5
19108 exit 1
19111 if test "x$alpine_SSLTYPE" != "xnone" ; then
19112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OpenSSL is LibreSSL" >&5
19113 $as_echo_n "checking if OpenSSL is LibreSSL... " >&6; }
19114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19115 /* end confdefs.h. */
19117 #include <stdio.h>
19118 #include <stdlib.h>
19119 #if HAVE_STDINT_H
19120 #include <stdint.h>
19121 #endif /* HAVE_STDINT_H */
19122 #include <openssl/ssl.h>
19125 main ()
19128 #if OPENSSL_VERSION_NUMBER < 0x20000000L
19129 #error
19130 #endif
19133 return 0;
19135 _ACEOF
19136 if ac_fn_c_try_compile "$LINENO"; then :
19137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19138 $as_echo "yes" >&6; }
19139 alpine_SSLPROVIDER="libressl"
19141 else
19142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19143 $as_echo "no" >&6; }
19146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19149 if test "x$alpine_SSLTYPE" != "xnone" -a "x$alpine_SSLPROVIDER" != "xlibressl" ; then
19150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Openssl library version >= 1.0.0c" >&5
19151 $as_echo_n "checking Openssl library version >= 1.0.0c... " >&6; }
19152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19153 /* end confdefs.h. */
19155 #include <stdio.h>
19156 #include <stdlib.h>
19157 #if HAVE_STDINT_H
19158 #include <stdint.h>
19159 #endif /* HAVE_STDINT_H */
19160 #include <openssl/ssl.h>
19163 main ()
19166 #if OPENSSL_VERSION_NUMBER < 0x1000003fL
19167 #error
19168 #endif
19171 return 0;
19173 _ACEOF
19174 if ac_fn_c_try_compile "$LINENO"; then :
19175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19176 $as_echo "yes" >&6; }
19177 alpine_SSLPROVIDER="openssl"
19179 else
19180 alpine_SSLTYPE="none"
19182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19184 if test "x$alpine_SSLTYPE" = "xnone" ; then
19185 as_fn_error $? "Install openssl version >= 1.0.0c" "$LINENO" 5
19186 exit 1
19190 if test "x$alpine_SSLTYPE" != "xnone" -a "x$alpine_SSLPROVIDER" != "xlibressl" ; then
19191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Openssl library version >= 1.1.0" >&5
19192 $as_echo_n "checking Openssl library version >= 1.1.0... " >&6; }
19193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19194 /* end confdefs.h. */
19196 #include <stdio.h>
19197 #include <stdlib.h>
19198 #if HAVE_STDINT_H
19199 #include <stdint.h>
19200 #endif /* HAVE_STDINT_H */
19201 #include <openssl/ssl.h>
19204 main ()
19207 #if OPENSSL_VERSION_NUMBER < 0x10100000L
19208 #error
19209 #endif
19212 return 0;
19214 _ACEOF
19215 if ac_fn_c_try_compile "$LINENO"; then :
19216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19217 $as_echo "yes" >&6; }
19218 alpine_SSLVERSION="new"
19219 CFLAGS="$CFLAGS -DOPENSSL_1_1_0 -DOPENSSL_API_COMPAT=0x10100000L"
19221 else
19222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19223 $as_echo "no" >&6; }
19224 alpine_SSLVERSION="old"
19226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19229 if test "x$alpine_SSLTYPE" != "xnone" ; then
19230 if test "x$alpine_SSLVERSION" = "xold" -o "x$alpine_SSLPROVIDER" = "xlibressl" ; then
19231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSLeay" >&5
19232 $as_echo_n "checking for library containing SSLeay... " >&6; }
19233 if ${ac_cv_search_SSLeay+:} false; then :
19234 $as_echo_n "(cached) " >&6
19235 else
19236 ac_func_search_save_LIBS=$LIBS
19237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19238 /* end confdefs.h. */
19240 /* Override any GCC internal prototype to avoid an error.
19241 Use char because int might match the return type of a GCC
19242 builtin and then its argument prototype would still apply. */
19243 #ifdef __cplusplus
19244 extern "C"
19245 #endif
19246 char SSLeay ();
19248 main ()
19250 return SSLeay ();
19252 return 0;
19254 _ACEOF
19255 for ac_lib in '' crypto; do
19256 if test -z "$ac_lib"; then
19257 ac_res="none required"
19258 else
19259 ac_res=-l$ac_lib
19260 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19262 if ac_fn_c_try_link "$LINENO"; then :
19263 ac_cv_search_SSLeay=$ac_res
19265 rm -f core conftest.err conftest.$ac_objext \
19266 conftest$ac_exeext
19267 if ${ac_cv_search_SSLeay+:} false; then :
19268 break
19270 done
19271 if ${ac_cv_search_SSLeay+:} false; then :
19273 else
19274 ac_cv_search_SSLeay=no
19276 rm conftest.$ac_ext
19277 LIBS=$ac_func_search_save_LIBS
19279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SSLeay" >&5
19280 $as_echo "$ac_cv_search_SSLeay" >&6; }
19281 ac_res=$ac_cv_search_SSLeay
19282 if test "$ac_res" != no; then :
19283 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19285 else
19286 alpine_CRYPTO="none"
19289 else
19290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing OpenSSL_version_num" >&5
19291 $as_echo_n "checking for library containing OpenSSL_version_num... " >&6; }
19292 if ${ac_cv_search_OpenSSL_version_num+:} false; then :
19293 $as_echo_n "(cached) " >&6
19294 else
19295 ac_func_search_save_LIBS=$LIBS
19296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19297 /* end confdefs.h. */
19299 /* Override any GCC internal prototype to avoid an error.
19300 Use char because int might match the return type of a GCC
19301 builtin and then its argument prototype would still apply. */
19302 #ifdef __cplusplus
19303 extern "C"
19304 #endif
19305 char OpenSSL_version_num ();
19307 main ()
19309 return OpenSSL_version_num ();
19311 return 0;
19313 _ACEOF
19314 for ac_lib in '' crypto; do
19315 if test -z "$ac_lib"; then
19316 ac_res="none required"
19317 else
19318 ac_res=-l$ac_lib
19319 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19321 if ac_fn_c_try_link "$LINENO"; then :
19322 ac_cv_search_OpenSSL_version_num=$ac_res
19324 rm -f core conftest.err conftest.$ac_objext \
19325 conftest$ac_exeext
19326 if ${ac_cv_search_OpenSSL_version_num+:} false; then :
19327 break
19329 done
19330 if ${ac_cv_search_OpenSSL_version_num+:} false; then :
19332 else
19333 ac_cv_search_OpenSSL_version_num=no
19335 rm conftest.$ac_ext
19336 LIBS=$ac_func_search_save_LIBS
19338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_OpenSSL_version_num" >&5
19339 $as_echo "$ac_cv_search_OpenSSL_version_num" >&6; }
19340 ac_res=$ac_cv_search_OpenSSL_version_num
19341 if test "$ac_res" != no; then :
19342 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19344 else
19345 alpine_CRYPTO="none"
19349 if test "x$alpine_CRYPTO" = "xnone" ; then
19350 as_fn_error $? "crypto library NOT found" "$LINENO" 5
19351 exit 1
19353 case $host in
19354 *-*-cygwin)
19355 ac_fn_c_check_header_mongrel "$LINENO" "crypto.h" "ac_cv_header_crypto_h" "$ac_includes_default"
19356 if test "x$ac_cv_header_crypto_h" = xyes; then :
19358 else
19359 alpine_CRYPTO_DEVEL="none"
19363 if test "x$alpine_CRYPTO_DEVEL" = "xnone" ; then
19364 as_fn_error $? "crypto library file crypto.h NOT found. Install correspoding libcrypt-devel package" "$LINENO" 5
19365 exit 1
19368 *) ;;
19369 esac
19372 if test "x$alpine_SSLTYPE" != "xnone" ; then
19373 if test "x$alpine_SSLVERSION" = "xold" -o "x$alpine_SSLPROVIDER" = "xlibressl" ; then
19374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSL_library_init" >&5
19375 $as_echo_n "checking for library containing SSL_library_init... " >&6; }
19376 if ${ac_cv_search_SSL_library_init+:} false; then :
19377 $as_echo_n "(cached) " >&6
19378 else
19379 ac_func_search_save_LIBS=$LIBS
19380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19381 /* end confdefs.h. */
19383 /* Override any GCC internal prototype to avoid an error.
19384 Use char because int might match the return type of a GCC
19385 builtin and then its argument prototype would still apply. */
19386 #ifdef __cplusplus
19387 extern "C"
19388 #endif
19389 char SSL_library_init ();
19391 main ()
19393 return SSL_library_init ();
19395 return 0;
19397 _ACEOF
19398 for ac_lib in '' ssl; do
19399 if test -z "$ac_lib"; then
19400 ac_res="none required"
19401 else
19402 ac_res=-l$ac_lib
19403 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19405 if ac_fn_c_try_link "$LINENO"; then :
19406 ac_cv_search_SSL_library_init=$ac_res
19408 rm -f core conftest.err conftest.$ac_objext \
19409 conftest$ac_exeext
19410 if ${ac_cv_search_SSL_library_init+:} false; then :
19411 break
19413 done
19414 if ${ac_cv_search_SSL_library_init+:} false; then :
19416 else
19417 ac_cv_search_SSL_library_init=no
19419 rm conftest.$ac_ext
19420 LIBS=$ac_func_search_save_LIBS
19422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SSL_library_init" >&5
19423 $as_echo "$ac_cv_search_SSL_library_init" >&6; }
19424 ac_res=$ac_cv_search_SSL_library_init
19425 if test "$ac_res" != no; then :
19426 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19428 else
19429 alpine_SSLTYPE="none"
19432 if test "x$alpine_SSLTYPE" = "xnone" ; then
19433 as_fn_error $? "No library containing SSL_library_init found in your path" "$LINENO" 5
19434 exit 1
19436 else
19437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing OPENSSL_init_ssl" >&5
19438 $as_echo_n "checking for library containing OPENSSL_init_ssl... " >&6; }
19439 if ${ac_cv_search_OPENSSL_init_ssl+:} false; then :
19440 $as_echo_n "(cached) " >&6
19441 else
19442 ac_func_search_save_LIBS=$LIBS
19443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19444 /* end confdefs.h. */
19446 /* Override any GCC internal prototype to avoid an error.
19447 Use char because int might match the return type of a GCC
19448 builtin and then its argument prototype would still apply. */
19449 #ifdef __cplusplus
19450 extern "C"
19451 #endif
19452 char OPENSSL_init_ssl ();
19454 main ()
19456 return OPENSSL_init_ssl ();
19458 return 0;
19460 _ACEOF
19461 for ac_lib in '' ssl; do
19462 if test -z "$ac_lib"; then
19463 ac_res="none required"
19464 else
19465 ac_res=-l$ac_lib
19466 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19468 if ac_fn_c_try_link "$LINENO"; then :
19469 ac_cv_search_OPENSSL_init_ssl=$ac_res
19471 rm -f core conftest.err conftest.$ac_objext \
19472 conftest$ac_exeext
19473 if ${ac_cv_search_OPENSSL_init_ssl+:} false; then :
19474 break
19476 done
19477 if ${ac_cv_search_OPENSSL_init_ssl+:} false; then :
19479 else
19480 ac_cv_search_OPENSSL_init_ssl=no
19482 rm conftest.$ac_ext
19483 LIBS=$ac_func_search_save_LIBS
19485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_OPENSSL_init_ssl" >&5
19486 $as_echo "$ac_cv_search_OPENSSL_init_ssl" >&6; }
19487 ac_res=$ac_cv_search_OPENSSL_init_ssl
19488 if test "$ac_res" != no; then :
19489 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19491 else
19492 alpine_SSLTYPE="none"
19495 if test "x$alpine_SSLTYPE" = "xnone" ; then
19496 as_fn_error $? "No library containing OPENSSL_init_ssl found in your path" "$LINENO" 5
19497 exit 1
19502 if test "$alpine_with_ldap" = "yes" ; then
19503 alpine_has_ldap=
19504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_alloc in -llber" >&5
19505 $as_echo_n "checking for ber_alloc in -llber... " >&6; }
19506 if ${ac_cv_lib_lber_ber_alloc+:} false; then :
19507 $as_echo_n "(cached) " >&6
19508 else
19509 ac_check_lib_save_LIBS=$LIBS
19510 LIBS="-llber $LIBS"
19511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19512 /* end confdefs.h. */
19514 /* Override any GCC internal prototype to avoid an error.
19515 Use char because int might match the return type of a GCC
19516 builtin and then its argument prototype would still apply. */
19517 #ifdef __cplusplus
19518 extern "C"
19519 #endif
19520 char ber_alloc ();
19522 main ()
19524 return ber_alloc ();
19526 return 0;
19528 _ACEOF
19529 if ac_fn_c_try_link "$LINENO"; then :
19530 ac_cv_lib_lber_ber_alloc=yes
19531 else
19532 ac_cv_lib_lber_ber_alloc=no
19534 rm -f core conftest.err conftest.$ac_objext \
19535 conftest$ac_exeext conftest.$ac_ext
19536 LIBS=$ac_check_lib_save_LIBS
19538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_alloc" >&5
19539 $as_echo "$ac_cv_lib_lber_ber_alloc" >&6; }
19540 if test "x$ac_cv_lib_lber_ber_alloc" = xyes; then :
19542 LIBS="$LIBS -llber"
19546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldap_initialize" >&5
19547 $as_echo_n "checking for library containing ldap_initialize... " >&6; }
19548 if ${ac_cv_search_ldap_initialize+:} false; then :
19549 $as_echo_n "(cached) " >&6
19550 else
19551 ac_func_search_save_LIBS=$LIBS
19552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19553 /* end confdefs.h. */
19555 /* Override any GCC internal prototype to avoid an error.
19556 Use char because int might match the return type of a GCC
19557 builtin and then its argument prototype would still apply. */
19558 #ifdef __cplusplus
19559 extern "C"
19560 #endif
19561 char ldap_initialize ();
19563 main ()
19565 return ldap_initialize ();
19567 return 0;
19569 _ACEOF
19570 for ac_lib in '' ldap; do
19571 if test -z "$ac_lib"; then
19572 ac_res="none required"
19573 else
19574 ac_res=-l$ac_lib
19575 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19577 if ac_fn_c_try_link "$LINENO"; then :
19578 ac_cv_search_ldap_initialize=$ac_res
19580 rm -f core conftest.err conftest.$ac_objext \
19581 conftest$ac_exeext
19582 if ${ac_cv_search_ldap_initialize+:} false; then :
19583 break
19585 done
19586 if ${ac_cv_search_ldap_initialize+:} false; then :
19588 else
19589 ac_cv_search_ldap_initialize=no
19591 rm conftest.$ac_ext
19592 LIBS=$ac_func_search_save_LIBS
19594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldap_initialize" >&5
19595 $as_echo "$ac_cv_search_ldap_initialize" >&6; }
19596 ac_res=$ac_cv_search_ldap_initialize
19597 if test "$ac_res" != no; then :
19598 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19600 alpine_has_ldap=yes
19602 else
19604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldap_open" >&5
19605 $as_echo_n "checking for library containing ldap_open... " >&6; }
19606 if ${ac_cv_search_ldap_open+:} false; then :
19607 $as_echo_n "(cached) " >&6
19608 else
19609 ac_func_search_save_LIBS=$LIBS
19610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19611 /* end confdefs.h. */
19613 /* Override any GCC internal prototype to avoid an error.
19614 Use char because int might match the return type of a GCC
19615 builtin and then its argument prototype would still apply. */
19616 #ifdef __cplusplus
19617 extern "C"
19618 #endif
19619 char ldap_open ();
19621 main ()
19623 return ldap_open ();
19625 return 0;
19627 _ACEOF
19628 for ac_lib in '' ldap; do
19629 if test -z "$ac_lib"; then
19630 ac_res="none required"
19631 else
19632 ac_res=-l$ac_lib
19633 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19635 if ac_fn_c_try_link "$LINENO"; then :
19636 ac_cv_search_ldap_open=$ac_res
19638 rm -f core conftest.err conftest.$ac_objext \
19639 conftest$ac_exeext
19640 if ${ac_cv_search_ldap_open+:} false; then :
19641 break
19643 done
19644 if ${ac_cv_search_ldap_open+:} false; then :
19646 else
19647 ac_cv_search_ldap_open=no
19649 rm conftest.$ac_ext
19650 LIBS=$ac_func_search_save_LIBS
19652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldap_open" >&5
19653 $as_echo "$ac_cv_search_ldap_open" >&6; }
19654 ac_res=$ac_cv_search_ldap_open
19655 if test "$ac_res" != no; then :
19656 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19658 alpine_has_ldap=yes
19666 if test "$alpine_has_ldap" = "yes" ; then
19667 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * Including LDAP Support" >&5
19668 $as_echo "$as_me: * * * Including LDAP Support" >&6;}
19670 $as_echo "#define ENABLE_LDAP /**/" >>confdefs.h
19675 if test "x$alpine_PAM" != "xnone" ; then
19676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pam_start" >&5
19677 $as_echo_n "checking for library containing pam_start... " >&6; }
19678 if ${ac_cv_search_pam_start+:} false; then :
19679 $as_echo_n "(cached) " >&6
19680 else
19681 ac_func_search_save_LIBS=$LIBS
19682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19683 /* end confdefs.h. */
19685 /* Override any GCC internal prototype to avoid an error.
19686 Use char because int might match the return type of a GCC
19687 builtin and then its argument prototype would still apply. */
19688 #ifdef __cplusplus
19689 extern "C"
19690 #endif
19691 char pam_start ();
19693 main ()
19695 return pam_start ();
19697 return 0;
19699 _ACEOF
19700 for ac_lib in '' pam; do
19701 if test -z "$ac_lib"; then
19702 ac_res="none required"
19703 else
19704 ac_res=-l$ac_lib
19705 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19707 if ac_fn_c_try_link "$LINENO"; then :
19708 ac_cv_search_pam_start=$ac_res
19710 rm -f core conftest.err conftest.$ac_objext \
19711 conftest$ac_exeext
19712 if ${ac_cv_search_pam_start+:} false; then :
19713 break
19715 done
19716 if ${ac_cv_search_pam_start+:} false; then :
19718 else
19719 ac_cv_search_pam_start=no
19721 rm conftest.$ac_ext
19722 LIBS=$ac_func_search_save_LIBS
19724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pam_start" >&5
19725 $as_echo "$ac_cv_search_pam_start" >&6; }
19726 ac_res=$ac_cv_search_pam_start
19727 if test "$ac_res" != no; then :
19728 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19730 LIBS="$LIBS -lpam"
19731 ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
19732 if test "x$ac_cv_header_security_pam_appl_h" = xyes; then :
19734 alpine_PAM="yes"
19736 else
19737 ac_fn_c_check_header_mongrel "$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default"
19738 if test "x$ac_cv_header_pam_pam_appl_h" = xyes; then :
19740 alpine_PAM="yes"
19741 if test "x$alpine_c_client_target" != "xoxp" ; then
19742 alpine_PAM="none"
19743 alpine_pam_none_reason="header files not in security/ directory"
19746 else
19748 alpine_PAM="none"
19749 alpine_pam_none_reason="header files not found"
19759 else
19761 alpine_PAM="none"
19762 alpine_pam_none_reason="library files not found"
19766 if test -n "$alpine_pam_none_reason" ; then
19767 as_fn_error $? "No PAM support: $alpine_pam_none_reason" "$LINENO" 5
19772 if test "x$alpine_GSSTYPE" != "xnone" ; then
19773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gss_init_sec_context" >&5
19774 $as_echo_n "checking for library containing gss_init_sec_context... " >&6; }
19775 if ${ac_cv_search_gss_init_sec_context+:} false; then :
19776 $as_echo_n "(cached) " >&6
19777 else
19778 ac_func_search_save_LIBS=$LIBS
19779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19780 /* end confdefs.h. */
19782 /* Override any GCC internal prototype to avoid an error.
19783 Use char because int might match the return type of a GCC
19784 builtin and then its argument prototype would still apply. */
19785 #ifdef __cplusplus
19786 extern "C"
19787 #endif
19788 char gss_init_sec_context ();
19790 main ()
19792 return gss_init_sec_context ();
19794 return 0;
19796 _ACEOF
19797 for ac_lib in '' gss gssapi gssapi_krb5; do
19798 if test -z "$ac_lib"; then
19799 ac_res="none required"
19800 else
19801 ac_res=-l$ac_lib
19802 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19804 if ac_fn_c_try_link "$LINENO"; then :
19805 ac_cv_search_gss_init_sec_context=$ac_res
19807 rm -f core conftest.err conftest.$ac_objext \
19808 conftest$ac_exeext
19809 if ${ac_cv_search_gss_init_sec_context+:} false; then :
19810 break
19812 done
19813 if ${ac_cv_search_gss_init_sec_context+:} false; then :
19815 else
19816 ac_cv_search_gss_init_sec_context=no
19818 rm conftest.$ac_ext
19819 LIBS=$ac_func_search_save_LIBS
19821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gss_init_sec_context" >&5
19822 $as_echo "$ac_cv_search_gss_init_sec_context" >&6; }
19823 ac_res=$ac_cv_search_gss_init_sec_context
19824 if test "$ac_res" != no; then :
19825 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19827 LIBS="$LIBS -lkrb5"
19828 ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi_generic.h" "ac_cv_header_gssapi_gssapi_generic_h" "$ac_includes_default"
19829 if test "x$ac_cv_header_gssapi_gssapi_generic_h" = xyes; then :
19831 else
19833 if test ! -d /usr/kerberos/include ; then
19834 alpine_GSSTYPE="none"
19835 alpine_gss_none_reason="header files not found"
19842 else
19844 alpine_GSSTYPE="none"
19845 alpine_gss_none_reason="libraries not found"
19849 if test -n "$alpine_gss_none_reason" ; then
19850 { $as_echo "$as_me:${as_lineno-$LINENO}: NOT including Kerberos Support: $alpine_gss_none_reason" >&5
19851 $as_echo "$as_me: NOT including Kerberos Support: $alpine_gss_none_reason" >&6;}
19856 # Check whether --with-ntlm was given.
19857 if test "${with_ntlm+set}" = set; then :
19858 withval=$with_ntlm; with_ntlm=$withval
19862 if test "x$with_ntlm" = "xno" ; then
19863 alpine_NTLM="none"
19864 else
19865 alpine_NTLM=
19867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing buildSmbNtlmAuthRequest" >&5
19868 $as_echo_n "checking for library containing buildSmbNtlmAuthRequest... " >&6; }
19869 if ${ac_cv_search_buildSmbNtlmAuthRequest+:} false; then :
19870 $as_echo_n "(cached) " >&6
19871 else
19872 ac_func_search_save_LIBS=$LIBS
19873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19874 /* end confdefs.h. */
19876 /* Override any GCC internal prototype to avoid an error.
19877 Use char because int might match the return type of a GCC
19878 builtin and then its argument prototype would still apply. */
19879 #ifdef __cplusplus
19880 extern "C"
19881 #endif
19882 char buildSmbNtlmAuthRequest ();
19884 main ()
19886 return buildSmbNtlmAuthRequest ();
19888 return 0;
19890 _ACEOF
19891 for ac_lib in '' ntlm; do
19892 if test -z "$ac_lib"; then
19893 ac_res="none required"
19894 else
19895 ac_res=-l$ac_lib
19896 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19898 if ac_fn_c_try_link "$LINENO"; then :
19899 ac_cv_search_buildSmbNtlmAuthRequest=$ac_res
19901 rm -f core conftest.err conftest.$ac_objext \
19902 conftest$ac_exeext
19903 if ${ac_cv_search_buildSmbNtlmAuthRequest+:} false; then :
19904 break
19906 done
19907 if ${ac_cv_search_buildSmbNtlmAuthRequest+:} false; then :
19909 else
19910 ac_cv_search_buildSmbNtlmAuthRequest=no
19912 rm conftest.$ac_ext
19913 LIBS=$ac_func_search_save_LIBS
19915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_buildSmbNtlmAuthRequest" >&5
19916 $as_echo "$ac_cv_search_buildSmbNtlmAuthRequest" >&6; }
19917 ac_res=$ac_cv_search_buildSmbNtlmAuthRequest
19918 if test "$ac_res" != no; then :
19919 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19921 ac_fn_c_check_header_mongrel "$LINENO" "ntlm.h" "ac_cv_header_ntlm_h" "$ac_includes_default"
19922 if test "x$ac_cv_header_ntlm_h" = xyes; then :
19924 extra_auth_ntlm=ntl
19925 { $as_echo "$as_me:${as_lineno-$LINENO}: including NTLM support" >&5
19926 $as_echo "$as_me: including NTLM support" >&6;}
19928 else
19930 alpine_NTLM="none"
19931 alpine_ntlm_none_reason="header file ntlm.h not found"
19937 else
19939 alpine_NTLM="none"
19940 alpine_ntlm_none_reason="ntlm library not found"
19944 if test -n "$alpine_ntlm_none_reason" ; then
19945 { $as_echo "$as_me:${as_lineno-$LINENO}: NOT including NTLM Support: $alpine_ntlm_none_reason" >&5
19946 $as_echo "$as_me: NOT including NTLM Support: $alpine_ntlm_none_reason" >&6;}
19950 if test -n "$WEB_BUILD" ; then
19951 TCL_VERSIONS_DOT="tcl8.6 tcl8.5 tcl8.4 tcl8.3"
19952 TCL_VERSIONS_NODOT="`echo ${TCL_VERSIONS_DOT} | ${SED} 's/\.//g'`"
19953 TCL_VERSIONS="${TCL_VERSIONS_DOT} ${TCL_VERSIONS_NODOT} tcl"
19954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing Tcl_Eval" >&5
19955 $as_echo_n "checking for library containing Tcl_Eval... " >&6; }
19956 if ${ac_cv_search_Tcl_Eval+:} false; then :
19957 $as_echo_n "(cached) " >&6
19958 else
19959 ac_func_search_save_LIBS=$LIBS
19960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19961 /* end confdefs.h. */
19963 /* Override any GCC internal prototype to avoid an error.
19964 Use char because int might match the return type of a GCC
19965 builtin and then its argument prototype would still apply. */
19966 #ifdef __cplusplus
19967 extern "C"
19968 #endif
19969 char Tcl_Eval ();
19971 main ()
19973 return Tcl_Eval ();
19975 return 0;
19977 _ACEOF
19978 for ac_lib in '' $alpine_TCLLIB ${TCL_VERSIONS}; do
19979 if test -z "$ac_lib"; then
19980 ac_res="none required"
19981 else
19982 ac_res=-l$ac_lib
19983 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19985 if ac_fn_c_try_link "$LINENO"; then :
19986 ac_cv_search_Tcl_Eval=$ac_res
19988 rm -f core conftest.err conftest.$ac_objext \
19989 conftest$ac_exeext
19990 if ${ac_cv_search_Tcl_Eval+:} false; then :
19991 break
19993 done
19994 if ${ac_cv_search_Tcl_Eval+:} false; then :
19996 else
19997 ac_cv_search_Tcl_Eval=no
19999 rm conftest.$ac_ext
20000 LIBS=$ac_func_search_save_LIBS
20002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_Tcl_Eval" >&5
20003 $as_echo "$ac_cv_search_Tcl_Eval" >&6; }
20004 ac_res=$ac_cv_search_Tcl_Eval
20005 if test "$ac_res" != no; then :
20006 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20008 else
20010 WEB_BUILD=
20015 if test -n "$alpine_TCLINC" ; then
20016 as_ac_Header=`$as_echo "ac_cv_header_$alpine_TCLINC/tcl.h" | $as_tr_sh`
20017 ac_fn_c_check_header_mongrel "$LINENO" "$alpine_TCLINC/tcl.h" "$as_ac_Header" "$ac_includes_default"
20018 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20020 else
20022 WEB_BUILD=
20027 if test -z "$WEB_BUILD" ; then
20028 { $as_echo "$as_me:${as_lineno-$LINENO}: Tcl Include file NOT found" >&5
20029 $as_echo "$as_me: Tcl Include file NOT found" >&6;}
20031 else
20032 ac_fn_c_check_header_mongrel "$LINENO" "tcl.h" "ac_cv_header_tcl_h" "$ac_includes_default"
20033 if test "x$ac_cv_header_tcl_h" = xyes; then :
20035 else
20037 for base in /usr /usr/local ; do
20038 for dir in ${TCL_VERSIONS} ; do
20039 if test -f $base/include/$dir/tcl.h ; then
20040 CPPFLAGS="$CPPFLAGS -I$base/include/$dir"
20041 found=yes
20042 break
20044 done
20045 if test "x$found" = "xyes" ; then
20046 break
20048 done
20049 if test "$found" != "yes" ; then
20050 WEB_BUILD=
20051 { $as_echo "$as_me:${as_lineno-$LINENO}: header file tcl.h NOT found: Web Alpine will not be built" >&5
20052 $as_echo "$as_me: header file tcl.h NOT found: Web Alpine will not be built" >&6;}
20061 if test "x$alpine_REGEX" != "xyes" ; then
20062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing regcomp" >&5
20063 $as_echo_n "checking for library containing regcomp... " >&6; }
20064 if ${ac_cv_search_regcomp+:} false; then :
20065 $as_echo_n "(cached) " >&6
20066 else
20067 ac_func_search_save_LIBS=$LIBS
20068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20069 /* end confdefs.h. */
20071 /* Override any GCC internal prototype to avoid an error.
20072 Use char because int might match the return type of a GCC
20073 builtin and then its argument prototype would still apply. */
20074 #ifdef __cplusplus
20075 extern "C"
20076 #endif
20077 char regcomp ();
20079 main ()
20081 return regcomp ();
20083 return 0;
20085 _ACEOF
20086 for ac_lib in '' posix regexp regex re; do
20087 if test -z "$ac_lib"; then
20088 ac_res="none required"
20089 else
20090 ac_res=-l$ac_lib
20091 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20093 if ac_fn_c_try_link "$LINENO"; then :
20094 ac_cv_search_regcomp=$ac_res
20096 rm -f core conftest.err conftest.$ac_objext \
20097 conftest$ac_exeext
20098 if ${ac_cv_search_regcomp+:} false; then :
20099 break
20101 done
20102 if ${ac_cv_search_regcomp+:} false; then :
20104 else
20105 ac_cv_search_regcomp=no
20107 rm conftest.$ac_ext
20108 LIBS=$ac_func_search_save_LIBS
20110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_regcomp" >&5
20111 $as_echo "$ac_cv_search_regcomp" >&6; }
20112 ac_res=$ac_cv_search_regcomp
20113 if test "$ac_res" != no; then :
20114 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20116 else
20118 if test x$alpine_REGEX = "xno" ; then
20119 as_fn_error $? "Unable to find system regex library" "$LINENO" 5
20120 else
20121 alpine_REGEX=yes
20127 if test "x$alpine_REGEX" != "xyes" ; then
20128 ac_fn_c_check_header_mongrel "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default"
20129 if test "x$ac_cv_header_regex_h" = xyes; then :
20131 else
20133 if test x$alpine_REGEX = "xno" ; then
20134 as_fn_error $? "Unable to find system regex include file" "$LINENO" 5
20135 else
20136 alpine_REGEX=yes
20144 $as_echo "#define HAVE_REGEX_H 1" >>confdefs.h
20146 if test "x$alpine_REGEX" = "xyes" ; then
20147 CPPFLAGS="$CPPFLAGS -I${top_builddir}/regex"
20148 LDFLAGS="$LDFLAGS -L${top_builddir}/regex"
20149 REGEX_BUILD=regex
20150 REGEX_MAKEFILE="$REGEX_BUILD/Makefile"
20153 if test "x$with_pthread" != "xno" ; then
20154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread support" >&5
20155 $as_echo_n "checking for pthread support... " >&6; }
20159 ac_ext=c
20160 ac_cpp='$CPP $CPPFLAGS'
20161 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20162 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20163 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20165 acx_pthread_ok=no
20167 # We used to check for pthread.h first, but this fails if pthread.h
20168 # requires special compiler flags (e.g. on True64 or Sequent).
20169 # It gets checked for in the link test anyway.
20171 # First of all, check if the user has set any of the PTHREAD_LIBS,
20172 # etcetera environment variables, and if threads linking works using
20173 # them:
20174 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
20175 save_CFLAGS="$CFLAGS"
20176 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
20177 save_LIBS="$LIBS"
20178 LIBS="$PTHREAD_LIBS $LIBS"
20179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
20180 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
20181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20182 /* end confdefs.h. */
20184 /* Override any GCC internal prototype to avoid an error.
20185 Use char because int might match the return type of a GCC
20186 builtin and then its argument prototype would still apply. */
20187 #ifdef __cplusplus
20188 extern "C"
20189 #endif
20190 char pthread_join ();
20192 main ()
20194 return pthread_join ();
20196 return 0;
20198 _ACEOF
20199 if ac_fn_c_try_link "$LINENO"; then :
20200 acx_pthread_ok=yes
20202 rm -f core conftest.err conftest.$ac_objext \
20203 conftest$ac_exeext conftest.$ac_ext
20204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
20205 $as_echo "$acx_pthread_ok" >&6; }
20206 if test x"$acx_pthread_ok" = xno; then
20207 PTHREAD_LIBS=""
20208 PTHREAD_CFLAGS=""
20210 LIBS="$save_LIBS"
20211 CFLAGS="$save_CFLAGS"
20214 # We must check for the threads library under a number of different
20215 # names; the ordering is very important because some systems
20216 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
20217 # libraries is broken (non-POSIX).
20219 # Create a list of thread flags to try. Items starting with a "-" are
20220 # C compiler flags, and other items are library names, except for "none"
20221 # which indicates that we try without any flags at all, and "pthread-config"
20222 # which is a program returning the flags for the Pth emulation library.
20224 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
20226 # The ordering *is* (sometimes) important. Some notes on the
20227 # individual items follow:
20229 # pthreads: AIX (must check this before -lpthread)
20230 # none: in case threads are in libc; should be tried before -Kthread and
20231 # other compiler flags to prevent continual compiler warnings
20232 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
20233 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
20234 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
20235 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
20236 # -pthreads: Solaris/gcc
20237 # -mthreads: Mingw32/gcc, Lynx/gcc
20238 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
20239 # doesn't hurt to check since this sometimes defines pthreads too;
20240 # also defines -D_REENTRANT)
20241 # ... -mt is also the pthreads flag for HP/aCC
20242 # pthread: Linux, etcetera
20243 # --thread-safe: KAI C++
20244 # pthread-config: use pthread-config program (for GNU Pth library)
20246 case "${host_cpu}-${host_os}" in
20247 *solaris*)
20249 # On Solaris (at least, for some versions), libc contains stubbed
20250 # (non-functional) versions of the pthreads routines, so link-based
20251 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
20252 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
20253 # a function called by this macro, so we could check for that, but
20254 # who knows whether they'll stub that too in a future libc.) So,
20255 # we'll just look for -pthreads and -lpthread first:
20257 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
20259 esac
20261 if test x"$acx_pthread_ok" = xno; then
20262 for flag in $acx_pthread_flags; do
20264 case $flag in
20265 none)
20266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
20267 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
20271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
20272 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
20273 PTHREAD_CFLAGS="$flag"
20276 pthread-config)
20277 # Extract the first word of "pthread-config", so it can be a program name with args.
20278 set dummy pthread-config; ac_word=$2
20279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20280 $as_echo_n "checking for $ac_word... " >&6; }
20281 if ${ac_cv_prog_acx_pthread_config+:} false; then :
20282 $as_echo_n "(cached) " >&6
20283 else
20284 if test -n "$acx_pthread_config"; then
20285 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
20286 else
20287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20288 for as_dir in $PATH
20290 IFS=$as_save_IFS
20291 test -z "$as_dir" && as_dir=.
20292 for ac_exec_ext in '' $ac_executable_extensions; do
20293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20294 ac_cv_prog_acx_pthread_config="yes"
20295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20296 break 2
20298 done
20299 done
20300 IFS=$as_save_IFS
20302 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
20305 acx_pthread_config=$ac_cv_prog_acx_pthread_config
20306 if test -n "$acx_pthread_config"; then
20307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
20308 $as_echo "$acx_pthread_config" >&6; }
20309 else
20310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20311 $as_echo "no" >&6; }
20315 if test x"$acx_pthread_config" = xno; then continue; fi
20316 PTHREAD_CFLAGS="`pthread-config --cflags`"
20317 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
20321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
20322 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
20323 PTHREAD_LIBS="-l$flag"
20325 esac
20327 save_LIBS="$LIBS"
20328 save_CFLAGS="$CFLAGS"
20329 LIBS="$PTHREAD_LIBS $LIBS"
20330 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
20332 # Check for various functions. We must include pthread.h,
20333 # since some functions may be macros. (On the Sequent, we
20334 # need a special flag -Kthread to make this header compile.)
20335 # We check for pthread_join because it is in -lpthread on IRIX
20336 # while pthread_create is in libc. We check for pthread_attr_init
20337 # due to DEC craziness with -lpthreads. We check for
20338 # pthread_cleanup_push because it is one of the few pthread
20339 # functions on Solaris that doesn't have a non-functional libc stub.
20340 # We try pthread_create on general principles.
20341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20342 /* end confdefs.h. */
20343 #include <pthread.h>
20345 main ()
20347 pthread_t th; pthread_join(th, 0);
20348 pthread_attr_init(0); pthread_cleanup_push(0, 0);
20349 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
20351 return 0;
20353 _ACEOF
20354 if ac_fn_c_try_link "$LINENO"; then :
20355 acx_pthread_ok=yes
20357 rm -f core conftest.err conftest.$ac_objext \
20358 conftest$ac_exeext conftest.$ac_ext
20360 LIBS="$save_LIBS"
20361 CFLAGS="$save_CFLAGS"
20363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
20364 $as_echo "$acx_pthread_ok" >&6; }
20365 if test "x$acx_pthread_ok" = xyes; then
20366 break;
20369 PTHREAD_LIBS=""
20370 PTHREAD_CFLAGS=""
20371 done
20374 # Various other checks:
20375 if test "x$acx_pthread_ok" = xyes; then
20376 save_LIBS="$LIBS"
20377 LIBS="$PTHREAD_LIBS $LIBS"
20378 save_CFLAGS="$CFLAGS"
20379 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
20381 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
20382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
20383 $as_echo_n "checking for joinable pthread attribute... " >&6; }
20384 attr_name=unknown
20385 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
20386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20387 /* end confdefs.h. */
20388 #include <pthread.h>
20390 main ()
20392 int attr=$attr; return attr;
20394 return 0;
20396 _ACEOF
20397 if ac_fn_c_try_link "$LINENO"; then :
20398 attr_name=$attr; break
20400 rm -f core conftest.err conftest.$ac_objext \
20401 conftest$ac_exeext conftest.$ac_ext
20402 done
20403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
20404 $as_echo "$attr_name" >&6; }
20405 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
20407 cat >>confdefs.h <<_ACEOF
20408 #define PTHREAD_CREATE_JOINABLE $attr_name
20409 _ACEOF
20413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
20414 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
20415 flag=no
20416 case "${host_cpu}-${host_os}" in
20417 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
20418 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
20419 esac
20420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
20421 $as_echo "${flag}" >&6; }
20422 if test "x$flag" != xno; then
20423 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
20426 LIBS="$save_LIBS"
20427 CFLAGS="$save_CFLAGS"
20429 # More AIX lossage: must compile with xlc_r or cc_r
20430 if test x"$GCC" != xyes; then
20431 for ac_prog in xlc_r cc_r
20433 # Extract the first word of "$ac_prog", so it can be a program name with args.
20434 set dummy $ac_prog; ac_word=$2
20435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20436 $as_echo_n "checking for $ac_word... " >&6; }
20437 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
20438 $as_echo_n "(cached) " >&6
20439 else
20440 if test -n "$PTHREAD_CC"; then
20441 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
20442 else
20443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20444 for as_dir in $PATH
20446 IFS=$as_save_IFS
20447 test -z "$as_dir" && as_dir=.
20448 for ac_exec_ext in '' $ac_executable_extensions; do
20449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20450 ac_cv_prog_PTHREAD_CC="$ac_prog"
20451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20452 break 2
20454 done
20455 done
20456 IFS=$as_save_IFS
20460 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
20461 if test -n "$PTHREAD_CC"; then
20462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
20463 $as_echo "$PTHREAD_CC" >&6; }
20464 else
20465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20466 $as_echo "no" >&6; }
20470 test -n "$PTHREAD_CC" && break
20471 done
20472 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
20474 else
20475 PTHREAD_CC=$CC
20477 else
20478 PTHREAD_CC="$CC"
20485 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
20486 if test x"$acx_pthread_ok" = xyes; then
20488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20489 $as_echo "yes" >&6; }
20490 case "$target" in
20491 *openbsd*)
20492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pthread support on OpenBSD is unstable!" >&5
20493 $as_echo "$as_me: WARNING: pthread support on OpenBSD is unstable!" >&6;}
20494 AM_CFLAGS="$AM_CFLAGS -pthread"
20496 esac
20497 LIBS="$PTHREAD_LIBS $LIBS"
20498 AM_CFLAGS="$AM_CFLAGS $PTHREAD_CFLAGS"
20499 CC="$PTHREAD_CC"
20501 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
20505 else
20506 acx_pthread_ok=no
20508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20509 $as_echo "no" >&6; }
20512 ac_ext=c
20513 ac_cpp='$CPP $CPPFLAGS'
20514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
20521 $as_echo_n "checking for library containing nanosleep... " >&6; }
20522 if ${ac_cv_search_nanosleep+:} false; then :
20523 $as_echo_n "(cached) " >&6
20524 else
20525 ac_func_search_save_LIBS=$LIBS
20526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20527 /* end confdefs.h. */
20529 /* Override any GCC internal prototype to avoid an error.
20530 Use char because int might match the return type of a GCC
20531 builtin and then its argument prototype would still apply. */
20532 #ifdef __cplusplus
20533 extern "C"
20534 #endif
20535 char nanosleep ();
20537 main ()
20539 return nanosleep ();
20541 return 0;
20543 _ACEOF
20544 for ac_lib in '' rt posix4; do
20545 if test -z "$ac_lib"; then
20546 ac_res="none required"
20547 else
20548 ac_res=-l$ac_lib
20549 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20551 if ac_fn_c_try_link "$LINENO"; then :
20552 ac_cv_search_nanosleep=$ac_res
20554 rm -f core conftest.err conftest.$ac_objext \
20555 conftest$ac_exeext
20556 if ${ac_cv_search_nanosleep+:} false; then :
20557 break
20559 done
20560 if ${ac_cv_search_nanosleep+:} false; then :
20562 else
20563 ac_cv_search_nanosleep=no
20565 rm conftest.$ac_ext
20566 LIBS=$ac_func_search_save_LIBS
20568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
20569 $as_echo "$ac_cv_search_nanosleep" >&6; }
20570 ac_res=$ac_cv_search_nanosleep
20571 if test "$ac_res" != no; then :
20572 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20575 $as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h
20585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
20586 $as_echo_n "checking for ANSI C header files... " >&6; }
20587 if ${ac_cv_header_stdc+:} false; then :
20588 $as_echo_n "(cached) " >&6
20589 else
20590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20591 /* end confdefs.h. */
20592 #include <stdlib.h>
20593 #include <stdarg.h>
20594 #include <string.h>
20595 #include <float.h>
20598 main ()
20602 return 0;
20604 _ACEOF
20605 if ac_fn_c_try_compile "$LINENO"; then :
20606 ac_cv_header_stdc=yes
20607 else
20608 ac_cv_header_stdc=no
20610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20612 if test $ac_cv_header_stdc = yes; then
20613 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20615 /* end confdefs.h. */
20616 #include <string.h>
20618 _ACEOF
20619 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20620 $EGREP "memchr" >/dev/null 2>&1; then :
20622 else
20623 ac_cv_header_stdc=no
20625 rm -f conftest*
20629 if test $ac_cv_header_stdc = yes; then
20630 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20632 /* end confdefs.h. */
20633 #include <stdlib.h>
20635 _ACEOF
20636 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20637 $EGREP "free" >/dev/null 2>&1; then :
20639 else
20640 ac_cv_header_stdc=no
20642 rm -f conftest*
20646 if test $ac_cv_header_stdc = yes; then
20647 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20648 if test "$cross_compiling" = yes; then :
20650 else
20651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20652 /* end confdefs.h. */
20653 #include <ctype.h>
20654 #include <stdlib.h>
20655 #if ((' ' & 0x0FF) == 0x020)
20656 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20657 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20658 #else
20659 # define ISLOWER(c) \
20660 (('a' <= (c) && (c) <= 'i') \
20661 || ('j' <= (c) && (c) <= 'r') \
20662 || ('s' <= (c) && (c) <= 'z'))
20663 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20664 #endif
20666 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20668 main ()
20670 int i;
20671 for (i = 0; i < 256; i++)
20672 if (XOR (islower (i), ISLOWER (i))
20673 || toupper (i) != TOUPPER (i))
20674 return 2;
20675 return 0;
20677 _ACEOF
20678 if ac_fn_c_try_run "$LINENO"; then :
20680 else
20681 ac_cv_header_stdc=no
20683 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20684 conftest.$ac_objext conftest.beam conftest.$ac_ext
20689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
20690 $as_echo "$ac_cv_header_stdc" >&6; }
20691 if test $ac_cv_header_stdc = yes; then
20693 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
20697 ac_header_dirent=no
20698 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20699 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
20701 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
20702 if eval \${$as_ac_Header+:} false; then :
20703 $as_echo_n "(cached) " >&6
20704 else
20705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20706 /* end confdefs.h. */
20707 #include <sys/types.h>
20708 #include <$ac_hdr>
20711 main ()
20713 if ((DIR *) 0)
20714 return 0;
20716 return 0;
20718 _ACEOF
20719 if ac_fn_c_try_compile "$LINENO"; then :
20720 eval "$as_ac_Header=yes"
20721 else
20722 eval "$as_ac_Header=no"
20724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20726 eval ac_res=\$$as_ac_Header
20727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20728 $as_echo "$ac_res" >&6; }
20729 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20730 cat >>confdefs.h <<_ACEOF
20731 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20732 _ACEOF
20734 ac_header_dirent=$ac_hdr; break
20737 done
20738 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20739 if test $ac_header_dirent = dirent.h; then
20740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
20741 $as_echo_n "checking for library containing opendir... " >&6; }
20742 if ${ac_cv_search_opendir+:} false; then :
20743 $as_echo_n "(cached) " >&6
20744 else
20745 ac_func_search_save_LIBS=$LIBS
20746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20747 /* end confdefs.h. */
20749 /* Override any GCC internal prototype to avoid an error.
20750 Use char because int might match the return type of a GCC
20751 builtin and then its argument prototype would still apply. */
20752 #ifdef __cplusplus
20753 extern "C"
20754 #endif
20755 char opendir ();
20757 main ()
20759 return opendir ();
20761 return 0;
20763 _ACEOF
20764 for ac_lib in '' dir; do
20765 if test -z "$ac_lib"; then
20766 ac_res="none required"
20767 else
20768 ac_res=-l$ac_lib
20769 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20771 if ac_fn_c_try_link "$LINENO"; then :
20772 ac_cv_search_opendir=$ac_res
20774 rm -f core conftest.err conftest.$ac_objext \
20775 conftest$ac_exeext
20776 if ${ac_cv_search_opendir+:} false; then :
20777 break
20779 done
20780 if ${ac_cv_search_opendir+:} false; then :
20782 else
20783 ac_cv_search_opendir=no
20785 rm conftest.$ac_ext
20786 LIBS=$ac_func_search_save_LIBS
20788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
20789 $as_echo "$ac_cv_search_opendir" >&6; }
20790 ac_res=$ac_cv_search_opendir
20791 if test "$ac_res" != no; then :
20792 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20796 else
20797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
20798 $as_echo_n "checking for library containing opendir... " >&6; }
20799 if ${ac_cv_search_opendir+:} false; then :
20800 $as_echo_n "(cached) " >&6
20801 else
20802 ac_func_search_save_LIBS=$LIBS
20803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20804 /* end confdefs.h. */
20806 /* Override any GCC internal prototype to avoid an error.
20807 Use char because int might match the return type of a GCC
20808 builtin and then its argument prototype would still apply. */
20809 #ifdef __cplusplus
20810 extern "C"
20811 #endif
20812 char opendir ();
20814 main ()
20816 return opendir ();
20818 return 0;
20820 _ACEOF
20821 for ac_lib in '' x; do
20822 if test -z "$ac_lib"; then
20823 ac_res="none required"
20824 else
20825 ac_res=-l$ac_lib
20826 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20828 if ac_fn_c_try_link "$LINENO"; then :
20829 ac_cv_search_opendir=$ac_res
20831 rm -f core conftest.err conftest.$ac_objext \
20832 conftest$ac_exeext
20833 if ${ac_cv_search_opendir+:} false; then :
20834 break
20836 done
20837 if ${ac_cv_search_opendir+:} false; then :
20839 else
20840 ac_cv_search_opendir=no
20842 rm conftest.$ac_ext
20843 LIBS=$ac_func_search_save_LIBS
20845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
20846 $as_echo "$ac_cv_search_opendir" >&6; }
20847 ac_res=$ac_cv_search_opendir
20848 if test "$ac_res" != no; then :
20849 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
20856 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
20857 if ${ac_cv_header_stat_broken+:} false; then :
20858 $as_echo_n "(cached) " >&6
20859 else
20860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20861 /* end confdefs.h. */
20862 #include <sys/types.h>
20863 #include <sys/stat.h>
20865 #if defined S_ISBLK && defined S_IFDIR
20866 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
20867 #endif
20869 #if defined S_ISBLK && defined S_IFCHR
20870 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
20871 #endif
20873 #if defined S_ISLNK && defined S_IFREG
20874 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
20875 #endif
20877 #if defined S_ISSOCK && defined S_IFREG
20878 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
20879 #endif
20881 _ACEOF
20882 if ac_fn_c_try_compile "$LINENO"; then :
20883 ac_cv_header_stat_broken=no
20884 else
20885 ac_cv_header_stat_broken=yes
20887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
20890 $as_echo "$ac_cv_header_stat_broken" >&6; }
20891 if test $ac_cv_header_stat_broken = yes; then
20893 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
20897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
20898 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
20899 if ${ac_cv_header_sys_wait_h+:} false; then :
20900 $as_echo_n "(cached) " >&6
20901 else
20902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20903 /* end confdefs.h. */
20904 #include <sys/types.h>
20905 #include <sys/wait.h>
20906 #ifndef WEXITSTATUS
20907 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
20908 #endif
20909 #ifndef WIFEXITED
20910 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
20911 #endif
20914 main ()
20916 int s;
20917 wait (&s);
20918 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
20920 return 0;
20922 _ACEOF
20923 if ac_fn_c_try_compile "$LINENO"; then :
20924 ac_cv_header_sys_wait_h=yes
20925 else
20926 ac_cv_header_sys_wait_h=no
20928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
20931 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
20932 if test $ac_cv_header_sys_wait_h = yes; then
20934 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
20938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
20939 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
20940 if ${ac_cv_header_time+:} false; then :
20941 $as_echo_n "(cached) " >&6
20942 else
20943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20944 /* end confdefs.h. */
20945 #include <sys/types.h>
20946 #include <sys/time.h>
20947 #include <time.h>
20950 main ()
20952 if ((struct tm *) 0)
20953 return 0;
20955 return 0;
20957 _ACEOF
20958 if ac_fn_c_try_compile "$LINENO"; then :
20959 ac_cv_header_time=yes
20960 else
20961 ac_cv_header_time=no
20963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
20966 $as_echo "$ac_cv_header_time" >&6; }
20967 if test $ac_cv_header_time = yes; then
20969 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
20973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
20974 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
20975 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false; then :
20976 $as_echo_n "(cached) " >&6
20977 else
20978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20979 /* end confdefs.h. */
20980 #include <sys/types.h>
20981 #include <termios.h>
20982 #ifdef TIOCGWINSZ
20984 #endif
20986 _ACEOF
20987 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20988 $EGREP "yes" >/dev/null 2>&1; then :
20989 ac_cv_sys_tiocgwinsz_in_termios_h=yes
20990 else
20991 ac_cv_sys_tiocgwinsz_in_termios_h=no
20993 rm -f conftest*
20996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
20997 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
20999 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
21000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
21001 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
21002 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false; then :
21003 $as_echo_n "(cached) " >&6
21004 else
21005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21006 /* end confdefs.h. */
21007 #include <sys/types.h>
21008 #include <sys/ioctl.h>
21009 #ifdef TIOCGWINSZ
21011 #endif
21013 _ACEOF
21014 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21015 $EGREP "yes" >/dev/null 2>&1; then :
21016 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
21017 else
21018 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
21020 rm -f conftest*
21023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
21024 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
21026 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
21028 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
21034 for ac_header in unistd.h
21035 do :
21036 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
21037 if test "x$ac_cv_header_unistd_h" = xyes; then :
21038 cat >>confdefs.h <<_ACEOF
21039 #define HAVE_UNISTD_H 1
21040 _ACEOF
21044 done
21047 for ac_header in errno.h \
21048 ctype.h \
21049 fcntl.h \
21050 signal.h \
21051 setjmp.h \
21052 memory.h \
21053 sys/ioctl.h \
21054 sys/param.h \
21055 sys/socket.h \
21056 sys/uio.h \
21057 sys/un.h \
21058 limits.h \
21059 wchar.h \
21060 sys/poll.h \
21061 stropts.h \
21062 netdb.h \
21063 syslog.h \
21064 sys/syslog.h \
21065 locale.h \
21066 langinfo.h \
21067 utime.h \
21068 sys/utime.h \
21069 pthread.h \
21070 pwd.h \
21071 assert.h
21072 do :
21073 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21074 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21075 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21076 cat >>confdefs.h <<_ACEOF
21077 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21078 _ACEOF
21082 done
21085 ac_fn_c_check_header_mongrel "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default"
21086 if test "x$ac_cv_header_termios_h" = xyes; then :
21088 $as_echo "#define HAS_TERMIOS 1" >>confdefs.h
21090 else
21092 ac_fn_c_check_header_mongrel "$LINENO" "termio.h" "ac_cv_header_termio_h" "$ac_includes_default"
21093 if test "x$ac_cv_header_termio_h" = xyes; then :
21095 $as_echo "#define HAS_TERMIO 1" >>confdefs.h
21097 else
21099 ac_fn_c_check_header_mongrel "$LINENO" "sgtty.h" "ac_cv_header_sgtty_h" "$ac_includes_default"
21100 if test "x$ac_cv_header_sgtty_h" = xyes; then :
21102 $as_echo "#define HAS_SGTTY 1" >>confdefs.h
21104 else
21106 as_fn_error $? "Unable to figure out terminal control method" "$LINENO" 5
21122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
21123 $as_echo_n "checking return type of signal handlers... " >&6; }
21124 if ${ac_cv_type_signal+:} false; then :
21125 $as_echo_n "(cached) " >&6
21126 else
21127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21128 /* end confdefs.h. */
21129 #include <sys/types.h>
21130 #include <signal.h>
21133 main ()
21135 return *(signal (0, 0)) (0) == 1;
21137 return 0;
21139 _ACEOF
21140 if ac_fn_c_try_compile "$LINENO"; then :
21141 ac_cv_type_signal=int
21142 else
21143 ac_cv_type_signal=void
21145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
21148 $as_echo "$ac_cv_type_signal" >&6; }
21150 cat >>confdefs.h <<_ACEOF
21151 #define RETSIGTYPE $ac_cv_type_signal
21152 _ACEOF
21155 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
21156 if test "x$ac_cv_type_size_t" = xyes; then :
21158 else
21160 cat >>confdefs.h <<_ACEOF
21161 #define size_t unsigned int
21162 _ACEOF
21166 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
21167 if test "x$ac_cv_type_mode_t" = xyes; then :
21169 else
21171 cat >>confdefs.h <<_ACEOF
21172 #define mode_t int
21173 _ACEOF
21177 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
21178 if test "x$ac_cv_type_pid_t" = xyes; then :
21180 else
21182 cat >>confdefs.h <<_ACEOF
21183 #define pid_t int
21184 _ACEOF
21188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
21189 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
21190 if ${ac_cv_type_uid_t+:} false; then :
21191 $as_echo_n "(cached) " >&6
21192 else
21193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21194 /* end confdefs.h. */
21195 #include <sys/types.h>
21197 _ACEOF
21198 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21199 $EGREP "uid_t" >/dev/null 2>&1; then :
21200 ac_cv_type_uid_t=yes
21201 else
21202 ac_cv_type_uid_t=no
21204 rm -f conftest*
21207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
21208 $as_echo "$ac_cv_type_uid_t" >&6; }
21209 if test $ac_cv_type_uid_t = no; then
21211 $as_echo "#define uid_t int" >>confdefs.h
21214 $as_echo "#define gid_t int" >>confdefs.h
21218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
21219 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
21220 if ${ac_cv_struct_tm+:} false; then :
21221 $as_echo_n "(cached) " >&6
21222 else
21223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21224 /* end confdefs.h. */
21225 #include <sys/types.h>
21226 #include <time.h>
21229 main ()
21231 struct tm tm;
21232 int *p = &tm.tm_sec;
21233 return !p;
21235 return 0;
21237 _ACEOF
21238 if ac_fn_c_try_compile "$LINENO"; then :
21239 ac_cv_struct_tm=time.h
21240 else
21241 ac_cv_struct_tm=sys/time.h
21243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
21246 $as_echo "$ac_cv_struct_tm" >&6; }
21247 if test $ac_cv_struct_tm = sys/time.h; then
21249 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
21254 ac_fn_c_check_type "$LINENO" "union wait" "ac_cv_type_union_wait" "$ac_includes_default"
21255 if test "x$ac_cv_type_union_wait" = xyes; then :
21257 cat >>confdefs.h <<_ACEOF
21258 #define HAVE_UNION_WAIT 1
21259 _ACEOF
21265 for ac_header in stdint.h
21266 do :
21267 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
21268 if test "x$ac_cv_header_stdint_h" = xyes; then :
21269 cat >>confdefs.h <<_ACEOF
21270 #define HAVE_STDINT_H 1
21271 _ACEOF
21272 uint16=uint16_t
21273 else
21275 for ac_header in inttypes.h
21276 do :
21277 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
21278 if test "x$ac_cv_header_inttypes_h" = xyes; then :
21279 cat >>confdefs.h <<_ACEOF
21280 #define HAVE_INTTYPES_H 1
21281 _ACEOF
21282 uint16=uint16_t
21283 else
21285 for ac_header in sys/types.h
21286 do :
21287 ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
21288 if test "x$ac_cv_header_sys_types_h" = xyes; then :
21289 cat >>confdefs.h <<_ACEOF
21290 #define HAVE_SYS_TYPES_H 1
21291 _ACEOF
21292 uint16=u_int16_t
21293 else
21295 # The cast to long int works around a bug in the HP C Compiler
21296 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21297 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21298 # This bug is HP SR number 8606223364.
21299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
21300 $as_echo_n "checking size of unsigned short... " >&6; }
21301 if ${ac_cv_sizeof_unsigned_short+:} false; then :
21302 $as_echo_n "(cached) " >&6
21303 else
21304 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short" "$ac_includes_default"; then :
21306 else
21307 if test "$ac_cv_type_unsigned_short" = yes; then
21308 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21309 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21310 as_fn_error 77 "cannot compute sizeof (unsigned short)
21311 See \`config.log' for more details" "$LINENO" 5; }
21312 else
21313 ac_cv_sizeof_unsigned_short=0
21318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
21319 $as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
21323 cat >>confdefs.h <<_ACEOF
21324 #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
21325 _ACEOF
21328 if test $ac_cv_sizeof_unsigned_short -eq 2 ; then
21329 uint16="unsigned short"
21330 else
21331 # The cast to long int works around a bug in the HP C Compiler
21332 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21333 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21334 # This bug is HP SR number 8606223364.
21335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
21336 $as_echo_n "checking size of unsigned int... " >&6; }
21337 if ${ac_cv_sizeof_unsigned_int+:} false; then :
21338 $as_echo_n "(cached) " >&6
21339 else
21340 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
21342 else
21343 if test "$ac_cv_type_unsigned_int" = yes; then
21344 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21345 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21346 as_fn_error 77 "cannot compute sizeof (unsigned int)
21347 See \`config.log' for more details" "$LINENO" 5; }
21348 else
21349 ac_cv_sizeof_unsigned_int=0
21354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
21355 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
21359 cat >>confdefs.h <<_ACEOF
21360 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
21361 _ACEOF
21364 if $ac_cv_sizeof_unsigned_int -eq 2 ; then
21365 uint16="unsigned int"
21366 else
21367 as_fn_error $? "Unable to determine 16 bit integer type" "$LINENO" 5
21373 done
21378 done
21383 done
21386 cat >>confdefs.h <<_ACEOF
21387 #define UINT16 $uint16
21388 _ACEOF
21391 for ac_header in stdint.h
21392 do :
21393 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
21394 if test "x$ac_cv_header_stdint_h" = xyes; then :
21395 cat >>confdefs.h <<_ACEOF
21396 #define HAVE_STDINT_H 1
21397 _ACEOF
21398 uint32=uint32_t
21399 else
21401 for ac_header in inttypes.h
21402 do :
21403 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
21404 if test "x$ac_cv_header_inttypes_h" = xyes; then :
21405 cat >>confdefs.h <<_ACEOF
21406 #define HAVE_INTTYPES_H 1
21407 _ACEOF
21408 uint32=uint32_t
21409 else
21411 for ac_header in sys/types.h
21412 do :
21413 ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
21414 if test "x$ac_cv_header_sys_types_h" = xyes; then :
21415 cat >>confdefs.h <<_ACEOF
21416 #define HAVE_SYS_TYPES_H 1
21417 _ACEOF
21418 uint32=u_int32_t
21419 else
21421 # The cast to long int works around a bug in the HP C Compiler
21422 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21423 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21424 # This bug is HP SR number 8606223364.
21425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
21426 $as_echo_n "checking size of unsigned int... " >&6; }
21427 if ${ac_cv_sizeof_unsigned_int+:} false; then :
21428 $as_echo_n "(cached) " >&6
21429 else
21430 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
21432 else
21433 if test "$ac_cv_type_unsigned_int" = yes; then
21434 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21435 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21436 as_fn_error 77 "cannot compute sizeof (unsigned int)
21437 See \`config.log' for more details" "$LINENO" 5; }
21438 else
21439 ac_cv_sizeof_unsigned_int=0
21444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
21445 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
21449 cat >>confdefs.h <<_ACEOF
21450 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
21451 _ACEOF
21454 if test $ac_cv_sizeof_unsigned_int -eq 4 ; then
21455 uint32="unsigned int"
21456 else
21457 # The cast to long int works around a bug in the HP C Compiler
21458 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21459 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21460 # This bug is HP SR number 8606223364.
21461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
21462 $as_echo_n "checking size of unsigned long... " >&6; }
21463 if ${ac_cv_sizeof_unsigned_long+:} false; then :
21464 $as_echo_n "(cached) " >&6
21465 else
21466 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
21468 else
21469 if test "$ac_cv_type_unsigned_long" = yes; then
21470 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21471 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21472 as_fn_error 77 "cannot compute sizeof (unsigned long)
21473 See \`config.log' for more details" "$LINENO" 5; }
21474 else
21475 ac_cv_sizeof_unsigned_long=0
21480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
21481 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
21485 cat >>confdefs.h <<_ACEOF
21486 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
21487 _ACEOF
21490 if $ac_cv_sizeof_unsigned_long -eq 4 ; then
21491 uint32="unsigned long"
21492 else
21493 as_fn_error $? "Unable to determine 32 bit integer type" "$LINENO" 5
21499 done
21504 done
21509 done
21512 cat >>confdefs.h <<_ACEOF
21513 #define UINT32 $uint32
21514 _ACEOF
21517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking argument pointer type of qsort compare function and base" >&5
21518 $as_echo_n "checking argument pointer type of qsort compare function and base... " >&6; }
21519 if ${ac_cv_func_qsort_argtype+:} false; then :
21520 $as_echo_n "(cached) " >&6
21521 else
21522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21523 /* end confdefs.h. */
21525 #if HAVE_STDLIB_H
21526 #include "stdlib.h"
21527 #endif
21529 extern void *base;
21530 extern sortf(const void *, const void *);
21531 int sortf(a, b)
21532 const void *a;
21533 const void *b; { return 0; }
21536 main ()
21539 qsort(base, 2, sizeof(char *), sortf);
21542 return 0;
21544 _ACEOF
21545 if ac_fn_c_try_compile "$LINENO"; then :
21546 ac_cv_func_qsort_argtype=void
21547 else
21548 ac_cv_func_qsort_argtype=char
21550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_qsort_argtype" >&5
21554 $as_echo "$ac_cv_func_qsort_argtype" >&6; }
21556 cat >>confdefs.h <<_ACEOF
21557 #define qsort_t $ac_cv_func_qsort_argtype
21558 _ACEOF
21562 for ac_header in sys/select.h sys/socket.h
21563 do :
21564 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21565 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21566 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21567 cat >>confdefs.h <<_ACEOF
21568 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21569 _ACEOF
21573 done
21575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
21576 $as_echo_n "checking types of arguments for select... " >&6; }
21577 if ${ac_cv_func_select_args+:} false; then :
21578 $as_echo_n "(cached) " >&6
21579 else
21580 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
21581 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
21582 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
21583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21584 /* end confdefs.h. */
21585 $ac_includes_default
21586 #ifdef HAVE_SYS_SELECT_H
21587 # include <sys/select.h>
21588 #endif
21589 #ifdef HAVE_SYS_SOCKET_H
21590 # include <sys/socket.h>
21591 #endif
21594 main ()
21596 extern int select ($ac_arg1,
21597 $ac_arg234, $ac_arg234, $ac_arg234,
21598 $ac_arg5);
21600 return 0;
21602 _ACEOF
21603 if ac_fn_c_try_compile "$LINENO"; then :
21604 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
21606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21607 done
21608 done
21609 done
21610 # Provide a safe default value.
21611 : "${ac_cv_func_select_args=int,int *,struct timeval *}"
21614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
21615 $as_echo "$ac_cv_func_select_args" >&6; }
21616 ac_save_IFS=$IFS; IFS=','
21617 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
21618 IFS=$ac_save_IFS
21619 shift
21621 cat >>confdefs.h <<_ACEOF
21622 #define SELECT_TYPE_ARG1 $1
21623 _ACEOF
21626 cat >>confdefs.h <<_ACEOF
21627 #define SELECT_TYPE_ARG234 ($2)
21628 _ACEOF
21631 cat >>confdefs.h <<_ACEOF
21632 #define SELECT_TYPE_ARG5 ($3)
21633 _ACEOF
21635 rm -f conftest*
21638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
21639 $as_echo_n "checking for working strcoll... " >&6; }
21640 if ${ac_cv_func_strcoll_works+:} false; then :
21641 $as_echo_n "(cached) " >&6
21642 else
21643 if test "$cross_compiling" = yes; then :
21644 ac_cv_func_strcoll_works=no
21645 else
21646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21647 /* end confdefs.h. */
21648 $ac_includes_default
21650 main ()
21652 return (strcoll ("abc", "def") >= 0 ||
21653 strcoll ("ABC", "DEF") >= 0 ||
21654 strcoll ("123", "456") >= 0)
21656 return 0;
21658 _ACEOF
21659 if ac_fn_c_try_run "$LINENO"; then :
21660 ac_cv_func_strcoll_works=yes
21661 else
21662 ac_cv_func_strcoll_works=no
21664 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21665 conftest.$ac_objext conftest.beam conftest.$ac_ext
21669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
21670 $as_echo "$ac_cv_func_strcoll_works" >&6; }
21671 if test $ac_cv_func_strcoll_works = yes; then
21673 $as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
21679 for ac_header in vfork.h
21680 do :
21681 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
21682 if test "x$ac_cv_header_vfork_h" = xyes; then :
21683 cat >>confdefs.h <<_ACEOF
21684 #define HAVE_VFORK_H 1
21685 _ACEOF
21689 done
21691 for ac_func in fork vfork
21692 do :
21693 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21694 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21695 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21696 cat >>confdefs.h <<_ACEOF
21697 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21698 _ACEOF
21701 done
21703 if test "x$ac_cv_func_fork" = xyes; then
21704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
21705 $as_echo_n "checking for working fork... " >&6; }
21706 if ${ac_cv_func_fork_works+:} false; then :
21707 $as_echo_n "(cached) " >&6
21708 else
21709 if test "$cross_compiling" = yes; then :
21710 ac_cv_func_fork_works=cross
21711 else
21712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21713 /* end confdefs.h. */
21714 $ac_includes_default
21716 main ()
21719 /* By Ruediger Kuhlmann. */
21720 return fork () < 0;
21723 return 0;
21725 _ACEOF
21726 if ac_fn_c_try_run "$LINENO"; then :
21727 ac_cv_func_fork_works=yes
21728 else
21729 ac_cv_func_fork_works=no
21731 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21732 conftest.$ac_objext conftest.beam conftest.$ac_ext
21736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
21737 $as_echo "$ac_cv_func_fork_works" >&6; }
21739 else
21740 ac_cv_func_fork_works=$ac_cv_func_fork
21742 if test "x$ac_cv_func_fork_works" = xcross; then
21743 case $host in
21744 *-*-amigaos* | *-*-msdosdjgpp*)
21745 # Override, as these systems have only a dummy fork() stub
21746 ac_cv_func_fork_works=no
21749 ac_cv_func_fork_works=yes
21751 esac
21752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
21753 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
21755 ac_cv_func_vfork_works=$ac_cv_func_vfork
21756 if test "x$ac_cv_func_vfork" = xyes; then
21757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
21758 $as_echo_n "checking for working vfork... " >&6; }
21759 if ${ac_cv_func_vfork_works+:} false; then :
21760 $as_echo_n "(cached) " >&6
21761 else
21762 if test "$cross_compiling" = yes; then :
21763 ac_cv_func_vfork_works=cross
21764 else
21765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21766 /* end confdefs.h. */
21767 /* Thanks to Paul Eggert for this test. */
21768 $ac_includes_default
21769 #include <sys/wait.h>
21770 #ifdef HAVE_VFORK_H
21771 # include <vfork.h>
21772 #endif
21773 /* On some sparc systems, changes by the child to local and incoming
21774 argument registers are propagated back to the parent. The compiler
21775 is told about this with #include <vfork.h>, but some compilers
21776 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
21777 static variable whose address is put into a register that is
21778 clobbered by the vfork. */
21779 static void
21780 #ifdef __cplusplus
21781 sparc_address_test (int arg)
21782 # else
21783 sparc_address_test (arg) int arg;
21784 #endif
21786 static pid_t child;
21787 if (!child) {
21788 child = vfork ();
21789 if (child < 0) {
21790 perror ("vfork");
21791 _exit(2);
21793 if (!child) {
21794 arg = getpid();
21795 write(-1, "", 0);
21796 _exit (arg);
21802 main ()
21804 pid_t parent = getpid ();
21805 pid_t child;
21807 sparc_address_test (0);
21809 child = vfork ();
21811 if (child == 0) {
21812 /* Here is another test for sparc vfork register problems. This
21813 test uses lots of local variables, at least as many local
21814 variables as main has allocated so far including compiler
21815 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
21816 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
21817 reuse the register of parent for one of the local variables,
21818 since it will think that parent can't possibly be used any more
21819 in this routine. Assigning to the local variable will thus
21820 munge parent in the parent process. */
21821 pid_t
21822 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
21823 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
21824 /* Convince the compiler that p..p7 are live; otherwise, it might
21825 use the same hardware register for all 8 local variables. */
21826 if (p != p1 || p != p2 || p != p3 || p != p4
21827 || p != p5 || p != p6 || p != p7)
21828 _exit(1);
21830 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
21831 from child file descriptors. If the child closes a descriptor
21832 before it execs or exits, this munges the parent's descriptor
21833 as well. Test for this by closing stdout in the child. */
21834 _exit(close(fileno(stdout)) != 0);
21835 } else {
21836 int status;
21837 struct stat st;
21839 while (wait(&status) != child)
21841 return (
21842 /* Was there some problem with vforking? */
21843 child < 0
21845 /* Did the child fail? (This shouldn't happen.) */
21846 || status
21848 /* Did the vfork/compiler bug occur? */
21849 || parent != getpid()
21851 /* Did the file descriptor bug occur? */
21852 || fstat(fileno(stdout), &st) != 0
21856 _ACEOF
21857 if ac_fn_c_try_run "$LINENO"; then :
21858 ac_cv_func_vfork_works=yes
21859 else
21860 ac_cv_func_vfork_works=no
21862 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21863 conftest.$ac_objext conftest.beam conftest.$ac_ext
21867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
21868 $as_echo "$ac_cv_func_vfork_works" >&6; }
21871 if test "x$ac_cv_func_fork_works" = xcross; then
21872 ac_cv_func_vfork_works=$ac_cv_func_vfork
21873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
21874 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
21877 if test "x$ac_cv_func_vfork_works" = xyes; then
21879 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
21881 else
21883 $as_echo "#define vfork fork" >>confdefs.h
21886 if test "x$ac_cv_func_fork_works" = xyes; then
21888 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
21892 for ac_func in strchr \
21893 memcpy \
21894 strtol \
21895 strtoul \
21896 select \
21897 poll \
21898 qsort \
21899 getuid \
21900 getpwuid \
21901 getpwnam \
21902 gettimeofday \
21903 tmpfile \
21904 uname \
21905 rename \
21906 read \
21907 signal \
21908 setjmp \
21909 chown \
21910 wait4 \
21911 waitpid \
21912 wait \
21913 srandom \
21914 popen \
21915 pclose \
21916 fsync \
21917 truncate \
21918 listen \
21919 wcwidth \
21920 mbstowcs \
21921 wcrtomb \
21922 putenv \
21923 setenv
21924 do :
21925 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21926 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21927 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21928 cat >>confdefs.h <<_ACEOF
21929 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21930 _ACEOF
21933 done
21936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostname" >&5
21937 $as_echo_n "checking for library containing gethostname... " >&6; }
21938 if ${ac_cv_search_gethostname+:} false; then :
21939 $as_echo_n "(cached) " >&6
21940 else
21941 ac_func_search_save_LIBS=$LIBS
21942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21943 /* end confdefs.h. */
21945 /* Override any GCC internal prototype to avoid an error.
21946 Use char because int might match the return type of a GCC
21947 builtin and then its argument prototype would still apply. */
21948 #ifdef __cplusplus
21949 extern "C"
21950 #endif
21951 char gethostname ();
21953 main ()
21955 return gethostname ();
21957 return 0;
21959 _ACEOF
21960 for ac_lib in '' nsl; do
21961 if test -z "$ac_lib"; then
21962 ac_res="none required"
21963 else
21964 ac_res=-l$ac_lib
21965 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21967 if ac_fn_c_try_link "$LINENO"; then :
21968 ac_cv_search_gethostname=$ac_res
21970 rm -f core conftest.err conftest.$ac_objext \
21971 conftest$ac_exeext
21972 if ${ac_cv_search_gethostname+:} false; then :
21973 break
21975 done
21976 if ${ac_cv_search_gethostname+:} false; then :
21978 else
21979 ac_cv_search_gethostname=no
21981 rm conftest.$ac_ext
21982 LIBS=$ac_func_search_save_LIBS
21984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostname" >&5
21985 $as_echo "$ac_cv_search_gethostname" >&6; }
21986 ac_res=$ac_cv_search_gethostname
21987 if test "$ac_res" != no; then :
21988 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
21994 $as_echo_n "checking for library containing socket... " >&6; }
21995 if ${ac_cv_search_socket+:} false; then :
21996 $as_echo_n "(cached) " >&6
21997 else
21998 ac_func_search_save_LIBS=$LIBS
21999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22000 /* end confdefs.h. */
22002 /* Override any GCC internal prototype to avoid an error.
22003 Use char because int might match the return type of a GCC
22004 builtin and then its argument prototype would still apply. */
22005 #ifdef __cplusplus
22006 extern "C"
22007 #endif
22008 char socket ();
22010 main ()
22012 return socket ();
22014 return 0;
22016 _ACEOF
22017 for ac_lib in '' socket; do
22018 if test -z "$ac_lib"; then
22019 ac_res="none required"
22020 else
22021 ac_res=-l$ac_lib
22022 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22024 if ac_fn_c_try_link "$LINENO"; then :
22025 ac_cv_search_socket=$ac_res
22027 rm -f core conftest.err conftest.$ac_objext \
22028 conftest$ac_exeext
22029 if ${ac_cv_search_socket+:} false; then :
22030 break
22032 done
22033 if ${ac_cv_search_socket+:} false; then :
22035 else
22036 ac_cv_search_socket=no
22038 rm conftest.$ac_ext
22039 LIBS=$ac_func_search_save_LIBS
22041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
22042 $as_echo "$ac_cv_search_socket" >&6; }
22043 ac_res=$ac_cv_search_socket
22044 if test "$ac_res" != no; then :
22045 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22047 else
22049 WEB_BUILD=
22054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bind" >&5
22055 $as_echo_n "checking for library containing bind... " >&6; }
22056 if ${ac_cv_search_bind+:} false; then :
22057 $as_echo_n "(cached) " >&6
22058 else
22059 ac_func_search_save_LIBS=$LIBS
22060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22061 /* end confdefs.h. */
22063 /* Override any GCC internal prototype to avoid an error.
22064 Use char because int might match the return type of a GCC
22065 builtin and then its argument prototype would still apply. */
22066 #ifdef __cplusplus
22067 extern "C"
22068 #endif
22069 char bind ();
22071 main ()
22073 return bind ();
22075 return 0;
22077 _ACEOF
22078 for ac_lib in '' bind; do
22079 if test -z "$ac_lib"; then
22080 ac_res="none required"
22081 else
22082 ac_res=-l$ac_lib
22083 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22085 if ac_fn_c_try_link "$LINENO"; then :
22086 ac_cv_search_bind=$ac_res
22088 rm -f core conftest.err conftest.$ac_objext \
22089 conftest$ac_exeext
22090 if ${ac_cv_search_bind+:} false; then :
22091 break
22093 done
22094 if ${ac_cv_search_bind+:} false; then :
22096 else
22097 ac_cv_search_bind=no
22099 rm conftest.$ac_ext
22100 LIBS=$ac_func_search_save_LIBS
22102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bind" >&5
22103 $as_echo "$ac_cv_search_bind" >&6; }
22104 ac_res=$ac_cv_search_bind
22105 if test "$ac_res" != no; then :
22106 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22108 else
22110 WEB_BUILD=
22115 for ac_func in sigaction sigemptyset sigaddset sigprocmask
22116 do :
22117 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22118 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22119 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22120 cat >>confdefs.h <<_ACEOF
22121 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22122 _ACEOF
22125 $as_echo "#define POSIX_SIGNALS /**/" >>confdefs.h
22128 else
22130 for ac_func in sigset sigrelse
22131 do :
22132 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22133 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22134 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22135 cat >>confdefs.h <<_ACEOF
22136 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22137 _ACEOF
22140 $as_echo "#define SYSV_SIGNALS /**/" >>confdefs.h
22144 done
22148 done
22151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing syslog" >&5
22152 $as_echo_n "checking for library containing syslog... " >&6; }
22153 if ${ac_cv_search_syslog+:} false; then :
22154 $as_echo_n "(cached) " >&6
22155 else
22156 ac_func_search_save_LIBS=$LIBS
22157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22158 /* end confdefs.h. */
22160 /* Override any GCC internal prototype to avoid an error.
22161 Use char because int might match the return type of a GCC
22162 builtin and then its argument prototype would still apply. */
22163 #ifdef __cplusplus
22164 extern "C"
22165 #endif
22166 char syslog ();
22168 main ()
22170 return syslog ();
22172 return 0;
22174 _ACEOF
22175 for ac_lib in '' bsd socket inet; do
22176 if test -z "$ac_lib"; then
22177 ac_res="none required"
22178 else
22179 ac_res=-l$ac_lib
22180 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22182 if ac_fn_c_try_link "$LINENO"; then :
22183 ac_cv_search_syslog=$ac_res
22185 rm -f core conftest.err conftest.$ac_objext \
22186 conftest$ac_exeext
22187 if ${ac_cv_search_syslog+:} false; then :
22188 break
22190 done
22191 if ${ac_cv_search_syslog+:} false; then :
22193 else
22194 ac_cv_search_syslog=no
22196 rm conftest.$ac_ext
22197 LIBS=$ac_func_search_save_LIBS
22199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_syslog" >&5
22200 $as_echo "$ac_cv_search_syslog" >&6; }
22201 ac_res=$ac_cv_search_syslog
22202 if test "$ac_res" != no; then :
22203 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22206 $as_echo "#define HAVE_SYSLOG 1" >>confdefs.h
22213 if test -n "$alpine_with_local_maildir" ; then
22214 alpine_local_maildir=$alpine_with_local_maildir
22215 elif test -d /var/spool/mail ; then
22216 alpine_local_maildir="/var/spool/mail"
22217 elif test -d /var/mail ; then
22218 alpine_local_maildir="/var/mail"
22219 else
22220 alpine_local_maildir="/usr/spool/mail"
22223 if test -n "$alpine_with_c_client_target" ; then
22224 alpine_c_client_target=$alpine_with_c_client_target
22228 cat >>confdefs.h <<_ACEOF
22229 #define SYSTYPE "$systype"
22230 _ACEOF
22233 cat >>confdefs.h <<_ACEOF
22234 #define C_FILESEP '$alpine_path_delim'
22235 _ACEOF
22238 cat >>confdefs.h <<_ACEOF
22239 #define S_FILESEP "$alpine_path_delim"
22240 _ACEOF
22243 cat >>confdefs.h <<_ACEOF
22244 #define MAILDIR "$alpine_local_maildir"
22245 _ACEOF
22248 cat >>confdefs.h <<_ACEOF
22249 #define MODE_READONLY $alpine_mode_readonly
22250 _ACEOF
22253 C_CLIENT_TARGET=$alpine_c_client_target
22255 C_CLIENT_WITH_IPV6=$c_client_ip6
22257 if test "x$alpine_SSLTYPE" = "xnone" ; then
22258 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * NOT Including SSL Support" >&5
22259 $as_echo "$as_me: * * * NOT Including SSL Support" >&6;}
22260 c_client_specials="${c_client_specials}SSLTYPE=none "
22261 else
22263 if test -n "$alpine_SSLCERTS" -a -d "$alpine_SSLCERTS" ; then
22264 certdir="$alpine_SSLCERTS"
22265 elif test -n "$alpine_SSLDIR" -a -d "${alpine_SSLDIR}/certs" ; then
22266 certdir="${alpine_SSLDIR}/certs"
22267 elif test -n "$alpine_SSLDIR" -a -d "${alpine_SSLDIR}/ssl/certs" ; then
22268 certdir="${alpine_SSLDIR}/ssl/certs"
22269 elif test -n "$alpine_SSLCERTS_ORIG" -a -d "$alpine_SSLCERTS_ORIG" ; then
22270 certdir="$alpine_SSLCERTS_ORIG"
22271 elif test -n "$alpine_SSLCERTS" ; then
22272 certdir="$alpine_SSLCERTS"
22273 else
22274 { $as_echo "$as_me:${as_lineno-$LINENO}: SSL Problem: certificate directory not found" >&5
22275 $as_echo "$as_me: SSL Problem: certificate directory not found" >&6;}
22278 if test "x$with_smime" != "xno" ; then
22279 if test -n "$certdir" ; then
22280 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * S/MIME support enabled" >&5
22281 $as_echo "$as_me: * * * S/MIME support enabled" >&6;}
22283 $as_echo "#define SMIME /**/" >>confdefs.h
22286 cat >>confdefs.h <<_ACEOF
22287 #define SMIME_SSLCERTS "$certdir"
22288 _ACEOF
22294 SSL_CERT_LINK="no"
22295 if test -z "`ls ${certdir} | $EGREP '^[0-9A-Fa-f]{8}\.[0-9]'`" ; then
22296 SSL_BUNDLE_EXISTS="no"
22297 SSL_PEM="factory.pem ca-bundle.pem ca-bundle.crt ca-root-nss.crt"
22298 for SSL_BUNDLE in $SSL_PEM
22300 if test -f ${certdir}/${SSL_BUNDLE} ; then
22301 SSL_BUNDLE_EXISTS="yes"
22303 done
22304 else
22305 SSL_CERT_LINK="yes"
22308 if test "x$SSL_BUNDLE_EXISTS" = "xno" -a "x$SSL_CERT_LINK" = "xno" ; then
22309 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * No certificates found in \"${certdir}\"." >&5
22310 $as_echo "$as_me: * * * No certificates found in \"${certdir}\"." >&6;}
22311 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * This might indicate that CA certs did not get properly" >&5
22312 $as_echo "$as_me: * * * This might indicate that CA certs did not get properly" >&6;}
22313 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * installed. If you get certificate validation failures" >&5
22314 $as_echo "$as_me: * * * installed. If you get certificate validation failures" >&6;}
22315 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * in Alpine, this might be the reason for them." >&5
22316 $as_echo "$as_me: * * * in Alpine, this might be the reason for them." >&6;}
22319 if test -n "$alpine_SSLINCLUDE" ; then
22320 c_client_specials="${c_client_specials}SSLINCLUDE=$alpine_SSLINCLUDE "
22323 if test -n "$alpine_SSLLIB" ; then
22324 c_client_specials="${c_client_specials}SSLLIB=$alpine_SSLLIB "
22327 if test -n "$alpine_SSLDIR" ; then
22328 c_client_specials="${c_client_specials}SSLDIR=$alpine_SSLDIR "
22331 if test -n "$certdir" ; then
22332 c_client_specials="${c_client_specials}SSLCERTS=$certdir "
22335 if test -n "$alpine_SSLKEYS" ; then
22336 c_client_specials="${c_client_specials}SSLKEYS=$alpine_SSLKEYS "
22340 extra_auth_gss=
22341 if test "x$alpine_GSSTYPE" != "xnone" ; then
22342 extra_auth_gss=gss
22343 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * Including Kerberos5 functionality" >&5
22344 $as_echo "$as_me: * * * Including Kerberos5 functionality" >&6;}
22347 extra_auth_ntlm=
22348 if test "x$alpine_NTLM" != "xnone" ; then
22349 extra_auth_ntlm=ntl
22350 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * Including NTLM Authenticator" >&5
22351 $as_echo "$as_me: * * * Including NTLM Authenticator" >&6;}
22354 if test -n "$CPPFLAGS" ; then
22355 alpine_c_client_cflags="$alpine_c_client_cflags ${CPPFLAGS}"
22357 if test -n "$CFLAGS" ; then
22358 alpine_c_client_cflags="$alpine_c_client_cflags ${CFLAGS}"
22361 if test -n "$alpine_c_client_cflags" ; then
22362 C_CLIENT_CFLAGS=EXTRACFLAGS=\"$alpine_c_client_cflags\"
22366 if test -n "$LDFLAGS" ; then
22367 alpine_c_client_ldflags="$alpine_c_client_ldflags ${LDFLAGS}"
22369 if test -n "$LIBS" ; then
22370 alpine_c_client_ldflags="$alpine_c_client_ldflags ${LIBS}"
22373 if test -n "$alpine_c_client_ldflags" ; then
22374 C_CLIENT_LDFLAGS=EXTRALDFLAGS=\"$alpine_c_client_ldflags\"
22378 if test -n "$alpine_c_client_gccoptlevel" ; then
22379 C_CLIENT_GCCOPTLEVEL=GCCOPTLEVEL=\"$alpine_c_client_gccoptlevel\"
22383 c_client_auths="$extra_auth_gss $extra_auth_ntlm"
22384 C_CLIENT_AUTHS=$c_client_auths
22387 C_CLIENT_SPECIALS=$c_client_specials
22390 if test -z "$WEB_BUILD" ; then
22391 WEB_PUBCOOKIE_BUILD=
22392 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * TCL libraries could not be found." >&5
22393 $as_echo "$as_me: * * * TCL libraries could not be found." >&6;}
22394 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * WEB ALPINE COMPONENT WILL NOT BE BUILT." >&5
22395 $as_echo "$as_me: * * * WEB ALPINE COMPONENT WILL NOT BE BUILT." >&6;}
22396 else
22397 if test -n "$WEB_PUBCOOKIE_BUILD" ; then
22398 if test "x$alpine_GSSTYPE" = "xnone" ; then
22399 WEB_PUBCOOKIE_BUILD=
22400 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * Kerberos5 support not found." >&5
22401 $as_echo "$as_me: * * * Kerberos5 support not found." >&6;}
22402 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * WEB ALPINE PUBCOOKIE COMPONENT WILL NOT BE BUILT." >&5
22403 $as_echo "$as_me: * * * WEB ALPINE PUBCOOKIE COMPONENT WILL NOT BE BUILT." >&6;}
22404 elif test -z "$WEB_BINDIR" ; then
22405 WEB_PUBCOOKIE_BUILD=
22406 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * Web Alpine binary directory not provided." >&5
22407 $as_echo "$as_me: * * * Web Alpine binary directory not provided." >&6;}
22408 as_fn_error $? "* * * --with-pubcookie requires --with-web-bin=PATH.
22409 Please re-run configure with these options:
22410 --with-pubcookie --with-web-bin=/usr/local/libexec/alpine/bin" "$LINENO" 5
22411 else
22413 $as_echo "#define PUBCOOKIE 1" >>confdefs.h
22415 WEB_PUBCOOKIE_LIB=../pubcookie/libauthgssproxy.a
22416 WEB_PUBCOOKIE_LINK=gssapi_proxy.l
22432 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"
22434 cat >confcache <<\_ACEOF
22435 # This file is a shell script that caches the results of configure
22436 # tests run on this system so they can be shared between configure
22437 # scripts and configure runs, see configure's option --config-cache.
22438 # It is not useful on other systems. If it contains results you don't
22439 # want to keep, you may remove or edit it.
22441 # config.status only pays attention to the cache file if you give it
22442 # the --recheck option to rerun configure.
22444 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22445 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22446 # following values.
22448 _ACEOF
22450 # The following way of writing the cache mishandles newlines in values,
22451 # but we know of no workaround that is simple, portable, and efficient.
22452 # So, we kill variables containing newlines.
22453 # Ultrix sh set writes to stderr and can't be redirected directly,
22454 # and sets the high bit in the cache file unless we assign to the vars.
22456 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22457 eval ac_val=\$$ac_var
22458 case $ac_val in #(
22459 *${as_nl}*)
22460 case $ac_var in #(
22461 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
22462 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22463 esac
22464 case $ac_var in #(
22465 _ | IFS | as_nl) ;; #(
22466 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
22467 *) { eval $ac_var=; unset $ac_var;} ;;
22468 esac ;;
22469 esac
22470 done
22472 (set) 2>&1 |
22473 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22474 *${as_nl}ac_space=\ *)
22475 # `set' does not quote correctly, so add quotes: double-quote
22476 # substitution turns \\\\ into \\, and sed turns \\ into \.
22477 sed -n \
22478 "s/'/'\\\\''/g;
22479 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22480 ;; #(
22482 # `set' quotes correctly as required by POSIX, so do not add quotes.
22483 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22485 esac |
22486 sort
22488 sed '
22489 /^ac_cv_env_/b end
22490 t clear
22491 :clear
22492 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22493 t end
22494 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22495 :end' >>confcache
22496 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22497 if test -w "$cache_file"; then
22498 if test "x$cache_file" != "x/dev/null"; then
22499 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
22500 $as_echo "$as_me: updating cache $cache_file" >&6;}
22501 if test ! -f "$cache_file" || test -h "$cache_file"; then
22502 cat confcache >"$cache_file"
22503 else
22504 case $cache_file in #(
22505 */* | ?:*)
22506 mv -f confcache "$cache_file"$$ &&
22507 mv -f "$cache_file"$$ "$cache_file" ;; #(
22509 mv -f confcache "$cache_file" ;;
22510 esac
22513 else
22514 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
22515 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22518 rm -f confcache
22520 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22521 # Let make expand exec_prefix.
22522 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22524 DEFS=-DHAVE_CONFIG_H
22526 ac_libobjs=
22527 ac_ltlibobjs=
22529 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22530 # 1. Remove the extension, and $U if already installed.
22531 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22532 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
22533 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22534 # will be set to the directory where LIBOBJS objects are built.
22535 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22536 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
22537 done
22538 LIBOBJS=$ac_libobjs
22540 LTLIBOBJS=$ac_ltlibobjs
22543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
22544 $as_echo_n "checking that generated files are newer than configure... " >&6; }
22545 if test -n "$am_sleep_pid"; then
22546 # Hide warnings about reused PIDs.
22547 wait $am_sleep_pid 2>/dev/null
22549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
22550 $as_echo "done" >&6; }
22551 if test -n "$EXEEXT"; then
22552 am__EXEEXT_TRUE=
22553 am__EXEEXT_FALSE='#'
22554 else
22555 am__EXEEXT_TRUE='#'
22556 am__EXEEXT_FALSE=
22559 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22560 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
22561 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22563 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22564 as_fn_error $? "conditional \"AMDEP\" was never defined.
22565 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22567 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22568 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
22569 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22571 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22572 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
22573 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22576 : "${CONFIG_STATUS=./config.status}"
22577 ac_write_fail=0
22578 ac_clean_files_save=$ac_clean_files
22579 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22580 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
22581 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
22582 as_write_fail=0
22583 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
22584 #! $SHELL
22585 # Generated by $as_me.
22586 # Run this file to recreate the current configuration.
22587 # Compiler output produced by configure, useful for debugging
22588 # configure, is in config.log if it exists.
22590 debug=false
22591 ac_cs_recheck=false
22592 ac_cs_silent=false
22594 SHELL=\${CONFIG_SHELL-$SHELL}
22595 export SHELL
22596 _ASEOF
22597 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
22598 ## -------------------- ##
22599 ## M4sh Initialization. ##
22600 ## -------------------- ##
22602 # Be more Bourne compatible
22603 DUALCASE=1; export DUALCASE # for MKS sh
22604 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22605 emulate sh
22606 NULLCMD=:
22607 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22608 # is contrary to our usage. Disable this feature.
22609 alias -g '${1+"$@"}'='"$@"'
22610 setopt NO_GLOB_SUBST
22611 else
22612 case `(set -o) 2>/dev/null` in #(
22613 *posix*) :
22614 set -o posix ;; #(
22615 *) :
22617 esac
22621 as_nl='
22623 export as_nl
22624 # Printing a long string crashes Solaris 7 /usr/bin/printf.
22625 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
22626 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
22627 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
22628 # Prefer a ksh shell builtin over an external printf program on Solaris,
22629 # but without wasting forks for bash or zsh.
22630 if test -z "$BASH_VERSION$ZSH_VERSION" \
22631 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
22632 as_echo='print -r --'
22633 as_echo_n='print -rn --'
22634 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
22635 as_echo='printf %s\n'
22636 as_echo_n='printf %s'
22637 else
22638 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
22639 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
22640 as_echo_n='/usr/ucb/echo -n'
22641 else
22642 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
22643 as_echo_n_body='eval
22644 arg=$1;
22645 case $arg in #(
22646 *"$as_nl"*)
22647 expr "X$arg" : "X\\(.*\\)$as_nl";
22648 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
22649 esac;
22650 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
22652 export as_echo_n_body
22653 as_echo_n='sh -c $as_echo_n_body as_echo'
22655 export as_echo_body
22656 as_echo='sh -c $as_echo_body as_echo'
22659 # The user is always right.
22660 if test "${PATH_SEPARATOR+set}" != set; then
22661 PATH_SEPARATOR=:
22662 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22663 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22664 PATH_SEPARATOR=';'
22669 # IFS
22670 # We need space, tab and new line, in precisely that order. Quoting is
22671 # there to prevent editors from complaining about space-tab.
22672 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22673 # splitting by setting IFS to empty value.)
22674 IFS=" "" $as_nl"
22676 # Find who we are. Look in the path if we contain no directory separator.
22677 as_myself=
22678 case $0 in #((
22679 *[\\/]* ) as_myself=$0 ;;
22680 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22681 for as_dir in $PATH
22683 IFS=$as_save_IFS
22684 test -z "$as_dir" && as_dir=.
22685 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22686 done
22687 IFS=$as_save_IFS
22690 esac
22691 # We did not find ourselves, most probably we were run as `sh COMMAND'
22692 # in which case we are not to be found in the path.
22693 if test "x$as_myself" = x; then
22694 as_myself=$0
22696 if test ! -f "$as_myself"; then
22697 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22698 exit 1
22701 # Unset variables that we do not need and which cause bugs (e.g. in
22702 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
22703 # suppresses any "Segmentation fault" message there. '((' could
22704 # trigger a bug in pdksh 5.2.14.
22705 for as_var in BASH_ENV ENV MAIL MAILPATH
22706 do eval test x\${$as_var+set} = xset \
22707 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
22708 done
22709 PS1='$ '
22710 PS2='> '
22711 PS4='+ '
22713 # NLS nuisances.
22714 LC_ALL=C
22715 export LC_ALL
22716 LANGUAGE=C
22717 export LANGUAGE
22719 # CDPATH.
22720 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22723 # as_fn_error STATUS ERROR [LINENO LOG_FD]
22724 # ----------------------------------------
22725 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
22726 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22727 # script with STATUS, using 1 if that was 0.
22728 as_fn_error ()
22730 as_status=$1; test $as_status -eq 0 && as_status=1
22731 if test "$4"; then
22732 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22733 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
22735 $as_echo "$as_me: error: $2" >&2
22736 as_fn_exit $as_status
22737 } # as_fn_error
22740 # as_fn_set_status STATUS
22741 # -----------------------
22742 # Set $? to STATUS, without forking.
22743 as_fn_set_status ()
22745 return $1
22746 } # as_fn_set_status
22748 # as_fn_exit STATUS
22749 # -----------------
22750 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
22751 as_fn_exit ()
22753 set +e
22754 as_fn_set_status $1
22755 exit $1
22756 } # as_fn_exit
22758 # as_fn_unset VAR
22759 # ---------------
22760 # Portably unset VAR.
22761 as_fn_unset ()
22763 { eval $1=; unset $1;}
22765 as_unset=as_fn_unset
22766 # as_fn_append VAR VALUE
22767 # ----------------------
22768 # Append the text in VALUE to the end of the definition contained in VAR. Take
22769 # advantage of any shell optimizations that allow amortized linear growth over
22770 # repeated appends, instead of the typical quadratic growth present in naive
22771 # implementations.
22772 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
22773 eval 'as_fn_append ()
22775 eval $1+=\$2
22777 else
22778 as_fn_append ()
22780 eval $1=\$$1\$2
22782 fi # as_fn_append
22784 # as_fn_arith ARG...
22785 # ------------------
22786 # Perform arithmetic evaluation on the ARGs, and store the result in the
22787 # global $as_val. Take advantage of shells that can avoid forks. The arguments
22788 # must be portable across $(()) and expr.
22789 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
22790 eval 'as_fn_arith ()
22792 as_val=$(( $* ))
22794 else
22795 as_fn_arith ()
22797 as_val=`expr "$@" || test $? -eq 1`
22799 fi # as_fn_arith
22802 if expr a : '\(a\)' >/dev/null 2>&1 &&
22803 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22804 as_expr=expr
22805 else
22806 as_expr=false
22809 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22810 as_basename=basename
22811 else
22812 as_basename=false
22815 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22816 as_dirname=dirname
22817 else
22818 as_dirname=false
22821 as_me=`$as_basename -- "$0" ||
22822 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22823 X"$0" : 'X\(//\)$' \| \
22824 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22825 $as_echo X/"$0" |
22826 sed '/^.*\/\([^/][^/]*\)\/*$/{
22827 s//\1/
22830 /^X\/\(\/\/\)$/{
22831 s//\1/
22834 /^X\/\(\/\).*/{
22835 s//\1/
22838 s/.*/./; q'`
22840 # Avoid depending upon Character Ranges.
22841 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22842 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22843 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22844 as_cr_digits='0123456789'
22845 as_cr_alnum=$as_cr_Letters$as_cr_digits
22847 ECHO_C= ECHO_N= ECHO_T=
22848 case `echo -n x` in #(((((
22849 -n*)
22850 case `echo 'xy\c'` in
22851 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22852 xy) ECHO_C='\c';;
22853 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
22854 ECHO_T=' ';;
22855 esac;;
22857 ECHO_N='-n';;
22858 esac
22860 rm -f conf$$ conf$$.exe conf$$.file
22861 if test -d conf$$.dir; then
22862 rm -f conf$$.dir/conf$$.file
22863 else
22864 rm -f conf$$.dir
22865 mkdir conf$$.dir 2>/dev/null
22867 if (echo >conf$$.file) 2>/dev/null; then
22868 if ln -s conf$$.file conf$$ 2>/dev/null; then
22869 as_ln_s='ln -s'
22870 # ... but there are two gotchas:
22871 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22872 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22873 # In both cases, we have to default to `cp -pR'.
22874 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22875 as_ln_s='cp -pR'
22876 elif ln conf$$.file conf$$ 2>/dev/null; then
22877 as_ln_s=ln
22878 else
22879 as_ln_s='cp -pR'
22881 else
22882 as_ln_s='cp -pR'
22884 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22885 rmdir conf$$.dir 2>/dev/null
22888 # as_fn_mkdir_p
22889 # -------------
22890 # Create "$as_dir" as a directory, including parents if necessary.
22891 as_fn_mkdir_p ()
22894 case $as_dir in #(
22895 -*) as_dir=./$as_dir;;
22896 esac
22897 test -d "$as_dir" || eval $as_mkdir_p || {
22898 as_dirs=
22899 while :; do
22900 case $as_dir in #(
22901 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22902 *) as_qdir=$as_dir;;
22903 esac
22904 as_dirs="'$as_qdir' $as_dirs"
22905 as_dir=`$as_dirname -- "$as_dir" ||
22906 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22907 X"$as_dir" : 'X\(//\)[^/]' \| \
22908 X"$as_dir" : 'X\(//\)$' \| \
22909 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22910 $as_echo X"$as_dir" |
22911 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22912 s//\1/
22915 /^X\(\/\/\)[^/].*/{
22916 s//\1/
22919 /^X\(\/\/\)$/{
22920 s//\1/
22923 /^X\(\/\).*/{
22924 s//\1/
22927 s/.*/./; q'`
22928 test -d "$as_dir" && break
22929 done
22930 test -z "$as_dirs" || eval "mkdir $as_dirs"
22931 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
22934 } # as_fn_mkdir_p
22935 if mkdir -p . 2>/dev/null; then
22936 as_mkdir_p='mkdir -p "$as_dir"'
22937 else
22938 test -d ./-p && rmdir ./-p
22939 as_mkdir_p=false
22943 # as_fn_executable_p FILE
22944 # -----------------------
22945 # Test if FILE is an executable regular file.
22946 as_fn_executable_p ()
22948 test -f "$1" && test -x "$1"
22949 } # as_fn_executable_p
22950 as_test_x='test -x'
22951 as_executable_p=as_fn_executable_p
22953 # Sed expression to map a string onto a valid CPP name.
22954 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22956 # Sed expression to map a string onto a valid variable name.
22957 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22960 exec 6>&1
22961 ## ----------------------------------- ##
22962 ## Main body of $CONFIG_STATUS script. ##
22963 ## ----------------------------------- ##
22964 _ASEOF
22965 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
22967 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22968 # Save the log message, to keep $0 and so on meaningful, and to
22969 # report actual input values of CONFIG_FILES etc. instead of their
22970 # values after options handling.
22971 ac_log="
22972 This file was extended by alpine $as_me 2.21.9999, which was
22973 generated by GNU Autoconf 2.69. Invocation command line was
22975 CONFIG_FILES = $CONFIG_FILES
22976 CONFIG_HEADERS = $CONFIG_HEADERS
22977 CONFIG_LINKS = $CONFIG_LINKS
22978 CONFIG_COMMANDS = $CONFIG_COMMANDS
22979 $ $0 $@
22981 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22984 _ACEOF
22986 case $ac_config_files in *"
22987 "*) set x $ac_config_files; shift; ac_config_files=$*;;
22988 esac
22990 case $ac_config_headers in *"
22991 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22992 esac
22995 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22996 # Files that config.status was made for.
22997 config_files="$ac_config_files"
22998 config_headers="$ac_config_headers"
22999 config_commands="$ac_config_commands"
23001 _ACEOF
23003 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23004 ac_cs_usage="\
23005 \`$as_me' instantiates files and other configuration actions
23006 from templates according to the current configuration. Unless the files
23007 and actions are specified as TAGs, all are instantiated by default.
23009 Usage: $0 [OPTION]... [TAG]...
23011 -h, --help print this help, then exit
23012 -V, --version print version number and configuration settings, then exit
23013 --config print configuration, then exit
23014 -q, --quiet, --silent
23015 do not print progress messages
23016 -d, --debug don't remove temporary files
23017 --recheck update $as_me by reconfiguring in the same conditions
23018 --file=FILE[:TEMPLATE]
23019 instantiate the configuration file FILE
23020 --header=FILE[:TEMPLATE]
23021 instantiate the configuration header FILE
23023 Configuration files:
23024 $config_files
23026 Configuration headers:
23027 $config_headers
23029 Configuration commands:
23030 $config_commands
23032 Report bugs to <chappa@washington.edu>."
23034 _ACEOF
23035 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23036 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
23037 ac_cs_version="\\
23038 alpine config.status 2.21.9999
23039 configured by $0, generated by GNU Autoconf 2.69,
23040 with options \\"\$ac_cs_config\\"
23042 Copyright (C) 2012 Free Software Foundation, Inc.
23043 This config.status script is free software; the Free Software Foundation
23044 gives unlimited permission to copy, distribute and modify it."
23046 ac_pwd='$ac_pwd'
23047 srcdir='$srcdir'
23048 INSTALL='$INSTALL'
23049 MKDIR_P='$MKDIR_P'
23050 AWK='$AWK'
23051 test -n "\$AWK" || AWK=awk
23052 _ACEOF
23054 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23055 # The default lists apply if the user does not specify any file.
23056 ac_need_defaults=:
23057 while test $# != 0
23059 case $1 in
23060 --*=?*)
23061 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23062 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23063 ac_shift=:
23065 --*=)
23066 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23067 ac_optarg=
23068 ac_shift=:
23071 ac_option=$1
23072 ac_optarg=$2
23073 ac_shift=shift
23075 esac
23077 case $ac_option in
23078 # Handling of the options.
23079 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23080 ac_cs_recheck=: ;;
23081 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23082 $as_echo "$ac_cs_version"; exit ;;
23083 --config | --confi | --conf | --con | --co | --c )
23084 $as_echo "$ac_cs_config"; exit ;;
23085 --debug | --debu | --deb | --de | --d | -d )
23086 debug=: ;;
23087 --file | --fil | --fi | --f )
23088 $ac_shift
23089 case $ac_optarg in
23090 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23091 '') as_fn_error $? "missing file argument" ;;
23092 esac
23093 as_fn_append CONFIG_FILES " '$ac_optarg'"
23094 ac_need_defaults=false;;
23095 --header | --heade | --head | --hea )
23096 $ac_shift
23097 case $ac_optarg in
23098 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23099 esac
23100 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
23101 ac_need_defaults=false;;
23102 --he | --h)
23103 # Conflict between --help and --header
23104 as_fn_error $? "ambiguous option: \`$1'
23105 Try \`$0 --help' for more information.";;
23106 --help | --hel | -h )
23107 $as_echo "$ac_cs_usage"; exit ;;
23108 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23109 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23110 ac_cs_silent=: ;;
23112 # This is an error.
23113 -*) as_fn_error $? "unrecognized option: \`$1'
23114 Try \`$0 --help' for more information." ;;
23116 *) as_fn_append ac_config_targets " $1"
23117 ac_need_defaults=false ;;
23119 esac
23120 shift
23121 done
23123 ac_configure_extra_args=
23125 if $ac_cs_silent; then
23126 exec 6>/dev/null
23127 ac_configure_extra_args="$ac_configure_extra_args --silent"
23130 _ACEOF
23131 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23132 if \$ac_cs_recheck; then
23133 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23134 shift
23135 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
23136 CONFIG_SHELL='$SHELL'
23137 export CONFIG_SHELL
23138 exec "\$@"
23141 _ACEOF
23142 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23143 exec 5>>config.log
23145 echo
23146 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23147 ## Running $as_me. ##
23148 _ASBOX
23149 $as_echo "$ac_log"
23150 } >&5
23152 _ACEOF
23153 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23155 # INIT-COMMANDS
23157 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23160 # The HP-UX ksh and POSIX shell print the target directory to stdout
23161 # if CDPATH is set.
23162 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
23164 sed_quote_subst='$sed_quote_subst'
23165 double_quote_subst='$double_quote_subst'
23166 delay_variable_subst='$delay_variable_subst'
23167 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
23168 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
23169 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
23170 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
23171 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
23172 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
23173 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
23174 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
23175 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
23176 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
23177 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
23178 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
23179 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
23180 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
23181 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
23182 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
23183 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
23184 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
23185 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
23186 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
23187 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
23188 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
23189 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
23190 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
23191 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
23192 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
23193 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
23194 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
23195 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
23196 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
23197 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
23198 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
23199 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
23200 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
23201 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
23202 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
23203 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
23204 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
23205 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
23206 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
23207 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
23208 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
23209 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
23210 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
23211 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
23212 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
23213 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
23214 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
23215 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
23216 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
23217 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
23218 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
23219 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
23220 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
23221 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
23222 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
23223 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
23224 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
23225 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"`'
23226 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
23227 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
23228 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
23229 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
23230 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
23231 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
23232 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
23233 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
23234 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
23235 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
23236 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
23237 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
23238 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
23239 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
23240 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
23241 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
23242 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
23243 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
23244 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
23245 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
23246 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
23247 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
23248 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
23249 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
23250 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
23251 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
23252 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
23253 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
23254 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
23255 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
23256 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
23257 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
23258 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
23259 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
23260 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
23261 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
23262 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
23263 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
23264 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
23265 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
23266 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
23267 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
23268 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
23269 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
23270 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
23271 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
23272 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
23273 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
23274 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
23275 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
23276 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
23277 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
23278 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
23279 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
23280 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
23281 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
23282 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
23283 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
23284 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
23285 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
23286 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
23287 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
23288 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
23289 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
23290 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
23291 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
23292 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
23293 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
23294 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
23295 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
23296 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
23297 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
23298 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
23299 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
23300 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
23301 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
23303 LTCC='$LTCC'
23304 LTCFLAGS='$LTCFLAGS'
23305 compiler='$compiler_DEFAULT'
23307 # A function that is used when there is no print builtin or printf.
23308 func_fallback_echo ()
23310 eval 'cat <<_LTECHO_EOF
23312 _LTECHO_EOF'
23315 # Quote evaled strings.
23316 for var in SHELL \
23317 ECHO \
23318 PATH_SEPARATOR \
23319 SED \
23320 GREP \
23321 EGREP \
23322 FGREP \
23323 LD \
23324 NM \
23325 LN_S \
23326 lt_SP2NL \
23327 lt_NL2SP \
23328 reload_flag \
23329 OBJDUMP \
23330 deplibs_check_method \
23331 file_magic_cmd \
23332 file_magic_glob \
23333 want_nocaseglob \
23334 DLLTOOL \
23335 sharedlib_from_linklib_cmd \
23336 AR \
23337 AR_FLAGS \
23338 archiver_list_spec \
23339 STRIP \
23340 RANLIB \
23341 CC \
23342 CFLAGS \
23343 compiler \
23344 lt_cv_sys_global_symbol_pipe \
23345 lt_cv_sys_global_symbol_to_cdecl \
23346 lt_cv_sys_global_symbol_to_import \
23347 lt_cv_sys_global_symbol_to_c_name_address \
23348 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
23349 lt_cv_nm_interface \
23350 nm_file_list_spec \
23351 lt_cv_truncate_bin \
23352 lt_prog_compiler_no_builtin_flag \
23353 lt_prog_compiler_pic \
23354 lt_prog_compiler_wl \
23355 lt_prog_compiler_static \
23356 lt_cv_prog_compiler_c_o \
23357 need_locks \
23358 MANIFEST_TOOL \
23359 DSYMUTIL \
23360 NMEDIT \
23361 LIPO \
23362 OTOOL \
23363 OTOOL64 \
23364 shrext_cmds \
23365 export_dynamic_flag_spec \
23366 whole_archive_flag_spec \
23367 compiler_needs_object \
23368 with_gnu_ld \
23369 allow_undefined_flag \
23370 no_undefined_flag \
23371 hardcode_libdir_flag_spec \
23372 hardcode_libdir_separator \
23373 exclude_expsyms \
23374 include_expsyms \
23375 file_list_spec \
23376 variables_saved_for_relink \
23377 libname_spec \
23378 library_names_spec \
23379 soname_spec \
23380 install_override_mode \
23381 finish_eval \
23382 old_striplib \
23383 striplib; do
23384 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
23385 *[\\\\\\\`\\"\\\$]*)
23386 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
23389 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23391 esac
23392 done
23394 # Double-quote double-evaled strings.
23395 for var in reload_cmds \
23396 old_postinstall_cmds \
23397 old_postuninstall_cmds \
23398 old_archive_cmds \
23399 extract_expsyms_cmds \
23400 old_archive_from_new_cmds \
23401 old_archive_from_expsyms_cmds \
23402 archive_cmds \
23403 archive_expsym_cmds \
23404 module_cmds \
23405 module_expsym_cmds \
23406 export_symbols_cmds \
23407 prelink_cmds \
23408 postlink_cmds \
23409 postinstall_cmds \
23410 postuninstall_cmds \
23411 finish_cmds \
23412 sys_lib_search_path_spec \
23413 configure_time_dlsearch_path \
23414 configure_time_lt_sys_library_path; do
23415 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
23416 *[\\\\\\\`\\"\\\$]*)
23417 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
23420 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23422 esac
23423 done
23425 ac_aux_dir='$ac_aux_dir'
23427 # See if we are running on zsh, and set the options that allow our
23428 # commands through without removal of \ escapes INIT.
23429 if test -n "\${ZSH_VERSION+set}"; then
23430 setopt NO_GLOB_SUBST
23434 PACKAGE='$PACKAGE'
23435 VERSION='$VERSION'
23436 RM='$RM'
23437 ofile='$ofile'
23441 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
23442 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
23443 # from automake < 1.5.
23444 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
23445 # Capture the value of LINGUAS because we need it to compute CATALOGS.
23446 LINGUAS="${LINGUAS-%UNSET%}"
23449 _ACEOF
23451 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23453 # Handling of arguments.
23454 for ac_config_target in $ac_config_targets
23456 case $ac_config_target in
23457 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
23458 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23459 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
23460 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
23461 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
23462 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
23463 "$REGEX_MAKEFILE") CONFIG_FILES="$CONFIG_FILES $REGEX_MAKEFILE" ;;
23464 "pith/osdep/Makefile") CONFIG_FILES="$CONFIG_FILES pith/osdep/Makefile" ;;
23465 "pith/charconv/Makefile") CONFIG_FILES="$CONFIG_FILES pith/charconv/Makefile" ;;
23466 "pith/Makefile") CONFIG_FILES="$CONFIG_FILES pith/Makefile" ;;
23467 "pico/osdep/Makefile") CONFIG_FILES="$CONFIG_FILES pico/osdep/Makefile" ;;
23468 "pico/Makefile") CONFIG_FILES="$CONFIG_FILES pico/Makefile" ;;
23469 "alpine/osdep/Makefile") CONFIG_FILES="$CONFIG_FILES alpine/osdep/Makefile" ;;
23470 "alpine/Makefile") CONFIG_FILES="$CONFIG_FILES alpine/Makefile" ;;
23471 "web/src/Makefile") CONFIG_FILES="$CONFIG_FILES web/src/Makefile" ;;
23472 "web/src/pubcookie/Makefile") CONFIG_FILES="$CONFIG_FILES web/src/pubcookie/Makefile" ;;
23473 "web/src/alpined.d/Makefile") CONFIG_FILES="$CONFIG_FILES web/src/alpined.d/Makefile" ;;
23474 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23476 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
23477 esac
23478 done
23481 # If the user did not use the arguments to specify the items to instantiate,
23482 # then the envvar interface is used. Set only those that are not.
23483 # We use the long form for the default assignment because of an extremely
23484 # bizarre bug on SunOS 4.1.3.
23485 if $ac_need_defaults; then
23486 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23487 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23488 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23491 # Have a temporary directory for convenience. Make it in the build tree
23492 # simply because there is no reason against having it here, and in addition,
23493 # creating and moving files from /tmp can sometimes cause problems.
23494 # Hook for its removal unless debugging.
23495 # Note that there is a small window in which the directory will not be cleaned:
23496 # after its creation but before its name has been assigned to `$tmp'.
23497 $debug ||
23499 tmp= ac_tmp=
23500 trap 'exit_status=$?
23501 : "${ac_tmp:=$tmp}"
23502 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
23504 trap 'as_fn_exit 1' 1 2 13 15
23506 # Create a (secure) tmp directory for tmp files.
23509 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23510 test -d "$tmp"
23511 } ||
23513 tmp=./conf$$-$RANDOM
23514 (umask 077 && mkdir "$tmp")
23515 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
23516 ac_tmp=$tmp
23518 # Set up the scripts for CONFIG_FILES section.
23519 # No need to generate them if there are no CONFIG_FILES.
23520 # This happens for instance with `./config.status config.h'.
23521 if test -n "$CONFIG_FILES"; then
23524 ac_cr=`echo X | tr X '\015'`
23525 # On cygwin, bash can eat \r inside `` if the user requested igncr.
23526 # But we know of no other shell where ac_cr would be empty at this
23527 # point, so we can use a bashism as a fallback.
23528 if test "x$ac_cr" = x; then
23529 eval ac_cr=\$\'\\r\'
23531 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23532 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23533 ac_cs_awk_cr='\\r'
23534 else
23535 ac_cs_awk_cr=$ac_cr
23538 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
23539 _ACEOF
23543 echo "cat >conf$$subs.awk <<_ACEOF" &&
23544 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23545 echo "_ACEOF"
23546 } >conf$$subs.sh ||
23547 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23548 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
23549 ac_delim='%!_!# '
23550 for ac_last_try in false false false false false :; do
23551 . ./conf$$subs.sh ||
23552 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23554 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
23555 if test $ac_delim_n = $ac_delim_num; then
23556 break
23557 elif $ac_last_try; then
23558 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23559 else
23560 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23562 done
23563 rm -f conf$$subs.sh
23565 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23566 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
23567 _ACEOF
23568 sed -n '
23570 s/^/S["/; s/!.*/"]=/
23573 s/^[^!]*!//
23574 :repl
23575 t repl
23576 s/'"$ac_delim"'$//
23577 t delim
23580 s/\(.\{148\}\)..*/\1/
23581 t more1
23582 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
23585 b repl
23586 :more1
23587 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23590 s/.\{148\}//
23591 t nl
23592 :delim
23594 s/\(.\{148\}\)..*/\1/
23595 t more2
23596 s/["\\]/\\&/g; s/^/"/; s/$/"/
23599 :more2
23600 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23603 s/.\{148\}//
23604 t delim
23605 ' <conf$$subs.awk | sed '
23606 /^[^""]/{
23608 s/\n//
23610 ' >>$CONFIG_STATUS || ac_write_fail=1
23611 rm -f conf$$subs.awk
23612 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23613 _ACAWK
23614 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
23615 for (key in S) S_is_set[key] = 1
23616 FS = "\a"
23620 line = $ 0
23621 nfields = split(line, field, "@")
23622 substed = 0
23623 len = length(field[1])
23624 for (i = 2; i < nfields; i++) {
23625 key = field[i]
23626 keylen = length(key)
23627 if (S_is_set[key]) {
23628 value = S[key]
23629 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23630 len += length(value) + length(field[++i])
23631 substed = 1
23632 } else
23633 len += 1 + keylen
23636 print line
23639 _ACAWK
23640 _ACEOF
23641 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23642 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23643 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
23644 else
23646 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
23647 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
23648 _ACEOF
23650 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
23651 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
23652 # trailing colons and then remove the whole line if VPATH becomes empty
23653 # (actually we leave an empty line to preserve line numbers).
23654 if test "x$srcdir" = x.; then
23655 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
23657 s///
23658 s/^/:/
23659 s/[ ]*$/:/
23660 s/:\$(srcdir):/:/g
23661 s/:\${srcdir}:/:/g
23662 s/:@srcdir@:/:/g
23663 s/^:*//
23664 s/:*$//
23666 s/\(=[ ]*\).*/\1/
23668 s/\n//
23669 s/^[^=]*=[ ]*$//
23673 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23674 fi # test -n "$CONFIG_FILES"
23676 # Set up the scripts for CONFIG_HEADERS section.
23677 # No need to generate them if there are no CONFIG_HEADERS.
23678 # This happens for instance with `./config.status Makefile'.
23679 if test -n "$CONFIG_HEADERS"; then
23680 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
23681 BEGIN {
23682 _ACEOF
23684 # Transform confdefs.h into an awk script `defines.awk', embedded as
23685 # here-document in config.status, that substitutes the proper values into
23686 # config.h.in to produce config.h.
23688 # Create a delimiter string that does not exist in confdefs.h, to ease
23689 # handling of long lines.
23690 ac_delim='%!_!# '
23691 for ac_last_try in false false :; do
23692 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
23693 if test -z "$ac_tt"; then
23694 break
23695 elif $ac_last_try; then
23696 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
23697 else
23698 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23700 done
23702 # For the awk script, D is an array of macro values keyed by name,
23703 # likewise P contains macro parameters if any. Preserve backslash
23704 # newline sequences.
23706 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23707 sed -n '
23708 s/.\{148\}/&'"$ac_delim"'/g
23709 t rset
23710 :rset
23711 s/^[ ]*#[ ]*define[ ][ ]*/ /
23712 t def
23714 :def
23715 s/\\$//
23716 t bsnl
23717 s/["\\]/\\&/g
23718 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23719 D["\1"]=" \3"/p
23720 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
23722 :bsnl
23723 s/["\\]/\\&/g
23724 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23725 D["\1"]=" \3\\\\\\n"\\/p
23726 t cont
23727 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
23728 t cont
23730 :cont
23732 s/.\{148\}/&'"$ac_delim"'/g
23733 t clear
23734 :clear
23735 s/\\$//
23736 t bsnlc
23737 s/["\\]/\\&/g; s/^/"/; s/$/"/p
23739 :bsnlc
23740 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
23741 b cont
23742 ' <confdefs.h | sed '
23743 s/'"$ac_delim"'/"\\\
23744 "/g' >>$CONFIG_STATUS || ac_write_fail=1
23746 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23747 for (key in D) D_is_set[key] = 1
23748 FS = "\a"
23750 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23751 line = \$ 0
23752 split(line, arg, " ")
23753 if (arg[1] == "#") {
23754 defundef = arg[2]
23755 mac1 = arg[3]
23756 } else {
23757 defundef = substr(arg[1], 2)
23758 mac1 = arg[2]
23760 split(mac1, mac2, "(") #)
23761 macro = mac2[1]
23762 prefix = substr(line, 1, index(line, defundef) - 1)
23763 if (D_is_set[macro]) {
23764 # Preserve the white space surrounding the "#".
23765 print prefix "define", macro P[macro] D[macro]
23766 next
23767 } else {
23768 # Replace #undef with comments. This is necessary, for example,
23769 # in the case of _POSIX_SOURCE, which is predefined and required
23770 # on some systems where configure will not decide to define it.
23771 if (defundef == "undef") {
23772 print "/*", prefix defundef, macro, "*/"
23773 next
23777 { print }
23778 _ACAWK
23779 _ACEOF
23780 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23781 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
23782 fi # test -n "$CONFIG_HEADERS"
23785 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
23786 shift
23787 for ac_tag
23789 case $ac_tag in
23790 :[FHLC]) ac_mode=$ac_tag; continue;;
23791 esac
23792 case $ac_mode$ac_tag in
23793 :[FHL]*:*);;
23794 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
23795 :[FH]-) ac_tag=-:-;;
23796 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23797 esac
23798 ac_save_IFS=$IFS
23799 IFS=:
23800 set x $ac_tag
23801 IFS=$ac_save_IFS
23802 shift
23803 ac_file=$1
23804 shift
23806 case $ac_mode in
23807 :L) ac_source=$1;;
23808 :[FH])
23809 ac_file_inputs=
23810 for ac_f
23812 case $ac_f in
23813 -) ac_f="$ac_tmp/stdin";;
23814 *) # Look for the file first in the build tree, then in the source tree
23815 # (if the path is not absolute). The absolute path cannot be DOS-style,
23816 # because $ac_f cannot contain `:'.
23817 test -f "$ac_f" ||
23818 case $ac_f in
23819 [\\/$]*) false;;
23820 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23821 esac ||
23822 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
23823 esac
23824 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23825 as_fn_append ac_file_inputs " '$ac_f'"
23826 done
23828 # Let's still pretend it is `configure' which instantiates (i.e., don't
23829 # use $as_me), people would be surprised to read:
23830 # /* config.h. Generated by config.status. */
23831 configure_input='Generated from '`
23832 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23833 `' by configure.'
23834 if test x"$ac_file" != x-; then
23835 configure_input="$ac_file. $configure_input"
23836 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
23837 $as_echo "$as_me: creating $ac_file" >&6;}
23839 # Neutralize special characters interpreted by sed in replacement strings.
23840 case $configure_input in #(
23841 *\&* | *\|* | *\\* )
23842 ac_sed_conf_input=`$as_echo "$configure_input" |
23843 sed 's/[\\\\&|]/\\\\&/g'`;; #(
23844 *) ac_sed_conf_input=$configure_input;;
23845 esac
23847 case $ac_tag in
23848 *:-:* | *:-) cat >"$ac_tmp/stdin" \
23849 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
23850 esac
23852 esac
23854 ac_dir=`$as_dirname -- "$ac_file" ||
23855 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23856 X"$ac_file" : 'X\(//\)[^/]' \| \
23857 X"$ac_file" : 'X\(//\)$' \| \
23858 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23859 $as_echo X"$ac_file" |
23860 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23861 s//\1/
23864 /^X\(\/\/\)[^/].*/{
23865 s//\1/
23868 /^X\(\/\/\)$/{
23869 s//\1/
23872 /^X\(\/\).*/{
23873 s//\1/
23876 s/.*/./; q'`
23877 as_dir="$ac_dir"; as_fn_mkdir_p
23878 ac_builddir=.
23880 case "$ac_dir" in
23881 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23883 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23884 # A ".." for each directory in $ac_dir_suffix.
23885 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23886 case $ac_top_builddir_sub in
23887 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23888 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23889 esac ;;
23890 esac
23891 ac_abs_top_builddir=$ac_pwd
23892 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23893 # for backward compatibility:
23894 ac_top_builddir=$ac_top_build_prefix
23896 case $srcdir in
23897 .) # We are building in place.
23898 ac_srcdir=.
23899 ac_top_srcdir=$ac_top_builddir_sub
23900 ac_abs_top_srcdir=$ac_pwd ;;
23901 [\\/]* | ?:[\\/]* ) # Absolute name.
23902 ac_srcdir=$srcdir$ac_dir_suffix;
23903 ac_top_srcdir=$srcdir
23904 ac_abs_top_srcdir=$srcdir ;;
23905 *) # Relative name.
23906 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23907 ac_top_srcdir=$ac_top_build_prefix$srcdir
23908 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23909 esac
23910 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23913 case $ac_mode in
23916 # CONFIG_FILE
23919 case $INSTALL in
23920 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23921 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23922 esac
23923 ac_MKDIR_P=$MKDIR_P
23924 case $MKDIR_P in
23925 [\\/$]* | ?:[\\/]* ) ;;
23926 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23927 esac
23928 _ACEOF
23930 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23931 # If the template does not know about datarootdir, expand it.
23932 # FIXME: This hack should be removed a few years after 2.60.
23933 ac_datarootdir_hack=; ac_datarootdir_seen=
23934 ac_sed_dataroot='
23935 /datarootdir/ {
23939 /@datadir@/p
23940 /@docdir@/p
23941 /@infodir@/p
23942 /@localedir@/p
23943 /@mandir@/p'
23944 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23945 *datarootdir*) ac_datarootdir_seen=yes;;
23946 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23948 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23949 _ACEOF
23950 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23951 ac_datarootdir_hack='
23952 s&@datadir@&$datadir&g
23953 s&@docdir@&$docdir&g
23954 s&@infodir@&$infodir&g
23955 s&@localedir@&$localedir&g
23956 s&@mandir@&$mandir&g
23957 s&\\\${datarootdir}&$datarootdir&g' ;;
23958 esac
23959 _ACEOF
23961 # Neutralize VPATH when `$srcdir' = `.'.
23962 # Shell code in configure.ac might set extrasub.
23963 # FIXME: do we really want to maintain this feature?
23964 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23965 ac_sed_extra="$ac_vpsub
23966 $extrasub
23967 _ACEOF
23968 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23970 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23971 s|@configure_input@|$ac_sed_conf_input|;t t
23972 s&@top_builddir@&$ac_top_builddir_sub&;t t
23973 s&@top_build_prefix@&$ac_top_build_prefix&;t t
23974 s&@srcdir@&$ac_srcdir&;t t
23975 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23976 s&@top_srcdir@&$ac_top_srcdir&;t t
23977 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23978 s&@builddir@&$ac_builddir&;t t
23979 s&@abs_builddir@&$ac_abs_builddir&;t t
23980 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23981 s&@INSTALL@&$ac_INSTALL&;t t
23982 s&@MKDIR_P@&$ac_MKDIR_P&;t t
23983 $ac_datarootdir_hack
23985 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
23986 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23988 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23989 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
23990 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
23991 "$ac_tmp/out"`; test -z "$ac_out"; } &&
23992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23993 which seems to be undefined. Please make sure it is defined" >&5
23994 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23995 which seems to be undefined. Please make sure it is defined" >&2;}
23997 rm -f "$ac_tmp/stdin"
23998 case $ac_file in
23999 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
24000 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
24001 esac \
24002 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24006 # CONFIG_HEADER
24008 if test x"$ac_file" != x-; then
24010 $as_echo "/* $configure_input */" \
24011 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
24012 } >"$ac_tmp/config.h" \
24013 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24014 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
24015 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
24016 $as_echo "$as_me: $ac_file is unchanged" >&6;}
24017 else
24018 rm -f "$ac_file"
24019 mv "$ac_tmp/config.h" "$ac_file" \
24020 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24022 else
24023 $as_echo "/* $configure_input */" \
24024 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
24025 || as_fn_error $? "could not create -" "$LINENO" 5
24027 # Compute "$ac_file"'s index in $config_headers.
24028 _am_arg="$ac_file"
24029 _am_stamp_count=1
24030 for _am_header in $config_headers :; do
24031 case $_am_header in
24032 $_am_arg | $_am_arg:* )
24033 break ;;
24035 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24036 esac
24037 done
24038 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
24039 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24040 X"$_am_arg" : 'X\(//\)[^/]' \| \
24041 X"$_am_arg" : 'X\(//\)$' \| \
24042 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
24043 $as_echo X"$_am_arg" |
24044 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24045 s//\1/
24048 /^X\(\/\/\)[^/].*/{
24049 s//\1/
24052 /^X\(\/\/\)$/{
24053 s//\1/
24056 /^X\(\/\).*/{
24057 s//\1/
24060 s/.*/./; q'`/stamp-h$_am_stamp_count
24063 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
24064 $as_echo "$as_me: executing $ac_file commands" >&6;}
24066 esac
24069 case $ac_file$ac_mode in
24070 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
24071 # Older Autoconf quotes --file arguments for eval, but not when files
24072 # are listed without --file. Let's play safe and only enable the eval
24073 # if we detect the quoting.
24074 case $CONFIG_FILES in
24075 *\'*) eval set x "$CONFIG_FILES" ;;
24076 *) set x $CONFIG_FILES ;;
24077 esac
24078 shift
24079 for mf
24081 # Strip MF so we end up with the name of the file.
24082 mf=`echo "$mf" | sed -e 's/:.*$//'`
24083 # Check whether this is an Automake generated Makefile or not.
24084 # We used to match only the files named 'Makefile.in', but
24085 # some people rename them; so instead we look at the file content.
24086 # Grep'ing the first line is not enough: some people post-process
24087 # each Makefile.in and add a new line on top of each file to say so.
24088 # Grep'ing the whole file is not good either: AIX grep has a line
24089 # limit of 2048, but all sed's we know have understand at least 4000.
24090 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
24091 dirpart=`$as_dirname -- "$mf" ||
24092 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24093 X"$mf" : 'X\(//\)[^/]' \| \
24094 X"$mf" : 'X\(//\)$' \| \
24095 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
24096 $as_echo X"$mf" |
24097 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24098 s//\1/
24101 /^X\(\/\/\)[^/].*/{
24102 s//\1/
24105 /^X\(\/\/\)$/{
24106 s//\1/
24109 /^X\(\/\).*/{
24110 s//\1/
24113 s/.*/./; q'`
24114 else
24115 continue
24117 # Extract the definition of DEPDIR, am__include, and am__quote
24118 # from the Makefile without running 'make'.
24119 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
24120 test -z "$DEPDIR" && continue
24121 am__include=`sed -n 's/^am__include = //p' < "$mf"`
24122 test -z "$am__include" && continue
24123 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
24124 # Find all dependency output files, they are included files with
24125 # $(DEPDIR) in their names. We invoke sed twice because it is the
24126 # simplest approach to changing $(DEPDIR) to its actual value in the
24127 # expansion.
24128 for file in `sed -n "
24129 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24130 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
24131 # Make sure the directory exists.
24132 test -f "$dirpart/$file" && continue
24133 fdir=`$as_dirname -- "$file" ||
24134 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24135 X"$file" : 'X\(//\)[^/]' \| \
24136 X"$file" : 'X\(//\)$' \| \
24137 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
24138 $as_echo X"$file" |
24139 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24140 s//\1/
24143 /^X\(\/\/\)[^/].*/{
24144 s//\1/
24147 /^X\(\/\/\)$/{
24148 s//\1/
24151 /^X\(\/\).*/{
24152 s//\1/
24155 s/.*/./; q'`
24156 as_dir=$dirpart/$fdir; as_fn_mkdir_p
24157 # echo "creating $dirpart/$file"
24158 echo '# dummy' > "$dirpart/$file"
24159 done
24160 done
24163 "libtool":C)
24165 # See if we are running on zsh, and set the options that allow our
24166 # commands through without removal of \ escapes.
24167 if test -n "${ZSH_VERSION+set}"; then
24168 setopt NO_GLOB_SUBST
24171 cfgfile=${ofile}T
24172 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
24173 $RM "$cfgfile"
24175 cat <<_LT_EOF >> "$cfgfile"
24176 #! $SHELL
24177 # Generated automatically by $as_me ($PACKAGE) $VERSION
24178 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
24180 # Provide generalized library-building support services.
24181 # Written by Gordon Matzigkeit, 1996
24183 # Copyright (C) 2014 Free Software Foundation, Inc.
24184 # This is free software; see the source for copying conditions. There is NO
24185 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
24187 # GNU Libtool is free software; you can redistribute it and/or modify
24188 # it under the terms of the GNU General Public License as published by
24189 # the Free Software Foundation; either version 2 of of the License, or
24190 # (at your option) any later version.
24192 # As a special exception to the GNU General Public License, if you
24193 # distribute this file as part of a program or library that is built
24194 # using GNU Libtool, you may include this file under the same
24195 # distribution terms that you use for the rest of that program.
24197 # GNU Libtool is distributed in the hope that it will be useful, but
24198 # WITHOUT ANY WARRANTY; without even the implied warranty of
24199 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24200 # GNU General Public License for more details.
24202 # You should have received a copy of the GNU General Public License
24203 # along with this program. If not, see <http://www.gnu.org/licenses/>.
24206 # The names of the tagged configurations supported by this script.
24207 available_tags=''
24209 # Configured defaults for sys_lib_dlsearch_path munging.
24210 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
24212 # ### BEGIN LIBTOOL CONFIG
24214 # Which release of libtool.m4 was used?
24215 macro_version=$macro_version
24216 macro_revision=$macro_revision
24218 # Whether or not to build shared libraries.
24219 build_libtool_libs=$enable_shared
24221 # Whether or not to build static libraries.
24222 build_old_libs=$enable_static
24224 # What type of objects to build.
24225 pic_mode=$pic_mode
24227 # Whether or not to optimize for fast installation.
24228 fast_install=$enable_fast_install
24230 # Shared archive member basename,for filename based shared library versioning on AIX.
24231 shared_archive_member_spec=$shared_archive_member_spec
24233 # Shell to use when invoking shell scripts.
24234 SHELL=$lt_SHELL
24236 # An echo program that protects backslashes.
24237 ECHO=$lt_ECHO
24239 # The PATH separator for the build system.
24240 PATH_SEPARATOR=$lt_PATH_SEPARATOR
24242 # The host system.
24243 host_alias=$host_alias
24244 host=$host
24245 host_os=$host_os
24247 # The build system.
24248 build_alias=$build_alias
24249 build=$build
24250 build_os=$build_os
24252 # A sed program that does not truncate output.
24253 SED=$lt_SED
24255 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
24256 Xsed="\$SED -e 1s/^X//"
24258 # A grep program that handles long lines.
24259 GREP=$lt_GREP
24261 # An ERE matcher.
24262 EGREP=$lt_EGREP
24264 # A literal string matcher.
24265 FGREP=$lt_FGREP
24267 # A BSD- or MS-compatible name lister.
24268 NM=$lt_NM
24270 # Whether we need soft or hard links.
24271 LN_S=$lt_LN_S
24273 # What is the maximum length of a command?
24274 max_cmd_len=$max_cmd_len
24276 # Object file suffix (normally "o").
24277 objext=$ac_objext
24279 # Executable file suffix (normally "").
24280 exeext=$exeext
24282 # whether the shell understands "unset".
24283 lt_unset=$lt_unset
24285 # turn spaces into newlines.
24286 SP2NL=$lt_lt_SP2NL
24288 # turn newlines into spaces.
24289 NL2SP=$lt_lt_NL2SP
24291 # convert \$build file names to \$host format.
24292 to_host_file_cmd=$lt_cv_to_host_file_cmd
24294 # convert \$build files to toolchain format.
24295 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
24297 # An object symbol dumper.
24298 OBJDUMP=$lt_OBJDUMP
24300 # Method to check whether dependent libraries are shared objects.
24301 deplibs_check_method=$lt_deplibs_check_method
24303 # Command to use when deplibs_check_method = "file_magic".
24304 file_magic_cmd=$lt_file_magic_cmd
24306 # How to find potential files when deplibs_check_method = "file_magic".
24307 file_magic_glob=$lt_file_magic_glob
24309 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
24310 want_nocaseglob=$lt_want_nocaseglob
24312 # DLL creation program.
24313 DLLTOOL=$lt_DLLTOOL
24315 # Command to associate shared and link libraries.
24316 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
24318 # The archiver.
24319 AR=$lt_AR
24321 # Flags to create an archive.
24322 AR_FLAGS=$lt_AR_FLAGS
24324 # How to feed a file listing to the archiver.
24325 archiver_list_spec=$lt_archiver_list_spec
24327 # A symbol stripping program.
24328 STRIP=$lt_STRIP
24330 # Commands used to install an old-style archive.
24331 RANLIB=$lt_RANLIB
24332 old_postinstall_cmds=$lt_old_postinstall_cmds
24333 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24335 # Whether to use a lock for old archive extraction.
24336 lock_old_archive_extraction=$lock_old_archive_extraction
24338 # A C compiler.
24339 LTCC=$lt_CC
24341 # LTCC compiler flags.
24342 LTCFLAGS=$lt_CFLAGS
24344 # Take the output of nm and produce a listing of raw symbols and C names.
24345 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24347 # Transform the output of nm in a proper C declaration.
24348 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24350 # Transform the output of nm into a list of symbols to manually relocate.
24351 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
24353 # Transform the output of nm in a C name address pair.
24354 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24356 # Transform the output of nm in a C name address pair when lib prefix is needed.
24357 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
24359 # The name lister interface.
24360 nm_interface=$lt_lt_cv_nm_interface
24362 # Specify filename containing input files for \$NM.
24363 nm_file_list_spec=$lt_nm_file_list_spec
24365 # The root where to search for dependent libraries,and where our libraries should be installed.
24366 lt_sysroot=$lt_sysroot
24368 # Command to truncate a binary pipe.
24369 lt_truncate_bin=$lt_lt_cv_truncate_bin
24371 # The name of the directory that contains temporary libtool files.
24372 objdir=$objdir
24374 # Used to examine libraries when file_magic_cmd begins with "file".
24375 MAGIC_CMD=$MAGIC_CMD
24377 # Must we lock files when doing compilation?
24378 need_locks=$lt_need_locks
24380 # Manifest tool.
24381 MANIFEST_TOOL=$lt_MANIFEST_TOOL
24383 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
24384 DSYMUTIL=$lt_DSYMUTIL
24386 # Tool to change global to local symbols on Mac OS X.
24387 NMEDIT=$lt_NMEDIT
24389 # Tool to manipulate fat objects and archives on Mac OS X.
24390 LIPO=$lt_LIPO
24392 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
24393 OTOOL=$lt_OTOOL
24395 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
24396 OTOOL64=$lt_OTOOL64
24398 # Old archive suffix (normally "a").
24399 libext=$libext
24401 # Shared library suffix (normally ".so").
24402 shrext_cmds=$lt_shrext_cmds
24404 # The commands to extract the exported symbol list from a shared archive.
24405 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24407 # Variables whose values should be saved in libtool wrapper scripts and
24408 # restored at link time.
24409 variables_saved_for_relink=$lt_variables_saved_for_relink
24411 # Do we need the "lib" prefix for modules?
24412 need_lib_prefix=$need_lib_prefix
24414 # Do we need a version for libraries?
24415 need_version=$need_version
24417 # Library versioning type.
24418 version_type=$version_type
24420 # Shared library runtime path variable.
24421 runpath_var=$runpath_var
24423 # Shared library path variable.
24424 shlibpath_var=$shlibpath_var
24426 # Is shlibpath searched before the hard-coded library search path?
24427 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24429 # Format of library name prefix.
24430 libname_spec=$lt_libname_spec
24432 # List of archive names. First name is the real one, the rest are links.
24433 # The last name is the one that the linker finds with -lNAME
24434 library_names_spec=$lt_library_names_spec
24436 # The coded name of the library, if different from the real name.
24437 soname_spec=$lt_soname_spec
24439 # Permission mode override for installation of shared libraries.
24440 install_override_mode=$lt_install_override_mode
24442 # Command to use after installation of a shared archive.
24443 postinstall_cmds=$lt_postinstall_cmds
24445 # Command to use after uninstallation of a shared archive.
24446 postuninstall_cmds=$lt_postuninstall_cmds
24448 # Commands used to finish a libtool library installation in a directory.
24449 finish_cmds=$lt_finish_cmds
24451 # As "finish_cmds", except a single script fragment to be evaled but
24452 # not shown.
24453 finish_eval=$lt_finish_eval
24455 # Whether we should hardcode library paths into libraries.
24456 hardcode_into_libs=$hardcode_into_libs
24458 # Compile-time system search path for libraries.
24459 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24461 # Detected run-time system search path for libraries.
24462 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
24464 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
24465 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
24467 # Whether dlopen is supported.
24468 dlopen_support=$enable_dlopen
24470 # Whether dlopen of programs is supported.
24471 dlopen_self=$enable_dlopen_self
24473 # Whether dlopen of statically linked programs is supported.
24474 dlopen_self_static=$enable_dlopen_self_static
24476 # Commands to strip libraries.
24477 old_striplib=$lt_old_striplib
24478 striplib=$lt_striplib
24481 # The linker used to build libraries.
24482 LD=$lt_LD
24484 # How to create reloadable object files.
24485 reload_flag=$lt_reload_flag
24486 reload_cmds=$lt_reload_cmds
24488 # Commands used to build an old-style archive.
24489 old_archive_cmds=$lt_old_archive_cmds
24491 # A language specific compiler.
24492 CC=$lt_compiler
24494 # Is the compiler the GNU compiler?
24495 with_gcc=$GCC
24497 # Compiler flag to turn off builtin functions.
24498 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
24500 # Additional compiler flags for building library objects.
24501 pic_flag=$lt_lt_prog_compiler_pic
24503 # How to pass a linker flag through the compiler.
24504 wl=$lt_lt_prog_compiler_wl
24506 # Compiler flag to prevent dynamic linking.
24507 link_static_flag=$lt_lt_prog_compiler_static
24509 # Does compiler simultaneously support -c and -o options?
24510 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
24512 # Whether or not to add -lc for building shared libraries.
24513 build_libtool_need_lc=$archive_cmds_need_lc
24515 # Whether or not to disallow shared libs when runtime libs are static.
24516 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
24518 # Compiler flag to allow reflexive dlopens.
24519 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
24521 # Compiler flag to generate shared objects directly from archives.
24522 whole_archive_flag_spec=$lt_whole_archive_flag_spec
24524 # Whether the compiler copes with passing no objects directly.
24525 compiler_needs_object=$lt_compiler_needs_object
24527 # Create an old-style archive from a shared archive.
24528 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
24530 # Create a temporary old-style archive to link instead of a shared archive.
24531 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
24533 # Commands used to build a shared archive.
24534 archive_cmds=$lt_archive_cmds
24535 archive_expsym_cmds=$lt_archive_expsym_cmds
24537 # Commands used to build a loadable module if different from building
24538 # a shared archive.
24539 module_cmds=$lt_module_cmds
24540 module_expsym_cmds=$lt_module_expsym_cmds
24542 # Whether we are building with GNU ld or not.
24543 with_gnu_ld=$lt_with_gnu_ld
24545 # Flag that allows shared libraries with undefined symbols to be built.
24546 allow_undefined_flag=$lt_allow_undefined_flag
24548 # Flag that enforces no undefined symbols.
24549 no_undefined_flag=$lt_no_undefined_flag
24551 # Flag to hardcode \$libdir into a binary during linking.
24552 # This must work even if \$libdir does not exist
24553 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
24555 # Whether we need a single "-rpath" flag with a separated argument.
24556 hardcode_libdir_separator=$lt_hardcode_libdir_separator
24558 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
24559 # DIR into the resulting binary.
24560 hardcode_direct=$hardcode_direct
24562 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
24563 # DIR into the resulting binary and the resulting library dependency is
24564 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
24565 # library is relocated.
24566 hardcode_direct_absolute=$hardcode_direct_absolute
24568 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24569 # into the resulting binary.
24570 hardcode_minus_L=$hardcode_minus_L
24572 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24573 # into the resulting binary.
24574 hardcode_shlibpath_var=$hardcode_shlibpath_var
24576 # Set to "yes" if building a shared library automatically hardcodes DIR
24577 # into the library and all subsequent libraries and executables linked
24578 # against it.
24579 hardcode_automatic=$hardcode_automatic
24581 # Set to yes if linker adds runtime paths of dependent libraries
24582 # to runtime path list.
24583 inherit_rpath=$inherit_rpath
24585 # Whether libtool must link a program against all its dependency libraries.
24586 link_all_deplibs=$link_all_deplibs
24588 # Set to "yes" if exported symbols are required.
24589 always_export_symbols=$always_export_symbols
24591 # The commands to list exported symbols.
24592 export_symbols_cmds=$lt_export_symbols_cmds
24594 # Symbols that should not be listed in the preloaded symbols.
24595 exclude_expsyms=$lt_exclude_expsyms
24597 # Symbols that must always be exported.
24598 include_expsyms=$lt_include_expsyms
24600 # Commands necessary for linking programs (against libraries) with templates.
24601 prelink_cmds=$lt_prelink_cmds
24603 # Commands necessary for finishing linking programs.
24604 postlink_cmds=$lt_postlink_cmds
24606 # Specify filename containing input files.
24607 file_list_spec=$lt_file_list_spec
24609 # How to hardcode a shared library path into an executable.
24610 hardcode_action=$hardcode_action
24612 # ### END LIBTOOL CONFIG
24614 _LT_EOF
24616 cat <<'_LT_EOF' >> "$cfgfile"
24618 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
24620 # func_munge_path_list VARIABLE PATH
24621 # -----------------------------------
24622 # VARIABLE is name of variable containing _space_ separated list of
24623 # directories to be munged by the contents of PATH, which is string
24624 # having a format:
24625 # "DIR[:DIR]:"
24626 # string "DIR[ DIR]" will be prepended to VARIABLE
24627 # ":DIR[:DIR]"
24628 # string "DIR[ DIR]" will be appended to VARIABLE
24629 # "DIRP[:DIRP]::[DIRA:]DIRA"
24630 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
24631 # "DIRA[ DIRA]" will be appended to VARIABLE
24632 # "DIR[:DIR]"
24633 # VARIABLE will be replaced by "DIR[ DIR]"
24634 func_munge_path_list ()
24636 case x$2 in
24640 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
24642 x:*)
24643 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
24645 *::*)
24646 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
24647 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
24650 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
24652 esac
24656 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
24657 func_cc_basename ()
24659 for cc_temp in $*""; do
24660 case $cc_temp in
24661 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24662 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24663 \-*) ;;
24664 *) break;;
24665 esac
24666 done
24667 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
24671 # ### END FUNCTIONS SHARED WITH CONFIGURE
24673 _LT_EOF
24675 case $host_os in
24676 aix3*)
24677 cat <<\_LT_EOF >> "$cfgfile"
24678 # AIX sometimes has problems with the GCC collect2 program. For some
24679 # reason, if we set the COLLECT_NAMES environment variable, the problems
24680 # vanish in a puff of smoke.
24681 if test set != "${COLLECT_NAMES+set}"; then
24682 COLLECT_NAMES=
24683 export COLLECT_NAMES
24685 _LT_EOF
24687 esac
24690 ltmain=$ac_aux_dir/ltmain.sh
24693 # We use sed instead of cat because bash on DJGPP gets confused if
24694 # if finds mixed CR/LF and LF-only lines. Since sed operates in
24695 # text mode, it properly converts lines to CR/LF. This bash problem
24696 # is reportedly fixed, but why not run on old versions too?
24697 sed '$q' "$ltmain" >> "$cfgfile" \
24698 || (rm -f "$cfgfile"; exit 1)
24700 mv -f "$cfgfile" "$ofile" ||
24701 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
24702 chmod +x "$ofile"
24705 "po-directories":C)
24706 for ac_file in $CONFIG_FILES; do
24707 # Support "outfile[:infile[:infile...]]"
24708 case "$ac_file" in
24709 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24710 esac
24711 # PO directories have a Makefile.in generated from Makefile.in.in.
24712 case "$ac_file" in */Makefile.in)
24713 # Adjust a relative srcdir.
24714 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
24715 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
24716 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
24717 # In autoconf-2.13 it is called $ac_given_srcdir.
24718 # In autoconf-2.50 it is called $srcdir.
24719 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
24720 case "$ac_given_srcdir" in
24721 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
24722 /*) top_srcdir="$ac_given_srcdir" ;;
24723 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
24724 esac
24725 # Treat a directory as a PO directory if and only if it has a
24726 # POTFILES.in file. This allows packages to have multiple PO
24727 # directories under different names or in different locations.
24728 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
24729 rm -f "$ac_dir/POTFILES"
24730 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
24731 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
24732 POMAKEFILEDEPS="POTFILES.in"
24733 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
24734 # on $ac_dir but don't depend on user-specified configuration
24735 # parameters.
24736 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
24737 # The LINGUAS file contains the set of available languages.
24738 if test -n "$OBSOLETE_ALL_LINGUAS"; then
24739 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
24741 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
24742 # Hide the ALL_LINGUAS assigment from automake < 1.5.
24743 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
24744 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
24745 else
24746 # The set of available languages was given in configure.in.
24747 # Hide the ALL_LINGUAS assigment from automake < 1.5.
24748 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
24750 # Compute POFILES
24751 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
24752 # Compute UPDATEPOFILES
24753 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
24754 # Compute DUMMYPOFILES
24755 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
24756 # Compute GMOFILES
24757 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
24758 case "$ac_given_srcdir" in
24759 .) srcdirpre= ;;
24760 *) srcdirpre='$(srcdir)/' ;;
24761 esac
24762 POFILES=
24763 UPDATEPOFILES=
24764 DUMMYPOFILES=
24765 GMOFILES=
24766 for lang in $ALL_LINGUAS; do
24767 POFILES="$POFILES $srcdirpre$lang.po"
24768 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
24769 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
24770 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
24771 done
24772 # CATALOGS depends on both $ac_dir and the user's LINGUAS
24773 # environment variable.
24774 INST_LINGUAS=
24775 if test -n "$ALL_LINGUAS"; then
24776 for presentlang in $ALL_LINGUAS; do
24777 useit=no
24778 if test "%UNSET%" != "$LINGUAS"; then
24779 desiredlanguages="$LINGUAS"
24780 else
24781 desiredlanguages="$ALL_LINGUAS"
24783 for desiredlang in $desiredlanguages; do
24784 # Use the presentlang catalog if desiredlang is
24785 # a. equal to presentlang, or
24786 # b. a variant of presentlang (because in this case,
24787 # presentlang can be used as a fallback for messages
24788 # which are not translated in the desiredlang catalog).
24789 case "$desiredlang" in
24790 "$presentlang"*) useit=yes;;
24791 esac
24792 done
24793 if test $useit = yes; then
24794 INST_LINGUAS="$INST_LINGUAS $presentlang"
24796 done
24798 CATALOGS=
24799 if test -n "$INST_LINGUAS"; then
24800 for lang in $INST_LINGUAS; do
24801 CATALOGS="$CATALOGS $lang.gmo"
24802 done
24804 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
24805 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"
24806 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
24807 if test -f "$f"; then
24808 case "$f" in
24809 *.orig | *.bak | *~) ;;
24810 *) cat "$f" >> "$ac_dir/Makefile" ;;
24811 esac
24813 done
24816 esac
24817 done ;;
24819 esac
24820 done # for ac_tag
24823 as_fn_exit 0
24824 _ACEOF
24825 ac_clean_files=$ac_clean_files_save
24827 test $ac_write_fail = 0 ||
24828 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
24831 # configure is writing to config.log, and then calls config.status.
24832 # config.status does its own redirection, appending to config.log.
24833 # Unfortunately, on DOS this fails, as config.log is still kept open
24834 # by configure, so config.status won't be able to write to it; its
24835 # output is simply discarded. So we exec the FD to /dev/null,
24836 # effectively closing config.log, so it can be properly (re)opened and
24837 # appended to by config.status. When coming back to configure, we
24838 # need to make the FD available again.
24839 if test "$no_create" != yes; then
24840 ac_cs_success=:
24841 ac_config_status_args=
24842 test "$silent" = yes &&
24843 ac_config_status_args="$ac_config_status_args --quiet"
24844 exec 5>/dev/null
24845 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24846 exec 5>>config.log
24847 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24848 # would make configure fail if this is the last instruction.
24849 $ac_cs_success || as_fn_exit 1
24851 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24853 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}