* Experimental: Alpine can pass an HTML message to an external web browser, by...
[alpine.git] / configure
blobefc370d11c583b9105277562d7cfbb6e4a511766
1 #! /bin/sh
2 # From configure.ac Rev:29 by chappa@washington.edu.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.69 for alpine 2.22.
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.22'
595 PACKAGE_STRING='alpine 2.22'
596 PACKAGE_BUGREPORT='chappa@washington.edu'
597 PACKAGE_URL=''
599 ac_unique_file="include/system.h"
600 # Factoring default headers for most tests.
601 ac_includes_default="\
602 #include <stdio.h>
603 #ifdef HAVE_SYS_TYPES_H
604 # include <sys/types.h>
605 #endif
606 #ifdef HAVE_SYS_STAT_H
607 # include <sys/stat.h>
608 #endif
609 #ifdef STDC_HEADERS
610 # include <stdlib.h>
611 # include <stddef.h>
612 #else
613 # ifdef HAVE_STDLIB_H
614 # include <stdlib.h>
615 # endif
616 #endif
617 #ifdef HAVE_STRING_H
618 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619 # include <memory.h>
620 # endif
621 # include <string.h>
622 #endif
623 #ifdef HAVE_STRINGS_H
624 # include <strings.h>
625 #endif
626 #ifdef HAVE_INTTYPES_H
627 # include <inttypes.h>
628 #endif
629 #ifdef HAVE_STDINT_H
630 # include <stdint.h>
631 #endif
632 #ifdef HAVE_UNISTD_H
633 # include <unistd.h>
634 #endif"
636 gt_needs=
637 ac_subst_vars='am__EXEEXT_FALSE
638 am__EXEEXT_TRUE
639 LTLIBOBJS
640 LIBOBJS
641 AM_LDFLAGS
642 AM_CFLAGS
643 WEB_PUBCOOKIE_LINK
644 WEB_PUBCOOKIE_LIB
645 WEB_PUBCOOKIE_BUILD
646 WEB_BINDIR
647 WEB_BUILD
648 REGEX_BUILD
649 C_CLIENT_SPECIALS
650 C_CLIENT_AUTHS
651 C_CLIENT_GCCOPTLEVEL
652 C_CLIENT_LDFLAGS
653 C_CLIENT_CFLAGS
654 C_CLIENT_WITH_IPV6
655 C_CLIENT_TARGET
656 PTHREAD_CFLAGS
657 PTHREAD_LIBS
658 PTHREAD_CC
659 acx_pthread_config
660 C_CLIENT_BUNDLED
661 alpine_interactive_spellcheck
662 ISPELLPROG
663 alpine_simple_spellcheck
664 SPELLPROG
665 PWPROG
666 NPA_PROG
667 SENDMAIL
668 ALPINE_HOSTSTAMP
669 ALPINE_DATESTAMP
670 POSUB
671 LTLIBINTL
672 LIBINTL
673 INTLLIBS
674 LTLIBICONV
675 LIBICONV
676 INTL_MACOSX_LIBS
677 MSGMERGE
678 XGETTEXT_015
679 XGETTEXT
680 GMSGFMT_015
681 MSGFMT_015
682 GMSGFMT
683 MSGFMT
684 USE_NLS
685 MAKE
690 LIBTOOL_DEPS
691 LT_SYS_LIBRARY_PATH
692 OTOOL64
693 OTOOL
694 LIPO
695 NMEDIT
696 DSYMUTIL
697 MANIFEST_TOOL
698 RANLIB
699 ac_ct_AR
701 DLLTOOL
702 OBJDUMP
704 ac_ct_DUMPBIN
705 DUMPBIN
707 FGREP
708 EGREP
709 GREP
711 LIBTOOL
712 LN_S
713 LDFLAGS_FOR_BUILD
714 CPPFLAGS_FOR_BUILD
715 CFLAGS_FOR_BUILD
716 BUILD_OBJEXT
717 BUILD_EXEEXT
718 CPP_FOR_BUILD
719 ac_ct_CC_FOR_BUILD
720 CC_FOR_BUILD
722 am__fastdepCC_FALSE
723 am__fastdepCC_TRUE
724 CCDEPMODE
725 am__nodep
726 AMDEPBACKSLASH
727 AMDEP_FALSE
728 AMDEP_TRUE
729 am__quote
730 am__include
731 DEPDIR
732 OBJEXT
733 EXEEXT
734 ac_ct_CC
735 CPPFLAGS
736 LDFLAGS
737 CFLAGS
739 host_os
740 host_vendor
741 host_cpu
742 host
743 build_os
744 build_vendor
745 build_cpu
746 build
747 MAINT
748 MAINTAINER_MODE_FALSE
749 MAINTAINER_MODE_TRUE
750 AM_BACKSLASH
751 AM_DEFAULT_VERBOSITY
752 AM_DEFAULT_V
753 AM_V
754 am__untar
755 am__tar
756 AMTAR
757 am__leading_dot
758 SET_MAKE
760 mkdir_p
761 MKDIR_P
762 INSTALL_STRIP_PROGRAM
763 STRIP
764 install_sh
765 MAKEINFO
766 AUTOHEADER
767 AUTOMAKE
768 AUTOCONF
769 ACLOCAL
770 VERSION
771 PACKAGE
772 CYGPATH_W
773 am__isrc
774 INSTALL_DATA
775 INSTALL_SCRIPT
776 INSTALL_PROGRAM
777 target_alias
778 host_alias
779 build_alias
780 LIBS
781 ECHO_T
782 ECHO_N
783 ECHO_C
784 DEFS
785 mandir
786 localedir
787 libdir
788 psdir
789 pdfdir
790 dvidir
791 htmldir
792 infodir
793 docdir
794 oldincludedir
795 includedir
796 localstatedir
797 sharedstatedir
798 sysconfdir
799 datadir
800 datarootdir
801 libexecdir
802 sbindir
803 bindir
804 program_transform_name
805 prefix
806 exec_prefix
807 PACKAGE_URL
808 PACKAGE_BUGREPORT
809 PACKAGE_STRING
810 PACKAGE_VERSION
811 PACKAGE_TARNAME
812 PACKAGE_NAME
813 PATH_SEPARATOR
814 SHELL'
815 ac_subst_files=''
816 ac_user_opts='
817 enable_option_checking
818 enable_silent_rules
819 enable_maintainer_mode
820 enable_dependency_tracking
821 enable_shared
822 enable_static
823 with_pic
824 enable_fast_install
825 with_aix_soname
826 with_gnu_ld
827 with_sysroot
828 enable_libtool_lock
829 enable_nls
830 enable_rpath
831 with_libiconv_prefix
832 with_libintl_prefix
833 enable_dmalloc
834 with_dmalloc_dir
835 with_date_stamp
836 with_host_stamp
837 with_localedir
838 enable_osx_universal_binaries
839 with_include_path
840 with_lib_path
841 with_pubcookie
842 with_web_bin
843 enable_debug
844 enable_optimization
845 enable_mouse
846 enable_quotas
847 enable_from_changing
848 enable_background_post
849 enable_keyboard_lock
850 enable_from_encoding
851 with_smtp_msa
852 with_smtp_msa_flags
853 with_npa
854 with_npa_flags
855 with_password_prog
856 with_simple_spellcheck
857 with_interactive_spellcheck
858 with_system_pinerc
859 with_system_fixed_pinerc
860 with_local_support_info
861 with_mailcheck_interval
862 with_checkpoint_interval
863 with_checkpoint_frequency
864 with_display_rows
865 with_display_columns
866 with_max_display_rows
867 with_max_display_columns
868 with_fill_column
869 with_max_fill_column
870 with_debug_level
871 with_debug_files
872 with_debug_file
873 with_forwarded_keyword
874 with_display_overlap
875 with_display_margin
876 with_default_fcc
877 with_default_save_folder
878 with_default_legacy_postponed_folder
879 with_default_postponed_folder
880 with_default_trash_folder
881 with_default_interrupted_mail
882 with_default_dead_letter_folder
883 with_default_mail_directory
884 with_default_inbox_name
885 with_default_signature_file
886 with_default_elm_style_save
887 with_default_header_in_reply
888 with_default_old_style_reply
889 with_default_use_only_domain_name
890 with_default_save_by_sender
891 with_default_sort_key
892 with_default_addressbook_sort_rule
893 with_default_folder_sort_rule
894 with_default_saved_message_name_rule
895 with_default_fcc_rule
896 with_default_standard_printer
897 with_default_ansi_printer
898 with_default_addressbook
899 with_default_local_fullname
900 with_default_local_address
901 with_default_keyboard_lock_count
902 with_default_remote_addressbook_history
903 with_html_messages_directory
904 with_smime_public_cert_directory
905 with_smime_private_key_directory
906 with_smime_cacert_directory
907 with_default_printer
908 with_passfile
909 with_local_password_cache
910 with_local_password_cache_method
911 with_default_sshpath
912 with_default_sshcmd
913 with_ssl
914 with_ssl_dir
915 with_ssl_certs_dir
916 with_ssl_include_dir
917 with_ssl_lib_dir
918 with_encryption_minimum_version
919 with_encryption_maximum_version
920 with_encryption_range
921 with_krb5
922 with_krb5_dir
923 with_krb5_include_dir
924 with_krb5_lib_dir
925 with_ldap
926 with_ldap_dir
927 with_ldap_include_dir
928 with_ldap_lib_dir
929 with_smime
930 with_tcl
931 with_tcl_lib_dir
932 with_tcl_lib
933 with_tcl_include
934 with_supplied_regex
935 with_pthread
936 with_system_mail_directory
937 with_c_client_target
938 with_bundled_tools
939 with_ipv6
940 with_ntlm
942 ac_precious_vars='build_alias
943 host_alias
944 target_alias
946 CFLAGS
947 LDFLAGS
948 LIBS
949 CPPFLAGS
951 LT_SYS_LIBRARY_PATH'
954 # Initialize some variables set by options.
955 ac_init_help=
956 ac_init_version=false
957 ac_unrecognized_opts=
958 ac_unrecognized_sep=
959 # The variables have the same names as the options, with
960 # dashes changed to underlines.
961 cache_file=/dev/null
962 exec_prefix=NONE
963 no_create=
964 no_recursion=
965 prefix=NONE
966 program_prefix=NONE
967 program_suffix=NONE
968 program_transform_name=s,x,x,
969 silent=
970 site=
971 srcdir=
972 verbose=
973 x_includes=NONE
974 x_libraries=NONE
976 # Installation directory options.
977 # These are left unexpanded so users can "make install exec_prefix=/foo"
978 # and all the variables that are supposed to be based on exec_prefix
979 # by default will actually change.
980 # Use braces instead of parens because sh, perl, etc. also accept them.
981 # (The list follows the same order as the GNU Coding Standards.)
982 bindir='${exec_prefix}/bin'
983 sbindir='${exec_prefix}/sbin'
984 libexecdir='${exec_prefix}/libexec'
985 datarootdir='${prefix}/share'
986 datadir='${datarootdir}'
987 sysconfdir='${prefix}/etc'
988 sharedstatedir='${prefix}/com'
989 localstatedir='${prefix}/var'
990 includedir='${prefix}/include'
991 oldincludedir='/usr/include'
992 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
993 infodir='${datarootdir}/info'
994 htmldir='${docdir}'
995 dvidir='${docdir}'
996 pdfdir='${docdir}'
997 psdir='${docdir}'
998 libdir='${exec_prefix}/lib'
999 localedir='${datarootdir}/locale'
1000 mandir='${datarootdir}/man'
1002 ac_prev=
1003 ac_dashdash=
1004 for ac_option
1006 # If the previous option needs an argument, assign it.
1007 if test -n "$ac_prev"; then
1008 eval $ac_prev=\$ac_option
1009 ac_prev=
1010 continue
1013 case $ac_option in
1014 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1015 *=) ac_optarg= ;;
1016 *) ac_optarg=yes ;;
1017 esac
1019 # Accept the important Cygnus configure options, so we can diagnose typos.
1021 case $ac_dashdash$ac_option in
1023 ac_dashdash=yes ;;
1025 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1026 ac_prev=bindir ;;
1027 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1028 bindir=$ac_optarg ;;
1030 -build | --build | --buil | --bui | --bu)
1031 ac_prev=build_alias ;;
1032 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1033 build_alias=$ac_optarg ;;
1035 -cache-file | --cache-file | --cache-fil | --cache-fi \
1036 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1037 ac_prev=cache_file ;;
1038 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1039 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1040 cache_file=$ac_optarg ;;
1042 --config-cache | -C)
1043 cache_file=config.cache ;;
1045 -datadir | --datadir | --datadi | --datad)
1046 ac_prev=datadir ;;
1047 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1048 datadir=$ac_optarg ;;
1050 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1051 | --dataroo | --dataro | --datar)
1052 ac_prev=datarootdir ;;
1053 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1054 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1055 datarootdir=$ac_optarg ;;
1057 -disable-* | --disable-*)
1058 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1059 # Reject names that are not valid shell variable names.
1060 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1061 as_fn_error $? "invalid feature name: $ac_useropt"
1062 ac_useropt_orig=$ac_useropt
1063 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1064 case $ac_user_opts in
1066 "enable_$ac_useropt"
1067 "*) ;;
1068 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1069 ac_unrecognized_sep=', ';;
1070 esac
1071 eval enable_$ac_useropt=no ;;
1073 -docdir | --docdir | --docdi | --doc | --do)
1074 ac_prev=docdir ;;
1075 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1076 docdir=$ac_optarg ;;
1078 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1079 ac_prev=dvidir ;;
1080 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1081 dvidir=$ac_optarg ;;
1083 -enable-* | --enable-*)
1084 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1085 # Reject names that are not valid shell variable names.
1086 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1087 as_fn_error $? "invalid feature name: $ac_useropt"
1088 ac_useropt_orig=$ac_useropt
1089 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1090 case $ac_user_opts in
1092 "enable_$ac_useropt"
1093 "*) ;;
1094 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1095 ac_unrecognized_sep=', ';;
1096 esac
1097 eval enable_$ac_useropt=\$ac_optarg ;;
1099 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1100 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1101 | --exec | --exe | --ex)
1102 ac_prev=exec_prefix ;;
1103 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1104 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1105 | --exec=* | --exe=* | --ex=*)
1106 exec_prefix=$ac_optarg ;;
1108 -gas | --gas | --ga | --g)
1109 # Obsolete; use --with-gas.
1110 with_gas=yes ;;
1112 -help | --help | --hel | --he | -h)
1113 ac_init_help=long ;;
1114 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1115 ac_init_help=recursive ;;
1116 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1117 ac_init_help=short ;;
1119 -host | --host | --hos | --ho)
1120 ac_prev=host_alias ;;
1121 -host=* | --host=* | --hos=* | --ho=*)
1122 host_alias=$ac_optarg ;;
1124 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1125 ac_prev=htmldir ;;
1126 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1127 | --ht=*)
1128 htmldir=$ac_optarg ;;
1130 -includedir | --includedir | --includedi | --included | --include \
1131 | --includ | --inclu | --incl | --inc)
1132 ac_prev=includedir ;;
1133 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1134 | --includ=* | --inclu=* | --incl=* | --inc=*)
1135 includedir=$ac_optarg ;;
1137 -infodir | --infodir | --infodi | --infod | --info | --inf)
1138 ac_prev=infodir ;;
1139 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1140 infodir=$ac_optarg ;;
1142 -libdir | --libdir | --libdi | --libd)
1143 ac_prev=libdir ;;
1144 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1145 libdir=$ac_optarg ;;
1147 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1148 | --libexe | --libex | --libe)
1149 ac_prev=libexecdir ;;
1150 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1151 | --libexe=* | --libex=* | --libe=*)
1152 libexecdir=$ac_optarg ;;
1154 -localedir | --localedir | --localedi | --localed | --locale)
1155 ac_prev=localedir ;;
1156 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1157 localedir=$ac_optarg ;;
1159 -localstatedir | --localstatedir | --localstatedi | --localstated \
1160 | --localstate | --localstat | --localsta | --localst | --locals)
1161 ac_prev=localstatedir ;;
1162 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1163 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1164 localstatedir=$ac_optarg ;;
1166 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1167 ac_prev=mandir ;;
1168 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1169 mandir=$ac_optarg ;;
1171 -nfp | --nfp | --nf)
1172 # Obsolete; use --without-fp.
1173 with_fp=no ;;
1175 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1176 | --no-cr | --no-c | -n)
1177 no_create=yes ;;
1179 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1180 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1181 no_recursion=yes ;;
1183 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1184 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1185 | --oldin | --oldi | --old | --ol | --o)
1186 ac_prev=oldincludedir ;;
1187 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1188 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1189 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1190 oldincludedir=$ac_optarg ;;
1192 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1193 ac_prev=prefix ;;
1194 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1195 prefix=$ac_optarg ;;
1197 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1198 | --program-pre | --program-pr | --program-p)
1199 ac_prev=program_prefix ;;
1200 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1201 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1202 program_prefix=$ac_optarg ;;
1204 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1205 | --program-suf | --program-su | --program-s)
1206 ac_prev=program_suffix ;;
1207 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1208 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1209 program_suffix=$ac_optarg ;;
1211 -program-transform-name | --program-transform-name \
1212 | --program-transform-nam | --program-transform-na \
1213 | --program-transform-n | --program-transform- \
1214 | --program-transform | --program-transfor \
1215 | --program-transfo | --program-transf \
1216 | --program-trans | --program-tran \
1217 | --progr-tra | --program-tr | --program-t)
1218 ac_prev=program_transform_name ;;
1219 -program-transform-name=* | --program-transform-name=* \
1220 | --program-transform-nam=* | --program-transform-na=* \
1221 | --program-transform-n=* | --program-transform-=* \
1222 | --program-transform=* | --program-transfor=* \
1223 | --program-transfo=* | --program-transf=* \
1224 | --program-trans=* | --program-tran=* \
1225 | --progr-tra=* | --program-tr=* | --program-t=*)
1226 program_transform_name=$ac_optarg ;;
1228 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1229 ac_prev=pdfdir ;;
1230 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1231 pdfdir=$ac_optarg ;;
1233 -psdir | --psdir | --psdi | --psd | --ps)
1234 ac_prev=psdir ;;
1235 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1236 psdir=$ac_optarg ;;
1238 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1239 | -silent | --silent | --silen | --sile | --sil)
1240 silent=yes ;;
1242 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1243 ac_prev=sbindir ;;
1244 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1245 | --sbi=* | --sb=*)
1246 sbindir=$ac_optarg ;;
1248 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1249 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1250 | --sharedst | --shareds | --shared | --share | --shar \
1251 | --sha | --sh)
1252 ac_prev=sharedstatedir ;;
1253 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1254 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1255 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1256 | --sha=* | --sh=*)
1257 sharedstatedir=$ac_optarg ;;
1259 -site | --site | --sit)
1260 ac_prev=site ;;
1261 -site=* | --site=* | --sit=*)
1262 site=$ac_optarg ;;
1264 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1265 ac_prev=srcdir ;;
1266 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1267 srcdir=$ac_optarg ;;
1269 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1270 | --syscon | --sysco | --sysc | --sys | --sy)
1271 ac_prev=sysconfdir ;;
1272 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1273 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1274 sysconfdir=$ac_optarg ;;
1276 -target | --target | --targe | --targ | --tar | --ta | --t)
1277 ac_prev=target_alias ;;
1278 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1279 target_alias=$ac_optarg ;;
1281 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1282 verbose=yes ;;
1284 -version | --version | --versio | --versi | --vers | -V)
1285 ac_init_version=: ;;
1287 -with-* | --with-*)
1288 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1289 # Reject names that are not valid shell variable names.
1290 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1291 as_fn_error $? "invalid package name: $ac_useropt"
1292 ac_useropt_orig=$ac_useropt
1293 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1294 case $ac_user_opts in
1296 "with_$ac_useropt"
1297 "*) ;;
1298 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1299 ac_unrecognized_sep=', ';;
1300 esac
1301 eval with_$ac_useropt=\$ac_optarg ;;
1303 -without-* | --without-*)
1304 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1305 # Reject names that are not valid shell variable names.
1306 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1307 as_fn_error $? "invalid package name: $ac_useropt"
1308 ac_useropt_orig=$ac_useropt
1309 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1310 case $ac_user_opts in
1312 "with_$ac_useropt"
1313 "*) ;;
1314 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1315 ac_unrecognized_sep=', ';;
1316 esac
1317 eval with_$ac_useropt=no ;;
1319 --x)
1320 # Obsolete; use --with-x.
1321 with_x=yes ;;
1323 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1324 | --x-incl | --x-inc | --x-in | --x-i)
1325 ac_prev=x_includes ;;
1326 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1327 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1328 x_includes=$ac_optarg ;;
1330 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1331 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1332 ac_prev=x_libraries ;;
1333 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1334 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1335 x_libraries=$ac_optarg ;;
1337 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1338 Try \`$0 --help' for more information"
1341 *=*)
1342 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1343 # Reject names that are not valid shell variable names.
1344 case $ac_envvar in #(
1345 '' | [0-9]* | *[!_$as_cr_alnum]* )
1346 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1347 esac
1348 eval $ac_envvar=\$ac_optarg
1349 export $ac_envvar ;;
1352 # FIXME: should be removed in autoconf 3.0.
1353 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1354 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1355 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1356 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1359 esac
1360 done
1362 if test -n "$ac_prev"; then
1363 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1364 as_fn_error $? "missing argument to $ac_option"
1367 if test -n "$ac_unrecognized_opts"; then
1368 case $enable_option_checking in
1369 no) ;;
1370 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1371 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1372 esac
1375 # Check all directory arguments for consistency.
1376 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1377 datadir sysconfdir sharedstatedir localstatedir includedir \
1378 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1379 libdir localedir mandir
1381 eval ac_val=\$$ac_var
1382 # Remove trailing slashes.
1383 case $ac_val in
1384 */ )
1385 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1386 eval $ac_var=\$ac_val;;
1387 esac
1388 # Be sure to have absolute directory names.
1389 case $ac_val in
1390 [\\/$]* | ?:[\\/]* ) continue;;
1391 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1392 esac
1393 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1394 done
1396 # There might be people who depend on the old broken behavior: `$host'
1397 # used to hold the argument of --host etc.
1398 # FIXME: To remove some day.
1399 build=$build_alias
1400 host=$host_alias
1401 target=$target_alias
1403 # FIXME: To remove some day.
1404 if test "x$host_alias" != x; then
1405 if test "x$build_alias" = x; then
1406 cross_compiling=maybe
1407 elif test "x$build_alias" != "x$host_alias"; then
1408 cross_compiling=yes
1412 ac_tool_prefix=
1413 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1415 test "$silent" = yes && exec 6>/dev/null
1418 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1419 ac_ls_di=`ls -di .` &&
1420 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1421 as_fn_error $? "working directory cannot be determined"
1422 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1423 as_fn_error $? "pwd does not report name of working directory"
1426 # Find the source files, if location was not specified.
1427 if test -z "$srcdir"; then
1428 ac_srcdir_defaulted=yes
1429 # Try the directory containing this script, then the parent directory.
1430 ac_confdir=`$as_dirname -- "$as_myself" ||
1431 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1432 X"$as_myself" : 'X\(//\)[^/]' \| \
1433 X"$as_myself" : 'X\(//\)$' \| \
1434 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1435 $as_echo X"$as_myself" |
1436 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1437 s//\1/
1440 /^X\(\/\/\)[^/].*/{
1441 s//\1/
1444 /^X\(\/\/\)$/{
1445 s//\1/
1448 /^X\(\/\).*/{
1449 s//\1/
1452 s/.*/./; q'`
1453 srcdir=$ac_confdir
1454 if test ! -r "$srcdir/$ac_unique_file"; then
1455 srcdir=..
1457 else
1458 ac_srcdir_defaulted=no
1460 if test ! -r "$srcdir/$ac_unique_file"; then
1461 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1462 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1464 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1465 ac_abs_confdir=`(
1466 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1467 pwd)`
1468 # When building in place, set srcdir=.
1469 if test "$ac_abs_confdir" = "$ac_pwd"; then
1470 srcdir=.
1472 # Remove unnecessary trailing slashes from srcdir.
1473 # Double slashes in file names in object file debugging info
1474 # mess up M-x gdb in Emacs.
1475 case $srcdir in
1476 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1477 esac
1478 for ac_var in $ac_precious_vars; do
1479 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1480 eval ac_env_${ac_var}_value=\$${ac_var}
1481 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1482 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1483 done
1486 # Report the --help message.
1488 if test "$ac_init_help" = "long"; then
1489 # Omit some internal or obsolete options to make the list less imposing.
1490 # This message is too long to be a string in the A/UX 3.1 sh.
1491 cat <<_ACEOF
1492 \`configure' configures alpine 2.22 to adapt to many kinds of systems.
1494 Usage: $0 [OPTION]... [VAR=VALUE]...
1496 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1497 VAR=VALUE. See below for descriptions of some of the useful variables.
1499 Defaults for the options are specified in brackets.
1501 Configuration:
1502 -h, --help display this help and exit
1503 --help=short display options specific to this package
1504 --help=recursive display the short help of all the included packages
1505 -V, --version display version information and exit
1506 -q, --quiet, --silent do not print \`checking ...' messages
1507 --cache-file=FILE cache test results in FILE [disabled]
1508 -C, --config-cache alias for \`--cache-file=config.cache'
1509 -n, --no-create do not create output files
1510 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1512 Installation directories:
1513 --prefix=PREFIX install architecture-independent files in PREFIX
1514 [$ac_default_prefix]
1515 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1516 [PREFIX]
1518 By default, \`make install' will install all the files in
1519 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1520 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1521 for instance \`--prefix=\$HOME'.
1523 For better control, use the options below.
1525 Fine tuning of the installation directories:
1526 --bindir=DIR user executables [EPREFIX/bin]
1527 --sbindir=DIR system admin executables [EPREFIX/sbin]
1528 --libexecdir=DIR program executables [EPREFIX/libexec]
1529 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1530 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1531 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1532 --libdir=DIR object code libraries [EPREFIX/lib]
1533 --includedir=DIR C header files [PREFIX/include]
1534 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1535 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1536 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1537 --infodir=DIR info documentation [DATAROOTDIR/info]
1538 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1539 --mandir=DIR man documentation [DATAROOTDIR/man]
1540 --docdir=DIR documentation root [DATAROOTDIR/doc/alpine]
1541 --htmldir=DIR html documentation [DOCDIR]
1542 --dvidir=DIR dvi documentation [DOCDIR]
1543 --pdfdir=DIR pdf documentation [DOCDIR]
1544 --psdir=DIR ps documentation [DOCDIR]
1545 _ACEOF
1547 cat <<\_ACEOF
1549 Program names:
1550 --program-prefix=PREFIX prepend PREFIX to installed program names
1551 --program-suffix=SUFFIX append SUFFIX to installed program names
1552 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1554 System types:
1555 --build=BUILD configure for building on BUILD [guessed]
1556 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1557 _ACEOF
1560 if test -n "$ac_init_help"; then
1561 case $ac_init_help in
1562 short | recursive ) echo "Configuration of alpine 2.22:";;
1563 esac
1564 cat <<\_ACEOF
1566 Optional Features:
1567 --disable-option-checking ignore unrecognized --enable/--with options
1568 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1569 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1570 --enable-silent-rules less verbose build output (undo: "make V=1")
1571 --disable-silent-rules verbose build output (undo: "make V=0")
1572 --enable-maintainer-mode
1573 enable make rules and dependencies not useful (and
1574 sometimes confusing) to the casual installer
1575 --enable-dependency-tracking
1576 do not reject slow dependency extractors
1577 --disable-dependency-tracking
1578 speeds up one-time build
1579 --enable-shared[=PKGS] build shared libraries [default=yes]
1580 --enable-static[=PKGS] build static libraries [default=yes]
1581 --enable-fast-install[=PKGS]
1582 optimize for fast installation [default=yes]
1583 --disable-libtool-lock avoid locking (might break parallel builds)
1584 --disable-nls do not use Native Language Support
1585 --disable-rpath do not hardcode runtime library paths
1586 --enable-dmalloc Enable dmalloc debugging
1587 --enable-osx-universal-binaries
1588 Produce universal binaries under OS X [[default=no]]
1589 --disable-debug Exclude debug messages from source
1590 --disable-optimization Exclude optimizing compiler flags
1591 --disable-mouse Disable mouse support
1592 --enable-quotas Enable disk quota checking on startup
1593 --disable-from-changing Disallow users changing From addresss
1594 --disable-background-post
1595 Disable background posting
1596 --disable-keyboard-lock Disable keyboard locking
1597 --enable-from-encoding Enable From encoding in sent messages
1599 Optional Packages:
1600 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1601 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1602 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1603 both]
1604 --with-aix-soname=aix|svr4|both
1605 shared library versioning (aka "SONAME") variant to
1606 provide on AIX, [default=aix].
1607 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1608 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1609 compiler's sysroot if not specified).
1610 --with-gnu-ld assume the C compiler uses GNU ld default=no
1611 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1612 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1613 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1614 --without-libintl-prefix don't search for libintl in includedir and libdir
1615 --with-dmalloc-dir=DIR Root of dmalloc lib/include path
1616 --with-date-stamp=DATE Set this as the date this program was built.
1617 Default: output of `date`
1618 --with-host-stamp=HOST Set name of computer for compilation. Default:
1619 output of `hostname`
1620 --with-localedir=DIR Name of gettext locale directory
1621 --with-include-path=PATHS
1622 Colon-separated list of directories used for include
1623 file search
1624 --with-lib-path=PATHS Colon-separated list of directories used for library
1625 search
1626 --with-pubcookie Include support for UW-Pubcookie Web Authentication
1627 --with-web-bin=PATH Directory to hold Web Alpine component binary files
1628 --with-smtp-msa=PATH Local Mail Submission Agent (sendmail)
1629 --with-smtp-msa-flags=FLAGS
1630 MSA flags for SMTP on stdin/stdout (-bs -odb -oem)
1631 --with-npa=PATH Posting agent when no nntp-servers defined (inews)
1632 --with-npa-flags=FLAGS Flags to allow posting via local agent (-h)
1633 --with-password-prog=PATH
1634 Password change program (/bin/passwd)
1635 --with-simple-spellcheck=PROG
1636 Spellcheck program reads stdin, emits misspellings
1637 on stdout
1638 --with-interactive-spellcheck=PROG
1639 Interactive, filewise spell checker
1640 --with-system-pinerc=VALUE
1641 System pinerc (/usr/local/lib/pine.conf)
1642 --with-system-fixed-pinerc=VALUE
1643 System fixed pinerc (/usr/local/lib/pine.conf.fixed)
1644 --with-local-support-info=VALUE
1645 Local Support Info File (/usr/local/lib/pine.info)
1646 --with-mailcheck-interval=VALUE
1647 Specify default mail-check-interval (150)
1648 --with-checkpoint-interval=VALUE
1649 Specify default checkpoint-interval (420)
1650 --with-checkpoint-frequency=VALUE
1651 State change count before checkpoint (12)
1652 --with-display-rows=VALUE
1653 Initial rows on display (24)
1654 --with-display-columns=VALUE
1655 Initial columns on display (80)
1656 --with-max-display-rows=VALUE
1657 Maximum display rows (200)
1658 --with-max-display-columns=VALUE
1659 Maximum display columns (500)
1660 --with-fill-column=VALUE
1661 Default fill column (74)
1662 --with-max_fill-column=VALUE
1663 Maximum fill column (80)
1664 --with-debug-level=VALUE
1665 Specify default debug verbosity level (2)
1666 --with-debug-files=VALUE
1667 Specify number of debug files (4)
1668 --with-debug-file=VALUE Specify debug file name (.pine-debug)
1669 --with-forwarded-keyword=VALUE
1670 IMAP (c-client) keyword to store forwarded status
1671 ("\$Forwarded")
1672 --with-display-overlap=VALUE
1673 Lines preserved while paging (2)
1674 --with-display-margin=VALUE
1675 Lines visible while scrolling (0)
1676 --with-default-fcc=VALUE
1677 Default sent mail folder (sent-mail)
1678 --with-default-save-folder=VALUE
1679 Default save folder (saved-messages)
1680 --with-default-legacy-postponed-folder=VALUE
1681 Pre Pine 3.90 postponed folder (postponed-mail)
1682 --with-default-postponed-folder=VALUE
1683 Default postponed folder (postponed-msgs)
1684 --with-default-trash-folder=VALUE
1685 Default Trash folder for Web Alpine (Trash)
1686 --with-default-interrupted-mail=VALUE
1687 Default folder for interrupted mail
1688 (.pine-interrupted-mail)
1689 --with-default-dead-letter-folder=VALUE
1690 Default dead letter folder (dead.letter)
1691 --with-default-mail-directory=VALUE
1692 Default mail directory (mail)
1693 --with-default-inbox-name=VALUE
1694 Default inbox name (INBOX)
1695 --with-default-signature-file=VALUE
1696 Default signature file (.signature)
1697 --with-default-elm-style-save=VALUE
1698 Default to Elm style save (no)
1699 --with-default-header-in-reply=VALUE
1700 Include header in reply (no)
1701 --with-default-old-style-reply=VALUE
1702 Default to old style reply (no)
1703 --with-default-use-only-domain-name=VALUE
1704 Default to using only the domain name (no)
1705 --with-default-save-by-sender=VALUE
1706 Default to save by sender (no)
1707 --with-default-sort-key=VALUE
1708 Default sort key (arrival)
1709 --with-default-addressbook-sort-rule=VALUE
1710 Default addressbook sort rule
1711 (fullname-with-lists-last)
1712 --with-default-folder-sort-rule=VALUE
1713 Default folder sort rule (alphabetical)
1714 --with-default-saved-message-name-rule=VALUE
1715 Default saved message name rule (default-folder)
1716 --with-default-fcc-rule=VALUE
1717 Default fcc rule (default-fcc)
1718 --with-default-standard-printer=VALUE
1719 Default standard printern (lpr)
1720 --with-default-ansi-printer=VALUE
1721 ANSI printer definition (attached-to-ansi)
1722 --with-default-addressbook=VALUE
1723 Default addressbook name (.addressbook)
1724 --with-default-local-fullname=VALUE
1725 Default local support fullname ("Local Support")
1726 --with-default-local-address=VALUE
1727 Default local support address (postmaster)
1728 --with-default-keyboard-lock-count=VALUE
1729 Default keyboard lock count (1)
1730 --with-default-remote-addressbook-history=VALUE
1731 Default address book history count (3)
1732 --with-html-messages-directory=VALUE
1733 Default Directory to Temporarily Save HTML Messages
1734 (.alpine-html)
1735 --with-smime-public-cert-directory=VALUE
1736 Default Public Cert Directory (.alpine-smime/public)
1737 --with-smime-private-key-directory=VALUE
1738 Default Private Key Directory
1739 (.alpine-smime/private)
1740 --with-smime-cacert-directory=VALUE
1741 Default Cert Authority Directory (.alpine-smime/ca)
1742 --with-default-printer=VALUE
1743 Default printer (ANSI_PRINTER)
1744 --with-passfile=FILENAME
1745 Password cache file (recommended when S/MIME is
1746 enabled and configured)
1747 --without-local-password-cache
1748 Disable OS-specific password cache, if supported
1749 --with-local-password-cache-method
1750 OS-specific credential cache (OSX=APPLEKEYCHAIN,
1751 Windows=WINCRED)
1752 --with-default-sshpath=FILENAME
1753 set default value of ssh command path (defining
1754 should cause ssh to be preferred to rsh)
1755 --with-default-sshcmd=PERCENT_S_STRING
1756 set default value of ssh command string (usually "%s
1757 %s -l %s exec /etc/r%sd")
1758 --without-ssl Disable SSL support (OpenSSL)
1759 --with-ssl-dir=DIR Root of SSL lib/include path
1760 --with-ssl-certs-dir=DIR
1761 Path to SSL certificate directory
1762 --with-ssl-include-dir=DIR
1763 SSL include file path
1764 --with-ssl-lib-dir=DIR SSL library path
1765 --encryption-minimum-version=VERSION
1766 Minimum SSL encryption version. Default: no_min
1767 --encryption-maximum-version=VERSION
1768 Maximum SSL encryption version. Default: no_max
1769 --with-encryption-range=VALUE
1770 Default Encryption Range ($alpine_RANGE )
1771 --without-krb5 Disable Kerberos support
1772 --with-krb5-dir=DIR Root of Kerberos lib/include path
1773 --with-krb5-include-dir=DIR
1774 Kerberos include file path
1775 --with-krb5-lib-dir=DIR Kerberos library path
1776 --without-ldap Disable LDAP query support
1777 --with-ldap-dir=DIR Root of LDAP lib/include path
1778 --with-ldap-include-dir=DIR
1779 Directory containing LDAP include files
1780 --with-ldap-lib-dir=DIR LDAP library path
1781 --without-smime Disable S/MIME
1782 --without-tcl Disable TCL, thus Web Alpine support
1783 --with-tcl-lib-dir=PATH Specific TCL Librar dir, like \"/usr/opt/tcl86/lib\"
1784 --with-tcl-lib=LIBRARY Specific TCL Library, like \"tcl8.6\"
1785 --with-tcl-include=DIR Directory containing TCL include files
1786 --with-supplied-regex Use regex library supplied with alpine
1787 --without-pthread Do NOT test for nor build with POSIX thread support
1788 --with-system-mail-directory=DIR
1789 Directory where local mail is delivered
1790 --with-c-client-target=TARGET
1791 IMAP build target (see imap/Makefile)
1792 --with-bundled-tools Build additional tools (mtest, imapd, etc.) Default:
1793 --with-bundled-tools=no
1794 --without-ipv6 Disable IPv6, primarily to work around resolver
1795 problems
1796 --without-ntlm Disable NTLM client support
1798 Some influential environment variables:
1799 CC C compiler command
1800 CFLAGS C compiler flags
1801 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1802 nonstandard directory <lib dir>
1803 LIBS libraries to pass to the linker, e.g. -l<library>
1804 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1805 you have headers in a nonstandard directory <include dir>
1806 CPP C preprocessor
1807 LT_SYS_LIBRARY_PATH
1808 User-defined run-time library search path.
1810 Use these variables to override the choices made by `configure' or to help
1811 it to find libraries and programs with nonstandard names/locations.
1813 Report bugs to <chappa@washington.edu>.
1814 _ACEOF
1815 ac_status=$?
1818 if test "$ac_init_help" = "recursive"; then
1819 # If there are subdirs, report their specific --help.
1820 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1821 test -d "$ac_dir" ||
1822 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1823 continue
1824 ac_builddir=.
1826 case "$ac_dir" in
1827 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1829 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1830 # A ".." for each directory in $ac_dir_suffix.
1831 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1832 case $ac_top_builddir_sub in
1833 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1834 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1835 esac ;;
1836 esac
1837 ac_abs_top_builddir=$ac_pwd
1838 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1839 # for backward compatibility:
1840 ac_top_builddir=$ac_top_build_prefix
1842 case $srcdir in
1843 .) # We are building in place.
1844 ac_srcdir=.
1845 ac_top_srcdir=$ac_top_builddir_sub
1846 ac_abs_top_srcdir=$ac_pwd ;;
1847 [\\/]* | ?:[\\/]* ) # Absolute name.
1848 ac_srcdir=$srcdir$ac_dir_suffix;
1849 ac_top_srcdir=$srcdir
1850 ac_abs_top_srcdir=$srcdir ;;
1851 *) # Relative name.
1852 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1853 ac_top_srcdir=$ac_top_build_prefix$srcdir
1854 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1855 esac
1856 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1858 cd "$ac_dir" || { ac_status=$?; continue; }
1859 # Check for guested configure.
1860 if test -f "$ac_srcdir/configure.gnu"; then
1861 echo &&
1862 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1863 elif test -f "$ac_srcdir/configure"; then
1864 echo &&
1865 $SHELL "$ac_srcdir/configure" --help=recursive
1866 else
1867 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1868 fi || ac_status=$?
1869 cd "$ac_pwd" || { ac_status=$?; break; }
1870 done
1873 test -n "$ac_init_help" && exit $ac_status
1874 if $ac_init_version; then
1875 cat <<\_ACEOF
1876 alpine configure 2.22
1877 generated by GNU Autoconf 2.69
1879 Copyright (C) 2012 Free Software Foundation, Inc.
1880 This configure script is free software; the Free Software Foundation
1881 gives unlimited permission to copy, distribute and modify it.
1882 _ACEOF
1883 exit
1886 ## ------------------------ ##
1887 ## Autoconf initialization. ##
1888 ## ------------------------ ##
1890 # ac_fn_c_try_compile LINENO
1891 # --------------------------
1892 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1893 ac_fn_c_try_compile ()
1895 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1896 rm -f conftest.$ac_objext
1897 if { { ac_try="$ac_compile"
1898 case "(($ac_try" in
1899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1900 *) ac_try_echo=$ac_try;;
1901 esac
1902 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1903 $as_echo "$ac_try_echo"; } >&5
1904 (eval "$ac_compile") 2>conftest.err
1905 ac_status=$?
1906 if test -s conftest.err; then
1907 grep -v '^ *+' conftest.err >conftest.er1
1908 cat conftest.er1 >&5
1909 mv -f conftest.er1 conftest.err
1911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1912 test $ac_status = 0; } && {
1913 test -z "$ac_c_werror_flag" ||
1914 test ! -s conftest.err
1915 } && test -s conftest.$ac_objext; then :
1916 ac_retval=0
1917 else
1918 $as_echo "$as_me: failed program was:" >&5
1919 sed 's/^/| /' conftest.$ac_ext >&5
1921 ac_retval=1
1923 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1924 as_fn_set_status $ac_retval
1926 } # ac_fn_c_try_compile
1928 # ac_fn_c_try_cpp LINENO
1929 # ----------------------
1930 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1931 ac_fn_c_try_cpp ()
1933 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1934 if { { ac_try="$ac_cpp conftest.$ac_ext"
1935 case "(($ac_try" in
1936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1937 *) ac_try_echo=$ac_try;;
1938 esac
1939 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1940 $as_echo "$ac_try_echo"; } >&5
1941 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1942 ac_status=$?
1943 if test -s conftest.err; then
1944 grep -v '^ *+' conftest.err >conftest.er1
1945 cat conftest.er1 >&5
1946 mv -f conftest.er1 conftest.err
1948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1949 test $ac_status = 0; } > conftest.i && {
1950 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1951 test ! -s conftest.err
1952 }; then :
1953 ac_retval=0
1954 else
1955 $as_echo "$as_me: failed program was:" >&5
1956 sed 's/^/| /' conftest.$ac_ext >&5
1958 ac_retval=1
1960 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1961 as_fn_set_status $ac_retval
1963 } # ac_fn_c_try_cpp
1965 # ac_fn_c_try_link LINENO
1966 # -----------------------
1967 # Try to link conftest.$ac_ext, and return whether this succeeded.
1968 ac_fn_c_try_link ()
1970 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1971 rm -f conftest.$ac_objext conftest$ac_exeext
1972 if { { ac_try="$ac_link"
1973 case "(($ac_try" in
1974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1975 *) ac_try_echo=$ac_try;;
1976 esac
1977 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1978 $as_echo "$ac_try_echo"; } >&5
1979 (eval "$ac_link") 2>conftest.err
1980 ac_status=$?
1981 if test -s conftest.err; then
1982 grep -v '^ *+' conftest.err >conftest.er1
1983 cat conftest.er1 >&5
1984 mv -f conftest.er1 conftest.err
1986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1987 test $ac_status = 0; } && {
1988 test -z "$ac_c_werror_flag" ||
1989 test ! -s conftest.err
1990 } && test -s conftest$ac_exeext && {
1991 test "$cross_compiling" = yes ||
1992 test -x conftest$ac_exeext
1993 }; then :
1994 ac_retval=0
1995 else
1996 $as_echo "$as_me: failed program was:" >&5
1997 sed 's/^/| /' conftest.$ac_ext >&5
1999 ac_retval=1
2001 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2002 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2003 # interfere with the next link command; also delete a directory that is
2004 # left behind by Apple's compiler. We do this before executing the actions.
2005 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2006 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2007 as_fn_set_status $ac_retval
2009 } # ac_fn_c_try_link
2011 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2012 # -------------------------------------------------------
2013 # Tests whether HEADER exists and can be compiled using the include files in
2014 # INCLUDES, setting the cache variable VAR accordingly.
2015 ac_fn_c_check_header_compile ()
2017 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2019 $as_echo_n "checking for $2... " >&6; }
2020 if eval \${$3+:} false; then :
2021 $as_echo_n "(cached) " >&6
2022 else
2023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2024 /* end confdefs.h. */
2026 #include <$2>
2027 _ACEOF
2028 if ac_fn_c_try_compile "$LINENO"; then :
2029 eval "$3=yes"
2030 else
2031 eval "$3=no"
2033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2035 eval ac_res=\$$3
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2037 $as_echo "$ac_res" >&6; }
2038 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2040 } # ac_fn_c_check_header_compile
2042 # ac_fn_c_try_run LINENO
2043 # ----------------------
2044 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2045 # that executables *can* be run.
2046 ac_fn_c_try_run ()
2048 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2049 if { { ac_try="$ac_link"
2050 case "(($ac_try" in
2051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2052 *) ac_try_echo=$ac_try;;
2053 esac
2054 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2055 $as_echo "$ac_try_echo"; } >&5
2056 (eval "$ac_link") 2>&5
2057 ac_status=$?
2058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2059 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2060 { { case "(($ac_try" in
2061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2062 *) ac_try_echo=$ac_try;;
2063 esac
2064 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2065 $as_echo "$ac_try_echo"; } >&5
2066 (eval "$ac_try") 2>&5
2067 ac_status=$?
2068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2069 test $ac_status = 0; }; }; then :
2070 ac_retval=0
2071 else
2072 $as_echo "$as_me: program exited with status $ac_status" >&5
2073 $as_echo "$as_me: failed program was:" >&5
2074 sed 's/^/| /' conftest.$ac_ext >&5
2076 ac_retval=$ac_status
2078 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2079 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2080 as_fn_set_status $ac_retval
2082 } # ac_fn_c_try_run
2084 # ac_fn_c_check_func LINENO FUNC VAR
2085 # ----------------------------------
2086 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2087 ac_fn_c_check_func ()
2089 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2091 $as_echo_n "checking for $2... " >&6; }
2092 if eval \${$3+:} false; then :
2093 $as_echo_n "(cached) " >&6
2094 else
2095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2096 /* end confdefs.h. */
2097 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2098 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2099 #define $2 innocuous_$2
2101 /* System header to define __stub macros and hopefully few prototypes,
2102 which can conflict with char $2 (); below.
2103 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2104 <limits.h> exists even on freestanding compilers. */
2106 #ifdef __STDC__
2107 # include <limits.h>
2108 #else
2109 # include <assert.h>
2110 #endif
2112 #undef $2
2114 /* Override any GCC internal prototype to avoid an error.
2115 Use char because int might match the return type of a GCC
2116 builtin and then its argument prototype would still apply. */
2117 #ifdef __cplusplus
2118 extern "C"
2119 #endif
2120 char $2 ();
2121 /* The GNU C library defines this for functions which it implements
2122 to always fail with ENOSYS. Some functions are actually named
2123 something starting with __ and the normal name is an alias. */
2124 #if defined __stub_$2 || defined __stub___$2
2125 choke me
2126 #endif
2129 main ()
2131 return $2 ();
2133 return 0;
2135 _ACEOF
2136 if ac_fn_c_try_link "$LINENO"; then :
2137 eval "$3=yes"
2138 else
2139 eval "$3=no"
2141 rm -f core conftest.err conftest.$ac_objext \
2142 conftest$ac_exeext conftest.$ac_ext
2144 eval ac_res=\$$3
2145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2146 $as_echo "$ac_res" >&6; }
2147 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2149 } # ac_fn_c_check_func
2151 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2152 # -------------------------------------------------------
2153 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2154 # the include files in INCLUDES and setting the cache variable VAR
2155 # accordingly.
2156 ac_fn_c_check_header_mongrel ()
2158 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2159 if eval \${$3+:} false; then :
2160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2161 $as_echo_n "checking for $2... " >&6; }
2162 if eval \${$3+:} false; then :
2163 $as_echo_n "(cached) " >&6
2165 eval ac_res=\$$3
2166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2167 $as_echo "$ac_res" >&6; }
2168 else
2169 # Is the header compilable?
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2171 $as_echo_n "checking $2 usability... " >&6; }
2172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2173 /* end confdefs.h. */
2175 #include <$2>
2176 _ACEOF
2177 if ac_fn_c_try_compile "$LINENO"; then :
2178 ac_header_compiler=yes
2179 else
2180 ac_header_compiler=no
2182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2184 $as_echo "$ac_header_compiler" >&6; }
2186 # Is the header present?
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2188 $as_echo_n "checking $2 presence... " >&6; }
2189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2190 /* end confdefs.h. */
2191 #include <$2>
2192 _ACEOF
2193 if ac_fn_c_try_cpp "$LINENO"; then :
2194 ac_header_preproc=yes
2195 else
2196 ac_header_preproc=no
2198 rm -f conftest.err conftest.i conftest.$ac_ext
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2200 $as_echo "$ac_header_preproc" >&6; }
2202 # So? What about this header?
2203 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2204 yes:no: )
2205 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2206 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2208 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2210 no:yes:* )
2211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2212 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2214 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2216 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2218 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2220 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2221 ( $as_echo "## ------------------------------------ ##
2222 ## Report this to chappa@washington.edu ##
2223 ## ------------------------------------ ##"
2224 ) | sed "s/^/$as_me: WARNING: /" >&2
2226 esac
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2228 $as_echo_n "checking for $2... " >&6; }
2229 if eval \${$3+:} false; then :
2230 $as_echo_n "(cached) " >&6
2231 else
2232 eval "$3=\$ac_header_compiler"
2234 eval ac_res=\$$3
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2236 $as_echo "$ac_res" >&6; }
2238 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2240 } # ac_fn_c_check_header_mongrel
2242 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2243 # -------------------------------------------
2244 # Tests whether TYPE exists after having included INCLUDES, setting cache
2245 # variable VAR accordingly.
2246 ac_fn_c_check_type ()
2248 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2250 $as_echo_n "checking for $2... " >&6; }
2251 if eval \${$3+:} false; then :
2252 $as_echo_n "(cached) " >&6
2253 else
2254 eval "$3=no"
2255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2256 /* end confdefs.h. */
2259 main ()
2261 if (sizeof ($2))
2262 return 0;
2264 return 0;
2266 _ACEOF
2267 if ac_fn_c_try_compile "$LINENO"; then :
2268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2269 /* end confdefs.h. */
2272 main ()
2274 if (sizeof (($2)))
2275 return 0;
2277 return 0;
2279 _ACEOF
2280 if ac_fn_c_try_compile "$LINENO"; then :
2282 else
2283 eval "$3=yes"
2285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2289 eval ac_res=\$$3
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2291 $as_echo "$ac_res" >&6; }
2292 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2294 } # ac_fn_c_check_type
2296 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2297 # --------------------------------------------
2298 # Tries to find the compile-time value of EXPR in a program that includes
2299 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2300 # computed
2301 ac_fn_c_compute_int ()
2303 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2304 if test "$cross_compiling" = yes; then
2305 # Depending upon the size, compute the lo and hi bounds.
2306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2307 /* end confdefs.h. */
2310 main ()
2312 static int test_array [1 - 2 * !(($2) >= 0)];
2313 test_array [0] = 0;
2314 return test_array [0];
2317 return 0;
2319 _ACEOF
2320 if ac_fn_c_try_compile "$LINENO"; then :
2321 ac_lo=0 ac_mid=0
2322 while :; do
2323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2324 /* end confdefs.h. */
2327 main ()
2329 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2330 test_array [0] = 0;
2331 return test_array [0];
2334 return 0;
2336 _ACEOF
2337 if ac_fn_c_try_compile "$LINENO"; then :
2338 ac_hi=$ac_mid; break
2339 else
2340 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2341 if test $ac_lo -le $ac_mid; then
2342 ac_lo= ac_hi=
2343 break
2345 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2348 done
2349 else
2350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2351 /* end confdefs.h. */
2354 main ()
2356 static int test_array [1 - 2 * !(($2) < 0)];
2357 test_array [0] = 0;
2358 return test_array [0];
2361 return 0;
2363 _ACEOF
2364 if ac_fn_c_try_compile "$LINENO"; then :
2365 ac_hi=-1 ac_mid=-1
2366 while :; do
2367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2368 /* end confdefs.h. */
2371 main ()
2373 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2374 test_array [0] = 0;
2375 return test_array [0];
2378 return 0;
2380 _ACEOF
2381 if ac_fn_c_try_compile "$LINENO"; then :
2382 ac_lo=$ac_mid; break
2383 else
2384 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2385 if test $ac_mid -le $ac_hi; then
2386 ac_lo= ac_hi=
2387 break
2389 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2392 done
2393 else
2394 ac_lo= ac_hi=
2396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2399 # Binary search between lo and hi bounds.
2400 while test "x$ac_lo" != "x$ac_hi"; do
2401 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2403 /* end confdefs.h. */
2406 main ()
2408 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2409 test_array [0] = 0;
2410 return test_array [0];
2413 return 0;
2415 _ACEOF
2416 if ac_fn_c_try_compile "$LINENO"; then :
2417 ac_hi=$ac_mid
2418 else
2419 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2422 done
2423 case $ac_lo in #((
2424 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2425 '') ac_retval=1 ;;
2426 esac
2427 else
2428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2429 /* end confdefs.h. */
2431 static long int longval () { return $2; }
2432 static unsigned long int ulongval () { return $2; }
2433 #include <stdio.h>
2434 #include <stdlib.h>
2436 main ()
2439 FILE *f = fopen ("conftest.val", "w");
2440 if (! f)
2441 return 1;
2442 if (($2) < 0)
2444 long int i = longval ();
2445 if (i != ($2))
2446 return 1;
2447 fprintf (f, "%ld", i);
2449 else
2451 unsigned long int i = ulongval ();
2452 if (i != ($2))
2453 return 1;
2454 fprintf (f, "%lu", i);
2456 /* Do not output a trailing newline, as this causes \r\n confusion
2457 on some platforms. */
2458 return ferror (f) || fclose (f) != 0;
2461 return 0;
2463 _ACEOF
2464 if ac_fn_c_try_run "$LINENO"; then :
2465 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2466 else
2467 ac_retval=1
2469 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2470 conftest.$ac_objext conftest.beam conftest.$ac_ext
2471 rm -f conftest.val
2474 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2475 as_fn_set_status $ac_retval
2477 } # ac_fn_c_compute_int
2478 cat >config.log <<_ACEOF
2479 This file contains any messages produced by compilers while
2480 running configure, to aid debugging if configure makes a mistake.
2482 It was created by alpine $as_me 2.22, which was
2483 generated by GNU Autoconf 2.69. Invocation command line was
2485 $ $0 $@
2487 _ACEOF
2488 exec 5>>config.log
2490 cat <<_ASUNAME
2491 ## --------- ##
2492 ## Platform. ##
2493 ## --------- ##
2495 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2496 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2497 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2498 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2499 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2501 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2502 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2504 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2505 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2506 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2507 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2508 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2509 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2510 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2512 _ASUNAME
2514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2515 for as_dir in $PATH
2517 IFS=$as_save_IFS
2518 test -z "$as_dir" && as_dir=.
2519 $as_echo "PATH: $as_dir"
2520 done
2521 IFS=$as_save_IFS
2523 } >&5
2525 cat >&5 <<_ACEOF
2528 ## ----------- ##
2529 ## Core tests. ##
2530 ## ----------- ##
2532 _ACEOF
2535 # Keep a trace of the command line.
2536 # Strip out --no-create and --no-recursion so they do not pile up.
2537 # Strip out --silent because we don't want to record it for future runs.
2538 # Also quote any args containing shell meta-characters.
2539 # Make two passes to allow for proper duplicate-argument suppression.
2540 ac_configure_args=
2541 ac_configure_args0=
2542 ac_configure_args1=
2543 ac_must_keep_next=false
2544 for ac_pass in 1 2
2546 for ac_arg
2548 case $ac_arg in
2549 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2550 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2551 | -silent | --silent | --silen | --sile | --sil)
2552 continue ;;
2553 *\'*)
2554 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2555 esac
2556 case $ac_pass in
2557 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2559 as_fn_append ac_configure_args1 " '$ac_arg'"
2560 if test $ac_must_keep_next = true; then
2561 ac_must_keep_next=false # Got value, back to normal.
2562 else
2563 case $ac_arg in
2564 *=* | --config-cache | -C | -disable-* | --disable-* \
2565 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2566 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2567 | -with-* | --with-* | -without-* | --without-* | --x)
2568 case "$ac_configure_args0 " in
2569 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2570 esac
2572 -* ) ac_must_keep_next=true ;;
2573 esac
2575 as_fn_append ac_configure_args " '$ac_arg'"
2577 esac
2578 done
2579 done
2580 { ac_configure_args0=; unset ac_configure_args0;}
2581 { ac_configure_args1=; unset ac_configure_args1;}
2583 # When interrupted or exit'd, cleanup temporary files, and complete
2584 # config.log. We remove comments because anyway the quotes in there
2585 # would cause problems or look ugly.
2586 # WARNING: Use '\'' to represent an apostrophe within the trap.
2587 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2588 trap 'exit_status=$?
2589 # Save into config.log some information that might help in debugging.
2591 echo
2593 $as_echo "## ---------------- ##
2594 ## Cache variables. ##
2595 ## ---------------- ##"
2596 echo
2597 # The following way of writing the cache mishandles newlines in values,
2599 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2600 eval ac_val=\$$ac_var
2601 case $ac_val in #(
2602 *${as_nl}*)
2603 case $ac_var in #(
2604 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2605 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2606 esac
2607 case $ac_var in #(
2608 _ | IFS | as_nl) ;; #(
2609 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2610 *) { eval $ac_var=; unset $ac_var;} ;;
2611 esac ;;
2612 esac
2613 done
2614 (set) 2>&1 |
2615 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2616 *${as_nl}ac_space=\ *)
2617 sed -n \
2618 "s/'\''/'\''\\\\'\'''\''/g;
2619 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2620 ;; #(
2622 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2624 esac |
2625 sort
2627 echo
2629 $as_echo "## ----------------- ##
2630 ## Output variables. ##
2631 ## ----------------- ##"
2632 echo
2633 for ac_var in $ac_subst_vars
2635 eval ac_val=\$$ac_var
2636 case $ac_val in
2637 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2638 esac
2639 $as_echo "$ac_var='\''$ac_val'\''"
2640 done | sort
2641 echo
2643 if test -n "$ac_subst_files"; then
2644 $as_echo "## ------------------- ##
2645 ## File substitutions. ##
2646 ## ------------------- ##"
2647 echo
2648 for ac_var in $ac_subst_files
2650 eval ac_val=\$$ac_var
2651 case $ac_val in
2652 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2653 esac
2654 $as_echo "$ac_var='\''$ac_val'\''"
2655 done | sort
2656 echo
2659 if test -s confdefs.h; then
2660 $as_echo "## ----------- ##
2661 ## confdefs.h. ##
2662 ## ----------- ##"
2663 echo
2664 cat confdefs.h
2665 echo
2667 test "$ac_signal" != 0 &&
2668 $as_echo "$as_me: caught signal $ac_signal"
2669 $as_echo "$as_me: exit $exit_status"
2670 } >&5
2671 rm -f core *.core core.conftest.* &&
2672 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2673 exit $exit_status
2675 for ac_signal in 1 2 13 15; do
2676 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2677 done
2678 ac_signal=0
2680 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2681 rm -f -r conftest* confdefs.h
2683 $as_echo "/* confdefs.h */" > confdefs.h
2685 # Predefined preprocessor variables.
2687 cat >>confdefs.h <<_ACEOF
2688 #define PACKAGE_NAME "$PACKAGE_NAME"
2689 _ACEOF
2691 cat >>confdefs.h <<_ACEOF
2692 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2693 _ACEOF
2695 cat >>confdefs.h <<_ACEOF
2696 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2697 _ACEOF
2699 cat >>confdefs.h <<_ACEOF
2700 #define PACKAGE_STRING "$PACKAGE_STRING"
2701 _ACEOF
2703 cat >>confdefs.h <<_ACEOF
2704 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2705 _ACEOF
2707 cat >>confdefs.h <<_ACEOF
2708 #define PACKAGE_URL "$PACKAGE_URL"
2709 _ACEOF
2712 # Let the site file select an alternate cache file if it wants to.
2713 # Prefer an explicitly selected file to automatically selected ones.
2714 ac_site_file1=NONE
2715 ac_site_file2=NONE
2716 if test -n "$CONFIG_SITE"; then
2717 # We do not want a PATH search for config.site.
2718 case $CONFIG_SITE in #((
2719 -*) ac_site_file1=./$CONFIG_SITE;;
2720 */*) ac_site_file1=$CONFIG_SITE;;
2721 *) ac_site_file1=./$CONFIG_SITE;;
2722 esac
2723 elif test "x$prefix" != xNONE; then
2724 ac_site_file1=$prefix/share/config.site
2725 ac_site_file2=$prefix/etc/config.site
2726 else
2727 ac_site_file1=$ac_default_prefix/share/config.site
2728 ac_site_file2=$ac_default_prefix/etc/config.site
2730 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2732 test "x$ac_site_file" = xNONE && continue
2733 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2735 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2736 sed 's/^/| /' "$ac_site_file" >&5
2737 . "$ac_site_file" \
2738 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2739 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2740 as_fn_error $? "failed to load site script $ac_site_file
2741 See \`config.log' for more details" "$LINENO" 5; }
2743 done
2745 if test -r "$cache_file"; then
2746 # Some versions of bash will fail to source /dev/null (special files
2747 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2748 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2750 $as_echo "$as_me: loading cache $cache_file" >&6;}
2751 case $cache_file in
2752 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2753 *) . "./$cache_file";;
2754 esac
2756 else
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2758 $as_echo "$as_me: creating cache $cache_file" >&6;}
2759 >$cache_file
2762 gt_needs="$gt_needs "
2763 # Check that the precious variables saved in the cache have kept the same
2764 # value.
2765 ac_cache_corrupted=false
2766 for ac_var in $ac_precious_vars; do
2767 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2768 eval ac_new_set=\$ac_env_${ac_var}_set
2769 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2770 eval ac_new_val=\$ac_env_${ac_var}_value
2771 case $ac_old_set,$ac_new_set in
2772 set,)
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2774 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2775 ac_cache_corrupted=: ;;
2776 ,set)
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2778 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2779 ac_cache_corrupted=: ;;
2780 ,);;
2782 if test "x$ac_old_val" != "x$ac_new_val"; then
2783 # differences in whitespace do not lead to failure.
2784 ac_old_val_w=`echo x $ac_old_val`
2785 ac_new_val_w=`echo x $ac_new_val`
2786 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2788 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2789 ac_cache_corrupted=:
2790 else
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2792 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2793 eval $ac_var=\$ac_old_val
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2796 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2798 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2799 fi;;
2800 esac
2801 # Pass precious variables to config.status.
2802 if test "$ac_new_set" = set; then
2803 case $ac_new_val in
2804 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2805 *) ac_arg=$ac_var=$ac_new_val ;;
2806 esac
2807 case " $ac_configure_args " in
2808 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2809 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2810 esac
2812 done
2813 if $ac_cache_corrupted; then
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2815 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2817 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2818 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2820 ## -------------------- ##
2821 ## Main body of script. ##
2822 ## -------------------- ##
2824 ac_ext=c
2825 ac_cpp='$CPP $CPPFLAGS'
2826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2833 ac_config_headers="$ac_config_headers include/config.h"
2836 am__api_version='1.15'
2838 ac_aux_dir=
2839 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2840 if test -f "$ac_dir/install-sh"; then
2841 ac_aux_dir=$ac_dir
2842 ac_install_sh="$ac_aux_dir/install-sh -c"
2843 break
2844 elif test -f "$ac_dir/install.sh"; then
2845 ac_aux_dir=$ac_dir
2846 ac_install_sh="$ac_aux_dir/install.sh -c"
2847 break
2848 elif test -f "$ac_dir/shtool"; then
2849 ac_aux_dir=$ac_dir
2850 ac_install_sh="$ac_aux_dir/shtool install -c"
2851 break
2853 done
2854 if test -z "$ac_aux_dir"; then
2855 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2858 # These three variables are undocumented and unsupported,
2859 # and are intended to be withdrawn in a future Autoconf release.
2860 # They can cause serious problems if a builder's source tree is in a directory
2861 # whose full name contains unusual characters.
2862 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2863 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2864 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2867 # Find a good install program. We prefer a C program (faster),
2868 # so one script is as good as another. But avoid the broken or
2869 # incompatible versions:
2870 # SysV /etc/install, /usr/sbin/install
2871 # SunOS /usr/etc/install
2872 # IRIX /sbin/install
2873 # AIX /bin/install
2874 # AmigaOS /C/install, which installs bootblocks on floppy discs
2875 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2876 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2877 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2878 # OS/2's system install, which has a completely different semantic
2879 # ./install, which can be erroneously created by make from ./install.sh.
2880 # Reject install programs that cannot install multiple files.
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2882 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2883 if test -z "$INSTALL"; then
2884 if ${ac_cv_path_install+:} false; then :
2885 $as_echo_n "(cached) " >&6
2886 else
2887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2888 for as_dir in $PATH
2890 IFS=$as_save_IFS
2891 test -z "$as_dir" && as_dir=.
2892 # Account for people who put trailing slashes in PATH elements.
2893 case $as_dir/ in #((
2894 ./ | .// | /[cC]/* | \
2895 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2896 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2897 /usr/ucb/* ) ;;
2899 # OSF1 and SCO ODT 3.0 have their own names for install.
2900 # Don't use installbsd from OSF since it installs stuff as root
2901 # by default.
2902 for ac_prog in ginstall scoinst install; do
2903 for ac_exec_ext in '' $ac_executable_extensions; do
2904 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2905 if test $ac_prog = install &&
2906 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2907 # AIX install. It has an incompatible calling convention.
2909 elif test $ac_prog = install &&
2910 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2911 # program-specific install script used by HP pwplus--don't use.
2913 else
2914 rm -rf conftest.one conftest.two conftest.dir
2915 echo one > conftest.one
2916 echo two > conftest.two
2917 mkdir conftest.dir
2918 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2919 test -s conftest.one && test -s conftest.two &&
2920 test -s conftest.dir/conftest.one &&
2921 test -s conftest.dir/conftest.two
2922 then
2923 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2924 break 3
2928 done
2929 done
2931 esac
2933 done
2934 IFS=$as_save_IFS
2936 rm -rf conftest.one conftest.two conftest.dir
2939 if test "${ac_cv_path_install+set}" = set; then
2940 INSTALL=$ac_cv_path_install
2941 else
2942 # As a last resort, use the slow shell script. Don't cache a
2943 # value for INSTALL within a source directory, because that will
2944 # break other packages using the cache if that directory is
2945 # removed, or if the value is a relative name.
2946 INSTALL=$ac_install_sh
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2950 $as_echo "$INSTALL" >&6; }
2952 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2953 # It thinks the first close brace ends the variable substitution.
2954 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2956 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2958 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2961 $as_echo_n "checking whether build environment is sane... " >&6; }
2962 # Reject unsafe characters in $srcdir or the absolute working directory
2963 # name. Accept space and tab only in the latter.
2964 am_lf='
2966 case `pwd` in
2967 *[\\\"\#\$\&\'\`$am_lf]*)
2968 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2969 esac
2970 case $srcdir in
2971 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2972 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2973 esac
2975 # Do 'set' in a subshell so we don't clobber the current shell's
2976 # arguments. Must try -L first in case configure is actually a
2977 # symlink; some systems play weird games with the mod time of symlinks
2978 # (eg FreeBSD returns the mod time of the symlink's containing
2979 # directory).
2980 if (
2981 am_has_slept=no
2982 for am_try in 1 2; do
2983 echo "timestamp, slept: $am_has_slept" > conftest.file
2984 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2985 if test "$*" = "X"; then
2986 # -L didn't work.
2987 set X `ls -t "$srcdir/configure" conftest.file`
2989 if test "$*" != "X $srcdir/configure conftest.file" \
2990 && test "$*" != "X conftest.file $srcdir/configure"; then
2992 # If neither matched, then we have a broken ls. This can happen
2993 # if, for instance, CONFIG_SHELL is bash and it inherits a
2994 # broken ls alias from the environment. This has actually
2995 # happened. Such a system could not be considered "sane".
2996 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2997 alias in your environment" "$LINENO" 5
2999 if test "$2" = conftest.file || test $am_try -eq 2; then
3000 break
3002 # Just in case.
3003 sleep 1
3004 am_has_slept=yes
3005 done
3006 test "$2" = conftest.file
3008 then
3009 # Ok.
3011 else
3012 as_fn_error $? "newly created file is older than distributed files!
3013 Check your system clock" "$LINENO" 5
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3016 $as_echo "yes" >&6; }
3017 # If we didn't sleep, we still need to ensure time stamps of config.status and
3018 # generated files are strictly newer.
3019 am_sleep_pid=
3020 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3021 ( sleep 1 ) &
3022 am_sleep_pid=$!
3025 rm -f conftest.file
3027 test "$program_prefix" != NONE &&
3028 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3029 # Use a double $ so make ignores it.
3030 test "$program_suffix" != NONE &&
3031 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3032 # Double any \ or $.
3033 # By default was `s,x,x', remove it if useless.
3034 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3035 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3037 # Expand $ac_aux_dir to an absolute path.
3038 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3040 if test x"${MISSING+set}" != xset; then
3041 case $am_aux_dir in
3042 *\ * | *\ *)
3043 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3045 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3046 esac
3048 # Use eval to expand $SHELL
3049 if eval "$MISSING --is-lightweight"; then
3050 am_missing_run="$MISSING "
3051 else
3052 am_missing_run=
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3054 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3057 if test x"${install_sh+set}" != xset; then
3058 case $am_aux_dir in
3059 *\ * | *\ *)
3060 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3062 install_sh="\${SHELL} $am_aux_dir/install-sh"
3063 esac
3066 # Installed binaries are usually stripped using 'strip' when the user
3067 # run "make install-strip". However 'strip' might not be the right
3068 # tool to use in cross-compilation environments, therefore Automake
3069 # will honor the 'STRIP' environment variable to overrule this program.
3070 if test "$cross_compiling" != no; then
3071 if test -n "$ac_tool_prefix"; then
3072 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3073 set dummy ${ac_tool_prefix}strip; ac_word=$2
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3075 $as_echo_n "checking for $ac_word... " >&6; }
3076 if ${ac_cv_prog_STRIP+:} false; then :
3077 $as_echo_n "(cached) " >&6
3078 else
3079 if test -n "$STRIP"; then
3080 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3081 else
3082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3083 for as_dir in $PATH
3085 IFS=$as_save_IFS
3086 test -z "$as_dir" && as_dir=.
3087 for ac_exec_ext in '' $ac_executable_extensions; do
3088 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3089 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3091 break 2
3093 done
3094 done
3095 IFS=$as_save_IFS
3099 STRIP=$ac_cv_prog_STRIP
3100 if test -n "$STRIP"; then
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3102 $as_echo "$STRIP" >&6; }
3103 else
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3105 $as_echo "no" >&6; }
3110 if test -z "$ac_cv_prog_STRIP"; then
3111 ac_ct_STRIP=$STRIP
3112 # Extract the first word of "strip", so it can be a program name with args.
3113 set dummy strip; ac_word=$2
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3115 $as_echo_n "checking for $ac_word... " >&6; }
3116 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3117 $as_echo_n "(cached) " >&6
3118 else
3119 if test -n "$ac_ct_STRIP"; then
3120 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3121 else
3122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3123 for as_dir in $PATH
3125 IFS=$as_save_IFS
3126 test -z "$as_dir" && as_dir=.
3127 for ac_exec_ext in '' $ac_executable_extensions; do
3128 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3129 ac_cv_prog_ac_ct_STRIP="strip"
3130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3131 break 2
3133 done
3134 done
3135 IFS=$as_save_IFS
3139 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3140 if test -n "$ac_ct_STRIP"; then
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3142 $as_echo "$ac_ct_STRIP" >&6; }
3143 else
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3145 $as_echo "no" >&6; }
3148 if test "x$ac_ct_STRIP" = x; then
3149 STRIP=":"
3150 else
3151 case $cross_compiling:$ac_tool_warned in
3152 yes:)
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3154 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3155 ac_tool_warned=yes ;;
3156 esac
3157 STRIP=$ac_ct_STRIP
3159 else
3160 STRIP="$ac_cv_prog_STRIP"
3164 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3167 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3168 if test -z "$MKDIR_P"; then
3169 if ${ac_cv_path_mkdir+:} false; then :
3170 $as_echo_n "(cached) " >&6
3171 else
3172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3173 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3175 IFS=$as_save_IFS
3176 test -z "$as_dir" && as_dir=.
3177 for ac_prog in mkdir gmkdir; do
3178 for ac_exec_ext in '' $ac_executable_extensions; do
3179 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3180 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3181 'mkdir (GNU coreutils) '* | \
3182 'mkdir (coreutils) '* | \
3183 'mkdir (fileutils) '4.1*)
3184 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3185 break 3;;
3186 esac
3187 done
3188 done
3189 done
3190 IFS=$as_save_IFS
3194 test -d ./--version && rmdir ./--version
3195 if test "${ac_cv_path_mkdir+set}" = set; then
3196 MKDIR_P="$ac_cv_path_mkdir -p"
3197 else
3198 # As a last resort, use the slow shell script. Don't cache a
3199 # value for MKDIR_P within a source directory, because that will
3200 # break other packages using the cache if that directory is
3201 # removed, or if the value is a relative name.
3202 MKDIR_P="$ac_install_sh -d"
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3206 $as_echo "$MKDIR_P" >&6; }
3208 for ac_prog in gawk mawk nawk awk
3210 # Extract the first word of "$ac_prog", so it can be a program name with args.
3211 set dummy $ac_prog; ac_word=$2
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3213 $as_echo_n "checking for $ac_word... " >&6; }
3214 if ${ac_cv_prog_AWK+:} false; then :
3215 $as_echo_n "(cached) " >&6
3216 else
3217 if test -n "$AWK"; then
3218 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3219 else
3220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3221 for as_dir in $PATH
3223 IFS=$as_save_IFS
3224 test -z "$as_dir" && as_dir=.
3225 for ac_exec_ext in '' $ac_executable_extensions; do
3226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3227 ac_cv_prog_AWK="$ac_prog"
3228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3229 break 2
3231 done
3232 done
3233 IFS=$as_save_IFS
3237 AWK=$ac_cv_prog_AWK
3238 if test -n "$AWK"; then
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3240 $as_echo "$AWK" >&6; }
3241 else
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3243 $as_echo "no" >&6; }
3247 test -n "$AWK" && break
3248 done
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3251 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3252 set x ${MAKE-make}
3253 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3254 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3255 $as_echo_n "(cached) " >&6
3256 else
3257 cat >conftest.make <<\_ACEOF
3258 SHELL = /bin/sh
3259 all:
3260 @echo '@@@%%%=$(MAKE)=@@@%%%'
3261 _ACEOF
3262 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3263 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3264 *@@@%%%=?*=@@@%%%*)
3265 eval ac_cv_prog_make_${ac_make}_set=yes;;
3267 eval ac_cv_prog_make_${ac_make}_set=no;;
3268 esac
3269 rm -f conftest.make
3271 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3273 $as_echo "yes" >&6; }
3274 SET_MAKE=
3275 else
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3277 $as_echo "no" >&6; }
3278 SET_MAKE="MAKE=${MAKE-make}"
3281 rm -rf .tst 2>/dev/null
3282 mkdir .tst 2>/dev/null
3283 if test -d .tst; then
3284 am__leading_dot=.
3285 else
3286 am__leading_dot=_
3288 rmdir .tst 2>/dev/null
3290 # Check whether --enable-silent-rules was given.
3291 if test "${enable_silent_rules+set}" = set; then :
3292 enableval=$enable_silent_rules;
3295 case $enable_silent_rules in # (((
3296 yes) AM_DEFAULT_VERBOSITY=0;;
3297 no) AM_DEFAULT_VERBOSITY=1;;
3298 *) AM_DEFAULT_VERBOSITY=1;;
3299 esac
3300 am_make=${MAKE-make}
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3302 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3303 if ${am_cv_make_support_nested_variables+:} false; then :
3304 $as_echo_n "(cached) " >&6
3305 else
3306 if $as_echo 'TRUE=$(BAR$(V))
3307 BAR0=false
3308 BAR1=true
3310 am__doit:
3311 @$(TRUE)
3312 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3313 am_cv_make_support_nested_variables=yes
3314 else
3315 am_cv_make_support_nested_variables=no
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3319 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3320 if test $am_cv_make_support_nested_variables = yes; then
3321 AM_V='$(V)'
3322 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3323 else
3324 AM_V=$AM_DEFAULT_VERBOSITY
3325 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3327 AM_BACKSLASH='\'
3329 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3330 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3331 # is not polluted with repeated "-I."
3332 am__isrc=' -I$(srcdir)'
3333 # test to see if srcdir already configured
3334 if test -f $srcdir/config.status; then
3335 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3339 # test whether we have cygpath
3340 if test -z "$CYGPATH_W"; then
3341 if (cygpath --version) >/dev/null 2>/dev/null; then
3342 CYGPATH_W='cygpath -w'
3343 else
3344 CYGPATH_W=echo
3349 # Define the identity of the package.
3350 PACKAGE='alpine'
3351 VERSION='2.22'
3354 cat >>confdefs.h <<_ACEOF
3355 #define PACKAGE "$PACKAGE"
3356 _ACEOF
3359 cat >>confdefs.h <<_ACEOF
3360 #define VERSION "$VERSION"
3361 _ACEOF
3363 # Some tools Automake needs.
3365 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3368 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3371 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3374 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3377 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3379 # For better backward compatibility. To be removed once Automake 1.9.x
3380 # dies out for good. For more background, see:
3381 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3382 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3383 mkdir_p='$(MKDIR_P)'
3385 # We need awk for the "check" target (and possibly the TAP driver). The
3386 # system "awk" is bad on some platforms.
3387 # Always define AMTAR for backward compatibility. Yes, it's still used
3388 # in the wild :-( We should find a proper way to deprecate it ...
3389 AMTAR='$${TAR-tar}'
3392 # We'll loop over all known methods to create a tar archive until one works.
3393 _am_tools='gnutar pax cpio none'
3395 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3402 # POSIX will say in a future version that running "rm -f" with no argument
3403 # is OK; and we want to be able to make that assumption in our Makefile
3404 # recipes. So use an aggressive probe to check that the usage we want is
3405 # actually supported "in the wild" to an acceptable degree.
3406 # See automake bug#10828.
3407 # To make any issue more visible, cause the running configure to be aborted
3408 # by default if the 'rm' program in use doesn't match our expectations; the
3409 # user can still override this though.
3410 if rm -f && rm -fr && rm -rf; then : OK; else
3411 cat >&2 <<'END'
3412 Oops!
3414 Your 'rm' program seems unable to run without file operands specified
3415 on the command line, even when the '-f' option is present. This is contrary
3416 to the behaviour of most rm programs out there, and not conforming with
3417 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3419 Please tell bug-automake@gnu.org about your system, including the value
3420 of your $PATH and any error possibly output before this message. This
3421 can help us improve future automake versions.
3424 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3425 echo 'Configuration will proceed anyway, since you have set the' >&2
3426 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3427 echo >&2
3428 else
3429 cat >&2 <<'END'
3430 Aborting the configuration process, to ensure you take notice of the issue.
3432 You can download and install GNU coreutils to get an 'rm' implementation
3433 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3435 If you want to complete the configuration process using your problematic
3436 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3437 to "yes", and re-run configure.
3440 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3447 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3448 # Check whether --enable-maintainer-mode was given.
3449 if test "${enable_maintainer_mode+set}" = set; then :
3450 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3451 else
3452 USE_MAINTAINER_MODE=no
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3456 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3457 if test $USE_MAINTAINER_MODE = yes; then
3458 MAINTAINER_MODE_TRUE=
3459 MAINTAINER_MODE_FALSE='#'
3460 else
3461 MAINTAINER_MODE_TRUE='#'
3462 MAINTAINER_MODE_FALSE=
3465 MAINT=$MAINTAINER_MODE_TRUE
3469 # Make sure we can run config.sub.
3470 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3471 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3474 $as_echo_n "checking build system type... " >&6; }
3475 if ${ac_cv_build+:} false; then :
3476 $as_echo_n "(cached) " >&6
3477 else
3478 ac_build_alias=$build_alias
3479 test "x$ac_build_alias" = x &&
3480 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3481 test "x$ac_build_alias" = x &&
3482 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3483 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3484 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3488 $as_echo "$ac_cv_build" >&6; }
3489 case $ac_cv_build in
3490 *-*-*) ;;
3491 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3492 esac
3493 build=$ac_cv_build
3494 ac_save_IFS=$IFS; IFS='-'
3495 set x $ac_cv_build
3496 shift
3497 build_cpu=$1
3498 build_vendor=$2
3499 shift; shift
3500 # Remember, the first character of IFS is used to create $*,
3501 # except with old shells:
3502 build_os=$*
3503 IFS=$ac_save_IFS
3504 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3508 $as_echo_n "checking host system type... " >&6; }
3509 if ${ac_cv_host+:} false; then :
3510 $as_echo_n "(cached) " >&6
3511 else
3512 if test "x$host_alias" = x; then
3513 ac_cv_host=$ac_cv_build
3514 else
3515 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3516 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3521 $as_echo "$ac_cv_host" >&6; }
3522 case $ac_cv_host in
3523 *-*-*) ;;
3524 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3525 esac
3526 host=$ac_cv_host
3527 ac_save_IFS=$IFS; IFS='-'
3528 set x $ac_cv_host
3529 shift
3530 host_cpu=$1
3531 host_vendor=$2
3532 shift; shift
3533 # Remember, the first character of IFS is used to create $*,
3534 # except with old shells:
3535 host_os=$*
3536 IFS=$ac_save_IFS
3537 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
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
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring for $PACKAGE_STRING ($host)" >&5
3549 $as_echo "$as_me: Configuring for $PACKAGE_STRING ($host)" >&6;}
3551 # start out with intent to build Web Alpine
3552 WEB_BUILD=web/src/alpined.d
3555 ac_ext=c
3556 ac_cpp='$CPP $CPPFLAGS'
3557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3560 if test -n "$ac_tool_prefix"; then
3561 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3562 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3564 $as_echo_n "checking for $ac_word... " >&6; }
3565 if ${ac_cv_prog_CC+:} false; then :
3566 $as_echo_n "(cached) " >&6
3567 else
3568 if test -n "$CC"; then
3569 ac_cv_prog_CC="$CC" # Let the user override the test.
3570 else
3571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3572 for as_dir in $PATH
3574 IFS=$as_save_IFS
3575 test -z "$as_dir" && as_dir=.
3576 for ac_exec_ext in '' $ac_executable_extensions; do
3577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3578 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3580 break 2
3582 done
3583 done
3584 IFS=$as_save_IFS
3588 CC=$ac_cv_prog_CC
3589 if test -n "$CC"; then
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3591 $as_echo "$CC" >&6; }
3592 else
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3594 $as_echo "no" >&6; }
3599 if test -z "$ac_cv_prog_CC"; then
3600 ac_ct_CC=$CC
3601 # Extract the first word of "gcc", so it can be a program name with args.
3602 set dummy gcc; ac_word=$2
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3604 $as_echo_n "checking for $ac_word... " >&6; }
3605 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3606 $as_echo_n "(cached) " >&6
3607 else
3608 if test -n "$ac_ct_CC"; then
3609 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3610 else
3611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3612 for as_dir in $PATH
3614 IFS=$as_save_IFS
3615 test -z "$as_dir" && as_dir=.
3616 for ac_exec_ext in '' $ac_executable_extensions; do
3617 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3618 ac_cv_prog_ac_ct_CC="gcc"
3619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3620 break 2
3622 done
3623 done
3624 IFS=$as_save_IFS
3628 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3629 if test -n "$ac_ct_CC"; then
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3631 $as_echo "$ac_ct_CC" >&6; }
3632 else
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3634 $as_echo "no" >&6; }
3637 if test "x$ac_ct_CC" = x; then
3638 CC=""
3639 else
3640 case $cross_compiling:$ac_tool_warned in
3641 yes:)
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3643 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3644 ac_tool_warned=yes ;;
3645 esac
3646 CC=$ac_ct_CC
3648 else
3649 CC="$ac_cv_prog_CC"
3652 if test -z "$CC"; then
3653 if test -n "$ac_tool_prefix"; then
3654 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3655 set dummy ${ac_tool_prefix}cc; ac_word=$2
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3657 $as_echo_n "checking for $ac_word... " >&6; }
3658 if ${ac_cv_prog_CC+:} false; then :
3659 $as_echo_n "(cached) " >&6
3660 else
3661 if test -n "$CC"; then
3662 ac_cv_prog_CC="$CC" # Let the user override the test.
3663 else
3664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3665 for as_dir in $PATH
3667 IFS=$as_save_IFS
3668 test -z "$as_dir" && as_dir=.
3669 for ac_exec_ext in '' $ac_executable_extensions; do
3670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3671 ac_cv_prog_CC="${ac_tool_prefix}cc"
3672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3673 break 2
3675 done
3676 done
3677 IFS=$as_save_IFS
3681 CC=$ac_cv_prog_CC
3682 if test -n "$CC"; then
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3684 $as_echo "$CC" >&6; }
3685 else
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3687 $as_echo "no" >&6; }
3693 if test -z "$CC"; then
3694 # Extract the first word of "cc", so it can be a program name with args.
3695 set dummy cc; ac_word=$2
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3697 $as_echo_n "checking for $ac_word... " >&6; }
3698 if ${ac_cv_prog_CC+:} false; then :
3699 $as_echo_n "(cached) " >&6
3700 else
3701 if test -n "$CC"; then
3702 ac_cv_prog_CC="$CC" # Let the user override the test.
3703 else
3704 ac_prog_rejected=no
3705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3706 for as_dir in $PATH
3708 IFS=$as_save_IFS
3709 test -z "$as_dir" && as_dir=.
3710 for ac_exec_ext in '' $ac_executable_extensions; do
3711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3712 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3713 ac_prog_rejected=yes
3714 continue
3716 ac_cv_prog_CC="cc"
3717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3718 break 2
3720 done
3721 done
3722 IFS=$as_save_IFS
3724 if test $ac_prog_rejected = yes; then
3725 # We found a bogon in the path, so make sure we never use it.
3726 set dummy $ac_cv_prog_CC
3727 shift
3728 if test $# != 0; then
3729 # We chose a different compiler from the bogus one.
3730 # However, it has the same basename, so the bogon will be chosen
3731 # first if we set CC to just the basename; use the full file name.
3732 shift
3733 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3738 CC=$ac_cv_prog_CC
3739 if test -n "$CC"; then
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3741 $as_echo "$CC" >&6; }
3742 else
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3744 $as_echo "no" >&6; }
3749 if test -z "$CC"; then
3750 if test -n "$ac_tool_prefix"; then
3751 for ac_prog in cl.exe
3753 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3754 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3756 $as_echo_n "checking for $ac_word... " >&6; }
3757 if ${ac_cv_prog_CC+:} false; then :
3758 $as_echo_n "(cached) " >&6
3759 else
3760 if test -n "$CC"; then
3761 ac_cv_prog_CC="$CC" # Let the user override the test.
3762 else
3763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3764 for as_dir in $PATH
3766 IFS=$as_save_IFS
3767 test -z "$as_dir" && as_dir=.
3768 for ac_exec_ext in '' $ac_executable_extensions; do
3769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3770 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3772 break 2
3774 done
3775 done
3776 IFS=$as_save_IFS
3780 CC=$ac_cv_prog_CC
3781 if test -n "$CC"; then
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3783 $as_echo "$CC" >&6; }
3784 else
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3786 $as_echo "no" >&6; }
3790 test -n "$CC" && break
3791 done
3793 if test -z "$CC"; then
3794 ac_ct_CC=$CC
3795 for ac_prog in cl.exe
3797 # Extract the first word of "$ac_prog", so it can be a program name with args.
3798 set dummy $ac_prog; ac_word=$2
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3800 $as_echo_n "checking for $ac_word... " >&6; }
3801 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3802 $as_echo_n "(cached) " >&6
3803 else
3804 if test -n "$ac_ct_CC"; then
3805 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3806 else
3807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3808 for as_dir in $PATH
3810 IFS=$as_save_IFS
3811 test -z "$as_dir" && as_dir=.
3812 for ac_exec_ext in '' $ac_executable_extensions; do
3813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3814 ac_cv_prog_ac_ct_CC="$ac_prog"
3815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3816 break 2
3818 done
3819 done
3820 IFS=$as_save_IFS
3824 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3825 if test -n "$ac_ct_CC"; then
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3827 $as_echo "$ac_ct_CC" >&6; }
3828 else
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3830 $as_echo "no" >&6; }
3834 test -n "$ac_ct_CC" && break
3835 done
3837 if test "x$ac_ct_CC" = x; then
3838 CC=""
3839 else
3840 case $cross_compiling:$ac_tool_warned in
3841 yes:)
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3843 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3844 ac_tool_warned=yes ;;
3845 esac
3846 CC=$ac_ct_CC
3853 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3854 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3855 as_fn_error $? "no acceptable C compiler found in \$PATH
3856 See \`config.log' for more details" "$LINENO" 5; }
3858 # Provide some information about the compiler.
3859 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3860 set X $ac_compile
3861 ac_compiler=$2
3862 for ac_option in --version -v -V -qversion; do
3863 { { ac_try="$ac_compiler $ac_option >&5"
3864 case "(($ac_try" in
3865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3866 *) ac_try_echo=$ac_try;;
3867 esac
3868 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3869 $as_echo "$ac_try_echo"; } >&5
3870 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3871 ac_status=$?
3872 if test -s conftest.err; then
3873 sed '10a\
3874 ... rest of stderr output deleted ...
3875 10q' conftest.err >conftest.er1
3876 cat conftest.er1 >&5
3878 rm -f conftest.er1 conftest.err
3879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3880 test $ac_status = 0; }
3881 done
3883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3884 /* end confdefs.h. */
3887 main ()
3891 return 0;
3893 _ACEOF
3894 ac_clean_files_save=$ac_clean_files
3895 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3896 # Try to create an executable without -o first, disregard a.out.
3897 # It will help us diagnose broken compilers, and finding out an intuition
3898 # of exeext.
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3900 $as_echo_n "checking whether the C compiler works... " >&6; }
3901 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3903 # The possible output files:
3904 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3906 ac_rmfiles=
3907 for ac_file in $ac_files
3909 case $ac_file in
3910 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3911 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3912 esac
3913 done
3914 rm -f $ac_rmfiles
3916 if { { ac_try="$ac_link_default"
3917 case "(($ac_try" in
3918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3919 *) ac_try_echo=$ac_try;;
3920 esac
3921 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3922 $as_echo "$ac_try_echo"; } >&5
3923 (eval "$ac_link_default") 2>&5
3924 ac_status=$?
3925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3926 test $ac_status = 0; }; then :
3927 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3928 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3929 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3930 # so that the user can short-circuit this test for compilers unknown to
3931 # Autoconf.
3932 for ac_file in $ac_files ''
3934 test -f "$ac_file" || continue
3935 case $ac_file in
3936 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3938 [ab].out )
3939 # We found the default executable, but exeext='' is most
3940 # certainly right.
3941 break;;
3942 *.* )
3943 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3944 then :; else
3945 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3947 # We set ac_cv_exeext here because the later test for it is not
3948 # safe: cross compilers may not add the suffix if given an `-o'
3949 # argument, so we may need to know it at that point already.
3950 # Even if this section looks crufty: it has the advantage of
3951 # actually working.
3952 break;;
3954 break;;
3955 esac
3956 done
3957 test "$ac_cv_exeext" = no && ac_cv_exeext=
3959 else
3960 ac_file=''
3962 if test -z "$ac_file"; then :
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3964 $as_echo "no" >&6; }
3965 $as_echo "$as_me: failed program was:" >&5
3966 sed 's/^/| /' conftest.$ac_ext >&5
3968 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3969 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3970 as_fn_error 77 "C compiler cannot create executables
3971 See \`config.log' for more details" "$LINENO" 5; }
3972 else
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3974 $as_echo "yes" >&6; }
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3977 $as_echo_n "checking for C compiler default output file name... " >&6; }
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3979 $as_echo "$ac_file" >&6; }
3980 ac_exeext=$ac_cv_exeext
3982 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3983 ac_clean_files=$ac_clean_files_save
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3985 $as_echo_n "checking for suffix of executables... " >&6; }
3986 if { { ac_try="$ac_link"
3987 case "(($ac_try" in
3988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3989 *) ac_try_echo=$ac_try;;
3990 esac
3991 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3992 $as_echo "$ac_try_echo"; } >&5
3993 (eval "$ac_link") 2>&5
3994 ac_status=$?
3995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3996 test $ac_status = 0; }; then :
3997 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3998 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3999 # work properly (i.e., refer to `conftest.exe'), while it won't with
4000 # `rm'.
4001 for ac_file in conftest.exe conftest conftest.*; do
4002 test -f "$ac_file" || continue
4003 case $ac_file in
4004 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4005 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4006 break;;
4007 * ) break;;
4008 esac
4009 done
4010 else
4011 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4012 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4013 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4014 See \`config.log' for more details" "$LINENO" 5; }
4016 rm -f conftest conftest$ac_cv_exeext
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4018 $as_echo "$ac_cv_exeext" >&6; }
4020 rm -f conftest.$ac_ext
4021 EXEEXT=$ac_cv_exeext
4022 ac_exeext=$EXEEXT
4023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4024 /* end confdefs.h. */
4025 #include <stdio.h>
4027 main ()
4029 FILE *f = fopen ("conftest.out", "w");
4030 return ferror (f) || fclose (f) != 0;
4033 return 0;
4035 _ACEOF
4036 ac_clean_files="$ac_clean_files conftest.out"
4037 # Check that the compiler produces executables we can run. If not, either
4038 # the compiler is broken, or we cross compile.
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4040 $as_echo_n "checking whether we are cross compiling... " >&6; }
4041 if test "$cross_compiling" != yes; then
4042 { { ac_try="$ac_link"
4043 case "(($ac_try" in
4044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4045 *) ac_try_echo=$ac_try;;
4046 esac
4047 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4048 $as_echo "$ac_try_echo"; } >&5
4049 (eval "$ac_link") 2>&5
4050 ac_status=$?
4051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4052 test $ac_status = 0; }
4053 if { ac_try='./conftest$ac_cv_exeext'
4054 { { case "(($ac_try" in
4055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4056 *) ac_try_echo=$ac_try;;
4057 esac
4058 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4059 $as_echo "$ac_try_echo"; } >&5
4060 (eval "$ac_try") 2>&5
4061 ac_status=$?
4062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4063 test $ac_status = 0; }; }; then
4064 cross_compiling=no
4065 else
4066 if test "$cross_compiling" = maybe; then
4067 cross_compiling=yes
4068 else
4069 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4070 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4071 as_fn_error $? "cannot run C compiled programs.
4072 If you meant to cross compile, use \`--host'.
4073 See \`config.log' for more details" "$LINENO" 5; }
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4078 $as_echo "$cross_compiling" >&6; }
4080 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4081 ac_clean_files=$ac_clean_files_save
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4083 $as_echo_n "checking for suffix of object files... " >&6; }
4084 if ${ac_cv_objext+:} false; then :
4085 $as_echo_n "(cached) " >&6
4086 else
4087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4088 /* end confdefs.h. */
4091 main ()
4095 return 0;
4097 _ACEOF
4098 rm -f conftest.o conftest.obj
4099 if { { ac_try="$ac_compile"
4100 case "(($ac_try" in
4101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4102 *) ac_try_echo=$ac_try;;
4103 esac
4104 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4105 $as_echo "$ac_try_echo"; } >&5
4106 (eval "$ac_compile") 2>&5
4107 ac_status=$?
4108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4109 test $ac_status = 0; }; then :
4110 for ac_file in conftest.o conftest.obj conftest.*; do
4111 test -f "$ac_file" || continue;
4112 case $ac_file in
4113 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4114 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4115 break;;
4116 esac
4117 done
4118 else
4119 $as_echo "$as_me: failed program was:" >&5
4120 sed 's/^/| /' conftest.$ac_ext >&5
4122 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4123 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4124 as_fn_error $? "cannot compute suffix of object files: cannot compile
4125 See \`config.log' for more details" "$LINENO" 5; }
4127 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4130 $as_echo "$ac_cv_objext" >&6; }
4131 OBJEXT=$ac_cv_objext
4132 ac_objext=$OBJEXT
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4134 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4135 if ${ac_cv_c_compiler_gnu+:} false; then :
4136 $as_echo_n "(cached) " >&6
4137 else
4138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4139 /* end confdefs.h. */
4142 main ()
4144 #ifndef __GNUC__
4145 choke me
4146 #endif
4149 return 0;
4151 _ACEOF
4152 if ac_fn_c_try_compile "$LINENO"; then :
4153 ac_compiler_gnu=yes
4154 else
4155 ac_compiler_gnu=no
4157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4158 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4162 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4163 if test $ac_compiler_gnu = yes; then
4164 GCC=yes
4165 else
4166 GCC=
4168 ac_test_CFLAGS=${CFLAGS+set}
4169 ac_save_CFLAGS=$CFLAGS
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4171 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4172 if ${ac_cv_prog_cc_g+:} false; then :
4173 $as_echo_n "(cached) " >&6
4174 else
4175 ac_save_c_werror_flag=$ac_c_werror_flag
4176 ac_c_werror_flag=yes
4177 ac_cv_prog_cc_g=no
4178 CFLAGS="-g"
4179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4180 /* end confdefs.h. */
4183 main ()
4187 return 0;
4189 _ACEOF
4190 if ac_fn_c_try_compile "$LINENO"; then :
4191 ac_cv_prog_cc_g=yes
4192 else
4193 CFLAGS=""
4194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4195 /* end confdefs.h. */
4198 main ()
4202 return 0;
4204 _ACEOF
4205 if ac_fn_c_try_compile "$LINENO"; then :
4207 else
4208 ac_c_werror_flag=$ac_save_c_werror_flag
4209 CFLAGS="-g"
4210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4211 /* end confdefs.h. */
4214 main ()
4218 return 0;
4220 _ACEOF
4221 if ac_fn_c_try_compile "$LINENO"; then :
4222 ac_cv_prog_cc_g=yes
4224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4229 ac_c_werror_flag=$ac_save_c_werror_flag
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4232 $as_echo "$ac_cv_prog_cc_g" >&6; }
4233 if test "$ac_test_CFLAGS" = set; then
4234 CFLAGS=$ac_save_CFLAGS
4235 elif test $ac_cv_prog_cc_g = yes; then
4236 if test "$GCC" = yes; then
4237 CFLAGS="-g -O2"
4238 else
4239 CFLAGS="-g"
4241 else
4242 if test "$GCC" = yes; then
4243 CFLAGS="-O2"
4244 else
4245 CFLAGS=
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4249 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4250 if ${ac_cv_prog_cc_c89+:} false; then :
4251 $as_echo_n "(cached) " >&6
4252 else
4253 ac_cv_prog_cc_c89=no
4254 ac_save_CC=$CC
4255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4256 /* end confdefs.h. */
4257 #include <stdarg.h>
4258 #include <stdio.h>
4259 struct stat;
4260 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4261 struct buf { int x; };
4262 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4263 static char *e (p, i)
4264 char **p;
4265 int i;
4267 return p[i];
4269 static char *f (char * (*g) (char **, int), char **p, ...)
4271 char *s;
4272 va_list v;
4273 va_start (v,p);
4274 s = g (p, va_arg (v,int));
4275 va_end (v);
4276 return s;
4279 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4280 function prototypes and stuff, but not '\xHH' hex character constants.
4281 These don't provoke an error unfortunately, instead are silently treated
4282 as 'x'. The following induces an error, until -std is added to get
4283 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4284 array size at least. It's necessary to write '\x00'==0 to get something
4285 that's true only with -std. */
4286 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4288 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4289 inside strings and character constants. */
4290 #define FOO(x) 'x'
4291 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4293 int test (int i, double x);
4294 struct s1 {int (*f) (int a);};
4295 struct s2 {int (*f) (double a);};
4296 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4297 int argc;
4298 char **argv;
4300 main ()
4302 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4304 return 0;
4306 _ACEOF
4307 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4308 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4310 CC="$ac_save_CC $ac_arg"
4311 if ac_fn_c_try_compile "$LINENO"; then :
4312 ac_cv_prog_cc_c89=$ac_arg
4314 rm -f core conftest.err conftest.$ac_objext
4315 test "x$ac_cv_prog_cc_c89" != "xno" && break
4316 done
4317 rm -f conftest.$ac_ext
4318 CC=$ac_save_CC
4321 # AC_CACHE_VAL
4322 case "x$ac_cv_prog_cc_c89" in
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4325 $as_echo "none needed" >&6; } ;;
4326 xno)
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4328 $as_echo "unsupported" >&6; } ;;
4330 CC="$CC $ac_cv_prog_cc_c89"
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4332 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4333 esac
4334 if test "x$ac_cv_prog_cc_c89" != xno; then :
4338 ac_ext=c
4339 ac_cpp='$CPP $CPPFLAGS'
4340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4344 ac_ext=c
4345 ac_cpp='$CPP $CPPFLAGS'
4346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4350 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4351 if ${am_cv_prog_cc_c_o+:} false; then :
4352 $as_echo_n "(cached) " >&6
4353 else
4354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4355 /* end confdefs.h. */
4358 main ()
4362 return 0;
4364 _ACEOF
4365 # Make sure it works both with $CC and with simple cc.
4366 # Following AC_PROG_CC_C_O, we do the test twice because some
4367 # compilers refuse to overwrite an existing .o file with -o,
4368 # though they will create one.
4369 am_cv_prog_cc_c_o=yes
4370 for am_i in 1 2; do
4371 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4372 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4373 ac_status=$?
4374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4375 (exit $ac_status); } \
4376 && test -f conftest2.$ac_objext; then
4377 : OK
4378 else
4379 am_cv_prog_cc_c_o=no
4380 break
4382 done
4383 rm -f core conftest*
4384 unset am_i
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4387 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4388 if test "$am_cv_prog_cc_c_o" != yes; then
4389 # Losing compiler, so override with the script.
4390 # FIXME: It is wrong to rewrite CC.
4391 # But if we don't then we get into trouble of one sort or another.
4392 # A longer-term fix would be to have automake use am__CC in this case,
4393 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4394 CC="$am_aux_dir/compile $CC"
4396 ac_ext=c
4397 ac_cpp='$CPP $CPPFLAGS'
4398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4402 DEPDIR="${am__leading_dot}deps"
4404 ac_config_commands="$ac_config_commands depfiles"
4407 am_make=${MAKE-make}
4408 cat > confinc << 'END'
4409 am__doit:
4410 @echo this is the am__doit target
4411 .PHONY: am__doit
4413 # If we don't find an include directive, just comment out the code.
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4415 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4416 am__include="#"
4417 am__quote=
4418 _am_result=none
4419 # First try GNU make style include.
4420 echo "include confinc" > confmf
4421 # Ignore all kinds of additional output from 'make'.
4422 case `$am_make -s -f confmf 2> /dev/null` in #(
4423 *the\ am__doit\ target*)
4424 am__include=include
4425 am__quote=
4426 _am_result=GNU
4428 esac
4429 # Now try BSD make style include.
4430 if test "$am__include" = "#"; then
4431 echo '.include "confinc"' > confmf
4432 case `$am_make -s -f confmf 2> /dev/null` in #(
4433 *the\ am__doit\ target*)
4434 am__include=.include
4435 am__quote="\""
4436 _am_result=BSD
4438 esac
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4443 $as_echo "$_am_result" >&6; }
4444 rm -f confinc confmf
4446 # Check whether --enable-dependency-tracking was given.
4447 if test "${enable_dependency_tracking+set}" = set; then :
4448 enableval=$enable_dependency_tracking;
4451 if test "x$enable_dependency_tracking" != xno; then
4452 am_depcomp="$ac_aux_dir/depcomp"
4453 AMDEPBACKSLASH='\'
4454 am__nodep='_no'
4456 if test "x$enable_dependency_tracking" != xno; then
4457 AMDEP_TRUE=
4458 AMDEP_FALSE='#'
4459 else
4460 AMDEP_TRUE='#'
4461 AMDEP_FALSE=
4466 depcc="$CC" am_compiler_list=
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4469 $as_echo_n "checking dependency style of $depcc... " >&6; }
4470 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4471 $as_echo_n "(cached) " >&6
4472 else
4473 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4474 # We make a subdir and do the tests there. Otherwise we can end up
4475 # making bogus files that we don't know about and never remove. For
4476 # instance it was reported that on HP-UX the gcc test will end up
4477 # making a dummy file named 'D' -- because '-MD' means "put the output
4478 # in D".
4479 rm -rf conftest.dir
4480 mkdir conftest.dir
4481 # Copy depcomp to subdir because otherwise we won't find it if we're
4482 # using a relative directory.
4483 cp "$am_depcomp" conftest.dir
4484 cd conftest.dir
4485 # We will build objects and dependencies in a subdirectory because
4486 # it helps to detect inapplicable dependency modes. For instance
4487 # both Tru64's cc and ICC support -MD to output dependencies as a
4488 # side effect of compilation, but ICC will put the dependencies in
4489 # the current directory while Tru64 will put them in the object
4490 # directory.
4491 mkdir sub
4493 am_cv_CC_dependencies_compiler_type=none
4494 if test "$am_compiler_list" = ""; then
4495 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4497 am__universal=false
4498 case " $depcc " in #(
4499 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4500 esac
4502 for depmode in $am_compiler_list; do
4503 # Setup a source with many dependencies, because some compilers
4504 # like to wrap large dependency lists on column 80 (with \), and
4505 # we should not choose a depcomp mode which is confused by this.
4507 # We need to recreate these files for each test, as the compiler may
4508 # overwrite some of them when testing with obscure command lines.
4509 # This happens at least with the AIX C compiler.
4510 : > sub/conftest.c
4511 for i in 1 2 3 4 5 6; do
4512 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4513 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4514 # Solaris 10 /bin/sh.
4515 echo '/* dummy */' > sub/conftst$i.h
4516 done
4517 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4519 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4520 # mode. It turns out that the SunPro C++ compiler does not properly
4521 # handle '-M -o', and we need to detect this. Also, some Intel
4522 # versions had trouble with output in subdirs.
4523 am__obj=sub/conftest.${OBJEXT-o}
4524 am__minus_obj="-o $am__obj"
4525 case $depmode in
4526 gcc)
4527 # This depmode causes a compiler race in universal mode.
4528 test "$am__universal" = false || continue
4530 nosideeffect)
4531 # After this tag, mechanisms are not by side-effect, so they'll
4532 # only be used when explicitly requested.
4533 if test "x$enable_dependency_tracking" = xyes; then
4534 continue
4535 else
4536 break
4539 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4540 # This compiler won't grok '-c -o', but also, the minuso test has
4541 # not run yet. These depmodes are late enough in the game, and
4542 # so weak that their functioning should not be impacted.
4543 am__obj=conftest.${OBJEXT-o}
4544 am__minus_obj=
4546 none) break ;;
4547 esac
4548 if depmode=$depmode \
4549 source=sub/conftest.c object=$am__obj \
4550 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4551 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4552 >/dev/null 2>conftest.err &&
4553 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4554 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4555 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4556 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4557 # icc doesn't choke on unknown options, it will just issue warnings
4558 # or remarks (even with -Werror). So we grep stderr for any message
4559 # that says an option was ignored or not supported.
4560 # When given -MP, icc 7.0 and 7.1 complain thusly:
4561 # icc: Command line warning: ignoring option '-M'; no argument required
4562 # The diagnosis changed in icc 8.0:
4563 # icc: Command line remark: option '-MP' not supported
4564 if (grep 'ignoring option' conftest.err ||
4565 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4566 am_cv_CC_dependencies_compiler_type=$depmode
4567 break
4570 done
4572 cd ..
4573 rm -rf conftest.dir
4574 else
4575 am_cv_CC_dependencies_compiler_type=none
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4580 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4581 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4584 test "x$enable_dependency_tracking" != xno \
4585 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4586 am__fastdepCC_TRUE=
4587 am__fastdepCC_FALSE='#'
4588 else
4589 am__fastdepCC_TRUE='#'
4590 am__fastdepCC_FALSE=
4594 ac_ext=c
4595 ac_cpp='$CPP $CPPFLAGS'
4596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4598 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4600 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4601 # On Suns, sometimes $CPP names a directory.
4602 if test -n "$CPP" && test -d "$CPP"; then
4603 CPP=
4605 if test -z "$CPP"; then
4606 if ${ac_cv_prog_CPP+:} false; then :
4607 $as_echo_n "(cached) " >&6
4608 else
4609 # Double quotes because CPP needs to be expanded
4610 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4612 ac_preproc_ok=false
4613 for ac_c_preproc_warn_flag in '' yes
4615 # Use a header file that comes with gcc, so configuring glibc
4616 # with a fresh cross-compiler works.
4617 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4618 # <limits.h> exists even on freestanding compilers.
4619 # On the NeXT, cc -E runs the code through the compiler's parser,
4620 # not just through cpp. "Syntax error" is here to catch this case.
4621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4622 /* end confdefs.h. */
4623 #ifdef __STDC__
4624 # include <limits.h>
4625 #else
4626 # include <assert.h>
4627 #endif
4628 Syntax error
4629 _ACEOF
4630 if ac_fn_c_try_cpp "$LINENO"; then :
4632 else
4633 # Broken: fails on valid input.
4634 continue
4636 rm -f conftest.err conftest.i conftest.$ac_ext
4638 # OK, works on sane cases. Now check whether nonexistent headers
4639 # can be detected and how.
4640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4641 /* end confdefs.h. */
4642 #include <ac_nonexistent.h>
4643 _ACEOF
4644 if ac_fn_c_try_cpp "$LINENO"; then :
4645 # Broken: success on invalid input.
4646 continue
4647 else
4648 # Passes both tests.
4649 ac_preproc_ok=:
4650 break
4652 rm -f conftest.err conftest.i conftest.$ac_ext
4654 done
4655 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4656 rm -f conftest.i conftest.err conftest.$ac_ext
4657 if $ac_preproc_ok; then :
4658 break
4661 done
4662 ac_cv_prog_CPP=$CPP
4665 CPP=$ac_cv_prog_CPP
4666 else
4667 ac_cv_prog_CPP=$CPP
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4670 $as_echo "$CPP" >&6; }
4671 ac_preproc_ok=false
4672 for ac_c_preproc_warn_flag in '' yes
4674 # Use a header file that comes with gcc, so configuring glibc
4675 # with a fresh cross-compiler works.
4676 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4677 # <limits.h> exists even on freestanding compilers.
4678 # On the NeXT, cc -E runs the code through the compiler's parser,
4679 # not just through cpp. "Syntax error" is here to catch this case.
4680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4681 /* end confdefs.h. */
4682 #ifdef __STDC__
4683 # include <limits.h>
4684 #else
4685 # include <assert.h>
4686 #endif
4687 Syntax error
4688 _ACEOF
4689 if ac_fn_c_try_cpp "$LINENO"; then :
4691 else
4692 # Broken: fails on valid input.
4693 continue
4695 rm -f conftest.err conftest.i conftest.$ac_ext
4697 # OK, works on sane cases. Now check whether nonexistent headers
4698 # can be detected and how.
4699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4700 /* end confdefs.h. */
4701 #include <ac_nonexistent.h>
4702 _ACEOF
4703 if ac_fn_c_try_cpp "$LINENO"; then :
4704 # Broken: success on invalid input.
4705 continue
4706 else
4707 # Passes both tests.
4708 ac_preproc_ok=:
4709 break
4711 rm -f conftest.err conftest.i conftest.$ac_ext
4713 done
4714 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4715 rm -f conftest.i conftest.err conftest.$ac_ext
4716 if $ac_preproc_ok; then :
4718 else
4719 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4720 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4721 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4722 See \`config.log' for more details" "$LINENO" 5; }
4725 ac_ext=c
4726 ac_cpp='$CPP $CPPFLAGS'
4727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4729 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4734 save_cross_compiling=$cross_compiling
4735 save_ac_tool_prefix=$ac_tool_prefix
4736 cross_compiling=no
4737 ac_tool_prefix=
4739 ac_ext=c
4740 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
4741 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
4742 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'
4743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4744 if test -n "$ac_tool_prefix"; then
4745 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4746 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4748 $as_echo_n "checking for $ac_word... " >&6; }
4749 if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
4750 $as_echo_n "(cached) " >&6
4751 else
4752 if test -n "$CC_FOR_BUILD"; then
4753 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
4754 else
4755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4756 for as_dir in $PATH
4758 IFS=$as_save_IFS
4759 test -z "$as_dir" && as_dir=.
4760 for ac_exec_ext in '' $ac_executable_extensions; do
4761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4762 ac_cv_prog_CC_FOR_BUILD="${ac_tool_prefix}gcc"
4763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4764 break 2
4766 done
4767 done
4768 IFS=$as_save_IFS
4772 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
4773 if test -n "$CC_FOR_BUILD"; then
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
4775 $as_echo "$CC_FOR_BUILD" >&6; }
4776 else
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4778 $as_echo "no" >&6; }
4783 if test -z "$ac_cv_prog_CC_FOR_BUILD"; then
4784 ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
4785 # Extract the first word of "gcc", so it can be a program name with args.
4786 set dummy gcc; ac_word=$2
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4788 $as_echo_n "checking for $ac_word... " >&6; }
4789 if ${ac_cv_prog_ac_ct_CC_FOR_BUILD+:} false; then :
4790 $as_echo_n "(cached) " >&6
4791 else
4792 if test -n "$ac_ct_CC_FOR_BUILD"; then
4793 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
4794 else
4795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4796 for as_dir in $PATH
4798 IFS=$as_save_IFS
4799 test -z "$as_dir" && as_dir=.
4800 for ac_exec_ext in '' $ac_executable_extensions; do
4801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4802 ac_cv_prog_ac_ct_CC_FOR_BUILD="gcc"
4803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4804 break 2
4806 done
4807 done
4808 IFS=$as_save_IFS
4812 ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
4813 if test -n "$ac_ct_CC_FOR_BUILD"; then
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC_FOR_BUILD" >&5
4815 $as_echo "$ac_ct_CC_FOR_BUILD" >&6; }
4816 else
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4818 $as_echo "no" >&6; }
4821 if test "x$ac_ct_CC_FOR_BUILD" = x; then
4822 CC_FOR_BUILD=""
4823 else
4824 case $cross_compiling:$ac_tool_warned in
4825 yes:)
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5
4827 $as_echo "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;}
4828 ac_tool_warned=yes ;;
4829 esac
4830 CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
4832 else
4833 CC_FOR_BUILD="$ac_cv_prog_CC_FOR_BUILD"
4836 if test -z "$CC_FOR_BUILD"; then
4837 if test -n "$ac_tool_prefix"; then
4838 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4839 set dummy ${ac_tool_prefix}cc; ac_word=$2
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4841 $as_echo_n "checking for $ac_word... " >&6; }
4842 if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
4843 $as_echo_n "(cached) " >&6
4844 else
4845 if test -n "$CC_FOR_BUILD"; then
4846 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
4847 else
4848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4849 for as_dir in $PATH
4851 IFS=$as_save_IFS
4852 test -z "$as_dir" && as_dir=.
4853 for ac_exec_ext in '' $ac_executable_extensions; do
4854 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4855 ac_cv_prog_CC_FOR_BUILD="${ac_tool_prefix}cc"
4856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4857 break 2
4859 done
4860 done
4861 IFS=$as_save_IFS
4865 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
4866 if test -n "$CC_FOR_BUILD"; then
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
4868 $as_echo "$CC_FOR_BUILD" >&6; }
4869 else
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4871 $as_echo "no" >&6; }
4877 if test -z "$CC_FOR_BUILD"; then
4878 # Extract the first word of "cc", so it can be a program name with args.
4879 set dummy cc; ac_word=$2
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4881 $as_echo_n "checking for $ac_word... " >&6; }
4882 if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
4883 $as_echo_n "(cached) " >&6
4884 else
4885 if test -n "$CC_FOR_BUILD"; then
4886 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
4887 else
4888 ac_prog_rejected=no
4889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4890 for as_dir in $PATH
4892 IFS=$as_save_IFS
4893 test -z "$as_dir" && as_dir=.
4894 for ac_exec_ext in '' $ac_executable_extensions; do
4895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4896 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4897 ac_prog_rejected=yes
4898 continue
4900 ac_cv_prog_CC_FOR_BUILD="cc"
4901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4902 break 2
4904 done
4905 done
4906 IFS=$as_save_IFS
4908 if test $ac_prog_rejected = yes; then
4909 # We found a bogon in the path, so make sure we never use it.
4910 set dummy $ac_cv_prog_CC_FOR_BUILD
4911 shift
4912 if test $# != 0; then
4913 # We chose a different compiler from the bogus one.
4914 # However, it has the same basename, so the bogon will be chosen
4915 # first if we set CC_FOR_BUILD to just the basename; use the full file name.
4916 shift
4917 ac_cv_prog_CC_FOR_BUILD="$as_dir/$ac_word${1+' '}$@"
4922 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
4923 if test -n "$CC_FOR_BUILD"; then
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
4925 $as_echo "$CC_FOR_BUILD" >&6; }
4926 else
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4928 $as_echo "no" >&6; }
4933 if test -z "$CC_FOR_BUILD"; then
4934 if test -n "$ac_tool_prefix"; then
4935 for ac_prog in cl.exe
4937 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4938 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4940 $as_echo_n "checking for $ac_word... " >&6; }
4941 if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
4942 $as_echo_n "(cached) " >&6
4943 else
4944 if test -n "$CC_FOR_BUILD"; then
4945 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
4946 else
4947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4948 for as_dir in $PATH
4950 IFS=$as_save_IFS
4951 test -z "$as_dir" && as_dir=.
4952 for ac_exec_ext in '' $ac_executable_extensions; do
4953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4954 ac_cv_prog_CC_FOR_BUILD="$ac_tool_prefix$ac_prog"
4955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4956 break 2
4958 done
4959 done
4960 IFS=$as_save_IFS
4964 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
4965 if test -n "$CC_FOR_BUILD"; then
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
4967 $as_echo "$CC_FOR_BUILD" >&6; }
4968 else
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4970 $as_echo "no" >&6; }
4974 test -n "$CC_FOR_BUILD" && break
4975 done
4977 if test -z "$CC_FOR_BUILD"; then
4978 ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
4979 for ac_prog in cl.exe
4981 # Extract the first word of "$ac_prog", so it can be a program name with args.
4982 set dummy $ac_prog; ac_word=$2
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4984 $as_echo_n "checking for $ac_word... " >&6; }
4985 if ${ac_cv_prog_ac_ct_CC_FOR_BUILD+:} false; then :
4986 $as_echo_n "(cached) " >&6
4987 else
4988 if test -n "$ac_ct_CC_FOR_BUILD"; then
4989 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
4990 else
4991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4992 for as_dir in $PATH
4994 IFS=$as_save_IFS
4995 test -z "$as_dir" && as_dir=.
4996 for ac_exec_ext in '' $ac_executable_extensions; do
4997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4998 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_prog"
4999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5000 break 2
5002 done
5003 done
5004 IFS=$as_save_IFS
5008 ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
5009 if test -n "$ac_ct_CC_FOR_BUILD"; then
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC_FOR_BUILD" >&5
5011 $as_echo "$ac_ct_CC_FOR_BUILD" >&6; }
5012 else
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5014 $as_echo "no" >&6; }
5018 test -n "$ac_ct_CC_FOR_BUILD" && break
5019 done
5021 if test "x$ac_ct_CC_FOR_BUILD" = x; then
5022 CC_FOR_BUILD=""
5023 else
5024 case $cross_compiling:$ac_tool_warned in
5025 yes:)
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5
5027 $as_echo "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;}
5028 ac_tool_warned=yes ;;
5029 esac
5030 CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
5037 test -z "$CC_FOR_BUILD" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5038 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5039 as_fn_error $? "no acceptable C compiler found in \$PATH
5040 See \`config.log' for more details" "$LINENO" 5; }
5042 # Provide some information about the compiler.
5043 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5044 set X $ac_build_compile
5045 ac_compiler=$2
5046 for ac_option in --version -v -V -qversion; do
5047 { { ac_try="$ac_compiler $ac_option >&5"
5048 case "(($ac_try" in
5049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5050 *) ac_try_echo=$ac_try;;
5051 esac
5052 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5053 $as_echo "$ac_try_echo"; } >&5
5054 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5055 ac_status=$?
5056 if test -s conftest.err; then
5057 sed '10a\
5058 ... rest of stderr output deleted ...
5059 10q' conftest.err >conftest.er1
5060 cat conftest.er1 >&5
5062 rm -f conftest.er1 conftest.err
5063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5064 test $ac_status = 0; }
5065 done
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5068 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5069 if ${ac_cv_c_compiler_gnu+:} false; then :
5070 $as_echo_n "(cached) " >&6
5071 else
5072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5073 /* end confdefs.h. */
5076 main ()
5078 #ifndef __GNUC__
5079 choke me
5080 #endif
5083 return 0;
5085 _ACEOF
5086 if ac_fn_c_try_compile "$LINENO"; then :
5087 ac_compiler_gnu=yes
5088 else
5089 ac_compiler_gnu=no
5091 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
5092 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5096 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5097 if test $ac_compiler_gnu = yes; then
5098 GCC=yes
5099 else
5100 GCC=
5102 ac_test_CFLAGS=${CFLAGS_FOR_BUILD+set}
5103 ac_save_CFLAGS=$CFLAGS_FOR_BUILD
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD accepts -g" >&5
5105 $as_echo_n "checking whether $CC_FOR_BUILD accepts -g... " >&6; }
5106 if ${ac_cv_build_prog_cc_g+:} false; then :
5107 $as_echo_n "(cached) " >&6
5108 else
5109 ac_save_c_werror_flag=$ac_c_werror_flag
5110 ac_c_werror_flag=yes
5111 ac_cv_build_prog_cc_g=no
5112 CFLAGS_FOR_BUILD="-g"
5113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5114 /* end confdefs.h. */
5117 main ()
5121 return 0;
5123 _ACEOF
5124 if ac_fn_c_try_compile "$LINENO"; then :
5125 ac_cv_build_prog_cc_g=yes
5126 else
5127 CFLAGS_FOR_BUILD=""
5128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5129 /* end confdefs.h. */
5132 main ()
5136 return 0;
5138 _ACEOF
5139 if ac_fn_c_try_compile "$LINENO"; then :
5141 else
5142 ac_c_werror_flag=$ac_save_c_werror_flag
5143 CFLAGS_FOR_BUILD="-g"
5144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5145 /* end confdefs.h. */
5148 main ()
5152 return 0;
5154 _ACEOF
5155 if ac_fn_c_try_compile "$LINENO"; then :
5156 ac_cv_build_prog_cc_g=yes
5158 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
5160 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
5162 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
5163 ac_c_werror_flag=$ac_save_c_werror_flag
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_prog_cc_g" >&5
5166 $as_echo "$ac_cv_build_prog_cc_g" >&6; }
5167 if test "$ac_test_CFLAGS" = set; then
5168 CFLAGS_FOR_BUILD=$ac_save_CFLAGS
5169 elif test $ac_cv_build_prog_cc_g = yes; then
5170 if test "$GCC" = yes; then
5171 CFLAGS_FOR_BUILD="-g -O2"
5172 else
5173 CFLAGS_FOR_BUILD="-g"
5175 else
5176 if test "$GCC" = yes; then
5177 CFLAGS_FOR_BUILD="-O2"
5178 else
5179 CFLAGS_FOR_BUILD=
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC_FOR_BUILD option to accept ISO C89" >&5
5183 $as_echo_n "checking for $CC_FOR_BUILD option to accept ISO C89... " >&6; }
5184 if ${ac_cv_prog_cc_c89+:} false; then :
5185 $as_echo_n "(cached) " >&6
5186 else
5187 ac_cv_prog_cc_c89=no
5188 ac_save_CC=$CC_FOR_BUILD
5189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5190 /* end confdefs.h. */
5191 #include <stdarg.h>
5192 #include <stdio.h>
5193 struct stat;
5194 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5195 struct buf { int x; };
5196 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5197 static char *e (p, i)
5198 char **p;
5199 int i;
5201 return p[i];
5203 static char *f (char * (*g) (char **, int), char **p, ...)
5205 char *s;
5206 va_list v;
5207 va_start (v,p);
5208 s = g (p, va_arg (v,int));
5209 va_end (v);
5210 return s;
5213 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5214 function prototypes and stuff, but not '\xHH' hex character constants.
5215 These don't provoke an error unfortunately, instead are silently treated
5216 as 'x'. The following induces an error, until -std is added to get
5217 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5218 array size at least. It's necessary to write '\x00'==0 to get something
5219 that's true only with -std. */
5220 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5222 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5223 inside strings and character constants. */
5224 #define FOO(x) 'x'
5225 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5227 int test (int i, double x);
5228 struct s1 {int (*f) (int a);};
5229 struct s2 {int (*f) (double a);};
5230 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5231 int argc;
5232 char **argv;
5234 main ()
5236 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5238 return 0;
5240 _ACEOF
5241 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5242 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5244 CC_FOR_BUILD="$ac_save_CC $ac_arg"
5245 if ac_fn_c_try_compile "$LINENO"; then :
5246 ac_cv_prog_cc_c89=$ac_arg
5248 rm -f core conftest.err conftest.$ac_build_objext
5249 test "x$ac_cv_prog_cc_c89" != "xno" && break
5250 done
5251 rm -f conftest.$ac_ext
5252 CC_FOR_BUILD=$ac_save_CC
5255 # AC_CACHE_VAL
5256 case "x$ac_cv_prog_cc_c89" in
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5259 $as_echo "none needed" >&6; } ;;
5260 xno)
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5262 $as_echo "unsupported" >&6; } ;;
5264 CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_prog_cc_c89"
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5266 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5267 esac
5268 if test "x$ac_cv_prog_cc_c89" != xno; then :
5272 ac_ext=c
5273 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
5274 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
5275 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'
5276 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5278 ac_ext=c
5279 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
5280 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
5281 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'
5282 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD understands -c and -o together" >&5
5284 $as_echo_n "checking whether $CC_FOR_BUILD understands -c and -o together... " >&6; }
5285 if ${am_cv_prog_cc_c_o+:} false; then :
5286 $as_echo_n "(cached) " >&6
5287 else
5288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5289 /* end confdefs.h. */
5292 main ()
5296 return 0;
5298 _ACEOF
5299 # Make sure it works both with $CC and with simple cc.
5300 # Following AC_PROG_CC_C_O, we do the test twice because some
5301 # compilers refuse to overwrite an existing .o file with -o,
5302 # though they will create one.
5303 am_cv_prog_cc_c_o=yes
5304 for am_i in 1 2; do
5305 if { echo "$as_me:$LINENO: $CC_FOR_BUILD -c conftest.$ac_ext -o conftest2.$ac_build_objext" >&5
5306 ($CC_FOR_BUILD -c conftest.$ac_ext -o conftest2.$ac_build_objext) >&5 2>&5
5307 ac_status=$?
5308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5309 (exit $ac_status); } \
5310 && test -f conftest2.$ac_build_objext; then
5311 : OK
5312 else
5313 am_cv_prog_cc_c_o=no
5314 break
5316 done
5317 rm -f core conftest*
5318 unset am_i
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5321 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5322 if test "$am_cv_prog_cc_c_o" != yes; then
5323 # Losing compiler, so override with the script.
5324 # FIXME: It is wrong to rewrite CC.
5325 # But if we don't then we get into trouble of one sort or another.
5326 # A longer-term fix would be to have automake use am__CC in this case,
5327 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5328 CC_FOR_BUILD="$am_aux_dir/compile $CC_FOR_BUILD"
5330 ac_ext=c
5331 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
5332 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
5333 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'
5334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5337 depcc="$CC_FOR_BUILD" am_compiler_list=
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5340 $as_echo_n "checking dependency style of $depcc... " >&6; }
5341 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5342 $as_echo_n "(cached) " >&6
5343 else
5344 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5345 # We make a subdir and do the tests there. Otherwise we can end up
5346 # making bogus files that we don't know about and never remove. For
5347 # instance it was reported that on HP-UX the gcc test will end up
5348 # making a dummy file named 'D' -- because '-MD' means "put the output
5349 # in D".
5350 rm -rf conftest.dir
5351 mkdir conftest.dir
5352 # Copy depcomp to subdir because otherwise we won't find it if we're
5353 # using a relative directory.
5354 cp "$am_depcomp" conftest.dir
5355 cd conftest.dir
5356 # We will build objects and dependencies in a subdirectory because
5357 # it helps to detect inapplicable dependency modes. For instance
5358 # both Tru64's cc and ICC support -MD to output dependencies as a
5359 # side effect of compilation, but ICC will put the dependencies in
5360 # the current directory while Tru64 will put them in the object
5361 # directory.
5362 mkdir sub
5364 am_cv_CC_dependencies_compiler_type=none
5365 if test "$am_compiler_list" = ""; then
5366 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5368 am__universal=false
5369 case " $depcc " in #(
5370 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5371 esac
5373 for depmode in $am_compiler_list; do
5374 # Setup a source with many dependencies, because some compilers
5375 # like to wrap large dependency lists on column 80 (with \), and
5376 # we should not choose a depcomp mode which is confused by this.
5378 # We need to recreate these files for each test, as the compiler may
5379 # overwrite some of them when testing with obscure command lines.
5380 # This happens at least with the AIX C compiler.
5381 : > sub/conftest.c
5382 for i in 1 2 3 4 5 6; do
5383 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5384 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5385 # Solaris 10 /bin/sh.
5386 echo '/* dummy */' > sub/conftst$i.h
5387 done
5388 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5390 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5391 # mode. It turns out that the SunPro C++ compiler does not properly
5392 # handle '-M -o', and we need to detect this. Also, some Intel
5393 # versions had trouble with output in subdirs.
5394 am__obj=sub/conftest.${OBJEXT-o}
5395 am__minus_obj="-o $am__obj"
5396 case $depmode in
5397 gcc)
5398 # This depmode causes a compiler race in universal mode.
5399 test "$am__universal" = false || continue
5401 nosideeffect)
5402 # After this tag, mechanisms are not by side-effect, so they'll
5403 # only be used when explicitly requested.
5404 if test "x$enable_dependency_tracking" = xyes; then
5405 continue
5406 else
5407 break
5410 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5411 # This compiler won't grok '-c -o', but also, the minuso test has
5412 # not run yet. These depmodes are late enough in the game, and
5413 # so weak that their functioning should not be impacted.
5414 am__obj=conftest.${OBJEXT-o}
5415 am__minus_obj=
5417 none) break ;;
5418 esac
5419 if depmode=$depmode \
5420 source=sub/conftest.c object=$am__obj \
5421 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5422 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5423 >/dev/null 2>conftest.err &&
5424 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5425 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5426 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5427 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5428 # icc doesn't choke on unknown options, it will just issue warnings
5429 # or remarks (even with -Werror). So we grep stderr for any message
5430 # that says an option was ignored or not supported.
5431 # When given -MP, icc 7.0 and 7.1 complain thusly:
5432 # icc: Command line warning: ignoring option '-M'; no argument required
5433 # The diagnosis changed in icc 8.0:
5434 # icc: Command line remark: option '-MP' not supported
5435 if (grep 'ignoring option' conftest.err ||
5436 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5437 am_cv_CC_dependencies_compiler_type=$depmode
5438 break
5441 done
5443 cd ..
5444 rm -rf conftest.dir
5445 else
5446 am_cv_CC_dependencies_compiler_type=none
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5451 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5452 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5455 test "x$enable_dependency_tracking" != xno \
5456 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5457 am__fastdepCC_TRUE=
5458 am__fastdepCC_FALSE='#'
5459 else
5460 am__fastdepCC_TRUE='#'
5461 am__fastdepCC_FALSE=
5465 ac_ext=c
5466 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
5467 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
5468 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'
5469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5471 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5472 # On Suns, sometimes $CPP names a directory.
5473 if test -n "$CPP_FOR_BUILD" && test -d "$CPP_FOR_BUILD"; then
5474 CPP_FOR_BUILD=
5476 if test -z "$CPP_FOR_BUILD"; then
5477 if ${ac_cv_build_prog_CPP+:} false; then :
5478 $as_echo_n "(cached) " >&6
5479 else
5480 # Double quotes because CPP needs to be expanded
5481 for CPP_FOR_BUILD in "$CC_FOR_BUILD -E" "$CC_FOR_BUILD -E -traditional-cpp" "/lib/cpp"
5483 ac_preproc_ok=false
5484 for ac_c_preproc_warn_flag in '' yes
5486 # Use a header file that comes with gcc, so configuring glibc
5487 # with a fresh cross-compiler works.
5488 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5489 # <limits.h> exists even on freestanding compilers.
5490 # On the NeXT, cc -E runs the code through the compiler's parser,
5491 # not just through cpp. "Syntax error" is here to catch this case.
5492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5493 /* end confdefs.h. */
5494 #ifdef __STDC__
5495 # include <limits.h>
5496 #else
5497 # include <assert.h>
5498 #endif
5499 Syntax error
5500 _ACEOF
5501 if ac_fn_c_try_cpp "$LINENO"; then :
5503 else
5504 # Broken: fails on valid input.
5505 continue
5507 rm -f conftest.err conftest.i conftest.$ac_ext
5509 # OK, works on sane cases. Now check whether nonexistent headers
5510 # can be detected and how.
5511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5512 /* end confdefs.h. */
5513 #include <ac_nonexistent.h>
5514 _ACEOF
5515 if ac_fn_c_try_cpp "$LINENO"; then :
5516 # Broken: success on invalid input.
5517 continue
5518 else
5519 # Passes both tests.
5520 ac_preproc_ok=:
5521 break
5523 rm -f conftest.err conftest.i conftest.$ac_ext
5525 done
5526 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5527 rm -f conftest.i conftest.err conftest.$ac_ext
5528 if $ac_preproc_ok; then :
5529 break
5532 done
5533 ac_cv_build_prog_CPP=$CPP_FOR_BUILD
5536 CPP_FOR_BUILD=$ac_cv_build_prog_CPP
5537 else
5538 ac_cv_build_prog_CPP=$CPP_FOR_BUILD
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP_FOR_BUILD" >&5
5541 $as_echo "$CPP_FOR_BUILD" >&6; }
5542 ac_preproc_ok=false
5543 for ac_c_preproc_warn_flag in '' yes
5545 # Use a header file that comes with gcc, so configuring glibc
5546 # with a fresh cross-compiler works.
5547 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5548 # <limits.h> exists even on freestanding compilers.
5549 # On the NeXT, cc -E runs the code through the compiler's parser,
5550 # not just through cpp. "Syntax error" is here to catch this case.
5551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5552 /* end confdefs.h. */
5553 #ifdef __STDC__
5554 # include <limits.h>
5555 #else
5556 # include <assert.h>
5557 #endif
5558 Syntax error
5559 _ACEOF
5560 if ac_fn_c_try_cpp "$LINENO"; then :
5562 else
5563 # Broken: fails on valid input.
5564 continue
5566 rm -f conftest.err conftest.i conftest.$ac_ext
5568 # OK, works on sane cases. Now check whether nonexistent headers
5569 # can be detected and how.
5570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5571 /* end confdefs.h. */
5572 #include <ac_nonexistent.h>
5573 _ACEOF
5574 if ac_fn_c_try_cpp "$LINENO"; then :
5575 # Broken: success on invalid input.
5576 continue
5577 else
5578 # Passes both tests.
5579 ac_preproc_ok=:
5580 break
5582 rm -f conftest.err conftest.i conftest.$ac_ext
5584 done
5585 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5586 rm -f conftest.i conftest.err conftest.$ac_ext
5587 if $ac_preproc_ok; then :
5589 else
5590 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5591 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5592 as_fn_error $? "C preprocessor \"$CPP_FOR_BUILD\" fails sanity check
5593 See \`config.log' for more details" "$LINENO" 5; }
5596 ac_ext=c
5597 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
5598 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
5599 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'
5600 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5604 ac_tool_prefix=$save_ac_tool_prefix
5605 cross_compiling=$save_cross_compiling
5608 BUILD_EXEEXT=$ac_build_exeext
5609 BUILD_OBJEXT=$ac_build_objext
5611 case $ac_cv_prog_cc_stdc in #(
5612 no) :
5613 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
5614 *) :
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
5616 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
5617 if ${ac_cv_prog_cc_c99+:} false; then :
5618 $as_echo_n "(cached) " >&6
5619 else
5620 ac_cv_prog_cc_c99=no
5621 ac_save_CC=$CC
5622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5623 /* end confdefs.h. */
5624 #include <stdarg.h>
5625 #include <stdbool.h>
5626 #include <stdlib.h>
5627 #include <wchar.h>
5628 #include <stdio.h>
5630 // Check varargs macros. These examples are taken from C99 6.10.3.5.
5631 #define debug(...) fprintf (stderr, __VA_ARGS__)
5632 #define showlist(...) puts (#__VA_ARGS__)
5633 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5634 static void
5635 test_varargs_macros (void)
5637 int x = 1234;
5638 int y = 5678;
5639 debug ("Flag");
5640 debug ("X = %d\n", x);
5641 showlist (The first, second, and third items.);
5642 report (x>y, "x is %d but y is %d", x, y);
5645 // Check long long types.
5646 #define BIG64 18446744073709551615ull
5647 #define BIG32 4294967295ul
5648 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5649 #if !BIG_OK
5650 your preprocessor is broken;
5651 #endif
5652 #if BIG_OK
5653 #else
5654 your preprocessor is broken;
5655 #endif
5656 static long long int bignum = -9223372036854775807LL;
5657 static unsigned long long int ubignum = BIG64;
5659 struct incomplete_array
5661 int datasize;
5662 double data[];
5665 struct named_init {
5666 int number;
5667 const wchar_t *name;
5668 double average;
5671 typedef const char *ccp;
5673 static inline int
5674 test_restrict (ccp restrict text)
5676 // See if C++-style comments work.
5677 // Iterate through items via the restricted pointer.
5678 // Also check for declarations in for loops.
5679 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5680 continue;
5681 return 0;
5684 // Check varargs and va_copy.
5685 static void
5686 test_varargs (const char *format, ...)
5688 va_list args;
5689 va_start (args, format);
5690 va_list args_copy;
5691 va_copy (args_copy, args);
5693 const char *str;
5694 int number;
5695 float fnumber;
5697 while (*format)
5699 switch (*format++)
5701 case 's': // string
5702 str = va_arg (args_copy, const char *);
5703 break;
5704 case 'd': // int
5705 number = va_arg (args_copy, int);
5706 break;
5707 case 'f': // float
5708 fnumber = va_arg (args_copy, double);
5709 break;
5710 default:
5711 break;
5714 va_end (args_copy);
5715 va_end (args);
5719 main ()
5722 // Check bool.
5723 _Bool success = false;
5725 // Check restrict.
5726 if (test_restrict ("String literal") == 0)
5727 success = true;
5728 char *restrict newvar = "Another string";
5730 // Check varargs.
5731 test_varargs ("s, d' f .", "string", 65, 34.234);
5732 test_varargs_macros ();
5734 // Check flexible array members.
5735 struct incomplete_array *ia =
5736 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5737 ia->datasize = 10;
5738 for (int i = 0; i < ia->datasize; ++i)
5739 ia->data[i] = i * 1.234;
5741 // Check named initializers.
5742 struct named_init ni = {
5743 .number = 34,
5744 .name = L"Test wide string",
5745 .average = 543.34343,
5748 ni.number = 58;
5750 int dynamic_array[ni.number];
5751 dynamic_array[ni.number - 1] = 543;
5753 // work around unused variable warnings
5754 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5755 || dynamic_array[ni.number - 1] != 543);
5758 return 0;
5760 _ACEOF
5761 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5763 CC="$ac_save_CC $ac_arg"
5764 if ac_fn_c_try_compile "$LINENO"; then :
5765 ac_cv_prog_cc_c99=$ac_arg
5767 rm -f core conftest.err conftest.$ac_objext
5768 test "x$ac_cv_prog_cc_c99" != "xno" && break
5769 done
5770 rm -f conftest.$ac_ext
5771 CC=$ac_save_CC
5774 # AC_CACHE_VAL
5775 case "x$ac_cv_prog_cc_c99" in
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5778 $as_echo "none needed" >&6; } ;;
5779 xno)
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5781 $as_echo "unsupported" >&6; } ;;
5783 CC="$CC $ac_cv_prog_cc_c99"
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5785 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5786 esac
5787 if test "x$ac_cv_prog_cc_c99" != xno; then :
5788 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5789 else
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5791 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5792 if ${ac_cv_prog_cc_c89+:} false; then :
5793 $as_echo_n "(cached) " >&6
5794 else
5795 ac_cv_prog_cc_c89=no
5796 ac_save_CC=$CC
5797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5798 /* end confdefs.h. */
5799 #include <stdarg.h>
5800 #include <stdio.h>
5801 struct stat;
5802 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5803 struct buf { int x; };
5804 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5805 static char *e (p, i)
5806 char **p;
5807 int i;
5809 return p[i];
5811 static char *f (char * (*g) (char **, int), char **p, ...)
5813 char *s;
5814 va_list v;
5815 va_start (v,p);
5816 s = g (p, va_arg (v,int));
5817 va_end (v);
5818 return s;
5821 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5822 function prototypes and stuff, but not '\xHH' hex character constants.
5823 These don't provoke an error unfortunately, instead are silently treated
5824 as 'x'. The following induces an error, until -std is added to get
5825 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5826 array size at least. It's necessary to write '\x00'==0 to get something
5827 that's true only with -std. */
5828 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5830 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5831 inside strings and character constants. */
5832 #define FOO(x) 'x'
5833 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5835 int test (int i, double x);
5836 struct s1 {int (*f) (int a);};
5837 struct s2 {int (*f) (double a);};
5838 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5839 int argc;
5840 char **argv;
5842 main ()
5844 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5846 return 0;
5848 _ACEOF
5849 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5850 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5852 CC="$ac_save_CC $ac_arg"
5853 if ac_fn_c_try_compile "$LINENO"; then :
5854 ac_cv_prog_cc_c89=$ac_arg
5856 rm -f core conftest.err conftest.$ac_objext
5857 test "x$ac_cv_prog_cc_c89" != "xno" && break
5858 done
5859 rm -f conftest.$ac_ext
5860 CC=$ac_save_CC
5863 # AC_CACHE_VAL
5864 case "x$ac_cv_prog_cc_c89" in
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5867 $as_echo "none needed" >&6; } ;;
5868 xno)
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5870 $as_echo "unsupported" >&6; } ;;
5872 CC="$CC $ac_cv_prog_cc_c89"
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5874 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5875 esac
5876 if test "x$ac_cv_prog_cc_c89" != xno; then :
5877 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5878 else
5879 ac_cv_prog_cc_stdc=no
5884 esac
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
5886 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
5887 if ${ac_cv_prog_cc_stdc+:} false; then :
5888 $as_echo_n "(cached) " >&6
5891 case $ac_cv_prog_cc_stdc in #(
5892 no) :
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5894 $as_echo "unsupported" >&6; } ;; #(
5895 '') :
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5897 $as_echo "none needed" >&6; } ;; #(
5898 *) :
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
5900 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
5901 esac
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5905 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5906 set x ${MAKE-make}
5907 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5908 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5909 $as_echo_n "(cached) " >&6
5910 else
5911 cat >conftest.make <<\_ACEOF
5912 SHELL = /bin/sh
5913 all:
5914 @echo '@@@%%%=$(MAKE)=@@@%%%'
5915 _ACEOF
5916 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5917 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5918 *@@@%%%=?*=@@@%%%*)
5919 eval ac_cv_prog_make_${ac_make}_set=yes;;
5921 eval ac_cv_prog_make_${ac_make}_set=no;;
5922 esac
5923 rm -f conftest.make
5925 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5927 $as_echo "yes" >&6; }
5928 SET_MAKE=
5929 else
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5931 $as_echo "no" >&6; }
5932 SET_MAKE="MAKE=${MAKE-make}"
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5936 $as_echo_n "checking whether ln -s works... " >&6; }
5937 LN_S=$as_ln_s
5938 if test "$LN_S" = "ln -s"; then
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5940 $as_echo "yes" >&6; }
5941 else
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5943 $as_echo "no, using $LN_S" >&6; }
5946 for ac_prog in gawk mawk nawk awk
5948 # Extract the first word of "$ac_prog", so it can be a program name with args.
5949 set dummy $ac_prog; ac_word=$2
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5951 $as_echo_n "checking for $ac_word... " >&6; }
5952 if ${ac_cv_prog_AWK+:} false; then :
5953 $as_echo_n "(cached) " >&6
5954 else
5955 if test -n "$AWK"; then
5956 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5957 else
5958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5959 for as_dir in $PATH
5961 IFS=$as_save_IFS
5962 test -z "$as_dir" && as_dir=.
5963 for ac_exec_ext in '' $ac_executable_extensions; do
5964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5965 ac_cv_prog_AWK="$ac_prog"
5966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5967 break 2
5969 done
5970 done
5971 IFS=$as_save_IFS
5975 AWK=$ac_cv_prog_AWK
5976 if test -n "$AWK"; then
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5978 $as_echo "$AWK" >&6; }
5979 else
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5981 $as_echo "no" >&6; }
5985 test -n "$AWK" && break
5986 done
5988 case `pwd` in
5989 *\ * | *\ *)
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5991 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5992 esac
5996 macro_version='2.4.6'
5997 macro_revision='2.4.6'
6011 ltmain=$ac_aux_dir/ltmain.sh
6013 # Backslashify metacharacters that are still active within
6014 # double-quoted strings.
6015 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6017 # Same as above, but do not quote variable references.
6018 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6020 # Sed substitution to delay expansion of an escaped shell variable in a
6021 # double_quote_subst'ed string.
6022 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6024 # Sed substitution to delay expansion of an escaped single quote.
6025 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6027 # Sed substitution to avoid accidental globbing in evaled expressions
6028 no_glob_subst='s/\*/\\\*/g'
6030 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6031 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6032 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6035 $as_echo_n "checking how to print strings... " >&6; }
6036 # Test print first, because it will be a builtin if present.
6037 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6038 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6039 ECHO='print -r --'
6040 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6041 ECHO='printf %s\n'
6042 else
6043 # Use this function as a fallback that always works.
6044 func_fallback_echo ()
6046 eval 'cat <<_LTECHO_EOF
6048 _LTECHO_EOF'
6050 ECHO='func_fallback_echo'
6053 # func_echo_all arg...
6054 # Invoke $ECHO with all args, space-separated.
6055 func_echo_all ()
6057 $ECHO ""
6060 case $ECHO in
6061 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6062 $as_echo "printf" >&6; } ;;
6063 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6064 $as_echo "print -r" >&6; } ;;
6065 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6066 $as_echo "cat" >&6; } ;;
6067 esac
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6083 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6084 if ${ac_cv_path_SED+:} false; then :
6085 $as_echo_n "(cached) " >&6
6086 else
6087 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6088 for ac_i in 1 2 3 4 5 6 7; do
6089 ac_script="$ac_script$as_nl$ac_script"
6090 done
6091 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6092 { ac_script=; unset ac_script;}
6093 if test -z "$SED"; then
6094 ac_path_SED_found=false
6095 # Loop through the user's path and test for each of PROGNAME-LIST
6096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6097 for as_dir in $PATH
6099 IFS=$as_save_IFS
6100 test -z "$as_dir" && as_dir=.
6101 for ac_prog in sed gsed; do
6102 for ac_exec_ext in '' $ac_executable_extensions; do
6103 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6104 as_fn_executable_p "$ac_path_SED" || continue
6105 # Check for GNU ac_path_SED and select it if it is found.
6106 # Check for GNU $ac_path_SED
6107 case `"$ac_path_SED" --version 2>&1` in
6108 *GNU*)
6109 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6111 ac_count=0
6112 $as_echo_n 0123456789 >"conftest.in"
6113 while :
6115 cat "conftest.in" "conftest.in" >"conftest.tmp"
6116 mv "conftest.tmp" "conftest.in"
6117 cp "conftest.in" "conftest.nl"
6118 $as_echo '' >> "conftest.nl"
6119 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6120 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6121 as_fn_arith $ac_count + 1 && ac_count=$as_val
6122 if test $ac_count -gt ${ac_path_SED_max-0}; then
6123 # Best one so far, save it but keep looking for a better one
6124 ac_cv_path_SED="$ac_path_SED"
6125 ac_path_SED_max=$ac_count
6127 # 10*(2^10) chars as input seems more than enough
6128 test $ac_count -gt 10 && break
6129 done
6130 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6131 esac
6133 $ac_path_SED_found && break 3
6134 done
6135 done
6136 done
6137 IFS=$as_save_IFS
6138 if test -z "$ac_cv_path_SED"; then
6139 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6141 else
6142 ac_cv_path_SED=$SED
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6147 $as_echo "$ac_cv_path_SED" >&6; }
6148 SED="$ac_cv_path_SED"
6149 rm -f conftest.sed
6151 test -z "$SED" && SED=sed
6152 Xsed="$SED -e 1s/^X//"
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6165 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6166 if ${ac_cv_path_GREP+:} false; then :
6167 $as_echo_n "(cached) " >&6
6168 else
6169 if test -z "$GREP"; then
6170 ac_path_GREP_found=false
6171 # Loop through the user's path and test for each of PROGNAME-LIST
6172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6173 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6175 IFS=$as_save_IFS
6176 test -z "$as_dir" && as_dir=.
6177 for ac_prog in grep ggrep; do
6178 for ac_exec_ext in '' $ac_executable_extensions; do
6179 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6180 as_fn_executable_p "$ac_path_GREP" || continue
6181 # Check for GNU ac_path_GREP and select it if it is found.
6182 # Check for GNU $ac_path_GREP
6183 case `"$ac_path_GREP" --version 2>&1` in
6184 *GNU*)
6185 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6187 ac_count=0
6188 $as_echo_n 0123456789 >"conftest.in"
6189 while :
6191 cat "conftest.in" "conftest.in" >"conftest.tmp"
6192 mv "conftest.tmp" "conftest.in"
6193 cp "conftest.in" "conftest.nl"
6194 $as_echo 'GREP' >> "conftest.nl"
6195 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6196 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6197 as_fn_arith $ac_count + 1 && ac_count=$as_val
6198 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6199 # Best one so far, save it but keep looking for a better one
6200 ac_cv_path_GREP="$ac_path_GREP"
6201 ac_path_GREP_max=$ac_count
6203 # 10*(2^10) chars as input seems more than enough
6204 test $ac_count -gt 10 && break
6205 done
6206 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6207 esac
6209 $ac_path_GREP_found && break 3
6210 done
6211 done
6212 done
6213 IFS=$as_save_IFS
6214 if test -z "$ac_cv_path_GREP"; then
6215 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6217 else
6218 ac_cv_path_GREP=$GREP
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6223 $as_echo "$ac_cv_path_GREP" >&6; }
6224 GREP="$ac_cv_path_GREP"
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6228 $as_echo_n "checking for egrep... " >&6; }
6229 if ${ac_cv_path_EGREP+:} false; then :
6230 $as_echo_n "(cached) " >&6
6231 else
6232 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6233 then ac_cv_path_EGREP="$GREP -E"
6234 else
6235 if test -z "$EGREP"; then
6236 ac_path_EGREP_found=false
6237 # Loop through the user's path and test for each of PROGNAME-LIST
6238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6239 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6241 IFS=$as_save_IFS
6242 test -z "$as_dir" && as_dir=.
6243 for ac_prog in egrep; do
6244 for ac_exec_ext in '' $ac_executable_extensions; do
6245 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6246 as_fn_executable_p "$ac_path_EGREP" || continue
6247 # Check for GNU ac_path_EGREP and select it if it is found.
6248 # Check for GNU $ac_path_EGREP
6249 case `"$ac_path_EGREP" --version 2>&1` in
6250 *GNU*)
6251 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6253 ac_count=0
6254 $as_echo_n 0123456789 >"conftest.in"
6255 while :
6257 cat "conftest.in" "conftest.in" >"conftest.tmp"
6258 mv "conftest.tmp" "conftest.in"
6259 cp "conftest.in" "conftest.nl"
6260 $as_echo 'EGREP' >> "conftest.nl"
6261 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6262 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6263 as_fn_arith $ac_count + 1 && ac_count=$as_val
6264 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6265 # Best one so far, save it but keep looking for a better one
6266 ac_cv_path_EGREP="$ac_path_EGREP"
6267 ac_path_EGREP_max=$ac_count
6269 # 10*(2^10) chars as input seems more than enough
6270 test $ac_count -gt 10 && break
6271 done
6272 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6273 esac
6275 $ac_path_EGREP_found && break 3
6276 done
6277 done
6278 done
6279 IFS=$as_save_IFS
6280 if test -z "$ac_cv_path_EGREP"; then
6281 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6283 else
6284 ac_cv_path_EGREP=$EGREP
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6290 $as_echo "$ac_cv_path_EGREP" >&6; }
6291 EGREP="$ac_cv_path_EGREP"
6294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6295 $as_echo_n "checking for fgrep... " >&6; }
6296 if ${ac_cv_path_FGREP+:} false; then :
6297 $as_echo_n "(cached) " >&6
6298 else
6299 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6300 then ac_cv_path_FGREP="$GREP -F"
6301 else
6302 if test -z "$FGREP"; then
6303 ac_path_FGREP_found=false
6304 # Loop through the user's path and test for each of PROGNAME-LIST
6305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6306 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6308 IFS=$as_save_IFS
6309 test -z "$as_dir" && as_dir=.
6310 for ac_prog in fgrep; do
6311 for ac_exec_ext in '' $ac_executable_extensions; do
6312 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6313 as_fn_executable_p "$ac_path_FGREP" || continue
6314 # Check for GNU ac_path_FGREP and select it if it is found.
6315 # Check for GNU $ac_path_FGREP
6316 case `"$ac_path_FGREP" --version 2>&1` in
6317 *GNU*)
6318 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6320 ac_count=0
6321 $as_echo_n 0123456789 >"conftest.in"
6322 while :
6324 cat "conftest.in" "conftest.in" >"conftest.tmp"
6325 mv "conftest.tmp" "conftest.in"
6326 cp "conftest.in" "conftest.nl"
6327 $as_echo 'FGREP' >> "conftest.nl"
6328 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6329 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6330 as_fn_arith $ac_count + 1 && ac_count=$as_val
6331 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6332 # Best one so far, save it but keep looking for a better one
6333 ac_cv_path_FGREP="$ac_path_FGREP"
6334 ac_path_FGREP_max=$ac_count
6336 # 10*(2^10) chars as input seems more than enough
6337 test $ac_count -gt 10 && break
6338 done
6339 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6340 esac
6342 $ac_path_FGREP_found && break 3
6343 done
6344 done
6345 done
6346 IFS=$as_save_IFS
6347 if test -z "$ac_cv_path_FGREP"; then
6348 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6350 else
6351 ac_cv_path_FGREP=$FGREP
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6357 $as_echo "$ac_cv_path_FGREP" >&6; }
6358 FGREP="$ac_cv_path_FGREP"
6361 test -z "$GREP" && GREP=grep
6381 # Check whether --with-gnu-ld was given.
6382 if test "${with_gnu_ld+set}" = set; then :
6383 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
6384 else
6385 with_gnu_ld=no
6388 ac_prog=ld
6389 if test yes = "$GCC"; then
6390 # Check if gcc -print-prog-name=ld gives a path.
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6392 $as_echo_n "checking for ld used by $CC... " >&6; }
6393 case $host in
6394 *-*-mingw*)
6395 # gcc leaves a trailing carriage return, which upsets mingw
6396 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6398 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6399 esac
6400 case $ac_prog in
6401 # Accept absolute paths.
6402 [\\/]* | ?:[\\/]*)
6403 re_direlt='/[^/][^/]*/\.\./'
6404 # Canonicalize the pathname of ld
6405 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6406 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6407 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6408 done
6409 test -z "$LD" && LD=$ac_prog
6412 # If it fails, then pretend we aren't using GCC.
6413 ac_prog=ld
6416 # If it is relative, then search for the first ld in PATH.
6417 with_gnu_ld=unknown
6419 esac
6420 elif test yes = "$with_gnu_ld"; then
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6422 $as_echo_n "checking for GNU ld... " >&6; }
6423 else
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6425 $as_echo_n "checking for non-GNU ld... " >&6; }
6427 if ${lt_cv_path_LD+:} false; then :
6428 $as_echo_n "(cached) " >&6
6429 else
6430 if test -z "$LD"; then
6431 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6432 for ac_dir in $PATH; do
6433 IFS=$lt_save_ifs
6434 test -z "$ac_dir" && ac_dir=.
6435 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6436 lt_cv_path_LD=$ac_dir/$ac_prog
6437 # Check to see if the program is GNU ld. I'd rather use --version,
6438 # but apparently some variants of GNU ld only accept -v.
6439 # Break only if it was the GNU/non-GNU ld that we prefer.
6440 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6441 *GNU* | *'with BFD'*)
6442 test no != "$with_gnu_ld" && break
6445 test yes != "$with_gnu_ld" && break
6447 esac
6449 done
6450 IFS=$lt_save_ifs
6451 else
6452 lt_cv_path_LD=$LD # Let the user override the test with a path.
6456 LD=$lt_cv_path_LD
6457 if test -n "$LD"; then
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6459 $as_echo "$LD" >&6; }
6460 else
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6462 $as_echo "no" >&6; }
6464 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6466 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6467 if ${lt_cv_prog_gnu_ld+:} false; then :
6468 $as_echo_n "(cached) " >&6
6469 else
6470 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6471 case `$LD -v 2>&1 </dev/null` in
6472 *GNU* | *'with BFD'*)
6473 lt_cv_prog_gnu_ld=yes
6476 lt_cv_prog_gnu_ld=no
6478 esac
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6481 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6482 with_gnu_ld=$lt_cv_prog_gnu_ld
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6493 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6494 if ${lt_cv_path_NM+:} false; then :
6495 $as_echo_n "(cached) " >&6
6496 else
6497 if test -n "$NM"; then
6498 # Let the user override the test.
6499 lt_cv_path_NM=$NM
6500 else
6501 lt_nm_to_check=${ac_tool_prefix}nm
6502 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6503 lt_nm_to_check="$lt_nm_to_check nm"
6505 for lt_tmp_nm in $lt_nm_to_check; do
6506 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6507 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6508 IFS=$lt_save_ifs
6509 test -z "$ac_dir" && ac_dir=.
6510 tmp_nm=$ac_dir/$lt_tmp_nm
6511 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6512 # Check to see if the nm accepts a BSD-compat flag.
6513 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6514 # nm: unknown option "B" ignored
6515 # Tru64's nm complains that /dev/null is an invalid object file
6516 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6517 case $build_os in
6518 mingw*) lt_bad_file=conftest.nm/nofile ;;
6519 *) lt_bad_file=/dev/null ;;
6520 esac
6521 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
6522 *$lt_bad_file* | *'Invalid file or object type'*)
6523 lt_cv_path_NM="$tmp_nm -B"
6524 break 2
6527 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6528 */dev/null*)
6529 lt_cv_path_NM="$tmp_nm -p"
6530 break 2
6533 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6534 continue # so that we can try to find one that supports BSD flags
6536 esac
6538 esac
6540 done
6541 IFS=$lt_save_ifs
6542 done
6543 : ${lt_cv_path_NM=no}
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6547 $as_echo "$lt_cv_path_NM" >&6; }
6548 if test no != "$lt_cv_path_NM"; then
6549 NM=$lt_cv_path_NM
6550 else
6551 # Didn't find any BSD compatible name lister, look for dumpbin.
6552 if test -n "$DUMPBIN"; then :
6553 # Let the user override the test.
6554 else
6555 if test -n "$ac_tool_prefix"; then
6556 for ac_prog in dumpbin "link -dump"
6558 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6559 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6561 $as_echo_n "checking for $ac_word... " >&6; }
6562 if ${ac_cv_prog_DUMPBIN+:} false; then :
6563 $as_echo_n "(cached) " >&6
6564 else
6565 if test -n "$DUMPBIN"; then
6566 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6567 else
6568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6569 for as_dir in $PATH
6571 IFS=$as_save_IFS
6572 test -z "$as_dir" && as_dir=.
6573 for ac_exec_ext in '' $ac_executable_extensions; do
6574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6575 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6577 break 2
6579 done
6580 done
6581 IFS=$as_save_IFS
6585 DUMPBIN=$ac_cv_prog_DUMPBIN
6586 if test -n "$DUMPBIN"; then
6587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6588 $as_echo "$DUMPBIN" >&6; }
6589 else
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6591 $as_echo "no" >&6; }
6595 test -n "$DUMPBIN" && break
6596 done
6598 if test -z "$DUMPBIN"; then
6599 ac_ct_DUMPBIN=$DUMPBIN
6600 for ac_prog in dumpbin "link -dump"
6602 # Extract the first word of "$ac_prog", so it can be a program name with args.
6603 set dummy $ac_prog; ac_word=$2
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6605 $as_echo_n "checking for $ac_word... " >&6; }
6606 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6607 $as_echo_n "(cached) " >&6
6608 else
6609 if test -n "$ac_ct_DUMPBIN"; then
6610 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6611 else
6612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6613 for as_dir in $PATH
6615 IFS=$as_save_IFS
6616 test -z "$as_dir" && as_dir=.
6617 for ac_exec_ext in '' $ac_executable_extensions; do
6618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6619 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6621 break 2
6623 done
6624 done
6625 IFS=$as_save_IFS
6629 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6630 if test -n "$ac_ct_DUMPBIN"; then
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6632 $as_echo "$ac_ct_DUMPBIN" >&6; }
6633 else
6634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6635 $as_echo "no" >&6; }
6639 test -n "$ac_ct_DUMPBIN" && break
6640 done
6642 if test "x$ac_ct_DUMPBIN" = x; then
6643 DUMPBIN=":"
6644 else
6645 case $cross_compiling:$ac_tool_warned in
6646 yes:)
6647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6648 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6649 ac_tool_warned=yes ;;
6650 esac
6651 DUMPBIN=$ac_ct_DUMPBIN
6655 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6656 *COFF*)
6657 DUMPBIN="$DUMPBIN -symbols -headers"
6660 DUMPBIN=:
6662 esac
6665 if test : != "$DUMPBIN"; then
6666 NM=$DUMPBIN
6669 test -z "$NM" && NM=nm
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6677 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6678 if ${lt_cv_nm_interface+:} false; then :
6679 $as_echo_n "(cached) " >&6
6680 else
6681 lt_cv_nm_interface="BSD nm"
6682 echo "int some_variable = 0;" > conftest.$ac_ext
6683 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6684 (eval "$ac_compile" 2>conftest.err)
6685 cat conftest.err >&5
6686 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6687 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6688 cat conftest.err >&5
6689 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6690 cat conftest.out >&5
6691 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6692 lt_cv_nm_interface="MS dumpbin"
6694 rm -f conftest*
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6697 $as_echo "$lt_cv_nm_interface" >&6; }
6699 # find the maximum length of command line arguments
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6701 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6702 if ${lt_cv_sys_max_cmd_len+:} false; then :
6703 $as_echo_n "(cached) " >&6
6704 else
6706 teststring=ABCD
6708 case $build_os in
6709 msdosdjgpp*)
6710 # On DJGPP, this test can blow up pretty badly due to problems in libc
6711 # (any single argument exceeding 2000 bytes causes a buffer overrun
6712 # during glob expansion). Even if it were fixed, the result of this
6713 # check would be larger than it should be.
6714 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6717 gnu*)
6718 # Under GNU Hurd, this test is not required because there is
6719 # no limit to the length of command line arguments.
6720 # Libtool will interpret -1 as no limit whatsoever
6721 lt_cv_sys_max_cmd_len=-1;
6724 cygwin* | mingw* | cegcc*)
6725 # On Win9x/ME, this test blows up -- it succeeds, but takes
6726 # about 5 minutes as the teststring grows exponentially.
6727 # Worse, since 9x/ME are not pre-emptively multitasking,
6728 # you end up with a "frozen" computer, even though with patience
6729 # the test eventually succeeds (with a max line length of 256k).
6730 # Instead, let's just punt: use the minimum linelength reported by
6731 # all of the supported platforms: 8192 (on NT/2K/XP).
6732 lt_cv_sys_max_cmd_len=8192;
6735 mint*)
6736 # On MiNT this can take a long time and run out of memory.
6737 lt_cv_sys_max_cmd_len=8192;
6740 amigaos*)
6741 # On AmigaOS with pdksh, this test takes hours, literally.
6742 # So we just punt and use a minimum line length of 8192.
6743 lt_cv_sys_max_cmd_len=8192;
6746 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6747 # This has been around since 386BSD, at least. Likely further.
6748 if test -x /sbin/sysctl; then
6749 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6750 elif test -x /usr/sbin/sysctl; then
6751 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6752 else
6753 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6755 # And add a safety zone
6756 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6757 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6760 interix*)
6761 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6762 lt_cv_sys_max_cmd_len=196608
6765 os2*)
6766 # The test takes a long time on OS/2.
6767 lt_cv_sys_max_cmd_len=8192
6770 osf*)
6771 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6772 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6773 # nice to cause kernel panics so lets avoid the loop below.
6774 # First set a reasonable default.
6775 lt_cv_sys_max_cmd_len=16384
6777 if test -x /sbin/sysconfig; then
6778 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6779 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6780 esac
6783 sco3.2v5*)
6784 lt_cv_sys_max_cmd_len=102400
6786 sysv5* | sco5v6* | sysv4.2uw2*)
6787 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6788 if test -n "$kargmax"; then
6789 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6790 else
6791 lt_cv_sys_max_cmd_len=32768
6795 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6796 if test -n "$lt_cv_sys_max_cmd_len" && \
6797 test undefined != "$lt_cv_sys_max_cmd_len"; then
6798 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6799 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6800 else
6801 # Make teststring a little bigger before we do anything with it.
6802 # a 1K string should be a reasonable start.
6803 for i in 1 2 3 4 5 6 7 8; do
6804 teststring=$teststring$teststring
6805 done
6806 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6807 # If test is not a shell built-in, we'll probably end up computing a
6808 # maximum length that is only half of the actual maximum length, but
6809 # we can't tell.
6810 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6811 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6812 test 17 != "$i" # 1/2 MB should be enough
6814 i=`expr $i + 1`
6815 teststring=$teststring$teststring
6816 done
6817 # Only check the string length outside the loop.
6818 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6819 teststring=
6820 # Add a significant safety factor because C++ compilers can tack on
6821 # massive amounts of additional arguments before passing them to the
6822 # linker. It appears as though 1/2 is a usable value.
6823 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6826 esac
6830 if test -n "$lt_cv_sys_max_cmd_len"; then
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6832 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6833 else
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6835 $as_echo "none" >&6; }
6837 max_cmd_len=$lt_cv_sys_max_cmd_len
6844 : ${CP="cp -f"}
6845 : ${MV="mv -f"}
6846 : ${RM="rm -f"}
6848 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6849 lt_unset=unset
6850 else
6851 lt_unset=false
6858 # test EBCDIC or ASCII
6859 case `echo X|tr X '\101'` in
6860 A) # ASCII based system
6861 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6862 lt_SP2NL='tr \040 \012'
6863 lt_NL2SP='tr \015\012 \040\040'
6865 *) # EBCDIC based system
6866 lt_SP2NL='tr \100 \n'
6867 lt_NL2SP='tr \r\n \100\100'
6869 esac
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6880 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6881 if ${lt_cv_to_host_file_cmd+:} false; then :
6882 $as_echo_n "(cached) " >&6
6883 else
6884 case $host in
6885 *-*-mingw* )
6886 case $build in
6887 *-*-mingw* ) # actually msys
6888 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6890 *-*-cygwin* )
6891 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6893 * ) # otherwise, assume *nix
6894 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6896 esac
6898 *-*-cygwin* )
6899 case $build in
6900 *-*-mingw* ) # actually msys
6901 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6903 *-*-cygwin* )
6904 lt_cv_to_host_file_cmd=func_convert_file_noop
6906 * ) # otherwise, assume *nix
6907 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6909 esac
6911 * ) # unhandled hosts (and "normal" native builds)
6912 lt_cv_to_host_file_cmd=func_convert_file_noop
6914 esac
6918 to_host_file_cmd=$lt_cv_to_host_file_cmd
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6920 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6927 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6928 if ${lt_cv_to_tool_file_cmd+:} false; then :
6929 $as_echo_n "(cached) " >&6
6930 else
6931 #assume ordinary cross tools, or native build.
6932 lt_cv_to_tool_file_cmd=func_convert_file_noop
6933 case $host in
6934 *-*-mingw* )
6935 case $build in
6936 *-*-mingw* ) # actually msys
6937 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6939 esac
6941 esac
6945 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6947 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6954 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6955 if ${lt_cv_ld_reload_flag+:} false; then :
6956 $as_echo_n "(cached) " >&6
6957 else
6958 lt_cv_ld_reload_flag='-r'
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6961 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6962 reload_flag=$lt_cv_ld_reload_flag
6963 case $reload_flag in
6964 "" | " "*) ;;
6965 *) reload_flag=" $reload_flag" ;;
6966 esac
6967 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6968 case $host_os in
6969 cygwin* | mingw* | pw32* | cegcc*)
6970 if test yes != "$GCC"; then
6971 reload_cmds=false
6974 darwin*)
6975 if test yes = "$GCC"; then
6976 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6977 else
6978 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6981 esac
6991 if test -n "$ac_tool_prefix"; then
6992 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6993 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6995 $as_echo_n "checking for $ac_word... " >&6; }
6996 if ${ac_cv_prog_OBJDUMP+:} false; then :
6997 $as_echo_n "(cached) " >&6
6998 else
6999 if test -n "$OBJDUMP"; then
7000 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7001 else
7002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7003 for as_dir in $PATH
7005 IFS=$as_save_IFS
7006 test -z "$as_dir" && as_dir=.
7007 for ac_exec_ext in '' $ac_executable_extensions; do
7008 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7009 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7011 break 2
7013 done
7014 done
7015 IFS=$as_save_IFS
7019 OBJDUMP=$ac_cv_prog_OBJDUMP
7020 if test -n "$OBJDUMP"; then
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7022 $as_echo "$OBJDUMP" >&6; }
7023 else
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7025 $as_echo "no" >&6; }
7030 if test -z "$ac_cv_prog_OBJDUMP"; then
7031 ac_ct_OBJDUMP=$OBJDUMP
7032 # Extract the first word of "objdump", so it can be a program name with args.
7033 set dummy objdump; ac_word=$2
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7035 $as_echo_n "checking for $ac_word... " >&6; }
7036 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7037 $as_echo_n "(cached) " >&6
7038 else
7039 if test -n "$ac_ct_OBJDUMP"; then
7040 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7041 else
7042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7043 for as_dir in $PATH
7045 IFS=$as_save_IFS
7046 test -z "$as_dir" && as_dir=.
7047 for ac_exec_ext in '' $ac_executable_extensions; do
7048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7049 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7051 break 2
7053 done
7054 done
7055 IFS=$as_save_IFS
7059 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7060 if test -n "$ac_ct_OBJDUMP"; then
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7062 $as_echo "$ac_ct_OBJDUMP" >&6; }
7063 else
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7065 $as_echo "no" >&6; }
7068 if test "x$ac_ct_OBJDUMP" = x; then
7069 OBJDUMP="false"
7070 else
7071 case $cross_compiling:$ac_tool_warned in
7072 yes:)
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7074 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7075 ac_tool_warned=yes ;;
7076 esac
7077 OBJDUMP=$ac_ct_OBJDUMP
7079 else
7080 OBJDUMP="$ac_cv_prog_OBJDUMP"
7083 test -z "$OBJDUMP" && OBJDUMP=objdump
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7094 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7095 if ${lt_cv_deplibs_check_method+:} false; then :
7096 $as_echo_n "(cached) " >&6
7097 else
7098 lt_cv_file_magic_cmd='$MAGIC_CMD'
7099 lt_cv_file_magic_test_file=
7100 lt_cv_deplibs_check_method='unknown'
7101 # Need to set the preceding variable on all platforms that support
7102 # interlibrary dependencies.
7103 # 'none' -- dependencies not supported.
7104 # 'unknown' -- same as none, but documents that we really don't know.
7105 # 'pass_all' -- all dependencies passed with no checks.
7106 # 'test_compile' -- check by making test program.
7107 # 'file_magic [[regex]]' -- check by looking for files in library path
7108 # that responds to the $file_magic_cmd with a given extended regex.
7109 # If you have 'file' or equivalent on your system and you're not sure
7110 # whether 'pass_all' will *always* work, you probably want this one.
7112 case $host_os in
7113 aix[4-9]*)
7114 lt_cv_deplibs_check_method=pass_all
7117 beos*)
7118 lt_cv_deplibs_check_method=pass_all
7121 bsdi[45]*)
7122 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7123 lt_cv_file_magic_cmd='/usr/bin/file -L'
7124 lt_cv_file_magic_test_file=/shlib/libc.so
7127 cygwin*)
7128 # func_win32_libid is a shell function defined in ltmain.sh
7129 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7130 lt_cv_file_magic_cmd='func_win32_libid'
7133 mingw* | pw32*)
7134 # Base MSYS/MinGW do not provide the 'file' command needed by
7135 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7136 # unless we find 'file', for example because we are cross-compiling.
7137 if ( file / ) >/dev/null 2>&1; then
7138 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7139 lt_cv_file_magic_cmd='func_win32_libid'
7140 else
7141 # Keep this pattern in sync with the one in func_win32_libid.
7142 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7143 lt_cv_file_magic_cmd='$OBJDUMP -f'
7147 cegcc*)
7148 # use the weaker test based on 'objdump'. See mingw*.
7149 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7150 lt_cv_file_magic_cmd='$OBJDUMP -f'
7153 darwin* | rhapsody*)
7154 lt_cv_deplibs_check_method=pass_all
7157 freebsd* | dragonfly*)
7158 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7159 case $host_cpu in
7160 i*86 )
7161 # Not sure whether the presence of OpenBSD here was a mistake.
7162 # Let's accept both of them until this is cleared up.
7163 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7164 lt_cv_file_magic_cmd=/usr/bin/file
7165 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7167 esac
7168 else
7169 lt_cv_deplibs_check_method=pass_all
7173 haiku*)
7174 lt_cv_deplibs_check_method=pass_all
7177 hpux10.20* | hpux11*)
7178 lt_cv_file_magic_cmd=/usr/bin/file
7179 case $host_cpu in
7180 ia64*)
7181 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7182 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7184 hppa*64*)
7185 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]'
7186 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7189 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7190 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7192 esac
7195 interix[3-9]*)
7196 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7197 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7200 irix5* | irix6* | nonstopux*)
7201 case $LD in
7202 *-32|*"-32 ") libmagic=32-bit;;
7203 *-n32|*"-n32 ") libmagic=N32;;
7204 *-64|*"-64 ") libmagic=64-bit;;
7205 *) libmagic=never-match;;
7206 esac
7207 lt_cv_deplibs_check_method=pass_all
7210 # This must be glibc/ELF.
7211 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7212 lt_cv_deplibs_check_method=pass_all
7215 netbsd*)
7216 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7217 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7218 else
7219 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7223 newos6*)
7224 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7225 lt_cv_file_magic_cmd=/usr/bin/file
7226 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7229 *nto* | *qnx*)
7230 lt_cv_deplibs_check_method=pass_all
7233 openbsd* | bitrig*)
7234 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
7235 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7236 else
7237 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7241 osf3* | osf4* | osf5*)
7242 lt_cv_deplibs_check_method=pass_all
7245 rdos*)
7246 lt_cv_deplibs_check_method=pass_all
7249 solaris*)
7250 lt_cv_deplibs_check_method=pass_all
7253 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7254 lt_cv_deplibs_check_method=pass_all
7257 sysv4 | sysv4.3*)
7258 case $host_vendor in
7259 motorola)
7260 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]'
7261 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7263 ncr)
7264 lt_cv_deplibs_check_method=pass_all
7266 sequent)
7267 lt_cv_file_magic_cmd='/bin/file'
7268 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7270 sni)
7271 lt_cv_file_magic_cmd='/bin/file'
7272 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7273 lt_cv_file_magic_test_file=/lib/libc.so
7275 siemens)
7276 lt_cv_deplibs_check_method=pass_all
7279 lt_cv_deplibs_check_method=pass_all
7281 esac
7284 tpf*)
7285 lt_cv_deplibs_check_method=pass_all
7287 os2*)
7288 lt_cv_deplibs_check_method=pass_all
7290 esac
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7294 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7296 file_magic_glob=
7297 want_nocaseglob=no
7298 if test "$build" = "$host"; then
7299 case $host_os in
7300 mingw* | pw32*)
7301 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7302 want_nocaseglob=yes
7303 else
7304 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7307 esac
7310 file_magic_cmd=$lt_cv_file_magic_cmd
7311 deplibs_check_method=$lt_cv_deplibs_check_method
7312 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7335 if test -n "$ac_tool_prefix"; then
7336 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7337 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7339 $as_echo_n "checking for $ac_word... " >&6; }
7340 if ${ac_cv_prog_DLLTOOL+:} false; then :
7341 $as_echo_n "(cached) " >&6
7342 else
7343 if test -n "$DLLTOOL"; then
7344 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7345 else
7346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7347 for as_dir in $PATH
7349 IFS=$as_save_IFS
7350 test -z "$as_dir" && as_dir=.
7351 for ac_exec_ext in '' $ac_executable_extensions; do
7352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7353 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7355 break 2
7357 done
7358 done
7359 IFS=$as_save_IFS
7363 DLLTOOL=$ac_cv_prog_DLLTOOL
7364 if test -n "$DLLTOOL"; then
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7366 $as_echo "$DLLTOOL" >&6; }
7367 else
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7369 $as_echo "no" >&6; }
7374 if test -z "$ac_cv_prog_DLLTOOL"; then
7375 ac_ct_DLLTOOL=$DLLTOOL
7376 # Extract the first word of "dlltool", so it can be a program name with args.
7377 set dummy dlltool; ac_word=$2
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7379 $as_echo_n "checking for $ac_word... " >&6; }
7380 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7381 $as_echo_n "(cached) " >&6
7382 else
7383 if test -n "$ac_ct_DLLTOOL"; then
7384 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7385 else
7386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7387 for as_dir in $PATH
7389 IFS=$as_save_IFS
7390 test -z "$as_dir" && as_dir=.
7391 for ac_exec_ext in '' $ac_executable_extensions; do
7392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7393 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7395 break 2
7397 done
7398 done
7399 IFS=$as_save_IFS
7403 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7404 if test -n "$ac_ct_DLLTOOL"; then
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7406 $as_echo "$ac_ct_DLLTOOL" >&6; }
7407 else
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7409 $as_echo "no" >&6; }
7412 if test "x$ac_ct_DLLTOOL" = x; then
7413 DLLTOOL="false"
7414 else
7415 case $cross_compiling:$ac_tool_warned in
7416 yes:)
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7418 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7419 ac_tool_warned=yes ;;
7420 esac
7421 DLLTOOL=$ac_ct_DLLTOOL
7423 else
7424 DLLTOOL="$ac_cv_prog_DLLTOOL"
7427 test -z "$DLLTOOL" && DLLTOOL=dlltool
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7439 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7440 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7441 $as_echo_n "(cached) " >&6
7442 else
7443 lt_cv_sharedlib_from_linklib_cmd='unknown'
7445 case $host_os in
7446 cygwin* | mingw* | pw32* | cegcc*)
7447 # two different shell functions defined in ltmain.sh;
7448 # decide which one to use based on capabilities of $DLLTOOL
7449 case `$DLLTOOL --help 2>&1` in
7450 *--identify-strict*)
7451 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7454 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7456 esac
7459 # fallback: assume linklib IS sharedlib
7460 lt_cv_sharedlib_from_linklib_cmd=$ECHO
7462 esac
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7466 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7467 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7468 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7477 if test -n "$ac_tool_prefix"; then
7478 for ac_prog in ar
7480 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7481 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7483 $as_echo_n "checking for $ac_word... " >&6; }
7484 if ${ac_cv_prog_AR+:} false; then :
7485 $as_echo_n "(cached) " >&6
7486 else
7487 if test -n "$AR"; then
7488 ac_cv_prog_AR="$AR" # Let the user override the test.
7489 else
7490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7491 for as_dir in $PATH
7493 IFS=$as_save_IFS
7494 test -z "$as_dir" && as_dir=.
7495 for ac_exec_ext in '' $ac_executable_extensions; do
7496 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7497 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7499 break 2
7501 done
7502 done
7503 IFS=$as_save_IFS
7507 AR=$ac_cv_prog_AR
7508 if test -n "$AR"; then
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7510 $as_echo "$AR" >&6; }
7511 else
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7513 $as_echo "no" >&6; }
7517 test -n "$AR" && break
7518 done
7520 if test -z "$AR"; then
7521 ac_ct_AR=$AR
7522 for ac_prog in ar
7524 # Extract the first word of "$ac_prog", so it can be a program name with args.
7525 set dummy $ac_prog; ac_word=$2
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7527 $as_echo_n "checking for $ac_word... " >&6; }
7528 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7529 $as_echo_n "(cached) " >&6
7530 else
7531 if test -n "$ac_ct_AR"; then
7532 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7533 else
7534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7535 for as_dir in $PATH
7537 IFS=$as_save_IFS
7538 test -z "$as_dir" && as_dir=.
7539 for ac_exec_ext in '' $ac_executable_extensions; do
7540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7541 ac_cv_prog_ac_ct_AR="$ac_prog"
7542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7543 break 2
7545 done
7546 done
7547 IFS=$as_save_IFS
7551 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7552 if test -n "$ac_ct_AR"; then
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7554 $as_echo "$ac_ct_AR" >&6; }
7555 else
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7557 $as_echo "no" >&6; }
7561 test -n "$ac_ct_AR" && break
7562 done
7564 if test "x$ac_ct_AR" = x; then
7565 AR="false"
7566 else
7567 case $cross_compiling:$ac_tool_warned in
7568 yes:)
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7570 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7571 ac_tool_warned=yes ;;
7572 esac
7573 AR=$ac_ct_AR
7577 : ${AR=ar}
7578 : ${AR_FLAGS=cru}
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7591 $as_echo_n "checking for archiver @FILE support... " >&6; }
7592 if ${lt_cv_ar_at_file+:} false; then :
7593 $as_echo_n "(cached) " >&6
7594 else
7595 lt_cv_ar_at_file=no
7596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7597 /* end confdefs.h. */
7600 main ()
7604 return 0;
7606 _ACEOF
7607 if ac_fn_c_try_compile "$LINENO"; then :
7608 echo conftest.$ac_objext > conftest.lst
7609 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7610 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7611 (eval $lt_ar_try) 2>&5
7612 ac_status=$?
7613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7614 test $ac_status = 0; }
7615 if test 0 -eq "$ac_status"; then
7616 # Ensure the archiver fails upon bogus file names.
7617 rm -f conftest.$ac_objext libconftest.a
7618 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7619 (eval $lt_ar_try) 2>&5
7620 ac_status=$?
7621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7622 test $ac_status = 0; }
7623 if test 0 -ne "$ac_status"; then
7624 lt_cv_ar_at_file=@
7627 rm -f conftest.* libconftest.a
7630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7634 $as_echo "$lt_cv_ar_at_file" >&6; }
7636 if test no = "$lt_cv_ar_at_file"; then
7637 archiver_list_spec=
7638 else
7639 archiver_list_spec=$lt_cv_ar_at_file
7648 if test -n "$ac_tool_prefix"; then
7649 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7650 set dummy ${ac_tool_prefix}strip; ac_word=$2
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7652 $as_echo_n "checking for $ac_word... " >&6; }
7653 if ${ac_cv_prog_STRIP+:} false; then :
7654 $as_echo_n "(cached) " >&6
7655 else
7656 if test -n "$STRIP"; then
7657 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7658 else
7659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7660 for as_dir in $PATH
7662 IFS=$as_save_IFS
7663 test -z "$as_dir" && as_dir=.
7664 for ac_exec_ext in '' $ac_executable_extensions; do
7665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7666 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7668 break 2
7670 done
7671 done
7672 IFS=$as_save_IFS
7676 STRIP=$ac_cv_prog_STRIP
7677 if test -n "$STRIP"; then
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7679 $as_echo "$STRIP" >&6; }
7680 else
7681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7682 $as_echo "no" >&6; }
7687 if test -z "$ac_cv_prog_STRIP"; then
7688 ac_ct_STRIP=$STRIP
7689 # Extract the first word of "strip", so it can be a program name with args.
7690 set dummy strip; ac_word=$2
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7692 $as_echo_n "checking for $ac_word... " >&6; }
7693 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7694 $as_echo_n "(cached) " >&6
7695 else
7696 if test -n "$ac_ct_STRIP"; then
7697 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7698 else
7699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7700 for as_dir in $PATH
7702 IFS=$as_save_IFS
7703 test -z "$as_dir" && as_dir=.
7704 for ac_exec_ext in '' $ac_executable_extensions; do
7705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7706 ac_cv_prog_ac_ct_STRIP="strip"
7707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7708 break 2
7710 done
7711 done
7712 IFS=$as_save_IFS
7716 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7717 if test -n "$ac_ct_STRIP"; then
7718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7719 $as_echo "$ac_ct_STRIP" >&6; }
7720 else
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7722 $as_echo "no" >&6; }
7725 if test "x$ac_ct_STRIP" = x; then
7726 STRIP=":"
7727 else
7728 case $cross_compiling:$ac_tool_warned in
7729 yes:)
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7731 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7732 ac_tool_warned=yes ;;
7733 esac
7734 STRIP=$ac_ct_STRIP
7736 else
7737 STRIP="$ac_cv_prog_STRIP"
7740 test -z "$STRIP" && STRIP=:
7747 if test -n "$ac_tool_prefix"; then
7748 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7749 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7751 $as_echo_n "checking for $ac_word... " >&6; }
7752 if ${ac_cv_prog_RANLIB+:} false; then :
7753 $as_echo_n "(cached) " >&6
7754 else
7755 if test -n "$RANLIB"; then
7756 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7757 else
7758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7759 for as_dir in $PATH
7761 IFS=$as_save_IFS
7762 test -z "$as_dir" && as_dir=.
7763 for ac_exec_ext in '' $ac_executable_extensions; do
7764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7765 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7767 break 2
7769 done
7770 done
7771 IFS=$as_save_IFS
7775 RANLIB=$ac_cv_prog_RANLIB
7776 if test -n "$RANLIB"; then
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7778 $as_echo "$RANLIB" >&6; }
7779 else
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7781 $as_echo "no" >&6; }
7786 if test -z "$ac_cv_prog_RANLIB"; then
7787 ac_ct_RANLIB=$RANLIB
7788 # Extract the first word of "ranlib", so it can be a program name with args.
7789 set dummy ranlib; ac_word=$2
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7791 $as_echo_n "checking for $ac_word... " >&6; }
7792 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7793 $as_echo_n "(cached) " >&6
7794 else
7795 if test -n "$ac_ct_RANLIB"; then
7796 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7797 else
7798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7799 for as_dir in $PATH
7801 IFS=$as_save_IFS
7802 test -z "$as_dir" && as_dir=.
7803 for ac_exec_ext in '' $ac_executable_extensions; do
7804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7805 ac_cv_prog_ac_ct_RANLIB="ranlib"
7806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7807 break 2
7809 done
7810 done
7811 IFS=$as_save_IFS
7815 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7816 if test -n "$ac_ct_RANLIB"; then
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7818 $as_echo "$ac_ct_RANLIB" >&6; }
7819 else
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7821 $as_echo "no" >&6; }
7824 if test "x$ac_ct_RANLIB" = x; then
7825 RANLIB=":"
7826 else
7827 case $cross_compiling:$ac_tool_warned in
7828 yes:)
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7830 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7831 ac_tool_warned=yes ;;
7832 esac
7833 RANLIB=$ac_ct_RANLIB
7835 else
7836 RANLIB="$ac_cv_prog_RANLIB"
7839 test -z "$RANLIB" && RANLIB=:
7846 # Determine commands to create old-style static archives.
7847 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7848 old_postinstall_cmds='chmod 644 $oldlib'
7849 old_postuninstall_cmds=
7851 if test -n "$RANLIB"; then
7852 case $host_os in
7853 bitrig* | openbsd*)
7854 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7857 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7859 esac
7860 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7863 case $host_os in
7864 darwin*)
7865 lock_old_archive_extraction=yes ;;
7867 lock_old_archive_extraction=no ;;
7868 esac
7908 # If no C compiler was specified, use CC.
7909 LTCC=${LTCC-"$CC"}
7911 # If no C compiler flags were specified, use CFLAGS.
7912 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7914 # Allow CC to be a program name with arguments.
7915 compiler=$CC
7918 # Check for command to grab the raw symbol name followed by C symbol from nm.
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7920 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7921 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7922 $as_echo_n "(cached) " >&6
7923 else
7925 # These are sane defaults that work on at least a few old systems.
7926 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7928 # Character class describing NM global symbol codes.
7929 symcode='[BCDEGRST]'
7931 # Regexp to match symbols that can be accessed directly from C.
7932 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7934 # Define system-specific variables.
7935 case $host_os in
7936 aix*)
7937 symcode='[BCDT]'
7939 cygwin* | mingw* | pw32* | cegcc*)
7940 symcode='[ABCDGISTW]'
7942 hpux*)
7943 if test ia64 = "$host_cpu"; then
7944 symcode='[ABCDEGRST]'
7947 irix* | nonstopux*)
7948 symcode='[BCDEGRST]'
7950 osf*)
7951 symcode='[BCDEGQRST]'
7953 solaris*)
7954 symcode='[BDRT]'
7956 sco3.2v5*)
7957 symcode='[DT]'
7959 sysv4.2uw2*)
7960 symcode='[DT]'
7962 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7963 symcode='[ABDT]'
7965 sysv4)
7966 symcode='[DFNSTU]'
7968 esac
7970 # If we're using GNU nm, then use its standard symbol codes.
7971 case `$NM -V 2>&1` in
7972 *GNU* | *'with BFD'*)
7973 symcode='[ABCDGIRSTW]' ;;
7974 esac
7976 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7977 # Gets list of data symbols to import.
7978 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7979 # Adjust the below global symbol transforms to fixup imported variables.
7980 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7981 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7982 lt_c_name_lib_hook="\
7983 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7984 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7985 else
7986 # Disable hooks by default.
7987 lt_cv_sys_global_symbol_to_import=
7988 lt_cdecl_hook=
7989 lt_c_name_hook=
7990 lt_c_name_lib_hook=
7993 # Transform an extracted symbol line into a proper C declaration.
7994 # Some systems (esp. on ia64) link data and code symbols differently,
7995 # so use this general approach.
7996 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7997 $lt_cdecl_hook\
7998 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7999 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
8001 # Transform an extracted symbol line into symbol name and symbol address
8002 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
8003 $lt_c_name_hook\
8004 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8005 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
8007 # Transform an extracted symbol line into symbol name with lib prefix and
8008 # symbol address.
8009 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
8010 $lt_c_name_lib_hook\
8011 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8012 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
8013 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
8015 # Handle CRLF in mingw tool chain
8016 opt_cr=
8017 case $build_os in
8018 mingw*)
8019 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8021 esac
8023 # Try without a prefix underscore, then with it.
8024 for ac_symprfx in "" "_"; do
8026 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8027 symxfrm="\\1 $ac_symprfx\\2 \\2"
8029 # Write the raw and C identifiers.
8030 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8031 # Fake it for dumpbin and say T for any non-static function,
8032 # D for any global variable and I for any imported variable.
8033 # Also find C++ and __fastcall symbols from MSVC++,
8034 # which start with @ or ?.
8035 lt_cv_sys_global_symbol_pipe="$AWK '"\
8036 " {last_section=section; section=\$ 3};"\
8037 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8038 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8039 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
8040 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
8041 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
8042 " \$ 0!~/External *\|/{next};"\
8043 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8044 " {if(hide[section]) next};"\
8045 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
8046 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
8047 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
8048 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
8049 " ' prfx=^$ac_symprfx"
8050 else
8051 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8053 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8055 # Check to see that the pipe works correctly.
8056 pipe_works=no
8058 rm -f conftest*
8059 cat > conftest.$ac_ext <<_LT_EOF
8060 #ifdef __cplusplus
8061 extern "C" {
8062 #endif
8063 char nm_test_var;
8064 void nm_test_func(void);
8065 void nm_test_func(void){}
8066 #ifdef __cplusplus
8068 #endif
8069 int main(){nm_test_var='a';nm_test_func();return(0);}
8070 _LT_EOF
8072 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8073 (eval $ac_compile) 2>&5
8074 ac_status=$?
8075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8076 test $ac_status = 0; }; then
8077 # Now try to grab the symbols.
8078 nlist=conftest.nm
8079 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8080 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8081 ac_status=$?
8082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8083 test $ac_status = 0; } && test -s "$nlist"; then
8084 # Try sorting and uniquifying the output.
8085 if sort "$nlist" | uniq > "$nlist"T; then
8086 mv -f "$nlist"T "$nlist"
8087 else
8088 rm -f "$nlist"T
8091 # Make sure that we snagged all the symbols we need.
8092 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8093 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8094 cat <<_LT_EOF > conftest.$ac_ext
8095 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
8096 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
8097 /* DATA imports from DLLs on WIN32 can't be const, because runtime
8098 relocations are performed -- see ld's documentation on pseudo-relocs. */
8099 # define LT_DLSYM_CONST
8100 #elif defined __osf__
8101 /* This system does not cope well with relocations in const data. */
8102 # define LT_DLSYM_CONST
8103 #else
8104 # define LT_DLSYM_CONST const
8105 #endif
8107 #ifdef __cplusplus
8108 extern "C" {
8109 #endif
8111 _LT_EOF
8112 # Now generate the symbol file.
8113 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8115 cat <<_LT_EOF >> conftest.$ac_ext
8117 /* The mapping between symbol names and symbols. */
8118 LT_DLSYM_CONST struct {
8119 const char *name;
8120 void *address;
8122 lt__PROGRAM__LTX_preloaded_symbols[] =
8124 { "@PROGRAM@", (void *) 0 },
8125 _LT_EOF
8126 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8127 cat <<\_LT_EOF >> conftest.$ac_ext
8128 {0, (void *) 0}
8131 /* This works around a problem in FreeBSD linker */
8132 #ifdef FREEBSD_WORKAROUND
8133 static const void *lt_preloaded_setup() {
8134 return lt__PROGRAM__LTX_preloaded_symbols;
8136 #endif
8138 #ifdef __cplusplus
8140 #endif
8141 _LT_EOF
8142 # Now try linking the two files.
8143 mv conftest.$ac_objext conftstm.$ac_objext
8144 lt_globsym_save_LIBS=$LIBS
8145 lt_globsym_save_CFLAGS=$CFLAGS
8146 LIBS=conftstm.$ac_objext
8147 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8148 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8149 (eval $ac_link) 2>&5
8150 ac_status=$?
8151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8152 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8153 pipe_works=yes
8155 LIBS=$lt_globsym_save_LIBS
8156 CFLAGS=$lt_globsym_save_CFLAGS
8157 else
8158 echo "cannot find nm_test_func in $nlist" >&5
8160 else
8161 echo "cannot find nm_test_var in $nlist" >&5
8163 else
8164 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8166 else
8167 echo "$progname: failed program was:" >&5
8168 cat conftest.$ac_ext >&5
8170 rm -rf conftest* conftst*
8172 # Do not use the global_symbol_pipe unless it works.
8173 if test yes = "$pipe_works"; then
8174 break
8175 else
8176 lt_cv_sys_global_symbol_pipe=
8178 done
8182 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8183 lt_cv_sys_global_symbol_to_cdecl=
8185 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8187 $as_echo "failed" >&6; }
8188 else
8189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8190 $as_echo "ok" >&6; }
8193 # Response file support.
8194 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8195 nm_file_list_spec='@'
8196 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8197 nm_file_list_spec='@'
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8237 $as_echo_n "checking for sysroot... " >&6; }
8239 # Check whether --with-sysroot was given.
8240 if test "${with_sysroot+set}" = set; then :
8241 withval=$with_sysroot;
8242 else
8243 with_sysroot=no
8247 lt_sysroot=
8248 case $with_sysroot in #(
8249 yes)
8250 if test yes = "$GCC"; then
8251 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8253 ;; #(
8255 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8256 ;; #(
8257 no|'')
8258 ;; #(
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
8261 $as_echo "$with_sysroot" >&6; }
8262 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8264 esac
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8267 $as_echo "${lt_sysroot:-no}" >&6; }
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
8274 $as_echo_n "checking for a working dd... " >&6; }
8275 if ${ac_cv_path_lt_DD+:} false; then :
8276 $as_echo_n "(cached) " >&6
8277 else
8278 printf 0123456789abcdef0123456789abcdef >conftest.i
8279 cat conftest.i conftest.i >conftest2.i
8280 : ${lt_DD:=$DD}
8281 if test -z "$lt_DD"; then
8282 ac_path_lt_DD_found=false
8283 # Loop through the user's path and test for each of PROGNAME-LIST
8284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8285 for as_dir in $PATH
8287 IFS=$as_save_IFS
8288 test -z "$as_dir" && as_dir=.
8289 for ac_prog in dd; do
8290 for ac_exec_ext in '' $ac_executable_extensions; do
8291 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
8292 as_fn_executable_p "$ac_path_lt_DD" || continue
8293 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8294 cmp -s conftest.i conftest.out \
8295 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
8297 $ac_path_lt_DD_found && break 3
8298 done
8299 done
8300 done
8301 IFS=$as_save_IFS
8302 if test -z "$ac_cv_path_lt_DD"; then
8305 else
8306 ac_cv_path_lt_DD=$lt_DD
8309 rm -f conftest.i conftest2.i conftest.out
8311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8312 $as_echo "$ac_cv_path_lt_DD" >&6; }
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8316 $as_echo_n "checking how to truncate binary pipes... " >&6; }
8317 if ${lt_cv_truncate_bin+:} false; then :
8318 $as_echo_n "(cached) " >&6
8319 else
8320 printf 0123456789abcdef0123456789abcdef >conftest.i
8321 cat conftest.i conftest.i >conftest2.i
8322 lt_cv_truncate_bin=
8323 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8324 cmp -s conftest.i conftest.out \
8325 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8327 rm -f conftest.i conftest2.i conftest.out
8328 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8331 $as_echo "$lt_cv_truncate_bin" >&6; }
8339 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
8340 func_cc_basename ()
8342 for cc_temp in $*""; do
8343 case $cc_temp in
8344 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8345 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8346 \-*) ;;
8347 *) break;;
8348 esac
8349 done
8350 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8353 # Check whether --enable-libtool-lock was given.
8354 if test "${enable_libtool_lock+set}" = set; then :
8355 enableval=$enable_libtool_lock;
8358 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8360 # Some flags need to be propagated to the compiler or linker for good
8361 # libtool support.
8362 case $host in
8363 ia64-*-hpux*)
8364 # Find out what ABI is being produced by ac_compile, and set mode
8365 # options accordingly.
8366 echo 'int i;' > conftest.$ac_ext
8367 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8368 (eval $ac_compile) 2>&5
8369 ac_status=$?
8370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8371 test $ac_status = 0; }; then
8372 case `/usr/bin/file conftest.$ac_objext` in
8373 *ELF-32*)
8374 HPUX_IA64_MODE=32
8376 *ELF-64*)
8377 HPUX_IA64_MODE=64
8379 esac
8381 rm -rf conftest*
8383 *-*-irix6*)
8384 # Find out what ABI is being produced by ac_compile, and set linker
8385 # options accordingly.
8386 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8387 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8388 (eval $ac_compile) 2>&5
8389 ac_status=$?
8390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8391 test $ac_status = 0; }; then
8392 if test yes = "$lt_cv_prog_gnu_ld"; then
8393 case `/usr/bin/file conftest.$ac_objext` in
8394 *32-bit*)
8395 LD="${LD-ld} -melf32bsmip"
8397 *N32*)
8398 LD="${LD-ld} -melf32bmipn32"
8400 *64-bit*)
8401 LD="${LD-ld} -melf64bmip"
8403 esac
8404 else
8405 case `/usr/bin/file conftest.$ac_objext` in
8406 *32-bit*)
8407 LD="${LD-ld} -32"
8409 *N32*)
8410 LD="${LD-ld} -n32"
8412 *64-bit*)
8413 LD="${LD-ld} -64"
8415 esac
8418 rm -rf conftest*
8421 mips64*-*linux*)
8422 # Find out what ABI is being produced by ac_compile, and set linker
8423 # options accordingly.
8424 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8425 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8426 (eval $ac_compile) 2>&5
8427 ac_status=$?
8428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8429 test $ac_status = 0; }; then
8430 emul=elf
8431 case `/usr/bin/file conftest.$ac_objext` in
8432 *32-bit*)
8433 emul="${emul}32"
8435 *64-bit*)
8436 emul="${emul}64"
8438 esac
8439 case `/usr/bin/file conftest.$ac_objext` in
8440 *MSB*)
8441 emul="${emul}btsmip"
8443 *LSB*)
8444 emul="${emul}ltsmip"
8446 esac
8447 case `/usr/bin/file conftest.$ac_objext` in
8448 *N32*)
8449 emul="${emul}n32"
8451 esac
8452 LD="${LD-ld} -m $emul"
8454 rm -rf conftest*
8457 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8458 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8459 # Find out what ABI is being produced by ac_compile, and set linker
8460 # options accordingly. Note that the listed cases only cover the
8461 # situations where additional linker options are needed (such as when
8462 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8463 # vice versa); the common cases where no linker options are needed do
8464 # not appear in the list.
8465 echo 'int i;' > conftest.$ac_ext
8466 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8467 (eval $ac_compile) 2>&5
8468 ac_status=$?
8469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8470 test $ac_status = 0; }; then
8471 case `/usr/bin/file conftest.o` in
8472 *32-bit*)
8473 case $host in
8474 x86_64-*kfreebsd*-gnu)
8475 LD="${LD-ld} -m elf_i386_fbsd"
8477 x86_64-*linux*)
8478 case `/usr/bin/file conftest.o` in
8479 *x86-64*)
8480 LD="${LD-ld} -m elf32_x86_64"
8483 LD="${LD-ld} -m elf_i386"
8485 esac
8487 powerpc64le-*linux*)
8488 LD="${LD-ld} -m elf32lppclinux"
8490 powerpc64-*linux*)
8491 LD="${LD-ld} -m elf32ppclinux"
8493 s390x-*linux*)
8494 LD="${LD-ld} -m elf_s390"
8496 sparc64-*linux*)
8497 LD="${LD-ld} -m elf32_sparc"
8499 esac
8501 *64-bit*)
8502 case $host in
8503 x86_64-*kfreebsd*-gnu)
8504 LD="${LD-ld} -m elf_x86_64_fbsd"
8506 x86_64-*linux*)
8507 LD="${LD-ld} -m elf_x86_64"
8509 powerpcle-*linux*)
8510 LD="${LD-ld} -m elf64lppc"
8512 powerpc-*linux*)
8513 LD="${LD-ld} -m elf64ppc"
8515 s390*-*linux*|s390*-*tpf*)
8516 LD="${LD-ld} -m elf64_s390"
8518 sparc*-*linux*)
8519 LD="${LD-ld} -m elf64_sparc"
8521 esac
8523 esac
8525 rm -rf conftest*
8528 *-*-sco3.2v5*)
8529 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8530 SAVE_CFLAGS=$CFLAGS
8531 CFLAGS="$CFLAGS -belf"
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8533 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8534 if ${lt_cv_cc_needs_belf+:} false; then :
8535 $as_echo_n "(cached) " >&6
8536 else
8537 ac_ext=c
8538 ac_cpp='$CPP $CPPFLAGS'
8539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8544 /* end confdefs.h. */
8547 main ()
8551 return 0;
8553 _ACEOF
8554 if ac_fn_c_try_link "$LINENO"; then :
8555 lt_cv_cc_needs_belf=yes
8556 else
8557 lt_cv_cc_needs_belf=no
8559 rm -f core conftest.err conftest.$ac_objext \
8560 conftest$ac_exeext conftest.$ac_ext
8561 ac_ext=c
8562 ac_cpp='$CPP $CPPFLAGS'
8563 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8564 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8565 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8569 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8570 if test yes != "$lt_cv_cc_needs_belf"; then
8571 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8572 CFLAGS=$SAVE_CFLAGS
8575 *-*solaris*)
8576 # Find out what ABI is being produced by ac_compile, and set linker
8577 # options accordingly.
8578 echo 'int i;' > conftest.$ac_ext
8579 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8580 (eval $ac_compile) 2>&5
8581 ac_status=$?
8582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8583 test $ac_status = 0; }; then
8584 case `/usr/bin/file conftest.o` in
8585 *64-bit*)
8586 case $lt_cv_prog_gnu_ld in
8587 yes*)
8588 case $host in
8589 i?86-*-solaris*|x86_64-*-solaris*)
8590 LD="${LD-ld} -m elf_x86_64"
8592 sparc*-*-solaris*)
8593 LD="${LD-ld} -m elf64_sparc"
8595 esac
8596 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8597 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8598 LD=${LD-ld}_sol2
8602 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8603 LD="${LD-ld} -64"
8606 esac
8608 esac
8610 rm -rf conftest*
8612 esac
8614 need_locks=$enable_libtool_lock
8616 if test -n "$ac_tool_prefix"; then
8617 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8618 set dummy ${ac_tool_prefix}mt; ac_word=$2
8619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8620 $as_echo_n "checking for $ac_word... " >&6; }
8621 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8622 $as_echo_n "(cached) " >&6
8623 else
8624 if test -n "$MANIFEST_TOOL"; then
8625 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8626 else
8627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8628 for as_dir in $PATH
8630 IFS=$as_save_IFS
8631 test -z "$as_dir" && as_dir=.
8632 for ac_exec_ext in '' $ac_executable_extensions; do
8633 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8634 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8636 break 2
8638 done
8639 done
8640 IFS=$as_save_IFS
8644 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8645 if test -n "$MANIFEST_TOOL"; then
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8647 $as_echo "$MANIFEST_TOOL" >&6; }
8648 else
8649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8650 $as_echo "no" >&6; }
8655 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8656 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8657 # Extract the first word of "mt", so it can be a program name with args.
8658 set dummy mt; ac_word=$2
8659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8660 $as_echo_n "checking for $ac_word... " >&6; }
8661 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8662 $as_echo_n "(cached) " >&6
8663 else
8664 if test -n "$ac_ct_MANIFEST_TOOL"; then
8665 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8666 else
8667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8668 for as_dir in $PATH
8670 IFS=$as_save_IFS
8671 test -z "$as_dir" && as_dir=.
8672 for ac_exec_ext in '' $ac_executable_extensions; do
8673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8674 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8676 break 2
8678 done
8679 done
8680 IFS=$as_save_IFS
8684 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8685 if test -n "$ac_ct_MANIFEST_TOOL"; then
8686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8687 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8688 else
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8690 $as_echo "no" >&6; }
8693 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8694 MANIFEST_TOOL=":"
8695 else
8696 case $cross_compiling:$ac_tool_warned in
8697 yes:)
8698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8699 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8700 ac_tool_warned=yes ;;
8701 esac
8702 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8704 else
8705 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8708 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8710 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8711 if ${lt_cv_path_mainfest_tool+:} false; then :
8712 $as_echo_n "(cached) " >&6
8713 else
8714 lt_cv_path_mainfest_tool=no
8715 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8716 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8717 cat conftest.err >&5
8718 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8719 lt_cv_path_mainfest_tool=yes
8721 rm -f conftest*
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8724 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8725 if test yes != "$lt_cv_path_mainfest_tool"; then
8726 MANIFEST_TOOL=:
8734 case $host_os in
8735 rhapsody* | darwin*)
8736 if test -n "$ac_tool_prefix"; then
8737 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8738 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8740 $as_echo_n "checking for $ac_word... " >&6; }
8741 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8742 $as_echo_n "(cached) " >&6
8743 else
8744 if test -n "$DSYMUTIL"; then
8745 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8746 else
8747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8748 for as_dir in $PATH
8750 IFS=$as_save_IFS
8751 test -z "$as_dir" && as_dir=.
8752 for ac_exec_ext in '' $ac_executable_extensions; do
8753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8754 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8756 break 2
8758 done
8759 done
8760 IFS=$as_save_IFS
8764 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8765 if test -n "$DSYMUTIL"; then
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8767 $as_echo "$DSYMUTIL" >&6; }
8768 else
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8770 $as_echo "no" >&6; }
8775 if test -z "$ac_cv_prog_DSYMUTIL"; then
8776 ac_ct_DSYMUTIL=$DSYMUTIL
8777 # Extract the first word of "dsymutil", so it can be a program name with args.
8778 set dummy dsymutil; ac_word=$2
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8780 $as_echo_n "checking for $ac_word... " >&6; }
8781 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8782 $as_echo_n "(cached) " >&6
8783 else
8784 if test -n "$ac_ct_DSYMUTIL"; then
8785 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8786 else
8787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8788 for as_dir in $PATH
8790 IFS=$as_save_IFS
8791 test -z "$as_dir" && as_dir=.
8792 for ac_exec_ext in '' $ac_executable_extensions; do
8793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8794 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8796 break 2
8798 done
8799 done
8800 IFS=$as_save_IFS
8804 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8805 if test -n "$ac_ct_DSYMUTIL"; then
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8807 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8808 else
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8810 $as_echo "no" >&6; }
8813 if test "x$ac_ct_DSYMUTIL" = x; then
8814 DSYMUTIL=":"
8815 else
8816 case $cross_compiling:$ac_tool_warned in
8817 yes:)
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8819 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8820 ac_tool_warned=yes ;;
8821 esac
8822 DSYMUTIL=$ac_ct_DSYMUTIL
8824 else
8825 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8828 if test -n "$ac_tool_prefix"; then
8829 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8830 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8832 $as_echo_n "checking for $ac_word... " >&6; }
8833 if ${ac_cv_prog_NMEDIT+:} false; then :
8834 $as_echo_n "(cached) " >&6
8835 else
8836 if test -n "$NMEDIT"; then
8837 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8838 else
8839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8840 for as_dir in $PATH
8842 IFS=$as_save_IFS
8843 test -z "$as_dir" && as_dir=.
8844 for ac_exec_ext in '' $ac_executable_extensions; do
8845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8846 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8848 break 2
8850 done
8851 done
8852 IFS=$as_save_IFS
8856 NMEDIT=$ac_cv_prog_NMEDIT
8857 if test -n "$NMEDIT"; then
8858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8859 $as_echo "$NMEDIT" >&6; }
8860 else
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8862 $as_echo "no" >&6; }
8867 if test -z "$ac_cv_prog_NMEDIT"; then
8868 ac_ct_NMEDIT=$NMEDIT
8869 # Extract the first word of "nmedit", so it can be a program name with args.
8870 set dummy nmedit; ac_word=$2
8871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8872 $as_echo_n "checking for $ac_word... " >&6; }
8873 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8874 $as_echo_n "(cached) " >&6
8875 else
8876 if test -n "$ac_ct_NMEDIT"; then
8877 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8878 else
8879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8880 for as_dir in $PATH
8882 IFS=$as_save_IFS
8883 test -z "$as_dir" && as_dir=.
8884 for ac_exec_ext in '' $ac_executable_extensions; do
8885 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8886 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8888 break 2
8890 done
8891 done
8892 IFS=$as_save_IFS
8896 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8897 if test -n "$ac_ct_NMEDIT"; then
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8899 $as_echo "$ac_ct_NMEDIT" >&6; }
8900 else
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8902 $as_echo "no" >&6; }
8905 if test "x$ac_ct_NMEDIT" = x; then
8906 NMEDIT=":"
8907 else
8908 case $cross_compiling:$ac_tool_warned in
8909 yes:)
8910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8911 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8912 ac_tool_warned=yes ;;
8913 esac
8914 NMEDIT=$ac_ct_NMEDIT
8916 else
8917 NMEDIT="$ac_cv_prog_NMEDIT"
8920 if test -n "$ac_tool_prefix"; then
8921 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8922 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8924 $as_echo_n "checking for $ac_word... " >&6; }
8925 if ${ac_cv_prog_LIPO+:} false; then :
8926 $as_echo_n "(cached) " >&6
8927 else
8928 if test -n "$LIPO"; then
8929 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8930 else
8931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8932 for as_dir in $PATH
8934 IFS=$as_save_IFS
8935 test -z "$as_dir" && as_dir=.
8936 for ac_exec_ext in '' $ac_executable_extensions; do
8937 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8938 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8940 break 2
8942 done
8943 done
8944 IFS=$as_save_IFS
8948 LIPO=$ac_cv_prog_LIPO
8949 if test -n "$LIPO"; then
8950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8951 $as_echo "$LIPO" >&6; }
8952 else
8953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8954 $as_echo "no" >&6; }
8959 if test -z "$ac_cv_prog_LIPO"; then
8960 ac_ct_LIPO=$LIPO
8961 # Extract the first word of "lipo", so it can be a program name with args.
8962 set dummy lipo; ac_word=$2
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8964 $as_echo_n "checking for $ac_word... " >&6; }
8965 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8966 $as_echo_n "(cached) " >&6
8967 else
8968 if test -n "$ac_ct_LIPO"; then
8969 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8970 else
8971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8972 for as_dir in $PATH
8974 IFS=$as_save_IFS
8975 test -z "$as_dir" && as_dir=.
8976 for ac_exec_ext in '' $ac_executable_extensions; do
8977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8978 ac_cv_prog_ac_ct_LIPO="lipo"
8979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8980 break 2
8982 done
8983 done
8984 IFS=$as_save_IFS
8988 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8989 if test -n "$ac_ct_LIPO"; then
8990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8991 $as_echo "$ac_ct_LIPO" >&6; }
8992 else
8993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8994 $as_echo "no" >&6; }
8997 if test "x$ac_ct_LIPO" = x; then
8998 LIPO=":"
8999 else
9000 case $cross_compiling:$ac_tool_warned in
9001 yes:)
9002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9003 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9004 ac_tool_warned=yes ;;
9005 esac
9006 LIPO=$ac_ct_LIPO
9008 else
9009 LIPO="$ac_cv_prog_LIPO"
9012 if test -n "$ac_tool_prefix"; then
9013 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9014 set dummy ${ac_tool_prefix}otool; ac_word=$2
9015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9016 $as_echo_n "checking for $ac_word... " >&6; }
9017 if ${ac_cv_prog_OTOOL+:} false; then :
9018 $as_echo_n "(cached) " >&6
9019 else
9020 if test -n "$OTOOL"; then
9021 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9022 else
9023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9024 for as_dir in $PATH
9026 IFS=$as_save_IFS
9027 test -z "$as_dir" && as_dir=.
9028 for ac_exec_ext in '' $ac_executable_extensions; do
9029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9030 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9032 break 2
9034 done
9035 done
9036 IFS=$as_save_IFS
9040 OTOOL=$ac_cv_prog_OTOOL
9041 if test -n "$OTOOL"; then
9042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9043 $as_echo "$OTOOL" >&6; }
9044 else
9045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9046 $as_echo "no" >&6; }
9051 if test -z "$ac_cv_prog_OTOOL"; then
9052 ac_ct_OTOOL=$OTOOL
9053 # Extract the first word of "otool", so it can be a program name with args.
9054 set dummy otool; ac_word=$2
9055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9056 $as_echo_n "checking for $ac_word... " >&6; }
9057 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9058 $as_echo_n "(cached) " >&6
9059 else
9060 if test -n "$ac_ct_OTOOL"; then
9061 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9062 else
9063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9064 for as_dir in $PATH
9066 IFS=$as_save_IFS
9067 test -z "$as_dir" && as_dir=.
9068 for ac_exec_ext in '' $ac_executable_extensions; do
9069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9070 ac_cv_prog_ac_ct_OTOOL="otool"
9071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9072 break 2
9074 done
9075 done
9076 IFS=$as_save_IFS
9080 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9081 if test -n "$ac_ct_OTOOL"; then
9082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9083 $as_echo "$ac_ct_OTOOL" >&6; }
9084 else
9085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9086 $as_echo "no" >&6; }
9089 if test "x$ac_ct_OTOOL" = x; then
9090 OTOOL=":"
9091 else
9092 case $cross_compiling:$ac_tool_warned in
9093 yes:)
9094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9095 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9096 ac_tool_warned=yes ;;
9097 esac
9098 OTOOL=$ac_ct_OTOOL
9100 else
9101 OTOOL="$ac_cv_prog_OTOOL"
9104 if test -n "$ac_tool_prefix"; then
9105 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9106 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9108 $as_echo_n "checking for $ac_word... " >&6; }
9109 if ${ac_cv_prog_OTOOL64+:} false; then :
9110 $as_echo_n "(cached) " >&6
9111 else
9112 if test -n "$OTOOL64"; then
9113 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9114 else
9115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9116 for as_dir in $PATH
9118 IFS=$as_save_IFS
9119 test -z "$as_dir" && as_dir=.
9120 for ac_exec_ext in '' $ac_executable_extensions; do
9121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9122 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9124 break 2
9126 done
9127 done
9128 IFS=$as_save_IFS
9132 OTOOL64=$ac_cv_prog_OTOOL64
9133 if test -n "$OTOOL64"; then
9134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9135 $as_echo "$OTOOL64" >&6; }
9136 else
9137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9138 $as_echo "no" >&6; }
9143 if test -z "$ac_cv_prog_OTOOL64"; then
9144 ac_ct_OTOOL64=$OTOOL64
9145 # Extract the first word of "otool64", so it can be a program name with args.
9146 set dummy otool64; ac_word=$2
9147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9148 $as_echo_n "checking for $ac_word... " >&6; }
9149 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9150 $as_echo_n "(cached) " >&6
9151 else
9152 if test -n "$ac_ct_OTOOL64"; then
9153 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9154 else
9155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9156 for as_dir in $PATH
9158 IFS=$as_save_IFS
9159 test -z "$as_dir" && as_dir=.
9160 for ac_exec_ext in '' $ac_executable_extensions; do
9161 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9162 ac_cv_prog_ac_ct_OTOOL64="otool64"
9163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9164 break 2
9166 done
9167 done
9168 IFS=$as_save_IFS
9172 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9173 if test -n "$ac_ct_OTOOL64"; then
9174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9175 $as_echo "$ac_ct_OTOOL64" >&6; }
9176 else
9177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9178 $as_echo "no" >&6; }
9181 if test "x$ac_ct_OTOOL64" = x; then
9182 OTOOL64=":"
9183 else
9184 case $cross_compiling:$ac_tool_warned in
9185 yes:)
9186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9187 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9188 ac_tool_warned=yes ;;
9189 esac
9190 OTOOL64=$ac_ct_OTOOL64
9192 else
9193 OTOOL64="$ac_cv_prog_OTOOL64"
9222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9223 $as_echo_n "checking for -single_module linker flag... " >&6; }
9224 if ${lt_cv_apple_cc_single_mod+:} false; then :
9225 $as_echo_n "(cached) " >&6
9226 else
9227 lt_cv_apple_cc_single_mod=no
9228 if test -z "$LT_MULTI_MODULE"; then
9229 # By default we will add the -single_module flag. You can override
9230 # by either setting the environment variable LT_MULTI_MODULE
9231 # non-empty at configure time, or by adding -multi_module to the
9232 # link flags.
9233 rm -rf libconftest.dylib*
9234 echo "int foo(void){return 1;}" > conftest.c
9235 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9236 -dynamiclib -Wl,-single_module conftest.c" >&5
9237 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9238 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9239 _lt_result=$?
9240 # If there is a non-empty error log, and "single_module"
9241 # appears in it, assume the flag caused a linker warning
9242 if test -s conftest.err && $GREP single_module conftest.err; then
9243 cat conftest.err >&5
9244 # Otherwise, if the output was created with a 0 exit code from
9245 # the compiler, it worked.
9246 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
9247 lt_cv_apple_cc_single_mod=yes
9248 else
9249 cat conftest.err >&5
9251 rm -rf libconftest.dylib*
9252 rm -f conftest.*
9255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9256 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9259 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9260 if ${lt_cv_ld_exported_symbols_list+:} false; then :
9261 $as_echo_n "(cached) " >&6
9262 else
9263 lt_cv_ld_exported_symbols_list=no
9264 save_LDFLAGS=$LDFLAGS
9265 echo "_main" > conftest.sym
9266 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9268 /* end confdefs.h. */
9271 main ()
9275 return 0;
9277 _ACEOF
9278 if ac_fn_c_try_link "$LINENO"; then :
9279 lt_cv_ld_exported_symbols_list=yes
9280 else
9281 lt_cv_ld_exported_symbols_list=no
9283 rm -f core conftest.err conftest.$ac_objext \
9284 conftest$ac_exeext conftest.$ac_ext
9285 LDFLAGS=$save_LDFLAGS
9288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9289 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9292 $as_echo_n "checking for -force_load linker flag... " >&6; }
9293 if ${lt_cv_ld_force_load+:} false; then :
9294 $as_echo_n "(cached) " >&6
9295 else
9296 lt_cv_ld_force_load=no
9297 cat > conftest.c << _LT_EOF
9298 int forced_loaded() { return 2;}
9299 _LT_EOF
9300 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9301 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9302 echo "$AR cru libconftest.a conftest.o" >&5
9303 $AR cru libconftest.a conftest.o 2>&5
9304 echo "$RANLIB libconftest.a" >&5
9305 $RANLIB libconftest.a 2>&5
9306 cat > conftest.c << _LT_EOF
9307 int main() { return 0;}
9308 _LT_EOF
9309 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9310 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9311 _lt_result=$?
9312 if test -s conftest.err && $GREP force_load conftest.err; then
9313 cat conftest.err >&5
9314 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9315 lt_cv_ld_force_load=yes
9316 else
9317 cat conftest.err >&5
9319 rm -f conftest.err libconftest.a conftest conftest.c
9320 rm -rf conftest.dSYM
9323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9324 $as_echo "$lt_cv_ld_force_load" >&6; }
9325 case $host_os in
9326 rhapsody* | darwin1.[012])
9327 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9328 darwin1.*)
9329 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9330 darwin*) # darwin 5.x on
9331 # if running on 10.5 or later, the deployment target defaults
9332 # to the OS version, if on x86, and 10.4, the deployment
9333 # target defaults to 10.4. Don't you love it?
9334 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9335 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9336 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9337 10.[012][,.]*)
9338 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9339 10.*)
9340 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9341 esac
9343 esac
9344 if test yes = "$lt_cv_apple_cc_single_mod"; then
9345 _lt_dar_single_mod='$single_module'
9347 if test yes = "$lt_cv_ld_exported_symbols_list"; then
9348 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9349 else
9350 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9352 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9353 _lt_dsymutil='~$DSYMUTIL $lib || :'
9354 else
9355 _lt_dsymutil=
9358 esac
9360 # func_munge_path_list VARIABLE PATH
9361 # -----------------------------------
9362 # VARIABLE is name of variable containing _space_ separated list of
9363 # directories to be munged by the contents of PATH, which is string
9364 # having a format:
9365 # "DIR[:DIR]:"
9366 # string "DIR[ DIR]" will be prepended to VARIABLE
9367 # ":DIR[:DIR]"
9368 # string "DIR[ DIR]" will be appended to VARIABLE
9369 # "DIRP[:DIRP]::[DIRA:]DIRA"
9370 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9371 # "DIRA[ DIRA]" will be appended to VARIABLE
9372 # "DIR[:DIR]"
9373 # VARIABLE will be replaced by "DIR[ DIR]"
9374 func_munge_path_list ()
9376 case x$2 in
9380 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9382 x:*)
9383 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9385 *::*)
9386 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9387 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9390 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9392 esac
9396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9397 $as_echo_n "checking for ANSI C header files... " >&6; }
9398 if ${ac_cv_header_stdc+:} false; then :
9399 $as_echo_n "(cached) " >&6
9400 else
9401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9402 /* end confdefs.h. */
9403 #include <stdlib.h>
9404 #include <stdarg.h>
9405 #include <string.h>
9406 #include <float.h>
9409 main ()
9413 return 0;
9415 _ACEOF
9416 if ac_fn_c_try_compile "$LINENO"; then :
9417 ac_cv_header_stdc=yes
9418 else
9419 ac_cv_header_stdc=no
9421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9423 if test $ac_cv_header_stdc = yes; then
9424 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9426 /* end confdefs.h. */
9427 #include <string.h>
9429 _ACEOF
9430 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9431 $EGREP "memchr" >/dev/null 2>&1; then :
9433 else
9434 ac_cv_header_stdc=no
9436 rm -f conftest*
9440 if test $ac_cv_header_stdc = yes; then
9441 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9443 /* end confdefs.h. */
9444 #include <stdlib.h>
9446 _ACEOF
9447 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9448 $EGREP "free" >/dev/null 2>&1; then :
9450 else
9451 ac_cv_header_stdc=no
9453 rm -f conftest*
9457 if test $ac_cv_header_stdc = yes; then
9458 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9459 if test "$cross_compiling" = yes; then :
9461 else
9462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9463 /* end confdefs.h. */
9464 #include <ctype.h>
9465 #include <stdlib.h>
9466 #if ((' ' & 0x0FF) == 0x020)
9467 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9468 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9469 #else
9470 # define ISLOWER(c) \
9471 (('a' <= (c) && (c) <= 'i') \
9472 || ('j' <= (c) && (c) <= 'r') \
9473 || ('s' <= (c) && (c) <= 'z'))
9474 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9475 #endif
9477 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9479 main ()
9481 int i;
9482 for (i = 0; i < 256; i++)
9483 if (XOR (islower (i), ISLOWER (i))
9484 || toupper (i) != TOUPPER (i))
9485 return 2;
9486 return 0;
9488 _ACEOF
9489 if ac_fn_c_try_run "$LINENO"; then :
9491 else
9492 ac_cv_header_stdc=no
9494 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9495 conftest.$ac_objext conftest.beam conftest.$ac_ext
9500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9501 $as_echo "$ac_cv_header_stdc" >&6; }
9502 if test $ac_cv_header_stdc = yes; then
9504 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9508 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9509 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9510 inttypes.h stdint.h unistd.h
9511 do :
9512 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9513 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9515 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9516 cat >>confdefs.h <<_ACEOF
9517 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9518 _ACEOF
9522 done
9525 for ac_header in dlfcn.h
9526 do :
9527 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9529 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9530 cat >>confdefs.h <<_ACEOF
9531 #define HAVE_DLFCN_H 1
9532 _ACEOF
9536 done
9542 # Set options
9546 enable_dlopen=no
9549 enable_win32_dll=no
9552 # Check whether --enable-shared was given.
9553 if test "${enable_shared+set}" = set; then :
9554 enableval=$enable_shared; p=${PACKAGE-default}
9555 case $enableval in
9556 yes) enable_shared=yes ;;
9557 no) enable_shared=no ;;
9559 enable_shared=no
9560 # Look at the argument we got. We use all the common list separators.
9561 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9562 for pkg in $enableval; do
9563 IFS=$lt_save_ifs
9564 if test "X$pkg" = "X$p"; then
9565 enable_shared=yes
9567 done
9568 IFS=$lt_save_ifs
9570 esac
9571 else
9572 enable_shared=yes
9583 # Check whether --enable-static was given.
9584 if test "${enable_static+set}" = set; then :
9585 enableval=$enable_static; p=${PACKAGE-default}
9586 case $enableval in
9587 yes) enable_static=yes ;;
9588 no) enable_static=no ;;
9590 enable_static=no
9591 # Look at the argument we got. We use all the common list separators.
9592 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9593 for pkg in $enableval; do
9594 IFS=$lt_save_ifs
9595 if test "X$pkg" = "X$p"; then
9596 enable_static=yes
9598 done
9599 IFS=$lt_save_ifs
9601 esac
9602 else
9603 enable_static=yes
9615 # Check whether --with-pic was given.
9616 if test "${with_pic+set}" = set; then :
9617 withval=$with_pic; lt_p=${PACKAGE-default}
9618 case $withval in
9619 yes|no) pic_mode=$withval ;;
9621 pic_mode=default
9622 # Look at the argument we got. We use all the common list separators.
9623 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9624 for lt_pkg in $withval; do
9625 IFS=$lt_save_ifs
9626 if test "X$lt_pkg" = "X$lt_p"; then
9627 pic_mode=yes
9629 done
9630 IFS=$lt_save_ifs
9632 esac
9633 else
9634 pic_mode=default
9644 # Check whether --enable-fast-install was given.
9645 if test "${enable_fast_install+set}" = set; then :
9646 enableval=$enable_fast_install; p=${PACKAGE-default}
9647 case $enableval in
9648 yes) enable_fast_install=yes ;;
9649 no) enable_fast_install=no ;;
9651 enable_fast_install=no
9652 # Look at the argument we got. We use all the common list separators.
9653 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9654 for pkg in $enableval; do
9655 IFS=$lt_save_ifs
9656 if test "X$pkg" = "X$p"; then
9657 enable_fast_install=yes
9659 done
9660 IFS=$lt_save_ifs
9662 esac
9663 else
9664 enable_fast_install=yes
9674 shared_archive_member_spec=
9675 case $host,$enable_shared in
9676 power*-*-aix[5-9]*,yes)
9677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9678 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9680 # Check whether --with-aix-soname was given.
9681 if test "${with_aix_soname+set}" = set; then :
9682 withval=$with_aix_soname; case $withval in
9683 aix|svr4|both)
9686 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9688 esac
9689 lt_cv_with_aix_soname=$with_aix_soname
9690 else
9691 if ${lt_cv_with_aix_soname+:} false; then :
9692 $as_echo_n "(cached) " >&6
9693 else
9694 lt_cv_with_aix_soname=aix
9697 with_aix_soname=$lt_cv_with_aix_soname
9700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9701 $as_echo "$with_aix_soname" >&6; }
9702 if test aix != "$with_aix_soname"; then
9703 # For the AIX way of multilib, we name the shared archive member
9704 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9705 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9706 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9707 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9708 if test 64 = "${OBJECT_MODE-32}"; then
9709 shared_archive_member_spec=shr_64
9710 else
9711 shared_archive_member_spec=shr
9716 with_aix_soname=aix
9718 esac
9729 # This can be used to rebuild libtool when needed
9730 LIBTOOL_DEPS=$ltmain
9732 # Always use our own libtool.
9733 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9764 test -z "$LN_S" && LN_S="ln -s"
9779 if test -n "${ZSH_VERSION+set}"; then
9780 setopt NO_GLOB_SUBST
9783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9784 $as_echo_n "checking for objdir... " >&6; }
9785 if ${lt_cv_objdir+:} false; then :
9786 $as_echo_n "(cached) " >&6
9787 else
9788 rm -f .libs 2>/dev/null
9789 mkdir .libs 2>/dev/null
9790 if test -d .libs; then
9791 lt_cv_objdir=.libs
9792 else
9793 # MS-DOS does not allow filenames that begin with a dot.
9794 lt_cv_objdir=_libs
9796 rmdir .libs 2>/dev/null
9798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9799 $as_echo "$lt_cv_objdir" >&6; }
9800 objdir=$lt_cv_objdir
9806 cat >>confdefs.h <<_ACEOF
9807 #define LT_OBJDIR "$lt_cv_objdir/"
9808 _ACEOF
9813 case $host_os in
9814 aix3*)
9815 # AIX sometimes has problems with the GCC collect2 program. For some
9816 # reason, if we set the COLLECT_NAMES environment variable, the problems
9817 # vanish in a puff of smoke.
9818 if test set != "${COLLECT_NAMES+set}"; then
9819 COLLECT_NAMES=
9820 export COLLECT_NAMES
9823 esac
9825 # Global variables:
9826 ofile=libtool
9827 can_build_shared=yes
9829 # All known linkers require a '.a' archive for static linking (except MSVC,
9830 # which needs '.lib').
9831 libext=a
9833 with_gnu_ld=$lt_cv_prog_gnu_ld
9835 old_CC=$CC
9836 old_CFLAGS=$CFLAGS
9838 # Set sane defaults for various variables
9839 test -z "$CC" && CC=cc
9840 test -z "$LTCC" && LTCC=$CC
9841 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9842 test -z "$LD" && LD=ld
9843 test -z "$ac_objext" && ac_objext=o
9845 func_cc_basename $compiler
9846 cc_basename=$func_cc_basename_result
9849 # Only perform the check for file, if the check method requires it
9850 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9851 case $deplibs_check_method in
9852 file_magic*)
9853 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9855 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9856 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9857 $as_echo_n "(cached) " >&6
9858 else
9859 case $MAGIC_CMD in
9860 [\\/*] | ?:[\\/]*)
9861 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9864 lt_save_MAGIC_CMD=$MAGIC_CMD
9865 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9866 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9867 for ac_dir in $ac_dummy; do
9868 IFS=$lt_save_ifs
9869 test -z "$ac_dir" && ac_dir=.
9870 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9871 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9872 if test -n "$file_magic_test_file"; then
9873 case $deplibs_check_method in
9874 "file_magic "*)
9875 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9876 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9877 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9878 $EGREP "$file_magic_regex" > /dev/null; then
9880 else
9881 cat <<_LT_EOF 1>&2
9883 *** Warning: the command libtool uses to detect shared libraries,
9884 *** $file_magic_cmd, produces output that libtool cannot recognize.
9885 *** The result is that libtool may fail to recognize shared libraries
9886 *** as such. This will affect the creation of libtool libraries that
9887 *** depend on shared libraries, but programs linked with such libtool
9888 *** libraries will work regardless of this problem. Nevertheless, you
9889 *** may want to report the problem to your system manager and/or to
9890 *** bug-libtool@gnu.org
9892 _LT_EOF
9893 fi ;;
9894 esac
9896 break
9898 done
9899 IFS=$lt_save_ifs
9900 MAGIC_CMD=$lt_save_MAGIC_CMD
9902 esac
9905 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9906 if test -n "$MAGIC_CMD"; then
9907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9908 $as_echo "$MAGIC_CMD" >&6; }
9909 else
9910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9911 $as_echo "no" >&6; }
9918 if test -z "$lt_cv_path_MAGIC_CMD"; then
9919 if test -n "$ac_tool_prefix"; then
9920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9921 $as_echo_n "checking for file... " >&6; }
9922 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9923 $as_echo_n "(cached) " >&6
9924 else
9925 case $MAGIC_CMD in
9926 [\\/*] | ?:[\\/]*)
9927 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9930 lt_save_MAGIC_CMD=$MAGIC_CMD
9931 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9932 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9933 for ac_dir in $ac_dummy; do
9934 IFS=$lt_save_ifs
9935 test -z "$ac_dir" && ac_dir=.
9936 if test -f "$ac_dir/file"; then
9937 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9938 if test -n "$file_magic_test_file"; then
9939 case $deplibs_check_method in
9940 "file_magic "*)
9941 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9942 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9943 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9944 $EGREP "$file_magic_regex" > /dev/null; then
9946 else
9947 cat <<_LT_EOF 1>&2
9949 *** Warning: the command libtool uses to detect shared libraries,
9950 *** $file_magic_cmd, produces output that libtool cannot recognize.
9951 *** The result is that libtool may fail to recognize shared libraries
9952 *** as such. This will affect the creation of libtool libraries that
9953 *** depend on shared libraries, but programs linked with such libtool
9954 *** libraries will work regardless of this problem. Nevertheless, you
9955 *** may want to report the problem to your system manager and/or to
9956 *** bug-libtool@gnu.org
9958 _LT_EOF
9959 fi ;;
9960 esac
9962 break
9964 done
9965 IFS=$lt_save_ifs
9966 MAGIC_CMD=$lt_save_MAGIC_CMD
9968 esac
9971 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9972 if test -n "$MAGIC_CMD"; then
9973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9974 $as_echo "$MAGIC_CMD" >&6; }
9975 else
9976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9977 $as_echo "no" >&6; }
9981 else
9982 MAGIC_CMD=:
9988 esac
9990 # Use C for the default configuration in the libtool script
9992 lt_save_CC=$CC
9993 ac_ext=c
9994 ac_cpp='$CPP $CPPFLAGS'
9995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10000 # Source file extension for C test sources.
10001 ac_ext=c
10003 # Object file extension for compiled C test sources.
10004 objext=o
10005 objext=$objext
10007 # Code to be used in simple compile tests
10008 lt_simple_compile_test_code="int some_variable = 0;"
10010 # Code to be used in simple link tests
10011 lt_simple_link_test_code='int main(){return(0);}'
10019 # If no C compiler was specified, use CC.
10020 LTCC=${LTCC-"$CC"}
10022 # If no C compiler flags were specified, use CFLAGS.
10023 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10025 # Allow CC to be a program name with arguments.
10026 compiler=$CC
10028 # Save the default compiler, since it gets overwritten when the other
10029 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10030 compiler_DEFAULT=$CC
10032 # save warnings/boilerplate of simple test code
10033 ac_outfile=conftest.$ac_objext
10034 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10035 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10036 _lt_compiler_boilerplate=`cat conftest.err`
10037 $RM conftest*
10039 ac_outfile=conftest.$ac_objext
10040 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10041 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10042 _lt_linker_boilerplate=`cat conftest.err`
10043 $RM -r conftest*
10046 ## CAVEAT EMPTOR:
10047 ## There is no encapsulation within the following macros, do not change
10048 ## the running order or otherwise move them around unless you know exactly
10049 ## what you are doing...
10050 if test -n "$compiler"; then
10052 lt_prog_compiler_no_builtin_flag=
10054 if test yes = "$GCC"; then
10055 case $cc_basename in
10056 nvcc*)
10057 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10059 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10060 esac
10062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10063 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10064 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10065 $as_echo_n "(cached) " >&6
10066 else
10067 lt_cv_prog_compiler_rtti_exceptions=no
10068 ac_outfile=conftest.$ac_objext
10069 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10070 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
10071 # Insert the option either (1) after the last *FLAGS variable, or
10072 # (2) before a word containing "conftest.", or (3) at the end.
10073 # Note that $ac_compile itself does not contain backslashes and begins
10074 # with a dollar sign (not a hyphen), so the echo should work correctly.
10075 # The option is referenced via a variable to avoid confusing sed.
10076 lt_compile=`echo "$ac_compile" | $SED \
10077 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10078 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10079 -e 's:$: $lt_compiler_flag:'`
10080 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10081 (eval "$lt_compile" 2>conftest.err)
10082 ac_status=$?
10083 cat conftest.err >&5
10084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10085 if (exit $ac_status) && test -s "$ac_outfile"; then
10086 # The compiler can only warn and ignore the option if not recognized
10087 # So say no if there are warnings other than the usual output.
10088 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10089 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10090 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10091 lt_cv_prog_compiler_rtti_exceptions=yes
10094 $RM conftest*
10097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10098 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10100 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10101 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10102 else
10113 lt_prog_compiler_wl=
10114 lt_prog_compiler_pic=
10115 lt_prog_compiler_static=
10118 if test yes = "$GCC"; then
10119 lt_prog_compiler_wl='-Wl,'
10120 lt_prog_compiler_static='-static'
10122 case $host_os in
10123 aix*)
10124 # All AIX code is PIC.
10125 if test ia64 = "$host_cpu"; then
10126 # AIX 5 now supports IA64 processor
10127 lt_prog_compiler_static='-Bstatic'
10129 lt_prog_compiler_pic='-fPIC'
10132 amigaos*)
10133 case $host_cpu in
10134 powerpc)
10135 # see comment about AmigaOS4 .so support
10136 lt_prog_compiler_pic='-fPIC'
10138 m68k)
10139 # FIXME: we need at least 68020 code to build shared libraries, but
10140 # adding the '-m68020' flag to GCC prevents building anything better,
10141 # like '-m68040'.
10142 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10144 esac
10147 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10148 # PIC is the default for these OSes.
10151 mingw* | cygwin* | pw32* | os2* | cegcc*)
10152 # This hack is so that the source file can tell whether it is being
10153 # built for inclusion in a dll (and should export symbols for example).
10154 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10155 # (--disable-auto-import) libraries
10156 lt_prog_compiler_pic='-DDLL_EXPORT'
10157 case $host_os in
10158 os2*)
10159 lt_prog_compiler_static='$wl-static'
10161 esac
10164 darwin* | rhapsody*)
10165 # PIC is the default on this platform
10166 # Common symbols not allowed in MH_DYLIB files
10167 lt_prog_compiler_pic='-fno-common'
10170 haiku*)
10171 # PIC is the default for Haiku.
10172 # The "-static" flag exists, but is broken.
10173 lt_prog_compiler_static=
10176 hpux*)
10177 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10178 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10179 # sets the default TLS model and affects inlining.
10180 case $host_cpu in
10181 hppa*64*)
10182 # +Z the default
10185 lt_prog_compiler_pic='-fPIC'
10187 esac
10190 interix[3-9]*)
10191 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10192 # Instead, we relocate shared libraries at runtime.
10195 msdosdjgpp*)
10196 # Just because we use GCC doesn't mean we suddenly get shared libraries
10197 # on systems that don't support them.
10198 lt_prog_compiler_can_build_shared=no
10199 enable_shared=no
10202 *nto* | *qnx*)
10203 # QNX uses GNU C++, but need to define -shared option too, otherwise
10204 # it will coredump.
10205 lt_prog_compiler_pic='-fPIC -shared'
10208 sysv4*MP*)
10209 if test -d /usr/nec; then
10210 lt_prog_compiler_pic=-Kconform_pic
10215 lt_prog_compiler_pic='-fPIC'
10217 esac
10219 case $cc_basename in
10220 nvcc*) # Cuda Compiler Driver 2.2
10221 lt_prog_compiler_wl='-Xlinker '
10222 if test -n "$lt_prog_compiler_pic"; then
10223 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10226 esac
10227 else
10228 # PORTME Check for flag to pass linker flags through the system compiler.
10229 case $host_os in
10230 aix*)
10231 lt_prog_compiler_wl='-Wl,'
10232 if test ia64 = "$host_cpu"; then
10233 # AIX 5 now supports IA64 processor
10234 lt_prog_compiler_static='-Bstatic'
10235 else
10236 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10240 darwin* | rhapsody*)
10241 # PIC is the default on this platform
10242 # Common symbols not allowed in MH_DYLIB files
10243 lt_prog_compiler_pic='-fno-common'
10244 case $cc_basename in
10245 nagfor*)
10246 # NAG Fortran compiler
10247 lt_prog_compiler_wl='-Wl,-Wl,,'
10248 lt_prog_compiler_pic='-PIC'
10249 lt_prog_compiler_static='-Bstatic'
10251 esac
10254 mingw* | cygwin* | pw32* | os2* | cegcc*)
10255 # This hack is so that the source file can tell whether it is being
10256 # built for inclusion in a dll (and should export symbols for example).
10257 lt_prog_compiler_pic='-DDLL_EXPORT'
10258 case $host_os in
10259 os2*)
10260 lt_prog_compiler_static='$wl-static'
10262 esac
10265 hpux9* | hpux10* | hpux11*)
10266 lt_prog_compiler_wl='-Wl,'
10267 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10268 # not for PA HP-UX.
10269 case $host_cpu in
10270 hppa*64*|ia64*)
10271 # +Z the default
10274 lt_prog_compiler_pic='+Z'
10276 esac
10277 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10278 lt_prog_compiler_static='$wl-a ${wl}archive'
10281 irix5* | irix6* | nonstopux*)
10282 lt_prog_compiler_wl='-Wl,'
10283 # PIC (with -KPIC) is the default.
10284 lt_prog_compiler_static='-non_shared'
10287 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10288 case $cc_basename in
10289 # old Intel for x86_64, which still supported -KPIC.
10290 ecc*)
10291 lt_prog_compiler_wl='-Wl,'
10292 lt_prog_compiler_pic='-KPIC'
10293 lt_prog_compiler_static='-static'
10295 # icc used to be incompatible with GCC.
10296 # ICC 10 doesn't accept -KPIC any more.
10297 icc* | ifort*)
10298 lt_prog_compiler_wl='-Wl,'
10299 lt_prog_compiler_pic='-fPIC'
10300 lt_prog_compiler_static='-static'
10302 # Lahey Fortran 8.1.
10303 lf95*)
10304 lt_prog_compiler_wl='-Wl,'
10305 lt_prog_compiler_pic='--shared'
10306 lt_prog_compiler_static='--static'
10308 nagfor*)
10309 # NAG Fortran compiler
10310 lt_prog_compiler_wl='-Wl,-Wl,,'
10311 lt_prog_compiler_pic='-PIC'
10312 lt_prog_compiler_static='-Bstatic'
10314 tcc*)
10315 # Fabrice Bellard et al's Tiny C Compiler
10316 lt_prog_compiler_wl='-Wl,'
10317 lt_prog_compiler_pic='-fPIC'
10318 lt_prog_compiler_static='-static'
10320 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10321 # Portland Group compilers (*not* the Pentium gcc compiler,
10322 # which looks to be a dead project)
10323 lt_prog_compiler_wl='-Wl,'
10324 lt_prog_compiler_pic='-fpic'
10325 lt_prog_compiler_static='-Bstatic'
10327 ccc*)
10328 lt_prog_compiler_wl='-Wl,'
10329 # All Alpha code is PIC.
10330 lt_prog_compiler_static='-non_shared'
10332 xl* | bgxl* | bgf* | mpixl*)
10333 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10334 lt_prog_compiler_wl='-Wl,'
10335 lt_prog_compiler_pic='-qpic'
10336 lt_prog_compiler_static='-qstaticlink'
10339 case `$CC -V 2>&1 | sed 5q` in
10340 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10341 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10342 lt_prog_compiler_pic='-KPIC'
10343 lt_prog_compiler_static='-Bstatic'
10344 lt_prog_compiler_wl=''
10346 *Sun\ F* | *Sun*Fortran*)
10347 lt_prog_compiler_pic='-KPIC'
10348 lt_prog_compiler_static='-Bstatic'
10349 lt_prog_compiler_wl='-Qoption ld '
10351 *Sun\ C*)
10352 # Sun C 5.9
10353 lt_prog_compiler_pic='-KPIC'
10354 lt_prog_compiler_static='-Bstatic'
10355 lt_prog_compiler_wl='-Wl,'
10357 *Intel*\ [CF]*Compiler*)
10358 lt_prog_compiler_wl='-Wl,'
10359 lt_prog_compiler_pic='-fPIC'
10360 lt_prog_compiler_static='-static'
10362 *Portland\ Group*)
10363 lt_prog_compiler_wl='-Wl,'
10364 lt_prog_compiler_pic='-fpic'
10365 lt_prog_compiler_static='-Bstatic'
10367 esac
10369 esac
10372 newsos6)
10373 lt_prog_compiler_pic='-KPIC'
10374 lt_prog_compiler_static='-Bstatic'
10377 *nto* | *qnx*)
10378 # QNX uses GNU C++, but need to define -shared option too, otherwise
10379 # it will coredump.
10380 lt_prog_compiler_pic='-fPIC -shared'
10383 osf3* | osf4* | osf5*)
10384 lt_prog_compiler_wl='-Wl,'
10385 # All OSF/1 code is PIC.
10386 lt_prog_compiler_static='-non_shared'
10389 rdos*)
10390 lt_prog_compiler_static='-non_shared'
10393 solaris*)
10394 lt_prog_compiler_pic='-KPIC'
10395 lt_prog_compiler_static='-Bstatic'
10396 case $cc_basename in
10397 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10398 lt_prog_compiler_wl='-Qoption ld ';;
10400 lt_prog_compiler_wl='-Wl,';;
10401 esac
10404 sunos4*)
10405 lt_prog_compiler_wl='-Qoption ld '
10406 lt_prog_compiler_pic='-PIC'
10407 lt_prog_compiler_static='-Bstatic'
10410 sysv4 | sysv4.2uw2* | sysv4.3*)
10411 lt_prog_compiler_wl='-Wl,'
10412 lt_prog_compiler_pic='-KPIC'
10413 lt_prog_compiler_static='-Bstatic'
10416 sysv4*MP*)
10417 if test -d /usr/nec; then
10418 lt_prog_compiler_pic='-Kconform_pic'
10419 lt_prog_compiler_static='-Bstatic'
10423 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10424 lt_prog_compiler_wl='-Wl,'
10425 lt_prog_compiler_pic='-KPIC'
10426 lt_prog_compiler_static='-Bstatic'
10429 unicos*)
10430 lt_prog_compiler_wl='-Wl,'
10431 lt_prog_compiler_can_build_shared=no
10434 uts4*)
10435 lt_prog_compiler_pic='-pic'
10436 lt_prog_compiler_static='-Bstatic'
10440 lt_prog_compiler_can_build_shared=no
10442 esac
10445 case $host_os in
10446 # For platforms that do not support PIC, -DPIC is meaningless:
10447 *djgpp*)
10448 lt_prog_compiler_pic=
10451 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10453 esac
10455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10456 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10457 if ${lt_cv_prog_compiler_pic+:} false; then :
10458 $as_echo_n "(cached) " >&6
10459 else
10460 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10463 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10464 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10467 # Check to make sure the PIC flag actually works.
10469 if test -n "$lt_prog_compiler_pic"; then
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10471 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10472 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10473 $as_echo_n "(cached) " >&6
10474 else
10475 lt_cv_prog_compiler_pic_works=no
10476 ac_outfile=conftest.$ac_objext
10477 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10478 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
10479 # Insert the option either (1) after the last *FLAGS variable, or
10480 # (2) before a word containing "conftest.", or (3) at the end.
10481 # Note that $ac_compile itself does not contain backslashes and begins
10482 # with a dollar sign (not a hyphen), so the echo should work correctly.
10483 # The option is referenced via a variable to avoid confusing sed.
10484 lt_compile=`echo "$ac_compile" | $SED \
10485 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10486 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10487 -e 's:$: $lt_compiler_flag:'`
10488 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10489 (eval "$lt_compile" 2>conftest.err)
10490 ac_status=$?
10491 cat conftest.err >&5
10492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10493 if (exit $ac_status) && test -s "$ac_outfile"; then
10494 # The compiler can only warn and ignore the option if not recognized
10495 # So say no if there are warnings other than the usual output.
10496 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10497 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10498 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10499 lt_cv_prog_compiler_pic_works=yes
10502 $RM conftest*
10505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10506 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10508 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10509 case $lt_prog_compiler_pic in
10510 "" | " "*) ;;
10511 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10512 esac
10513 else
10514 lt_prog_compiler_pic=
10515 lt_prog_compiler_can_build_shared=no
10531 # Check to make sure the static flag actually works.
10533 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10535 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10536 if ${lt_cv_prog_compiler_static_works+:} false; then :
10537 $as_echo_n "(cached) " >&6
10538 else
10539 lt_cv_prog_compiler_static_works=no
10540 save_LDFLAGS=$LDFLAGS
10541 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10542 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10543 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10544 # The linker can only warn and ignore the option if not recognized
10545 # So say no if there are warnings
10546 if test -s conftest.err; then
10547 # Append any errors to the config.log.
10548 cat conftest.err 1>&5
10549 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10550 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10551 if diff conftest.exp conftest.er2 >/dev/null; then
10552 lt_cv_prog_compiler_static_works=yes
10554 else
10555 lt_cv_prog_compiler_static_works=yes
10558 $RM -r conftest*
10559 LDFLAGS=$save_LDFLAGS
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10563 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10565 if test yes = "$lt_cv_prog_compiler_static_works"; then
10567 else
10568 lt_prog_compiler_static=
10577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10578 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10579 if ${lt_cv_prog_compiler_c_o+:} false; then :
10580 $as_echo_n "(cached) " >&6
10581 else
10582 lt_cv_prog_compiler_c_o=no
10583 $RM -r conftest 2>/dev/null
10584 mkdir conftest
10585 cd conftest
10586 mkdir out
10587 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10589 lt_compiler_flag="-o out/conftest2.$ac_objext"
10590 # Insert the option either (1) after the last *FLAGS variable, or
10591 # (2) before a word containing "conftest.", or (3) at the end.
10592 # Note that $ac_compile itself does not contain backslashes and begins
10593 # with a dollar sign (not a hyphen), so the echo should work correctly.
10594 lt_compile=`echo "$ac_compile" | $SED \
10595 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10596 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10597 -e 's:$: $lt_compiler_flag:'`
10598 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10599 (eval "$lt_compile" 2>out/conftest.err)
10600 ac_status=$?
10601 cat out/conftest.err >&5
10602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10603 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10604 then
10605 # The compiler can only warn and ignore the option if not recognized
10606 # So say no if there are warnings
10607 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10608 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10609 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10610 lt_cv_prog_compiler_c_o=yes
10613 chmod u+w . 2>&5
10614 $RM conftest*
10615 # SGI C++ compiler will create directory out/ii_files/ for
10616 # template instantiation
10617 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10618 $RM out/* && rmdir out
10619 cd ..
10620 $RM -r conftest
10621 $RM conftest*
10624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10625 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10633 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10634 if ${lt_cv_prog_compiler_c_o+:} false; then :
10635 $as_echo_n "(cached) " >&6
10636 else
10637 lt_cv_prog_compiler_c_o=no
10638 $RM -r conftest 2>/dev/null
10639 mkdir conftest
10640 cd conftest
10641 mkdir out
10642 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10644 lt_compiler_flag="-o out/conftest2.$ac_objext"
10645 # Insert the option either (1) after the last *FLAGS variable, or
10646 # (2) before a word containing "conftest.", or (3) at the end.
10647 # Note that $ac_compile itself does not contain backslashes and begins
10648 # with a dollar sign (not a hyphen), so the echo should work correctly.
10649 lt_compile=`echo "$ac_compile" | $SED \
10650 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10651 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10652 -e 's:$: $lt_compiler_flag:'`
10653 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10654 (eval "$lt_compile" 2>out/conftest.err)
10655 ac_status=$?
10656 cat out/conftest.err >&5
10657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10658 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10659 then
10660 # The compiler can only warn and ignore the option if not recognized
10661 # So say no if there are warnings
10662 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10663 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10664 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10665 lt_cv_prog_compiler_c_o=yes
10668 chmod u+w . 2>&5
10669 $RM conftest*
10670 # SGI C++ compiler will create directory out/ii_files/ for
10671 # template instantiation
10672 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10673 $RM out/* && rmdir out
10674 cd ..
10675 $RM -r conftest
10676 $RM conftest*
10679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10680 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10685 hard_links=nottested
10686 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10687 # do not overwrite the value of need_locks provided by the user
10688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10689 $as_echo_n "checking if we can lock with hard links... " >&6; }
10690 hard_links=yes
10691 $RM conftest*
10692 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10693 touch conftest.a
10694 ln conftest.a conftest.b 2>&5 || hard_links=no
10695 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10697 $as_echo "$hard_links" >&6; }
10698 if test no = "$hard_links"; then
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10700 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10701 need_locks=warn
10703 else
10704 need_locks=no
10712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10713 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10715 runpath_var=
10716 allow_undefined_flag=
10717 always_export_symbols=no
10718 archive_cmds=
10719 archive_expsym_cmds=
10720 compiler_needs_object=no
10721 enable_shared_with_static_runtimes=no
10722 export_dynamic_flag_spec=
10723 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10724 hardcode_automatic=no
10725 hardcode_direct=no
10726 hardcode_direct_absolute=no
10727 hardcode_libdir_flag_spec=
10728 hardcode_libdir_separator=
10729 hardcode_minus_L=no
10730 hardcode_shlibpath_var=unsupported
10731 inherit_rpath=no
10732 link_all_deplibs=unknown
10733 module_cmds=
10734 module_expsym_cmds=
10735 old_archive_from_new_cmds=
10736 old_archive_from_expsyms_cmds=
10737 thread_safe_flag_spec=
10738 whole_archive_flag_spec=
10739 # include_expsyms should be a list of space-separated symbols to be *always*
10740 # included in the symbol list
10741 include_expsyms=
10742 # exclude_expsyms can be an extended regexp of symbols to exclude
10743 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10744 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10745 # as well as any symbol that contains 'd'.
10746 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10747 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10748 # platforms (ab)use it in PIC code, but their linkers get confused if
10749 # the symbol is explicitly referenced. Since portable code cannot
10750 # rely on this symbol name, it's probably fine to never include it in
10751 # preloaded symbol tables.
10752 # Exclude shared library initialization/finalization symbols.
10753 extract_expsyms_cmds=
10755 case $host_os in
10756 cygwin* | mingw* | pw32* | cegcc*)
10757 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10758 # When not using gcc, we currently assume that we are using
10759 # Microsoft Visual C++.
10760 if test yes != "$GCC"; then
10761 with_gnu_ld=no
10764 interix*)
10765 # we just hope/assume this is gcc and not c89 (= MSVC++)
10766 with_gnu_ld=yes
10768 openbsd* | bitrig*)
10769 with_gnu_ld=no
10771 esac
10773 ld_shlibs=yes
10775 # On some targets, GNU ld is compatible enough with the native linker
10776 # that we're better off using the native interface for both.
10777 lt_use_gnu_ld_interface=no
10778 if test yes = "$with_gnu_ld"; then
10779 case $host_os in
10780 aix*)
10781 # The AIX port of GNU ld has always aspired to compatibility
10782 # with the native linker. However, as the warning in the GNU ld
10783 # block says, versions before 2.19.5* couldn't really create working
10784 # shared libraries, regardless of the interface used.
10785 case `$LD -v 2>&1` in
10786 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10787 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10788 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10790 lt_use_gnu_ld_interface=yes
10792 esac
10795 lt_use_gnu_ld_interface=yes
10797 esac
10800 if test yes = "$lt_use_gnu_ld_interface"; then
10801 # If archive_cmds runs LD, not CC, wlarc should be empty
10802 wlarc='$wl'
10804 # Set some defaults for GNU ld with shared library support. These
10805 # are reset later if shared libraries are not supported. Putting them
10806 # here allows them to be overridden if necessary.
10807 runpath_var=LD_RUN_PATH
10808 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10809 export_dynamic_flag_spec='$wl--export-dynamic'
10810 # ancient GNU ld didn't support --whole-archive et. al.
10811 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10812 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10813 else
10814 whole_archive_flag_spec=
10816 supports_anon_versioning=no
10817 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10818 *GNU\ gold*) supports_anon_versioning=yes ;;
10819 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10820 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10821 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10822 *\ 2.11.*) ;; # other 2.11 versions
10823 *) supports_anon_versioning=yes ;;
10824 esac
10826 # See if GNU ld supports shared libraries.
10827 case $host_os in
10828 aix[3-9]*)
10829 # On AIX/PPC, the GNU linker is very broken
10830 if test ia64 != "$host_cpu"; then
10831 ld_shlibs=no
10832 cat <<_LT_EOF 1>&2
10834 *** Warning: the GNU linker, at least up to release 2.19, is reported
10835 *** to be unable to reliably create shared libraries on AIX.
10836 *** Therefore, libtool is disabling shared libraries support. If you
10837 *** really care for shared libraries, you may want to install binutils
10838 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10839 *** You will then need to restart the configuration process.
10841 _LT_EOF
10845 amigaos*)
10846 case $host_cpu in
10847 powerpc)
10848 # see comment about AmigaOS4 .so support
10849 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10850 archive_expsym_cmds=''
10852 m68k)
10853 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)'
10854 hardcode_libdir_flag_spec='-L$libdir'
10855 hardcode_minus_L=yes
10857 esac
10860 beos*)
10861 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10862 allow_undefined_flag=unsupported
10863 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10864 # support --undefined. This deserves some investigation. FIXME
10865 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10866 else
10867 ld_shlibs=no
10871 cygwin* | mingw* | pw32* | cegcc*)
10872 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10873 # as there is no search path for DLLs.
10874 hardcode_libdir_flag_spec='-L$libdir'
10875 export_dynamic_flag_spec='$wl--export-all-symbols'
10876 allow_undefined_flag=unsupported
10877 always_export_symbols=no
10878 enable_shared_with_static_runtimes=yes
10879 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'
10880 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10882 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10883 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10884 # If the export-symbols file already is a .def file, use it as
10885 # is; otherwise, prepend EXPORTS...
10886 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10887 cp $export_symbols $output_objdir/$soname.def;
10888 else
10889 echo EXPORTS > $output_objdir/$soname.def;
10890 cat $export_symbols >> $output_objdir/$soname.def;
10892 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10893 else
10894 ld_shlibs=no
10898 haiku*)
10899 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10900 link_all_deplibs=yes
10903 os2*)
10904 hardcode_libdir_flag_spec='-L$libdir'
10905 hardcode_minus_L=yes
10906 allow_undefined_flag=unsupported
10907 shrext_cmds=.dll
10908 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10909 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10910 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10911 $ECHO EXPORTS >> $output_objdir/$libname.def~
10912 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10913 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10914 emximp -o $lib $output_objdir/$libname.def'
10915 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10916 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10917 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10918 $ECHO EXPORTS >> $output_objdir/$libname.def~
10919 prefix_cmds="$SED"~
10920 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10921 prefix_cmds="$prefix_cmds -e 1d";
10923 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10924 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10925 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10926 emximp -o $lib $output_objdir/$libname.def'
10927 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10928 enable_shared_with_static_runtimes=yes
10931 interix[3-9]*)
10932 hardcode_direct=no
10933 hardcode_shlibpath_var=no
10934 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10935 export_dynamic_flag_spec='$wl-E'
10936 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10937 # Instead, shared libraries are loaded at an image base (0x10000000 by
10938 # default) and relocated if they conflict, which is a slow very memory
10939 # consuming and fragmenting process. To avoid this, we pick a random,
10940 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10941 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10942 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10943 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'
10946 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10947 tmp_diet=no
10948 if test linux-dietlibc = "$host_os"; then
10949 case $cc_basename in
10950 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10951 esac
10953 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10954 && test no = "$tmp_diet"
10955 then
10956 tmp_addflag=' $pic_flag'
10957 tmp_sharedflag='-shared'
10958 case $cc_basename,$host_cpu in
10959 pgcc*) # Portland Group C compiler
10960 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'
10961 tmp_addflag=' $pic_flag'
10963 pgf77* | pgf90* | pgf95* | pgfortran*)
10964 # Portland Group f77 and f90 compilers
10965 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'
10966 tmp_addflag=' $pic_flag -Mnomain' ;;
10967 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10968 tmp_addflag=' -i_dynamic' ;;
10969 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10970 tmp_addflag=' -i_dynamic -nofor_main' ;;
10971 ifc* | ifort*) # Intel Fortran compiler
10972 tmp_addflag=' -nofor_main' ;;
10973 lf95*) # Lahey Fortran 8.1
10974 whole_archive_flag_spec=
10975 tmp_sharedflag='--shared' ;;
10976 nagfor*) # NAGFOR 5.3
10977 tmp_sharedflag='-Wl,-shared' ;;
10978 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10979 tmp_sharedflag='-qmkshrobj'
10980 tmp_addflag= ;;
10981 nvcc*) # Cuda Compiler Driver 2.2
10982 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'
10983 compiler_needs_object=yes
10985 esac
10986 case `$CC -V 2>&1 | sed 5q` in
10987 *Sun\ C*) # Sun C 5.9
10988 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'
10989 compiler_needs_object=yes
10990 tmp_sharedflag='-G' ;;
10991 *Sun\ F*) # Sun Fortran 8.3
10992 tmp_sharedflag='-G' ;;
10993 esac
10994 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10996 if test yes = "$supports_anon_versioning"; then
10997 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10998 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10999 echo "local: *; };" >> $output_objdir/$libname.ver~
11000 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11003 case $cc_basename in
11004 tcc*)
11005 export_dynamic_flag_spec='-rdynamic'
11007 xlf* | bgf* | bgxlf* | mpixlf*)
11008 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11009 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11010 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11011 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11012 if test yes = "$supports_anon_versioning"; then
11013 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11014 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11015 echo "local: *; };" >> $output_objdir/$libname.ver~
11016 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11019 esac
11020 else
11021 ld_shlibs=no
11025 netbsd*)
11026 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11027 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11028 wlarc=
11029 else
11030 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11031 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11035 solaris*)
11036 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11037 ld_shlibs=no
11038 cat <<_LT_EOF 1>&2
11040 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11041 *** create shared libraries on Solaris systems. Therefore, libtool
11042 *** is disabling shared libraries support. We urge you to upgrade GNU
11043 *** binutils to release 2.9.1 or newer. Another option is to modify
11044 *** your PATH or compiler configuration so that the native linker is
11045 *** used, and then restart.
11047 _LT_EOF
11048 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11049 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11050 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11051 else
11052 ld_shlibs=no
11056 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11057 case `$LD -v 2>&1` in
11058 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11059 ld_shlibs=no
11060 cat <<_LT_EOF 1>&2
11062 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11063 *** reliably create shared libraries on SCO systems. Therefore, libtool
11064 *** is disabling shared libraries support. We urge you to upgrade GNU
11065 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11066 *** your PATH or compiler configuration so that the native linker is
11067 *** used, and then restart.
11069 _LT_EOF
11072 # For security reasons, it is highly recommended that you always
11073 # use absolute paths for naming shared libraries, and exclude the
11074 # DT_RUNPATH tag from executables and libraries. But doing so
11075 # requires that you compile everything twice, which is a pain.
11076 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11077 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11078 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11079 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11080 else
11081 ld_shlibs=no
11084 esac
11087 sunos4*)
11088 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11089 wlarc=
11090 hardcode_direct=yes
11091 hardcode_shlibpath_var=no
11095 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11096 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11097 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11098 else
11099 ld_shlibs=no
11102 esac
11104 if test no = "$ld_shlibs"; then
11105 runpath_var=
11106 hardcode_libdir_flag_spec=
11107 export_dynamic_flag_spec=
11108 whole_archive_flag_spec=
11110 else
11111 # PORTME fill in a description of your system's linker (not GNU ld)
11112 case $host_os in
11113 aix3*)
11114 allow_undefined_flag=unsupported
11115 always_export_symbols=yes
11116 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'
11117 # Note: this linker hardcodes the directories in LIBPATH if there
11118 # are no directories specified by -L.
11119 hardcode_minus_L=yes
11120 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11121 # Neither direct hardcoding nor static linking is supported with a
11122 # broken collect2.
11123 hardcode_direct=unsupported
11127 aix[4-9]*)
11128 if test ia64 = "$host_cpu"; then
11129 # On IA64, the linker does run time linking by default, so we don't
11130 # have to do anything special.
11131 aix_use_runtimelinking=no
11132 exp_sym_flag='-Bexport'
11133 no_entry_flag=
11134 else
11135 # If we're using GNU nm, then we don't want the "-C" option.
11136 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
11137 # Without the "-l" option, or with the "-B" option, AIX nm treats
11138 # weak defined symbols like other global defined symbols, whereas
11139 # GNU nm marks them as "W".
11140 # While the 'weak' keyword is ignored in the Export File, we need
11141 # it in the Import File for the 'aix-soname' feature, so we have
11142 # to replace the "-B" option with "-P" for AIX nm.
11143 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11144 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'
11145 else
11146 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'
11148 aix_use_runtimelinking=no
11150 # Test if we are trying to use run time linking or normal
11151 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11152 # have runtime linking enabled, and use it for executables.
11153 # For shared libraries, we enable/disable runtime linking
11154 # depending on the kind of the shared library created -
11155 # when "with_aix_soname,aix_use_runtimelinking" is:
11156 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
11157 # "aix,yes" lib.so shared, rtl:yes, for executables
11158 # lib.a static archive
11159 # "both,no" lib.so.V(shr.o) shared, rtl:yes
11160 # lib.a(lib.so.V) shared, rtl:no, for executables
11161 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11162 # lib.a(lib.so.V) shared, rtl:no
11163 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
11164 # lib.a static archive
11165 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11166 for ld_flag in $LDFLAGS; do
11167 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11168 aix_use_runtimelinking=yes
11169 break
11171 done
11172 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11173 # With aix-soname=svr4, we create the lib.so.V shared archives only,
11174 # so we don't have lib.a shared libs to link our executables.
11175 # We have to force runtime linking in this case.
11176 aix_use_runtimelinking=yes
11177 LDFLAGS="$LDFLAGS -Wl,-brtl"
11180 esac
11182 exp_sym_flag='-bexport'
11183 no_entry_flag='-bnoentry'
11186 # When large executables or shared objects are built, AIX ld can
11187 # have problems creating the table of contents. If linking a library
11188 # or program results in "error TOC overflow" add -mminimal-toc to
11189 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11190 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11192 archive_cmds=''
11193 hardcode_direct=yes
11194 hardcode_direct_absolute=yes
11195 hardcode_libdir_separator=':'
11196 link_all_deplibs=yes
11197 file_list_spec='$wl-f,'
11198 case $with_aix_soname,$aix_use_runtimelinking in
11199 aix,*) ;; # traditional, no import file
11200 svr4,* | *,yes) # use import file
11201 # The Import File defines what to hardcode.
11202 hardcode_direct=no
11203 hardcode_direct_absolute=no
11205 esac
11207 if test yes = "$GCC"; then
11208 case $host_os in aix4.[012]|aix4.[012].*)
11209 # We only want to do this on AIX 4.2 and lower, the check
11210 # below for broken collect2 doesn't work under 4.3+
11211 collect2name=`$CC -print-prog-name=collect2`
11212 if test -f "$collect2name" &&
11213 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11214 then
11215 # We have reworked collect2
11217 else
11218 # We have old collect2
11219 hardcode_direct=unsupported
11220 # It fails to find uninstalled libraries when the uninstalled
11221 # path is not listed in the libpath. Setting hardcode_minus_L
11222 # to unsupported forces relinking
11223 hardcode_minus_L=yes
11224 hardcode_libdir_flag_spec='-L$libdir'
11225 hardcode_libdir_separator=
11228 esac
11229 shared_flag='-shared'
11230 if test yes = "$aix_use_runtimelinking"; then
11231 shared_flag="$shared_flag "'$wl-G'
11233 # Need to ensure runtime linking is disabled for the traditional
11234 # shared library, or the linker may eventually find shared libraries
11235 # /with/ Import File - we do not want to mix them.
11236 shared_flag_aix='-shared'
11237 shared_flag_svr4='-shared $wl-G'
11238 else
11239 # not using gcc
11240 if test ia64 = "$host_cpu"; then
11241 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11242 # chokes on -Wl,-G. The following line is correct:
11243 shared_flag='-G'
11244 else
11245 if test yes = "$aix_use_runtimelinking"; then
11246 shared_flag='$wl-G'
11247 else
11248 shared_flag='$wl-bM:SRE'
11250 shared_flag_aix='$wl-bM:SRE'
11251 shared_flag_svr4='$wl-G'
11255 export_dynamic_flag_spec='$wl-bexpall'
11256 # It seems that -bexpall does not export symbols beginning with
11257 # underscore (_), so it is better to generate a list of symbols to export.
11258 always_export_symbols=yes
11259 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11260 # Warning - without using the other runtime loading flags (-brtl),
11261 # -berok will link without error, but may produce a broken library.
11262 allow_undefined_flag='-berok'
11263 # Determine the default libpath from the value encoded in an
11264 # empty executable.
11265 if test set = "${lt_cv_aix_libpath+set}"; then
11266 aix_libpath=$lt_cv_aix_libpath
11267 else
11268 if ${lt_cv_aix_libpath_+:} false; then :
11269 $as_echo_n "(cached) " >&6
11270 else
11271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11272 /* end confdefs.h. */
11275 main ()
11279 return 0;
11281 _ACEOF
11282 if ac_fn_c_try_link "$LINENO"; then :
11284 lt_aix_libpath_sed='
11285 /Import File Strings/,/^$/ {
11286 /^0/ {
11287 s/^0 *\([^ ]*\) *$/\1/
11291 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11292 # Check for a 64-bit object if we didn't find anything.
11293 if test -z "$lt_cv_aix_libpath_"; then
11294 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11297 rm -f core conftest.err conftest.$ac_objext \
11298 conftest$ac_exeext conftest.$ac_ext
11299 if test -z "$lt_cv_aix_libpath_"; then
11300 lt_cv_aix_libpath_=/usr/lib:/lib
11305 aix_libpath=$lt_cv_aix_libpath_
11308 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11309 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
11310 else
11311 if test ia64 = "$host_cpu"; then
11312 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11313 allow_undefined_flag="-z nodefs"
11314 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"
11315 else
11316 # Determine the default libpath from the value encoded in an
11317 # empty executable.
11318 if test set = "${lt_cv_aix_libpath+set}"; then
11319 aix_libpath=$lt_cv_aix_libpath
11320 else
11321 if ${lt_cv_aix_libpath_+:} false; then :
11322 $as_echo_n "(cached) " >&6
11323 else
11324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11325 /* end confdefs.h. */
11328 main ()
11332 return 0;
11334 _ACEOF
11335 if ac_fn_c_try_link "$LINENO"; then :
11337 lt_aix_libpath_sed='
11338 /Import File Strings/,/^$/ {
11339 /^0/ {
11340 s/^0 *\([^ ]*\) *$/\1/
11344 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11345 # Check for a 64-bit object if we didn't find anything.
11346 if test -z "$lt_cv_aix_libpath_"; then
11347 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11350 rm -f core conftest.err conftest.$ac_objext \
11351 conftest$ac_exeext conftest.$ac_ext
11352 if test -z "$lt_cv_aix_libpath_"; then
11353 lt_cv_aix_libpath_=/usr/lib:/lib
11358 aix_libpath=$lt_cv_aix_libpath_
11361 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11362 # Warning - without using the other run time loading flags,
11363 # -berok will link without error, but may produce a broken library.
11364 no_undefined_flag=' $wl-bernotok'
11365 allow_undefined_flag=' $wl-berok'
11366 if test yes = "$with_gnu_ld"; then
11367 # We only use this code for GNU lds that support --whole-archive.
11368 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11369 else
11370 # Exported symbols can be pulled into shared objects from archives
11371 whole_archive_flag_spec='$convenience'
11373 archive_cmds_need_lc=yes
11374 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11375 # -brtl affects multiple linker settings, -berok does not and is overridden later
11376 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11377 if test svr4 != "$with_aix_soname"; then
11378 # This is similar to how AIX traditionally builds its shared libraries.
11379 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'
11381 if test aix != "$with_aix_soname"; then
11382 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'
11383 else
11384 # used by -dlpreopen to get the symbols
11385 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
11387 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11392 amigaos*)
11393 case $host_cpu in
11394 powerpc)
11395 # see comment about AmigaOS4 .so support
11396 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11397 archive_expsym_cmds=''
11399 m68k)
11400 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)'
11401 hardcode_libdir_flag_spec='-L$libdir'
11402 hardcode_minus_L=yes
11404 esac
11407 bsdi[45]*)
11408 export_dynamic_flag_spec=-rdynamic
11411 cygwin* | mingw* | pw32* | cegcc*)
11412 # When not using gcc, we currently assume that we are using
11413 # Microsoft Visual C++.
11414 # hardcode_libdir_flag_spec is actually meaningless, as there is
11415 # no search path for DLLs.
11416 case $cc_basename in
11417 cl*)
11418 # Native MSVC
11419 hardcode_libdir_flag_spec=' '
11420 allow_undefined_flag=unsupported
11421 always_export_symbols=yes
11422 file_list_spec='@'
11423 # Tell ltmain to make .lib files, not .a files.
11424 libext=lib
11425 # Tell ltmain to make .dll files, not .so files.
11426 shrext_cmds=.dll
11427 # FIXME: Setting linknames here is a bad hack.
11428 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11429 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11430 cp "$export_symbols" "$output_objdir/$soname.def";
11431 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11432 else
11433 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11435 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11436 linknames='
11437 # The linker will not automatically build a static lib if we build a DLL.
11438 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11439 enable_shared_with_static_runtimes=yes
11440 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11441 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11442 # Don't use ranlib
11443 old_postinstall_cmds='chmod 644 $oldlib'
11444 postlink_cmds='lt_outputfile="@OUTPUT@"~
11445 lt_tool_outputfile="@TOOL_OUTPUT@"~
11446 case $lt_outputfile in
11447 *.exe|*.EXE) ;;
11449 lt_outputfile=$lt_outputfile.exe
11450 lt_tool_outputfile=$lt_tool_outputfile.exe
11452 esac~
11453 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11454 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11455 $RM "$lt_outputfile.manifest";
11459 # Assume MSVC wrapper
11460 hardcode_libdir_flag_spec=' '
11461 allow_undefined_flag=unsupported
11462 # Tell ltmain to make .lib files, not .a files.
11463 libext=lib
11464 # Tell ltmain to make .dll files, not .so files.
11465 shrext_cmds=.dll
11466 # FIXME: Setting linknames here is a bad hack.
11467 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11468 # The linker will automatically build a .lib file if we build a DLL.
11469 old_archive_from_new_cmds='true'
11470 # FIXME: Should let the user specify the lib program.
11471 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11472 enable_shared_with_static_runtimes=yes
11474 esac
11477 darwin* | rhapsody*)
11480 archive_cmds_need_lc=no
11481 hardcode_direct=no
11482 hardcode_automatic=yes
11483 hardcode_shlibpath_var=unsupported
11484 if test yes = "$lt_cv_ld_force_load"; then
11485 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\"`'
11487 else
11488 whole_archive_flag_spec=''
11490 link_all_deplibs=yes
11491 allow_undefined_flag=$_lt_dar_allow_undefined
11492 case $cc_basename in
11493 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11494 *) _lt_dar_can_shared=$GCC ;;
11495 esac
11496 if test yes = "$_lt_dar_can_shared"; then
11497 output_verbose_link_cmd=func_echo_all
11498 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11499 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11500 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"
11501 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"
11503 else
11504 ld_shlibs=no
11509 dgux*)
11510 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11511 hardcode_libdir_flag_spec='-L$libdir'
11512 hardcode_shlibpath_var=no
11515 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11516 # support. Future versions do this automatically, but an explicit c++rt0.o
11517 # does not break anything, and helps significantly (at the cost of a little
11518 # extra space).
11519 freebsd2.2*)
11520 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11521 hardcode_libdir_flag_spec='-R$libdir'
11522 hardcode_direct=yes
11523 hardcode_shlibpath_var=no
11526 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11527 freebsd2.*)
11528 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11529 hardcode_direct=yes
11530 hardcode_minus_L=yes
11531 hardcode_shlibpath_var=no
11534 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11535 freebsd* | dragonfly*)
11536 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11537 hardcode_libdir_flag_spec='-R$libdir'
11538 hardcode_direct=yes
11539 hardcode_shlibpath_var=no
11542 hpux9*)
11543 if test yes = "$GCC"; then
11544 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'
11545 else
11546 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'
11548 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11549 hardcode_libdir_separator=:
11550 hardcode_direct=yes
11552 # hardcode_minus_L: Not really in the search PATH,
11553 # but as the default location of the library.
11554 hardcode_minus_L=yes
11555 export_dynamic_flag_spec='$wl-E'
11558 hpux10*)
11559 if test yes,no = "$GCC,$with_gnu_ld"; then
11560 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11561 else
11562 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11564 if test no = "$with_gnu_ld"; then
11565 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11566 hardcode_libdir_separator=:
11567 hardcode_direct=yes
11568 hardcode_direct_absolute=yes
11569 export_dynamic_flag_spec='$wl-E'
11570 # hardcode_minus_L: Not really in the search PATH,
11571 # but as the default location of the library.
11572 hardcode_minus_L=yes
11576 hpux11*)
11577 if test yes,no = "$GCC,$with_gnu_ld"; then
11578 case $host_cpu in
11579 hppa*64*)
11580 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11582 ia64*)
11583 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11586 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11588 esac
11589 else
11590 case $host_cpu in
11591 hppa*64*)
11592 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11594 ia64*)
11595 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11599 # Older versions of the 11.00 compiler do not understand -b yet
11600 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11602 $as_echo_n "checking if $CC understands -b... " >&6; }
11603 if ${lt_cv_prog_compiler__b+:} false; then :
11604 $as_echo_n "(cached) " >&6
11605 else
11606 lt_cv_prog_compiler__b=no
11607 save_LDFLAGS=$LDFLAGS
11608 LDFLAGS="$LDFLAGS -b"
11609 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11610 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11611 # The linker can only warn and ignore the option if not recognized
11612 # So say no if there are warnings
11613 if test -s conftest.err; then
11614 # Append any errors to the config.log.
11615 cat conftest.err 1>&5
11616 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11617 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11618 if diff conftest.exp conftest.er2 >/dev/null; then
11619 lt_cv_prog_compiler__b=yes
11621 else
11622 lt_cv_prog_compiler__b=yes
11625 $RM -r conftest*
11626 LDFLAGS=$save_LDFLAGS
11629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11630 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11632 if test yes = "$lt_cv_prog_compiler__b"; then
11633 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11634 else
11635 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11639 esac
11641 if test no = "$with_gnu_ld"; then
11642 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11643 hardcode_libdir_separator=:
11645 case $host_cpu in
11646 hppa*64*|ia64*)
11647 hardcode_direct=no
11648 hardcode_shlibpath_var=no
11651 hardcode_direct=yes
11652 hardcode_direct_absolute=yes
11653 export_dynamic_flag_spec='$wl-E'
11655 # hardcode_minus_L: Not really in the search PATH,
11656 # but as the default location of the library.
11657 hardcode_minus_L=yes
11659 esac
11663 irix5* | irix6* | nonstopux*)
11664 if test yes = "$GCC"; then
11665 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'
11666 # Try to use the -exported_symbol ld option, if it does not
11667 # work, assume that -exports_file does not work either and
11668 # implicitly export all symbols.
11669 # This should be the same for all languages, so no per-tag cache variable.
11670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11671 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11672 if ${lt_cv_irix_exported_symbol+:} false; then :
11673 $as_echo_n "(cached) " >&6
11674 else
11675 save_LDFLAGS=$LDFLAGS
11676 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11678 /* end confdefs.h. */
11679 int foo (void) { return 0; }
11680 _ACEOF
11681 if ac_fn_c_try_link "$LINENO"; then :
11682 lt_cv_irix_exported_symbol=yes
11683 else
11684 lt_cv_irix_exported_symbol=no
11686 rm -f core conftest.err conftest.$ac_objext \
11687 conftest$ac_exeext conftest.$ac_ext
11688 LDFLAGS=$save_LDFLAGS
11690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11691 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11692 if test yes = "$lt_cv_irix_exported_symbol"; then
11693 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'
11695 else
11696 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'
11697 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'
11699 archive_cmds_need_lc='no'
11700 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11701 hardcode_libdir_separator=:
11702 inherit_rpath=yes
11703 link_all_deplibs=yes
11706 linux*)
11707 case $cc_basename in
11708 tcc*)
11709 # Fabrice Bellard et al's Tiny C Compiler
11710 ld_shlibs=yes
11711 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11713 esac
11716 netbsd*)
11717 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11718 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11719 else
11720 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11722 hardcode_libdir_flag_spec='-R$libdir'
11723 hardcode_direct=yes
11724 hardcode_shlibpath_var=no
11727 newsos6)
11728 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11729 hardcode_direct=yes
11730 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11731 hardcode_libdir_separator=:
11732 hardcode_shlibpath_var=no
11735 *nto* | *qnx*)
11738 openbsd* | bitrig*)
11739 if test -f /usr/libexec/ld.so; then
11740 hardcode_direct=yes
11741 hardcode_shlibpath_var=no
11742 hardcode_direct_absolute=yes
11743 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11744 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11745 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11746 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11747 export_dynamic_flag_spec='$wl-E'
11748 else
11749 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11750 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11752 else
11753 ld_shlibs=no
11757 os2*)
11758 hardcode_libdir_flag_spec='-L$libdir'
11759 hardcode_minus_L=yes
11760 allow_undefined_flag=unsupported
11761 shrext_cmds=.dll
11762 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11763 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11764 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11765 $ECHO EXPORTS >> $output_objdir/$libname.def~
11766 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11767 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11768 emximp -o $lib $output_objdir/$libname.def'
11769 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11770 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11771 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11772 $ECHO EXPORTS >> $output_objdir/$libname.def~
11773 prefix_cmds="$SED"~
11774 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11775 prefix_cmds="$prefix_cmds -e 1d";
11777 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11778 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11779 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11780 emximp -o $lib $output_objdir/$libname.def'
11781 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11782 enable_shared_with_static_runtimes=yes
11785 osf3*)
11786 if test yes = "$GCC"; then
11787 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11788 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'
11789 else
11790 allow_undefined_flag=' -expect_unresolved \*'
11791 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'
11793 archive_cmds_need_lc='no'
11794 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11795 hardcode_libdir_separator=:
11798 osf4* | osf5*) # as osf3* with the addition of -msym flag
11799 if test yes = "$GCC"; then
11800 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11801 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'
11802 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11803 else
11804 allow_undefined_flag=' -expect_unresolved \*'
11805 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'
11806 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~
11807 $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'
11809 # Both c and cxx compiler support -rpath directly
11810 hardcode_libdir_flag_spec='-rpath $libdir'
11812 archive_cmds_need_lc='no'
11813 hardcode_libdir_separator=:
11816 solaris*)
11817 no_undefined_flag=' -z defs'
11818 if test yes = "$GCC"; then
11819 wlarc='$wl'
11820 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11821 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11822 $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'
11823 else
11824 case `$CC -V 2>&1` in
11825 *"Compilers 5.0"*)
11826 wlarc=''
11827 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11828 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11829 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11832 wlarc='$wl'
11833 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11834 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11835 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11837 esac
11839 hardcode_libdir_flag_spec='-R$libdir'
11840 hardcode_shlibpath_var=no
11841 case $host_os in
11842 solaris2.[0-5] | solaris2.[0-5].*) ;;
11844 # The compiler driver will combine and reorder linker options,
11845 # but understands '-z linker_flag'. GCC discards it without '$wl',
11846 # but is careful enough not to reorder.
11847 # Supported since Solaris 2.6 (maybe 2.5.1?)
11848 if test yes = "$GCC"; then
11849 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11850 else
11851 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11854 esac
11855 link_all_deplibs=yes
11858 sunos4*)
11859 if test sequent = "$host_vendor"; then
11860 # Use $CC to link under sequent, because it throws in some extra .o
11861 # files that make .init and .fini sections work.
11862 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11863 else
11864 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11866 hardcode_libdir_flag_spec='-L$libdir'
11867 hardcode_direct=yes
11868 hardcode_minus_L=yes
11869 hardcode_shlibpath_var=no
11872 sysv4)
11873 case $host_vendor in
11874 sni)
11875 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11876 hardcode_direct=yes # is this really true???
11878 siemens)
11879 ## LD is ld it makes a PLAMLIB
11880 ## CC just makes a GrossModule.
11881 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11882 reload_cmds='$CC -r -o $output$reload_objs'
11883 hardcode_direct=no
11885 motorola)
11886 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11887 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11889 esac
11890 runpath_var='LD_RUN_PATH'
11891 hardcode_shlibpath_var=no
11894 sysv4.3*)
11895 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11896 hardcode_shlibpath_var=no
11897 export_dynamic_flag_spec='-Bexport'
11900 sysv4*MP*)
11901 if test -d /usr/nec; then
11902 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11903 hardcode_shlibpath_var=no
11904 runpath_var=LD_RUN_PATH
11905 hardcode_runpath_var=yes
11906 ld_shlibs=yes
11910 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11911 no_undefined_flag='$wl-z,text'
11912 archive_cmds_need_lc=no
11913 hardcode_shlibpath_var=no
11914 runpath_var='LD_RUN_PATH'
11916 if test yes = "$GCC"; then
11917 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11918 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11919 else
11920 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11921 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11925 sysv5* | sco3.2v5* | sco5v6*)
11926 # Note: We CANNOT use -z defs as we might desire, because we do not
11927 # link with -lc, and that would cause any symbols used from libc to
11928 # always be unresolved, which means just about no library would
11929 # ever link correctly. If we're not using GNU ld we use -z text
11930 # though, which does catch some bad symbols but isn't as heavy-handed
11931 # as -z defs.
11932 no_undefined_flag='$wl-z,text'
11933 allow_undefined_flag='$wl-z,nodefs'
11934 archive_cmds_need_lc=no
11935 hardcode_shlibpath_var=no
11936 hardcode_libdir_flag_spec='$wl-R,$libdir'
11937 hardcode_libdir_separator=':'
11938 link_all_deplibs=yes
11939 export_dynamic_flag_spec='$wl-Bexport'
11940 runpath_var='LD_RUN_PATH'
11942 if test yes = "$GCC"; then
11943 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11944 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11945 else
11946 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11947 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11951 uts4*)
11952 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11953 hardcode_libdir_flag_spec='-L$libdir'
11954 hardcode_shlibpath_var=no
11958 ld_shlibs=no
11960 esac
11962 if test sni = "$host_vendor"; then
11963 case $host in
11964 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11965 export_dynamic_flag_spec='$wl-Blargedynsym'
11967 esac
11971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11972 $as_echo "$ld_shlibs" >&6; }
11973 test no = "$ld_shlibs" && can_build_shared=no
11975 with_gnu_ld=$with_gnu_ld
11992 # Do we need to explicitly link libc?
11994 case "x$archive_cmds_need_lc" in
11995 x|xyes)
11996 # Assume -lc should be added
11997 archive_cmds_need_lc=yes
11999 if test yes,yes = "$GCC,$enable_shared"; then
12000 case $archive_cmds in
12001 *'~'*)
12002 # FIXME: we may have to deal with multi-command sequences.
12004 '$CC '*)
12005 # Test whether the compiler implicitly links with -lc since on some
12006 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12007 # to ld, don't add -lc before -lgcc.
12008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12009 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12010 if ${lt_cv_archive_cmds_need_lc+:} false; then :
12011 $as_echo_n "(cached) " >&6
12012 else
12013 $RM conftest*
12014 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12016 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12017 (eval $ac_compile) 2>&5
12018 ac_status=$?
12019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12020 test $ac_status = 0; } 2>conftest.err; then
12021 soname=conftest
12022 lib=conftest
12023 libobjs=conftest.$ac_objext
12024 deplibs=
12025 wl=$lt_prog_compiler_wl
12026 pic_flag=$lt_prog_compiler_pic
12027 compiler_flags=-v
12028 linker_flags=-v
12029 verstring=
12030 output_objdir=.
12031 libname=conftest
12032 lt_save_allow_undefined_flag=$allow_undefined_flag
12033 allow_undefined_flag=
12034 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12035 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12036 ac_status=$?
12037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12038 test $ac_status = 0; }
12039 then
12040 lt_cv_archive_cmds_need_lc=no
12041 else
12042 lt_cv_archive_cmds_need_lc=yes
12044 allow_undefined_flag=$lt_save_allow_undefined_flag
12045 else
12046 cat conftest.err 1>&5
12048 $RM conftest*
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12052 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12053 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12055 esac
12058 esac
12211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12212 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12214 if test yes = "$GCC"; then
12215 case $host_os in
12216 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12217 *) lt_awk_arg='/^libraries:/' ;;
12218 esac
12219 case $host_os in
12220 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12221 *) lt_sed_strip_eq='s|=/|/|g' ;;
12222 esac
12223 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12224 case $lt_search_path_spec in
12225 *\;*)
12226 # if the path contains ";" then we assume it to be the separator
12227 # otherwise default to the standard path separator (i.e. ":") - it is
12228 # assumed that no part of a normal pathname contains ";" but that should
12229 # okay in the real world where ";" in dirpaths is itself problematic.
12230 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12233 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12235 esac
12236 # Ok, now we have the path, separated by spaces, we can step through it
12237 # and add multilib dir if necessary...
12238 lt_tmp_lt_search_path_spec=
12239 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12240 # ...but if some path component already ends with the multilib dir we assume
12241 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12242 case "$lt_multi_os_dir; $lt_search_path_spec " in
12243 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12244 lt_multi_os_dir=
12246 esac
12247 for lt_sys_path in $lt_search_path_spec; do
12248 if test -d "$lt_sys_path$lt_multi_os_dir"; then
12249 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12250 elif test -n "$lt_multi_os_dir"; then
12251 test -d "$lt_sys_path" && \
12252 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12254 done
12255 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12256 BEGIN {RS = " "; FS = "/|\n";} {
12257 lt_foo = "";
12258 lt_count = 0;
12259 for (lt_i = NF; lt_i > 0; lt_i--) {
12260 if ($lt_i != "" && $lt_i != ".") {
12261 if ($lt_i == "..") {
12262 lt_count++;
12263 } else {
12264 if (lt_count == 0) {
12265 lt_foo = "/" $lt_i lt_foo;
12266 } else {
12267 lt_count--;
12272 if (lt_foo != "") { lt_freq[lt_foo]++; }
12273 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12275 # AWK program above erroneously prepends '/' to C:/dos/paths
12276 # for these hosts.
12277 case $host_os in
12278 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12279 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12280 esac
12281 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12282 else
12283 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12285 library_names_spec=
12286 libname_spec='lib$name'
12287 soname_spec=
12288 shrext_cmds=.so
12289 postinstall_cmds=
12290 postuninstall_cmds=
12291 finish_cmds=
12292 finish_eval=
12293 shlibpath_var=
12294 shlibpath_overrides_runpath=unknown
12295 version_type=none
12296 dynamic_linker="$host_os ld.so"
12297 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12298 need_lib_prefix=unknown
12299 hardcode_into_libs=no
12301 # when you set need_version to no, make sure it does not cause -set_version
12302 # flags to be left without arguments
12303 need_version=unknown
12307 case $host_os in
12308 aix3*)
12309 version_type=linux # correct to gnu/linux during the next big refactor
12310 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12311 shlibpath_var=LIBPATH
12313 # AIX 3 has no versioning support, so we append a major version to the name.
12314 soname_spec='$libname$release$shared_ext$major'
12317 aix[4-9]*)
12318 version_type=linux # correct to gnu/linux during the next big refactor
12319 need_lib_prefix=no
12320 need_version=no
12321 hardcode_into_libs=yes
12322 if test ia64 = "$host_cpu"; then
12323 # AIX 5 supports IA64
12324 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12325 shlibpath_var=LD_LIBRARY_PATH
12326 else
12327 # With GCC up to 2.95.x, collect2 would create an import file
12328 # for dependence libraries. The import file would start with
12329 # the line '#! .'. This would cause the generated library to
12330 # depend on '.', always an invalid library. This was fixed in
12331 # development snapshots of GCC prior to 3.0.
12332 case $host_os in
12333 aix4 | aix4.[01] | aix4.[01].*)
12334 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12335 echo ' yes '
12336 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12338 else
12339 can_build_shared=no
12342 esac
12343 # Using Import Files as archive members, it is possible to support
12344 # filename-based versioning of shared library archives on AIX. While
12345 # this would work for both with and without runtime linking, it will
12346 # prevent static linking of such archives. So we do filename-based
12347 # shared library versioning with .so extension only, which is used
12348 # when both runtime linking and shared linking is enabled.
12349 # Unfortunately, runtime linking may impact performance, so we do
12350 # not want this to be the default eventually. Also, we use the
12351 # versioned .so libs for executables only if there is the -brtl
12352 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
12353 # To allow for filename-based versioning support, we need to create
12354 # libNAME.so.V as an archive file, containing:
12355 # *) an Import File, referring to the versioned filename of the
12356 # archive as well as the shared archive member, telling the
12357 # bitwidth (32 or 64) of that shared object, and providing the
12358 # list of exported symbols of that shared object, eventually
12359 # decorated with the 'weak' keyword
12360 # *) the shared object with the F_LOADONLY flag set, to really avoid
12361 # it being seen by the linker.
12362 # At run time we better use the real file rather than another symlink,
12363 # but for link time we create the symlink libNAME.so -> libNAME.so.V
12365 case $with_aix_soname,$aix_use_runtimelinking in
12366 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12367 # soname into executable. Probably we can add versioning support to
12368 # collect2, so additional links can be useful in future.
12369 aix,yes) # traditional libtool
12370 dynamic_linker='AIX unversionable lib.so'
12371 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12372 # instead of lib<name>.a to let people know that these are not
12373 # typical AIX shared libraries.
12374 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12376 aix,no) # traditional AIX only
12377 dynamic_linker='AIX lib.a(lib.so.V)'
12378 # We preserve .a as extension for shared libraries through AIX4.2
12379 # and later when we are not doing run time linking.
12380 library_names_spec='$libname$release.a $libname.a'
12381 soname_spec='$libname$release$shared_ext$major'
12383 svr4,*) # full svr4 only
12384 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12385 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12386 # We do not specify a path in Import Files, so LIBPATH fires.
12387 shlibpath_overrides_runpath=yes
12389 *,yes) # both, prefer svr4
12390 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12391 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12392 # unpreferred sharedlib libNAME.a needs extra handling
12393 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"'
12394 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"'
12395 # We do not specify a path in Import Files, so LIBPATH fires.
12396 shlibpath_overrides_runpath=yes
12398 *,no) # both, prefer aix
12399 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12400 library_names_spec='$libname$release.a $libname.a'
12401 soname_spec='$libname$release$shared_ext$major'
12402 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12403 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)'
12404 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"'
12406 esac
12407 shlibpath_var=LIBPATH
12411 amigaos*)
12412 case $host_cpu in
12413 powerpc)
12414 # Since July 2007 AmigaOS4 officially supports .so libraries.
12415 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12416 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12418 m68k)
12419 library_names_spec='$libname.ixlibrary $libname.a'
12420 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12421 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'
12423 esac
12426 beos*)
12427 library_names_spec='$libname$shared_ext'
12428 dynamic_linker="$host_os ld.so"
12429 shlibpath_var=LIBRARY_PATH
12432 bsdi[45]*)
12433 version_type=linux # correct to gnu/linux during the next big refactor
12434 need_version=no
12435 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12436 soname_spec='$libname$release$shared_ext$major'
12437 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12438 shlibpath_var=LD_LIBRARY_PATH
12439 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12440 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12441 # the default ld.so.conf also contains /usr/contrib/lib and
12442 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12443 # libtool to hard-code these into programs
12446 cygwin* | mingw* | pw32* | cegcc*)
12447 version_type=windows
12448 shrext_cmds=.dll
12449 need_version=no
12450 need_lib_prefix=no
12452 case $GCC,$cc_basename in
12453 yes,*)
12454 # gcc
12455 library_names_spec='$libname.dll.a'
12456 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12457 postinstall_cmds='base_file=`basename \$file`~
12458 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12459 dldir=$destdir/`dirname \$dlpath`~
12460 test -d \$dldir || mkdir -p \$dldir~
12461 $install_prog $dir/$dlname \$dldir/$dlname~
12462 chmod a+x \$dldir/$dlname~
12463 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12464 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12466 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12467 dlpath=$dir/\$dldll~
12468 $RM \$dlpath'
12469 shlibpath_overrides_runpath=yes
12471 case $host_os in
12472 cygwin*)
12473 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12474 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12476 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12478 mingw* | cegcc*)
12479 # MinGW DLLs use traditional 'lib' prefix
12480 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12482 pw32*)
12483 # pw32 DLLs use 'pw' prefix rather than 'lib'
12484 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12486 esac
12487 dynamic_linker='Win32 ld.exe'
12490 *,cl*)
12491 # Native MSVC
12492 libname_spec='$name'
12493 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12494 library_names_spec='$libname.dll.lib'
12496 case $build_os in
12497 mingw*)
12498 sys_lib_search_path_spec=
12499 lt_save_ifs=$IFS
12500 IFS=';'
12501 for lt_path in $LIB
12503 IFS=$lt_save_ifs
12504 # Let DOS variable expansion print the short 8.3 style file name.
12505 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12506 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12507 done
12508 IFS=$lt_save_ifs
12509 # Convert to MSYS style.
12510 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12512 cygwin*)
12513 # Convert to unix form, then to dos form, then back to unix form
12514 # but this time dos style (no spaces!) so that the unix form looks
12515 # like /cygdrive/c/PROGRA~1:/cygdr...
12516 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12517 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12518 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12521 sys_lib_search_path_spec=$LIB
12522 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12523 # It is most probably a Windows format PATH.
12524 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12525 else
12526 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12528 # FIXME: find the short name or the path components, as spaces are
12529 # common. (e.g. "Program Files" -> "PROGRA~1")
12531 esac
12533 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12534 postinstall_cmds='base_file=`basename \$file`~
12535 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12536 dldir=$destdir/`dirname \$dlpath`~
12537 test -d \$dldir || mkdir -p \$dldir~
12538 $install_prog $dir/$dlname \$dldir/$dlname'
12539 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12540 dlpath=$dir/\$dldll~
12541 $RM \$dlpath'
12542 shlibpath_overrides_runpath=yes
12543 dynamic_linker='Win32 link.exe'
12547 # Assume MSVC wrapper
12548 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12549 dynamic_linker='Win32 ld.exe'
12551 esac
12552 # FIXME: first we should search . and the directory the executable is in
12553 shlibpath_var=PATH
12556 darwin* | rhapsody*)
12557 dynamic_linker="$host_os dyld"
12558 version_type=darwin
12559 need_lib_prefix=no
12560 need_version=no
12561 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12562 soname_spec='$libname$release$major$shared_ext'
12563 shlibpath_overrides_runpath=yes
12564 shlibpath_var=DYLD_LIBRARY_PATH
12565 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12567 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12568 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12571 dgux*)
12572 version_type=linux # correct to gnu/linux during the next big refactor
12573 need_lib_prefix=no
12574 need_version=no
12575 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12576 soname_spec='$libname$release$shared_ext$major'
12577 shlibpath_var=LD_LIBRARY_PATH
12580 freebsd* | dragonfly*)
12581 # DragonFly does not have aout. When/if they implement a new
12582 # versioning mechanism, adjust this.
12583 if test -x /usr/bin/objformat; then
12584 objformat=`/usr/bin/objformat`
12585 else
12586 case $host_os in
12587 freebsd[23].*) objformat=aout ;;
12588 *) objformat=elf ;;
12589 esac
12591 version_type=freebsd-$objformat
12592 case $version_type in
12593 freebsd-elf*)
12594 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12595 soname_spec='$libname$release$shared_ext$major'
12596 need_version=no
12597 need_lib_prefix=no
12599 freebsd-*)
12600 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12601 need_version=yes
12603 esac
12604 shlibpath_var=LD_LIBRARY_PATH
12605 case $host_os in
12606 freebsd2.*)
12607 shlibpath_overrides_runpath=yes
12609 freebsd3.[01]* | freebsdelf3.[01]*)
12610 shlibpath_overrides_runpath=yes
12611 hardcode_into_libs=yes
12613 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12614 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12615 shlibpath_overrides_runpath=no
12616 hardcode_into_libs=yes
12618 *) # from 4.6 on, and DragonFly
12619 shlibpath_overrides_runpath=yes
12620 hardcode_into_libs=yes
12622 esac
12625 haiku*)
12626 version_type=linux # correct to gnu/linux during the next big refactor
12627 need_lib_prefix=no
12628 need_version=no
12629 dynamic_linker="$host_os runtime_loader"
12630 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12631 soname_spec='$libname$release$shared_ext$major'
12632 shlibpath_var=LIBRARY_PATH
12633 shlibpath_overrides_runpath=no
12634 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12635 hardcode_into_libs=yes
12638 hpux9* | hpux10* | hpux11*)
12639 # Give a soname corresponding to the major version so that dld.sl refuses to
12640 # link against other versions.
12641 version_type=sunos
12642 need_lib_prefix=no
12643 need_version=no
12644 case $host_cpu in
12645 ia64*)
12646 shrext_cmds='.so'
12647 hardcode_into_libs=yes
12648 dynamic_linker="$host_os dld.so"
12649 shlibpath_var=LD_LIBRARY_PATH
12650 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12651 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12652 soname_spec='$libname$release$shared_ext$major'
12653 if test 32 = "$HPUX_IA64_MODE"; then
12654 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12655 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12656 else
12657 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12658 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12661 hppa*64*)
12662 shrext_cmds='.sl'
12663 hardcode_into_libs=yes
12664 dynamic_linker="$host_os dld.sl"
12665 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12666 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12667 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12668 soname_spec='$libname$release$shared_ext$major'
12669 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12670 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12673 shrext_cmds='.sl'
12674 dynamic_linker="$host_os dld.sl"
12675 shlibpath_var=SHLIB_PATH
12676 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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'
12680 esac
12681 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12682 postinstall_cmds='chmod 555 $lib'
12683 # or fails outright, so override atomically:
12684 install_override_mode=555
12687 interix[3-9]*)
12688 version_type=linux # correct to gnu/linux during the next big refactor
12689 need_lib_prefix=no
12690 need_version=no
12691 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12692 soname_spec='$libname$release$shared_ext$major'
12693 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12694 shlibpath_var=LD_LIBRARY_PATH
12695 shlibpath_overrides_runpath=no
12696 hardcode_into_libs=yes
12699 irix5* | irix6* | nonstopux*)
12700 case $host_os in
12701 nonstopux*) version_type=nonstopux ;;
12703 if test yes = "$lt_cv_prog_gnu_ld"; then
12704 version_type=linux # correct to gnu/linux during the next big refactor
12705 else
12706 version_type=irix
12707 fi ;;
12708 esac
12709 need_lib_prefix=no
12710 need_version=no
12711 soname_spec='$libname$release$shared_ext$major'
12712 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12713 case $host_os in
12714 irix5* | nonstopux*)
12715 libsuff= shlibsuff=
12718 case $LD in # libtool.m4 will add one of these switches to LD
12719 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12720 libsuff= shlibsuff= libmagic=32-bit;;
12721 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12722 libsuff=32 shlibsuff=N32 libmagic=N32;;
12723 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12724 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12725 *) libsuff= shlibsuff= libmagic=never-match;;
12726 esac
12728 esac
12729 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12730 shlibpath_overrides_runpath=no
12731 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12732 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12733 hardcode_into_libs=yes
12736 # No shared lib support for Linux oldld, aout, or coff.
12737 linux*oldld* | linux*aout* | linux*coff*)
12738 dynamic_linker=no
12741 linux*android*)
12742 version_type=none # Android doesn't support versioned libraries.
12743 need_lib_prefix=no
12744 need_version=no
12745 library_names_spec='$libname$release$shared_ext'
12746 soname_spec='$libname$release$shared_ext'
12747 finish_cmds=
12748 shlibpath_var=LD_LIBRARY_PATH
12749 shlibpath_overrides_runpath=yes
12751 # This implies no fast_install, which is unacceptable.
12752 # Some rework will be needed to allow for fast_install
12753 # before this can be enabled.
12754 hardcode_into_libs=yes
12756 dynamic_linker='Android linker'
12757 # Don't embed -rpath directories since the linker doesn't support them.
12758 hardcode_libdir_flag_spec='-L$libdir'
12761 # This must be glibc/ELF.
12762 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12763 version_type=linux # correct to gnu/linux during the next big refactor
12764 need_lib_prefix=no
12765 need_version=no
12766 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12767 soname_spec='$libname$release$shared_ext$major'
12768 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12769 shlibpath_var=LD_LIBRARY_PATH
12770 shlibpath_overrides_runpath=no
12772 # Some binutils ld are patched to set DT_RUNPATH
12773 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12774 $as_echo_n "(cached) " >&6
12775 else
12776 lt_cv_shlibpath_overrides_runpath=no
12777 save_LDFLAGS=$LDFLAGS
12778 save_libdir=$libdir
12779 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12780 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12782 /* end confdefs.h. */
12785 main ()
12789 return 0;
12791 _ACEOF
12792 if ac_fn_c_try_link "$LINENO"; then :
12793 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12794 lt_cv_shlibpath_overrides_runpath=yes
12797 rm -f core conftest.err conftest.$ac_objext \
12798 conftest$ac_exeext conftest.$ac_ext
12799 LDFLAGS=$save_LDFLAGS
12800 libdir=$save_libdir
12804 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12806 # This implies no fast_install, which is unacceptable.
12807 # Some rework will be needed to allow for fast_install
12808 # before this can be enabled.
12809 hardcode_into_libs=yes
12811 # Ideally, we could use ldconfig to report *all* directores which are
12812 # searched for libraries, however this is still not possible. Aside from not
12813 # being certain /sbin/ldconfig is available, command
12814 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12815 # even though it is searched at run-time. Try to do the best guess by
12816 # appending ld.so.conf contents (and includes) to the search path.
12817 if test -f /etc/ld.so.conf; then
12818 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' ' '`
12819 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12822 # We used to test for /lib/ld.so.1 and disable shared libraries on
12823 # powerpc, because MkLinux only supported shared libraries with the
12824 # GNU dynamic linker. Since this was broken with cross compilers,
12825 # most powerpc-linux boxes support dynamic linking these days and
12826 # people can always --disable-shared, the test was removed, and we
12827 # assume the GNU/Linux dynamic linker is in use.
12828 dynamic_linker='GNU/Linux ld.so'
12831 netbsd*)
12832 version_type=sunos
12833 need_lib_prefix=no
12834 need_version=no
12835 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12836 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12837 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12838 dynamic_linker='NetBSD (a.out) ld.so'
12839 else
12840 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12841 soname_spec='$libname$release$shared_ext$major'
12842 dynamic_linker='NetBSD ld.elf_so'
12844 shlibpath_var=LD_LIBRARY_PATH
12845 shlibpath_overrides_runpath=yes
12846 hardcode_into_libs=yes
12849 newsos6)
12850 version_type=linux # correct to gnu/linux during the next big refactor
12851 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12852 shlibpath_var=LD_LIBRARY_PATH
12853 shlibpath_overrides_runpath=yes
12856 *nto* | *qnx*)
12857 version_type=qnx
12858 need_lib_prefix=no
12859 need_version=no
12860 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12861 soname_spec='$libname$release$shared_ext$major'
12862 shlibpath_var=LD_LIBRARY_PATH
12863 shlibpath_overrides_runpath=no
12864 hardcode_into_libs=yes
12865 dynamic_linker='ldqnx.so'
12868 openbsd* | bitrig*)
12869 version_type=sunos
12870 sys_lib_dlsearch_path_spec=/usr/lib
12871 need_lib_prefix=no
12872 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12873 need_version=no
12874 else
12875 need_version=yes
12877 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12878 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12879 shlibpath_var=LD_LIBRARY_PATH
12880 shlibpath_overrides_runpath=yes
12883 os2*)
12884 libname_spec='$name'
12885 version_type=windows
12886 shrext_cmds=.dll
12887 need_version=no
12888 need_lib_prefix=no
12889 # OS/2 can only load a DLL with a base name of 8 characters or less.
12890 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12891 v=$($ECHO $release$versuffix | tr -d .-);
12892 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12893 $ECHO $n$v`$shared_ext'
12894 library_names_spec='${libname}_dll.$libext'
12895 dynamic_linker='OS/2 ld.exe'
12896 shlibpath_var=BEGINLIBPATH
12897 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12898 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12899 postinstall_cmds='base_file=`basename \$file`~
12900 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12901 dldir=$destdir/`dirname \$dlpath`~
12902 test -d \$dldir || mkdir -p \$dldir~
12903 $install_prog $dir/$dlname \$dldir/$dlname~
12904 chmod a+x \$dldir/$dlname~
12905 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12906 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12908 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12909 dlpath=$dir/\$dldll~
12910 $RM \$dlpath'
12913 osf3* | osf4* | osf5*)
12914 version_type=osf
12915 need_lib_prefix=no
12916 need_version=no
12917 soname_spec='$libname$release$shared_ext$major'
12918 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12919 shlibpath_var=LD_LIBRARY_PATH
12920 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12921 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12924 rdos*)
12925 dynamic_linker=no
12928 solaris*)
12929 version_type=linux # correct to gnu/linux during the next big refactor
12930 need_lib_prefix=no
12931 need_version=no
12932 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12933 soname_spec='$libname$release$shared_ext$major'
12934 shlibpath_var=LD_LIBRARY_PATH
12935 shlibpath_overrides_runpath=yes
12936 hardcode_into_libs=yes
12937 # ldd complains unless libraries are executable
12938 postinstall_cmds='chmod +x $lib'
12941 sunos4*)
12942 version_type=sunos
12943 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12944 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12945 shlibpath_var=LD_LIBRARY_PATH
12946 shlibpath_overrides_runpath=yes
12947 if test yes = "$with_gnu_ld"; then
12948 need_lib_prefix=no
12950 need_version=yes
12953 sysv4 | sysv4.3*)
12954 version_type=linux # correct to gnu/linux during the next big refactor
12955 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12956 soname_spec='$libname$release$shared_ext$major'
12957 shlibpath_var=LD_LIBRARY_PATH
12958 case $host_vendor in
12959 sni)
12960 shlibpath_overrides_runpath=no
12961 need_lib_prefix=no
12962 runpath_var=LD_RUN_PATH
12964 siemens)
12965 need_lib_prefix=no
12967 motorola)
12968 need_lib_prefix=no
12969 need_version=no
12970 shlibpath_overrides_runpath=no
12971 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12973 esac
12976 sysv4*MP*)
12977 if test -d /usr/nec; then
12978 version_type=linux # correct to gnu/linux during the next big refactor
12979 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12980 soname_spec='$libname$shared_ext.$major'
12981 shlibpath_var=LD_LIBRARY_PATH
12985 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12986 version_type=sco
12987 need_lib_prefix=no
12988 need_version=no
12989 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12990 soname_spec='$libname$release$shared_ext$major'
12991 shlibpath_var=LD_LIBRARY_PATH
12992 shlibpath_overrides_runpath=yes
12993 hardcode_into_libs=yes
12994 if test yes = "$with_gnu_ld"; then
12995 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12996 else
12997 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12998 case $host_os in
12999 sco3.2v5*)
13000 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13002 esac
13004 sys_lib_dlsearch_path_spec='/usr/lib'
13007 tpf*)
13008 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13009 version_type=linux # correct to gnu/linux during the next big refactor
13010 need_lib_prefix=no
13011 need_version=no
13012 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13013 shlibpath_var=LD_LIBRARY_PATH
13014 shlibpath_overrides_runpath=no
13015 hardcode_into_libs=yes
13018 uts4*)
13019 version_type=linux # correct to gnu/linux during the next big refactor
13020 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13021 soname_spec='$libname$release$shared_ext$major'
13022 shlibpath_var=LD_LIBRARY_PATH
13026 dynamic_linker=no
13028 esac
13029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13030 $as_echo "$dynamic_linker" >&6; }
13031 test no = "$dynamic_linker" && can_build_shared=no
13033 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13034 if test yes = "$GCC"; then
13035 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13038 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13039 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13042 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13043 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13046 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13047 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13049 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13050 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13052 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13053 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13152 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13153 hardcode_action=
13154 if test -n "$hardcode_libdir_flag_spec" ||
13155 test -n "$runpath_var" ||
13156 test yes = "$hardcode_automatic"; then
13158 # We can hardcode non-existent directories.
13159 if test no != "$hardcode_direct" &&
13160 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13161 # have to relink, otherwise we might link with an installed library
13162 # when we should be linking with a yet-to-be-installed one
13163 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13164 test no != "$hardcode_minus_L"; then
13165 # Linking always hardcodes the temporary library directory.
13166 hardcode_action=relink
13167 else
13168 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13169 hardcode_action=immediate
13171 else
13172 # We cannot hardcode anything, or else we can only hardcode existing
13173 # directories.
13174 hardcode_action=unsupported
13176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13177 $as_echo "$hardcode_action" >&6; }
13179 if test relink = "$hardcode_action" ||
13180 test yes = "$inherit_rpath"; then
13181 # Fast installation is not supported
13182 enable_fast_install=no
13183 elif test yes = "$shlibpath_overrides_runpath" ||
13184 test no = "$enable_shared"; then
13185 # Fast installation is not necessary
13186 enable_fast_install=needless
13194 if test yes != "$enable_dlopen"; then
13195 enable_dlopen=unknown
13196 enable_dlopen_self=unknown
13197 enable_dlopen_self_static=unknown
13198 else
13199 lt_cv_dlopen=no
13200 lt_cv_dlopen_libs=
13202 case $host_os in
13203 beos*)
13204 lt_cv_dlopen=load_add_on
13205 lt_cv_dlopen_libs=
13206 lt_cv_dlopen_self=yes
13209 mingw* | pw32* | cegcc*)
13210 lt_cv_dlopen=LoadLibrary
13211 lt_cv_dlopen_libs=
13214 cygwin*)
13215 lt_cv_dlopen=dlopen
13216 lt_cv_dlopen_libs=
13219 darwin*)
13220 # if libdl is installed we need to link against it
13221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13222 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13223 if ${ac_cv_lib_dl_dlopen+:} false; then :
13224 $as_echo_n "(cached) " >&6
13225 else
13226 ac_check_lib_save_LIBS=$LIBS
13227 LIBS="-ldl $LIBS"
13228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13229 /* end confdefs.h. */
13231 /* Override any GCC internal prototype to avoid an error.
13232 Use char because int might match the return type of a GCC
13233 builtin and then its argument prototype would still apply. */
13234 #ifdef __cplusplus
13235 extern "C"
13236 #endif
13237 char dlopen ();
13239 main ()
13241 return dlopen ();
13243 return 0;
13245 _ACEOF
13246 if ac_fn_c_try_link "$LINENO"; then :
13247 ac_cv_lib_dl_dlopen=yes
13248 else
13249 ac_cv_lib_dl_dlopen=no
13251 rm -f core conftest.err conftest.$ac_objext \
13252 conftest$ac_exeext conftest.$ac_ext
13253 LIBS=$ac_check_lib_save_LIBS
13255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13256 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13257 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13258 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13259 else
13261 lt_cv_dlopen=dyld
13262 lt_cv_dlopen_libs=
13263 lt_cv_dlopen_self=yes
13269 tpf*)
13270 # Don't try to run any link tests for TPF. We know it's impossible
13271 # because TPF is a cross-compiler, and we know how we open DSOs.
13272 lt_cv_dlopen=dlopen
13273 lt_cv_dlopen_libs=
13274 lt_cv_dlopen_self=no
13278 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13279 if test "x$ac_cv_func_shl_load" = xyes; then :
13280 lt_cv_dlopen=shl_load
13281 else
13282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13283 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13284 if ${ac_cv_lib_dld_shl_load+:} false; then :
13285 $as_echo_n "(cached) " >&6
13286 else
13287 ac_check_lib_save_LIBS=$LIBS
13288 LIBS="-ldld $LIBS"
13289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13290 /* end confdefs.h. */
13292 /* Override any GCC internal prototype to avoid an error.
13293 Use char because int might match the return type of a GCC
13294 builtin and then its argument prototype would still apply. */
13295 #ifdef __cplusplus
13296 extern "C"
13297 #endif
13298 char shl_load ();
13300 main ()
13302 return shl_load ();
13304 return 0;
13306 _ACEOF
13307 if ac_fn_c_try_link "$LINENO"; then :
13308 ac_cv_lib_dld_shl_load=yes
13309 else
13310 ac_cv_lib_dld_shl_load=no
13312 rm -f core conftest.err conftest.$ac_objext \
13313 conftest$ac_exeext conftest.$ac_ext
13314 LIBS=$ac_check_lib_save_LIBS
13316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13317 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13318 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13319 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13320 else
13321 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13322 if test "x$ac_cv_func_dlopen" = xyes; then :
13323 lt_cv_dlopen=dlopen
13324 else
13325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13326 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13327 if ${ac_cv_lib_dl_dlopen+:} false; then :
13328 $as_echo_n "(cached) " >&6
13329 else
13330 ac_check_lib_save_LIBS=$LIBS
13331 LIBS="-ldl $LIBS"
13332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13333 /* end confdefs.h. */
13335 /* Override any GCC internal prototype to avoid an error.
13336 Use char because int might match the return type of a GCC
13337 builtin and then its argument prototype would still apply. */
13338 #ifdef __cplusplus
13339 extern "C"
13340 #endif
13341 char dlopen ();
13343 main ()
13345 return dlopen ();
13347 return 0;
13349 _ACEOF
13350 if ac_fn_c_try_link "$LINENO"; then :
13351 ac_cv_lib_dl_dlopen=yes
13352 else
13353 ac_cv_lib_dl_dlopen=no
13355 rm -f core conftest.err conftest.$ac_objext \
13356 conftest$ac_exeext conftest.$ac_ext
13357 LIBS=$ac_check_lib_save_LIBS
13359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13360 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13361 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13362 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13363 else
13364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13365 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13366 if ${ac_cv_lib_svld_dlopen+:} false; then :
13367 $as_echo_n "(cached) " >&6
13368 else
13369 ac_check_lib_save_LIBS=$LIBS
13370 LIBS="-lsvld $LIBS"
13371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13372 /* end confdefs.h. */
13374 /* Override any GCC internal prototype to avoid an error.
13375 Use char because int might match the return type of a GCC
13376 builtin and then its argument prototype would still apply. */
13377 #ifdef __cplusplus
13378 extern "C"
13379 #endif
13380 char dlopen ();
13382 main ()
13384 return dlopen ();
13386 return 0;
13388 _ACEOF
13389 if ac_fn_c_try_link "$LINENO"; then :
13390 ac_cv_lib_svld_dlopen=yes
13391 else
13392 ac_cv_lib_svld_dlopen=no
13394 rm -f core conftest.err conftest.$ac_objext \
13395 conftest$ac_exeext conftest.$ac_ext
13396 LIBS=$ac_check_lib_save_LIBS
13398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13399 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13400 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13401 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13402 else
13403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13404 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13405 if ${ac_cv_lib_dld_dld_link+:} false; then :
13406 $as_echo_n "(cached) " >&6
13407 else
13408 ac_check_lib_save_LIBS=$LIBS
13409 LIBS="-ldld $LIBS"
13410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13411 /* end confdefs.h. */
13413 /* Override any GCC internal prototype to avoid an error.
13414 Use char because int might match the return type of a GCC
13415 builtin and then its argument prototype would still apply. */
13416 #ifdef __cplusplus
13417 extern "C"
13418 #endif
13419 char dld_link ();
13421 main ()
13423 return dld_link ();
13425 return 0;
13427 _ACEOF
13428 if ac_fn_c_try_link "$LINENO"; then :
13429 ac_cv_lib_dld_dld_link=yes
13430 else
13431 ac_cv_lib_dld_dld_link=no
13433 rm -f core conftest.err conftest.$ac_objext \
13434 conftest$ac_exeext conftest.$ac_ext
13435 LIBS=$ac_check_lib_save_LIBS
13437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13438 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13439 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13440 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13459 esac
13461 if test no = "$lt_cv_dlopen"; then
13462 enable_dlopen=no
13463 else
13464 enable_dlopen=yes
13467 case $lt_cv_dlopen in
13468 dlopen)
13469 save_CPPFLAGS=$CPPFLAGS
13470 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13472 save_LDFLAGS=$LDFLAGS
13473 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13475 save_LIBS=$LIBS
13476 LIBS="$lt_cv_dlopen_libs $LIBS"
13478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13479 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13480 if ${lt_cv_dlopen_self+:} false; then :
13481 $as_echo_n "(cached) " >&6
13482 else
13483 if test yes = "$cross_compiling"; then :
13484 lt_cv_dlopen_self=cross
13485 else
13486 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13487 lt_status=$lt_dlunknown
13488 cat > conftest.$ac_ext <<_LT_EOF
13489 #line $LINENO "configure"
13490 #include "confdefs.h"
13492 #if HAVE_DLFCN_H
13493 #include <dlfcn.h>
13494 #endif
13496 #include <stdio.h>
13498 #ifdef RTLD_GLOBAL
13499 # define LT_DLGLOBAL RTLD_GLOBAL
13500 #else
13501 # ifdef DL_GLOBAL
13502 # define LT_DLGLOBAL DL_GLOBAL
13503 # else
13504 # define LT_DLGLOBAL 0
13505 # endif
13506 #endif
13508 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13509 find out it does not work in some platform. */
13510 #ifndef LT_DLLAZY_OR_NOW
13511 # ifdef RTLD_LAZY
13512 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13513 # else
13514 # ifdef DL_LAZY
13515 # define LT_DLLAZY_OR_NOW DL_LAZY
13516 # else
13517 # ifdef RTLD_NOW
13518 # define LT_DLLAZY_OR_NOW RTLD_NOW
13519 # else
13520 # ifdef DL_NOW
13521 # define LT_DLLAZY_OR_NOW DL_NOW
13522 # else
13523 # define LT_DLLAZY_OR_NOW 0
13524 # endif
13525 # endif
13526 # endif
13527 # endif
13528 #endif
13530 /* When -fvisibility=hidden is used, assume the code has been annotated
13531 correspondingly for the symbols needed. */
13532 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13533 int fnord () __attribute__((visibility("default")));
13534 #endif
13536 int fnord () { return 42; }
13537 int main ()
13539 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13540 int status = $lt_dlunknown;
13542 if (self)
13544 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13545 else
13547 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13548 else puts (dlerror ());
13550 /* dlclose (self); */
13552 else
13553 puts (dlerror ());
13555 return status;
13557 _LT_EOF
13558 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13559 (eval $ac_link) 2>&5
13560 ac_status=$?
13561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13562 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13563 (./conftest; exit; ) >&5 2>/dev/null
13564 lt_status=$?
13565 case x$lt_status in
13566 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13567 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13568 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13569 esac
13570 else :
13571 # compilation failed
13572 lt_cv_dlopen_self=no
13575 rm -fr conftest*
13579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13580 $as_echo "$lt_cv_dlopen_self" >&6; }
13582 if test yes = "$lt_cv_dlopen_self"; then
13583 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13585 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13586 if ${lt_cv_dlopen_self_static+:} false; then :
13587 $as_echo_n "(cached) " >&6
13588 else
13589 if test yes = "$cross_compiling"; then :
13590 lt_cv_dlopen_self_static=cross
13591 else
13592 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13593 lt_status=$lt_dlunknown
13594 cat > conftest.$ac_ext <<_LT_EOF
13595 #line $LINENO "configure"
13596 #include "confdefs.h"
13598 #if HAVE_DLFCN_H
13599 #include <dlfcn.h>
13600 #endif
13602 #include <stdio.h>
13604 #ifdef RTLD_GLOBAL
13605 # define LT_DLGLOBAL RTLD_GLOBAL
13606 #else
13607 # ifdef DL_GLOBAL
13608 # define LT_DLGLOBAL DL_GLOBAL
13609 # else
13610 # define LT_DLGLOBAL 0
13611 # endif
13612 #endif
13614 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13615 find out it does not work in some platform. */
13616 #ifndef LT_DLLAZY_OR_NOW
13617 # ifdef RTLD_LAZY
13618 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13619 # else
13620 # ifdef DL_LAZY
13621 # define LT_DLLAZY_OR_NOW DL_LAZY
13622 # else
13623 # ifdef RTLD_NOW
13624 # define LT_DLLAZY_OR_NOW RTLD_NOW
13625 # else
13626 # ifdef DL_NOW
13627 # define LT_DLLAZY_OR_NOW DL_NOW
13628 # else
13629 # define LT_DLLAZY_OR_NOW 0
13630 # endif
13631 # endif
13632 # endif
13633 # endif
13634 #endif
13636 /* When -fvisibility=hidden is used, assume the code has been annotated
13637 correspondingly for the symbols needed. */
13638 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13639 int fnord () __attribute__((visibility("default")));
13640 #endif
13642 int fnord () { return 42; }
13643 int main ()
13645 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13646 int status = $lt_dlunknown;
13648 if (self)
13650 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13651 else
13653 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13654 else puts (dlerror ());
13656 /* dlclose (self); */
13658 else
13659 puts (dlerror ());
13661 return status;
13663 _LT_EOF
13664 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13665 (eval $ac_link) 2>&5
13666 ac_status=$?
13667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13668 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13669 (./conftest; exit; ) >&5 2>/dev/null
13670 lt_status=$?
13671 case x$lt_status in
13672 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13673 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13674 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13675 esac
13676 else :
13677 # compilation failed
13678 lt_cv_dlopen_self_static=no
13681 rm -fr conftest*
13685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13686 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13689 CPPFLAGS=$save_CPPFLAGS
13690 LDFLAGS=$save_LDFLAGS
13691 LIBS=$save_LIBS
13693 esac
13695 case $lt_cv_dlopen_self in
13696 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13697 *) enable_dlopen_self=unknown ;;
13698 esac
13700 case $lt_cv_dlopen_self_static in
13701 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13702 *) enable_dlopen_self_static=unknown ;;
13703 esac
13722 striplib=
13723 old_striplib=
13724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13725 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13726 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13727 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13728 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13730 $as_echo "yes" >&6; }
13731 else
13732 # FIXME - insert some real tests, host_os isn't really good enough
13733 case $host_os in
13734 darwin*)
13735 if test -n "$STRIP"; then
13736 striplib="$STRIP -x"
13737 old_striplib="$STRIP -S"
13738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13739 $as_echo "yes" >&6; }
13740 else
13741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13742 $as_echo "no" >&6; }
13746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13747 $as_echo "no" >&6; }
13749 esac
13763 # Report what library types will actually be built
13764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13765 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13767 $as_echo "$can_build_shared" >&6; }
13769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13770 $as_echo_n "checking whether to build shared libraries... " >&6; }
13771 test no = "$can_build_shared" && enable_shared=no
13773 # On AIX, shared libraries and static libraries use the same namespace, and
13774 # are all built from PIC.
13775 case $host_os in
13776 aix3*)
13777 test yes = "$enable_shared" && enable_static=no
13778 if test -n "$RANLIB"; then
13779 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13780 postinstall_cmds='$RANLIB $lib'
13784 aix[4-9]*)
13785 if test ia64 != "$host_cpu"; then
13786 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13787 yes,aix,yes) ;; # shared object as lib.so file only
13788 yes,svr4,*) ;; # shared object as lib.so archive member only
13789 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13790 esac
13793 esac
13794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13795 $as_echo "$enable_shared" >&6; }
13797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13798 $as_echo_n "checking whether to build static libraries... " >&6; }
13799 # Make sure either enable_shared or enable_static is yes.
13800 test yes = "$enable_shared" || enable_static=yes
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13802 $as_echo "$enable_static" >&6; }
13808 ac_ext=c
13809 ac_cpp='$CPP $CPPFLAGS'
13810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13814 CC=$lt_save_CC
13830 ac_config_commands="$ac_config_commands libtool"
13835 # Only expand once:
13840 # Extract the first word of "ar", so it can be a program name with args.
13841 set dummy ar; ac_word=$2
13842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13843 $as_echo_n "checking for $ac_word... " >&6; }
13844 if ${ac_cv_path_AR+:} false; then :
13845 $as_echo_n "(cached) " >&6
13846 else
13847 case $AR in
13848 [\\/]* | ?:[\\/]*)
13849 ac_cv_path_AR="$AR" # Let the user override the test with a path.
13852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13853 for as_dir in $PATH
13855 IFS=$as_save_IFS
13856 test -z "$as_dir" && as_dir=.
13857 for ac_exec_ext in '' $ac_executable_extensions; do
13858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13859 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
13860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13861 break 2
13863 done
13864 done
13865 IFS=$as_save_IFS
13867 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
13869 esac
13871 AR=$ac_cv_path_AR
13872 if test -n "$AR"; then
13873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13874 $as_echo "$AR" >&6; }
13875 else
13876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13877 $as_echo "no" >&6; }
13881 # Extract the first word of "rm", so it can be a program name with args.
13882 set dummy rm; ac_word=$2
13883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13884 $as_echo_n "checking for $ac_word... " >&6; }
13885 if ${ac_cv_path_RM+:} false; then :
13886 $as_echo_n "(cached) " >&6
13887 else
13888 case $RM in
13889 [\\/]* | ?:[\\/]*)
13890 ac_cv_path_RM="$RM" # Let the user override the test with a path.
13893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13894 for as_dir in $PATH
13896 IFS=$as_save_IFS
13897 test -z "$as_dir" && as_dir=.
13898 for ac_exec_ext in '' $ac_executable_extensions; do
13899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13900 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
13901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13902 break 2
13904 done
13905 done
13906 IFS=$as_save_IFS
13908 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
13910 esac
13912 RM=$ac_cv_path_RM
13913 if test -n "$RM"; then
13914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
13915 $as_echo "$RM" >&6; }
13916 else
13917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13918 $as_echo "no" >&6; }
13922 # Extract the first word of "cp", so it can be a program name with args.
13923 set dummy cp; ac_word=$2
13924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13925 $as_echo_n "checking for $ac_word... " >&6; }
13926 if ${ac_cv_path_CP+:} false; then :
13927 $as_echo_n "(cached) " >&6
13928 else
13929 case $CP in
13930 [\\/]* | ?:[\\/]*)
13931 ac_cv_path_CP="$CP" # Let the user override the test with a path.
13934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13935 for as_dir in $PATH
13937 IFS=$as_save_IFS
13938 test -z "$as_dir" && as_dir=.
13939 for ac_exec_ext in '' $ac_executable_extensions; do
13940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13941 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
13942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13943 break 2
13945 done
13946 done
13947 IFS=$as_save_IFS
13949 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
13951 esac
13953 CP=$ac_cv_path_CP
13954 if test -n "$CP"; then
13955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
13956 $as_echo "$CP" >&6; }
13957 else
13958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13959 $as_echo "no" >&6; }
13963 # Extract the first word of "ln", so it can be a program name with args.
13964 set dummy ln; ac_word=$2
13965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13966 $as_echo_n "checking for $ac_word... " >&6; }
13967 if ${ac_cv_path_LN+:} false; then :
13968 $as_echo_n "(cached) " >&6
13969 else
13970 case $LN in
13971 [\\/]* | ?:[\\/]*)
13972 ac_cv_path_LN="$LN" # Let the user override the test with a path.
13975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13976 for as_dir in $PATH
13978 IFS=$as_save_IFS
13979 test -z "$as_dir" && as_dir=.
13980 for ac_exec_ext in '' $ac_executable_extensions; do
13981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13982 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
13983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13984 break 2
13986 done
13987 done
13988 IFS=$as_save_IFS
13990 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
13992 esac
13994 LN=$ac_cv_path_LN
13995 if test -n "$LN"; then
13996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
13997 $as_echo "$LN" >&6; }
13998 else
13999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14000 $as_echo "no" >&6; }
14004 # Extract the first word of "ls", so it can be a program name with args.
14005 set dummy ls; ac_word=$2
14006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14007 $as_echo_n "checking for $ac_word... " >&6; }
14008 if ${ac_cv_path_LS+:} false; then :
14009 $as_echo_n "(cached) " >&6
14010 else
14011 case $LS in
14012 [\\/]* | ?:[\\/]*)
14013 ac_cv_path_LS="$LS" # Let the user override the test with a path.
14016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14017 for as_dir in $PATH
14019 IFS=$as_save_IFS
14020 test -z "$as_dir" && as_dir=.
14021 for ac_exec_ext in '' $ac_executable_extensions; do
14022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14023 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
14024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14025 break 2
14027 done
14028 done
14029 IFS=$as_save_IFS
14031 test -z "$ac_cv_path_LS" && ac_cv_path_LS="ls"
14033 esac
14035 LS=$ac_cv_path_LS
14036 if test -n "$LS"; then
14037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
14038 $as_echo "$LS" >&6; }
14039 else
14040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14041 $as_echo "no" >&6; }
14045 # Extract the first word of "sed", so it can be a program name with args.
14046 set dummy sed; ac_word=$2
14047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14048 $as_echo_n "checking for $ac_word... " >&6; }
14049 if ${ac_cv_path_SED+:} false; then :
14050 $as_echo_n "(cached) " >&6
14051 else
14052 case $SED in
14053 [\\/]* | ?:[\\/]*)
14054 ac_cv_path_SED="$SED" # Let the user override the test with a path.
14057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14058 for as_dir in $PATH
14060 IFS=$as_save_IFS
14061 test -z "$as_dir" && as_dir=.
14062 for ac_exec_ext in '' $ac_executable_extensions; do
14063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14064 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
14065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14066 break 2
14068 done
14069 done
14070 IFS=$as_save_IFS
14072 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
14074 esac
14076 SED=$ac_cv_path_SED
14077 if test -n "$SED"; then
14078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
14079 $as_echo "$SED" >&6; }
14080 else
14081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14082 $as_echo "no" >&6; }
14086 # Extract the first word of "make", so it can be a program name with args.
14087 set dummy make; ac_word=$2
14088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14089 $as_echo_n "checking for $ac_word... " >&6; }
14090 if ${ac_cv_path_MAKE+:} false; then :
14091 $as_echo_n "(cached) " >&6
14092 else
14093 case $MAKE in
14094 [\\/]* | ?:[\\/]*)
14095 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
14098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14099 for as_dir in $PATH
14101 IFS=$as_save_IFS
14102 test -z "$as_dir" && as_dir=.
14103 for ac_exec_ext in '' $ac_executable_extensions; do
14104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14105 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
14106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14107 break 2
14109 done
14110 done
14111 IFS=$as_save_IFS
14114 esac
14116 MAKE=$ac_cv_path_MAKE
14117 if test -n "$MAKE"; then
14118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
14119 $as_echo "$MAKE" >&6; }
14120 else
14121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14122 $as_echo "no" >&6; }
14130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
14131 $as_echo_n "checking whether NLS is requested... " >&6; }
14132 # Check whether --enable-nls was given.
14133 if test "${enable_nls+set}" = set; then :
14134 enableval=$enable_nls; USE_NLS=$enableval
14135 else
14136 USE_NLS=yes
14139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
14140 $as_echo "$USE_NLS" >&6; }
14147 # Prepare PATH_SEPARATOR.
14148 # The user is always right.
14149 if test "${PATH_SEPARATOR+set}" != set; then
14150 echo "#! /bin/sh" >conf$$.sh
14151 echo "exit 0" >>conf$$.sh
14152 chmod +x conf$$.sh
14153 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14154 PATH_SEPARATOR=';'
14155 else
14156 PATH_SEPARATOR=:
14158 rm -f conf$$.sh
14161 # Find out how to test for executable files. Don't use a zero-byte file,
14162 # as systems may use methods other than mode bits to determine executability.
14163 cat >conf$$.file <<_ASEOF
14164 #! /bin/sh
14165 exit 0
14166 _ASEOF
14167 chmod +x conf$$.file
14168 if test -x conf$$.file >/dev/null 2>&1; then
14169 ac_executable_p="test -x"
14170 else
14171 ac_executable_p="test -f"
14173 rm -f conf$$.file
14175 # Extract the first word of "msgfmt", so it can be a program name with args.
14176 set dummy msgfmt; ac_word=$2
14177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14178 $as_echo_n "checking for $ac_word... " >&6; }
14179 if ${ac_cv_path_MSGFMT+:} false; then :
14180 $as_echo_n "(cached) " >&6
14181 else
14182 case "$MSGFMT" in
14183 [\\/]* | ?:[\\/]*)
14184 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
14187 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14188 for ac_dir in $PATH; do
14189 IFS="$ac_save_IFS"
14190 test -z "$ac_dir" && ac_dir=.
14191 for ac_exec_ext in '' $ac_executable_extensions; do
14192 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14193 echo "$as_me: trying $ac_dir/$ac_word..." >&5
14194 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
14195 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
14196 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
14197 break 2
14200 done
14201 done
14202 IFS="$ac_save_IFS"
14203 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
14205 esac
14207 MSGFMT="$ac_cv_path_MSGFMT"
14208 if test "$MSGFMT" != ":"; then
14209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
14210 $as_echo "$MSGFMT" >&6; }
14211 else
14212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14213 $as_echo "no" >&6; }
14216 # Extract the first word of "gmsgfmt", so it can be a program name with args.
14217 set dummy gmsgfmt; ac_word=$2
14218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14219 $as_echo_n "checking for $ac_word... " >&6; }
14220 if ${ac_cv_path_GMSGFMT+:} false; then :
14221 $as_echo_n "(cached) " >&6
14222 else
14223 case $GMSGFMT in
14224 [\\/]* | ?:[\\/]*)
14225 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
14228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14229 for as_dir in $PATH
14231 IFS=$as_save_IFS
14232 test -z "$as_dir" && as_dir=.
14233 for ac_exec_ext in '' $ac_executable_extensions; do
14234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14235 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
14236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14237 break 2
14239 done
14240 done
14241 IFS=$as_save_IFS
14243 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
14245 esac
14247 GMSGFMT=$ac_cv_path_GMSGFMT
14248 if test -n "$GMSGFMT"; then
14249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
14250 $as_echo "$GMSGFMT" >&6; }
14251 else
14252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14253 $as_echo "no" >&6; }
14258 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
14259 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
14260 *) MSGFMT_015=$MSGFMT ;;
14261 esac
14263 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
14264 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
14265 *) GMSGFMT_015=$GMSGFMT ;;
14266 esac
14270 # Prepare PATH_SEPARATOR.
14271 # The user is always right.
14272 if test "${PATH_SEPARATOR+set}" != set; then
14273 echo "#! /bin/sh" >conf$$.sh
14274 echo "exit 0" >>conf$$.sh
14275 chmod +x conf$$.sh
14276 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14277 PATH_SEPARATOR=';'
14278 else
14279 PATH_SEPARATOR=:
14281 rm -f conf$$.sh
14284 # Find out how to test for executable files. Don't use a zero-byte file,
14285 # as systems may use methods other than mode bits to determine executability.
14286 cat >conf$$.file <<_ASEOF
14287 #! /bin/sh
14288 exit 0
14289 _ASEOF
14290 chmod +x conf$$.file
14291 if test -x conf$$.file >/dev/null 2>&1; then
14292 ac_executable_p="test -x"
14293 else
14294 ac_executable_p="test -f"
14296 rm -f conf$$.file
14298 # Extract the first word of "xgettext", so it can be a program name with args.
14299 set dummy xgettext; ac_word=$2
14300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14301 $as_echo_n "checking for $ac_word... " >&6; }
14302 if ${ac_cv_path_XGETTEXT+:} false; then :
14303 $as_echo_n "(cached) " >&6
14304 else
14305 case "$XGETTEXT" in
14306 [\\/]* | ?:[\\/]*)
14307 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
14310 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14311 for ac_dir in $PATH; do
14312 IFS="$ac_save_IFS"
14313 test -z "$ac_dir" && ac_dir=.
14314 for ac_exec_ext in '' $ac_executable_extensions; do
14315 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14316 echo "$as_me: trying $ac_dir/$ac_word..." >&5
14317 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
14318 (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
14319 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
14320 break 2
14323 done
14324 done
14325 IFS="$ac_save_IFS"
14326 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
14328 esac
14330 XGETTEXT="$ac_cv_path_XGETTEXT"
14331 if test "$XGETTEXT" != ":"; then
14332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
14333 $as_echo "$XGETTEXT" >&6; }
14334 else
14335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14336 $as_echo "no" >&6; }
14339 rm -f messages.po
14341 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
14342 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
14343 *) XGETTEXT_015=$XGETTEXT ;;
14344 esac
14348 # Prepare PATH_SEPARATOR.
14349 # The user is always right.
14350 if test "${PATH_SEPARATOR+set}" != set; then
14351 echo "#! /bin/sh" >conf$$.sh
14352 echo "exit 0" >>conf$$.sh
14353 chmod +x conf$$.sh
14354 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14355 PATH_SEPARATOR=';'
14356 else
14357 PATH_SEPARATOR=:
14359 rm -f conf$$.sh
14362 # Find out how to test for executable files. Don't use a zero-byte file,
14363 # as systems may use methods other than mode bits to determine executability.
14364 cat >conf$$.file <<_ASEOF
14365 #! /bin/sh
14366 exit 0
14367 _ASEOF
14368 chmod +x conf$$.file
14369 if test -x conf$$.file >/dev/null 2>&1; then
14370 ac_executable_p="test -x"
14371 else
14372 ac_executable_p="test -f"
14374 rm -f conf$$.file
14376 # Extract the first word of "msgmerge", so it can be a program name with args.
14377 set dummy msgmerge; ac_word=$2
14378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14379 $as_echo_n "checking for $ac_word... " >&6; }
14380 if ${ac_cv_path_MSGMERGE+:} false; then :
14381 $as_echo_n "(cached) " >&6
14382 else
14383 case "$MSGMERGE" in
14384 [\\/]* | ?:[\\/]*)
14385 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
14388 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14389 for ac_dir in $PATH; do
14390 IFS="$ac_save_IFS"
14391 test -z "$ac_dir" && ac_dir=.
14392 for ac_exec_ext in '' $ac_executable_extensions; do
14393 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14394 echo "$as_me: trying $ac_dir/$ac_word..." >&5
14395 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
14396 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
14397 break 2
14400 done
14401 done
14402 IFS="$ac_save_IFS"
14403 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
14405 esac
14407 MSGMERGE="$ac_cv_path_MSGMERGE"
14408 if test "$MSGMERGE" != ":"; then
14409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
14410 $as_echo "$MSGMERGE" >&6; }
14411 else
14412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14413 $as_echo "no" >&6; }
14417 test -n "$localedir" || localedir='${datadir}/locale'
14420 ac_config_commands="$ac_config_commands po-directories"
14424 if test "X$prefix" = "XNONE"; then
14425 acl_final_prefix="$ac_default_prefix"
14426 else
14427 acl_final_prefix="$prefix"
14429 if test "X$exec_prefix" = "XNONE"; then
14430 acl_final_exec_prefix='${prefix}'
14431 else
14432 acl_final_exec_prefix="$exec_prefix"
14434 acl_save_prefix="$prefix"
14435 prefix="$acl_final_prefix"
14436 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
14437 prefix="$acl_save_prefix"
14440 # Check whether --with-gnu-ld was given.
14441 if test "${with_gnu_ld+set}" = set; then :
14442 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14443 else
14444 with_gnu_ld=no
14447 # Prepare PATH_SEPARATOR.
14448 # The user is always right.
14449 if test "${PATH_SEPARATOR+set}" != set; then
14450 echo "#! /bin/sh" >conf$$.sh
14451 echo "exit 0" >>conf$$.sh
14452 chmod +x conf$$.sh
14453 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14454 PATH_SEPARATOR=';'
14455 else
14456 PATH_SEPARATOR=:
14458 rm -f conf$$.sh
14460 ac_prog=ld
14461 if test "$GCC" = yes; then
14462 # Check if gcc -print-prog-name=ld gives a path.
14463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
14464 $as_echo_n "checking for ld used by GCC... " >&6; }
14465 case $host in
14466 *-*-mingw*)
14467 # gcc leaves a trailing carriage return which upsets mingw
14468 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14470 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14471 esac
14472 case $ac_prog in
14473 # Accept absolute paths.
14474 [\\/]* | [A-Za-z]:[\\/]*)
14475 re_direlt='/[^/][^/]*/\.\./'
14476 # Canonicalize the path of ld
14477 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
14478 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
14479 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
14480 done
14481 test -z "$LD" && LD="$ac_prog"
14484 # If it fails, then pretend we aren't using GCC.
14485 ac_prog=ld
14488 # If it is relative, then search for the first ld in PATH.
14489 with_gnu_ld=unknown
14491 esac
14492 elif test "$with_gnu_ld" = yes; then
14493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14494 $as_echo_n "checking for GNU ld... " >&6; }
14495 else
14496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14497 $as_echo_n "checking for non-GNU ld... " >&6; }
14499 if ${acl_cv_path_LD+:} false; then :
14500 $as_echo_n "(cached) " >&6
14501 else
14502 if test -z "$LD"; then
14503 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
14504 for ac_dir in $PATH; do
14505 test -z "$ac_dir" && ac_dir=.
14506 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14507 acl_cv_path_LD="$ac_dir/$ac_prog"
14508 # Check to see if the program is GNU ld. I'd rather use --version,
14509 # but apparently some GNU ld's only accept -v.
14510 # Break only if it was the GNU/non-GNU ld that we prefer.
14511 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
14512 *GNU* | *'with BFD'*)
14513 test "$with_gnu_ld" != no && break ;;
14515 test "$with_gnu_ld" != yes && break ;;
14516 esac
14518 done
14519 IFS="$ac_save_ifs"
14520 else
14521 acl_cv_path_LD="$LD" # Let the user override the test with a path.
14525 LD="$acl_cv_path_LD"
14526 if test -n "$LD"; then
14527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14528 $as_echo "$LD" >&6; }
14529 else
14530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14531 $as_echo "no" >&6; }
14533 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14535 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14536 if ${acl_cv_prog_gnu_ld+:} false; then :
14537 $as_echo_n "(cached) " >&6
14538 else
14539 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
14540 case `$LD -v 2>&1 </dev/null` in
14541 *GNU* | *'with BFD'*)
14542 acl_cv_prog_gnu_ld=yes ;;
14544 acl_cv_prog_gnu_ld=no ;;
14545 esac
14547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
14548 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
14549 with_gnu_ld=$acl_cv_prog_gnu_ld
14554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
14555 $as_echo_n "checking for shared library run path origin... " >&6; }
14556 if ${acl_cv_rpath+:} false; then :
14557 $as_echo_n "(cached) " >&6
14558 else
14560 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
14561 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
14562 . ./conftest.sh
14563 rm -f ./conftest.sh
14564 acl_cv_rpath=done
14567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
14568 $as_echo "$acl_cv_rpath" >&6; }
14569 wl="$acl_cv_wl"
14570 libext="$acl_cv_libext"
14571 shlibext="$acl_cv_shlibext"
14572 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
14573 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
14574 hardcode_direct="$acl_cv_hardcode_direct"
14575 hardcode_minus_L="$acl_cv_hardcode_minus_L"
14576 # Check whether --enable-rpath was given.
14577 if test "${enable_rpath+set}" = set; then :
14578 enableval=$enable_rpath; :
14579 else
14580 enable_rpath=yes
14585 acl_libdirstem=lib
14586 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
14587 if test -n "$searchpath"; then
14588 acl_save_IFS="${IFS= }"; IFS=":"
14589 for searchdir in $searchpath; do
14590 if test -d "$searchdir"; then
14591 case "$searchdir" in
14592 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
14593 *) searchdir=`cd "$searchdir" && pwd`
14594 case "$searchdir" in
14595 */lib64 ) acl_libdirstem=lib64 ;;
14596 esac ;;
14597 esac
14599 done
14600 IFS="$acl_save_IFS"
14610 use_additional=yes
14612 acl_save_prefix="$prefix"
14613 prefix="$acl_final_prefix"
14614 acl_save_exec_prefix="$exec_prefix"
14615 exec_prefix="$acl_final_exec_prefix"
14617 eval additional_includedir=\"$includedir\"
14618 eval additional_libdir=\"$libdir\"
14620 exec_prefix="$acl_save_exec_prefix"
14621 prefix="$acl_save_prefix"
14624 # Check whether --with-libiconv-prefix was given.
14625 if test "${with_libiconv_prefix+set}" = set; then :
14626 withval=$with_libiconv_prefix;
14627 if test "X$withval" = "Xno"; then
14628 use_additional=no
14629 else
14630 if test "X$withval" = "X"; then
14632 acl_save_prefix="$prefix"
14633 prefix="$acl_final_prefix"
14634 acl_save_exec_prefix="$exec_prefix"
14635 exec_prefix="$acl_final_exec_prefix"
14637 eval additional_includedir=\"$includedir\"
14638 eval additional_libdir=\"$libdir\"
14640 exec_prefix="$acl_save_exec_prefix"
14641 prefix="$acl_save_prefix"
14643 else
14644 additional_includedir="$withval/include"
14645 additional_libdir="$withval/$acl_libdirstem"
14651 LIBICONV=
14652 LTLIBICONV=
14653 INCICONV=
14654 rpathdirs=
14655 ltrpathdirs=
14656 names_already_handled=
14657 names_next_round='iconv '
14658 while test -n "$names_next_round"; do
14659 names_this_round="$names_next_round"
14660 names_next_round=
14661 for name in $names_this_round; do
14662 already_handled=
14663 for n in $names_already_handled; do
14664 if test "$n" = "$name"; then
14665 already_handled=yes
14666 break
14668 done
14669 if test -z "$already_handled"; then
14670 names_already_handled="$names_already_handled $name"
14671 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14672 eval value=\"\$HAVE_LIB$uppername\"
14673 if test -n "$value"; then
14674 if test "$value" = yes; then
14675 eval value=\"\$LIB$uppername\"
14676 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
14677 eval value=\"\$LTLIB$uppername\"
14678 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
14679 else
14682 else
14683 found_dir=
14684 found_la=
14685 found_so=
14686 found_a=
14687 if test $use_additional = yes; then
14688 if test -n "$shlibext" \
14689 && { test -f "$additional_libdir/lib$name.$shlibext" \
14690 || { test "$shlibext" = dll \
14691 && test -f "$additional_libdir/lib$name.dll.a"; }; }; then
14692 found_dir="$additional_libdir"
14693 if test -f "$additional_libdir/lib$name.$shlibext"; then
14694 found_so="$additional_libdir/lib$name.$shlibext"
14695 else
14696 found_so="$additional_libdir/lib$name.dll.a"
14698 if test -f "$additional_libdir/lib$name.la"; then
14699 found_la="$additional_libdir/lib$name.la"
14701 else
14702 if test -f "$additional_libdir/lib$name.$libext"; then
14703 found_dir="$additional_libdir"
14704 found_a="$additional_libdir/lib$name.$libext"
14705 if test -f "$additional_libdir/lib$name.la"; then
14706 found_la="$additional_libdir/lib$name.la"
14711 if test "X$found_dir" = "X"; then
14712 for x in $LDFLAGS $LTLIBICONV; do
14714 acl_save_prefix="$prefix"
14715 prefix="$acl_final_prefix"
14716 acl_save_exec_prefix="$exec_prefix"
14717 exec_prefix="$acl_final_exec_prefix"
14718 eval x=\"$x\"
14719 exec_prefix="$acl_save_exec_prefix"
14720 prefix="$acl_save_prefix"
14722 case "$x" in
14723 -L*)
14724 dir=`echo "X$x" | sed -e 's/^X-L//'`
14725 if test -n "$shlibext" \
14726 && { test -f "$dir/lib$name.$shlibext" \
14727 || { test "$shlibext" = dll \
14728 && test -f "$dir/lib$name.dll.a"; }; }; then
14729 found_dir="$dir"
14730 if test -f "$dir/lib$name.$shlibext"; then
14731 found_so="$dir/lib$name.$shlibext"
14732 else
14733 found_so="$dir/lib$name.dll.a"
14735 if test -f "$dir/lib$name.la"; then
14736 found_la="$dir/lib$name.la"
14738 else
14739 if test -f "$dir/lib$name.$libext"; then
14740 found_dir="$dir"
14741 found_a="$dir/lib$name.$libext"
14742 if test -f "$dir/lib$name.la"; then
14743 found_la="$dir/lib$name.la"
14748 esac
14749 if test "X$found_dir" != "X"; then
14750 break
14752 done
14754 if test "X$found_dir" != "X"; then
14755 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
14756 if test "X$found_so" != "X"; then
14757 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
14758 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14759 else
14760 haveit=
14761 for x in $ltrpathdirs; do
14762 if test "X$x" = "X$found_dir"; then
14763 haveit=yes
14764 break
14766 done
14767 if test -z "$haveit"; then
14768 ltrpathdirs="$ltrpathdirs $found_dir"
14770 if test "$hardcode_direct" = yes; then
14771 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14772 else
14773 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
14774 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14775 haveit=
14776 for x in $rpathdirs; do
14777 if test "X$x" = "X$found_dir"; then
14778 haveit=yes
14779 break
14781 done
14782 if test -z "$haveit"; then
14783 rpathdirs="$rpathdirs $found_dir"
14785 else
14786 haveit=
14787 for x in $LDFLAGS $LIBICONV; do
14789 acl_save_prefix="$prefix"
14790 prefix="$acl_final_prefix"
14791 acl_save_exec_prefix="$exec_prefix"
14792 exec_prefix="$acl_final_exec_prefix"
14793 eval x=\"$x\"
14794 exec_prefix="$acl_save_exec_prefix"
14795 prefix="$acl_save_prefix"
14797 if test "X$x" = "X-L$found_dir"; then
14798 haveit=yes
14799 break
14801 done
14802 if test -z "$haveit"; then
14803 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
14805 if test "$hardcode_minus_L" != no; then
14806 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14807 else
14808 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14813 else
14814 if test "X$found_a" != "X"; then
14815 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
14816 else
14817 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
14820 additional_includedir=
14821 case "$found_dir" in
14822 */$acl_libdirstem | */$acl_libdirstem/)
14823 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
14824 additional_includedir="$basedir/include"
14826 esac
14827 if test "X$additional_includedir" != "X"; then
14828 if test "X$additional_includedir" != "X/usr/include"; then
14829 haveit=
14830 if test "X$additional_includedir" = "X/usr/local/include"; then
14831 if test -n "$GCC"; then
14832 case $host_os in
14833 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14834 esac
14837 if test -z "$haveit"; then
14838 for x in $CPPFLAGS $INCICONV; do
14840 acl_save_prefix="$prefix"
14841 prefix="$acl_final_prefix"
14842 acl_save_exec_prefix="$exec_prefix"
14843 exec_prefix="$acl_final_exec_prefix"
14844 eval x=\"$x\"
14845 exec_prefix="$acl_save_exec_prefix"
14846 prefix="$acl_save_prefix"
14848 if test "X$x" = "X-I$additional_includedir"; then
14849 haveit=yes
14850 break
14852 done
14853 if test -z "$haveit"; then
14854 if test -d "$additional_includedir"; then
14855 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
14861 if test -n "$found_la"; then
14862 save_libdir="$libdir"
14863 case "$found_la" in
14864 */* | *\\*) . "$found_la" ;;
14865 *) . "./$found_la" ;;
14866 esac
14867 libdir="$save_libdir"
14868 for dep in $dependency_libs; do
14869 case "$dep" in
14870 -L*)
14871 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14872 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
14873 haveit=
14874 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
14875 if test -n "$GCC"; then
14876 case $host_os in
14877 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14878 esac
14881 if test -z "$haveit"; then
14882 haveit=
14883 for x in $LDFLAGS $LIBICONV; do
14885 acl_save_prefix="$prefix"
14886 prefix="$acl_final_prefix"
14887 acl_save_exec_prefix="$exec_prefix"
14888 exec_prefix="$acl_final_exec_prefix"
14889 eval x=\"$x\"
14890 exec_prefix="$acl_save_exec_prefix"
14891 prefix="$acl_save_prefix"
14893 if test "X$x" = "X-L$additional_libdir"; then
14894 haveit=yes
14895 break
14897 done
14898 if test -z "$haveit"; then
14899 if test -d "$additional_libdir"; then
14900 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
14903 haveit=
14904 for x in $LDFLAGS $LTLIBICONV; do
14906 acl_save_prefix="$prefix"
14907 prefix="$acl_final_prefix"
14908 acl_save_exec_prefix="$exec_prefix"
14909 exec_prefix="$acl_final_exec_prefix"
14910 eval x=\"$x\"
14911 exec_prefix="$acl_save_exec_prefix"
14912 prefix="$acl_save_prefix"
14914 if test "X$x" = "X-L$additional_libdir"; then
14915 haveit=yes
14916 break
14918 done
14919 if test -z "$haveit"; then
14920 if test -d "$additional_libdir"; then
14921 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
14927 -R*)
14928 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14929 if test "$enable_rpath" != no; then
14930 haveit=
14931 for x in $rpathdirs; do
14932 if test "X$x" = "X$dir"; then
14933 haveit=yes
14934 break
14936 done
14937 if test -z "$haveit"; then
14938 rpathdirs="$rpathdirs $dir"
14940 haveit=
14941 for x in $ltrpathdirs; do
14942 if test "X$x" = "X$dir"; then
14943 haveit=yes
14944 break
14946 done
14947 if test -z "$haveit"; then
14948 ltrpathdirs="$ltrpathdirs $dir"
14952 -l*)
14953 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14955 *.la)
14956 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14959 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
14960 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
14962 esac
14963 done
14965 else
14966 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14967 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
14971 done
14972 done
14973 if test "X$rpathdirs" != "X"; then
14974 if test -n "$hardcode_libdir_separator"; then
14975 alldirs=
14976 for found_dir in $rpathdirs; do
14977 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14978 done
14979 acl_save_libdir="$libdir"
14980 libdir="$alldirs"
14981 eval flag=\"$hardcode_libdir_flag_spec\"
14982 libdir="$acl_save_libdir"
14983 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14984 else
14985 for found_dir in $rpathdirs; do
14986 acl_save_libdir="$libdir"
14987 libdir="$found_dir"
14988 eval flag=\"$hardcode_libdir_flag_spec\"
14989 libdir="$acl_save_libdir"
14990 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14991 done
14994 if test "X$ltrpathdirs" != "X"; then
14995 for found_dir in $ltrpathdirs; do
14996 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
14997 done
15024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
15025 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
15026 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
15027 $as_echo_n "(cached) " >&6
15028 else
15029 gt_save_LIBS="$LIBS"
15030 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
15031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15032 /* end confdefs.h. */
15033 #include <CoreFoundation/CFPreferences.h>
15035 main ()
15037 CFPreferencesCopyAppValue(NULL, NULL)
15039 return 0;
15041 _ACEOF
15042 if ac_fn_c_try_link "$LINENO"; then :
15043 gt_cv_func_CFPreferencesCopyAppValue=yes
15044 else
15045 gt_cv_func_CFPreferencesCopyAppValue=no
15047 rm -f core conftest.err conftest.$ac_objext \
15048 conftest$ac_exeext conftest.$ac_ext
15049 LIBS="$gt_save_LIBS"
15051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
15052 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
15053 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
15055 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
15058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
15059 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
15060 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
15061 $as_echo_n "(cached) " >&6
15062 else
15063 gt_save_LIBS="$LIBS"
15064 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
15065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15066 /* end confdefs.h. */
15067 #include <CoreFoundation/CFLocale.h>
15069 main ()
15071 CFLocaleCopyCurrent();
15073 return 0;
15075 _ACEOF
15076 if ac_fn_c_try_link "$LINENO"; then :
15077 gt_cv_func_CFLocaleCopyCurrent=yes
15078 else
15079 gt_cv_func_CFLocaleCopyCurrent=no
15081 rm -f core conftest.err conftest.$ac_objext \
15082 conftest$ac_exeext conftest.$ac_ext
15083 LIBS="$gt_save_LIBS"
15085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
15086 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
15087 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
15089 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
15092 INTL_MACOSX_LIBS=
15093 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
15094 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
15102 LIBINTL=
15103 LTLIBINTL=
15104 POSUB=
15106 case " $gt_needs " in
15107 *" need-formatstring-macros "*) gt_api_version=3 ;;
15108 *" need-ngettext "*) gt_api_version=2 ;;
15109 *) gt_api_version=1 ;;
15110 esac
15111 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
15112 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
15114 if test "$USE_NLS" = "yes"; then
15115 gt_use_preinstalled_gnugettext=no
15118 if test $gt_api_version -ge 3; then
15119 gt_revision_test_code='
15120 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
15121 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
15122 #endif
15123 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
15125 else
15126 gt_revision_test_code=
15128 if test $gt_api_version -ge 2; then
15129 gt_expression_test_code=' + * ngettext ("", "", 0)'
15130 else
15131 gt_expression_test_code=
15134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
15135 $as_echo_n "checking for GNU gettext in libc... " >&6; }
15136 if eval \${$gt_func_gnugettext_libc+:} false; then :
15137 $as_echo_n "(cached) " >&6
15138 else
15139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15140 /* end confdefs.h. */
15141 #include <libintl.h>
15142 $gt_revision_test_code
15143 extern int _nl_msg_cat_cntr;
15144 extern int *_nl_domain_bindings;
15146 main ()
15148 bindtextdomain ("", "");
15149 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
15151 return 0;
15153 _ACEOF
15154 if ac_fn_c_try_link "$LINENO"; then :
15155 eval "$gt_func_gnugettext_libc=yes"
15156 else
15157 eval "$gt_func_gnugettext_libc=no"
15159 rm -f core conftest.err conftest.$ac_objext \
15160 conftest$ac_exeext conftest.$ac_ext
15162 eval ac_res=\$$gt_func_gnugettext_libc
15163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15164 $as_echo "$ac_res" >&6; }
15166 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
15172 am_save_CPPFLAGS="$CPPFLAGS"
15174 for element in $INCICONV; do
15175 haveit=
15176 for x in $CPPFLAGS; do
15178 acl_save_prefix="$prefix"
15179 prefix="$acl_final_prefix"
15180 acl_save_exec_prefix="$exec_prefix"
15181 exec_prefix="$acl_final_exec_prefix"
15182 eval x=\"$x\"
15183 exec_prefix="$acl_save_exec_prefix"
15184 prefix="$acl_save_prefix"
15186 if test "X$x" = "X$element"; then
15187 haveit=yes
15188 break
15190 done
15191 if test -z "$haveit"; then
15192 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15194 done
15197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
15198 $as_echo_n "checking for iconv... " >&6; }
15199 if ${am_cv_func_iconv+:} false; then :
15200 $as_echo_n "(cached) " >&6
15201 else
15203 am_cv_func_iconv="no, consider installing GNU libiconv"
15204 am_cv_lib_iconv=no
15205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15206 /* end confdefs.h. */
15207 #include <stdlib.h>
15208 #include <iconv.h>
15210 main ()
15212 iconv_t cd = iconv_open("","");
15213 iconv(cd,NULL,NULL,NULL,NULL);
15214 iconv_close(cd);
15216 return 0;
15218 _ACEOF
15219 if ac_fn_c_try_link "$LINENO"; then :
15220 am_cv_func_iconv=yes
15222 rm -f core conftest.err conftest.$ac_objext \
15223 conftest$ac_exeext conftest.$ac_ext
15224 if test "$am_cv_func_iconv" != yes; then
15225 am_save_LIBS="$LIBS"
15226 LIBS="$LIBS $LIBICONV"
15227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15228 /* end confdefs.h. */
15229 #include <stdlib.h>
15230 #include <iconv.h>
15232 main ()
15234 iconv_t cd = iconv_open("","");
15235 iconv(cd,NULL,NULL,NULL,NULL);
15236 iconv_close(cd);
15238 return 0;
15240 _ACEOF
15241 if ac_fn_c_try_link "$LINENO"; then :
15242 am_cv_lib_iconv=yes
15243 am_cv_func_iconv=yes
15245 rm -f core conftest.err conftest.$ac_objext \
15246 conftest$ac_exeext conftest.$ac_ext
15247 LIBS="$am_save_LIBS"
15251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
15252 $as_echo "$am_cv_func_iconv" >&6; }
15253 if test "$am_cv_func_iconv" = yes; then
15255 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
15258 if test "$am_cv_lib_iconv" = yes; then
15259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
15260 $as_echo_n "checking how to link with libiconv... " >&6; }
15261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
15262 $as_echo "$LIBICONV" >&6; }
15263 else
15264 CPPFLAGS="$am_save_CPPFLAGS"
15265 LIBICONV=
15266 LTLIBICONV=
15275 use_additional=yes
15277 acl_save_prefix="$prefix"
15278 prefix="$acl_final_prefix"
15279 acl_save_exec_prefix="$exec_prefix"
15280 exec_prefix="$acl_final_exec_prefix"
15282 eval additional_includedir=\"$includedir\"
15283 eval additional_libdir=\"$libdir\"
15285 exec_prefix="$acl_save_exec_prefix"
15286 prefix="$acl_save_prefix"
15289 # Check whether --with-libintl-prefix was given.
15290 if test "${with_libintl_prefix+set}" = set; then :
15291 withval=$with_libintl_prefix;
15292 if test "X$withval" = "Xno"; then
15293 use_additional=no
15294 else
15295 if test "X$withval" = "X"; then
15297 acl_save_prefix="$prefix"
15298 prefix="$acl_final_prefix"
15299 acl_save_exec_prefix="$exec_prefix"
15300 exec_prefix="$acl_final_exec_prefix"
15302 eval additional_includedir=\"$includedir\"
15303 eval additional_libdir=\"$libdir\"
15305 exec_prefix="$acl_save_exec_prefix"
15306 prefix="$acl_save_prefix"
15308 else
15309 additional_includedir="$withval/include"
15310 additional_libdir="$withval/$acl_libdirstem"
15316 LIBINTL=
15317 LTLIBINTL=
15318 INCINTL=
15319 rpathdirs=
15320 ltrpathdirs=
15321 names_already_handled=
15322 names_next_round='intl '
15323 while test -n "$names_next_round"; do
15324 names_this_round="$names_next_round"
15325 names_next_round=
15326 for name in $names_this_round; do
15327 already_handled=
15328 for n in $names_already_handled; do
15329 if test "$n" = "$name"; then
15330 already_handled=yes
15331 break
15333 done
15334 if test -z "$already_handled"; then
15335 names_already_handled="$names_already_handled $name"
15336 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
15337 eval value=\"\$HAVE_LIB$uppername\"
15338 if test -n "$value"; then
15339 if test "$value" = yes; then
15340 eval value=\"\$LIB$uppername\"
15341 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
15342 eval value=\"\$LTLIB$uppername\"
15343 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
15344 else
15347 else
15348 found_dir=
15349 found_la=
15350 found_so=
15351 found_a=
15352 if test $use_additional = yes; then
15353 if test -n "$shlibext" \
15354 && { test -f "$additional_libdir/lib$name.$shlibext" \
15355 || { test "$shlibext" = dll \
15356 && test -f "$additional_libdir/lib$name.dll.a"; }; }; then
15357 found_dir="$additional_libdir"
15358 if test -f "$additional_libdir/lib$name.$shlibext"; then
15359 found_so="$additional_libdir/lib$name.$shlibext"
15360 else
15361 found_so="$additional_libdir/lib$name.dll.a"
15363 if test -f "$additional_libdir/lib$name.la"; then
15364 found_la="$additional_libdir/lib$name.la"
15366 else
15367 if test -f "$additional_libdir/lib$name.$libext"; then
15368 found_dir="$additional_libdir"
15369 found_a="$additional_libdir/lib$name.$libext"
15370 if test -f "$additional_libdir/lib$name.la"; then
15371 found_la="$additional_libdir/lib$name.la"
15376 if test "X$found_dir" = "X"; then
15377 for x in $LDFLAGS $LTLIBINTL; do
15379 acl_save_prefix="$prefix"
15380 prefix="$acl_final_prefix"
15381 acl_save_exec_prefix="$exec_prefix"
15382 exec_prefix="$acl_final_exec_prefix"
15383 eval x=\"$x\"
15384 exec_prefix="$acl_save_exec_prefix"
15385 prefix="$acl_save_prefix"
15387 case "$x" in
15388 -L*)
15389 dir=`echo "X$x" | sed -e 's/^X-L//'`
15390 if test -n "$shlibext" \
15391 && { test -f "$dir/lib$name.$shlibext" \
15392 || { test "$shlibext" = dll \
15393 && test -f "$dir/lib$name.dll.a"; }; }; then
15394 found_dir="$dir"
15395 if test -f "$dir/lib$name.$shlibext"; then
15396 found_so="$dir/lib$name.$shlibext"
15397 else
15398 found_so="$dir/lib$name.dll.a"
15400 if test -f "$dir/lib$name.la"; then
15401 found_la="$dir/lib$name.la"
15403 else
15404 if test -f "$dir/lib$name.$libext"; then
15405 found_dir="$dir"
15406 found_a="$dir/lib$name.$libext"
15407 if test -f "$dir/lib$name.la"; then
15408 found_la="$dir/lib$name.la"
15413 esac
15414 if test "X$found_dir" != "X"; then
15415 break
15417 done
15419 if test "X$found_dir" != "X"; then
15420 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
15421 if test "X$found_so" != "X"; then
15422 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
15423 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15424 else
15425 haveit=
15426 for x in $ltrpathdirs; do
15427 if test "X$x" = "X$found_dir"; then
15428 haveit=yes
15429 break
15431 done
15432 if test -z "$haveit"; then
15433 ltrpathdirs="$ltrpathdirs $found_dir"
15435 if test "$hardcode_direct" = yes; then
15436 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15437 else
15438 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
15439 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15440 haveit=
15441 for x in $rpathdirs; do
15442 if test "X$x" = "X$found_dir"; then
15443 haveit=yes
15444 break
15446 done
15447 if test -z "$haveit"; then
15448 rpathdirs="$rpathdirs $found_dir"
15450 else
15451 haveit=
15452 for x in $LDFLAGS $LIBINTL; do
15454 acl_save_prefix="$prefix"
15455 prefix="$acl_final_prefix"
15456 acl_save_exec_prefix="$exec_prefix"
15457 exec_prefix="$acl_final_exec_prefix"
15458 eval x=\"$x\"
15459 exec_prefix="$acl_save_exec_prefix"
15460 prefix="$acl_save_prefix"
15462 if test "X$x" = "X-L$found_dir"; then
15463 haveit=yes
15464 break
15466 done
15467 if test -z "$haveit"; then
15468 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
15470 if test "$hardcode_minus_L" != no; then
15471 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15472 else
15473 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
15478 else
15479 if test "X$found_a" != "X"; then
15480 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
15481 else
15482 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
15485 additional_includedir=
15486 case "$found_dir" in
15487 */$acl_libdirstem | */$acl_libdirstem/)
15488 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
15489 additional_includedir="$basedir/include"
15491 esac
15492 if test "X$additional_includedir" != "X"; then
15493 if test "X$additional_includedir" != "X/usr/include"; then
15494 haveit=
15495 if test "X$additional_includedir" = "X/usr/local/include"; then
15496 if test -n "$GCC"; then
15497 case $host_os in
15498 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15499 esac
15502 if test -z "$haveit"; then
15503 for x in $CPPFLAGS $INCINTL; do
15505 acl_save_prefix="$prefix"
15506 prefix="$acl_final_prefix"
15507 acl_save_exec_prefix="$exec_prefix"
15508 exec_prefix="$acl_final_exec_prefix"
15509 eval x=\"$x\"
15510 exec_prefix="$acl_save_exec_prefix"
15511 prefix="$acl_save_prefix"
15513 if test "X$x" = "X-I$additional_includedir"; then
15514 haveit=yes
15515 break
15517 done
15518 if test -z "$haveit"; then
15519 if test -d "$additional_includedir"; then
15520 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
15526 if test -n "$found_la"; then
15527 save_libdir="$libdir"
15528 case "$found_la" in
15529 */* | *\\*) . "$found_la" ;;
15530 *) . "./$found_la" ;;
15531 esac
15532 libdir="$save_libdir"
15533 for dep in $dependency_libs; do
15534 case "$dep" in
15535 -L*)
15536 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
15537 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
15538 haveit=
15539 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
15540 if test -n "$GCC"; then
15541 case $host_os in
15542 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15543 esac
15546 if test -z "$haveit"; then
15547 haveit=
15548 for x in $LDFLAGS $LIBINTL; do
15550 acl_save_prefix="$prefix"
15551 prefix="$acl_final_prefix"
15552 acl_save_exec_prefix="$exec_prefix"
15553 exec_prefix="$acl_final_exec_prefix"
15554 eval x=\"$x\"
15555 exec_prefix="$acl_save_exec_prefix"
15556 prefix="$acl_save_prefix"
15558 if test "X$x" = "X-L$additional_libdir"; then
15559 haveit=yes
15560 break
15562 done
15563 if test -z "$haveit"; then
15564 if test -d "$additional_libdir"; then
15565 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
15568 haveit=
15569 for x in $LDFLAGS $LTLIBINTL; do
15571 acl_save_prefix="$prefix"
15572 prefix="$acl_final_prefix"
15573 acl_save_exec_prefix="$exec_prefix"
15574 exec_prefix="$acl_final_exec_prefix"
15575 eval x=\"$x\"
15576 exec_prefix="$acl_save_exec_prefix"
15577 prefix="$acl_save_prefix"
15579 if test "X$x" = "X-L$additional_libdir"; then
15580 haveit=yes
15581 break
15583 done
15584 if test -z "$haveit"; then
15585 if test -d "$additional_libdir"; then
15586 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
15592 -R*)
15593 dir=`echo "X$dep" | sed -e 's/^X-R//'`
15594 if test "$enable_rpath" != no; then
15595 haveit=
15596 for x in $rpathdirs; do
15597 if test "X$x" = "X$dir"; then
15598 haveit=yes
15599 break
15601 done
15602 if test -z "$haveit"; then
15603 rpathdirs="$rpathdirs $dir"
15605 haveit=
15606 for x in $ltrpathdirs; do
15607 if test "X$x" = "X$dir"; then
15608 haveit=yes
15609 break
15611 done
15612 if test -z "$haveit"; then
15613 ltrpathdirs="$ltrpathdirs $dir"
15617 -l*)
15618 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15620 *.la)
15621 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15624 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
15625 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
15627 esac
15628 done
15630 else
15631 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
15632 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
15636 done
15637 done
15638 if test "X$rpathdirs" != "X"; then
15639 if test -n "$hardcode_libdir_separator"; then
15640 alldirs=
15641 for found_dir in $rpathdirs; do
15642 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
15643 done
15644 acl_save_libdir="$libdir"
15645 libdir="$alldirs"
15646 eval flag=\"$hardcode_libdir_flag_spec\"
15647 libdir="$acl_save_libdir"
15648 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
15649 else
15650 for found_dir in $rpathdirs; do
15651 acl_save_libdir="$libdir"
15652 libdir="$found_dir"
15653 eval flag=\"$hardcode_libdir_flag_spec\"
15654 libdir="$acl_save_libdir"
15655 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
15656 done
15659 if test "X$ltrpathdirs" != "X"; then
15660 for found_dir in $ltrpathdirs; do
15661 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
15662 done
15665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
15666 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
15667 if eval \${$gt_func_gnugettext_libintl+:} false; then :
15668 $as_echo_n "(cached) " >&6
15669 else
15670 gt_save_CPPFLAGS="$CPPFLAGS"
15671 CPPFLAGS="$CPPFLAGS $INCINTL"
15672 gt_save_LIBS="$LIBS"
15673 LIBS="$LIBS $LIBINTL"
15674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15675 /* end confdefs.h. */
15676 #include <libintl.h>
15677 $gt_revision_test_code
15678 extern int _nl_msg_cat_cntr;
15679 extern
15680 #ifdef __cplusplus
15682 #endif
15683 const char *_nl_expand_alias (const char *);
15685 main ()
15687 bindtextdomain ("", "");
15688 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
15690 return 0;
15692 _ACEOF
15693 if ac_fn_c_try_link "$LINENO"; then :
15694 eval "$gt_func_gnugettext_libintl=yes"
15695 else
15696 eval "$gt_func_gnugettext_libintl=no"
15698 rm -f core conftest.err conftest.$ac_objext \
15699 conftest$ac_exeext conftest.$ac_ext
15700 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
15701 LIBS="$LIBS $LIBICONV"
15702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15703 /* end confdefs.h. */
15704 #include <libintl.h>
15705 $gt_revision_test_code
15706 extern int _nl_msg_cat_cntr;
15707 extern
15708 #ifdef __cplusplus
15710 #endif
15711 const char *_nl_expand_alias (const char *);
15713 main ()
15715 bindtextdomain ("", "");
15716 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
15718 return 0;
15720 _ACEOF
15721 if ac_fn_c_try_link "$LINENO"; then :
15722 LIBINTL="$LIBINTL $LIBICONV"
15723 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
15724 eval "$gt_func_gnugettext_libintl=yes"
15727 rm -f core conftest.err conftest.$ac_objext \
15728 conftest$ac_exeext conftest.$ac_ext
15730 CPPFLAGS="$gt_save_CPPFLAGS"
15731 LIBS="$gt_save_LIBS"
15733 eval ac_res=\$$gt_func_gnugettext_libintl
15734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15735 $as_echo "$ac_res" >&6; }
15738 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
15739 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
15740 && test "$PACKAGE" != gettext-runtime \
15741 && test "$PACKAGE" != gettext-tools; }; then
15742 gt_use_preinstalled_gnugettext=yes
15743 else
15744 LIBINTL=
15745 LTLIBINTL=
15746 INCINTL=
15751 if test -n "$INTL_MACOSX_LIBS"; then
15752 if test "$gt_use_preinstalled_gnugettext" = "yes" \
15753 || test "$nls_cv_use_gnu_gettext" = "yes"; then
15754 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
15755 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
15759 if test "$gt_use_preinstalled_gnugettext" = "yes" \
15760 || test "$nls_cv_use_gnu_gettext" = "yes"; then
15762 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
15764 else
15765 USE_NLS=no
15769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
15770 $as_echo_n "checking whether to use NLS... " >&6; }
15771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
15772 $as_echo "$USE_NLS" >&6; }
15773 if test "$USE_NLS" = "yes"; then
15774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
15775 $as_echo_n "checking where the gettext function comes from... " >&6; }
15776 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
15777 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
15778 gt_source="external libintl"
15779 else
15780 gt_source="libc"
15782 else
15783 gt_source="included intl directory"
15785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
15786 $as_echo "$gt_source" >&6; }
15789 if test "$USE_NLS" = "yes"; then
15791 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
15792 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
15793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
15794 $as_echo_n "checking how to link with libintl... " >&6; }
15795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
15796 $as_echo "$LIBINTL" >&6; }
15798 for element in $INCINTL; do
15799 haveit=
15800 for x in $CPPFLAGS; do
15802 acl_save_prefix="$prefix"
15803 prefix="$acl_final_prefix"
15804 acl_save_exec_prefix="$exec_prefix"
15805 exec_prefix="$acl_final_exec_prefix"
15806 eval x=\"$x\"
15807 exec_prefix="$acl_save_exec_prefix"
15808 prefix="$acl_save_prefix"
15810 if test "X$x" = "X$element"; then
15811 haveit=yes
15812 break
15814 done
15815 if test -z "$haveit"; then
15816 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15818 done
15823 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
15826 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
15830 POSUB=po
15835 INTLLIBS="$LIBINTL"
15843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: dmalloc enabled" >&5
15844 $as_echo_n "checking option: dmalloc enabled... " >&6; }
15845 # Check whether --enable-dmalloc was given.
15846 if test "${enable_dmalloc+set}" = set; then :
15847 enableval=$enable_dmalloc;
15850 if test x$enable_dmalloc = "xyes" ; then
15851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15852 $as_echo "yes" >&6; }
15853 else
15854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15855 $as_echo "no" >&6; }
15859 # Check whether --with-dmalloc-dir was given.
15860 if test "${with_dmalloc_dir+set}" = set; then :
15861 withval=$with_dmalloc_dir;
15862 if test "x$withval" != "xno" ; then
15863 enable_dmalloc = "yes"
15864 CPPFLAGS="$CPPFLAGS -I${withval}"
15865 LDFLAGS="$LDFLAGS -L${withval}"
15871 if test x$enable_dmalloc = "xyes" ; then
15873 $as_echo "#define ENABLE_DMALLOC 1" >>confdefs.h
15877 ALPINE_datestamp=`date`
15879 # Check whether --with-date-stamp was given.
15880 if test "${with_date_stamp+set}" = set; then :
15881 withval=$with_date_stamp;
15882 if test "x$withval" != "xno" ; then
15883 ALPINE_datestamp=$withval
15888 ALPINE_DATESTAMP=$ALPINE_datestamp
15891 ALPINE_hoststamp=`hostname`
15893 # Check whether --with-host-stamp was given.
15894 if test "${with_host_stamp+set}" = set; then :
15895 withval=$with_host_stamp;
15896 if test "x$withval" != "xno" ; then
15897 ALPINE_hoststamp="$withval"
15902 ALPINE_HOSTSTAMP=$ALPINE_hoststamp
15905 case $host in
15906 *apple-darwin*)
15907 if test -d /opt/local ; then
15908 localedir="/opt/local/share/locale"
15909 else
15910 localedir="\${datadir}/locale"
15913 *-*-cygwin)
15914 localedir="/usr/share"
15917 localedir="\${datadir}/locale"
15919 esac
15922 # Check whether --with-localedir was given.
15923 if test "${with_localedir+set}" = set; then :
15924 withval=$with_localedir;
15925 case $withval in
15926 yes)
15931 localedir=$withval
15933 esac
15937 localedir="$localedir"
15940 # Setup OS-Specific features
15941 case "$host" in
15942 *darwin*)
15943 # Check whether --enable-osx-universal-binaries was given.
15944 if test "${enable_osx_universal_binaries+set}" = set; then :
15945 enableval=$enable_osx_universal_binaries;
15948 if test "x$enable_osx_universal_binaries" = "xyes" ; then
15949 if test "x$enable_dependency_tracking" != xno ; then
15950 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
15951 Please re-run configure with these options:
15952 --disable-dependency-tracking --enable-osx-universal-binary" "$LINENO" 5
15954 if test -d /Developer/SDKs/MacOSX10.5.sdk ; then
15955 alpine_sysroot=/Developer/SDKs/MacOSX10.5.sdk
15956 elif test -d /Developer/SDKs/MacOSX10.4u.sdk ; then
15957 alpine_sysroot=/Developer/SDKs/MacOSX10.4u.sdk
15958 else
15959 as_fn_error $? "No suitable MacOSX SDK found. Make sure Xcode tools are installed" "$LINENO" 5
15961 ub_cflags="-isysroot $alpine_sysroot -arch ppc -arch i386"
15962 ub_ldflags="-Wl,-syslibroot,$alpine_sysroot -arch ppc -arch i386"
15963 AM_CFLAGS="$AM_CFLAGS $ub_cflags"
15964 AM_LDFLAGS="$AM_LDFLAGS $ub_ldflags"
15965 alpine_c_client_cflags="$alpine_c_client_cflags $ub_cflags"
15966 alpine_c_client_ldflags="$alpine_c_client_ldflags $ub_ldflags"
15969 esac
15972 # Check whether --with-include-path was given.
15973 if test "${with_include_path+set}" = set; then :
15974 withval=$with_include_path;
15975 case $withval in
15978 yes)
15981 new_cppflags="-I`echo ${withval} | ${SED} 's/:/ -I/g'`"
15982 CPPFLAGS="$CPPFLAGS ${new_cppflags}"
15983 alpine_c_client_cflags="$alpine_c_client_cflags ${new_cppflags}"
15985 esac
15991 # Check whether --with-lib-path was given.
15992 if test "${with_lib_path+set}" = set; then :
15993 withval=$with_lib_path;
15994 case $withval in
15997 yes)
16000 new_ldflags="-L`echo ${withval} | ${SED} 's/:/ -L/g'`"
16001 LDFLAGS="$LDFLAGS $new_ldflags"
16002 alpine_c_client_ldflags="$alpine_c_client_ldflags ${new_ldflags}"
16004 esac
16010 # Check whether --with-pubcookie was given.
16011 if test "${with_pubcookie+set}" = set; then :
16012 withval=$with_pubcookie;
16013 if test "x$withval" != "xno" ; then
16014 WEB_PUBCOOKIE_BUILD=web/src/pubcookie
16022 # Check whether --with-web-bin was given.
16023 if test "${with_web_bin+set}" = set; then :
16024 withval=$with_web_bin;
16025 case "$withval" in
16028 yes)
16031 WEB_BINDIR=$withval
16033 esac
16038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: debugging is enabled" >&5
16039 $as_echo_n "checking option: debugging is enabled... " >&6; }
16040 # Check whether --enable-debug was given.
16041 if test "${enable_debug+set}" = set; then :
16042 enableval=$enable_debug;
16045 if test x$enable_debug != "xno" ; then
16046 AM_CFLAGS="$AM_CFLAGS -g"
16048 $as_echo "#define DEBUG 1" >>confdefs.h
16051 $as_echo "#define DEBUGJOURNAL 1" >>confdefs.h
16053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16054 $as_echo "yes" >&6; }
16055 else
16056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16057 $as_echo "no" >&6; }
16060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: optimization is enabled" >&5
16061 $as_echo_n "checking option: optimization is enabled... " >&6; }
16062 # Check whether --enable-optimization was given.
16063 if test "${enable_optimization+set}" = set; then :
16064 enableval=$enable_optimization;
16067 if test x$enable_optimization != "xno" ; then
16068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16069 $as_echo "yes" >&6; }
16070 else
16071 CFLAGS="`echo $AM_CFLAGS | ${SED} 's/-O2//'`"
16072 alpine_c_client_gccoptlevel="-O0"
16073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16074 $as_echo "no" >&6; }
16077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: mouse support enabled" >&5
16078 $as_echo_n "checking option: mouse support enabled... " >&6; }
16079 # Check whether --enable-mouse was given.
16080 if test "${enable_mouse+set}" = set; then :
16081 enableval=$enable_mouse;
16084 if test x$enable_mouse != "xno" ; then
16086 $as_echo "#define MOUSE /**/" >>confdefs.h
16088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16089 $as_echo "yes" >&6; }
16090 else
16091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16092 $as_echo "no" >&6; }
16095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: quotas enabled" >&5
16096 $as_echo_n "checking option: quotas enabled... " >&6; }
16097 # Check whether --enable-quotas was given.
16098 if test "${enable_quotas+set}" = set; then :
16099 enableval=$enable_quotas;
16102 if test x$enable_quotas = "xyes" ; then
16104 $as_echo "#define USE_QUOTAS /**/" >>confdefs.h
16106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16107 $as_echo "yes" >&6; }
16108 else
16109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16110 $as_echo "no" >&6; }
16113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: From changing enabled" >&5
16114 $as_echo_n "checking option: From changing enabled... " >&6; }
16115 # Check whether --enable-from_changing was given.
16116 if test "${enable_from_changing+set}" = set; then :
16117 enableval=$enable_from_changing;
16120 if test x$enable_from_changing != "xno" ; then
16121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16122 $as_echo "yes" >&6; }
16123 else
16125 $as_echo "#define NEVER_ALLOW_CHANGING_FROM /**/" >>confdefs.h
16127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16128 $as_echo "no" >&6; }
16131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: background post enabled" >&5
16132 $as_echo_n "checking option: background post enabled... " >&6; }
16133 # Check whether --enable-background-post was given.
16134 if test "${enable_background_post+set}" = set; then :
16135 enableval=$enable_background_post;
16138 if test x$enable_background_post != "xno" ; then
16140 $as_echo "#define BACKGROUND_POST /**/" >>confdefs.h
16142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16143 $as_echo "yes" >&6; }
16144 else
16145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16146 $as_echo "no" >&6; }
16149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: keyboard lock enabled" >&5
16150 $as_echo_n "checking option: keyboard lock enabled... " >&6; }
16151 # Check whether --enable-keyboard-lock was given.
16152 if test "${enable_keyboard_lock+set}" = set; then :
16153 enableval=$enable_keyboard_lock;
16156 if test x$enable_keyboard_lock != "xno" ; then
16158 $as_echo "#define KEYBOARD_LOCK /**/" >>confdefs.h
16160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16161 $as_echo "yes" >&6; }
16162 else
16163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16164 $as_echo "no" >&6; }
16167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: from encoding enabled" >&5
16168 $as_echo_n "checking option: from encoding enabled... " >&6; }
16169 # Check whether --enable-from-encoding was given.
16170 if test "${enable_from_encoding+set}" = set; then :
16171 enableval=$enable_from_encoding;
16174 if test x$enable_from_encoding = "xyes" ; then
16176 $as_echo "#define ENCODE_FROMS /**/" >>confdefs.h
16178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16179 $as_echo "yes" >&6; }
16180 else
16181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16182 $as_echo "no" >&6; }
16186 # Check whether --with-smtp-msa was given.
16187 if test "${with_smtp_msa+set}" = set; then :
16188 withval=$with_smtp_msa;
16189 case "$withval" in
16192 yes)
16193 # Extract the first word of "sendmail", so it can be a program name with args.
16194 set dummy sendmail; ac_word=$2
16195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16196 $as_echo_n "checking for $ac_word... " >&6; }
16197 if ${ac_cv_path_SENDMAIL+:} false; then :
16198 $as_echo_n "(cached) " >&6
16199 else
16200 case $SENDMAIL in
16201 [\\/]* | ?:[\\/]*)
16202 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
16205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16206 as_dummy="$PATH:/usr/sbin:/usr/lib"
16207 for as_dir in $as_dummy
16209 IFS=$as_save_IFS
16210 test -z "$as_dir" && as_dir=.
16211 for ac_exec_ext in '' $ac_executable_extensions; do
16212 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16213 ac_cv_path_SENDMAIL="$as_dir/$ac_word$ac_exec_ext"
16214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16215 break 2
16217 done
16218 done
16219 IFS=$as_save_IFS
16221 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL=""""
16223 esac
16225 SENDMAIL=$ac_cv_path_SENDMAIL
16226 if test -n "$SENDMAIL"; then
16227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SENDMAIL" >&5
16228 $as_echo "$SENDMAIL" >&6; }
16229 else
16230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16231 $as_echo "no" >&6; }
16237 SENDMAIL=$withval
16239 esac
16241 else
16243 # Extract the first word of "sendmail", so it can be a program name with args.
16244 set dummy sendmail; ac_word=$2
16245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16246 $as_echo_n "checking for $ac_word... " >&6; }
16247 if ${ac_cv_path_SENDMAIL+:} false; then :
16248 $as_echo_n "(cached) " >&6
16249 else
16250 case $SENDMAIL in
16251 [\\/]* | ?:[\\/]*)
16252 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
16255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16256 as_dummy="$PATH:/usr/sbin:/usr/lib"
16257 for as_dir in $as_dummy
16259 IFS=$as_save_IFS
16260 test -z "$as_dir" && as_dir=.
16261 for ac_exec_ext in '' $ac_executable_extensions; do
16262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16263 ac_cv_path_SENDMAIL="$as_dir/$ac_word$ac_exec_ext"
16264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16265 break 2
16267 done
16268 done
16269 IFS=$as_save_IFS
16271 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL=""""
16273 esac
16275 SENDMAIL=$ac_cv_path_SENDMAIL
16276 if test -n "$SENDMAIL"; then
16277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SENDMAIL" >&5
16278 $as_echo "$SENDMAIL" >&6; }
16279 else
16280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16281 $as_echo "no" >&6; }
16288 if test -n "$SENDMAIL" ; then
16290 cat >>confdefs.h <<_ACEOF
16291 #define SENDMAIL "$SENDMAIL"
16292 _ACEOF
16296 smtp_msa_flags="-bs -odb -oem"
16298 # Check whether --with-smtp-msa-flags was given.
16299 if test "${with_smtp_msa_flags+set}" = set; then :
16300 withval=$with_smtp_msa_flags;
16301 if test "x$withval" != "xno" ; then
16302 smtp_msa_flags=$withval
16308 cat >>confdefs.h <<_ACEOF
16309 #define SENDMAILFLAGS "$smtp_msa_flags"
16310 _ACEOF
16313 npa="inews"
16315 # Check whether --with-npa was given.
16316 if test "${with_npa+set}" = set; then :
16317 withval=$with_npa;
16318 case "$withval" in
16321 yes)
16322 # Extract the first word of "inews", so it can be a program name with args.
16323 set dummy inews; ac_word=$2
16324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16325 $as_echo_n "checking for $ac_word... " >&6; }
16326 if ${ac_cv_path_NPA_PROG+:} false; then :
16327 $as_echo_n "(cached) " >&6
16328 else
16329 case $NPA_PROG in
16330 [\\/]* | ?:[\\/]*)
16331 ac_cv_path_NPA_PROG="$NPA_PROG" # Let the user override the test with a path.
16334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16335 as_dummy="$PATH:/usr/sbin:/usr/lib"
16336 for as_dir in $as_dummy
16338 IFS=$as_save_IFS
16339 test -z "$as_dir" && as_dir=.
16340 for ac_exec_ext in '' $ac_executable_extensions; do
16341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16342 ac_cv_path_NPA_PROG="$as_dir/$ac_word$ac_exec_ext"
16343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16344 break 2
16346 done
16347 done
16348 IFS=$as_save_IFS
16350 test -z "$ac_cv_path_NPA_PROG" && ac_cv_path_NPA_PROG=""""
16352 esac
16354 NPA_PROG=$ac_cv_path_NPA_PROG
16355 if test -n "$NPA_PROG"; then
16356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NPA_PROG" >&5
16357 $as_echo "$NPA_PROG" >&6; }
16358 else
16359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16360 $as_echo "no" >&6; }
16366 NPA_PROG=$withval
16368 esac
16370 else
16372 # Extract the first word of "inews", so it can be a program name with args.
16373 set dummy inews; ac_word=$2
16374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16375 $as_echo_n "checking for $ac_word... " >&6; }
16376 if ${ac_cv_path_NPA_PROG+:} false; then :
16377 $as_echo_n "(cached) " >&6
16378 else
16379 case $NPA_PROG in
16380 [\\/]* | ?:[\\/]*)
16381 ac_cv_path_NPA_PROG="$NPA_PROG" # Let the user override the test with a path.
16384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16385 as_dummy="$PATH:/usr/sbin:/usr/lib"
16386 for as_dir in $as_dummy
16388 IFS=$as_save_IFS
16389 test -z "$as_dir" && as_dir=.
16390 for ac_exec_ext in '' $ac_executable_extensions; do
16391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16392 ac_cv_path_NPA_PROG="$as_dir/$ac_word$ac_exec_ext"
16393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16394 break 2
16396 done
16397 done
16398 IFS=$as_save_IFS
16400 test -z "$ac_cv_path_NPA_PROG" && ac_cv_path_NPA_PROG=""""
16402 esac
16404 NPA_PROG=$ac_cv_path_NPA_PROG
16405 if test -n "$NPA_PROG"; then
16406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NPA_PROG" >&5
16407 $as_echo "$NPA_PROG" >&6; }
16408 else
16409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16410 $as_echo "no" >&6; }
16418 npa_flags="-h"
16420 # Check whether --with-npa-flags was given.
16421 if test "${with_npa_flags+set}" = set; then :
16422 withval=$with_npa_flags;
16423 if test "x$withval" != "xno" ; then
16424 npa_flags=$withval
16429 if test -n "$NPA_PROG" ; then
16431 cat >>confdefs.h <<_ACEOF
16432 #define SENDNEWS "$NPA_PROG $npa_flags"
16433 _ACEOF
16438 # Check whether --with-password-prog was given.
16439 if test "${with_password_prog+set}" = set; then :
16440 withval=$with_password_prog;
16441 case "$withval" in
16444 yes)
16445 # Extract the first word of "passwd", so it can be a program name with args.
16446 set dummy passwd; ac_word=$2
16447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16448 $as_echo_n "checking for $ac_word... " >&6; }
16449 if ${ac_cv_path_PWPROG+:} false; then :
16450 $as_echo_n "(cached) " >&6
16451 else
16452 case $PWPROG in
16453 [\\/]* | ?:[\\/]*)
16454 ac_cv_path_PWPROG="$PWPROG" # Let the user override the test with a path.
16457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16458 as_dummy="$PATH:/usr/sbin:/usr/lib"
16459 for as_dir in $as_dummy
16461 IFS=$as_save_IFS
16462 test -z "$as_dir" && as_dir=.
16463 for ac_exec_ext in '' $ac_executable_extensions; do
16464 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16465 ac_cv_path_PWPROG="$as_dir/$ac_word$ac_exec_ext"
16466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16467 break 2
16469 done
16470 done
16471 IFS=$as_save_IFS
16473 test -z "$ac_cv_path_PWPROG" && ac_cv_path_PWPROG=""""
16475 esac
16477 PWPROG=$ac_cv_path_PWPROG
16478 if test -n "$PWPROG"; then
16479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PWPROG" >&5
16480 $as_echo "$PWPROG" >&6; }
16481 else
16482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16483 $as_echo "no" >&6; }
16489 # Extract the first word of "$withval", so it can be a program name with args.
16490 set dummy $withval; ac_word=$2
16491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16492 $as_echo_n "checking for $ac_word... " >&6; }
16493 if ${ac_cv_path_PWPROG+:} false; then :
16494 $as_echo_n "(cached) " >&6
16495 else
16496 case $PWPROG in
16497 [\\/]* | ?:[\\/]*)
16498 ac_cv_path_PWPROG="$PWPROG" # Let the user override the test with a path.
16501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16502 as_dummy="$PATH:/usr/sbin:/usr/lib"
16503 for as_dir in $as_dummy
16505 IFS=$as_save_IFS
16506 test -z "$as_dir" && as_dir=.
16507 for ac_exec_ext in '' $ac_executable_extensions; do
16508 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16509 ac_cv_path_PWPROG="$as_dir/$ac_word$ac_exec_ext"
16510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16511 break 2
16513 done
16514 done
16515 IFS=$as_save_IFS
16517 test -z "$ac_cv_path_PWPROG" && ac_cv_path_PWPROG=""""
16519 esac
16521 PWPROG=$ac_cv_path_PWPROG
16522 if test -n "$PWPROG"; then
16523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PWPROG" >&5
16524 $as_echo "$PWPROG" >&6; }
16525 else
16526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16527 $as_echo "no" >&6; }
16532 esac
16534 else
16536 # Extract the first word of "passwd", so it can be a program name with args.
16537 set dummy passwd; ac_word=$2
16538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16539 $as_echo_n "checking for $ac_word... " >&6; }
16540 if ${ac_cv_path_PWPROG+:} false; then :
16541 $as_echo_n "(cached) " >&6
16542 else
16543 case $PWPROG in
16544 [\\/]* | ?:[\\/]*)
16545 ac_cv_path_PWPROG="$PWPROG" # Let the user override the test with a path.
16548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16549 as_dummy="$PATH:/usr/sbin:/usr/lib"
16550 for as_dir in $as_dummy
16552 IFS=$as_save_IFS
16553 test -z "$as_dir" && as_dir=.
16554 for ac_exec_ext in '' $ac_executable_extensions; do
16555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16556 ac_cv_path_PWPROG="$as_dir/$ac_word$ac_exec_ext"
16557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16558 break 2
16560 done
16561 done
16562 IFS=$as_save_IFS
16564 test -z "$ac_cv_path_PWPROG" && ac_cv_path_PWPROG=""""
16566 esac
16568 PWPROG=$ac_cv_path_PWPROG
16569 if test -n "$PWPROG"; then
16570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PWPROG" >&5
16571 $as_echo "$PWPROG" >&6; }
16572 else
16573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16574 $as_echo "no" >&6; }
16581 if test -n "$PWPROG" ; then
16583 cat >>confdefs.h <<_ACEOF
16584 #define PASSWD_PROG "$PWPROG"
16585 _ACEOF
16590 # Check whether --with-simple-spellcheck was given.
16591 if test "${with_simple_spellcheck+set}" = set; then :
16592 withval=$with_simple_spellcheck;
16593 if test "x$withval" != "xno" ; then
16594 SPELLPROG=$withval
16597 else
16599 # Extract the first word of "hunspell", so it can be a program name with args.
16600 set dummy hunspell; ac_word=$2
16601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16602 $as_echo_n "checking for $ac_word... " >&6; }
16603 if ${ac_cv_prog_SPELLPROG+:} false; then :
16604 $as_echo_n "(cached) " >&6
16605 else
16606 if test -n "$SPELLPROG"; then
16607 ac_cv_prog_SPELLPROG="$SPELLPROG" # Let the user override the test.
16608 else
16609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16610 for as_dir in $PATH
16612 IFS=$as_save_IFS
16613 test -z "$as_dir" && as_dir=.
16614 for ac_exec_ext in '' $ac_executable_extensions; do
16615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16616 ac_cv_prog_SPELLPROG="hunspell"
16617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16618 break 2
16620 done
16621 done
16622 IFS=$as_save_IFS
16626 SPELLPROG=$ac_cv_prog_SPELLPROG
16627 if test -n "$SPELLPROG"; then
16628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPELLPROG" >&5
16629 $as_echo "$SPELLPROG" >&6; }
16630 else
16631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16632 $as_echo "no" >&6; }
16636 if test -z "$SPELLPROG" ; then
16637 # Extract the first word of "aspell", so it can be a program name with args.
16638 set dummy aspell; ac_word=$2
16639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16640 $as_echo_n "checking for $ac_word... " >&6; }
16641 if ${ac_cv_prog_SPELLPROG+:} false; then :
16642 $as_echo_n "(cached) " >&6
16643 else
16644 if test -n "$SPELLPROG"; then
16645 ac_cv_prog_SPELLPROG="$SPELLPROG" # Let the user override the test.
16646 else
16647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16648 for as_dir in $PATH
16650 IFS=$as_save_IFS
16651 test -z "$as_dir" && as_dir=.
16652 for ac_exec_ext in '' $ac_executable_extensions; do
16653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16654 ac_cv_prog_SPELLPROG="aspell"
16655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16656 break 2
16658 done
16659 done
16660 IFS=$as_save_IFS
16664 SPELLPROG=$ac_cv_prog_SPELLPROG
16665 if test -n "$SPELLPROG"; then
16666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPELLPROG" >&5
16667 $as_echo "$SPELLPROG" >&6; }
16668 else
16669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16670 $as_echo "no" >&6; }
16674 if test -z "$SPELLPROG" ; then
16675 # Extract the first word of "ispell", so it can be a program name with args.
16676 set dummy ispell; ac_word=$2
16677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16678 $as_echo_n "checking for $ac_word... " >&6; }
16679 if ${ac_cv_prog_SPELLPROG+:} false; then :
16680 $as_echo_n "(cached) " >&6
16681 else
16682 if test -n "$SPELLPROG"; then
16683 ac_cv_prog_SPELLPROG="$SPELLPROG" # Let the user override the test.
16684 else
16685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16686 for as_dir in $PATH
16688 IFS=$as_save_IFS
16689 test -z "$as_dir" && as_dir=.
16690 for ac_exec_ext in '' $ac_executable_extensions; do
16691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16692 ac_cv_prog_SPELLPROG="ispell"
16693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16694 break 2
16696 done
16697 done
16698 IFS=$as_save_IFS
16702 SPELLPROG=$ac_cv_prog_SPELLPROG
16703 if test -n "$SPELLPROG"; then
16704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPELLPROG" >&5
16705 $as_echo "$SPELLPROG" >&6; }
16706 else
16707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16708 $as_echo "no" >&6; }
16712 if test -z "$SPELLPROG" ; then
16713 SPELLPROG="spell"
16721 if test "x$SPELLPROG" != "xno" ; then
16722 # Extract the first word of "$SPELLPROG", so it can be a program name with args.
16723 set dummy $SPELLPROG; ac_word=$2
16724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16725 $as_echo_n "checking for $ac_word... " >&6; }
16726 if ${ac_cv_path_alpine_simple_spellcheck+:} false; then :
16727 $as_echo_n "(cached) " >&6
16728 else
16729 case $alpine_simple_spellcheck in
16730 [\\/]* | ?:[\\/]*)
16731 ac_cv_path_alpine_simple_spellcheck="$alpine_simple_spellcheck" # Let the user override the test with a path.
16734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16735 for as_dir in $PATH
16737 IFS=$as_save_IFS
16738 test -z "$as_dir" && as_dir=.
16739 for ac_exec_ext in '' $ac_executable_extensions; do
16740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16741 ac_cv_path_alpine_simple_spellcheck="$as_dir/$ac_word$ac_exec_ext"
16742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16743 break 2
16745 done
16746 done
16747 IFS=$as_save_IFS
16750 esac
16752 alpine_simple_spellcheck=$ac_cv_path_alpine_simple_spellcheck
16753 if test -n "$alpine_simple_spellcheck"; then
16754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $alpine_simple_spellcheck" >&5
16755 $as_echo "$alpine_simple_spellcheck" >&6; }
16756 else
16757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16758 $as_echo "no" >&6; }
16762 if test -n "$alpine_simple_spellcheck" ; then
16763 case "$SPELLPROG" in
16764 hunspell)
16765 alpine_simple_spellcheck="$alpine_simple_spellcheck -l"
16767 aspell)
16768 alpine_simple_spellcheck="$alpine_simple_spellcheck --dont-backup --mode=email list"
16770 ispell)
16771 alpine_simple_spellcheck="$alpine_simple_spellcheck -l"
16775 esac
16780 # Check whether --with-interactive-spellcheck was given.
16781 if test "${with_interactive_spellcheck+set}" = set; then :
16782 withval=$with_interactive_spellcheck;
16783 if test "x$withval" != "xno" ; then
16784 ISPELLPROG=$withval
16787 else
16789 # Extract the first word of "hunspell", so it can be a program name with args.
16790 set dummy hunspell; ac_word=$2
16791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16792 $as_echo_n "checking for $ac_word... " >&6; }
16793 if ${ac_cv_prog_ISPELLPROG+:} false; then :
16794 $as_echo_n "(cached) " >&6
16795 else
16796 if test -n "$ISPELLPROG"; then
16797 ac_cv_prog_ISPELLPROG="$ISPELLPROG" # Let the user override the test.
16798 else
16799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16800 for as_dir in $PATH
16802 IFS=$as_save_IFS
16803 test -z "$as_dir" && as_dir=.
16804 for ac_exec_ext in '' $ac_executable_extensions; do
16805 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16806 ac_cv_prog_ISPELLPROG="hunspell"
16807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16808 break 2
16810 done
16811 done
16812 IFS=$as_save_IFS
16816 ISPELLPROG=$ac_cv_prog_ISPELLPROG
16817 if test -n "$ISPELLPROG"; then
16818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ISPELLPROG" >&5
16819 $as_echo "$ISPELLPROG" >&6; }
16820 else
16821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16822 $as_echo "no" >&6; }
16826 if test -z "$ISPELLPROG" ; then
16827 # Extract the first word of "aspell", so it can be a program name with args.
16828 set dummy aspell; ac_word=$2
16829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16830 $as_echo_n "checking for $ac_word... " >&6; }
16831 if ${ac_cv_prog_ISPELLPROG+:} false; then :
16832 $as_echo_n "(cached) " >&6
16833 else
16834 if test -n "$ISPELLPROG"; then
16835 ac_cv_prog_ISPELLPROG="$ISPELLPROG" # Let the user override the test.
16836 else
16837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16838 for as_dir in $PATH
16840 IFS=$as_save_IFS
16841 test -z "$as_dir" && as_dir=.
16842 for ac_exec_ext in '' $ac_executable_extensions; do
16843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16844 ac_cv_prog_ISPELLPROG="aspell"
16845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16846 break 2
16848 done
16849 done
16850 IFS=$as_save_IFS
16854 ISPELLPROG=$ac_cv_prog_ISPELLPROG
16855 if test -n "$ISPELLPROG"; then
16856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ISPELLPROG" >&5
16857 $as_echo "$ISPELLPROG" >&6; }
16858 else
16859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16860 $as_echo "no" >&6; }
16864 if test -z "$SPELLPROG" ; then
16865 ISPELLPROG="ispell"
16872 if test "x$ISPELLPROG" != "xno" ; then
16873 # Extract the first word of "$ISPELLPROG", so it can be a program name with args.
16874 set dummy $ISPELLPROG; ac_word=$2
16875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16876 $as_echo_n "checking for $ac_word... " >&6; }
16877 if ${ac_cv_path_alpine_interactive_spellcheck+:} false; then :
16878 $as_echo_n "(cached) " >&6
16879 else
16880 case $alpine_interactive_spellcheck in
16881 [\\/]* | ?:[\\/]*)
16882 ac_cv_path_alpine_interactive_spellcheck="$alpine_interactive_spellcheck" # Let the user override the test with a path.
16885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16886 for as_dir in $PATH
16888 IFS=$as_save_IFS
16889 test -z "$as_dir" && as_dir=.
16890 for ac_exec_ext in '' $ac_executable_extensions; do
16891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16892 ac_cv_path_alpine_interactive_spellcheck="$as_dir/$ac_word$ac_exec_ext"
16893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16894 break 2
16896 done
16897 done
16898 IFS=$as_save_IFS
16901 esac
16903 alpine_interactive_spellcheck=$ac_cv_path_alpine_interactive_spellcheck
16904 if test -n "$alpine_interactive_spellcheck"; then
16905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $alpine_interactive_spellcheck" >&5
16906 $as_echo "$alpine_interactive_spellcheck" >&6; }
16907 else
16908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16909 $as_echo "no" >&6; }
16913 if test -n "$alpine_interactive_spellcheck" ; then
16914 case "$ISPELLPROG" in
16915 aspell)
16916 alpine_interactive_spellcheck="$alpine_interactive_spellcheck --dont-backup --mode=email check"
16920 esac
16924 if test -n "$alpine_interactive_spellcheck" ; then
16926 cat >>confdefs.h <<_ACEOF
16927 #define DF_VAR_SPELLER "$alpine_interactive_spellcheck"
16928 _ACEOF
16932 if test -z "$alpine_simple_spellcheck" -a -n "$alpine_interactive_spellcheck" ; then
16933 alpine_simple_spellcheck=test
16936 cat >>confdefs.h <<_ACEOF
16937 #define SPELLER "$alpine_simple_spellcheck"
16938 _ACEOF
16941 case "$prefix" in
16942 NONE) dpv=/usr/local/lib/pine.conf ;;
16943 *) dpv=${prefix}/lib/pine.conf ;;
16944 esac
16946 # Check whether --with-system-pinerc was given.
16947 if test "${with_system_pinerc+set}" = set; then :
16948 withval=$with_system_pinerc;
16949 case "$withval" in
16952 yes)
16955 dpv=$withval
16957 esac
16962 cat >>confdefs.h <<_ACEOF
16963 #define SYSTEM_PINERC "$dpv"
16964 _ACEOF
16967 case "$prefix" in
16968 NONE) dpv=/usr/local/lib/pine.conf.fixed ;;
16969 *) dpv=${prefix}/lib/pine.conf.fixed ;;
16970 esac
16972 # Check whether --with-system-fixed-pinerc was given.
16973 if test "${with_system_fixed_pinerc+set}" = set; then :
16974 withval=$with_system_fixed_pinerc;
16975 case "$withval" in
16978 yes)
16981 dpv=$withval
16983 esac
16988 cat >>confdefs.h <<_ACEOF
16989 #define SYSTEM_PINERC_FIXED "$dpv"
16990 _ACEOF
16993 case "$prefix" in
16994 NONE) dpv=/usr/local/lib/pine.info ;;
16995 *) dpv=${prefix}/lib/pine.info ;;
16996 esac
16998 # Check whether --with-local-support-info was given.
16999 if test "${with_local_support_info+set}" = set; then :
17000 withval=$with_local_support_info;
17001 case "$withval" in
17004 yes)
17007 dpv=$withval
17009 esac
17014 cat >>confdefs.h <<_ACEOF
17015 #define SYSTEM_PINE_INFO_PATH "$dpv"
17016 _ACEOF
17024 dpv=150
17026 # Check whether --with-mailcheck-interval was given.
17027 if test "${with_mailcheck_interval+set}" = set; then :
17028 withval=$with_mailcheck_interval;
17029 if test "x$withval" != "xno" ; then
17030 dpv=$withval
17036 cat >>confdefs.h <<_ACEOF
17037 #define DF_MAILCHECK "$dpv"
17038 _ACEOF
17042 dpv=420
17044 # Check whether --with-checkpoint-interval was given.
17045 if test "${with_checkpoint_interval+set}" = set; then :
17046 withval=$with_checkpoint_interval;
17047 if test "x$withval" != "xno" ; then
17048 dpv=$withval
17054 cat >>confdefs.h <<_ACEOF
17055 #define CHECK_POINT_TIME $dpv
17056 _ACEOF
17060 dpv=12
17062 # Check whether --with-checkpoint-frequency was given.
17063 if test "${with_checkpoint_frequency+set}" = set; then :
17064 withval=$with_checkpoint_frequency;
17065 if test "x$withval" != "xno" ; then
17066 dpv=$withval
17072 cat >>confdefs.h <<_ACEOF
17073 #define CHECK_POINT_FREQ $dpv
17074 _ACEOF
17078 dpv=24
17080 # Check whether --with-display-rows was given.
17081 if test "${with_display_rows+set}" = set; then :
17082 withval=$with_display_rows;
17083 if test "x$withval" != "xno" ; then
17084 dpv=$withval
17090 cat >>confdefs.h <<_ACEOF
17091 #define DEFAULT_LINES_ON_TERMINAL $dpv
17092 _ACEOF
17096 dpv=80
17098 # Check whether --with-display-columns was given.
17099 if test "${with_display_columns+set}" = set; then :
17100 withval=$with_display_columns;
17101 if test "x$withval" != "xno" ; then
17102 dpv=$withval
17108 cat >>confdefs.h <<_ACEOF
17109 #define DEFAULT_COLUMNS_ON_TERMINAL $dpv
17110 _ACEOF
17114 dpv=200
17116 # Check whether --with-max-display-rows was given.
17117 if test "${with_max_display_rows+set}" = set; then :
17118 withval=$with_max_display_rows;
17119 if test "x$withval" != "xno" ; then
17120 dpv=$withval
17126 cat >>confdefs.h <<_ACEOF
17127 #define MAX_SCREEN_ROWS $dpv
17128 _ACEOF
17132 dpv=500
17134 # Check whether --with-max-display-columns was given.
17135 if test "${with_max_display_columns+set}" = set; then :
17136 withval=$with_max_display_columns;
17137 if test "x$withval" != "xno" ; then
17138 dpv=$withval
17144 cat >>confdefs.h <<_ACEOF
17145 #define MAX_SCREEN_COLS $dpv
17146 _ACEOF
17150 dpv=74
17152 # Check whether --with-fill-column was given.
17153 if test "${with_fill_column+set}" = set; then :
17154 withval=$with_fill_column;
17155 if test "x$withval" != "xno" ; then
17156 dpv=$withval
17162 cat >>confdefs.h <<_ACEOF
17163 #define DF_FILLCOL "$dpv"
17164 _ACEOF
17168 dpv=80
17170 # Check whether --with-max_fill-column was given.
17171 if test "${with_max_fill_column+set}" = set; then :
17172 withval=$with_max_fill_column;
17173 if test "x$withval" != "xno" ; then
17174 dpv=$withval
17180 cat >>confdefs.h <<_ACEOF
17181 #define MAX_FILLCOL $dpv
17182 _ACEOF
17186 dpv=2
17188 # Check whether --with-debug-level was given.
17189 if test "${with_debug_level+set}" = set; then :
17190 withval=$with_debug_level;
17191 if test "x$withval" != "xno" ; then
17192 dpv=$withval
17198 cat >>confdefs.h <<_ACEOF
17199 #define DEFAULT_DEBUG $dpv
17200 _ACEOF
17204 dpv=4
17206 # Check whether --with-debug-files was given.
17207 if test "${with_debug_files+set}" = set; then :
17208 withval=$with_debug_files;
17209 if test "x$withval" != "xno" ; then
17210 dpv=$withval
17216 cat >>confdefs.h <<_ACEOF
17217 #define NUMDEBUGFILES $dpv
17218 _ACEOF
17222 dpv=.pine-debug
17224 # Check whether --with-debug-file was given.
17225 if test "${with_debug_file+set}" = set; then :
17226 withval=$with_debug_file;
17227 if test "x$withval" != "xno" ; then
17228 dpv=$withval
17234 cat >>confdefs.h <<_ACEOF
17235 #define DEBUGFILE "$dpv"
17236 _ACEOF
17240 dpv="\$Forwarded"
17242 # Check whether --with-forwarded-keyword was given.
17243 if test "${with_forwarded_keyword+set}" = set; then :
17244 withval=$with_forwarded_keyword;
17245 if test "x$withval" != "xno" ; then
17246 dpv=$withval
17252 cat >>confdefs.h <<_ACEOF
17253 #define FORWARDED_FLAG "$dpv"
17254 _ACEOF
17258 dpv=2
17260 # Check whether --with-display-overlap was given.
17261 if test "${with_display_overlap+set}" = set; then :
17262 withval=$with_display_overlap;
17263 if test "x$withval" != "xno" ; then
17264 dpv=$withval
17270 cat >>confdefs.h <<_ACEOF
17271 #define DF_OVERLAP "$dpv"
17272 _ACEOF
17276 dpv=0
17278 # Check whether --with-display-margin was given.
17279 if test "${with_display_margin+set}" = set; then :
17280 withval=$with_display_margin;
17281 if test "x$withval" != "xno" ; then
17282 dpv=$withval
17288 cat >>confdefs.h <<_ACEOF
17289 #define DF_MARGIN "$dpv"
17290 _ACEOF
17294 dpv=sent-mail
17296 # Check whether --with-default-fcc was given.
17297 if test "${with_default_fcc+set}" = set; then :
17298 withval=$with_default_fcc;
17299 if test "x$withval" != "xno" ; then
17300 dpv=$withval
17306 cat >>confdefs.h <<_ACEOF
17307 #define DF_DEFAULT_FCC "$dpv"
17308 _ACEOF
17312 dpv=saved-messages
17314 # Check whether --with-default-save-folder was given.
17315 if test "${with_default_save_folder+set}" = set; then :
17316 withval=$with_default_save_folder;
17317 if test "x$withval" != "xno" ; then
17318 dpv=$withval
17324 cat >>confdefs.h <<_ACEOF
17325 #define DEFAULT_SAVE "$dpv"
17326 _ACEOF
17330 dpv=postponed-mail
17332 # Check whether --with-default-legacy-postponed-folder was given.
17333 if test "${with_default_legacy_postponed_folder+set}" = set; then :
17334 withval=$with_default_legacy_postponed_folder;
17335 if test "x$withval" != "xno" ; then
17336 dpv=$withval
17342 cat >>confdefs.h <<_ACEOF
17343 #define POSTPONED_MAIL "$dpv"
17344 _ACEOF
17348 dpv=postponed-msgs
17350 # Check whether --with-default-postponed-folder was given.
17351 if test "${with_default_postponed_folder+set}" = set; then :
17352 withval=$with_default_postponed_folder;
17353 if test "x$withval" != "xno" ; then
17354 dpv=$withval
17360 cat >>confdefs.h <<_ACEOF
17361 #define POSTPONED_MSGS "$dpv"
17362 _ACEOF
17366 dpv=Trash
17368 # Check whether --with-default-trash-folder was given.
17369 if test "${with_default_trash_folder+set}" = set; then :
17370 withval=$with_default_trash_folder;
17371 if test "x$withval" != "xno" ; then
17372 dpv=$withval
17378 cat >>confdefs.h <<_ACEOF
17379 #define TRASH_FOLDER "$dpv"
17380 _ACEOF
17384 dpv=.pine-interrupted-mail
17386 # Check whether --with-default-interrupted-mail was given.
17387 if test "${with_default_interrupted_mail+set}" = set; then :
17388 withval=$with_default_interrupted_mail;
17389 if test "x$withval" != "xno" ; then
17390 dpv=$withval
17396 cat >>confdefs.h <<_ACEOF
17397 #define INTERRUPTED_MAIL "$dpv"
17398 _ACEOF
17402 dpv=dead.letter
17404 # Check whether --with-default-dead-letter-folder was given.
17405 if test "${with_default_dead_letter_folder+set}" = set; then :
17406 withval=$with_default_dead_letter_folder;
17407 if test "x$withval" != "xno" ; then
17408 dpv=$withval
17414 cat >>confdefs.h <<_ACEOF
17415 #define DEADLETTER "$dpv"
17416 _ACEOF
17420 dpv=mail
17422 # Check whether --with-default-mail-directory was given.
17423 if test "${with_default_mail_directory+set}" = set; then :
17424 withval=$with_default_mail_directory;
17425 if test "x$withval" != "xno" ; then
17426 dpv=$withval
17432 cat >>confdefs.h <<_ACEOF
17433 #define DF_MAIL_DIRECTORY "$dpv"
17434 _ACEOF
17438 dpv=INBOX
17440 # Check whether --with-default-inbox-name was given.
17441 if test "${with_default_inbox_name+set}" = set; then :
17442 withval=$with_default_inbox_name;
17443 if test "x$withval" != "xno" ; then
17444 dpv=$withval
17450 cat >>confdefs.h <<_ACEOF
17451 #define INBOX_NAME "$dpv"
17452 _ACEOF
17456 dpv=.signature
17458 # Check whether --with-default-signature-file was given.
17459 if test "${with_default_signature_file+set}" = set; then :
17460 withval=$with_default_signature_file;
17461 if test "x$withval" != "xno" ; then
17462 dpv=$withval
17468 cat >>confdefs.h <<_ACEOF
17469 #define DF_SIGNATURE_FILE "$dpv"
17470 _ACEOF
17474 dpv=no
17476 # Check whether --with-default-elm-style-save was given.
17477 if test "${with_default_elm_style_save+set}" = set; then :
17478 withval=$with_default_elm_style_save;
17479 if test "x$withval" != "xno" ; then
17480 dpv=$withval
17486 cat >>confdefs.h <<_ACEOF
17487 #define DF_ELM_STYLE_SAVE "$dpv"
17488 _ACEOF
17492 dpv=no
17494 # Check whether --with-default-header-in-reply was given.
17495 if test "${with_default_header_in_reply+set}" = set; then :
17496 withval=$with_default_header_in_reply;
17497 if test "x$withval" != "xno" ; then
17498 dpv=$withval
17504 cat >>confdefs.h <<_ACEOF
17505 #define DF_HEADER_IN_REPLY "$dpv"
17506 _ACEOF
17510 dpv=no
17512 # Check whether --with-default-old-style-reply was given.
17513 if test "${with_default_old_style_reply+set}" = set; then :
17514 withval=$with_default_old_style_reply;
17515 if test "x$withval" != "xno" ; then
17516 dpv=$withval
17522 cat >>confdefs.h <<_ACEOF
17523 #define DF_OLD_STYLE_REPLY "$dpv"
17524 _ACEOF
17528 dpv=no
17530 # Check whether --with-default-use-only-domain-name was given.
17531 if test "${with_default_use_only_domain_name+set}" = set; then :
17532 withval=$with_default_use_only_domain_name;
17533 if test "x$withval" != "xno" ; then
17534 dpv=$withval
17540 cat >>confdefs.h <<_ACEOF
17541 #define DF_USE_ONLY_DOMAIN_NAME "$dpv"
17542 _ACEOF
17546 dpv=no
17548 # Check whether --with-default-save-by-sender was given.
17549 if test "${with_default_save_by_sender+set}" = set; then :
17550 withval=$with_default_save_by_sender;
17551 if test "x$withval" != "xno" ; then
17552 dpv=$withval
17558 cat >>confdefs.h <<_ACEOF
17559 #define DF_SAVE_BY_SENDER "$dpv"
17560 _ACEOF
17564 dpv=arrival
17566 # Check whether --with-default-sort-key was given.
17567 if test "${with_default_sort_key+set}" = set; then :
17568 withval=$with_default_sort_key;
17569 if test "x$withval" != "xno" ; then
17570 dpv=$withval
17576 cat >>confdefs.h <<_ACEOF
17577 #define DF_SORT_KEY "$dpv"
17578 _ACEOF
17582 dpv=fullname-with-lists-last
17584 # Check whether --with-default-addressbook-sort-rule was given.
17585 if test "${with_default_addressbook_sort_rule+set}" = set; then :
17586 withval=$with_default_addressbook_sort_rule;
17587 if test "x$withval" != "xno" ; then
17588 dpv=$withval
17594 cat >>confdefs.h <<_ACEOF
17595 #define DF_AB_SORT_RULE "$dpv"
17596 _ACEOF
17600 dpv=alphabetical
17602 # Check whether --with-default-folder-sort-rule was given.
17603 if test "${with_default_folder_sort_rule+set}" = set; then :
17604 withval=$with_default_folder_sort_rule;
17605 if test "x$withval" != "xno" ; then
17606 dpv=$withval
17612 cat >>confdefs.h <<_ACEOF
17613 #define DF_FLD_SORT_RULE "$dpv"
17614 _ACEOF
17618 dpv=default-folder
17620 # Check whether --with-default-saved-message-name-rule was given.
17621 if test "${with_default_saved_message_name_rule+set}" = set; then :
17622 withval=$with_default_saved_message_name_rule;
17623 if test "x$withval" != "xno" ; then
17624 dpv=$withval
17630 cat >>confdefs.h <<_ACEOF
17631 #define DF_SAVED_MSG_NAME_RULE "$dpv"
17632 _ACEOF
17636 dpv=default-fcc
17638 # Check whether --with-default-fcc-rule was given.
17639 if test "${with_default_fcc_rule+set}" = set; then :
17640 withval=$with_default_fcc_rule;
17641 if test "x$withval" != "xno" ; then
17642 dpv=$withval
17648 cat >>confdefs.h <<_ACEOF
17649 #define DF_FCC_RULE "$dpv"
17650 _ACEOF
17654 dpv=lpr
17656 # Check whether --with-default-standard-printer was given.
17657 if test "${with_default_standard_printer+set}" = set; then :
17658 withval=$with_default_standard_printer;
17659 if test "x$withval" != "xno" ; then
17660 dpv=$withval
17666 cat >>confdefs.h <<_ACEOF
17667 #define DF_STANDARD_PRINTER "$dpv"
17668 _ACEOF
17672 dpv=attached-to-ansi
17674 # Check whether --with-default-ansi-printer was given.
17675 if test "${with_default_ansi_printer+set}" = set; then :
17676 withval=$with_default_ansi_printer;
17677 if test "x$withval" != "xno" ; then
17678 dpv=$withval
17684 cat >>confdefs.h <<_ACEOF
17685 #define ANSI_PRINTER "$dpv"
17686 _ACEOF
17690 dpv=.addressbook
17692 # Check whether --with-default-addressbook was given.
17693 if test "${with_default_addressbook+set}" = set; then :
17694 withval=$with_default_addressbook;
17695 if test "x$withval" != "xno" ; then
17696 dpv=$withval
17702 cat >>confdefs.h <<_ACEOF
17703 #define DF_ADDRESSBOOK "$dpv"
17704 _ACEOF
17708 dpv="Local Support"
17710 # Check whether --with-default-local-fullname was given.
17711 if test "${with_default_local_fullname+set}" = set; then :
17712 withval=$with_default_local_fullname;
17713 if test "x$withval" != "xno" ; then
17714 dpv=$withval
17720 cat >>confdefs.h <<_ACEOF
17721 #define DF_LOCAL_FULLNAME "$dpv"
17722 _ACEOF
17726 dpv=postmaster
17728 # Check whether --with-default-local-address was given.
17729 if test "${with_default_local_address+set}" = set; then :
17730 withval=$with_default_local_address;
17731 if test "x$withval" != "xno" ; then
17732 dpv=$withval
17738 cat >>confdefs.h <<_ACEOF
17739 #define DF_LOCAL_ADDRESS "$dpv"
17740 _ACEOF
17744 dpv=1
17746 # Check whether --with-default-keyboard-lock-count was given.
17747 if test "${with_default_keyboard_lock_count+set}" = set; then :
17748 withval=$with_default_keyboard_lock_count;
17749 if test "x$withval" != "xno" ; then
17750 dpv=$withval
17756 cat >>confdefs.h <<_ACEOF
17757 #define DF_KBLOCK_PASSWD_COUNT "$dpv"
17758 _ACEOF
17762 dpv=3
17764 # Check whether --with-default-remote-addressbook-history was given.
17765 if test "${with_default_remote_addressbook_history+set}" = set; then :
17766 withval=$with_default_remote_addressbook_history;
17767 if test "x$withval" != "xno" ; then
17768 dpv=$withval
17774 cat >>confdefs.h <<_ACEOF
17775 #define DF_REMOTE_ABOOK_HISTORY "$dpv"
17776 _ACEOF
17780 dpv=.alpine-html
17782 # Check whether --with-html-messages-directory was given.
17783 if test "${with_html_messages_directory+set}" = set; then :
17784 withval=$with_html_messages_directory;
17785 if test "x$withval" != "xno" ; then
17786 dpv=$withval
17792 cat >>confdefs.h <<_ACEOF
17793 #define DF_HTML_DIRECTORY "$dpv"
17794 _ACEOF
17798 dpv=.alpine-smime/public
17800 # Check whether --with-smime-public-cert-directory was given.
17801 if test "${with_smime_public_cert_directory+set}" = set; then :
17802 withval=$with_smime_public_cert_directory;
17803 if test "x$withval" != "xno" ; then
17804 dpv=$withval
17810 cat >>confdefs.h <<_ACEOF
17811 #define DF_PUBLICCERT_DIR "$dpv"
17812 _ACEOF
17816 dpv=.alpine-smime/private
17818 # Check whether --with-smime-private-key-directory was given.
17819 if test "${with_smime_private_key_directory+set}" = set; then :
17820 withval=$with_smime_private_key_directory;
17821 if test "x$withval" != "xno" ; then
17822 dpv=$withval
17828 cat >>confdefs.h <<_ACEOF
17829 #define DF_PRIVATEKEY_DIR "$dpv"
17830 _ACEOF
17834 dpv=.alpine-smime/ca
17836 # Check whether --with-smime-cacert-directory was given.
17837 if test "${with_smime_cacert_directory+set}" = set; then :
17838 withval=$with_smime_cacert_directory;
17839 if test "x$withval" != "xno" ; then
17840 dpv=$withval
17846 cat >>confdefs.h <<_ACEOF
17847 #define DF_CACERT_DIR "$dpv"
17848 _ACEOF
17852 dpv=ANSI_PRINTER
17854 # Check whether --with-default-printer was given.
17855 if test "${with_default_printer+set}" = set; then :
17856 withval=$with_default_printer;
17857 if test "x$withval" != "xno" ; then
17858 dpv=$withval
17864 cat >>confdefs.h <<_ACEOF
17865 #define DF_DEFAULT_PRINTER $dpv
17866 _ACEOF
17871 cat >>confdefs.h <<_ACEOF
17872 #define DF_PUBLIC_CONTAINER "PublicContainer"
17873 _ACEOF
17876 cat >>confdefs.h <<_ACEOF
17877 #define DF_PRIVATE_CONTAINER "PrivateContainer"
17878 _ACEOF
17881 cat >>confdefs.h <<_ACEOF
17882 #define DF_CA_CONTAINER "CAContainer"
17883 _ACEOF
17887 # Check whether --with-passfile was given.
17888 if test "${with_passfile+set}" = set; then :
17889 withval=$with_passfile;
17890 case "$withval" in
17893 yes)
17896 alpine_PASSFILE=$withval
17898 esac
17905 # Check whether --with-local-password-cache was given.
17906 if test "${with_local_password_cache+set}" = set; then :
17907 withval=$with_local_password_cache;
17908 alpine_os_credential_cache=$withval
17914 # Check whether --with-local-password-cache-method was given.
17915 if test "${with_local_password_cache_method+set}" = set; then :
17916 withval=$with_local_password_cache_method;
17917 alpine_os_credential_cache_method=$withval
17922 if test -n "$alpine_PASSFILE" ; then
17923 case $alpine_os_credential_cache in
17927 alpine_os_credential_cache="no"
17928 { $as_echo "$as_me:${as_lineno-$LINENO}: --with-passfile definition overrides OS-Specific password caching" >&5
17929 $as_echo "$as_me: --with-passfile definition overrides OS-Specific password caching" >&6;}
17931 esac
17933 cat >>confdefs.h <<_ACEOF
17934 #define PASSFILE "$alpine_PASSFILE"
17935 _ACEOF
17940 # Check whether --with-default-sshpath was given.
17941 if test "${with_default_sshpath+set}" = set; then :
17942 withval=$with_default_sshpath;
17943 case "$withval" in
17946 yes)
17950 cat >>confdefs.h <<_ACEOF
17951 #define DF_SSHPATH "$withval"
17952 _ACEOF
17955 esac
17961 # Check whether --with-default-sshcmd was given.
17962 if test "${with_default_sshcmd+set}" = set; then :
17963 withval=$with_default_sshcmd;
17964 case "$withval" in
17967 yes)
17971 cat >>confdefs.h <<_ACEOF
17972 #define DF_SSHCMD "$withval"
17973 _ACEOF
17976 esac
17982 # Check whether --with-ssl was given.
17983 if test "${with_ssl+set}" = set; then :
17984 withval=$with_ssl; with_ssl=$withval
17988 if test "x$with_ssl" = "xno" ; then
17989 alpine_SSLTYPE="none"
17990 elif test -d /usr/local/ssl ; then
17991 alpine_SSLDIR="/usr/local/ssl"
17992 alpine_SSLINCLUDE="$alpine_SSLDIR/include"
17993 alpine_SSLLIB="$alpine_SSLDIR/lib"
17994 else
17995 case $host in
17996 *-linux*|*-k*bsd*-gnu*|*-gnu*)
17997 if test -f /etc/fedora-release -o -f /etc/redhat-release -o -f /etc/redhat_version ; then
17998 alpine_SSLTYPE="nopwd"
17999 if test -d /etc/pki/tls ; then
18000 alpine_SSLDIR="/etc/pki/tls"
18001 else
18002 alpine_SSLDIR="/usr/share/ssl"
18004 alpine_SSLCERTS="$alpine_SSLDIR/certs"
18005 alpine_SSLKEYS="$alpine_SSLDIR/private"
18006 alpine_SSLINCLUDE="/usr/include/openssl"
18007 alpine_SSLLIB="/usr/lib"
18008 elif test -f /etc/mandrake-release ; then
18009 alpine_SSLDIR="/usr/lib/ssl"
18010 alpine_SSLCERTS="$alpine_SSLDIR/certs"
18011 alpine_SSLKEYS="$alpine_SSLDIR/private"
18012 alpine_SSLINCLUDE="/usr/include/openssl"
18013 alpine_SSLLIB="/usr/lib"
18014 elif test -f /etc/SuSE-release ; then
18015 alpine_SSLTYPE="nopwd"
18016 alpine_SSLDIR="/etc/ssl"
18017 alpine_SSLCERTS="$alpine_SSLDIR/certs"
18018 alpine_SSLKEYS="$alpine_SSLDIR/private"
18019 alpine_SSLINCLUDE="/usr/include/openssl"
18020 alpine_SSLLIB="/usr/lib"
18021 elif test -d /etc/osso-af-init ; then
18022 alpine_SSLTYPE="nopwd"
18023 alpine_SSLDIR="/usr"
18024 alpine_SSLCERTS="/usr/share/certs"
18025 alpine_SSLINCLUDE="/usr/include/openssl"
18026 alpine_SSLLIB="/usr/lib"
18027 elif test -f /etc/debian_release -o -f /etc/debian_version ; then
18028 if test ! -d /etc/osso-af-init ; then
18029 alpine_SSLDIR="/etc/ssl"
18030 alpine_SSLCERTS="$alpine_SSLDIR/certs"
18031 alpine_SSLKEYS="$alpine_SSLDIR/private"
18032 alpine_SSLINCLUDE="/usr/include/openssl"
18033 alpine_SSLLIB="/usr/lib"
18035 elif test -f /etc/manjaro-release ; then
18036 alpine_SSLDIR="/etc/ssl"
18037 alpine_SSLCERTS="$alpine_SSLDIR/certs"
18038 alpine_SSLKEYS="$alpine_SSLDIR/private"
18039 alpine_SSLINCLUDE="/usr/include/openssl"
18040 alpine_SSLLIB="/usr/lib"
18041 else
18042 alpine_SSLTYPE="nopwd"
18043 alpine_SSLDIR="/usr"
18044 alpine_SSLCERTS="/etc/ssl/certs"
18047 *-apple-darwin*)
18048 alpine_SSLTYPE="nopwd"
18049 alpine_SSLCERTS_ORIG="/System/Library/OpenSSL/certs"
18050 if test -d /usr/local/opt/openssl ; then
18051 alpine_SSLDIR="/usr/local/opt/openssl"
18052 alpine_SSLINCLUDE="$alpine_SSLDIR/include"
18053 alpine_SSLLIB="$alpine_SSLDIR/lib"
18054 alpine_SSLCERTS="/usr/local/etc/openssl"
18055 alpine_SSLKEYS="$alpine_SSLDIR/private"
18056 elif test -d /opt/local/etc/openssl ; then
18057 alpine_SSLDIR="/opt/local"
18058 alpine_SSLINCLUDE="$alpine_SSLDIR/include"
18059 alpine_SSLLIB="$alpine_SSLDIR/lib"
18060 alpine_SSLCERTS="/opt/local/etc/openssl/certs"
18061 alpine_SSLKEYS="/opt/local/etc/openssl/private"
18062 elif test -d /sw/etc/ssl ; then
18063 alpine_SSLDIR="/sw/etc/ssl"
18064 alpine_SSLINCLUDE="/sw/include"
18065 alpine_SSLLIB="/sw/lib"
18066 alpine_SSLCERTS="/sw/etc/ssl/certs"
18067 alpine_SSLKEYS="/sw/etc/ssl/private"
18068 elif test -d /usr/local/ssl ; then
18069 alpine_SSLDIR="/usr/local/ssl"
18070 elif test -d /System/Library/OpenSSL ; then
18071 alpine_SSLDIR="/System/Library/OpenSSL"
18072 alpine_SSLCERTS="$alpine_SSLDIR/certs"
18073 alpine_SSLKEYS="$alpine_SSLDIR/private"
18074 alpine_SSLLIB="/usr/lib"
18075 alpine_SSLINCLUDE="/usr/include/openssl"
18078 *-*-netbsd*)
18079 alpine_SSLDIR="/etc/openssl"
18080 alpine_SSLCERTS="$alpine_SSLDIR/certs"
18081 alpine_SSLKEYS="$alpine_SSLDIR/private"
18082 alpine_SSLINCLUDE="/usr/include/openssl"
18083 alpine_SSLLIB="/usr/lib"
18085 *-*-dragonfly*)
18086 alpine_SSLDIR="/etc/openssl"
18087 alpine_SSLCERTS="$alpine_SSLDIR/certs"
18088 alpine_SSLKEYS="$alpine_SSLDIR/private"
18089 alpine_SSLINCLUDE="/usr/include/openssl"
18090 alpine_SSLLIB="/usr/lib"
18092 *-openbsd*)
18093 alpine_SSLTYPE="nopwd"
18094 alpine_SSLDIR="/usr"
18095 alpine_SSLCERTS="/etc/ssl/certs"
18097 *-*-freebsd*)
18098 alpine_SSLDIR="/etc/ssl"
18099 alpine_SSLCERTS="$alpine_SSLDIR/certs"
18100 alpine_SSLKEYS="$alpine_SSLDIR/private"
18101 if test -d /usr/local/include/openssl ; then
18102 alpine_SSLINCLUDE="/usr/local/include/openssl"
18103 alpine_SSLLIB="/usr/local/lib"
18104 else
18105 alpine_SSLINCLUDE="/usr/include/openssl"
18106 alpine_SSLLIB="/usr/lib"
18109 *-*-openbsd*)
18110 alpine_SSLDIR="/etc/ssl"
18111 alpine_SSLINCLUDE="/usr/include/openssl"
18112 alpine_SSLLIB="/usr/lib"
18113 alpine_SSLCERTS="/etc/ssl"
18114 alpine_SSLKEYS="/etc/ssl/private"
18116 *-*-cygwin)
18117 alpine_SSLDIR="/usr/ssl"
18118 alpine_SSLCERTS="$alpine_SSLDIR/certs"
18119 alpine_SSLKEYS="$alpine_SSLDIR/certs"
18120 alpine_SSLINCLUDE="/usr/include/openssl"
18121 alpine_SSLLIB="/usr/lib"
18123 *-sco-sysv* | *-sysv*UnixWare | *-sysv*OpenUNIX)
18124 alpine_SSLTYPE="sco.nopwd"
18125 alpine_SSLDIR="/usr/local/ssl"
18127 *-*-solaris*)
18128 if test -d /usr/include/openssl ; then
18129 alpine_SSLINCLUDE="/usr/include/openssl"
18130 elif test -d /usr/sfw/include/openssl ; then
18131 alpine_SSLDIR="/usr/sfw"
18132 elif test -d /opt/csw/include/openssl ; then
18133 alpine_SSLDIR="/opt/csw"
18134 if test -d /opt/csw/ssl/certs ; then
18135 alpine_SSLCERTS="/opt/csw/ssl/certs"
18138 if test -z "$alpine_SSLCERTS" -a -d /etc/certs ; then
18139 alpine_SSLCERTS="/etc/certs"
18143 alpine_SSLTYPE="nopwd"
18144 alpine_SSLDIR="/usr/local/ssl"
18146 esac
18149 if test "x$alpine_SSLTYPE" != "xnone" ; then
18151 # Check whether --with-ssl-dir was given.
18152 if test "${with_ssl_dir+set}" = set; then :
18153 withval=$with_ssl_dir;
18154 if test "x$withval" != "xno" ; then
18155 alpine_SSLDIR=$withval
18156 alpine_SSLINCLUDE=$alpine_SSLDIR/include
18157 alpine_SSLLIB=$alpine_SSLDIR/lib
18164 # Check whether --with-ssl-certs-dir was given.
18165 if test "${with_ssl_certs_dir+set}" = set; then :
18166 withval=$with_ssl_certs_dir;
18167 if test "x$withval" != "xno" ; then
18168 alpine_SSLCERTS=$withval
18175 # Check whether --with-ssl-include-dir was given.
18176 if test "${with_ssl_include_dir+set}" = set; then :
18177 withval=$with_ssl_include_dir;
18178 if test "x$withval" != "xno" ; then
18179 alpine_SSLINCLUDE=$withval
18186 # Check whether --with-ssl-lib-dir was given.
18187 if test "${with_ssl_lib_dir+set}" = set; then :
18188 withval=$with_ssl_lib_dir;
18189 if test "x$withval" != "xno" ; then
18190 alpine_SSLLIB=$withval
18196 if test -n "$alpine_SSLINCLUDE" ; then
18197 CPPFLAGS="-I$alpine_SSLINCLUDE $CPPFLAGS"
18198 elif test -n "$alpine_SSLDIR" ; then
18199 CPPFLAGS="-I${alpine_SSLDIR}/include $CPPFLAGS"
18201 if test -n "$alpine_SSLLIB" ; then
18202 LDFLAGS="-L$alpine_SSLLIB $LDFLAGS"
18203 elif test -n "$alpine_SSLDIR" ; then
18204 LDFLAGS="-L${alpine_SSLDIR}/lib $LDFLAGS"
18208 if test "x$alpine_SSLTYPE" != "xnone" ; then
18209 alpine_default_SSLMIN="no_min"
18210 alpine_default_SSLMAX="no_max"
18211 alpine_default_RANGE="${alpine_default_SSLMIN},${alpine_default_SSLMAX}"
18212 alpine_ENCRYPTION="$alpine_default_SSLMIN ssl3 tls1 tls1_1 tls1_2 tls1_3 $alpine_default_SSLMAX"
18213 alpine_SSLMIN="$alpine_default_SSLMIN"
18214 alpine_SSLMAX="$alpine_default_SSLMAX"
18215 alpine_RANGE="$alpine_default_RANGE"
18217 # Check whether --with-encryption-minimum-version was given.
18218 if test "${with_encryption_minimum_version+set}" = set; then :
18219 withval=$with_encryption_minimum_version;
18220 if test "x$withval" != "xno" ; then
18221 alpine_SSLMIN=$withval
18227 # Check whether --with-encryption-maximum-version was given.
18228 if test "${with_encryption_maximum_version+set}" = set; then :
18229 withval=$with_encryption_maximum_version;
18230 if test "x$withval" != "xno" ; then
18231 alpine_SSLMAX=$withval
18236 alpine_RANGE="$alpine_SSLMIN $alpine_SSLMAX"
18237 for range in ${alpine_RANGE} ; do
18238 for encryption in ${alpine_ENCRYPTION} ; do
18239 if test "x$range" = "x$encryption" ; then
18240 if test -z $alpine_min ; then
18241 alpine_min="yes"
18242 else
18243 alpine_max="yes"
18246 done
18247 done
18249 if test -z $alpine_max ; then
18250 as_fn_error $? "Unrecognized maximum encryption version: $alpine_max" "$LINENO" 5
18253 if test -z $alpine_min ; then
18254 as_fn_error $? "Unrecognized minimum encryption version: $alpine_min" "$LINENO" 5
18257 if test "x$alpine_SSLMIN" != "x$alpine_SSLMAX" ; then
18258 alpine_RANGE_FEASIBLE=`echo "$alpine_ENCRYPTION" | sed "s/^.*$alpine_SSLMIN//" | grep "$alpine_SSLMAX"`
18259 if test -n "$alpine_RANGE_FEASIBLE" ; then
18260 alpine_RANGE="${alpine_SSLMIN},${alpine_SSLMAX}"
18261 else
18262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Reversing order of minimum and maximum encryption" >&5
18263 $as_echo "$as_me: WARNING: Reversing order of minimum and maximum encryption" >&2;}
18264 alpine_RANGE="${alpine_SSLMAX},${alpine_SSLMIN}"
18266 else
18267 if test "x$alpine_SSLMIN" = "x$alpine_default_SSLMIN" ; then
18268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Overriding maximum encryption to default" >&5
18269 $as_echo "$as_me: WARNING: Overriding maximum encryption to default" >&2;}
18270 alpine_SSLMAX="$alpine_default_SSLMAX"
18272 if test "x$alpine_SSLMAX" = "x$alpine_default_SSLMAX" ; then
18273 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Overriding minimum encryption to default" >&5
18274 $as_echo "$as_me: WARNING: Overriding minimum encryption to default" >&2;}
18275 alpine_SSLMIN="$alpine_default_SSLMIN"
18277 alpine_RANGE="${alpine_SSLMIN},${alpine_SSLMAX}"
18280 dpv=$alpine_RANGE
18282 # Check whether --with-encryption-range was given.
18283 if test "${with_encryption_range+set}" = set; then :
18284 withval=$with_encryption_range;
18285 if test "x$withval" != "xno" ; then
18286 dpv=$withval
18292 cat >>confdefs.h <<_ACEOF
18293 #define DF_ENCRYPTION_RANGE "$dpv"
18294 _ACEOF
18300 # Check whether --with-krb5 was given.
18301 if test "${with_krb5+set}" = set; then :
18302 withval=$with_krb5; with_krb5=$withval
18306 if test "x$with_krb5" = "xno" ; then
18307 alpine_GSSTYPE="none"
18308 else
18309 alpine_GSSTYPE=
18312 # Check whether --with-krb5-dir was given.
18313 if test "${with_krb5_dir+set}" = set; then :
18314 withval=$with_krb5_dir;
18315 if test "x$withval" != "xno" ; then
18316 CPPFLAGS="$CPPFLAGS -I${withval}/include"
18317 LDFLAGS="$LDFLAGS -L${withval}/lib"
18324 # Check whether --with-krb5-include-dir was given.
18325 if test "${with_krb5_include_dir+set}" = set; then :
18326 withval=$with_krb5_include_dir;
18327 if test "x$withval" != "xno" ; then
18328 CPPFLAGS="$CPPFLAGS -I$withval"
18335 # Check whether --with-krb5-lib-dir was given.
18336 if test "${with_krb5_lib_dir+set}" = set; then :
18337 withval=$with_krb5_lib_dir;
18338 if test "x$withval" != "xno" ; then
18339 LDFLAGS="$LDFLAGS -L$withval"
18347 # Check whether --with-ldap was given.
18348 if test "${with_ldap+set}" = set; then :
18349 withval=$with_ldap; with_ldap=$withval
18353 if test "x$with_ldap" = "xno" ; then
18354 alpine_with_ldap=
18355 { $as_echo "$as_me:${as_lineno-$LINENO}: Excluding LDAP Support" >&5
18356 $as_echo "$as_me: Excluding LDAP Support" >&6;}
18357 else
18359 case $host in
18360 *-*-freebsd*)
18361 alpine_LDAPDIR="/usr/local"
18362 alpine_LDAPINCLUDE="${alpine_LDAPDIR}/include"
18363 alpine_LDAPLIB="${alpine_LDAPDIR}/lib"
18365 esac;
18367 alpine_with_ldap=yes
18370 # Check whether --with-ldap-dir was given.
18371 if test "${with_ldap_dir+set}" = set; then :
18372 withval=$with_ldap_dir;
18373 if test "x$withval" != "xno" ; then
18374 alpine_LDAPDIR="${withval}"
18375 alpine_LDAPINCLUDE="${alpine_LDAPDIR}/include"
18376 alpine_LDAPLIB="${alpine_LDAPDIR}/lib"
18383 # Check whether --with-ldap-include-dir was given.
18384 if test "${with_ldap_include_dir+set}" = set; then :
18385 withval=$with_ldap_include_dir;
18386 if test "x$withval" != "xno" ; then
18387 alpine_LDAPINCLUDE="$withval"
18394 # Check whether --with-ldap-lib-dir was given.
18395 if test "${with_ldap_lib_dir+set}" = set; then :
18396 withval=$with_ldap_lib_dir;
18397 if test "x$withval" != "xno" ; then
18398 alpine_LDAPLIB="${withval}"
18404 if test -n "$alpine_LDAPINCLUDE" ; then
18405 CPPFLAGS="$CPPFLAGS -I${alpine_LDAPINCLUDE}/include"
18407 if test -n "$alpine_LDAPLIB" ; then
18408 LDFLAGS="$LDFLAGS -L${alpine_LDAPLIB}/lib"
18413 # Check whether --with-smime was given.
18414 if test "${with_smime+set}" = set; then :
18415 withval=$with_smime; with_smime=$withval
18420 # Check whether --with-tcl was given.
18421 if test "${with_tcl+set}" = set; then :
18422 withval=$with_tcl; with_tcl=$withval
18426 if test "x$with_tcl" = "xno" ; then
18427 WEB_BUILD=
18428 { $as_echo "$as_me:${as_lineno-$LINENO}: Excluding TCL Support, and thus Web Alpine Support" >&5
18429 $as_echo "$as_me: Excluding TCL Support, and thus Web Alpine Support" >&6;}
18430 else
18432 # Check whether --with-tcl-lib-dir was given.
18433 if test "${with_tcl_lib_dir+set}" = set; then :
18434 withval=$with_tcl_lib_dir;
18435 if test "x$withval" != "xno" ; then
18436 alpine_TCLLIBDIR=$withval
18437 if test -n "$alpine_TCLLIBDIR" ; then
18438 LDFLAGS="-L$alpine_TCLLIBDIR $LDFLAGS"
18445 # Check whether --with-tcl-lib was given.
18446 if test "${with_tcl_lib+set}" = set; then :
18447 withval=$with_tcl_lib;
18448 if test "x$withval" != "xno" ; then
18449 alpine_TCLLIB=$withval
18455 # Check whether --with-tcl-include was given.
18456 if test "${with_tcl_include+set}" = set; then :
18457 withval=$with_tcl_include;
18458 if test "x$withval" != "xno" ; then
18459 CPPFLAGS="$CPPFLAGS -I$withval"
18460 alpine_TCLINC=$withval
18468 # Check whether --with-supplied-regex was given.
18469 if test "${with_supplied_regex+set}" = set; then :
18470 withval=$with_supplied_regex; alpine_REGEX=$withval
18475 # Check whether --with-pthread was given.
18476 if test "${with_pthread+set}" = set; then :
18477 withval=$with_pthread; with_pthread=$withval
18482 # Check whether --with-system-mail-directory was given.
18483 if test "${with_system_mail_directory+set}" = set; then :
18484 withval=$with_system_mail_directory;
18485 if test "x$withval" != "xno" ; then
18486 alpine_with_local_maildir="$withval"
18493 # Check whether --with-c-client-target was given.
18494 if test "${with_c_client_target+set}" = set; then :
18495 withval=$with_c_client_target;
18496 if test "x$withval" != "xno" ;then
18497 alpine_with_c_client_target="$withval"
18504 alpine_c_client_bundled="no"
18506 # Check whether --with-bundled-tools was given.
18507 if test "${with_bundled_tools+set}" = set; then :
18508 withval=$with_bundled_tools;
18509 if test "x$withval" = "xyes" ; then
18510 alpine_c_client_bundled=""
18516 alpine_PAM="none"
18518 case "$host" in
18519 *-linux*|*-k*bsd*-gnu*|*-gnu*)
18520 alpine_path_delim="/"
18521 alpine_mode_readonly="(0600)"
18522 if test -f /etc/fedora-release ; then
18523 systype="LFD"
18524 alpine_PAM="yes"
18525 if test -d /etc/pki/tls ; then
18526 alpine_c_client_target="lfd"
18527 else
18528 alpine_c_client_target="lrh"
18530 elif test -f /etc/mandrake-release ; then
18531 systype="LMD"
18532 alpine_c_client_target="lmd"
18533 alpine_PAM="yes"
18534 elif test -f /etc/redhat-release -o -f /etc/redhat_version ; then
18535 systype="LRH"
18536 alpine_PAM="yes"
18537 if test -d /etc/pki/tls ; then
18538 alpine_c_client_target="lr5"
18539 else
18540 alpine_c_client_target="lrh"
18542 elif test -f /etc/debian_release -o -f /etc/debian_version ; then
18543 if test -d /etc/osso-af-init ; then
18544 systype="LN8"
18545 alpine_c_client_target="ln8"
18546 else
18547 systype="DEB"
18548 alpine_c_client_target="ldb"
18549 alpine_PAM="yes"
18551 elif test -f /etc/SuSE-release; then
18552 systype="LSU"
18553 alpine_c_client_target="lsu"
18554 alpine_PAM="yes"
18555 else
18556 systype="LNX"
18557 if test -z "$alpine_c_client_bundled" ; then
18558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for am_start in -lpam" >&5
18559 $as_echo_n "checking for am_start in -lpam... " >&6; }
18560 if ${ac_cv_lib_pam_am_start+:} false; then :
18561 $as_echo_n "(cached) " >&6
18562 else
18563 ac_check_lib_save_LIBS=$LIBS
18564 LIBS="-lpam $LIBS"
18565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18566 /* end confdefs.h. */
18568 /* Override any GCC internal prototype to avoid an error.
18569 Use char because int might match the return type of a GCC
18570 builtin and then its argument prototype would still apply. */
18571 #ifdef __cplusplus
18572 extern "C"
18573 #endif
18574 char am_start ();
18576 main ()
18578 return am_start ();
18580 return 0;
18582 _ACEOF
18583 if ac_fn_c_try_link "$LINENO"; then :
18584 ac_cv_lib_pam_am_start=yes
18585 else
18586 ac_cv_lib_pam_am_start=no
18588 rm -f core conftest.err conftest.$ac_objext \
18589 conftest$ac_exeext conftest.$ac_ext
18590 LIBS=$ac_check_lib_save_LIBS
18592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_am_start" >&5
18593 $as_echo "$ac_cv_lib_pam_am_start" >&6; }
18594 if test "x$ac_cv_lib_pam_am_start" = xyes; then :
18596 alpine_c_client_target="lnp"
18597 alpine_PAM="yes"
18599 else
18601 if test -f /etc/shadow ; then
18602 alpine_c_client_target="slx"
18603 else
18604 alpine_c_client_target="lnx"
18609 else
18610 if test -f /etc/shadow ; then
18611 alpine_c_client_target="slx"
18612 else
18613 alpine_c_client_target="lnx"
18618 *-apple-darwin*)
18619 systype="OSX"
18620 alpine_path_delim="/"
18621 alpine_mode_readonly="(0600)"
18622 LIBS="$LIBS -framework Carbon -framework ApplicationServices -framework Security"
18623 AM_CFLAGS="$AM_CFLAGS -Dbsd"
18625 $as_echo "#define OSX_TARGET 1" >>confdefs.h
18627 case "$alpine_os_credential_cache" in
18632 $as_echo "#define APPLEKEYCHAIN 1" >>confdefs.h
18635 esac
18636 if test -z "$alpine_c_client_bundled" ; then
18637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
18638 $as_echo_n "checking for pam_start in -lpam... " >&6; }
18639 if ${ac_cv_lib_pam_pam_start+:} false; then :
18640 $as_echo_n "(cached) " >&6
18641 else
18642 ac_check_lib_save_LIBS=$LIBS
18643 LIBS="-lpam $LIBS"
18644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18645 /* end confdefs.h. */
18647 /* Override any GCC internal prototype to avoid an error.
18648 Use char because int might match the return type of a GCC
18649 builtin and then its argument prototype would still apply. */
18650 #ifdef __cplusplus
18651 extern "C"
18652 #endif
18653 char pam_start ();
18655 main ()
18657 return pam_start ();
18659 return 0;
18661 _ACEOF
18662 if ac_fn_c_try_link "$LINENO"; then :
18663 ac_cv_lib_pam_pam_start=yes
18664 else
18665 ac_cv_lib_pam_pam_start=no
18667 rm -f core conftest.err conftest.$ac_objext \
18668 conftest$ac_exeext conftest.$ac_ext
18669 LIBS=$ac_check_lib_save_LIBS
18671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
18672 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
18673 if test "x$ac_cv_lib_pam_pam_start" = xyes; then :
18675 ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
18676 if test "x$ac_cv_header_security_pam_appl_h" = xyes; then :
18678 alpine_PAM="yes"
18679 alpine_c_client_target="oxs"
18681 else
18682 ac_fn_c_check_header_mongrel "$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default"
18683 if test "x$ac_cv_header_pam_pam_appl_h" = xyes; then :
18685 alpine_PAM="yes"
18686 alpine_c_client_target="oxp"
18688 else
18690 alpine_PAM="none"
18691 alpine_pam_none_reason="header files not found"
18701 else
18703 alpine_c_client_target="osx"
18707 else
18708 alpine_c_client_target="osx"
18711 *-*-solaris*)
18712 if test x$GCC = "xyes" ; then
18713 systype="GSO"
18714 alpine_c_client_target="gso"
18715 CFLAGS="$CFLAGS -D__USE_LEGACY_PROTOTYPES__"
18716 else
18717 systype="SOC"
18718 alpine_c_client_target="soc"
18720 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
18723 alpine_path_delim="/"
18724 alpine_mode_readonly="(0600)"
18726 *-*-sunos4*)
18727 systype="SUN"
18728 alpine_path_delim="/"
18729 alpine_mode_readonly="(0600)"
18730 alpine_c_client_target="s40"
18732 *-*-sco3.2v5*)
18733 if test x$GCC = "xyes" ; then
18734 systype="GO5"
18735 alpine_c_client_target="go5"
18736 else
18737 systype="SC5"
18738 alpine_c_client_target="sc5"
18740 alpine_path_delim="/"
18741 alpine_mode_readonly="(0600)"
18743 *-next-*)
18744 systype="NXT"
18745 alpine_path_delim="/"
18746 alpine_mode_readonly="(0600)"
18747 alpine_c_client_target="nx3"
18749 *-*-netbsd*)
18750 systype="NEB"
18751 alpine_path_delim="/"
18752 alpine_mode_readonly="(0600)"
18753 alpine_c_client_target="neb"
18755 *-*-dragonfly*)
18756 systype="DFB"
18757 alpine_path_delim="/"
18758 alpine_mode_readonly="(0600)"
18759 alpine_c_client_target="neb"
18761 *-*-bsdi*)
18762 systype="BSI"
18763 alpine_path_delim="/"
18764 alpine_mode_readonly="(0600)"
18765 alpine_c_client_target="bsi"
18767 *-*-freebsd*)
18768 systype="BSF"
18769 alpine_path_delim="/"
18770 alpine_mode_readonly="(0600)"
18771 alpine_c_client_target="bsf"
18772 LIBS="$LIBS $LIBINTL"
18774 *-*-openbsd*)
18775 systype="BSO"
18776 alpine_path_delim="/"
18777 alpine_mode_readonly="(0600)"
18778 alpine_c_client_target="bso"
18779 LIBS="$LIBS $LIBINTL"
18781 *-*-aix5*)
18782 systype="A52"
18783 alpine_path_delim="/"
18784 alpine_mode_readonly="(0600)"
18785 alpine_c_client_target="a52"
18787 *-*-aix4*)
18788 systype="A41"
18789 alpine_path_delim="/"
18790 alpine_mode_readonly="(0600)"
18791 alpine_c_client_target="a41"
18793 *-*-aix3*)
18794 systype="A32"
18795 alpine_path_delim="/"
18796 alpine_mode_readonly="(0600)"
18797 alpine_c_client_target="a32"
18799 *-*UNIX_SV | *-*-sysv5UnixWare7* | *-*OpenUNIX*)
18800 systype="UW2"
18801 alpine_path_delim="/"
18802 alpine_mode_readonly="(0600)"
18803 alpine_c_client_target="uw2"
18805 *-*-osf5*)
18806 systype="OSF"
18807 alpine_path_delim="/"
18808 alpine_mode_readonly="(0600)"
18809 alpine_c_client_target="osf"
18811 *-*-cygwin)
18812 systype="CYG"
18813 alpine_path_delim="/"
18814 alpine_mode_readonly="(S_IREAD | S_IWRITE)"
18815 alpine_c_client_target="cyg"
18816 LIBS="$LIBS $LIBINTL"
18818 windows* | *-*-pw32*)
18819 systype="WNT"
18820 alpine_path_delim="\\"
18821 alpine_mode_readonly="(S_IREAD | S_IWRITE)"
18822 alpine_c_client_target="wnt"
18824 $as_echo "#define _WINDOWS 1" >>confdefs.h
18828 as_fn_error $? "Unrecognized system: $host" "$LINENO" 5
18830 esac
18833 # Check whether --with-ipv6 was given.
18834 if test "${with_ipv6+set}" = set; then :
18835 withval=$with_ipv6; with_ipv6=$withval
18839 if test "x$with_ipv6" = "xno" ; then
18840 { $as_echo "$as_me:${as_lineno-$LINENO}: Excluding IPv6 Support" >&5
18841 $as_echo "$as_me: Excluding IPv6 Support" >&6;}
18842 c_client_specials="${c_client_specials}IP6=4 "
18843 c_client_ip6="true"
18844 else
18845 c_client_ip6="touch imap/ip6"
18850 if test x$enable_dmalloc = "xyes" ; then
18851 if test "x$with_pthread" = "xyes" ; then
18852 dmalloc_lib=dmallocth
18853 else
18854 dmalloc_lib=dmalloc
18857 as_ac_Lib=`$as_echo "ac_cv_lib_$dmalloc_lib''_dmalloc_shutdown" | $as_tr_sh`
18858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dmalloc_shutdown in -l$dmalloc_lib" >&5
18859 $as_echo_n "checking for dmalloc_shutdown in -l$dmalloc_lib... " >&6; }
18860 if eval \${$as_ac_Lib+:} false; then :
18861 $as_echo_n "(cached) " >&6
18862 else
18863 ac_check_lib_save_LIBS=$LIBS
18864 LIBS="-l$dmalloc_lib $LIBS"
18865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18866 /* end confdefs.h. */
18868 /* Override any GCC internal prototype to avoid an error.
18869 Use char because int might match the return type of a GCC
18870 builtin and then its argument prototype would still apply. */
18871 #ifdef __cplusplus
18872 extern "C"
18873 #endif
18874 char dmalloc_shutdown ();
18876 main ()
18878 return dmalloc_shutdown ();
18880 return 0;
18882 _ACEOF
18883 if ac_fn_c_try_link "$LINENO"; then :
18884 eval "$as_ac_Lib=yes"
18885 else
18886 eval "$as_ac_Lib=no"
18888 rm -f core conftest.err conftest.$ac_objext \
18889 conftest$ac_exeext conftest.$ac_ext
18890 LIBS=$ac_check_lib_save_LIBS
18892 eval ac_res=\$$as_ac_Lib
18893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18894 $as_echo "$ac_res" >&6; }
18895 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
18896 cat >>confdefs.h <<_ACEOF
18897 #define `$as_echo "HAVE_LIB$dmalloc_lib" | $as_tr_cpp` 1
18898 _ACEOF
18900 LIBS="-l$dmalloc_lib $LIBS"
18902 else
18904 as_fn_error but -ldmalloc not found "$dmalloc_lib requested" "$LINENO" 5
18910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setupterm in -ltinfo" >&5
18911 $as_echo_n "checking for setupterm in -ltinfo... " >&6; }
18912 if ${ac_cv_lib_tinfo_setupterm+:} false; then :
18913 $as_echo_n "(cached) " >&6
18914 else
18915 ac_check_lib_save_LIBS=$LIBS
18916 LIBS="-ltinfo $LIBS"
18917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18918 /* end confdefs.h. */
18920 /* Override any GCC internal prototype to avoid an error.
18921 Use char because int might match the return type of a GCC
18922 builtin and then its argument prototype would still apply. */
18923 #ifdef __cplusplus
18924 extern "C"
18925 #endif
18926 char setupterm ();
18928 main ()
18930 return setupterm ();
18932 return 0;
18934 _ACEOF
18935 if ac_fn_c_try_link "$LINENO"; then :
18936 ac_cv_lib_tinfo_setupterm=yes
18937 else
18938 ac_cv_lib_tinfo_setupterm=no
18940 rm -f core conftest.err conftest.$ac_objext \
18941 conftest$ac_exeext conftest.$ac_ext
18942 LIBS=$ac_check_lib_save_LIBS
18944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_setupterm" >&5
18945 $as_echo "$ac_cv_lib_tinfo_setupterm" >&6; }
18946 if test "x$ac_cv_lib_tinfo_setupterm" = xyes; then :
18948 alpine_termdata=info
18949 LIBS="$LIBS -ltinfo"
18951 else
18953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setupterm in -lncurses" >&5
18954 $as_echo_n "checking for setupterm in -lncurses... " >&6; }
18955 if ${ac_cv_lib_ncurses_setupterm+:} false; then :
18956 $as_echo_n "(cached) " >&6
18957 else
18958 ac_check_lib_save_LIBS=$LIBS
18959 LIBS="-lncurses $LIBS"
18960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18961 /* end confdefs.h. */
18963 /* Override any GCC internal prototype to avoid an error.
18964 Use char because int might match the return type of a GCC
18965 builtin and then its argument prototype would still apply. */
18966 #ifdef __cplusplus
18967 extern "C"
18968 #endif
18969 char setupterm ();
18971 main ()
18973 return setupterm ();
18975 return 0;
18977 _ACEOF
18978 if ac_fn_c_try_link "$LINENO"; then :
18979 ac_cv_lib_ncurses_setupterm=yes
18980 else
18981 ac_cv_lib_ncurses_setupterm=no
18983 rm -f core conftest.err conftest.$ac_objext \
18984 conftest$ac_exeext conftest.$ac_ext
18985 LIBS=$ac_check_lib_save_LIBS
18987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_setupterm" >&5
18988 $as_echo "$ac_cv_lib_ncurses_setupterm" >&6; }
18989 if test "x$ac_cv_lib_ncurses_setupterm" = xyes; then :
18991 alpine_termdata=info
18992 LIBS="$LIBS -lncurses"
18994 else
18996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setupterm in -lcurses" >&5
18997 $as_echo_n "checking for setupterm in -lcurses... " >&6; }
18998 if ${ac_cv_lib_curses_setupterm+:} false; then :
18999 $as_echo_n "(cached) " >&6
19000 else
19001 ac_check_lib_save_LIBS=$LIBS
19002 LIBS="-lcurses $LIBS"
19003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19004 /* end confdefs.h. */
19006 /* Override any GCC internal prototype to avoid an error.
19007 Use char because int might match the return type of a GCC
19008 builtin and then its argument prototype would still apply. */
19009 #ifdef __cplusplus
19010 extern "C"
19011 #endif
19012 char setupterm ();
19014 main ()
19016 return setupterm ();
19018 return 0;
19020 _ACEOF
19021 if ac_fn_c_try_link "$LINENO"; then :
19022 ac_cv_lib_curses_setupterm=yes
19023 else
19024 ac_cv_lib_curses_setupterm=no
19026 rm -f core conftest.err conftest.$ac_objext \
19027 conftest$ac_exeext conftest.$ac_ext
19028 LIBS=$ac_check_lib_save_LIBS
19030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_setupterm" >&5
19031 $as_echo "$ac_cv_lib_curses_setupterm" >&6; }
19032 if test "x$ac_cv_lib_curses_setupterm" = xyes; then :
19034 alpine_termdata=info
19035 LIBS="$LIBS -lcurses"
19037 else
19039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermlib" >&5
19040 $as_echo_n "checking for tgetent in -ltermlib... " >&6; }
19041 if ${ac_cv_lib_termlib_tgetent+:} false; then :
19042 $as_echo_n "(cached) " >&6
19043 else
19044 ac_check_lib_save_LIBS=$LIBS
19045 LIBS="-ltermlib $LIBS"
19046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19047 /* end confdefs.h. */
19049 /* Override any GCC internal prototype to avoid an error.
19050 Use char because int might match the return type of a GCC
19051 builtin and then its argument prototype would still apply. */
19052 #ifdef __cplusplus
19053 extern "C"
19054 #endif
19055 char tgetent ();
19057 main ()
19059 return tgetent ();
19061 return 0;
19063 _ACEOF
19064 if ac_fn_c_try_link "$LINENO"; then :
19065 ac_cv_lib_termlib_tgetent=yes
19066 else
19067 ac_cv_lib_termlib_tgetent=no
19069 rm -f core conftest.err conftest.$ac_objext \
19070 conftest$ac_exeext conftest.$ac_ext
19071 LIBS=$ac_check_lib_save_LIBS
19073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termlib_tgetent" >&5
19074 $as_echo "$ac_cv_lib_termlib_tgetent" >&6; }
19075 if test "x$ac_cv_lib_termlib_tgetent" = xyes; then :
19077 alpine_termdata=cap
19078 LIBS="$LIBS -ltermlib"
19080 else
19082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
19083 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
19084 if ${ac_cv_lib_termcap_tgetent+:} false; then :
19085 $as_echo_n "(cached) " >&6
19086 else
19087 ac_check_lib_save_LIBS=$LIBS
19088 LIBS="-ltermcap $LIBS"
19089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19090 /* end confdefs.h. */
19092 /* Override any GCC internal prototype to avoid an error.
19093 Use char because int might match the return type of a GCC
19094 builtin and then its argument prototype would still apply. */
19095 #ifdef __cplusplus
19096 extern "C"
19097 #endif
19098 char tgetent ();
19100 main ()
19102 return tgetent ();
19104 return 0;
19106 _ACEOF
19107 if ac_fn_c_try_link "$LINENO"; then :
19108 ac_cv_lib_termcap_tgetent=yes
19109 else
19110 ac_cv_lib_termcap_tgetent=no
19112 rm -f core conftest.err conftest.$ac_objext \
19113 conftest$ac_exeext conftest.$ac_ext
19114 LIBS=$ac_check_lib_save_LIBS
19116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
19117 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
19118 if test "x$ac_cv_lib_termcap_tgetent" = xyes; then :
19120 alpine_termdata=cap
19121 LIBS="$LIBS -ltermcap"
19123 else
19125 as_fn_error $? "Terminfo/termcap not found" "$LINENO" 5
19141 case $alpine_termdata in
19142 info)
19144 $as_echo "#define HAS_TERMINFO 1" >>confdefs.h
19147 cap)
19149 $as_echo "#define HAS_TERMCAP 1" >>confdefs.h
19152 esac
19154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
19155 $as_echo_n "checking for library containing dlopen... " >&6; }
19156 if ${ac_cv_search_dlopen+:} false; then :
19157 $as_echo_n "(cached) " >&6
19158 else
19159 ac_func_search_save_LIBS=$LIBS
19160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19161 /* end confdefs.h. */
19163 /* Override any GCC internal prototype to avoid an error.
19164 Use char because int might match the return type of a GCC
19165 builtin and then its argument prototype would still apply. */
19166 #ifdef __cplusplus
19167 extern "C"
19168 #endif
19169 char dlopen ();
19171 main ()
19173 return dlopen ();
19175 return 0;
19177 _ACEOF
19178 for ac_lib in '' dl dld; do
19179 if test -z "$ac_lib"; then
19180 ac_res="none required"
19181 else
19182 ac_res=-l$ac_lib
19183 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19185 if ac_fn_c_try_link "$LINENO"; then :
19186 ac_cv_search_dlopen=$ac_res
19188 rm -f core conftest.err conftest.$ac_objext \
19189 conftest$ac_exeext
19190 if ${ac_cv_search_dlopen+:} false; then :
19191 break
19193 done
19194 if ${ac_cv_search_dlopen+:} false; then :
19196 else
19197 ac_cv_search_dlopen=no
19199 rm conftest.$ac_ext
19200 LIBS=$ac_func_search_save_LIBS
19202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
19203 $as_echo "$ac_cv_search_dlopen" >&6; }
19204 ac_res=$ac_cv_search_dlopen
19205 if test "$ac_res" != no; then :
19206 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19208 else
19209 alpine_DL="none"
19212 if test "x$alpine_DL" = "xnone" ; then
19213 as_fn_error $? "No library containing dlopen found" "$LINENO" 5
19214 exit 1
19217 if test "x$alpine_SSLTYPE" != "xnone" ; then
19218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OpenSSL is LibreSSL" >&5
19219 $as_echo_n "checking if OpenSSL is LibreSSL... " >&6; }
19220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19221 /* end confdefs.h. */
19223 #include <stdio.h>
19224 #include <stdlib.h>
19225 #if HAVE_STDINT_H
19226 #include <stdint.h>
19227 #endif /* HAVE_STDINT_H */
19228 #include <openssl/ssl.h>
19231 main ()
19234 #if OPENSSL_VERSION_NUMBER != 0x20000000L
19235 #error
19236 #endif
19239 return 0;
19241 _ACEOF
19242 if ac_fn_c_try_compile "$LINENO"; then :
19243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19244 $as_echo "yes" >&6; }
19245 alpine_SSLPROVIDER="libressl"
19247 else
19248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19249 $as_echo "no" >&6; }
19252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19255 if test "x$alpine_SSLTYPE" != "xnone" -a "x$alpine_SSLPROVIDER" != "xlibressl" ; then
19256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Openssl library version >= 1.0.0c" >&5
19257 $as_echo_n "checking Openssl library version >= 1.0.0c... " >&6; }
19258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19259 /* end confdefs.h. */
19261 #include <stdio.h>
19262 #include <stdlib.h>
19263 #if HAVE_STDINT_H
19264 #include <stdint.h>
19265 #endif /* HAVE_STDINT_H */
19266 #include <openssl/ssl.h>
19269 main ()
19272 #if OPENSSL_VERSION_NUMBER < 0x1000003fL
19273 #error
19274 #endif
19277 return 0;
19279 _ACEOF
19280 if ac_fn_c_try_compile "$LINENO"; then :
19281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19282 $as_echo "yes" >&6; }
19283 alpine_SSLPROVIDER="openssl"
19285 else
19286 alpine_SSLTYPE="none"
19288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19290 if test "x$alpine_SSLTYPE" = "xnone" ; then
19291 as_fn_error $? "Install openssl version >= 1.0.0c" "$LINENO" 5
19292 exit 1
19296 if test "x$alpine_SSLTYPE" != "xnone" -a "x$alpine_SSLPROVIDER" != "xlibressl" ; then
19297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Openssl library version >= 1.1.0" >&5
19298 $as_echo_n "checking Openssl library version >= 1.1.0... " >&6; }
19299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19300 /* end confdefs.h. */
19302 #include <stdio.h>
19303 #include <stdlib.h>
19304 #if HAVE_STDINT_H
19305 #include <stdint.h>
19306 #endif /* HAVE_STDINT_H */
19307 #include <openssl/ssl.h>
19310 main ()
19313 #if OPENSSL_VERSION_NUMBER < 0x10100000L
19314 #error
19315 #endif
19318 return 0;
19320 _ACEOF
19321 if ac_fn_c_try_compile "$LINENO"; then :
19322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19323 $as_echo "yes" >&6; }
19324 alpine_SSLVERSION="new"
19325 CFLAGS="$CFLAGS -DOPENSSL_1_1_0 -DOPENSSL_API_COMPAT=0x10100000L"
19327 else
19328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19329 $as_echo "no" >&6; }
19330 alpine_SSLVERSION="old"
19332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19335 if test "x$alpine_SSLTYPE" != "xnone" ; then
19336 if test "x$alpine_SSLVERSION" = "xold" ; then
19337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSLeay" >&5
19338 $as_echo_n "checking for library containing SSLeay... " >&6; }
19339 if ${ac_cv_search_SSLeay+:} false; then :
19340 $as_echo_n "(cached) " >&6
19341 else
19342 ac_func_search_save_LIBS=$LIBS
19343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19344 /* end confdefs.h. */
19346 /* Override any GCC internal prototype to avoid an error.
19347 Use char because int might match the return type of a GCC
19348 builtin and then its argument prototype would still apply. */
19349 #ifdef __cplusplus
19350 extern "C"
19351 #endif
19352 char SSLeay ();
19354 main ()
19356 return SSLeay ();
19358 return 0;
19360 _ACEOF
19361 for ac_lib in '' crypto; do
19362 if test -z "$ac_lib"; then
19363 ac_res="none required"
19364 else
19365 ac_res=-l$ac_lib
19366 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19368 if ac_fn_c_try_link "$LINENO"; then :
19369 ac_cv_search_SSLeay=$ac_res
19371 rm -f core conftest.err conftest.$ac_objext \
19372 conftest$ac_exeext
19373 if ${ac_cv_search_SSLeay+:} false; then :
19374 break
19376 done
19377 if ${ac_cv_search_SSLeay+:} false; then :
19379 else
19380 ac_cv_search_SSLeay=no
19382 rm conftest.$ac_ext
19383 LIBS=$ac_func_search_save_LIBS
19385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SSLeay" >&5
19386 $as_echo "$ac_cv_search_SSLeay" >&6; }
19387 ac_res=$ac_cv_search_SSLeay
19388 if test "$ac_res" != no; then :
19389 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19391 else
19392 alpine_CRYPTO="none"
19395 else
19396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing OpenSSL_version_num" >&5
19397 $as_echo_n "checking for library containing OpenSSL_version_num... " >&6; }
19398 if ${ac_cv_search_OpenSSL_version_num+:} false; then :
19399 $as_echo_n "(cached) " >&6
19400 else
19401 ac_func_search_save_LIBS=$LIBS
19402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19403 /* end confdefs.h. */
19405 /* Override any GCC internal prototype to avoid an error.
19406 Use char because int might match the return type of a GCC
19407 builtin and then its argument prototype would still apply. */
19408 #ifdef __cplusplus
19409 extern "C"
19410 #endif
19411 char OpenSSL_version_num ();
19413 main ()
19415 return OpenSSL_version_num ();
19417 return 0;
19419 _ACEOF
19420 for ac_lib in '' crypto; do
19421 if test -z "$ac_lib"; then
19422 ac_res="none required"
19423 else
19424 ac_res=-l$ac_lib
19425 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19427 if ac_fn_c_try_link "$LINENO"; then :
19428 ac_cv_search_OpenSSL_version_num=$ac_res
19430 rm -f core conftest.err conftest.$ac_objext \
19431 conftest$ac_exeext
19432 if ${ac_cv_search_OpenSSL_version_num+:} false; then :
19433 break
19435 done
19436 if ${ac_cv_search_OpenSSL_version_num+:} false; then :
19438 else
19439 ac_cv_search_OpenSSL_version_num=no
19441 rm conftest.$ac_ext
19442 LIBS=$ac_func_search_save_LIBS
19444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_OpenSSL_version_num" >&5
19445 $as_echo "$ac_cv_search_OpenSSL_version_num" >&6; }
19446 ac_res=$ac_cv_search_OpenSSL_version_num
19447 if test "$ac_res" != no; then :
19448 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19450 else
19451 alpine_CRYPTO="none"
19455 if test "x$alpine_CRYPTO" = "xnone" ; then
19456 as_fn_error $? "crypto library NOT found" "$LINENO" 5
19457 exit 1
19459 case $host in
19460 *-*-cygwin)
19461 ac_fn_c_check_header_mongrel "$LINENO" "crypto.h" "ac_cv_header_crypto_h" "$ac_includes_default"
19462 if test "x$ac_cv_header_crypto_h" = xyes; then :
19464 else
19465 alpine_CRYPTO_DEVEL="none"
19469 if test "x$alpine_CRYPTO_DEVEL" = "xnone" ; then
19470 as_fn_error $? "crypto library file crypto.h NOT found. Install correspoding libcrypt-devel package" "$LINENO" 5
19471 exit 1
19474 *) ;;
19475 esac
19478 if test "x$alpine_SSLTYPE" != "xnone" ; then
19479 if test "x$alpine_SSLVERSION" = "xold" ; then
19480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSL_library_init" >&5
19481 $as_echo_n "checking for library containing SSL_library_init... " >&6; }
19482 if ${ac_cv_search_SSL_library_init+:} false; then :
19483 $as_echo_n "(cached) " >&6
19484 else
19485 ac_func_search_save_LIBS=$LIBS
19486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19487 /* end confdefs.h. */
19489 /* Override any GCC internal prototype to avoid an error.
19490 Use char because int might match the return type of a GCC
19491 builtin and then its argument prototype would still apply. */
19492 #ifdef __cplusplus
19493 extern "C"
19494 #endif
19495 char SSL_library_init ();
19497 main ()
19499 return SSL_library_init ();
19501 return 0;
19503 _ACEOF
19504 for ac_lib in '' ssl; do
19505 if test -z "$ac_lib"; then
19506 ac_res="none required"
19507 else
19508 ac_res=-l$ac_lib
19509 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19511 if ac_fn_c_try_link "$LINENO"; then :
19512 ac_cv_search_SSL_library_init=$ac_res
19514 rm -f core conftest.err conftest.$ac_objext \
19515 conftest$ac_exeext
19516 if ${ac_cv_search_SSL_library_init+:} false; then :
19517 break
19519 done
19520 if ${ac_cv_search_SSL_library_init+:} false; then :
19522 else
19523 ac_cv_search_SSL_library_init=no
19525 rm conftest.$ac_ext
19526 LIBS=$ac_func_search_save_LIBS
19528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SSL_library_init" >&5
19529 $as_echo "$ac_cv_search_SSL_library_init" >&6; }
19530 ac_res=$ac_cv_search_SSL_library_init
19531 if test "$ac_res" != no; then :
19532 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19534 else
19535 alpine_SSLTYPE="none"
19538 if test "x$alpine_SSLTYPE" = "xnone" ; then
19539 as_fn_error $? "No library containing SSL_library_init found in your path" "$LINENO" 5
19540 exit 1
19542 else
19543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing OPENSSL_init_ssl" >&5
19544 $as_echo_n "checking for library containing OPENSSL_init_ssl... " >&6; }
19545 if ${ac_cv_search_OPENSSL_init_ssl+:} false; then :
19546 $as_echo_n "(cached) " >&6
19547 else
19548 ac_func_search_save_LIBS=$LIBS
19549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19550 /* end confdefs.h. */
19552 /* Override any GCC internal prototype to avoid an error.
19553 Use char because int might match the return type of a GCC
19554 builtin and then its argument prototype would still apply. */
19555 #ifdef __cplusplus
19556 extern "C"
19557 #endif
19558 char OPENSSL_init_ssl ();
19560 main ()
19562 return OPENSSL_init_ssl ();
19564 return 0;
19566 _ACEOF
19567 for ac_lib in '' ssl; do
19568 if test -z "$ac_lib"; then
19569 ac_res="none required"
19570 else
19571 ac_res=-l$ac_lib
19572 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19574 if ac_fn_c_try_link "$LINENO"; then :
19575 ac_cv_search_OPENSSL_init_ssl=$ac_res
19577 rm -f core conftest.err conftest.$ac_objext \
19578 conftest$ac_exeext
19579 if ${ac_cv_search_OPENSSL_init_ssl+:} false; then :
19580 break
19582 done
19583 if ${ac_cv_search_OPENSSL_init_ssl+:} false; then :
19585 else
19586 ac_cv_search_OPENSSL_init_ssl=no
19588 rm conftest.$ac_ext
19589 LIBS=$ac_func_search_save_LIBS
19591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_OPENSSL_init_ssl" >&5
19592 $as_echo "$ac_cv_search_OPENSSL_init_ssl" >&6; }
19593 ac_res=$ac_cv_search_OPENSSL_init_ssl
19594 if test "$ac_res" != no; then :
19595 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19597 else
19598 alpine_SSLTYPE="none"
19601 if test "x$aalpiLlpine_SSLTYPE" = "xnone" ; then
19602 as_fn_error $? "No library containing OPENSSL_init_ssl found in your path" "$LINENO" 5
19603 exit 1
19608 if test "$alpine_with_ldap" = "yes" ; then
19609 alpine_has_ldap=
19610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_alloc in -llber" >&5
19611 $as_echo_n "checking for ber_alloc in -llber... " >&6; }
19612 if ${ac_cv_lib_lber_ber_alloc+:} false; then :
19613 $as_echo_n "(cached) " >&6
19614 else
19615 ac_check_lib_save_LIBS=$LIBS
19616 LIBS="-llber $LIBS"
19617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19618 /* end confdefs.h. */
19620 /* Override any GCC internal prototype to avoid an error.
19621 Use char because int might match the return type of a GCC
19622 builtin and then its argument prototype would still apply. */
19623 #ifdef __cplusplus
19624 extern "C"
19625 #endif
19626 char ber_alloc ();
19628 main ()
19630 return ber_alloc ();
19632 return 0;
19634 _ACEOF
19635 if ac_fn_c_try_link "$LINENO"; then :
19636 ac_cv_lib_lber_ber_alloc=yes
19637 else
19638 ac_cv_lib_lber_ber_alloc=no
19640 rm -f core conftest.err conftest.$ac_objext \
19641 conftest$ac_exeext conftest.$ac_ext
19642 LIBS=$ac_check_lib_save_LIBS
19644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_alloc" >&5
19645 $as_echo "$ac_cv_lib_lber_ber_alloc" >&6; }
19646 if test "x$ac_cv_lib_lber_ber_alloc" = xyes; then :
19648 LIBS="$LIBS -llber"
19652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldap_initialize" >&5
19653 $as_echo_n "checking for library containing ldap_initialize... " >&6; }
19654 if ${ac_cv_search_ldap_initialize+:} false; then :
19655 $as_echo_n "(cached) " >&6
19656 else
19657 ac_func_search_save_LIBS=$LIBS
19658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19659 /* end confdefs.h. */
19661 /* Override any GCC internal prototype to avoid an error.
19662 Use char because int might match the return type of a GCC
19663 builtin and then its argument prototype would still apply. */
19664 #ifdef __cplusplus
19665 extern "C"
19666 #endif
19667 char ldap_initialize ();
19669 main ()
19671 return ldap_initialize ();
19673 return 0;
19675 _ACEOF
19676 for ac_lib in '' ldap; do
19677 if test -z "$ac_lib"; then
19678 ac_res="none required"
19679 else
19680 ac_res=-l$ac_lib
19681 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19683 if ac_fn_c_try_link "$LINENO"; then :
19684 ac_cv_search_ldap_initialize=$ac_res
19686 rm -f core conftest.err conftest.$ac_objext \
19687 conftest$ac_exeext
19688 if ${ac_cv_search_ldap_initialize+:} false; then :
19689 break
19691 done
19692 if ${ac_cv_search_ldap_initialize+:} false; then :
19694 else
19695 ac_cv_search_ldap_initialize=no
19697 rm conftest.$ac_ext
19698 LIBS=$ac_func_search_save_LIBS
19700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldap_initialize" >&5
19701 $as_echo "$ac_cv_search_ldap_initialize" >&6; }
19702 ac_res=$ac_cv_search_ldap_initialize
19703 if test "$ac_res" != no; then :
19704 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19706 alpine_has_ldap=yes
19708 else
19710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldap_open" >&5
19711 $as_echo_n "checking for library containing ldap_open... " >&6; }
19712 if ${ac_cv_search_ldap_open+:} false; then :
19713 $as_echo_n "(cached) " >&6
19714 else
19715 ac_func_search_save_LIBS=$LIBS
19716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19717 /* end confdefs.h. */
19719 /* Override any GCC internal prototype to avoid an error.
19720 Use char because int might match the return type of a GCC
19721 builtin and then its argument prototype would still apply. */
19722 #ifdef __cplusplus
19723 extern "C"
19724 #endif
19725 char ldap_open ();
19727 main ()
19729 return ldap_open ();
19731 return 0;
19733 _ACEOF
19734 for ac_lib in '' ldap; do
19735 if test -z "$ac_lib"; then
19736 ac_res="none required"
19737 else
19738 ac_res=-l$ac_lib
19739 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19741 if ac_fn_c_try_link "$LINENO"; then :
19742 ac_cv_search_ldap_open=$ac_res
19744 rm -f core conftest.err conftest.$ac_objext \
19745 conftest$ac_exeext
19746 if ${ac_cv_search_ldap_open+:} false; then :
19747 break
19749 done
19750 if ${ac_cv_search_ldap_open+:} false; then :
19752 else
19753 ac_cv_search_ldap_open=no
19755 rm conftest.$ac_ext
19756 LIBS=$ac_func_search_save_LIBS
19758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldap_open" >&5
19759 $as_echo "$ac_cv_search_ldap_open" >&6; }
19760 ac_res=$ac_cv_search_ldap_open
19761 if test "$ac_res" != no; then :
19762 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19764 alpine_has_ldap=yes
19772 if test "$alpine_has_ldap" = "yes" ; then
19773 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * Including LDAP Support" >&5
19774 $as_echo "$as_me: * * * Including LDAP Support" >&6;}
19776 $as_echo "#define ENABLE_LDAP /**/" >>confdefs.h
19781 if test -z "$alpine_c_client_bundled" ; then
19782 if test "x$alpine_PAM" != "xnone" ; then
19783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pam_start" >&5
19784 $as_echo_n "checking for library containing pam_start... " >&6; }
19785 if ${ac_cv_search_pam_start+:} false; then :
19786 $as_echo_n "(cached) " >&6
19787 else
19788 ac_func_search_save_LIBS=$LIBS
19789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19790 /* end confdefs.h. */
19792 /* Override any GCC internal prototype to avoid an error.
19793 Use char because int might match the return type of a GCC
19794 builtin and then its argument prototype would still apply. */
19795 #ifdef __cplusplus
19796 extern "C"
19797 #endif
19798 char pam_start ();
19800 main ()
19802 return pam_start ();
19804 return 0;
19806 _ACEOF
19807 for ac_lib in '' pam; do
19808 if test -z "$ac_lib"; then
19809 ac_res="none required"
19810 else
19811 ac_res=-l$ac_lib
19812 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19814 if ac_fn_c_try_link "$LINENO"; then :
19815 ac_cv_search_pam_start=$ac_res
19817 rm -f core conftest.err conftest.$ac_objext \
19818 conftest$ac_exeext
19819 if ${ac_cv_search_pam_start+:} false; then :
19820 break
19822 done
19823 if ${ac_cv_search_pam_start+:} false; then :
19825 else
19826 ac_cv_search_pam_start=no
19828 rm conftest.$ac_ext
19829 LIBS=$ac_func_search_save_LIBS
19831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pam_start" >&5
19832 $as_echo "$ac_cv_search_pam_start" >&6; }
19833 ac_res=$ac_cv_search_pam_start
19834 if test "$ac_res" != no; then :
19835 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19837 LIBS="$LIBS -lpam"
19838 ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
19839 if test "x$ac_cv_header_security_pam_appl_h" = xyes; then :
19841 alpine_PAM="yes"
19843 else
19844 ac_fn_c_check_header_mongrel "$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default"
19845 if test "x$ac_cv_header_pam_pam_appl_h" = xyes; then :
19847 alpine_PAM="yes"
19848 if test "x$alpine_c_client_target" != "xoxp" ; then
19849 alpine_PAM="none"
19850 alpine_pam_none_reason="header files not in security/ directory"
19853 else
19855 alpine_PAM="none"
19856 alpine_pam_none_reason="header files not found"
19866 else
19868 alpine_PAM="none"
19869 alpine_pam_none_reason="library files not found"
19873 if test -n "$alpine_pam_none_reason" ; then
19874 as_fn_error or do not use --with-bundled-tools "Trying to build bundled tools but could not find libpam. Install it first and try again" "$LINENO" 5
19879 if test -n "$alpine_c_client_bundled" ; then
19880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
19881 $as_echo_n "checking for library containing crypt... " >&6; }
19882 if ${ac_cv_search_crypt+:} false; then :
19883 $as_echo_n "(cached) " >&6
19884 else
19885 ac_func_search_save_LIBS=$LIBS
19886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19887 /* end confdefs.h. */
19889 /* Override any GCC internal prototype to avoid an error.
19890 Use char because int might match the return type of a GCC
19891 builtin and then its argument prototype would still apply. */
19892 #ifdef __cplusplus
19893 extern "C"
19894 #endif
19895 char crypt ();
19897 main ()
19899 return crypt ();
19901 return 0;
19903 _ACEOF
19904 for ac_lib in '' crypt; do
19905 if test -z "$ac_lib"; then
19906 ac_res="none required"
19907 else
19908 ac_res=-l$ac_lib
19909 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19911 if ac_fn_c_try_link "$LINENO"; then :
19912 ac_cv_search_crypt=$ac_res
19914 rm -f core conftest.err conftest.$ac_objext \
19915 conftest$ac_exeext
19916 if ${ac_cv_search_crypt+:} false; then :
19917 break
19919 done
19920 if ${ac_cv_search_crypt+:} false; then :
19922 else
19923 ac_cv_search_crypt=no
19925 rm conftest.$ac_ext
19926 LIBS=$ac_func_search_save_LIBS
19928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
19929 $as_echo "$ac_cv_search_crypt" >&6; }
19930 ac_res=$ac_cv_search_crypt
19931 if test "$ac_res" != no; then :
19932 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19934 else
19936 as_fn_error $? "crypt library not found." "$LINENO" 5
19942 C_CLIENT_BUNDLED=$alpine_c_client_bundled
19945 if test "x$alpine_GSSTYPE" != "xnone" ; then
19946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gss_init_sec_context" >&5
19947 $as_echo_n "checking for library containing gss_init_sec_context... " >&6; }
19948 if ${ac_cv_search_gss_init_sec_context+:} false; then :
19949 $as_echo_n "(cached) " >&6
19950 else
19951 ac_func_search_save_LIBS=$LIBS
19952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19953 /* end confdefs.h. */
19955 /* Override any GCC internal prototype to avoid an error.
19956 Use char because int might match the return type of a GCC
19957 builtin and then its argument prototype would still apply. */
19958 #ifdef __cplusplus
19959 extern "C"
19960 #endif
19961 char gss_init_sec_context ();
19963 main ()
19965 return gss_init_sec_context ();
19967 return 0;
19969 _ACEOF
19970 for ac_lib in '' gss gssapi gssapi_krb5; do
19971 if test -z "$ac_lib"; then
19972 ac_res="none required"
19973 else
19974 ac_res=-l$ac_lib
19975 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19977 if ac_fn_c_try_link "$LINENO"; then :
19978 ac_cv_search_gss_init_sec_context=$ac_res
19980 rm -f core conftest.err conftest.$ac_objext \
19981 conftest$ac_exeext
19982 if ${ac_cv_search_gss_init_sec_context+:} false; then :
19983 break
19985 done
19986 if ${ac_cv_search_gss_init_sec_context+:} false; then :
19988 else
19989 ac_cv_search_gss_init_sec_context=no
19991 rm conftest.$ac_ext
19992 LIBS=$ac_func_search_save_LIBS
19994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gss_init_sec_context" >&5
19995 $as_echo "$ac_cv_search_gss_init_sec_context" >&6; }
19996 ac_res=$ac_cv_search_gss_init_sec_context
19997 if test "$ac_res" != no; then :
19998 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20000 LIBS="$LIBS -lkrb5"
20001 ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi_generic.h" "ac_cv_header_gssapi_gssapi_generic_h" "$ac_includes_default"
20002 if test "x$ac_cv_header_gssapi_gssapi_generic_h" = xyes; then :
20004 else
20006 if test ! -d /usr/kerberos/include ; then
20007 alpine_GSSTYPE="none"
20008 alpine_gss_none_reason="header files not found"
20015 else
20017 alpine_GSSTYPE="none"
20018 alpine_gss_none_reason="libraries not found"
20022 if test -n "$alpine_gss_none_reason" ; then
20023 { $as_echo "$as_me:${as_lineno-$LINENO}: NOT including Kerberos Support: $alpine_gss_none_reason" >&5
20024 $as_echo "$as_me: NOT including Kerberos Support: $alpine_gss_none_reason" >&6;}
20029 # Check whether --with-ntlm was given.
20030 if test "${with_ntlm+set}" = set; then :
20031 withval=$with_ntlm; with_ntlm=$withval
20035 if test "x$with_ntlm" = "xno" ; then
20036 alpine_NTLM="none"
20037 else
20038 alpine_NTLM=
20040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing buildSmbNtlmAuthRequest" >&5
20041 $as_echo_n "checking for library containing buildSmbNtlmAuthRequest... " >&6; }
20042 if ${ac_cv_search_buildSmbNtlmAuthRequest+:} false; then :
20043 $as_echo_n "(cached) " >&6
20044 else
20045 ac_func_search_save_LIBS=$LIBS
20046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20047 /* end confdefs.h. */
20049 /* Override any GCC internal prototype to avoid an error.
20050 Use char because int might match the return type of a GCC
20051 builtin and then its argument prototype would still apply. */
20052 #ifdef __cplusplus
20053 extern "C"
20054 #endif
20055 char buildSmbNtlmAuthRequest ();
20057 main ()
20059 return buildSmbNtlmAuthRequest ();
20061 return 0;
20063 _ACEOF
20064 for ac_lib in '' ntlm; do
20065 if test -z "$ac_lib"; then
20066 ac_res="none required"
20067 else
20068 ac_res=-l$ac_lib
20069 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20071 if ac_fn_c_try_link "$LINENO"; then :
20072 ac_cv_search_buildSmbNtlmAuthRequest=$ac_res
20074 rm -f core conftest.err conftest.$ac_objext \
20075 conftest$ac_exeext
20076 if ${ac_cv_search_buildSmbNtlmAuthRequest+:} false; then :
20077 break
20079 done
20080 if ${ac_cv_search_buildSmbNtlmAuthRequest+:} false; then :
20082 else
20083 ac_cv_search_buildSmbNtlmAuthRequest=no
20085 rm conftest.$ac_ext
20086 LIBS=$ac_func_search_save_LIBS
20088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_buildSmbNtlmAuthRequest" >&5
20089 $as_echo "$ac_cv_search_buildSmbNtlmAuthRequest" >&6; }
20090 ac_res=$ac_cv_search_buildSmbNtlmAuthRequest
20091 if test "$ac_res" != no; then :
20092 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20094 ac_fn_c_check_header_mongrel "$LINENO" "ntlm.h" "ac_cv_header_ntlm_h" "$ac_includes_default"
20095 if test "x$ac_cv_header_ntlm_h" = xyes; then :
20097 extra_auth_ntlm=ntl
20098 { $as_echo "$as_me:${as_lineno-$LINENO}: including NTLM support" >&5
20099 $as_echo "$as_me: including NTLM support" >&6;}
20101 else
20103 alpine_NTLM="none"
20104 alpine_ntlm_none_reason="header file ntlm.h not found"
20110 else
20112 alpine_NTLM="none"
20113 alpine_ntlm_none_reason="ntlm library not found"
20117 if test -n "$alpine_ntlm_none_reason" ; then
20118 { $as_echo "$as_me:${as_lineno-$LINENO}: NOT including NTLM Support: $alpine_ntlm_none_reason" >&5
20119 $as_echo "$as_me: NOT including NTLM Support: $alpine_ntlm_none_reason" >&6;}
20123 if test -n "$WEB_BUILD" ; then
20124 TCL_VERSIONS_DOT="tcl8.6 tcl8.5 tcl8.4 tcl8.3"
20125 TCL_VERSIONS_NODOT="`echo ${TCL_VERSIONS_DOT} | ${SED} 's/\.//g'`"
20126 TCL_VERSIONS="${TCL_VERSIONS_DOT} ${TCL_VERSIONS_NODOT} tcl"
20127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing Tcl_Eval" >&5
20128 $as_echo_n "checking for library containing Tcl_Eval... " >&6; }
20129 if ${ac_cv_search_Tcl_Eval+:} false; then :
20130 $as_echo_n "(cached) " >&6
20131 else
20132 ac_func_search_save_LIBS=$LIBS
20133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20134 /* end confdefs.h. */
20136 /* Override any GCC internal prototype to avoid an error.
20137 Use char because int might match the return type of a GCC
20138 builtin and then its argument prototype would still apply. */
20139 #ifdef __cplusplus
20140 extern "C"
20141 #endif
20142 char Tcl_Eval ();
20144 main ()
20146 return Tcl_Eval ();
20148 return 0;
20150 _ACEOF
20151 for ac_lib in '' $alpine_TCLLIB ${TCL_VERSIONS}; do
20152 if test -z "$ac_lib"; then
20153 ac_res="none required"
20154 else
20155 ac_res=-l$ac_lib
20156 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20158 if ac_fn_c_try_link "$LINENO"; then :
20159 ac_cv_search_Tcl_Eval=$ac_res
20161 rm -f core conftest.err conftest.$ac_objext \
20162 conftest$ac_exeext
20163 if ${ac_cv_search_Tcl_Eval+:} false; then :
20164 break
20166 done
20167 if ${ac_cv_search_Tcl_Eval+:} false; then :
20169 else
20170 ac_cv_search_Tcl_Eval=no
20172 rm conftest.$ac_ext
20173 LIBS=$ac_func_search_save_LIBS
20175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_Tcl_Eval" >&5
20176 $as_echo "$ac_cv_search_Tcl_Eval" >&6; }
20177 ac_res=$ac_cv_search_Tcl_Eval
20178 if test "$ac_res" != no; then :
20179 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20181 else
20183 WEB_BUILD=
20188 if test -n "$alpine_TCLINC" ; then
20189 as_ac_Header=`$as_echo "ac_cv_header_$alpine_TCLINC/tcl.h" | $as_tr_sh`
20190 ac_fn_c_check_header_mongrel "$LINENO" "$alpine_TCLINC/tcl.h" "$as_ac_Header" "$ac_includes_default"
20191 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20193 else
20195 WEB_BUILD=
20200 if test -z "$WEB_BUILD" ; then
20201 { $as_echo "$as_me:${as_lineno-$LINENO}: Tcl Include file NOT found" >&5
20202 $as_echo "$as_me: Tcl Include file NOT found" >&6;}
20204 else
20205 ac_fn_c_check_header_mongrel "$LINENO" "tcl.h" "ac_cv_header_tcl_h" "$ac_includes_default"
20206 if test "x$ac_cv_header_tcl_h" = xyes; then :
20208 else
20210 for base in /usr /usr/local ; do
20211 for dir in ${TCL_VERSIONS} ; do
20212 if test -f $base/include/$dir/tcl.h ; then
20213 CPPFLAGS="$CPPFLAGS -I$base/include/$dir"
20214 found=yes
20215 break
20217 done
20218 if test "x$found" = "xyes" ; then
20219 break
20221 done
20222 if test "$found" != "yes" ; then
20223 WEB_BUILD=
20224 { $as_echo "$as_me:${as_lineno-$LINENO}: header file tcl.h NOT found: Web Alpine will not be built" >&5
20225 $as_echo "$as_me: header file tcl.h NOT found: Web Alpine will not be built" >&6;}
20234 if test "x$alpine_REGEX" != "xyes" ; then
20235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing regcomp" >&5
20236 $as_echo_n "checking for library containing regcomp... " >&6; }
20237 if ${ac_cv_search_regcomp+:} false; then :
20238 $as_echo_n "(cached) " >&6
20239 else
20240 ac_func_search_save_LIBS=$LIBS
20241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20242 /* end confdefs.h. */
20244 /* Override any GCC internal prototype to avoid an error.
20245 Use char because int might match the return type of a GCC
20246 builtin and then its argument prototype would still apply. */
20247 #ifdef __cplusplus
20248 extern "C"
20249 #endif
20250 char regcomp ();
20252 main ()
20254 return regcomp ();
20256 return 0;
20258 _ACEOF
20259 for ac_lib in '' posix regexp regex re; do
20260 if test -z "$ac_lib"; then
20261 ac_res="none required"
20262 else
20263 ac_res=-l$ac_lib
20264 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20266 if ac_fn_c_try_link "$LINENO"; then :
20267 ac_cv_search_regcomp=$ac_res
20269 rm -f core conftest.err conftest.$ac_objext \
20270 conftest$ac_exeext
20271 if ${ac_cv_search_regcomp+:} false; then :
20272 break
20274 done
20275 if ${ac_cv_search_regcomp+:} false; then :
20277 else
20278 ac_cv_search_regcomp=no
20280 rm conftest.$ac_ext
20281 LIBS=$ac_func_search_save_LIBS
20283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_regcomp" >&5
20284 $as_echo "$ac_cv_search_regcomp" >&6; }
20285 ac_res=$ac_cv_search_regcomp
20286 if test "$ac_res" != no; then :
20287 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20289 else
20291 if test x$alpine_REGEX = "xno" ; then
20292 as_fn_error $? "Unable to find system regex library" "$LINENO" 5
20293 else
20294 alpine_REGEX=yes
20300 if test "x$alpine_REGEX" != "xyes" ; then
20301 ac_fn_c_check_header_mongrel "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default"
20302 if test "x$ac_cv_header_regex_h" = xyes; then :
20304 else
20306 if test x$alpine_REGEX = "xno" ; then
20307 as_fn_error $? "Unable to find system regex include file" "$LINENO" 5
20308 else
20309 alpine_REGEX=yes
20317 $as_echo "#define HAVE_REGEX_H 1" >>confdefs.h
20319 if test "x$alpine_REGEX" = "xyes" ; then
20320 CPPFLAGS="$CPPFLAGS -I${top_builddir}/regex"
20321 LDFLAGS="$LDFLAGS -L${top_builddir}/regex"
20322 REGEX_BUILD=regex
20323 REGEX_MAKEFILE="$REGEX_BUILD/Makefile"
20326 if test "x$with_pthread" != "xno" ; then
20327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread support" >&5
20328 $as_echo_n "checking for pthread support... " >&6; }
20332 ac_ext=c
20333 ac_cpp='$CPP $CPPFLAGS'
20334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20338 acx_pthread_ok=no
20340 # We used to check for pthread.h first, but this fails if pthread.h
20341 # requires special compiler flags (e.g. on True64 or Sequent).
20342 # It gets checked for in the link test anyway.
20344 # First of all, check if the user has set any of the PTHREAD_LIBS,
20345 # etcetera environment variables, and if threads linking works using
20346 # them:
20347 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
20348 save_CFLAGS="$CFLAGS"
20349 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
20350 save_LIBS="$LIBS"
20351 LIBS="$PTHREAD_LIBS $LIBS"
20352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
20353 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
20354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20355 /* end confdefs.h. */
20357 /* Override any GCC internal prototype to avoid an error.
20358 Use char because int might match the return type of a GCC
20359 builtin and then its argument prototype would still apply. */
20360 #ifdef __cplusplus
20361 extern "C"
20362 #endif
20363 char pthread_join ();
20365 main ()
20367 return pthread_join ();
20369 return 0;
20371 _ACEOF
20372 if ac_fn_c_try_link "$LINENO"; then :
20373 acx_pthread_ok=yes
20375 rm -f core conftest.err conftest.$ac_objext \
20376 conftest$ac_exeext conftest.$ac_ext
20377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
20378 $as_echo "$acx_pthread_ok" >&6; }
20379 if test x"$acx_pthread_ok" = xno; then
20380 PTHREAD_LIBS=""
20381 PTHREAD_CFLAGS=""
20383 LIBS="$save_LIBS"
20384 CFLAGS="$save_CFLAGS"
20387 # We must check for the threads library under a number of different
20388 # names; the ordering is very important because some systems
20389 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
20390 # libraries is broken (non-POSIX).
20392 # Create a list of thread flags to try. Items starting with a "-" are
20393 # C compiler flags, and other items are library names, except for "none"
20394 # which indicates that we try without any flags at all, and "pthread-config"
20395 # which is a program returning the flags for the Pth emulation library.
20397 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
20399 # The ordering *is* (sometimes) important. Some notes on the
20400 # individual items follow:
20402 # pthreads: AIX (must check this before -lpthread)
20403 # none: in case threads are in libc; should be tried before -Kthread and
20404 # other compiler flags to prevent continual compiler warnings
20405 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
20406 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
20407 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
20408 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
20409 # -pthreads: Solaris/gcc
20410 # -mthreads: Mingw32/gcc, Lynx/gcc
20411 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
20412 # doesn't hurt to check since this sometimes defines pthreads too;
20413 # also defines -D_REENTRANT)
20414 # ... -mt is also the pthreads flag for HP/aCC
20415 # pthread: Linux, etcetera
20416 # --thread-safe: KAI C++
20417 # pthread-config: use pthread-config program (for GNU Pth library)
20419 case "${host_cpu}-${host_os}" in
20420 *solaris*)
20422 # On Solaris (at least, for some versions), libc contains stubbed
20423 # (non-functional) versions of the pthreads routines, so link-based
20424 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
20425 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
20426 # a function called by this macro, so we could check for that, but
20427 # who knows whether they'll stub that too in a future libc.) So,
20428 # we'll just look for -pthreads and -lpthread first:
20430 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
20432 esac
20434 if test x"$acx_pthread_ok" = xno; then
20435 for flag in $acx_pthread_flags; do
20437 case $flag in
20438 none)
20439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
20440 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
20444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
20445 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
20446 PTHREAD_CFLAGS="$flag"
20449 pthread-config)
20450 # Extract the first word of "pthread-config", so it can be a program name with args.
20451 set dummy pthread-config; ac_word=$2
20452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20453 $as_echo_n "checking for $ac_word... " >&6; }
20454 if ${ac_cv_prog_acx_pthread_config+:} false; then :
20455 $as_echo_n "(cached) " >&6
20456 else
20457 if test -n "$acx_pthread_config"; then
20458 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
20459 else
20460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20461 for as_dir in $PATH
20463 IFS=$as_save_IFS
20464 test -z "$as_dir" && as_dir=.
20465 for ac_exec_ext in '' $ac_executable_extensions; do
20466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20467 ac_cv_prog_acx_pthread_config="yes"
20468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20469 break 2
20471 done
20472 done
20473 IFS=$as_save_IFS
20475 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
20478 acx_pthread_config=$ac_cv_prog_acx_pthread_config
20479 if test -n "$acx_pthread_config"; then
20480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
20481 $as_echo "$acx_pthread_config" >&6; }
20482 else
20483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20484 $as_echo "no" >&6; }
20488 if test x"$acx_pthread_config" = xno; then continue; fi
20489 PTHREAD_CFLAGS="`pthread-config --cflags`"
20490 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
20494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
20495 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
20496 PTHREAD_LIBS="-l$flag"
20498 esac
20500 save_LIBS="$LIBS"
20501 save_CFLAGS="$CFLAGS"
20502 LIBS="$PTHREAD_LIBS $LIBS"
20503 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
20505 # Check for various functions. We must include pthread.h,
20506 # since some functions may be macros. (On the Sequent, we
20507 # need a special flag -Kthread to make this header compile.)
20508 # We check for pthread_join because it is in -lpthread on IRIX
20509 # while pthread_create is in libc. We check for pthread_attr_init
20510 # due to DEC craziness with -lpthreads. We check for
20511 # pthread_cleanup_push because it is one of the few pthread
20512 # functions on Solaris that doesn't have a non-functional libc stub.
20513 # We try pthread_create on general principles.
20514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20515 /* end confdefs.h. */
20516 #include <pthread.h>
20518 main ()
20520 pthread_t th; pthread_join(th, 0);
20521 pthread_attr_init(0); pthread_cleanup_push(0, 0);
20522 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
20524 return 0;
20526 _ACEOF
20527 if ac_fn_c_try_link "$LINENO"; then :
20528 acx_pthread_ok=yes
20530 rm -f core conftest.err conftest.$ac_objext \
20531 conftest$ac_exeext conftest.$ac_ext
20533 LIBS="$save_LIBS"
20534 CFLAGS="$save_CFLAGS"
20536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
20537 $as_echo "$acx_pthread_ok" >&6; }
20538 if test "x$acx_pthread_ok" = xyes; then
20539 break;
20542 PTHREAD_LIBS=""
20543 PTHREAD_CFLAGS=""
20544 done
20547 # Various other checks:
20548 if test "x$acx_pthread_ok" = xyes; then
20549 save_LIBS="$LIBS"
20550 LIBS="$PTHREAD_LIBS $LIBS"
20551 save_CFLAGS="$CFLAGS"
20552 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
20554 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
20555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
20556 $as_echo_n "checking for joinable pthread attribute... " >&6; }
20557 attr_name=unknown
20558 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
20559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20560 /* end confdefs.h. */
20561 #include <pthread.h>
20563 main ()
20565 int attr=$attr; return attr;
20567 return 0;
20569 _ACEOF
20570 if ac_fn_c_try_link "$LINENO"; then :
20571 attr_name=$attr; break
20573 rm -f core conftest.err conftest.$ac_objext \
20574 conftest$ac_exeext conftest.$ac_ext
20575 done
20576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
20577 $as_echo "$attr_name" >&6; }
20578 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
20580 cat >>confdefs.h <<_ACEOF
20581 #define PTHREAD_CREATE_JOINABLE $attr_name
20582 _ACEOF
20586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
20587 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
20588 flag=no
20589 case "${host_cpu}-${host_os}" in
20590 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
20591 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
20592 esac
20593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
20594 $as_echo "${flag}" >&6; }
20595 if test "x$flag" != xno; then
20596 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
20599 LIBS="$save_LIBS"
20600 CFLAGS="$save_CFLAGS"
20602 # More AIX lossage: must compile with xlc_r or cc_r
20603 if test x"$GCC" != xyes; then
20604 for ac_prog in xlc_r cc_r
20606 # Extract the first word of "$ac_prog", so it can be a program name with args.
20607 set dummy $ac_prog; ac_word=$2
20608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20609 $as_echo_n "checking for $ac_word... " >&6; }
20610 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
20611 $as_echo_n "(cached) " >&6
20612 else
20613 if test -n "$PTHREAD_CC"; then
20614 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
20615 else
20616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20617 for as_dir in $PATH
20619 IFS=$as_save_IFS
20620 test -z "$as_dir" && as_dir=.
20621 for ac_exec_ext in '' $ac_executable_extensions; do
20622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20623 ac_cv_prog_PTHREAD_CC="$ac_prog"
20624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20625 break 2
20627 done
20628 done
20629 IFS=$as_save_IFS
20633 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
20634 if test -n "$PTHREAD_CC"; then
20635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
20636 $as_echo "$PTHREAD_CC" >&6; }
20637 else
20638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20639 $as_echo "no" >&6; }
20643 test -n "$PTHREAD_CC" && break
20644 done
20645 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
20647 else
20648 PTHREAD_CC=$CC
20650 else
20651 PTHREAD_CC="$CC"
20658 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
20659 if test x"$acx_pthread_ok" = xyes; then
20661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20662 $as_echo "yes" >&6; }
20663 case "$target" in
20664 *openbsd*)
20665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pthread support on OpenBSD is unstable!" >&5
20666 $as_echo "$as_me: WARNING: pthread support on OpenBSD is unstable!" >&6;}
20667 AM_CFLAGS="$AM_CFLAGS -pthread"
20669 esac
20670 LIBS="$PTHREAD_LIBS $LIBS"
20671 AM_CFLAGS="$AM_CFLAGS $PTHREAD_CFLAGS"
20672 CC="$PTHREAD_CC"
20674 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
20678 else
20679 acx_pthread_ok=no
20681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20682 $as_echo "no" >&6; }
20685 ac_ext=c
20686 ac_cpp='$CPP $CPPFLAGS'
20687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
20694 $as_echo_n "checking for library containing nanosleep... " >&6; }
20695 if ${ac_cv_search_nanosleep+:} false; then :
20696 $as_echo_n "(cached) " >&6
20697 else
20698 ac_func_search_save_LIBS=$LIBS
20699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20700 /* end confdefs.h. */
20702 /* Override any GCC internal prototype to avoid an error.
20703 Use char because int might match the return type of a GCC
20704 builtin and then its argument prototype would still apply. */
20705 #ifdef __cplusplus
20706 extern "C"
20707 #endif
20708 char nanosleep ();
20710 main ()
20712 return nanosleep ();
20714 return 0;
20716 _ACEOF
20717 for ac_lib in '' rt posix4; do
20718 if test -z "$ac_lib"; then
20719 ac_res="none required"
20720 else
20721 ac_res=-l$ac_lib
20722 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20724 if ac_fn_c_try_link "$LINENO"; then :
20725 ac_cv_search_nanosleep=$ac_res
20727 rm -f core conftest.err conftest.$ac_objext \
20728 conftest$ac_exeext
20729 if ${ac_cv_search_nanosleep+:} false; then :
20730 break
20732 done
20733 if ${ac_cv_search_nanosleep+:} false; then :
20735 else
20736 ac_cv_search_nanosleep=no
20738 rm conftest.$ac_ext
20739 LIBS=$ac_func_search_save_LIBS
20741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
20742 $as_echo "$ac_cv_search_nanosleep" >&6; }
20743 ac_res=$ac_cv_search_nanosleep
20744 if test "$ac_res" != no; then :
20745 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20748 $as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h
20758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
20759 $as_echo_n "checking for ANSI C header files... " >&6; }
20760 if ${ac_cv_header_stdc+:} false; then :
20761 $as_echo_n "(cached) " >&6
20762 else
20763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20764 /* end confdefs.h. */
20765 #include <stdlib.h>
20766 #include <stdarg.h>
20767 #include <string.h>
20768 #include <float.h>
20771 main ()
20775 return 0;
20777 _ACEOF
20778 if ac_fn_c_try_compile "$LINENO"; then :
20779 ac_cv_header_stdc=yes
20780 else
20781 ac_cv_header_stdc=no
20783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20785 if test $ac_cv_header_stdc = yes; then
20786 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20788 /* end confdefs.h. */
20789 #include <string.h>
20791 _ACEOF
20792 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20793 $EGREP "memchr" >/dev/null 2>&1; then :
20795 else
20796 ac_cv_header_stdc=no
20798 rm -f conftest*
20802 if test $ac_cv_header_stdc = yes; then
20803 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20805 /* end confdefs.h. */
20806 #include <stdlib.h>
20808 _ACEOF
20809 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20810 $EGREP "free" >/dev/null 2>&1; then :
20812 else
20813 ac_cv_header_stdc=no
20815 rm -f conftest*
20819 if test $ac_cv_header_stdc = yes; then
20820 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20821 if test "$cross_compiling" = yes; then :
20823 else
20824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20825 /* end confdefs.h. */
20826 #include <ctype.h>
20827 #include <stdlib.h>
20828 #if ((' ' & 0x0FF) == 0x020)
20829 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20830 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20831 #else
20832 # define ISLOWER(c) \
20833 (('a' <= (c) && (c) <= 'i') \
20834 || ('j' <= (c) && (c) <= 'r') \
20835 || ('s' <= (c) && (c) <= 'z'))
20836 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20837 #endif
20839 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20841 main ()
20843 int i;
20844 for (i = 0; i < 256; i++)
20845 if (XOR (islower (i), ISLOWER (i))
20846 || toupper (i) != TOUPPER (i))
20847 return 2;
20848 return 0;
20850 _ACEOF
20851 if ac_fn_c_try_run "$LINENO"; then :
20853 else
20854 ac_cv_header_stdc=no
20856 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20857 conftest.$ac_objext conftest.beam conftest.$ac_ext
20862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
20863 $as_echo "$ac_cv_header_stdc" >&6; }
20864 if test $ac_cv_header_stdc = yes; then
20866 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
20870 ac_header_dirent=no
20871 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20872 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
20874 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
20875 if eval \${$as_ac_Header+:} false; then :
20876 $as_echo_n "(cached) " >&6
20877 else
20878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20879 /* end confdefs.h. */
20880 #include <sys/types.h>
20881 #include <$ac_hdr>
20884 main ()
20886 if ((DIR *) 0)
20887 return 0;
20889 return 0;
20891 _ACEOF
20892 if ac_fn_c_try_compile "$LINENO"; then :
20893 eval "$as_ac_Header=yes"
20894 else
20895 eval "$as_ac_Header=no"
20897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20899 eval ac_res=\$$as_ac_Header
20900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20901 $as_echo "$ac_res" >&6; }
20902 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20903 cat >>confdefs.h <<_ACEOF
20904 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20905 _ACEOF
20907 ac_header_dirent=$ac_hdr; break
20910 done
20911 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20912 if test $ac_header_dirent = dirent.h; then
20913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
20914 $as_echo_n "checking for library containing opendir... " >&6; }
20915 if ${ac_cv_search_opendir+:} false; then :
20916 $as_echo_n "(cached) " >&6
20917 else
20918 ac_func_search_save_LIBS=$LIBS
20919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20920 /* end confdefs.h. */
20922 /* Override any GCC internal prototype to avoid an error.
20923 Use char because int might match the return type of a GCC
20924 builtin and then its argument prototype would still apply. */
20925 #ifdef __cplusplus
20926 extern "C"
20927 #endif
20928 char opendir ();
20930 main ()
20932 return opendir ();
20934 return 0;
20936 _ACEOF
20937 for ac_lib in '' dir; do
20938 if test -z "$ac_lib"; then
20939 ac_res="none required"
20940 else
20941 ac_res=-l$ac_lib
20942 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20944 if ac_fn_c_try_link "$LINENO"; then :
20945 ac_cv_search_opendir=$ac_res
20947 rm -f core conftest.err conftest.$ac_objext \
20948 conftest$ac_exeext
20949 if ${ac_cv_search_opendir+:} false; then :
20950 break
20952 done
20953 if ${ac_cv_search_opendir+:} false; then :
20955 else
20956 ac_cv_search_opendir=no
20958 rm conftest.$ac_ext
20959 LIBS=$ac_func_search_save_LIBS
20961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
20962 $as_echo "$ac_cv_search_opendir" >&6; }
20963 ac_res=$ac_cv_search_opendir
20964 if test "$ac_res" != no; then :
20965 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20969 else
20970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
20971 $as_echo_n "checking for library containing opendir... " >&6; }
20972 if ${ac_cv_search_opendir+:} false; then :
20973 $as_echo_n "(cached) " >&6
20974 else
20975 ac_func_search_save_LIBS=$LIBS
20976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20977 /* end confdefs.h. */
20979 /* Override any GCC internal prototype to avoid an error.
20980 Use char because int might match the return type of a GCC
20981 builtin and then its argument prototype would still apply. */
20982 #ifdef __cplusplus
20983 extern "C"
20984 #endif
20985 char opendir ();
20987 main ()
20989 return opendir ();
20991 return 0;
20993 _ACEOF
20994 for ac_lib in '' x; do
20995 if test -z "$ac_lib"; then
20996 ac_res="none required"
20997 else
20998 ac_res=-l$ac_lib
20999 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21001 if ac_fn_c_try_link "$LINENO"; then :
21002 ac_cv_search_opendir=$ac_res
21004 rm -f core conftest.err conftest.$ac_objext \
21005 conftest$ac_exeext
21006 if ${ac_cv_search_opendir+:} false; then :
21007 break
21009 done
21010 if ${ac_cv_search_opendir+:} false; then :
21012 else
21013 ac_cv_search_opendir=no
21015 rm conftest.$ac_ext
21016 LIBS=$ac_func_search_save_LIBS
21018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
21019 $as_echo "$ac_cv_search_opendir" >&6; }
21020 ac_res=$ac_cv_search_opendir
21021 if test "$ac_res" != no; then :
21022 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
21029 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
21030 if ${ac_cv_header_stat_broken+:} false; then :
21031 $as_echo_n "(cached) " >&6
21032 else
21033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21034 /* end confdefs.h. */
21035 #include <sys/types.h>
21036 #include <sys/stat.h>
21038 #if defined S_ISBLK && defined S_IFDIR
21039 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21040 #endif
21042 #if defined S_ISBLK && defined S_IFCHR
21043 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21044 #endif
21046 #if defined S_ISLNK && defined S_IFREG
21047 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21048 #endif
21050 #if defined S_ISSOCK && defined S_IFREG
21051 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
21052 #endif
21054 _ACEOF
21055 if ac_fn_c_try_compile "$LINENO"; then :
21056 ac_cv_header_stat_broken=no
21057 else
21058 ac_cv_header_stat_broken=yes
21060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
21063 $as_echo "$ac_cv_header_stat_broken" >&6; }
21064 if test $ac_cv_header_stat_broken = yes; then
21066 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
21070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
21071 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
21072 if ${ac_cv_header_sys_wait_h+:} false; then :
21073 $as_echo_n "(cached) " >&6
21074 else
21075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21076 /* end confdefs.h. */
21077 #include <sys/types.h>
21078 #include <sys/wait.h>
21079 #ifndef WEXITSTATUS
21080 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
21081 #endif
21082 #ifndef WIFEXITED
21083 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
21084 #endif
21087 main ()
21089 int s;
21090 wait (&s);
21091 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
21093 return 0;
21095 _ACEOF
21096 if ac_fn_c_try_compile "$LINENO"; then :
21097 ac_cv_header_sys_wait_h=yes
21098 else
21099 ac_cv_header_sys_wait_h=no
21101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
21104 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
21105 if test $ac_cv_header_sys_wait_h = yes; then
21107 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
21111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
21112 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
21113 if ${ac_cv_header_time+:} false; then :
21114 $as_echo_n "(cached) " >&6
21115 else
21116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21117 /* end confdefs.h. */
21118 #include <sys/types.h>
21119 #include <sys/time.h>
21120 #include <time.h>
21123 main ()
21125 if ((struct tm *) 0)
21126 return 0;
21128 return 0;
21130 _ACEOF
21131 if ac_fn_c_try_compile "$LINENO"; then :
21132 ac_cv_header_time=yes
21133 else
21134 ac_cv_header_time=no
21136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
21139 $as_echo "$ac_cv_header_time" >&6; }
21140 if test $ac_cv_header_time = yes; then
21142 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
21146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
21147 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
21148 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false; then :
21149 $as_echo_n "(cached) " >&6
21150 else
21151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21152 /* end confdefs.h. */
21153 #include <sys/types.h>
21154 #include <termios.h>
21155 #ifdef TIOCGWINSZ
21157 #endif
21159 _ACEOF
21160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21161 $EGREP "yes" >/dev/null 2>&1; then :
21162 ac_cv_sys_tiocgwinsz_in_termios_h=yes
21163 else
21164 ac_cv_sys_tiocgwinsz_in_termios_h=no
21166 rm -f conftest*
21169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
21170 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
21172 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
21173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
21174 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
21175 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false; then :
21176 $as_echo_n "(cached) " >&6
21177 else
21178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21179 /* end confdefs.h. */
21180 #include <sys/types.h>
21181 #include <sys/ioctl.h>
21182 #ifdef TIOCGWINSZ
21184 #endif
21186 _ACEOF
21187 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21188 $EGREP "yes" >/dev/null 2>&1; then :
21189 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
21190 else
21191 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
21193 rm -f conftest*
21196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
21197 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
21199 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
21201 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
21207 for ac_header in unistd.h
21208 do :
21209 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
21210 if test "x$ac_cv_header_unistd_h" = xyes; then :
21211 cat >>confdefs.h <<_ACEOF
21212 #define HAVE_UNISTD_H 1
21213 _ACEOF
21217 done
21220 for ac_header in errno.h \
21221 ctype.h \
21222 fcntl.h \
21223 signal.h \
21224 setjmp.h \
21225 memory.h \
21226 sys/ioctl.h \
21227 sys/param.h \
21228 sys/socket.h \
21229 sys/uio.h \
21230 sys/un.h \
21231 limits.h \
21232 wchar.h \
21233 sys/poll.h \
21234 stropts.h \
21235 netdb.h \
21236 syslog.h \
21237 sys/syslog.h \
21238 locale.h \
21239 langinfo.h \
21240 utime.h \
21241 sys/utime.h \
21242 pthread.h \
21243 pwd.h \
21244 assert.h
21245 do :
21246 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21247 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21248 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21249 cat >>confdefs.h <<_ACEOF
21250 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21251 _ACEOF
21255 done
21258 ac_fn_c_check_header_mongrel "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default"
21259 if test "x$ac_cv_header_termios_h" = xyes; then :
21261 $as_echo "#define HAS_TERMIOS 1" >>confdefs.h
21263 else
21265 ac_fn_c_check_header_mongrel "$LINENO" "termio.h" "ac_cv_header_termio_h" "$ac_includes_default"
21266 if test "x$ac_cv_header_termio_h" = xyes; then :
21268 $as_echo "#define HAS_TERMIO 1" >>confdefs.h
21270 else
21272 ac_fn_c_check_header_mongrel "$LINENO" "sgtty.h" "ac_cv_header_sgtty_h" "$ac_includes_default"
21273 if test "x$ac_cv_header_sgtty_h" = xyes; then :
21275 $as_echo "#define HAS_SGTTY 1" >>confdefs.h
21277 else
21279 as_fn_error $? "Unable to figure out terminal control method" "$LINENO" 5
21295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
21296 $as_echo_n "checking return type of signal handlers... " >&6; }
21297 if ${ac_cv_type_signal+:} false; then :
21298 $as_echo_n "(cached) " >&6
21299 else
21300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21301 /* end confdefs.h. */
21302 #include <sys/types.h>
21303 #include <signal.h>
21306 main ()
21308 return *(signal (0, 0)) (0) == 1;
21310 return 0;
21312 _ACEOF
21313 if ac_fn_c_try_compile "$LINENO"; then :
21314 ac_cv_type_signal=int
21315 else
21316 ac_cv_type_signal=void
21318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
21321 $as_echo "$ac_cv_type_signal" >&6; }
21323 cat >>confdefs.h <<_ACEOF
21324 #define RETSIGTYPE $ac_cv_type_signal
21325 _ACEOF
21328 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
21329 if test "x$ac_cv_type_size_t" = xyes; then :
21331 else
21333 cat >>confdefs.h <<_ACEOF
21334 #define size_t unsigned int
21335 _ACEOF
21339 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
21340 if test "x$ac_cv_type_mode_t" = xyes; then :
21342 else
21344 cat >>confdefs.h <<_ACEOF
21345 #define mode_t int
21346 _ACEOF
21350 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
21351 if test "x$ac_cv_type_pid_t" = xyes; then :
21353 else
21355 cat >>confdefs.h <<_ACEOF
21356 #define pid_t int
21357 _ACEOF
21361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
21362 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
21363 if ${ac_cv_type_uid_t+:} false; then :
21364 $as_echo_n "(cached) " >&6
21365 else
21366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21367 /* end confdefs.h. */
21368 #include <sys/types.h>
21370 _ACEOF
21371 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21372 $EGREP "uid_t" >/dev/null 2>&1; then :
21373 ac_cv_type_uid_t=yes
21374 else
21375 ac_cv_type_uid_t=no
21377 rm -f conftest*
21380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
21381 $as_echo "$ac_cv_type_uid_t" >&6; }
21382 if test $ac_cv_type_uid_t = no; then
21384 $as_echo "#define uid_t int" >>confdefs.h
21387 $as_echo "#define gid_t int" >>confdefs.h
21391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
21392 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
21393 if ${ac_cv_struct_tm+:} false; then :
21394 $as_echo_n "(cached) " >&6
21395 else
21396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21397 /* end confdefs.h. */
21398 #include <sys/types.h>
21399 #include <time.h>
21402 main ()
21404 struct tm tm;
21405 int *p = &tm.tm_sec;
21406 return !p;
21408 return 0;
21410 _ACEOF
21411 if ac_fn_c_try_compile "$LINENO"; then :
21412 ac_cv_struct_tm=time.h
21413 else
21414 ac_cv_struct_tm=sys/time.h
21416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
21419 $as_echo "$ac_cv_struct_tm" >&6; }
21420 if test $ac_cv_struct_tm = sys/time.h; then
21422 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
21427 ac_fn_c_check_type "$LINENO" "union wait" "ac_cv_type_union_wait" "$ac_includes_default"
21428 if test "x$ac_cv_type_union_wait" = xyes; then :
21430 cat >>confdefs.h <<_ACEOF
21431 #define HAVE_UNION_WAIT 1
21432 _ACEOF
21438 for ac_header in stdint.h
21439 do :
21440 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
21441 if test "x$ac_cv_header_stdint_h" = xyes; then :
21442 cat >>confdefs.h <<_ACEOF
21443 #define HAVE_STDINT_H 1
21444 _ACEOF
21445 uint16=uint16_t
21446 else
21448 for ac_header in inttypes.h
21449 do :
21450 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
21451 if test "x$ac_cv_header_inttypes_h" = xyes; then :
21452 cat >>confdefs.h <<_ACEOF
21453 #define HAVE_INTTYPES_H 1
21454 _ACEOF
21455 uint16=uint16_t
21456 else
21458 for ac_header in sys/types.h
21459 do :
21460 ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
21461 if test "x$ac_cv_header_sys_types_h" = xyes; then :
21462 cat >>confdefs.h <<_ACEOF
21463 #define HAVE_SYS_TYPES_H 1
21464 _ACEOF
21465 uint16=u_int16_t
21466 else
21468 # The cast to long int works around a bug in the HP C Compiler
21469 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21470 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21471 # This bug is HP SR number 8606223364.
21472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
21473 $as_echo_n "checking size of unsigned short... " >&6; }
21474 if ${ac_cv_sizeof_unsigned_short+:} false; then :
21475 $as_echo_n "(cached) " >&6
21476 else
21477 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short" "$ac_includes_default"; then :
21479 else
21480 if test "$ac_cv_type_unsigned_short" = yes; then
21481 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21482 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21483 as_fn_error 77 "cannot compute sizeof (unsigned short)
21484 See \`config.log' for more details" "$LINENO" 5; }
21485 else
21486 ac_cv_sizeof_unsigned_short=0
21491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
21492 $as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
21496 cat >>confdefs.h <<_ACEOF
21497 #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
21498 _ACEOF
21501 if test $ac_cv_sizeof_unsigned_short -eq 2 ; then
21502 uint16="unsigned short"
21503 else
21504 # The cast to long int works around a bug in the HP C Compiler
21505 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21506 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21507 # This bug is HP SR number 8606223364.
21508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
21509 $as_echo_n "checking size of unsigned int... " >&6; }
21510 if ${ac_cv_sizeof_unsigned_int+:} false; then :
21511 $as_echo_n "(cached) " >&6
21512 else
21513 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
21515 else
21516 if test "$ac_cv_type_unsigned_int" = yes; then
21517 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21518 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21519 as_fn_error 77 "cannot compute sizeof (unsigned int)
21520 See \`config.log' for more details" "$LINENO" 5; }
21521 else
21522 ac_cv_sizeof_unsigned_int=0
21527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
21528 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
21532 cat >>confdefs.h <<_ACEOF
21533 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
21534 _ACEOF
21537 if $ac_cv_sizeof_unsigned_int -eq 2 ; then
21538 uint16="unsigned int"
21539 else
21540 as_fn_error $? "Unable to determine 16 bit integer type" "$LINENO" 5
21546 done
21551 done
21556 done
21559 cat >>confdefs.h <<_ACEOF
21560 #define UINT16 $uint16
21561 _ACEOF
21564 for ac_header in stdint.h
21565 do :
21566 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
21567 if test "x$ac_cv_header_stdint_h" = xyes; then :
21568 cat >>confdefs.h <<_ACEOF
21569 #define HAVE_STDINT_H 1
21570 _ACEOF
21571 uint32=uint32_t
21572 else
21574 for ac_header in inttypes.h
21575 do :
21576 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
21577 if test "x$ac_cv_header_inttypes_h" = xyes; then :
21578 cat >>confdefs.h <<_ACEOF
21579 #define HAVE_INTTYPES_H 1
21580 _ACEOF
21581 uint32=uint32_t
21582 else
21584 for ac_header in sys/types.h
21585 do :
21586 ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
21587 if test "x$ac_cv_header_sys_types_h" = xyes; then :
21588 cat >>confdefs.h <<_ACEOF
21589 #define HAVE_SYS_TYPES_H 1
21590 _ACEOF
21591 uint32=u_int32_t
21592 else
21594 # The cast to long int works around a bug in the HP C Compiler
21595 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21596 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21597 # This bug is HP SR number 8606223364.
21598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
21599 $as_echo_n "checking size of unsigned int... " >&6; }
21600 if ${ac_cv_sizeof_unsigned_int+:} false; then :
21601 $as_echo_n "(cached) " >&6
21602 else
21603 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
21605 else
21606 if test "$ac_cv_type_unsigned_int" = yes; then
21607 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21608 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21609 as_fn_error 77 "cannot compute sizeof (unsigned int)
21610 See \`config.log' for more details" "$LINENO" 5; }
21611 else
21612 ac_cv_sizeof_unsigned_int=0
21617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
21618 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
21622 cat >>confdefs.h <<_ACEOF
21623 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
21624 _ACEOF
21627 if test $ac_cv_sizeof_unsigned_int -eq 4 ; then
21628 uint32="unsigned int"
21629 else
21630 # The cast to long int works around a bug in the HP C Compiler
21631 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21632 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21633 # This bug is HP SR number 8606223364.
21634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
21635 $as_echo_n "checking size of unsigned long... " >&6; }
21636 if ${ac_cv_sizeof_unsigned_long+:} false; then :
21637 $as_echo_n "(cached) " >&6
21638 else
21639 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
21641 else
21642 if test "$ac_cv_type_unsigned_long" = yes; then
21643 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21644 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21645 as_fn_error 77 "cannot compute sizeof (unsigned long)
21646 See \`config.log' for more details" "$LINENO" 5; }
21647 else
21648 ac_cv_sizeof_unsigned_long=0
21653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
21654 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
21658 cat >>confdefs.h <<_ACEOF
21659 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
21660 _ACEOF
21663 if $ac_cv_sizeof_unsigned_long -eq 4 ; then
21664 uint32="unsigned long"
21665 else
21666 as_fn_error $? "Unable to determine 32 bit integer type" "$LINENO" 5
21672 done
21677 done
21682 done
21685 cat >>confdefs.h <<_ACEOF
21686 #define UINT32 $uint32
21687 _ACEOF
21690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking argument pointer type of qsort compare function and base" >&5
21691 $as_echo_n "checking argument pointer type of qsort compare function and base... " >&6; }
21692 if ${ac_cv_func_qsort_argtype+:} false; then :
21693 $as_echo_n "(cached) " >&6
21694 else
21695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21696 /* end confdefs.h. */
21698 #if HAVE_STDLIB_H
21699 #include "stdlib.h"
21700 #endif
21702 extern void *base;
21703 extern sortf(const void *, const void *);
21704 int sortf(a, b)
21705 const void *a;
21706 const void *b; { return 0; }
21709 main ()
21712 qsort(base, 2, sizeof(char *), sortf);
21715 return 0;
21717 _ACEOF
21718 if ac_fn_c_try_compile "$LINENO"; then :
21719 ac_cv_func_qsort_argtype=void
21720 else
21721 ac_cv_func_qsort_argtype=char
21723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_qsort_argtype" >&5
21727 $as_echo "$ac_cv_func_qsort_argtype" >&6; }
21729 cat >>confdefs.h <<_ACEOF
21730 #define qsort_t $ac_cv_func_qsort_argtype
21731 _ACEOF
21735 for ac_header in sys/select.h sys/socket.h
21736 do :
21737 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21738 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21739 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21740 cat >>confdefs.h <<_ACEOF
21741 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21742 _ACEOF
21746 done
21748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
21749 $as_echo_n "checking types of arguments for select... " >&6; }
21750 if ${ac_cv_func_select_args+:} false; then :
21751 $as_echo_n "(cached) " >&6
21752 else
21753 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
21754 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
21755 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
21756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21757 /* end confdefs.h. */
21758 $ac_includes_default
21759 #ifdef HAVE_SYS_SELECT_H
21760 # include <sys/select.h>
21761 #endif
21762 #ifdef HAVE_SYS_SOCKET_H
21763 # include <sys/socket.h>
21764 #endif
21767 main ()
21769 extern int select ($ac_arg1,
21770 $ac_arg234, $ac_arg234, $ac_arg234,
21771 $ac_arg5);
21773 return 0;
21775 _ACEOF
21776 if ac_fn_c_try_compile "$LINENO"; then :
21777 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
21779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21780 done
21781 done
21782 done
21783 # Provide a safe default value.
21784 : "${ac_cv_func_select_args=int,int *,struct timeval *}"
21787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
21788 $as_echo "$ac_cv_func_select_args" >&6; }
21789 ac_save_IFS=$IFS; IFS=','
21790 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
21791 IFS=$ac_save_IFS
21792 shift
21794 cat >>confdefs.h <<_ACEOF
21795 #define SELECT_TYPE_ARG1 $1
21796 _ACEOF
21799 cat >>confdefs.h <<_ACEOF
21800 #define SELECT_TYPE_ARG234 ($2)
21801 _ACEOF
21804 cat >>confdefs.h <<_ACEOF
21805 #define SELECT_TYPE_ARG5 ($3)
21806 _ACEOF
21808 rm -f conftest*
21811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
21812 $as_echo_n "checking for working strcoll... " >&6; }
21813 if ${ac_cv_func_strcoll_works+:} false; then :
21814 $as_echo_n "(cached) " >&6
21815 else
21816 if test "$cross_compiling" = yes; then :
21817 ac_cv_func_strcoll_works=no
21818 else
21819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21820 /* end confdefs.h. */
21821 $ac_includes_default
21823 main ()
21825 return (strcoll ("abc", "def") >= 0 ||
21826 strcoll ("ABC", "DEF") >= 0 ||
21827 strcoll ("123", "456") >= 0)
21829 return 0;
21831 _ACEOF
21832 if ac_fn_c_try_run "$LINENO"; then :
21833 ac_cv_func_strcoll_works=yes
21834 else
21835 ac_cv_func_strcoll_works=no
21837 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21838 conftest.$ac_objext conftest.beam conftest.$ac_ext
21842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
21843 $as_echo "$ac_cv_func_strcoll_works" >&6; }
21844 if test $ac_cv_func_strcoll_works = yes; then
21846 $as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
21852 for ac_header in vfork.h
21853 do :
21854 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
21855 if test "x$ac_cv_header_vfork_h" = xyes; then :
21856 cat >>confdefs.h <<_ACEOF
21857 #define HAVE_VFORK_H 1
21858 _ACEOF
21862 done
21864 for ac_func in fork vfork
21865 do :
21866 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21867 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21868 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21869 cat >>confdefs.h <<_ACEOF
21870 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21871 _ACEOF
21874 done
21876 if test "x$ac_cv_func_fork" = xyes; then
21877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
21878 $as_echo_n "checking for working fork... " >&6; }
21879 if ${ac_cv_func_fork_works+:} false; then :
21880 $as_echo_n "(cached) " >&6
21881 else
21882 if test "$cross_compiling" = yes; then :
21883 ac_cv_func_fork_works=cross
21884 else
21885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21886 /* end confdefs.h. */
21887 $ac_includes_default
21889 main ()
21892 /* By Ruediger Kuhlmann. */
21893 return fork () < 0;
21896 return 0;
21898 _ACEOF
21899 if ac_fn_c_try_run "$LINENO"; then :
21900 ac_cv_func_fork_works=yes
21901 else
21902 ac_cv_func_fork_works=no
21904 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21905 conftest.$ac_objext conftest.beam conftest.$ac_ext
21909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
21910 $as_echo "$ac_cv_func_fork_works" >&6; }
21912 else
21913 ac_cv_func_fork_works=$ac_cv_func_fork
21915 if test "x$ac_cv_func_fork_works" = xcross; then
21916 case $host in
21917 *-*-amigaos* | *-*-msdosdjgpp*)
21918 # Override, as these systems have only a dummy fork() stub
21919 ac_cv_func_fork_works=no
21922 ac_cv_func_fork_works=yes
21924 esac
21925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
21926 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
21928 ac_cv_func_vfork_works=$ac_cv_func_vfork
21929 if test "x$ac_cv_func_vfork" = xyes; then
21930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
21931 $as_echo_n "checking for working vfork... " >&6; }
21932 if ${ac_cv_func_vfork_works+:} false; then :
21933 $as_echo_n "(cached) " >&6
21934 else
21935 if test "$cross_compiling" = yes; then :
21936 ac_cv_func_vfork_works=cross
21937 else
21938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21939 /* end confdefs.h. */
21940 /* Thanks to Paul Eggert for this test. */
21941 $ac_includes_default
21942 #include <sys/wait.h>
21943 #ifdef HAVE_VFORK_H
21944 # include <vfork.h>
21945 #endif
21946 /* On some sparc systems, changes by the child to local and incoming
21947 argument registers are propagated back to the parent. The compiler
21948 is told about this with #include <vfork.h>, but some compilers
21949 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
21950 static variable whose address is put into a register that is
21951 clobbered by the vfork. */
21952 static void
21953 #ifdef __cplusplus
21954 sparc_address_test (int arg)
21955 # else
21956 sparc_address_test (arg) int arg;
21957 #endif
21959 static pid_t child;
21960 if (!child) {
21961 child = vfork ();
21962 if (child < 0) {
21963 perror ("vfork");
21964 _exit(2);
21966 if (!child) {
21967 arg = getpid();
21968 write(-1, "", 0);
21969 _exit (arg);
21975 main ()
21977 pid_t parent = getpid ();
21978 pid_t child;
21980 sparc_address_test (0);
21982 child = vfork ();
21984 if (child == 0) {
21985 /* Here is another test for sparc vfork register problems. This
21986 test uses lots of local variables, at least as many local
21987 variables as main has allocated so far including compiler
21988 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
21989 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
21990 reuse the register of parent for one of the local variables,
21991 since it will think that parent can't possibly be used any more
21992 in this routine. Assigning to the local variable will thus
21993 munge parent in the parent process. */
21994 pid_t
21995 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
21996 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
21997 /* Convince the compiler that p..p7 are live; otherwise, it might
21998 use the same hardware register for all 8 local variables. */
21999 if (p != p1 || p != p2 || p != p3 || p != p4
22000 || p != p5 || p != p6 || p != p7)
22001 _exit(1);
22003 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22004 from child file descriptors. If the child closes a descriptor
22005 before it execs or exits, this munges the parent's descriptor
22006 as well. Test for this by closing stdout in the child. */
22007 _exit(close(fileno(stdout)) != 0);
22008 } else {
22009 int status;
22010 struct stat st;
22012 while (wait(&status) != child)
22014 return (
22015 /* Was there some problem with vforking? */
22016 child < 0
22018 /* Did the child fail? (This shouldn't happen.) */
22019 || status
22021 /* Did the vfork/compiler bug occur? */
22022 || parent != getpid()
22024 /* Did the file descriptor bug occur? */
22025 || fstat(fileno(stdout), &st) != 0
22029 _ACEOF
22030 if ac_fn_c_try_run "$LINENO"; then :
22031 ac_cv_func_vfork_works=yes
22032 else
22033 ac_cv_func_vfork_works=no
22035 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22036 conftest.$ac_objext conftest.beam conftest.$ac_ext
22040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
22041 $as_echo "$ac_cv_func_vfork_works" >&6; }
22044 if test "x$ac_cv_func_fork_works" = xcross; then
22045 ac_cv_func_vfork_works=$ac_cv_func_vfork
22046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
22047 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22050 if test "x$ac_cv_func_vfork_works" = xyes; then
22052 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
22054 else
22056 $as_echo "#define vfork fork" >>confdefs.h
22059 if test "x$ac_cv_func_fork_works" = xyes; then
22061 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
22065 for ac_func in strchr \
22066 memcpy \
22067 strtol \
22068 strtoul \
22069 select \
22070 poll \
22071 qsort \
22072 getuid \
22073 getpwuid \
22074 getpwnam \
22075 gettimeofday \
22076 tmpfile \
22077 uname \
22078 rename \
22079 read \
22080 signal \
22081 setjmp \
22082 chown \
22083 wait4 \
22084 waitpid \
22085 wait \
22086 srandom \
22087 popen \
22088 pclose \
22089 fsync \
22090 truncate \
22091 listen \
22092 wcwidth \
22093 mbstowcs \
22094 wcrtomb \
22095 putenv \
22096 setenv
22097 do :
22098 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22099 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22100 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22101 cat >>confdefs.h <<_ACEOF
22102 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22103 _ACEOF
22106 done
22109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostname" >&5
22110 $as_echo_n "checking for library containing gethostname... " >&6; }
22111 if ${ac_cv_search_gethostname+:} false; then :
22112 $as_echo_n "(cached) " >&6
22113 else
22114 ac_func_search_save_LIBS=$LIBS
22115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22116 /* end confdefs.h. */
22118 /* Override any GCC internal prototype to avoid an error.
22119 Use char because int might match the return type of a GCC
22120 builtin and then its argument prototype would still apply. */
22121 #ifdef __cplusplus
22122 extern "C"
22123 #endif
22124 char gethostname ();
22126 main ()
22128 return gethostname ();
22130 return 0;
22132 _ACEOF
22133 for ac_lib in '' nsl; do
22134 if test -z "$ac_lib"; then
22135 ac_res="none required"
22136 else
22137 ac_res=-l$ac_lib
22138 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22140 if ac_fn_c_try_link "$LINENO"; then :
22141 ac_cv_search_gethostname=$ac_res
22143 rm -f core conftest.err conftest.$ac_objext \
22144 conftest$ac_exeext
22145 if ${ac_cv_search_gethostname+:} false; then :
22146 break
22148 done
22149 if ${ac_cv_search_gethostname+:} false; then :
22151 else
22152 ac_cv_search_gethostname=no
22154 rm conftest.$ac_ext
22155 LIBS=$ac_func_search_save_LIBS
22157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostname" >&5
22158 $as_echo "$ac_cv_search_gethostname" >&6; }
22159 ac_res=$ac_cv_search_gethostname
22160 if test "$ac_res" != no; then :
22161 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
22167 $as_echo_n "checking for library containing socket... " >&6; }
22168 if ${ac_cv_search_socket+:} false; then :
22169 $as_echo_n "(cached) " >&6
22170 else
22171 ac_func_search_save_LIBS=$LIBS
22172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22173 /* end confdefs.h. */
22175 /* Override any GCC internal prototype to avoid an error.
22176 Use char because int might match the return type of a GCC
22177 builtin and then its argument prototype would still apply. */
22178 #ifdef __cplusplus
22179 extern "C"
22180 #endif
22181 char socket ();
22183 main ()
22185 return socket ();
22187 return 0;
22189 _ACEOF
22190 for ac_lib in '' socket; do
22191 if test -z "$ac_lib"; then
22192 ac_res="none required"
22193 else
22194 ac_res=-l$ac_lib
22195 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22197 if ac_fn_c_try_link "$LINENO"; then :
22198 ac_cv_search_socket=$ac_res
22200 rm -f core conftest.err conftest.$ac_objext \
22201 conftest$ac_exeext
22202 if ${ac_cv_search_socket+:} false; then :
22203 break
22205 done
22206 if ${ac_cv_search_socket+:} false; then :
22208 else
22209 ac_cv_search_socket=no
22211 rm conftest.$ac_ext
22212 LIBS=$ac_func_search_save_LIBS
22214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
22215 $as_echo "$ac_cv_search_socket" >&6; }
22216 ac_res=$ac_cv_search_socket
22217 if test "$ac_res" != no; then :
22218 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22220 else
22222 WEB_BUILD=
22227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bind" >&5
22228 $as_echo_n "checking for library containing bind... " >&6; }
22229 if ${ac_cv_search_bind+:} false; then :
22230 $as_echo_n "(cached) " >&6
22231 else
22232 ac_func_search_save_LIBS=$LIBS
22233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22234 /* end confdefs.h. */
22236 /* Override any GCC internal prototype to avoid an error.
22237 Use char because int might match the return type of a GCC
22238 builtin and then its argument prototype would still apply. */
22239 #ifdef __cplusplus
22240 extern "C"
22241 #endif
22242 char bind ();
22244 main ()
22246 return bind ();
22248 return 0;
22250 _ACEOF
22251 for ac_lib in '' bind; do
22252 if test -z "$ac_lib"; then
22253 ac_res="none required"
22254 else
22255 ac_res=-l$ac_lib
22256 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22258 if ac_fn_c_try_link "$LINENO"; then :
22259 ac_cv_search_bind=$ac_res
22261 rm -f core conftest.err conftest.$ac_objext \
22262 conftest$ac_exeext
22263 if ${ac_cv_search_bind+:} false; then :
22264 break
22266 done
22267 if ${ac_cv_search_bind+:} false; then :
22269 else
22270 ac_cv_search_bind=no
22272 rm conftest.$ac_ext
22273 LIBS=$ac_func_search_save_LIBS
22275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bind" >&5
22276 $as_echo "$ac_cv_search_bind" >&6; }
22277 ac_res=$ac_cv_search_bind
22278 if test "$ac_res" != no; then :
22279 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22281 else
22283 WEB_BUILD=
22288 for ac_func in sigaction sigemptyset sigaddset sigprocmask
22289 do :
22290 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22291 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22292 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22293 cat >>confdefs.h <<_ACEOF
22294 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22295 _ACEOF
22298 $as_echo "#define POSIX_SIGNALS /**/" >>confdefs.h
22301 else
22303 for ac_func in sigset sigrelse
22304 do :
22305 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22306 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22307 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22308 cat >>confdefs.h <<_ACEOF
22309 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22310 _ACEOF
22313 $as_echo "#define SYSV_SIGNALS /**/" >>confdefs.h
22317 done
22321 done
22324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing syslog" >&5
22325 $as_echo_n "checking for library containing syslog... " >&6; }
22326 if ${ac_cv_search_syslog+:} false; then :
22327 $as_echo_n "(cached) " >&6
22328 else
22329 ac_func_search_save_LIBS=$LIBS
22330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22331 /* end confdefs.h. */
22333 /* Override any GCC internal prototype to avoid an error.
22334 Use char because int might match the return type of a GCC
22335 builtin and then its argument prototype would still apply. */
22336 #ifdef __cplusplus
22337 extern "C"
22338 #endif
22339 char syslog ();
22341 main ()
22343 return syslog ();
22345 return 0;
22347 _ACEOF
22348 for ac_lib in '' bsd socket inet; do
22349 if test -z "$ac_lib"; then
22350 ac_res="none required"
22351 else
22352 ac_res=-l$ac_lib
22353 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22355 if ac_fn_c_try_link "$LINENO"; then :
22356 ac_cv_search_syslog=$ac_res
22358 rm -f core conftest.err conftest.$ac_objext \
22359 conftest$ac_exeext
22360 if ${ac_cv_search_syslog+:} false; then :
22361 break
22363 done
22364 if ${ac_cv_search_syslog+:} false; then :
22366 else
22367 ac_cv_search_syslog=no
22369 rm conftest.$ac_ext
22370 LIBS=$ac_func_search_save_LIBS
22372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_syslog" >&5
22373 $as_echo "$ac_cv_search_syslog" >&6; }
22374 ac_res=$ac_cv_search_syslog
22375 if test "$ac_res" != no; then :
22376 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22379 $as_echo "#define HAVE_SYSLOG 1" >>confdefs.h
22386 if test -n "$alpine_with_local_maildir" ; then
22387 alpine_local_maildir=$alpine_with_local_maildir
22388 elif test -d /var/spool/mail ; then
22389 alpine_local_maildir="/var/spool/mail"
22390 elif test -d /var/mail ; then
22391 alpine_local_maildir="/var/mail"
22392 else
22393 alpine_local_maildir="/usr/spool/mail"
22396 if test -n "$alpine_with_c_client_target" ; then
22397 alpine_c_client_target=$alpine_with_c_client_target
22401 cat >>confdefs.h <<_ACEOF
22402 #define SYSTYPE "$systype"
22403 _ACEOF
22406 cat >>confdefs.h <<_ACEOF
22407 #define C_FILESEP '$alpine_path_delim'
22408 _ACEOF
22411 cat >>confdefs.h <<_ACEOF
22412 #define S_FILESEP "$alpine_path_delim"
22413 _ACEOF
22416 cat >>confdefs.h <<_ACEOF
22417 #define MAILDIR "$alpine_local_maildir"
22418 _ACEOF
22421 cat >>confdefs.h <<_ACEOF
22422 #define MODE_READONLY $alpine_mode_readonly
22423 _ACEOF
22426 cat >>confdefs.h <<_ACEOF
22427 #define HTML_EXT "html"
22428 _ACEOF
22431 C_CLIENT_TARGET=$alpine_c_client_target
22433 C_CLIENT_WITH_IPV6=$c_client_ip6
22435 if test "x$alpine_SSLTYPE" = "xnone" ; then
22436 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * NOT Including SSL Support" >&5
22437 $as_echo "$as_me: * * * NOT Including SSL Support" >&6;}
22438 c_client_specials="${c_client_specials}SSLTYPE=none "
22439 else
22441 if test -n "$alpine_SSLCERTS" -a -d "$alpine_SSLCERTS" ; then
22442 certdir="$alpine_SSLCERTS"
22443 elif test -n "$alpine_SSLDIR" -a -d "${alpine_SSLDIR}/certs" ; then
22444 certdir="${alpine_SSLDIR}/certs"
22445 elif test -n "$alpine_SSLDIR" -a -d "${alpine_SSLDIR}/ssl/certs" ; then
22446 certdir="${alpine_SSLDIR}/ssl/certs"
22447 elif test -n "$alpine_SSLCERTS_ORIG" -a -d "$alpine_SSLCERTS_ORIG" ; then
22448 certdir="$alpine_SSLCERTS_ORIG"
22449 elif test -n "$alpine_SSLCERTS" ; then
22450 certdir="$alpine_SSLCERTS"
22451 else
22452 { $as_echo "$as_me:${as_lineno-$LINENO}: SSL Problem: certificate directory not found" >&5
22453 $as_echo "$as_me: SSL Problem: certificate directory not found" >&6;}
22456 if test "x$with_smime" != "xno" ; then
22457 if test -n "$certdir" ; then
22458 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * S/MIME support enabled" >&5
22459 $as_echo "$as_me: * * * S/MIME support enabled" >&6;}
22461 $as_echo "#define SMIME /**/" >>confdefs.h
22464 cat >>confdefs.h <<_ACEOF
22465 #define SMIME_SSLCERTS "$certdir"
22466 _ACEOF
22472 SSL_CERT_LINK="no"
22473 if test -z "`ls ${certdir} | $EGREP '^[0-9A-Fa-f]{8}\.[0-9]'`" ; then
22474 SSL_BUNDLE_EXISTS="no"
22475 SSL_PEM="factory.pem ca-bundle.pem cert.pem ca-bundle.crt ca-root-nss.crt"
22476 for SSL_BUNDLE in $SSL_PEM
22478 if test -f ${certdir}/${SSL_BUNDLE} ; then
22479 SSL_BUNDLE_EXISTS="yes"
22481 done
22482 else
22483 SSL_CERT_LINK="yes"
22486 if test "x$SSL_BUNDLE_EXISTS" = "xno" -a "x$SSL_CERT_LINK" = "xno" ; then
22487 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * No certificates found in \"${certdir}\"." >&5
22488 $as_echo "$as_me: * * * No certificates found in \"${certdir}\"." >&6;}
22489 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * This might indicate that CA certs did not get properly" >&5
22490 $as_echo "$as_me: * * * This might indicate that CA certs did not get properly" >&6;}
22491 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * installed. If you get certificate validation failures" >&5
22492 $as_echo "$as_me: * * * installed. If you get certificate validation failures" >&6;}
22493 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * in Alpine, this might be the reason for them." >&5
22494 $as_echo "$as_me: * * * in Alpine, this might be the reason for them." >&6;}
22497 if test -n "$alpine_SSLINCLUDE" ; then
22498 c_client_specials="${c_client_specials}SSLINCLUDE=$alpine_SSLINCLUDE "
22501 if test -n "$alpine_SSLLIB" ; then
22502 c_client_specials="${c_client_specials}SSLLIB=$alpine_SSLLIB "
22505 if test -n "$alpine_SSLDIR" ; then
22506 c_client_specials="${c_client_specials}SSLDIR=$alpine_SSLDIR "
22509 if test -n "$certdir" ; then
22510 c_client_specials="${c_client_specials}SSLCERTS=$certdir "
22513 if test -n "$alpine_SSLKEYS" ; then
22514 c_client_specials="${c_client_specials}SSLKEYS=$alpine_SSLKEYS "
22518 extra_auth_gss=
22519 if test "x$alpine_GSSTYPE" != "xnone" ; then
22520 extra_auth_gss=gss
22521 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * Including Kerberos5 functionality" >&5
22522 $as_echo "$as_me: * * * Including Kerberos5 functionality" >&6;}
22525 extra_auth_ntlm=
22526 if test "x$alpine_NTLM" != "xnone" ; then
22527 extra_auth_ntlm=ntl
22528 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * Including NTLM Authenticator" >&5
22529 $as_echo "$as_me: * * * Including NTLM Authenticator" >&6;}
22532 if test -n "$CPPFLAGS" ; then
22533 alpine_c_client_cflags="$alpine_c_client_cflags ${CPPFLAGS}"
22535 if test -n "$CFLAGS" ; then
22536 alpine_c_client_cflags="$alpine_c_client_cflags ${CFLAGS}"
22539 if test -n "$alpine_c_client_cflags" ; then
22540 C_CLIENT_CFLAGS=EXTRACFLAGS=\"$alpine_c_client_cflags\"
22544 if test -n "$LDFLAGS" ; then
22545 alpine_c_client_ldflags="$alpine_c_client_ldflags ${LDFLAGS}"
22547 if test -n "$LIBS" ; then
22548 alpine_c_client_ldflags="$alpine_c_client_ldflags ${LIBS}"
22551 if test -n "$alpine_c_client_ldflags" ; then
22552 C_CLIENT_LDFLAGS=EXTRALDFLAGS=\"$alpine_c_client_ldflags\"
22556 if test -n "$alpine_c_client_gccoptlevel" ; then
22557 C_CLIENT_GCCOPTLEVEL=GCCOPTLEVEL=\"$alpine_c_client_gccoptlevel\"
22561 c_client_auths="$extra_auth_gss $extra_auth_ntlm"
22562 C_CLIENT_AUTHS=$c_client_auths
22565 C_CLIENT_SPECIALS=$c_client_specials
22568 if test -z "$WEB_BUILD" ; then
22569 WEB_PUBCOOKIE_BUILD=
22570 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * TCL libraries could not be found." >&5
22571 $as_echo "$as_me: * * * TCL libraries could not be found." >&6;}
22572 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * WEB ALPINE COMPONENT WILL NOT BE BUILT." >&5
22573 $as_echo "$as_me: * * * WEB ALPINE COMPONENT WILL NOT BE BUILT." >&6;}
22574 else
22575 if test -n "$WEB_PUBCOOKIE_BUILD" ; then
22576 if test "x$alpine_GSSTYPE" = "xnone" ; then
22577 WEB_PUBCOOKIE_BUILD=
22578 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * Kerberos5 support not found." >&5
22579 $as_echo "$as_me: * * * Kerberos5 support not found." >&6;}
22580 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * WEB ALPINE PUBCOOKIE COMPONENT WILL NOT BE BUILT." >&5
22581 $as_echo "$as_me: * * * WEB ALPINE PUBCOOKIE COMPONENT WILL NOT BE BUILT." >&6;}
22582 elif test -z "$WEB_BINDIR" ; then
22583 WEB_PUBCOOKIE_BUILD=
22584 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * Web Alpine binary directory not provided." >&5
22585 $as_echo "$as_me: * * * Web Alpine binary directory not provided." >&6;}
22586 as_fn_error $? "* * * --with-pubcookie requires --with-web-bin=PATH.
22587 Please re-run configure with these options:
22588 --with-pubcookie --with-web-bin=/usr/local/libexec/alpine/bin" "$LINENO" 5
22589 else
22591 $as_echo "#define PUBCOOKIE 1" >>confdefs.h
22593 WEB_PUBCOOKIE_LIB=../pubcookie/libauthgssproxy.a
22594 WEB_PUBCOOKIE_LINK=gssapi_proxy.l
22610 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"
22612 cat >confcache <<\_ACEOF
22613 # This file is a shell script that caches the results of configure
22614 # tests run on this system so they can be shared between configure
22615 # scripts and configure runs, see configure's option --config-cache.
22616 # It is not useful on other systems. If it contains results you don't
22617 # want to keep, you may remove or edit it.
22619 # config.status only pays attention to the cache file if you give it
22620 # the --recheck option to rerun configure.
22622 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22623 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22624 # following values.
22626 _ACEOF
22628 # The following way of writing the cache mishandles newlines in values,
22629 # but we know of no workaround that is simple, portable, and efficient.
22630 # So, we kill variables containing newlines.
22631 # Ultrix sh set writes to stderr and can't be redirected directly,
22632 # and sets the high bit in the cache file unless we assign to the vars.
22634 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22635 eval ac_val=\$$ac_var
22636 case $ac_val in #(
22637 *${as_nl}*)
22638 case $ac_var in #(
22639 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
22640 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22641 esac
22642 case $ac_var in #(
22643 _ | IFS | as_nl) ;; #(
22644 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
22645 *) { eval $ac_var=; unset $ac_var;} ;;
22646 esac ;;
22647 esac
22648 done
22650 (set) 2>&1 |
22651 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22652 *${as_nl}ac_space=\ *)
22653 # `set' does not quote correctly, so add quotes: double-quote
22654 # substitution turns \\\\ into \\, and sed turns \\ into \.
22655 sed -n \
22656 "s/'/'\\\\''/g;
22657 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22658 ;; #(
22660 # `set' quotes correctly as required by POSIX, so do not add quotes.
22661 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22663 esac |
22664 sort
22666 sed '
22667 /^ac_cv_env_/b end
22668 t clear
22669 :clear
22670 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22671 t end
22672 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22673 :end' >>confcache
22674 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22675 if test -w "$cache_file"; then
22676 if test "x$cache_file" != "x/dev/null"; then
22677 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
22678 $as_echo "$as_me: updating cache $cache_file" >&6;}
22679 if test ! -f "$cache_file" || test -h "$cache_file"; then
22680 cat confcache >"$cache_file"
22681 else
22682 case $cache_file in #(
22683 */* | ?:*)
22684 mv -f confcache "$cache_file"$$ &&
22685 mv -f "$cache_file"$$ "$cache_file" ;; #(
22687 mv -f confcache "$cache_file" ;;
22688 esac
22691 else
22692 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
22693 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22696 rm -f confcache
22698 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22699 # Let make expand exec_prefix.
22700 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22702 DEFS=-DHAVE_CONFIG_H
22704 ac_libobjs=
22705 ac_ltlibobjs=
22707 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22708 # 1. Remove the extension, and $U if already installed.
22709 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22710 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
22711 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22712 # will be set to the directory where LIBOBJS objects are built.
22713 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22714 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
22715 done
22716 LIBOBJS=$ac_libobjs
22718 LTLIBOBJS=$ac_ltlibobjs
22721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
22722 $as_echo_n "checking that generated files are newer than configure... " >&6; }
22723 if test -n "$am_sleep_pid"; then
22724 # Hide warnings about reused PIDs.
22725 wait $am_sleep_pid 2>/dev/null
22727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
22728 $as_echo "done" >&6; }
22729 if test -n "$EXEEXT"; then
22730 am__EXEEXT_TRUE=
22731 am__EXEEXT_FALSE='#'
22732 else
22733 am__EXEEXT_TRUE='#'
22734 am__EXEEXT_FALSE=
22737 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22738 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
22739 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22741 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22742 as_fn_error $? "conditional \"AMDEP\" was never defined.
22743 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22745 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22746 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
22747 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22749 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22750 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
22751 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22754 : "${CONFIG_STATUS=./config.status}"
22755 ac_write_fail=0
22756 ac_clean_files_save=$ac_clean_files
22757 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22758 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
22759 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
22760 as_write_fail=0
22761 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
22762 #! $SHELL
22763 # Generated by $as_me.
22764 # Run this file to recreate the current configuration.
22765 # Compiler output produced by configure, useful for debugging
22766 # configure, is in config.log if it exists.
22768 debug=false
22769 ac_cs_recheck=false
22770 ac_cs_silent=false
22772 SHELL=\${CONFIG_SHELL-$SHELL}
22773 export SHELL
22774 _ASEOF
22775 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
22776 ## -------------------- ##
22777 ## M4sh Initialization. ##
22778 ## -------------------- ##
22780 # Be more Bourne compatible
22781 DUALCASE=1; export DUALCASE # for MKS sh
22782 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22783 emulate sh
22784 NULLCMD=:
22785 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22786 # is contrary to our usage. Disable this feature.
22787 alias -g '${1+"$@"}'='"$@"'
22788 setopt NO_GLOB_SUBST
22789 else
22790 case `(set -o) 2>/dev/null` in #(
22791 *posix*) :
22792 set -o posix ;; #(
22793 *) :
22795 esac
22799 as_nl='
22801 export as_nl
22802 # Printing a long string crashes Solaris 7 /usr/bin/printf.
22803 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
22804 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
22805 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
22806 # Prefer a ksh shell builtin over an external printf program on Solaris,
22807 # but without wasting forks for bash or zsh.
22808 if test -z "$BASH_VERSION$ZSH_VERSION" \
22809 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
22810 as_echo='print -r --'
22811 as_echo_n='print -rn --'
22812 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
22813 as_echo='printf %s\n'
22814 as_echo_n='printf %s'
22815 else
22816 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
22817 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
22818 as_echo_n='/usr/ucb/echo -n'
22819 else
22820 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
22821 as_echo_n_body='eval
22822 arg=$1;
22823 case $arg in #(
22824 *"$as_nl"*)
22825 expr "X$arg" : "X\\(.*\\)$as_nl";
22826 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
22827 esac;
22828 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
22830 export as_echo_n_body
22831 as_echo_n='sh -c $as_echo_n_body as_echo'
22833 export as_echo_body
22834 as_echo='sh -c $as_echo_body as_echo'
22837 # The user is always right.
22838 if test "${PATH_SEPARATOR+set}" != set; then
22839 PATH_SEPARATOR=:
22840 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22841 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22842 PATH_SEPARATOR=';'
22847 # IFS
22848 # We need space, tab and new line, in precisely that order. Quoting is
22849 # there to prevent editors from complaining about space-tab.
22850 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22851 # splitting by setting IFS to empty value.)
22852 IFS=" "" $as_nl"
22854 # Find who we are. Look in the path if we contain no directory separator.
22855 as_myself=
22856 case $0 in #((
22857 *[\\/]* ) as_myself=$0 ;;
22858 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22859 for as_dir in $PATH
22861 IFS=$as_save_IFS
22862 test -z "$as_dir" && as_dir=.
22863 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22864 done
22865 IFS=$as_save_IFS
22868 esac
22869 # We did not find ourselves, most probably we were run as `sh COMMAND'
22870 # in which case we are not to be found in the path.
22871 if test "x$as_myself" = x; then
22872 as_myself=$0
22874 if test ! -f "$as_myself"; then
22875 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22876 exit 1
22879 # Unset variables that we do not need and which cause bugs (e.g. in
22880 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
22881 # suppresses any "Segmentation fault" message there. '((' could
22882 # trigger a bug in pdksh 5.2.14.
22883 for as_var in BASH_ENV ENV MAIL MAILPATH
22884 do eval test x\${$as_var+set} = xset \
22885 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
22886 done
22887 PS1='$ '
22888 PS2='> '
22889 PS4='+ '
22891 # NLS nuisances.
22892 LC_ALL=C
22893 export LC_ALL
22894 LANGUAGE=C
22895 export LANGUAGE
22897 # CDPATH.
22898 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22901 # as_fn_error STATUS ERROR [LINENO LOG_FD]
22902 # ----------------------------------------
22903 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
22904 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22905 # script with STATUS, using 1 if that was 0.
22906 as_fn_error ()
22908 as_status=$1; test $as_status -eq 0 && as_status=1
22909 if test "$4"; then
22910 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22911 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
22913 $as_echo "$as_me: error: $2" >&2
22914 as_fn_exit $as_status
22915 } # as_fn_error
22918 # as_fn_set_status STATUS
22919 # -----------------------
22920 # Set $? to STATUS, without forking.
22921 as_fn_set_status ()
22923 return $1
22924 } # as_fn_set_status
22926 # as_fn_exit STATUS
22927 # -----------------
22928 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
22929 as_fn_exit ()
22931 set +e
22932 as_fn_set_status $1
22933 exit $1
22934 } # as_fn_exit
22936 # as_fn_unset VAR
22937 # ---------------
22938 # Portably unset VAR.
22939 as_fn_unset ()
22941 { eval $1=; unset $1;}
22943 as_unset=as_fn_unset
22944 # as_fn_append VAR VALUE
22945 # ----------------------
22946 # Append the text in VALUE to the end of the definition contained in VAR. Take
22947 # advantage of any shell optimizations that allow amortized linear growth over
22948 # repeated appends, instead of the typical quadratic growth present in naive
22949 # implementations.
22950 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
22951 eval 'as_fn_append ()
22953 eval $1+=\$2
22955 else
22956 as_fn_append ()
22958 eval $1=\$$1\$2
22960 fi # as_fn_append
22962 # as_fn_arith ARG...
22963 # ------------------
22964 # Perform arithmetic evaluation on the ARGs, and store the result in the
22965 # global $as_val. Take advantage of shells that can avoid forks. The arguments
22966 # must be portable across $(()) and expr.
22967 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
22968 eval 'as_fn_arith ()
22970 as_val=$(( $* ))
22972 else
22973 as_fn_arith ()
22975 as_val=`expr "$@" || test $? -eq 1`
22977 fi # as_fn_arith
22980 if expr a : '\(a\)' >/dev/null 2>&1 &&
22981 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22982 as_expr=expr
22983 else
22984 as_expr=false
22987 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22988 as_basename=basename
22989 else
22990 as_basename=false
22993 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22994 as_dirname=dirname
22995 else
22996 as_dirname=false
22999 as_me=`$as_basename -- "$0" ||
23000 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23001 X"$0" : 'X\(//\)$' \| \
23002 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23003 $as_echo X/"$0" |
23004 sed '/^.*\/\([^/][^/]*\)\/*$/{
23005 s//\1/
23008 /^X\/\(\/\/\)$/{
23009 s//\1/
23012 /^X\/\(\/\).*/{
23013 s//\1/
23016 s/.*/./; q'`
23018 # Avoid depending upon Character Ranges.
23019 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23020 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23021 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23022 as_cr_digits='0123456789'
23023 as_cr_alnum=$as_cr_Letters$as_cr_digits
23025 ECHO_C= ECHO_N= ECHO_T=
23026 case `echo -n x` in #(((((
23027 -n*)
23028 case `echo 'xy\c'` in
23029 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23030 xy) ECHO_C='\c';;
23031 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
23032 ECHO_T=' ';;
23033 esac;;
23035 ECHO_N='-n';;
23036 esac
23038 rm -f conf$$ conf$$.exe conf$$.file
23039 if test -d conf$$.dir; then
23040 rm -f conf$$.dir/conf$$.file
23041 else
23042 rm -f conf$$.dir
23043 mkdir conf$$.dir 2>/dev/null
23045 if (echo >conf$$.file) 2>/dev/null; then
23046 if ln -s conf$$.file conf$$ 2>/dev/null; then
23047 as_ln_s='ln -s'
23048 # ... but there are two gotchas:
23049 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23050 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23051 # In both cases, we have to default to `cp -pR'.
23052 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23053 as_ln_s='cp -pR'
23054 elif ln conf$$.file conf$$ 2>/dev/null; then
23055 as_ln_s=ln
23056 else
23057 as_ln_s='cp -pR'
23059 else
23060 as_ln_s='cp -pR'
23062 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23063 rmdir conf$$.dir 2>/dev/null
23066 # as_fn_mkdir_p
23067 # -------------
23068 # Create "$as_dir" as a directory, including parents if necessary.
23069 as_fn_mkdir_p ()
23072 case $as_dir in #(
23073 -*) as_dir=./$as_dir;;
23074 esac
23075 test -d "$as_dir" || eval $as_mkdir_p || {
23076 as_dirs=
23077 while :; do
23078 case $as_dir in #(
23079 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23080 *) as_qdir=$as_dir;;
23081 esac
23082 as_dirs="'$as_qdir' $as_dirs"
23083 as_dir=`$as_dirname -- "$as_dir" ||
23084 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23085 X"$as_dir" : 'X\(//\)[^/]' \| \
23086 X"$as_dir" : 'X\(//\)$' \| \
23087 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23088 $as_echo X"$as_dir" |
23089 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23090 s//\1/
23093 /^X\(\/\/\)[^/].*/{
23094 s//\1/
23097 /^X\(\/\/\)$/{
23098 s//\1/
23101 /^X\(\/\).*/{
23102 s//\1/
23105 s/.*/./; q'`
23106 test -d "$as_dir" && break
23107 done
23108 test -z "$as_dirs" || eval "mkdir $as_dirs"
23109 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
23112 } # as_fn_mkdir_p
23113 if mkdir -p . 2>/dev/null; then
23114 as_mkdir_p='mkdir -p "$as_dir"'
23115 else
23116 test -d ./-p && rmdir ./-p
23117 as_mkdir_p=false
23121 # as_fn_executable_p FILE
23122 # -----------------------
23123 # Test if FILE is an executable regular file.
23124 as_fn_executable_p ()
23126 test -f "$1" && test -x "$1"
23127 } # as_fn_executable_p
23128 as_test_x='test -x'
23129 as_executable_p=as_fn_executable_p
23131 # Sed expression to map a string onto a valid CPP name.
23132 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23134 # Sed expression to map a string onto a valid variable name.
23135 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23138 exec 6>&1
23139 ## ----------------------------------- ##
23140 ## Main body of $CONFIG_STATUS script. ##
23141 ## ----------------------------------- ##
23142 _ASEOF
23143 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
23145 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23146 # Save the log message, to keep $0 and so on meaningful, and to
23147 # report actual input values of CONFIG_FILES etc. instead of their
23148 # values after options handling.
23149 ac_log="
23150 This file was extended by alpine $as_me 2.22, which was
23151 generated by GNU Autoconf 2.69. Invocation command line was
23153 CONFIG_FILES = $CONFIG_FILES
23154 CONFIG_HEADERS = $CONFIG_HEADERS
23155 CONFIG_LINKS = $CONFIG_LINKS
23156 CONFIG_COMMANDS = $CONFIG_COMMANDS
23157 $ $0 $@
23159 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23162 _ACEOF
23164 case $ac_config_files in *"
23165 "*) set x $ac_config_files; shift; ac_config_files=$*;;
23166 esac
23168 case $ac_config_headers in *"
23169 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
23170 esac
23173 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23174 # Files that config.status was made for.
23175 config_files="$ac_config_files"
23176 config_headers="$ac_config_headers"
23177 config_commands="$ac_config_commands"
23179 _ACEOF
23181 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23182 ac_cs_usage="\
23183 \`$as_me' instantiates files and other configuration actions
23184 from templates according to the current configuration. Unless the files
23185 and actions are specified as TAGs, all are instantiated by default.
23187 Usage: $0 [OPTION]... [TAG]...
23189 -h, --help print this help, then exit
23190 -V, --version print version number and configuration settings, then exit
23191 --config print configuration, then exit
23192 -q, --quiet, --silent
23193 do not print progress messages
23194 -d, --debug don't remove temporary files
23195 --recheck update $as_me by reconfiguring in the same conditions
23196 --file=FILE[:TEMPLATE]
23197 instantiate the configuration file FILE
23198 --header=FILE[:TEMPLATE]
23199 instantiate the configuration header FILE
23201 Configuration files:
23202 $config_files
23204 Configuration headers:
23205 $config_headers
23207 Configuration commands:
23208 $config_commands
23210 Report bugs to <chappa@washington.edu>."
23212 _ACEOF
23213 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23214 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
23215 ac_cs_version="\\
23216 alpine config.status 2.22
23217 configured by $0, generated by GNU Autoconf 2.69,
23218 with options \\"\$ac_cs_config\\"
23220 Copyright (C) 2012 Free Software Foundation, Inc.
23221 This config.status script is free software; the Free Software Foundation
23222 gives unlimited permission to copy, distribute and modify it."
23224 ac_pwd='$ac_pwd'
23225 srcdir='$srcdir'
23226 INSTALL='$INSTALL'
23227 MKDIR_P='$MKDIR_P'
23228 AWK='$AWK'
23229 test -n "\$AWK" || AWK=awk
23230 _ACEOF
23232 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23233 # The default lists apply if the user does not specify any file.
23234 ac_need_defaults=:
23235 while test $# != 0
23237 case $1 in
23238 --*=?*)
23239 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23240 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23241 ac_shift=:
23243 --*=)
23244 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23245 ac_optarg=
23246 ac_shift=:
23249 ac_option=$1
23250 ac_optarg=$2
23251 ac_shift=shift
23253 esac
23255 case $ac_option in
23256 # Handling of the options.
23257 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23258 ac_cs_recheck=: ;;
23259 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23260 $as_echo "$ac_cs_version"; exit ;;
23261 --config | --confi | --conf | --con | --co | --c )
23262 $as_echo "$ac_cs_config"; exit ;;
23263 --debug | --debu | --deb | --de | --d | -d )
23264 debug=: ;;
23265 --file | --fil | --fi | --f )
23266 $ac_shift
23267 case $ac_optarg in
23268 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23269 '') as_fn_error $? "missing file argument" ;;
23270 esac
23271 as_fn_append CONFIG_FILES " '$ac_optarg'"
23272 ac_need_defaults=false;;
23273 --header | --heade | --head | --hea )
23274 $ac_shift
23275 case $ac_optarg in
23276 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23277 esac
23278 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
23279 ac_need_defaults=false;;
23280 --he | --h)
23281 # Conflict between --help and --header
23282 as_fn_error $? "ambiguous option: \`$1'
23283 Try \`$0 --help' for more information.";;
23284 --help | --hel | -h )
23285 $as_echo "$ac_cs_usage"; exit ;;
23286 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23287 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23288 ac_cs_silent=: ;;
23290 # This is an error.
23291 -*) as_fn_error $? "unrecognized option: \`$1'
23292 Try \`$0 --help' for more information." ;;
23294 *) as_fn_append ac_config_targets " $1"
23295 ac_need_defaults=false ;;
23297 esac
23298 shift
23299 done
23301 ac_configure_extra_args=
23303 if $ac_cs_silent; then
23304 exec 6>/dev/null
23305 ac_configure_extra_args="$ac_configure_extra_args --silent"
23308 _ACEOF
23309 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23310 if \$ac_cs_recheck; then
23311 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23312 shift
23313 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
23314 CONFIG_SHELL='$SHELL'
23315 export CONFIG_SHELL
23316 exec "\$@"
23319 _ACEOF
23320 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23321 exec 5>>config.log
23323 echo
23324 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23325 ## Running $as_me. ##
23326 _ASBOX
23327 $as_echo "$ac_log"
23328 } >&5
23330 _ACEOF
23331 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23333 # INIT-COMMANDS
23335 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23338 # The HP-UX ksh and POSIX shell print the target directory to stdout
23339 # if CDPATH is set.
23340 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
23342 sed_quote_subst='$sed_quote_subst'
23343 double_quote_subst='$double_quote_subst'
23344 delay_variable_subst='$delay_variable_subst'
23345 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
23346 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
23347 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
23348 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
23349 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
23350 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
23351 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
23352 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
23353 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
23354 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
23355 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
23356 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
23357 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
23358 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
23359 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
23360 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
23361 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
23362 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
23363 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
23364 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
23365 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
23366 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
23367 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
23368 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
23369 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
23370 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
23371 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
23372 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
23373 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
23374 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
23375 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
23376 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
23377 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
23378 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
23379 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
23380 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
23381 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
23382 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
23383 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
23384 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
23385 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
23386 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
23387 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
23388 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
23389 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
23390 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
23391 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
23392 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
23393 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
23394 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
23395 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
23396 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
23397 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
23398 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
23399 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
23400 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
23401 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
23402 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
23403 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"`'
23404 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
23405 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
23406 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
23407 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
23408 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
23409 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
23410 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
23411 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
23412 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
23413 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
23414 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
23415 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
23416 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
23417 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
23418 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
23419 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
23420 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
23421 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
23422 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
23423 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
23424 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
23425 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
23426 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
23427 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
23428 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
23429 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
23430 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
23431 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
23432 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
23433 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
23434 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
23435 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
23436 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
23437 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
23438 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
23439 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
23440 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
23441 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
23442 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
23443 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
23444 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
23445 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
23446 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
23447 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
23448 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
23449 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
23450 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
23451 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
23452 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
23453 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
23454 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
23455 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
23456 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
23457 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
23458 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
23459 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
23460 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
23461 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
23462 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
23463 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
23464 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
23465 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
23466 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
23467 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
23468 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
23469 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
23470 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
23471 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
23472 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
23473 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
23474 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
23475 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
23476 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
23477 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
23478 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
23479 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
23481 LTCC='$LTCC'
23482 LTCFLAGS='$LTCFLAGS'
23483 compiler='$compiler_DEFAULT'
23485 # A function that is used when there is no print builtin or printf.
23486 func_fallback_echo ()
23488 eval 'cat <<_LTECHO_EOF
23490 _LTECHO_EOF'
23493 # Quote evaled strings.
23494 for var in SHELL \
23495 ECHO \
23496 PATH_SEPARATOR \
23497 SED \
23498 GREP \
23499 EGREP \
23500 FGREP \
23501 LD \
23502 NM \
23503 LN_S \
23504 lt_SP2NL \
23505 lt_NL2SP \
23506 reload_flag \
23507 OBJDUMP \
23508 deplibs_check_method \
23509 file_magic_cmd \
23510 file_magic_glob \
23511 want_nocaseglob \
23512 DLLTOOL \
23513 sharedlib_from_linklib_cmd \
23514 AR \
23515 AR_FLAGS \
23516 archiver_list_spec \
23517 STRIP \
23518 RANLIB \
23519 CC \
23520 CFLAGS \
23521 compiler \
23522 lt_cv_sys_global_symbol_pipe \
23523 lt_cv_sys_global_symbol_to_cdecl \
23524 lt_cv_sys_global_symbol_to_import \
23525 lt_cv_sys_global_symbol_to_c_name_address \
23526 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
23527 lt_cv_nm_interface \
23528 nm_file_list_spec \
23529 lt_cv_truncate_bin \
23530 lt_prog_compiler_no_builtin_flag \
23531 lt_prog_compiler_pic \
23532 lt_prog_compiler_wl \
23533 lt_prog_compiler_static \
23534 lt_cv_prog_compiler_c_o \
23535 need_locks \
23536 MANIFEST_TOOL \
23537 DSYMUTIL \
23538 NMEDIT \
23539 LIPO \
23540 OTOOL \
23541 OTOOL64 \
23542 shrext_cmds \
23543 export_dynamic_flag_spec \
23544 whole_archive_flag_spec \
23545 compiler_needs_object \
23546 with_gnu_ld \
23547 allow_undefined_flag \
23548 no_undefined_flag \
23549 hardcode_libdir_flag_spec \
23550 hardcode_libdir_separator \
23551 exclude_expsyms \
23552 include_expsyms \
23553 file_list_spec \
23554 variables_saved_for_relink \
23555 libname_spec \
23556 library_names_spec \
23557 soname_spec \
23558 install_override_mode \
23559 finish_eval \
23560 old_striplib \
23561 striplib; do
23562 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
23563 *[\\\\\\\`\\"\\\$]*)
23564 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
23567 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23569 esac
23570 done
23572 # Double-quote double-evaled strings.
23573 for var in reload_cmds \
23574 old_postinstall_cmds \
23575 old_postuninstall_cmds \
23576 old_archive_cmds \
23577 extract_expsyms_cmds \
23578 old_archive_from_new_cmds \
23579 old_archive_from_expsyms_cmds \
23580 archive_cmds \
23581 archive_expsym_cmds \
23582 module_cmds \
23583 module_expsym_cmds \
23584 export_symbols_cmds \
23585 prelink_cmds \
23586 postlink_cmds \
23587 postinstall_cmds \
23588 postuninstall_cmds \
23589 finish_cmds \
23590 sys_lib_search_path_spec \
23591 configure_time_dlsearch_path \
23592 configure_time_lt_sys_library_path; do
23593 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
23594 *[\\\\\\\`\\"\\\$]*)
23595 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
23598 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23600 esac
23601 done
23603 ac_aux_dir='$ac_aux_dir'
23605 # See if we are running on zsh, and set the options that allow our
23606 # commands through without removal of \ escapes INIT.
23607 if test -n "\${ZSH_VERSION+set}"; then
23608 setopt NO_GLOB_SUBST
23612 PACKAGE='$PACKAGE'
23613 VERSION='$VERSION'
23614 RM='$RM'
23615 ofile='$ofile'
23619 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
23620 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
23621 # from automake < 1.5.
23622 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
23623 # Capture the value of LINGUAS because we need it to compute CATALOGS.
23624 LINGUAS="${LINGUAS-%UNSET%}"
23627 _ACEOF
23629 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23631 # Handling of arguments.
23632 for ac_config_target in $ac_config_targets
23634 case $ac_config_target in
23635 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
23636 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23637 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
23638 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
23639 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
23640 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
23641 "$REGEX_MAKEFILE") CONFIG_FILES="$CONFIG_FILES $REGEX_MAKEFILE" ;;
23642 "pith/osdep/Makefile") CONFIG_FILES="$CONFIG_FILES pith/osdep/Makefile" ;;
23643 "pith/charconv/Makefile") CONFIG_FILES="$CONFIG_FILES pith/charconv/Makefile" ;;
23644 "pith/Makefile") CONFIG_FILES="$CONFIG_FILES pith/Makefile" ;;
23645 "pico/osdep/Makefile") CONFIG_FILES="$CONFIG_FILES pico/osdep/Makefile" ;;
23646 "pico/Makefile") CONFIG_FILES="$CONFIG_FILES pico/Makefile" ;;
23647 "alpine/osdep/Makefile") CONFIG_FILES="$CONFIG_FILES alpine/osdep/Makefile" ;;
23648 "alpine/Makefile") CONFIG_FILES="$CONFIG_FILES alpine/Makefile" ;;
23649 "web/src/Makefile") CONFIG_FILES="$CONFIG_FILES web/src/Makefile" ;;
23650 "web/src/pubcookie/Makefile") CONFIG_FILES="$CONFIG_FILES web/src/pubcookie/Makefile" ;;
23651 "web/src/alpined.d/Makefile") CONFIG_FILES="$CONFIG_FILES web/src/alpined.d/Makefile" ;;
23652 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23654 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
23655 esac
23656 done
23659 # If the user did not use the arguments to specify the items to instantiate,
23660 # then the envvar interface is used. Set only those that are not.
23661 # We use the long form for the default assignment because of an extremely
23662 # bizarre bug on SunOS 4.1.3.
23663 if $ac_need_defaults; then
23664 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23665 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23666 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23669 # Have a temporary directory for convenience. Make it in the build tree
23670 # simply because there is no reason against having it here, and in addition,
23671 # creating and moving files from /tmp can sometimes cause problems.
23672 # Hook for its removal unless debugging.
23673 # Note that there is a small window in which the directory will not be cleaned:
23674 # after its creation but before its name has been assigned to `$tmp'.
23675 $debug ||
23677 tmp= ac_tmp=
23678 trap 'exit_status=$?
23679 : "${ac_tmp:=$tmp}"
23680 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
23682 trap 'as_fn_exit 1' 1 2 13 15
23684 # Create a (secure) tmp directory for tmp files.
23687 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23688 test -d "$tmp"
23689 } ||
23691 tmp=./conf$$-$RANDOM
23692 (umask 077 && mkdir "$tmp")
23693 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
23694 ac_tmp=$tmp
23696 # Set up the scripts for CONFIG_FILES section.
23697 # No need to generate them if there are no CONFIG_FILES.
23698 # This happens for instance with `./config.status config.h'.
23699 if test -n "$CONFIG_FILES"; then
23702 ac_cr=`echo X | tr X '\015'`
23703 # On cygwin, bash can eat \r inside `` if the user requested igncr.
23704 # But we know of no other shell where ac_cr would be empty at this
23705 # point, so we can use a bashism as a fallback.
23706 if test "x$ac_cr" = x; then
23707 eval ac_cr=\$\'\\r\'
23709 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23710 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23711 ac_cs_awk_cr='\\r'
23712 else
23713 ac_cs_awk_cr=$ac_cr
23716 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
23717 _ACEOF
23721 echo "cat >conf$$subs.awk <<_ACEOF" &&
23722 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23723 echo "_ACEOF"
23724 } >conf$$subs.sh ||
23725 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23726 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
23727 ac_delim='%!_!# '
23728 for ac_last_try in false false false false false :; do
23729 . ./conf$$subs.sh ||
23730 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23732 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
23733 if test $ac_delim_n = $ac_delim_num; then
23734 break
23735 elif $ac_last_try; then
23736 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23737 else
23738 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23740 done
23741 rm -f conf$$subs.sh
23743 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23744 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
23745 _ACEOF
23746 sed -n '
23748 s/^/S["/; s/!.*/"]=/
23751 s/^[^!]*!//
23752 :repl
23753 t repl
23754 s/'"$ac_delim"'$//
23755 t delim
23758 s/\(.\{148\}\)..*/\1/
23759 t more1
23760 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
23763 b repl
23764 :more1
23765 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23768 s/.\{148\}//
23769 t nl
23770 :delim
23772 s/\(.\{148\}\)..*/\1/
23773 t more2
23774 s/["\\]/\\&/g; s/^/"/; s/$/"/
23777 :more2
23778 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23781 s/.\{148\}//
23782 t delim
23783 ' <conf$$subs.awk | sed '
23784 /^[^""]/{
23786 s/\n//
23788 ' >>$CONFIG_STATUS || ac_write_fail=1
23789 rm -f conf$$subs.awk
23790 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23791 _ACAWK
23792 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
23793 for (key in S) S_is_set[key] = 1
23794 FS = "\a"
23798 line = $ 0
23799 nfields = split(line, field, "@")
23800 substed = 0
23801 len = length(field[1])
23802 for (i = 2; i < nfields; i++) {
23803 key = field[i]
23804 keylen = length(key)
23805 if (S_is_set[key]) {
23806 value = S[key]
23807 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23808 len += length(value) + length(field[++i])
23809 substed = 1
23810 } else
23811 len += 1 + keylen
23814 print line
23817 _ACAWK
23818 _ACEOF
23819 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23820 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23821 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
23822 else
23824 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
23825 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
23826 _ACEOF
23828 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
23829 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
23830 # trailing colons and then remove the whole line if VPATH becomes empty
23831 # (actually we leave an empty line to preserve line numbers).
23832 if test "x$srcdir" = x.; then
23833 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
23835 s///
23836 s/^/:/
23837 s/[ ]*$/:/
23838 s/:\$(srcdir):/:/g
23839 s/:\${srcdir}:/:/g
23840 s/:@srcdir@:/:/g
23841 s/^:*//
23842 s/:*$//
23844 s/\(=[ ]*\).*/\1/
23846 s/\n//
23847 s/^[^=]*=[ ]*$//
23851 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23852 fi # test -n "$CONFIG_FILES"
23854 # Set up the scripts for CONFIG_HEADERS section.
23855 # No need to generate them if there are no CONFIG_HEADERS.
23856 # This happens for instance with `./config.status Makefile'.
23857 if test -n "$CONFIG_HEADERS"; then
23858 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
23859 BEGIN {
23860 _ACEOF
23862 # Transform confdefs.h into an awk script `defines.awk', embedded as
23863 # here-document in config.status, that substitutes the proper values into
23864 # config.h.in to produce config.h.
23866 # Create a delimiter string that does not exist in confdefs.h, to ease
23867 # handling of long lines.
23868 ac_delim='%!_!# '
23869 for ac_last_try in false false :; do
23870 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
23871 if test -z "$ac_tt"; then
23872 break
23873 elif $ac_last_try; then
23874 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
23875 else
23876 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23878 done
23880 # For the awk script, D is an array of macro values keyed by name,
23881 # likewise P contains macro parameters if any. Preserve backslash
23882 # newline sequences.
23884 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23885 sed -n '
23886 s/.\{148\}/&'"$ac_delim"'/g
23887 t rset
23888 :rset
23889 s/^[ ]*#[ ]*define[ ][ ]*/ /
23890 t def
23892 :def
23893 s/\\$//
23894 t bsnl
23895 s/["\\]/\\&/g
23896 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23897 D["\1"]=" \3"/p
23898 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
23900 :bsnl
23901 s/["\\]/\\&/g
23902 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23903 D["\1"]=" \3\\\\\\n"\\/p
23904 t cont
23905 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
23906 t cont
23908 :cont
23910 s/.\{148\}/&'"$ac_delim"'/g
23911 t clear
23912 :clear
23913 s/\\$//
23914 t bsnlc
23915 s/["\\]/\\&/g; s/^/"/; s/$/"/p
23917 :bsnlc
23918 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
23919 b cont
23920 ' <confdefs.h | sed '
23921 s/'"$ac_delim"'/"\\\
23922 "/g' >>$CONFIG_STATUS || ac_write_fail=1
23924 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23925 for (key in D) D_is_set[key] = 1
23926 FS = "\a"
23928 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23929 line = \$ 0
23930 split(line, arg, " ")
23931 if (arg[1] == "#") {
23932 defundef = arg[2]
23933 mac1 = arg[3]
23934 } else {
23935 defundef = substr(arg[1], 2)
23936 mac1 = arg[2]
23938 split(mac1, mac2, "(") #)
23939 macro = mac2[1]
23940 prefix = substr(line, 1, index(line, defundef) - 1)
23941 if (D_is_set[macro]) {
23942 # Preserve the white space surrounding the "#".
23943 print prefix "define", macro P[macro] D[macro]
23944 next
23945 } else {
23946 # Replace #undef with comments. This is necessary, for example,
23947 # in the case of _POSIX_SOURCE, which is predefined and required
23948 # on some systems where configure will not decide to define it.
23949 if (defundef == "undef") {
23950 print "/*", prefix defundef, macro, "*/"
23951 next
23955 { print }
23956 _ACAWK
23957 _ACEOF
23958 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23959 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
23960 fi # test -n "$CONFIG_HEADERS"
23963 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
23964 shift
23965 for ac_tag
23967 case $ac_tag in
23968 :[FHLC]) ac_mode=$ac_tag; continue;;
23969 esac
23970 case $ac_mode$ac_tag in
23971 :[FHL]*:*);;
23972 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
23973 :[FH]-) ac_tag=-:-;;
23974 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23975 esac
23976 ac_save_IFS=$IFS
23977 IFS=:
23978 set x $ac_tag
23979 IFS=$ac_save_IFS
23980 shift
23981 ac_file=$1
23982 shift
23984 case $ac_mode in
23985 :L) ac_source=$1;;
23986 :[FH])
23987 ac_file_inputs=
23988 for ac_f
23990 case $ac_f in
23991 -) ac_f="$ac_tmp/stdin";;
23992 *) # Look for the file first in the build tree, then in the source tree
23993 # (if the path is not absolute). The absolute path cannot be DOS-style,
23994 # because $ac_f cannot contain `:'.
23995 test -f "$ac_f" ||
23996 case $ac_f in
23997 [\\/$]*) false;;
23998 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23999 esac ||
24000 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
24001 esac
24002 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
24003 as_fn_append ac_file_inputs " '$ac_f'"
24004 done
24006 # Let's still pretend it is `configure' which instantiates (i.e., don't
24007 # use $as_me), people would be surprised to read:
24008 # /* config.h. Generated by config.status. */
24009 configure_input='Generated from '`
24010 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
24011 `' by configure.'
24012 if test x"$ac_file" != x-; then
24013 configure_input="$ac_file. $configure_input"
24014 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
24015 $as_echo "$as_me: creating $ac_file" >&6;}
24017 # Neutralize special characters interpreted by sed in replacement strings.
24018 case $configure_input in #(
24019 *\&* | *\|* | *\\* )
24020 ac_sed_conf_input=`$as_echo "$configure_input" |
24021 sed 's/[\\\\&|]/\\\\&/g'`;; #(
24022 *) ac_sed_conf_input=$configure_input;;
24023 esac
24025 case $ac_tag in
24026 *:-:* | *:-) cat >"$ac_tmp/stdin" \
24027 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
24028 esac
24030 esac
24032 ac_dir=`$as_dirname -- "$ac_file" ||
24033 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24034 X"$ac_file" : 'X\(//\)[^/]' \| \
24035 X"$ac_file" : 'X\(//\)$' \| \
24036 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24037 $as_echo X"$ac_file" |
24038 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24039 s//\1/
24042 /^X\(\/\/\)[^/].*/{
24043 s//\1/
24046 /^X\(\/\/\)$/{
24047 s//\1/
24050 /^X\(\/\).*/{
24051 s//\1/
24054 s/.*/./; q'`
24055 as_dir="$ac_dir"; as_fn_mkdir_p
24056 ac_builddir=.
24058 case "$ac_dir" in
24059 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24061 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
24062 # A ".." for each directory in $ac_dir_suffix.
24063 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
24064 case $ac_top_builddir_sub in
24065 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24066 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24067 esac ;;
24068 esac
24069 ac_abs_top_builddir=$ac_pwd
24070 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24071 # for backward compatibility:
24072 ac_top_builddir=$ac_top_build_prefix
24074 case $srcdir in
24075 .) # We are building in place.
24076 ac_srcdir=.
24077 ac_top_srcdir=$ac_top_builddir_sub
24078 ac_abs_top_srcdir=$ac_pwd ;;
24079 [\\/]* | ?:[\\/]* ) # Absolute name.
24080 ac_srcdir=$srcdir$ac_dir_suffix;
24081 ac_top_srcdir=$srcdir
24082 ac_abs_top_srcdir=$srcdir ;;
24083 *) # Relative name.
24084 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24085 ac_top_srcdir=$ac_top_build_prefix$srcdir
24086 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24087 esac
24088 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24091 case $ac_mode in
24094 # CONFIG_FILE
24097 case $INSTALL in
24098 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24099 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24100 esac
24101 ac_MKDIR_P=$MKDIR_P
24102 case $MKDIR_P in
24103 [\\/$]* | ?:[\\/]* ) ;;
24104 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
24105 esac
24106 _ACEOF
24108 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24109 # If the template does not know about datarootdir, expand it.
24110 # FIXME: This hack should be removed a few years after 2.60.
24111 ac_datarootdir_hack=; ac_datarootdir_seen=
24112 ac_sed_dataroot='
24113 /datarootdir/ {
24117 /@datadir@/p
24118 /@docdir@/p
24119 /@infodir@/p
24120 /@localedir@/p
24121 /@mandir@/p'
24122 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
24123 *datarootdir*) ac_datarootdir_seen=yes;;
24124 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24126 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24127 _ACEOF
24128 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24129 ac_datarootdir_hack='
24130 s&@datadir@&$datadir&g
24131 s&@docdir@&$docdir&g
24132 s&@infodir@&$infodir&g
24133 s&@localedir@&$localedir&g
24134 s&@mandir@&$mandir&g
24135 s&\\\${datarootdir}&$datarootdir&g' ;;
24136 esac
24137 _ACEOF
24139 # Neutralize VPATH when `$srcdir' = `.'.
24140 # Shell code in configure.ac might set extrasub.
24141 # FIXME: do we really want to maintain this feature?
24142 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24143 ac_sed_extra="$ac_vpsub
24144 $extrasub
24145 _ACEOF
24146 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24148 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24149 s|@configure_input@|$ac_sed_conf_input|;t t
24150 s&@top_builddir@&$ac_top_builddir_sub&;t t
24151 s&@top_build_prefix@&$ac_top_build_prefix&;t t
24152 s&@srcdir@&$ac_srcdir&;t t
24153 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24154 s&@top_srcdir@&$ac_top_srcdir&;t t
24155 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24156 s&@builddir@&$ac_builddir&;t t
24157 s&@abs_builddir@&$ac_abs_builddir&;t t
24158 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24159 s&@INSTALL@&$ac_INSTALL&;t t
24160 s&@MKDIR_P@&$ac_MKDIR_P&;t t
24161 $ac_datarootdir_hack
24163 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
24164 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24166 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24167 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
24168 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
24169 "$ac_tmp/out"`; test -z "$ac_out"; } &&
24170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24171 which seems to be undefined. Please make sure it is defined" >&5
24172 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24173 which seems to be undefined. Please make sure it is defined" >&2;}
24175 rm -f "$ac_tmp/stdin"
24176 case $ac_file in
24177 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
24178 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
24179 esac \
24180 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24184 # CONFIG_HEADER
24186 if test x"$ac_file" != x-; then
24188 $as_echo "/* $configure_input */" \
24189 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
24190 } >"$ac_tmp/config.h" \
24191 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24192 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
24193 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
24194 $as_echo "$as_me: $ac_file is unchanged" >&6;}
24195 else
24196 rm -f "$ac_file"
24197 mv "$ac_tmp/config.h" "$ac_file" \
24198 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24200 else
24201 $as_echo "/* $configure_input */" \
24202 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
24203 || as_fn_error $? "could not create -" "$LINENO" 5
24205 # Compute "$ac_file"'s index in $config_headers.
24206 _am_arg="$ac_file"
24207 _am_stamp_count=1
24208 for _am_header in $config_headers :; do
24209 case $_am_header in
24210 $_am_arg | $_am_arg:* )
24211 break ;;
24213 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24214 esac
24215 done
24216 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
24217 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24218 X"$_am_arg" : 'X\(//\)[^/]' \| \
24219 X"$_am_arg" : 'X\(//\)$' \| \
24220 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
24221 $as_echo X"$_am_arg" |
24222 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24223 s//\1/
24226 /^X\(\/\/\)[^/].*/{
24227 s//\1/
24230 /^X\(\/\/\)$/{
24231 s//\1/
24234 /^X\(\/\).*/{
24235 s//\1/
24238 s/.*/./; q'`/stamp-h$_am_stamp_count
24241 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
24242 $as_echo "$as_me: executing $ac_file commands" >&6;}
24244 esac
24247 case $ac_file$ac_mode in
24248 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
24249 # Older Autoconf quotes --file arguments for eval, but not when files
24250 # are listed without --file. Let's play safe and only enable the eval
24251 # if we detect the quoting.
24252 case $CONFIG_FILES in
24253 *\'*) eval set x "$CONFIG_FILES" ;;
24254 *) set x $CONFIG_FILES ;;
24255 esac
24256 shift
24257 for mf
24259 # Strip MF so we end up with the name of the file.
24260 mf=`echo "$mf" | sed -e 's/:.*$//'`
24261 # Check whether this is an Automake generated Makefile or not.
24262 # We used to match only the files named 'Makefile.in', but
24263 # some people rename them; so instead we look at the file content.
24264 # Grep'ing the first line is not enough: some people post-process
24265 # each Makefile.in and add a new line on top of each file to say so.
24266 # Grep'ing the whole file is not good either: AIX grep has a line
24267 # limit of 2048, but all sed's we know have understand at least 4000.
24268 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
24269 dirpart=`$as_dirname -- "$mf" ||
24270 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24271 X"$mf" : 'X\(//\)[^/]' \| \
24272 X"$mf" : 'X\(//\)$' \| \
24273 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
24274 $as_echo X"$mf" |
24275 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24276 s//\1/
24279 /^X\(\/\/\)[^/].*/{
24280 s//\1/
24283 /^X\(\/\/\)$/{
24284 s//\1/
24287 /^X\(\/\).*/{
24288 s//\1/
24291 s/.*/./; q'`
24292 else
24293 continue
24295 # Extract the definition of DEPDIR, am__include, and am__quote
24296 # from the Makefile without running 'make'.
24297 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
24298 test -z "$DEPDIR" && continue
24299 am__include=`sed -n 's/^am__include = //p' < "$mf"`
24300 test -z "$am__include" && continue
24301 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
24302 # Find all dependency output files, they are included files with
24303 # $(DEPDIR) in their names. We invoke sed twice because it is the
24304 # simplest approach to changing $(DEPDIR) to its actual value in the
24305 # expansion.
24306 for file in `sed -n "
24307 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24308 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
24309 # Make sure the directory exists.
24310 test -f "$dirpart/$file" && continue
24311 fdir=`$as_dirname -- "$file" ||
24312 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24313 X"$file" : 'X\(//\)[^/]' \| \
24314 X"$file" : 'X\(//\)$' \| \
24315 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
24316 $as_echo X"$file" |
24317 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24318 s//\1/
24321 /^X\(\/\/\)[^/].*/{
24322 s//\1/
24325 /^X\(\/\/\)$/{
24326 s//\1/
24329 /^X\(\/\).*/{
24330 s//\1/
24333 s/.*/./; q'`
24334 as_dir=$dirpart/$fdir; as_fn_mkdir_p
24335 # echo "creating $dirpart/$file"
24336 echo '# dummy' > "$dirpart/$file"
24337 done
24338 done
24341 "libtool":C)
24343 # See if we are running on zsh, and set the options that allow our
24344 # commands through without removal of \ escapes.
24345 if test -n "${ZSH_VERSION+set}"; then
24346 setopt NO_GLOB_SUBST
24349 cfgfile=${ofile}T
24350 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
24351 $RM "$cfgfile"
24353 cat <<_LT_EOF >> "$cfgfile"
24354 #! $SHELL
24355 # Generated automatically by $as_me ($PACKAGE) $VERSION
24356 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
24358 # Provide generalized library-building support services.
24359 # Written by Gordon Matzigkeit, 1996
24361 # Copyright (C) 2014 Free Software Foundation, Inc.
24362 # This is free software; see the source for copying conditions. There is NO
24363 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
24365 # GNU Libtool is free software; you can redistribute it and/or modify
24366 # it under the terms of the GNU General Public License as published by
24367 # the Free Software Foundation; either version 2 of of the License, or
24368 # (at your option) any later version.
24370 # As a special exception to the GNU General Public License, if you
24371 # distribute this file as part of a program or library that is built
24372 # using GNU Libtool, you may include this file under the same
24373 # distribution terms that you use for the rest of that program.
24375 # GNU Libtool is distributed in the hope that it will be useful, but
24376 # WITHOUT ANY WARRANTY; without even the implied warranty of
24377 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24378 # GNU General Public License for more details.
24380 # You should have received a copy of the GNU General Public License
24381 # along with this program. If not, see <http://www.gnu.org/licenses/>.
24384 # The names of the tagged configurations supported by this script.
24385 available_tags=''
24387 # Configured defaults for sys_lib_dlsearch_path munging.
24388 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
24390 # ### BEGIN LIBTOOL CONFIG
24392 # Which release of libtool.m4 was used?
24393 macro_version=$macro_version
24394 macro_revision=$macro_revision
24396 # Whether or not to build shared libraries.
24397 build_libtool_libs=$enable_shared
24399 # Whether or not to build static libraries.
24400 build_old_libs=$enable_static
24402 # What type of objects to build.
24403 pic_mode=$pic_mode
24405 # Whether or not to optimize for fast installation.
24406 fast_install=$enable_fast_install
24408 # Shared archive member basename,for filename based shared library versioning on AIX.
24409 shared_archive_member_spec=$shared_archive_member_spec
24411 # Shell to use when invoking shell scripts.
24412 SHELL=$lt_SHELL
24414 # An echo program that protects backslashes.
24415 ECHO=$lt_ECHO
24417 # The PATH separator for the build system.
24418 PATH_SEPARATOR=$lt_PATH_SEPARATOR
24420 # The host system.
24421 host_alias=$host_alias
24422 host=$host
24423 host_os=$host_os
24425 # The build system.
24426 build_alias=$build_alias
24427 build=$build
24428 build_os=$build_os
24430 # A sed program that does not truncate output.
24431 SED=$lt_SED
24433 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
24434 Xsed="\$SED -e 1s/^X//"
24436 # A grep program that handles long lines.
24437 GREP=$lt_GREP
24439 # An ERE matcher.
24440 EGREP=$lt_EGREP
24442 # A literal string matcher.
24443 FGREP=$lt_FGREP
24445 # A BSD- or MS-compatible name lister.
24446 NM=$lt_NM
24448 # Whether we need soft or hard links.
24449 LN_S=$lt_LN_S
24451 # What is the maximum length of a command?
24452 max_cmd_len=$max_cmd_len
24454 # Object file suffix (normally "o").
24455 objext=$ac_objext
24457 # Executable file suffix (normally "").
24458 exeext=$exeext
24460 # whether the shell understands "unset".
24461 lt_unset=$lt_unset
24463 # turn spaces into newlines.
24464 SP2NL=$lt_lt_SP2NL
24466 # turn newlines into spaces.
24467 NL2SP=$lt_lt_NL2SP
24469 # convert \$build file names to \$host format.
24470 to_host_file_cmd=$lt_cv_to_host_file_cmd
24472 # convert \$build files to toolchain format.
24473 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
24475 # An object symbol dumper.
24476 OBJDUMP=$lt_OBJDUMP
24478 # Method to check whether dependent libraries are shared objects.
24479 deplibs_check_method=$lt_deplibs_check_method
24481 # Command to use when deplibs_check_method = "file_magic".
24482 file_magic_cmd=$lt_file_magic_cmd
24484 # How to find potential files when deplibs_check_method = "file_magic".
24485 file_magic_glob=$lt_file_magic_glob
24487 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
24488 want_nocaseglob=$lt_want_nocaseglob
24490 # DLL creation program.
24491 DLLTOOL=$lt_DLLTOOL
24493 # Command to associate shared and link libraries.
24494 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
24496 # The archiver.
24497 AR=$lt_AR
24499 # Flags to create an archive.
24500 AR_FLAGS=$lt_AR_FLAGS
24502 # How to feed a file listing to the archiver.
24503 archiver_list_spec=$lt_archiver_list_spec
24505 # A symbol stripping program.
24506 STRIP=$lt_STRIP
24508 # Commands used to install an old-style archive.
24509 RANLIB=$lt_RANLIB
24510 old_postinstall_cmds=$lt_old_postinstall_cmds
24511 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24513 # Whether to use a lock for old archive extraction.
24514 lock_old_archive_extraction=$lock_old_archive_extraction
24516 # A C compiler.
24517 LTCC=$lt_CC
24519 # LTCC compiler flags.
24520 LTCFLAGS=$lt_CFLAGS
24522 # Take the output of nm and produce a listing of raw symbols and C names.
24523 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24525 # Transform the output of nm in a proper C declaration.
24526 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24528 # Transform the output of nm into a list of symbols to manually relocate.
24529 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
24531 # Transform the output of nm in a C name address pair.
24532 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24534 # Transform the output of nm in a C name address pair when lib prefix is needed.
24535 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
24537 # The name lister interface.
24538 nm_interface=$lt_lt_cv_nm_interface
24540 # Specify filename containing input files for \$NM.
24541 nm_file_list_spec=$lt_nm_file_list_spec
24543 # The root where to search for dependent libraries,and where our libraries should be installed.
24544 lt_sysroot=$lt_sysroot
24546 # Command to truncate a binary pipe.
24547 lt_truncate_bin=$lt_lt_cv_truncate_bin
24549 # The name of the directory that contains temporary libtool files.
24550 objdir=$objdir
24552 # Used to examine libraries when file_magic_cmd begins with "file".
24553 MAGIC_CMD=$MAGIC_CMD
24555 # Must we lock files when doing compilation?
24556 need_locks=$lt_need_locks
24558 # Manifest tool.
24559 MANIFEST_TOOL=$lt_MANIFEST_TOOL
24561 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
24562 DSYMUTIL=$lt_DSYMUTIL
24564 # Tool to change global to local symbols on Mac OS X.
24565 NMEDIT=$lt_NMEDIT
24567 # Tool to manipulate fat objects and archives on Mac OS X.
24568 LIPO=$lt_LIPO
24570 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
24571 OTOOL=$lt_OTOOL
24573 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
24574 OTOOL64=$lt_OTOOL64
24576 # Old archive suffix (normally "a").
24577 libext=$libext
24579 # Shared library suffix (normally ".so").
24580 shrext_cmds=$lt_shrext_cmds
24582 # The commands to extract the exported symbol list from a shared archive.
24583 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24585 # Variables whose values should be saved in libtool wrapper scripts and
24586 # restored at link time.
24587 variables_saved_for_relink=$lt_variables_saved_for_relink
24589 # Do we need the "lib" prefix for modules?
24590 need_lib_prefix=$need_lib_prefix
24592 # Do we need a version for libraries?
24593 need_version=$need_version
24595 # Library versioning type.
24596 version_type=$version_type
24598 # Shared library runtime path variable.
24599 runpath_var=$runpath_var
24601 # Shared library path variable.
24602 shlibpath_var=$shlibpath_var
24604 # Is shlibpath searched before the hard-coded library search path?
24605 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24607 # Format of library name prefix.
24608 libname_spec=$lt_libname_spec
24610 # List of archive names. First name is the real one, the rest are links.
24611 # The last name is the one that the linker finds with -lNAME
24612 library_names_spec=$lt_library_names_spec
24614 # The coded name of the library, if different from the real name.
24615 soname_spec=$lt_soname_spec
24617 # Permission mode override for installation of shared libraries.
24618 install_override_mode=$lt_install_override_mode
24620 # Command to use after installation of a shared archive.
24621 postinstall_cmds=$lt_postinstall_cmds
24623 # Command to use after uninstallation of a shared archive.
24624 postuninstall_cmds=$lt_postuninstall_cmds
24626 # Commands used to finish a libtool library installation in a directory.
24627 finish_cmds=$lt_finish_cmds
24629 # As "finish_cmds", except a single script fragment to be evaled but
24630 # not shown.
24631 finish_eval=$lt_finish_eval
24633 # Whether we should hardcode library paths into libraries.
24634 hardcode_into_libs=$hardcode_into_libs
24636 # Compile-time system search path for libraries.
24637 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24639 # Detected run-time system search path for libraries.
24640 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
24642 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
24643 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
24645 # Whether dlopen is supported.
24646 dlopen_support=$enable_dlopen
24648 # Whether dlopen of programs is supported.
24649 dlopen_self=$enable_dlopen_self
24651 # Whether dlopen of statically linked programs is supported.
24652 dlopen_self_static=$enable_dlopen_self_static
24654 # Commands to strip libraries.
24655 old_striplib=$lt_old_striplib
24656 striplib=$lt_striplib
24659 # The linker used to build libraries.
24660 LD=$lt_LD
24662 # How to create reloadable object files.
24663 reload_flag=$lt_reload_flag
24664 reload_cmds=$lt_reload_cmds
24666 # Commands used to build an old-style archive.
24667 old_archive_cmds=$lt_old_archive_cmds
24669 # A language specific compiler.
24670 CC=$lt_compiler
24672 # Is the compiler the GNU compiler?
24673 with_gcc=$GCC
24675 # Compiler flag to turn off builtin functions.
24676 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
24678 # Additional compiler flags for building library objects.
24679 pic_flag=$lt_lt_prog_compiler_pic
24681 # How to pass a linker flag through the compiler.
24682 wl=$lt_lt_prog_compiler_wl
24684 # Compiler flag to prevent dynamic linking.
24685 link_static_flag=$lt_lt_prog_compiler_static
24687 # Does compiler simultaneously support -c and -o options?
24688 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
24690 # Whether or not to add -lc for building shared libraries.
24691 build_libtool_need_lc=$archive_cmds_need_lc
24693 # Whether or not to disallow shared libs when runtime libs are static.
24694 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
24696 # Compiler flag to allow reflexive dlopens.
24697 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
24699 # Compiler flag to generate shared objects directly from archives.
24700 whole_archive_flag_spec=$lt_whole_archive_flag_spec
24702 # Whether the compiler copes with passing no objects directly.
24703 compiler_needs_object=$lt_compiler_needs_object
24705 # Create an old-style archive from a shared archive.
24706 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
24708 # Create a temporary old-style archive to link instead of a shared archive.
24709 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
24711 # Commands used to build a shared archive.
24712 archive_cmds=$lt_archive_cmds
24713 archive_expsym_cmds=$lt_archive_expsym_cmds
24715 # Commands used to build a loadable module if different from building
24716 # a shared archive.
24717 module_cmds=$lt_module_cmds
24718 module_expsym_cmds=$lt_module_expsym_cmds
24720 # Whether we are building with GNU ld or not.
24721 with_gnu_ld=$lt_with_gnu_ld
24723 # Flag that allows shared libraries with undefined symbols to be built.
24724 allow_undefined_flag=$lt_allow_undefined_flag
24726 # Flag that enforces no undefined symbols.
24727 no_undefined_flag=$lt_no_undefined_flag
24729 # Flag to hardcode \$libdir into a binary during linking.
24730 # This must work even if \$libdir does not exist
24731 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
24733 # Whether we need a single "-rpath" flag with a separated argument.
24734 hardcode_libdir_separator=$lt_hardcode_libdir_separator
24736 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
24737 # DIR into the resulting binary.
24738 hardcode_direct=$hardcode_direct
24740 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
24741 # DIR into the resulting binary and the resulting library dependency is
24742 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
24743 # library is relocated.
24744 hardcode_direct_absolute=$hardcode_direct_absolute
24746 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24747 # into the resulting binary.
24748 hardcode_minus_L=$hardcode_minus_L
24750 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24751 # into the resulting binary.
24752 hardcode_shlibpath_var=$hardcode_shlibpath_var
24754 # Set to "yes" if building a shared library automatically hardcodes DIR
24755 # into the library and all subsequent libraries and executables linked
24756 # against it.
24757 hardcode_automatic=$hardcode_automatic
24759 # Set to yes if linker adds runtime paths of dependent libraries
24760 # to runtime path list.
24761 inherit_rpath=$inherit_rpath
24763 # Whether libtool must link a program against all its dependency libraries.
24764 link_all_deplibs=$link_all_deplibs
24766 # Set to "yes" if exported symbols are required.
24767 always_export_symbols=$always_export_symbols
24769 # The commands to list exported symbols.
24770 export_symbols_cmds=$lt_export_symbols_cmds
24772 # Symbols that should not be listed in the preloaded symbols.
24773 exclude_expsyms=$lt_exclude_expsyms
24775 # Symbols that must always be exported.
24776 include_expsyms=$lt_include_expsyms
24778 # Commands necessary for linking programs (against libraries) with templates.
24779 prelink_cmds=$lt_prelink_cmds
24781 # Commands necessary for finishing linking programs.
24782 postlink_cmds=$lt_postlink_cmds
24784 # Specify filename containing input files.
24785 file_list_spec=$lt_file_list_spec
24787 # How to hardcode a shared library path into an executable.
24788 hardcode_action=$hardcode_action
24790 # ### END LIBTOOL CONFIG
24792 _LT_EOF
24794 cat <<'_LT_EOF' >> "$cfgfile"
24796 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
24798 # func_munge_path_list VARIABLE PATH
24799 # -----------------------------------
24800 # VARIABLE is name of variable containing _space_ separated list of
24801 # directories to be munged by the contents of PATH, which is string
24802 # having a format:
24803 # "DIR[:DIR]:"
24804 # string "DIR[ DIR]" will be prepended to VARIABLE
24805 # ":DIR[:DIR]"
24806 # string "DIR[ DIR]" will be appended to VARIABLE
24807 # "DIRP[:DIRP]::[DIRA:]DIRA"
24808 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
24809 # "DIRA[ DIRA]" will be appended to VARIABLE
24810 # "DIR[:DIR]"
24811 # VARIABLE will be replaced by "DIR[ DIR]"
24812 func_munge_path_list ()
24814 case x$2 in
24818 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
24820 x:*)
24821 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
24823 *::*)
24824 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
24825 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
24828 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
24830 esac
24834 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
24835 func_cc_basename ()
24837 for cc_temp in $*""; do
24838 case $cc_temp in
24839 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24840 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24841 \-*) ;;
24842 *) break;;
24843 esac
24844 done
24845 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
24849 # ### END FUNCTIONS SHARED WITH CONFIGURE
24851 _LT_EOF
24853 case $host_os in
24854 aix3*)
24855 cat <<\_LT_EOF >> "$cfgfile"
24856 # AIX sometimes has problems with the GCC collect2 program. For some
24857 # reason, if we set the COLLECT_NAMES environment variable, the problems
24858 # vanish in a puff of smoke.
24859 if test set != "${COLLECT_NAMES+set}"; then
24860 COLLECT_NAMES=
24861 export COLLECT_NAMES
24863 _LT_EOF
24865 esac
24868 ltmain=$ac_aux_dir/ltmain.sh
24871 # We use sed instead of cat because bash on DJGPP gets confused if
24872 # if finds mixed CR/LF and LF-only lines. Since sed operates in
24873 # text mode, it properly converts lines to CR/LF. This bash problem
24874 # is reportedly fixed, but why not run on old versions too?
24875 sed '$q' "$ltmain" >> "$cfgfile" \
24876 || (rm -f "$cfgfile"; exit 1)
24878 mv -f "$cfgfile" "$ofile" ||
24879 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
24880 chmod +x "$ofile"
24883 "po-directories":C)
24884 for ac_file in $CONFIG_FILES; do
24885 # Support "outfile[:infile[:infile...]]"
24886 case "$ac_file" in
24887 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24888 esac
24889 # PO directories have a Makefile.in generated from Makefile.in.in.
24890 case "$ac_file" in */Makefile.in)
24891 # Adjust a relative srcdir.
24892 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
24893 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
24894 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
24895 # In autoconf-2.13 it is called $ac_given_srcdir.
24896 # In autoconf-2.50 it is called $srcdir.
24897 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
24898 case "$ac_given_srcdir" in
24899 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
24900 /*) top_srcdir="$ac_given_srcdir" ;;
24901 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
24902 esac
24903 # Treat a directory as a PO directory if and only if it has a
24904 # POTFILES.in file. This allows packages to have multiple PO
24905 # directories under different names or in different locations.
24906 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
24907 rm -f "$ac_dir/POTFILES"
24908 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
24909 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
24910 POMAKEFILEDEPS="POTFILES.in"
24911 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
24912 # on $ac_dir but don't depend on user-specified configuration
24913 # parameters.
24914 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
24915 # The LINGUAS file contains the set of available languages.
24916 if test -n "$OBSOLETE_ALL_LINGUAS"; then
24917 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
24919 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
24920 # Hide the ALL_LINGUAS assigment from automake < 1.5.
24921 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
24922 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
24923 else
24924 # The set of available languages was given in configure.in.
24925 # Hide the ALL_LINGUAS assigment from automake < 1.5.
24926 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
24928 # Compute POFILES
24929 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
24930 # Compute UPDATEPOFILES
24931 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
24932 # Compute DUMMYPOFILES
24933 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
24934 # Compute GMOFILES
24935 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
24936 case "$ac_given_srcdir" in
24937 .) srcdirpre= ;;
24938 *) srcdirpre='$(srcdir)/' ;;
24939 esac
24940 POFILES=
24941 UPDATEPOFILES=
24942 DUMMYPOFILES=
24943 GMOFILES=
24944 for lang in $ALL_LINGUAS; do
24945 POFILES="$POFILES $srcdirpre$lang.po"
24946 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
24947 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
24948 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
24949 done
24950 # CATALOGS depends on both $ac_dir and the user's LINGUAS
24951 # environment variable.
24952 INST_LINGUAS=
24953 if test -n "$ALL_LINGUAS"; then
24954 for presentlang in $ALL_LINGUAS; do
24955 useit=no
24956 if test "%UNSET%" != "$LINGUAS"; then
24957 desiredlanguages="$LINGUAS"
24958 else
24959 desiredlanguages="$ALL_LINGUAS"
24961 for desiredlang in $desiredlanguages; do
24962 # Use the presentlang catalog if desiredlang is
24963 # a. equal to presentlang, or
24964 # b. a variant of presentlang (because in this case,
24965 # presentlang can be used as a fallback for messages
24966 # which are not translated in the desiredlang catalog).
24967 case "$desiredlang" in
24968 "$presentlang"*) useit=yes;;
24969 esac
24970 done
24971 if test $useit = yes; then
24972 INST_LINGUAS="$INST_LINGUAS $presentlang"
24974 done
24976 CATALOGS=
24977 if test -n "$INST_LINGUAS"; then
24978 for lang in $INST_LINGUAS; do
24979 CATALOGS="$CATALOGS $lang.gmo"
24980 done
24982 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
24983 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"
24984 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
24985 if test -f "$f"; then
24986 case "$f" in
24987 *.orig | *.bak | *~) ;;
24988 *) cat "$f" >> "$ac_dir/Makefile" ;;
24989 esac
24991 done
24994 esac
24995 done ;;
24997 esac
24998 done # for ac_tag
25001 as_fn_exit 0
25002 _ACEOF
25003 ac_clean_files=$ac_clean_files_save
25005 test $ac_write_fail = 0 ||
25006 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
25009 # configure is writing to config.log, and then calls config.status.
25010 # config.status does its own redirection, appending to config.log.
25011 # Unfortunately, on DOS this fails, as config.log is still kept open
25012 # by configure, so config.status won't be able to write to it; its
25013 # output is simply discarded. So we exec the FD to /dev/null,
25014 # effectively closing config.log, so it can be properly (re)opened and
25015 # appended to by config.status. When coming back to configure, we
25016 # need to make the FD available again.
25017 if test "$no_create" != yes; then
25018 ac_cs_success=:
25019 ac_config_status_args=
25020 test "$silent" = yes &&
25021 ac_config_status_args="$ac_config_status_args --quiet"
25022 exec 5>/dev/null
25023 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25024 exec 5>>config.log
25025 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25026 # would make configure fail if this is the last instruction.
25027 $ac_cs_success || as_fn_exit 1
25029 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
25030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
25031 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}